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 # ld works, but does not support shared libraries.
1252 # newlib is not 64 bit ready. I'm not sure about fileutils.
1253 # gas doesn't generate exception information.
1254 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1257 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1260 # newlib is not 64 bit ready
1261 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1264 # newlib is not 64 bit ready
1265 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1268 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1271 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1273 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
1274 noconfigdirs
="$noconfigdirs ${libgcj}"
1275 noconfigdirs
="$noconfigdirs target-examples"
1276 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
1277 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
1278 noconfigdirs
="$noconfigdirs expect dejagnu"
1279 # the C++ libraries don't build on top of CE's C libraries
1280 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1281 noconfigdirs
="$noconfigdirs target-newlib"
1283 *-*-cygwin*) ;; # keep gdb and readline
1284 *) noconfigdirs
="$noconfigdirs gdb readline"
1289 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1293 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
1294 noconfigdirs
="$noconfigdirs ${libgcj}"
1296 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf* | arm
*-*-eabi* )
1297 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1299 arm
*-*-linux-gnueabi)
1300 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1301 noconfigdirs
="$noconfigdirs target-libjava target-libobjc"
1304 noconfigdirs
="$noconfigdirs ${libgcj} target-libiberty"
1307 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1310 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1313 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1316 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1319 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1322 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1325 noconfigdirs
="$noconfigdirs target-libgloss gdb"
1326 if test x
${is_cross_compiler} != xno
; then
1327 target_configdirs
="${target_configdirs} target-bsp target-cygmon"
1330 c4x-
*-* | tic4x-
*-*)
1331 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1333 c54x
*-*-* | tic54x-
*-*)
1334 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1336 cris-
*-* | crisv32-
*-*)
1337 unsupported_languages
="$unsupported_languages java"
1340 unsupported_languages
="$unsupported_languages fortran"
1341 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc";;
1343 unsupported_languages
="$unsupported_languages fortran"
1344 noconfigdirs
="$noconfigdirs target-boehm-gc";;
1346 noconfigdirs
="$noconfigdirs target-newlib target-libgloss";;
1348 unsupported_languages
="$unsupported_languages fortran"
1349 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1353 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1356 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1359 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1362 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1365 noconfigdirs
="$noconfigdirs ${libgcj}"
1368 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1371 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1373 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
1375 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
1376 # In this case, it's because the hppa64-linux target is for
1377 # the kernel only at this point and has no libc, and thus no
1378 # headers, crt*.o, etc., all of which are needed by these.
1379 noconfigdirs
="$noconfigdirs target-zlib"
1381 parisc
*-*-linux* | hppa
*-*-linux*)
1385 hppa
*-*-openbsd* | \
1387 noconfigdirs
="$noconfigdirs ${libgcj}"
1390 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1391 # build on HP-UX 10.20.
1392 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
1395 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1398 # No gdb support yet.
1399 noconfigdirs
="$noconfigdirs readline mmalloc libgui itcl gdb"
1402 # No gdb or ld support yet.
1403 noconfigdirs
="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1407 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
1408 noconfigdirs
="$noconfigdirs ${libgcj}"
1410 i
[3456789]86-*-linux*)
1411 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1412 # not build java stuff by default.
1415 noconfigdirs
="$noconfigdirs ${libgcj}";;
1418 # This section makes it possible to build newlib natively on linux.
1419 # If we are using a cross compiler then don't configure newlib.
1420 if test x
${is_cross_compiler} != xno
; then
1421 noconfigdirs
="$noconfigdirs target-newlib"
1423 noconfigdirs
="$noconfigdirs target-libgloss"
1424 # If we are not using a cross compiler, do configure newlib.
1425 # Note however, that newlib will only be configured in this situation
1426 # if the --with-newlib option has been given, because otherwise
1427 # 'target-newlib' will appear in skipdirs.
1429 i
[3456789]86-*-mingw32*)
1430 target_configdirs
="$target_configdirs target-mingw"
1431 noconfigdirs
="$noconfigdirs expect target-libgloss ${libgcj}"
1433 # Can't build gdb for mingw32 if not native.
1435 i
[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1436 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1441 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
1442 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1443 # always build newlib if winsup directory is present.
1444 if test -d "$srcdir/winsup"; then
1445 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1446 elif test -d "$srcdir/newlib"; then
1447 echo "Warning: winsup is missing so newlib can't be built."
1450 # Can't build gdb for Cygwin if not native.
1452 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1453 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1457 i
[3456789]86-moss-msdos | i
[3456789]86-*-moss* | \
1458 i
[3456789]86-*-uwin* | i
[3456789]86-*-interix* )
1461 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1463 i
[3456789]86-*-sco3.2v5
*)
1464 # The linker does not yet know about weak symbols in COFF,
1465 # and is not configured to handle mixed ELF and COFF.
1466 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1468 i
[3456789]86-*-sco*)
1469 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1471 i
[3456789]86-*-solaris2*)
1472 noconfigdirs
="$noconfigdirs target-libgloss"
1474 i
[3456789]86-*-sysv4*)
1475 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1477 i
[3456789]86-*-beos*)
1478 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1480 i
[3456789]86-*-rdos*)
1481 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1484 noconfigdirs
="$noconfigdirs ${libgcj}"
1486 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
1487 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1490 noconfigdirs
="$noconfigdirs ${libgcj}"
1493 noconfigdirs
="$noconfigdirs ${libgcj}"
1496 # The EPOC C++ environment does not support exceptions or rtti,
1497 # and so building libstdc++-v3 tends not to always work.
1498 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1501 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1502 unsupported_languages
="$unsupported_languages fortran java"
1505 noconfigdirs
="$noconfigdirs ${libgcj}"
1508 noconfigdirs
="$noconfigdirs ${libgcj}"
1511 noconfigdirs
="$noconfigdirs sim"
1514 # copied from rs6000-*-* entry
1515 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1517 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
1518 target_configdirs
="$target_configdirs target-winsup"
1519 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1520 # always build newlib.
1521 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1523 # This is temporary until we can link against shared libraries
1524 powerpcle-
*-solaris*)
1525 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1528 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1531 noconfigdirs
="$noconfigdirs ${libgcj}"
1533 powerpc-
*-eabi* | powerpcle-
*-eabi* | powerpc-
*-rtems* )
1536 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
1539 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1542 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1545 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1548 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1551 # Linking libjava exceeds command-line length limits on at least
1552 # IRIX 6.2, but not on IRIX 6.5.
1553 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1554 # <oldham@codesourcery.com>
1555 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1558 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1561 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1564 noconfigdirs
="$noconfigdirs gprof ${libgcj}" # same as generic mips
1567 noconfigdirs
="$noconfigdirs target-newlib ${libgcj}"
1570 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1573 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1576 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1580 i
[3456789]86-*-vsta) ;; # don't add gprof back in
1581 i
[3456789]86-*-go32*) ;; # don't add gprof back in
1582 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1583 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1585 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1588 noconfigdirs
="$noconfigdirs ${libgcj}"
1591 noconfigdirs
="$noconfigdirs ${libgcj}"
1594 noconfigdirs
="$noconfigdirs ${libgcj}"
1597 noconfigdirs
="$noconfigdirs ${libgcj}"
1598 if test x
${is_cross_compiler} != xno
; then
1599 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1604 sparc-
*-solaris2.
[0-6] | sparc-
*-solaris2.
[0-6].
*)
1605 noconfigdirs
="$noconfigdirs ${libgcj}"
1607 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
1610 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1613 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1616 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1619 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1622 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1625 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1628 noconfigdirs
="$noconfigdirs ${libgcj}"
1631 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1633 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1634 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1637 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1640 noconfigdirs
="$noconfigdirs ${libgcj}"
1644 # If we aren't building newlib, then don't build libgloss, since libgloss
1645 # depends upon some newlib header files.
1646 case "${noconfigdirs}" in
1647 *target-libgloss
*) ;;
1648 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
1651 # Work in distributions that contain no compiler tools, like Autoconf.
1653 host_makefile_frag
=/dev
/null
1654 if test -d ${srcdir}/config
; then
1657 # Avoid "too much defining" errors from HPUX compiler.
1658 tentative_cc
="cc -Wp,-H256000"
1659 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1660 # If it's HP/UX ar, this should be harmless.
1664 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1667 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1668 # chokes on bfd, the compiler won't let you assign integers to enums, and
1669 # other problems. Defining CC to gcc is a questionable way to say "don't use
1670 # the apollo compiler" (the preferred version of GCC could be called cc,
1671 # or whatever), but I'm not sure leaving CC as cc is any better...
1672 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1673 # Used to have BISON=yacc.
1677 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1680 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1681 tentative_cc
="cc -Xa"
1682 host_makefile_frag
="config/mh-cxux"
1684 m88k-motorola-sysv
*)
1687 tentative_cc
="cc -Wf,-XNg1000"
1688 host_makefile_frag
="config/mh-decstation"
1691 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1692 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
1693 host_makefile_frag
="config/mh-necv4"
1696 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1697 # environment. Also bump switch table size so that cp-parse will
1698 # compile. Bump string length limit so linker builds.
1699 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1702 host_makefile_frag
="config/mh-sysv4"
1705 # This is for a MIPS running RISC/os 4.52C.
1707 # This is needed for GDB, but needs to be in the top-level make because
1708 # if a library is compiled with the bsd headers and gets linked with the
1709 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1710 # a different size).
1711 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1712 # known except to select the sysv environment. Could we use /proc instead?
1713 # These "sysv environments" and "bsd environments" often end up being a pain.
1715 # This is not part of CFLAGS because perhaps not all C compilers have this
1717 tentative_cc
="cc -systype sysv"
1722 i
[3456789]86-*-sysv5*)
1723 host_makefile_frag
="config/mh-sysv5"
1725 i
[3456789]86-*-dgux*)
1726 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1727 host_makefile_frag
="config/mh-dgux386"
1729 i
[3456789]86-ncr-sysv4.3
*)
1730 # The MetaWare compiler will generate a copyright message unless you
1731 # turn it off by adding the -Hnocopyr flag.
1732 tentative_cc
="cc -Hnocopyr"
1734 i
[3456789]86-ncr-sysv4*)
1735 # for an NCR 3000 (i486/SVR4) system.
1736 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1737 # This compiler not only emits obnoxious copyright messages every time
1738 # you run it, but it chokes and dies on a whole bunch of GNU source
1739 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1740 tentative_cc
="/usr/ccs/ATT/cc"
1741 host_makefile_frag
="config/mh-ncr3000"
1743 i
[3456789]86-*-sco3.2v5
*)
1745 i
[3456789]86-*-sco*)
1746 # The native C compiler botches some simple uses of const. Unfortunately,
1747 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1748 tentative_cc
="cc -Dconst="
1749 host_makefile_frag
="config/mh-sco"
1751 i
[3456789]86-*-udk*)
1752 host_makefile_frag
="config/mh-sysv5"
1754 i
[3456789]86-*-solaris2*)
1755 host_makefile_frag
="config/mh-sysv4"
1757 i
[3456789]86-*-msdosdjgpp*)
1758 host_makefile_frag
="config/mh-djgpp"
1761 host_makefile_frag
="config/mh-cygwin"
1766 host_makefile_frag
="config/mh-interix"
1769 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1773 host_makefile_frag
="config/mh-solaris"
1776 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1777 # without overflowing the jump tables (-J says to use a 32 bit table)
1778 tentative_cc
="cc -J"
1781 tentative_cc
="cc -Wp,-H256000"
1784 tentative_cc
="cc -Wp,-H256000"
1787 # /bin/cc is less than useful for our purposes. Always use GCC
1788 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
1789 host_makefile_frag
="config/mh-lynxrs6k"
1792 host_makefile_frag
="config/mh-ppc-darwin"
1795 host_makefile_frag
="config/mh-ppc-aix"
1798 host_makefile_frag
="config/mh-ppc-aix"
1801 # /bin/cc is less than useful for our purposes. Always use GCC
1802 tentative_cc
="/bin/gcc"
1805 host_makefile_frag
="config/mh-sysv4"
1807 # This is placed last to prevent interfering with the cases above.
1809 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1810 host_makefile_frag
="config/mh-x86omitfp"
1815 # If we aren't going to be using gcc, see if we can extract a definition
1816 # of CC from the fragment.
1817 # Actually, use the 'pre-extracted' version above.
1818 if test -z "${CC}" && test "${build}" = "${host}" ; then
1819 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1821 for dir
in $PATH; do
1822 test -z "$dir" && dir
=.
1823 if test -f $dir/gcc
; then
1829 if test -z "${found}" && test -n "${tentative_cc}" ; then
1834 if test "${build}" != "${host}" ; then
1835 # If we are doing a Canadian Cross, in which the host and build systems
1836 # are not the same, we set reasonable default values for the tools.
1838 CC
=${CC-${host_alias}-gcc}
1839 CFLAGS
=${CFLAGS-"-g -O2"}
1840 CXX
=${CXX-${host_alias}-c++}
1841 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1842 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1845 # Set reasonable default values for some tools even if not Canadian.
1846 # Of course, these are different reasonable default values, originally
1847 # specified directly in the Makefile.
1848 # We don't export, so that autoconf can do its job.
1849 # Note that all these settings are above the fragment inclusion point
1850 # in Makefile.in, so can still be overridden by fragments.
1851 # This is all going to change when we autoconfiscate...
1853 CC_FOR_BUILD
="\$(CC)"
1854 # Extract the first word of "gcc", so it can be a program name with args.
1855 set dummy gcc
; ac_word
=$2
1856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1857 echo "configure:1858: checking for $ac_word" >&5
1858 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1861 if test -n "$CC"; then
1862 ac_cv_prog_CC
="$CC" # Let the user override the test.
1864 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1866 for ac_dir
in $ac_dummy; do
1867 test -z "$ac_dir" && ac_dir
=.
1868 if test -f $ac_dir/$ac_word; then
1877 if test -n "$CC"; then
1878 echo "$ac_t""$CC" 1>&6
1880 echo "$ac_t""no" 1>&6
1883 if test -z "$CC"; then
1884 # Extract the first word of "cc", so it can be a program name with args.
1885 set dummy cc
; ac_word
=$2
1886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1887 echo "configure:1888: checking for $ac_word" >&5
1888 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1891 if test -n "$CC"; then
1892 ac_cv_prog_CC
="$CC" # Let the user override the test.
1894 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1897 for ac_dir
in $ac_dummy; do
1898 test -z "$ac_dir" && ac_dir
=.
1899 if test -f $ac_dir/$ac_word; then
1900 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1901 ac_prog_rejected
=yes
1909 if test $ac_prog_rejected = yes; then
1910 # We found a bogon in the path, so make sure we never use it.
1911 set dummy
$ac_cv_prog_CC
1913 if test $# -gt 0; then
1914 # We chose a different compiler from the bogus one.
1915 # However, it has the same basename, so the bogon will be chosen
1916 # first if we set CC to just the basename; use the full file name.
1918 set dummy
"$ac_dir/$ac_word" "$@"
1926 if test -n "$CC"; then
1927 echo "$ac_t""$CC" 1>&6
1929 echo "$ac_t""no" 1>&6
1932 if test -z "$CC"; then
1933 case "`uname -s`" in
1935 # Extract the first word of "cl", so it can be a program name with args.
1936 set dummy cl
; ac_word
=$2
1937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1938 echo "configure:1939: checking for $ac_word" >&5
1939 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1942 if test -n "$CC"; then
1943 ac_cv_prog_CC
="$CC" # Let the user override the test.
1945 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1947 for ac_dir
in $ac_dummy; do
1948 test -z "$ac_dir" && ac_dir
=.
1949 if test -f $ac_dir/$ac_word; then
1958 if test -n "$CC"; then
1959 echo "$ac_t""$CC" 1>&6
1961 echo "$ac_t""no" 1>&6
1966 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1969 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1970 echo "configure:1971: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1973 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1974 ac_cpp
='$CPP $CPPFLAGS'
1975 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1976 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1977 cross_compiling
=$ac_cv_prog_cc_cross
1979 cat > conftest.
$ac_ext << EOF
1981 #line 1982 "configure"
1982 #include "confdefs.h"
1986 if { (eval echo configure
:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1987 ac_cv_prog_cc_works
=yes
1988 # If we can't run a trivial program, we are probably using a cross compiler.
1989 if (.
/conftest
; exit) 2>/dev
/null
; then
1990 ac_cv_prog_cc_cross
=no
1992 ac_cv_prog_cc_cross
=yes
1995 echo "configure: failed program was:" >&5
1996 cat conftest.
$ac_ext >&5
1997 ac_cv_prog_cc_works
=no
2001 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2002 ac_cpp
='$CPP $CPPFLAGS'
2003 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2004 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2005 cross_compiling
=$ac_cv_prog_cc_cross
2007 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2008 if test $ac_cv_prog_cc_works = no
; then
2009 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2011 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2012 echo "configure:2013: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2013 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2014 cross_compiling
=$ac_cv_prog_cc_cross
2016 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2017 echo "configure:2018: checking whether we are using GNU C" >&5
2018 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2021 cat > conftest.c
<<EOF
2026 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2033 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2035 if test $ac_cv_prog_gcc = yes; then
2041 ac_test_CFLAGS
="${CFLAGS+set}"
2042 ac_save_CFLAGS
="$CFLAGS"
2044 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2045 echo "configure:2046: checking whether ${CC-cc} accepts -g" >&5
2046 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 echo 'void f(){}' > conftest.c
2050 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2059 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2060 if test "$ac_test_CFLAGS" = set; then
2061 CFLAGS
="$ac_save_CFLAGS"
2062 elif test $ac_cv_prog_cc_g = yes; then
2063 if test "$GCC" = yes; then
2069 if test "$GCC" = yes; then
2077 # We must set the default linker to the linker used by gcc for the correct
2078 # operation of libtool. If LD is not defined and we are using gcc, try to
2079 # set the LD default to the ld used by gcc.
2080 if test -z "$LD"; then
2081 if test "$GCC" = yes; then
2084 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2086 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
2088 case $gcc_prog_ld in
2089 # Accept absolute paths.
2090 [\\/]* |
[A-Za-z
]:[\\/]*)
2091 LD
="$gcc_prog_ld" ;;
2097 CFLAGS
=${CFLAGS-"-g"}
2098 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
2101 if test $host != $build; then
2102 ac_tool_prefix
=${host_alias}-
2109 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2110 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2112 echo "configure:2113: checking for $ac_word" >&5
2113 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2116 if test -n "$GNATBIND"; then
2117 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2119 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2121 for ac_dir
in $ac_dummy; do
2122 test -z "$ac_dir" && ac_dir
=.
2123 if test -f $ac_dir/$ac_word; then
2124 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2131 GNATBIND
="$ac_cv_prog_GNATBIND"
2132 if test -n "$GNATBIND"; then
2133 echo "$ac_t""$GNATBIND" 1>&6
2135 echo "$ac_t""no" 1>&6
2139 if test -z "$ac_cv_prog_GNATBIND"; then
2140 if test -n "$ac_tool_prefix"; then
2141 # Extract the first word of "gnatbind", so it can be a program name with args.
2142 set dummy gnatbind
; ac_word
=$2
2143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2144 echo "configure:2145: checking for $ac_word" >&5
2145 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 if test -n "$GNATBIND"; then
2149 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2151 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2153 for ac_dir
in $ac_dummy; do
2154 test -z "$ac_dir" && ac_dir
=.
2155 if test -f $ac_dir/$ac_word; then
2156 ac_cv_prog_GNATBIND
="gnatbind"
2161 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2164 GNATBIND
="$ac_cv_prog_GNATBIND"
2165 if test -n "$GNATBIND"; then
2166 echo "$ac_t""$GNATBIND" 1>&6
2168 echo "$ac_t""no" 1>&6
2176 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2177 echo "configure:2178: checking whether compiler driver understands Ada" >&5
2178 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2181 cat >conftest.adb
<<EOF
2182 procedure conftest is begin null; end conftest;
2184 acx_cv_cc_gcc_supports_ada
=no
2185 # There is a bug in old released versions of GCC which causes the
2186 # driver to exit successfully when the appropriate language module
2187 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2188 # Therefore we must check for the error message as well as an
2189 # unsuccessful exit.
2190 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2191 # given a .adb file, but produce no object file. So we must check
2192 # if an object file was really produced to guard against this.
2193 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2194 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
2195 acx_cv_cc_gcc_supports_ada
=yes
2200 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2202 if test x
$GNATBIND != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
2208 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2209 echo "configure:2210: checking how to compare bootstrapped objects" >&5
2210 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2215 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2216 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
2217 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
2220 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
2223 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2224 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2227 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
2234 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2235 do_compare
="$gcc_cv_prog_cmp_skip"
2239 # Check for GMP and MPFR
2243 # Specify a location for mpfr
2244 # check for this first so it ends up on the link line before gmp.
2245 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2246 if test "${with_mpfr_dir+set}" = set; then
2247 withval
="$with_mpfr_dir"
2252 if test "x$with_mpfr_dir" != x
; then
2253 gmpinc
="-I$with_mpfr_dir"
2254 gmplibs
="$with_mpfr_dir/libmpfr.a"
2259 # Check whether --with-mpfr or --without-mpfr was given.
2260 if test "${with_mpfr+set}" = set; then
2261 withval
="$with_mpfr"
2266 if test "x$with_mpfr" != x
; then
2267 gmplibs
="-L$with_mpfr/lib $gmplibs"
2268 gmpinc
="-I$with_mpfr/include"
2271 # Specify a location for gmp
2272 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2273 if test "${with_gmp_dir+set}" = set; then
2274 withval
="$with_gmp_dir"
2279 if test "x$with_gmp_dir" != x
; then
2280 gmpinc
="$gmpinc -I$with_gmp_dir"
2281 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2282 gmplibs
="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2283 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2284 gmplibs
="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2286 # One of the later tests will catch the error if neither library is present.
2288 gmplibs
="$gmplibs -lgmp"
2291 # Check whether --with-gmp or --without-gmp was given.
2292 if test "${with_gmp+set}" = set; then
2298 if test "x$with_gmp" != x
; then
2299 gmplibs
="-L$with_gmp/lib $gmplibs"
2300 gmpinc
="-I$with_gmp/include $gmpinc"
2303 saved_CFLAGS
="$CFLAGS"
2304 CFLAGS
="$CFLAGS $gmpinc"
2305 # Check GMP actually works
2306 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2307 echo "configure:2308: checking for correct version of gmp.h" >&5
2308 cat > conftest.
$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2314 #if __GNU_MP_VERSION < 3
2320 if { (eval echo configure
:2321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2322 echo "$ac_t""yes" 1>&6
2324 echo "configure: failed program was:" >&5
2325 cat conftest.
$ac_ext >&5
2327 echo "$ac_t""no" 1>&6; have_gmp
=no
2331 if test x
"$have_gmp" = xyes
; then
2332 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2333 echo "configure:2334: checking for MPFR" >&5
2336 LIBS
="$LIBS $gmplibs"
2337 cat > conftest.
$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2343 mpfr_t n; mpfr_init(n);
2346 if { (eval echo configure
:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2348 echo "$ac_t""yes" 1>&6
2350 echo "configure: failed program was:" >&5
2351 cat conftest.
$ac_ext >&5
2353 echo "$ac_t""no" 1>&6; have_gmp
=no
2357 CFLAGS
="$saved_CFLAGS"
2360 # Flags needed for both GMP and/or MPFR
2364 # By default, C is the only stage 1 language.
2368 # Figure out what language subdirectories are present.
2369 # Look if the user specified --enable-languages="..."; if not, use
2370 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2372 # NB: embedded tabs in this IF block -- do not untabify
2373 if test -d ${srcdir}/gcc
; then
2374 if test x
"${enable_languages+set}" != xset
; then
2375 if test x
"${LANGUAGES+set}" = xset
; then
2376 enable_languages
="${LANGUAGES}"
2377 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
2379 enable_languages
=all
2382 if test x
"${enable_languages}" = x ||
2383 test x
"${enable_languages}" = xyes
;
2385 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
2389 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2391 # 'f95' is the old name for the 'fortran' language. We issue a warning
2392 # and make the substitution.
2393 case ,${enable_languages}, in
2395 echo configure.
in: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
2396 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2400 # First scan to see if an enabled language requires some other language.
2401 # We assume that a given config-lang.in will list all the language
2402 # front ends it requires, even if some are required indirectly.
2403 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2404 case ${lang_frag} in
2406 # The odd quoting in the next line works around
2407 # an apparent bug in bash 1.12 on linux.
2408 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2410 # From the config-lang.in, get $language, $lang_requires
2414 for other
in ${lang_requires} ; do
2415 case ,${enable_languages}, in
2419 echo " \`$other' language required by \`$language'; enabling" 1>&2
2420 enable_languages
="${enable_languages},${other}"
2428 new_enable_languages
=c
2429 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2430 potential_languages
=c
2432 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2433 case ${lang_frag} in
2435 # The odd quoting in the next line works around
2436 # an apparent bug in bash 1.12 on linux.
2437 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2439 # From the config-lang.in, get $language, $target_libs,
2440 # $lang_dirs, $boot_language, and $build_by_default
2448 potential_languages
="${potential_languages},${language}"
2449 # This is quite sensitive to the ordering of the case statement arms.
2450 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2452 echo "${lang_frag} doesn't set \$language." 1>&2
2456 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2459 *,${language},*:*:*:*)
2460 # Language was explicitly selected; include it.
2464 # 'all' was selected, but this is not a default language
2465 # so do not include it.
2469 # 'all' was selected and this is a default language; include it.
2477 # Disable languages that need GMP if it isn't available.
2478 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2479 *,${language},*:no
:yes)
2480 # Specifically requested language; tell them.
2481 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2489 # Disable a language that is unsupported by the target.
2490 case " $unsupported_languages " in
2496 case $add_this_lang in
2498 # Remove language-dependent dirs.
2499 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2502 new_enable_languages
="$new_enable_languages,$language"
2503 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
2504 case ${boot_language} in
2506 # Add to (comma-separated) list of stage 1 languages.
2507 stage1_languages
="${stage1_languages},${language}"
2516 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2517 if test "x$missing_languages" != x
; then
2518 { echo "configure: error:
2519 The following requested languages could not be built: ${missing_languages}
2520 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2523 if test "x$new_enable_languages" != "x$enable_languages"; then
2524 echo The following languages will be built
: ${new_enable_languages}
2526 enable_languages
="$new_enable_languages"
2527 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2530 # Handle --disable-<component> generically.
2531 for dir
in $configdirs $build_configdirs $target_configdirs ; do
2532 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2533 if eval test x\
${enable_${dirname}} "=" xno
; then
2534 noconfigdirs
="$noconfigdirs $dir"
2538 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2539 # $build_configdirs and $target_configdirs.
2540 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2543 for dir
in .
$skipdirs $noconfigdirs ; do
2544 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2545 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2546 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2547 if test -r $srcdir/$dirname/configure
; then
2548 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2551 notsupp
="$notsupp $dir"
2555 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2556 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2557 if test -r $srcdir/$dirname/configure
; then
2558 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2561 notsupp
="$notsupp $dir"
2565 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2566 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2567 if test -r $srcdir/$dirname/configure
; then
2568 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2571 notsupp
="$notsupp $dir"
2577 # Sometimes the tools are distributed with libiberty but with no other
2578 # libraries. In that case, we don't want to build target-libiberty.
2579 if test -n "${target_configdirs}" ; then
2581 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2582 if test "$i" != "libiberty" ; then
2583 if test -r $srcdir/$i/configure
; then
2589 if test -z "${others}" ; then
2594 # Quietly strip out all directories which aren't configurable in this tree.
2595 # This relies on all configurable subdirectories being autoconfiscated, which
2597 build_configdirs_all
="$build_configdirs"
2599 for i
in ${build_configdirs_all} ; do
2600 j
=`echo $i | sed -e s/build-//g`
2601 if test -f ${srcdir}/$j/configure
; then
2602 build_configdirs
="${build_configdirs} $i"
2606 configdirs_all
="$configdirs"
2608 for i
in ${configdirs_all} ; do
2609 if test -f ${srcdir}/$i/configure
; then
2610 configdirs
="${configdirs} $i"
2614 target_configdirs_all
="$target_configdirs"
2616 for i
in ${target_configdirs_all} ; do
2617 j
=`echo $i | sed -e s/target-//g`
2618 if test -f ${srcdir}/$j/configure
; then
2619 target_configdirs
="${target_configdirs} $i"
2623 # Produce a warning message for the subdirs we can't configure.
2624 # This isn't especially interesting in the Cygnus tree, but in the individual
2625 # FSF releases, it's important to let people know when their machine isn't
2626 # supported by the one or two programs in a package.
2628 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2629 # If $appdirs is non-empty, at least one of those directories must still
2630 # be configured, or we error out. (E.g., if the gas release supports a
2631 # specified target in some subdirs but not the gas subdir, we shouldn't
2632 # pretend that all is well.)
2633 if test -n "$appdirs" ; then
2634 for dir
in $appdirs ; do
2635 if test -r $dir/Makefile.
in ; then
2636 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2640 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
2646 if test -n "$appdirs" ; then
2647 echo "*** This configuration is not supported by this package." 1>&2
2651 # Okay, some application will build, or we don't care to check. Still
2652 # notify of subdirs not getting built.
2653 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2654 echo " ${notsupp}" 1>&2
2655 echo " (Any other directories should still work fine.)" 1>&2
2665 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2666 if test "${with_build_sysroot+set}" = set; then
2667 withval
="$with_build_sysroot"
2668 if test x
"$withval" != x
; then
2669 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
2672 SYSROOT_CFLAGS_FOR_TARGET
=
2677 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2678 # the named directory are copied to $(tooldir)/sys-include.
2679 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
2680 if test x
${is_cross_compiler} = xno
; then
2681 echo 1>&2 '***' --with-headers is only supported when cross compiling
2684 if test x
"${with_headers}" != xyes
; then
2685 case "${exec_prefixoption}" in
2687 *) x
=${exec_prefix} ;;
2689 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2693 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2694 # the name directories are copied to $(tooldir)/lib. Multiple directories
2696 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2697 if test x
${is_cross_compiler} = xno
; then
2698 echo 1>&2 '***' --with-libs is only supported when cross compiling
2701 if test x
"${with_libs}" != xyes
; then
2702 # Copy the libraries in reverse order, so that files in the first named
2703 # library override files in subsequent libraries.
2704 case "${exec_prefixoption}" in
2706 *) x
=${exec_prefix} ;;
2708 for l
in ${with_libs}; do
2709 copy_dirs
="$l $x/${target_alias}/lib ${copy_dirs}"
2714 # Set with_gnu_as and with_gnu_ld as appropriate.
2716 # This is done by determining whether or not the appropriate directory
2717 # is available, and by checking whether or not specific configurations
2718 # have requested that this magic not happen.
2720 # The command line options always override the explicit settings in
2721 # configure.in, and the settings in configure.in override this magic.
2723 # If the default for a toolchain is to use GNU as and ld, and you don't
2724 # want to do that, then you should use the --without-gnu-as and
2725 # --without-gnu-ld options for the configure script.
2727 if test x
${use_gnu_as} = x
&&
2728 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
2730 extra_host_args
="$extra_host_args --with-gnu-as"
2733 if test x
${use_gnu_ld} = x
&&
2734 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
2736 extra_host_args
="$extra_host_args --with-gnu-ld"
2739 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2740 # can detect this case.
2742 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
2744 extra_host_args
="$extra_host_args --with-newlib"
2747 # Handle ${copy_dirs}
2748 set fnord
${copy_dirs}
2750 while test $# != 0 ; do
2751 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
2754 echo Copying
$1 to
$2
2756 # Use the install script to create the directory and all required
2757 # parent directories.
2758 if test -d $2 ; then
2762 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
2765 # Copy the directory, assuming we have tar.
2766 # FIXME: Should we use B in the second tar? Not all systems support it.
2767 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
2769 # It is the responsibility of the user to correctly adjust all
2770 # symlinks. If somebody can figure out how to handle them correctly
2771 # here, feel free to add the code.
2778 # Determine a target-dependent exec_prefix that the installed
2779 # gcc will search in. Keep this list sorted by triplet, with
2780 # the *-*-osname triplets last.
2784 md_exec_prefix
=/gnu
/lib
/gcc-lib
2786 i3456786-pc-msdosdjgpp
*)
2787 md_exec_prefix
=/dev
/env
/DJDIR
/bin
2789 i3456786-
*-sco3.2v5
*)
2790 if test $with_gnu_as = yes; then
2791 md_exec_prefix
=/usr
/gnu
/bin
2793 md_exec_prefix
=/usr
/ccs
/bin
/elf
2798 powerpc-
*-chorusos* | \
2799 powerpc
*-*-eabi* | \
2800 powerpc
*-*-sysv* | \
2801 powerpc
*-*-kaos* | \
2803 md_exec_prefix
=/usr
/ccs
/bin
2808 md_exec_prefix
=/usr
/ccs
/bin
2823 md_exec_prefix
=/usr
/ccs
/bin
2827 extra_arflags_for_target
=
2828 extra_nmflags_for_target
=
2829 extra_ranlibflags_for_target
=
2830 target_makefile_frag
=/dev
/null
2833 target_makefile_frag
="config/mt-netware"
2835 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
2836 target_makefile_frag
="config/mt-gnu"
2838 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
2839 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2840 # commands to handle both 32-bit and 64-bit objects. These flags are
2841 # harmless if we're using GNU nm or ar.
2842 extra_arflags_for_target
=" -X32_64"
2843 extra_nmflags_for_target
=" -B -X32_64"
2846 # ranlib from Darwin requires the -c flag to look at common symbols.
2847 extra_ranlibflags_for_target
=" -c"
2849 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
2850 target_makefile_frag
="config/mt-wince"
2854 alphaieee_frag
=/dev
/null
2857 # This just makes sure to use the -mieee option to build target libs.
2858 # This should probably be set individually by each library.
2859 alphaieee_frag
="config/mt-alphaieee"
2863 # If --enable-target-optspace always use -Os instead of -O2 to build
2864 # the target libraries, similarly if it is not specified, use -Os
2865 # on selected platforms.
2866 ospace_frag
=/dev
/null
2867 case "${enable_target_optspace}:${target}" in
2869 ospace_frag
="config/mt-ospace"
2872 ospace_frag
="config/mt-d30v"
2874 :m32r-
* |
:d10v-
* |
:fr30-
*)
2875 ospace_frag
="config/mt-ospace"
2880 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2884 # Default to using --with-stabs for certain targets.
2885 if test x
${with_stabs} = x
; then
2889 mips
*-*-* | alpha
*-*-osf*)
2891 extra_host_args
="${extra_host_args} --with-stabs"
2896 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2897 # them automatically.
2900 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2904 # Some systems (e.g., one of the i386-aix systems the gas testers are
2905 # using) don't handle "\$" correctly, so don't use it here.
2906 tooldir
='${exec_prefix}'/${target_alias}
2907 build_tooldir
=${tooldir}
2909 # Create a .gdbinit file which runs the one in srcdir
2910 # and tells GDB to look there for source files.
2912 if test -r ${srcdir}/.gdbinit
; then
2915 *) cat > .
/.gdbinit
<<EOF
2919 source ${srcdir}/.gdbinit
2925 # Make sure that the compiler is able to generate an executable. If it
2926 # can't, we are probably in trouble. We don't care whether we can run the
2927 # executable--we might be using a cross compiler--we only care whether it
2928 # can be created. At this point the main configure script has set CC.
2930 echo "int main () { return 0; }" > conftest.c
2931 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2932 if test $?
= 0 ; then
2933 if test -s conftest ||
test -s conftest.exe
; then
2939 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2940 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2947 # The Solaris /usr/ucb/cc compiler does not appear to work.
2949 sparc-sun-solaris2
*)
2950 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
2951 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2953 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
2954 if test -d /opt
/cygnus
/bin
; then
2955 if test "$could_use" = "" ; then
2956 could_use
="/opt/cygnus/bin"
2958 could_use
="$could_use or /opt/cygnus/bin"
2961 if test "$could_use" = "" ; then
2962 echo "Warning: compilation may fail because you're using"
2963 echo "/usr/ucb/cc. You should change your PATH or CC "
2964 echo "variable and rerun configure."
2966 echo "Warning: compilation may fail because you're using"
2967 echo "/usr/ucb/cc, when you should use the C compiler from"
2968 echo "$could_use. You should change your"
2969 echo "PATH or CC variable and rerun configure."
2976 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
2977 *-*-darwin* |
*-*-rhapsody* ) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
2978 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
2981 # Record target_configdirs and the configure arguments for target and
2982 # build configuration in Makefile.
2983 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2984 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
2986 # Determine whether gdb needs tk/tcl or not.
2987 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2988 # and in that case we want gdb to be built without tk. Ugh!
2989 # In fact I believe gdb is the *only* package directly dependent on tk,
2990 # so we should be able to put the 'maybe's in unconditionally and
2991 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2992 # 100% sure that that's safe though.
2994 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
2995 case "$enable_gdbtk" in
2999 GDB_TK
="${gdb_tk}" ;;
3001 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3002 # distro. Eventually someone will fix this and move Insight, nee
3003 # gdbtk to a separate directory.
3004 if test -d ${srcdir}/gdb
/gdbtk
; then
3011 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3012 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3014 # Strip out unwanted targets.
3016 # While at that, we remove Makefiles if we were started for recursive
3017 # configuration, so that the top-level Makefile reconfigures them,
3018 # like we used to do when configure itself was recursive.
3020 # Loop over modules. $extrasub must be used with care, limiting as
3021 # much as possible the usage of range addresses. That's because autoconf
3022 # splits the sed script to overcome limits in the number of commands,
3023 # and relying on carefully-timed sed passes may turn out to be very hard
3024 # to maintain later. In this particular case, you just have to be careful
3025 # not to nest @if/@endif pairs, because configure will not warn you at all.
3027 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3028 if test "${enable_bootstrap+set}" = set; then
3029 enableval
="$enable_bootstrap"
3032 enable_bootstrap
=default
3036 # Issue errors and warnings for invalid/strange bootstrap combinations.
3037 case "$configdirs" in
3038 *gcc
*) have_compiler
=yes ;;
3039 *) have_compiler
=no
;;
3042 case "$have_compiler:$host:$target:$enable_bootstrap" in
3045 # Default behavior. Enable bootstrap if we have a compiler
3046 # and we are in a native configuration.
3047 yes:$build:$build:default
)
3048 enable_bootstrap
=yes ;;
3051 enable_bootstrap
=no
;;
3053 # We have a compiler and we are in a native configuration, bootstrap is ok
3054 yes:$build:$build:yes)
3057 # Other configurations, but we have a compiler. Assume the user knows
3060 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3063 # No compiler: if they passed --enable-bootstrap explicitly, fail
3065 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3067 # Fail if wrong command line
3069 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3073 # Adjust the toplevel makefile according to whether bootstrap was selected.
3074 case "$enable_bootstrap" in
3076 bootstrap_suffix
=bootstrap
;;
3078 bootstrap_suffix
=no-bootstrap
;;
3081 for module
in ${build_configdirs} ; do
3082 if test -z "${no_recursion}" \
3083 && test -f ${build_subdir}/${module}/Makefile
; then
3084 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3085 rm -f ${build_subdir}/${module}/Makefile
3088 /^@if build-$module\$/d
3089 /^@endif build-$module\$/d
3090 /^@if build-$module-$bootstrap_suffix\$/d
3091 /^@endif build-$module-$bootstrap_suffix\$/d"
3093 for module
in ${configdirs} ; do
3094 if test -z "${no_recursion}"; then
3095 for file in stage
*-${module}/Makefile
${module}/Makefile
; do
3096 if test -f ${file}; then
3097 echo 1>&2 "*** removing ${file} to force reconfigure"
3104 /^@endif $module\$/d
3105 /^@if $module-$bootstrap_suffix\$/d
3106 /^@endif $module-$bootstrap_suffix\$/d"
3108 for module
in ${target_configdirs} ; do
3109 if test -z "${no_recursion}" \
3110 && test -f ${target_subdir}/${module}/Makefile
; then
3111 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3112 rm -f ${target_subdir}/${module}/Makefile
3115 /^@if target-$module\$/d
3116 /^@endif target-$module\$/d
3117 /^@if target-$module-$bootstrap_suffix\$/d
3118 /^@endif target-$module-$bootstrap_suffix\$/d"
3122 /^@if /,/^@endif /d"
3124 # Create the serialization dependencies. This uses a temporary file.
3126 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3127 if test "${enable_serial_configure+set}" = set; then
3128 enableval
="$enable_serial_configure"
3133 case ${enable_serial_configure} in
3135 enable_serial_build_configure
=yes
3136 enable_serial_host_configure
=yes
3137 enable_serial_target_configure
=yes
3141 # These force 'configure's to be done one at a time, to avoid problems
3142 # with contention over a shared config.cache.
3144 echo '# serdep.tmp' > serdep.tmp
3146 test "x${enable_serial_build_configure}" = xyes
&&
3147 for item
in ${build_configdirs} ; do
3150 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
3155 test "x${enable_serial_host_configure}" = xyes
&&
3156 for item
in ${configdirs} ; do
3159 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
3164 test "x${enable_serial_target_configure}" = xyes
&&
3165 for item
in ${target_configdirs} ; do
3168 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
3172 serialization_dependencies
=serdep.tmp
3175 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3176 # target and nonopt. These are the ones we might not want to pass
3177 # down to subconfigures. Also strip program-prefix, program-suffix,
3178 # and program-transform-name, so that we can pass down a consistent
3179 # program-transform-name. If autoconf has put single quotes around
3180 # any of these arguments (because they contain shell metacharacters)
3181 # then this will fail; in practice this only happens for
3182 # --program-transform-name, so be sure to override --program-transform-name
3183 # at the end of the argument list.
3184 # These will be expanded by make, so quote '$'.
3185 cat <<\EOF_SED
> conftestsed
3187 s
/ --c[a-z-
]*[= ][^
]*//g
3188 s
/ --sr[a-z-
]*[= ][^
]*//g
3189 s
/ --ho[a-z-
]*[= ][^
]*//g
3190 s
/ --bu[a-z-
]*[= ][^
]*//g
3191 s
/ --t[a-z-
]*[= ][^
]*//g
3192 s
/ --program-[pst
][a-z-
]*[= ][^
]*//g
3193 s
/ -cache-file[= ][^
]*//g
3194 s
/ -srcdir[= ][^
]*//g
3195 s
/ -host[= ][^
]*//g
3196 s
/ -build[= ][^
]*//g
3197 s
/ -target[= ][^
]*//g
3198 s
/ -program-prefix[= ][^
]*//g
3199 s
/ -program-suffix[= ][^
]*//g
3200 s
/ -program-transform-name[= ][^
]*//g
3205 sed -f conftestsed <<EOF_SED > conftestsed.out
3206 ${ac_configure_args}
3208 baseargs=`cat conftestsed.out`
3209 rm -f conftestsed conftestsed.out
3211 # Add in --program-transform-name, after --program-prefix and
3212 # --program-suffix have been applied to it. Autoconf has already
3213 # doubled dollar signs and backslashes in program_transform_name; we want
3214 # the backslashes un-doubled, and then the entire thing wrapped in single
3215 # quotes, because this will be expanded first by make and then by the shell.
3216 # Also, because we want to override the logic in subdir configure scripts to
3217 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3218 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3219 ${program_transform_name}
3221 gcc_transform_name=`cat conftestsed.out`
3222 rm -f conftestsed.out
3223 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3225 # For the build-side libraries, we just need to pretend we're native
,
3226 # and not use the same cache file. Multilibs are neither needed nor
3228 build_configargs
="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3230 # For host modules, accept cache file option, or specification as blank.
3231 case "${cache_file}" in
3233 cache_file_option
="" ;;
3234 /* |
[A-Za-z
]:[\\/]* ) # absolute path
3235 cache_file_option
="--cache-file=${cache_file}" ;;
3237 cache_file_option
="--cache-file=../${cache_file}" ;;
3240 # Host dirs don't like to share a cache file either, horribly enough.
3241 # This seems to be due to autoconf 2.5x stupidity.
3242 host_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3244 target_configargs
=${baseargs}
3246 # Passing a --with-cross-host argument lets the target libraries know
3247 # whether they are being built with a cross-compiler or being built
3248 # native. However, it would be better to use other mechanisms to make the
3249 # sorts of decisions they want to make on this basis. Please consider
3250 # this option to be deprecated. FIXME.
3251 if test x
${is_cross_compiler} = xyes
; then
3252 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3255 # Default to --enable-multilib.
3256 if test x
${enable_multilib} = x
; then
3257 target_configargs
="--enable-multilib ${target_configargs}"
3260 # Pass --with-newlib if appropriate. Note that target_configdirs has
3261 # changed from the earlier setting of with_newlib.
3262 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3263 target_configargs
="--with-newlib ${target_configargs}"
3266 # Different target subdirs use different values of certain variables
3267 # (notably CXX). Worse, multilibs use *lots* of different values.
3268 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3269 # it doesn't automatically accept command-line overrides of them.
3270 # This means it's not safe for target subdirs to share a cache file,
3271 # which is disgusting, but there you have it. Hopefully this can be
3272 # fixed in future. It's still worthwhile to use a cache file for each
3273 # directory. I think.
3275 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3276 # We need to pass --target, as newer autoconf's requires consistency
3277 # for target_alias and gcc doesn't manage it consistently.
3278 target_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3281 case " $target_configdirs " in
3283 case " $target_configargs " in
3284 *" --with-newlib "*)
3287 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' ;;
3290 # If we're not building GCC, don't discard standard headers.
3291 if test -d ${srcdir}/gcc
; then
3292 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3294 if test "${build}" != "${host}"; then
3295 # On Canadian crosses, CC_FOR_TARGET will have already been set
3296 # by `configure', so we won't have an opportunity to add -Bgcc/
3297 # to it. This is right: we don't want to search that directory
3298 # for binaries, but we want the header files in there, so add
3300 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3302 # Someone might think of using the pre-installed headers on
3303 # Canadian crosses, in case the installed compiler is not fully
3304 # compatible with the compiler being built. In this case, it
3305 # would be better to flag an error than risking having
3306 # incompatible object files being constructed. We can't
3307 # guarantee that an error will be flagged, but let's hope the
3308 # compiler will do it, when presented with incompatible header
3313 case "${target}-${is_cross_compiler}" in
3314 i
[3456789]86-*-linux*-no)
3315 # Here host == target, so we don't need to build gcc,
3316 # so we don't want to discard standard headers.
3317 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3320 # If we're building newlib, use its generic headers last, but search
3321 # for any libc-related directories first (so make it the last -B
3323 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3331 # Allow the user to override the flags for
3332 # our build compiler if desired.
3333 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3335 # On Canadian crosses, we'll be searching the right directories for
3336 # the previously-installed cross compiler, so don't bother to add
3337 # flags for directories within the install tree of the compiler
3338 # being built; programs in there won't even run.
3339 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3340 # Search for pre-installed headers if nothing else fits.
3341 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3344 if test "x
${use_gnu_ld}" = x &&
3345 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3346 # Arrange for us to find uninstalled linker scripts.
3347 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3350 # Search for other target-specific linker scripts and such.
3353 if test -d ${srcdir}/libgloss/m32c; then
3354 # This is for crt0.o
3355 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3356 # This is for r8c.ld
3357 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3358 # This is for libnosys.a
3359 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3364 # Makefile fragments.
3365 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3367 eval fragval=\$$frag
3368 if test $fragval != /dev/null; then
3369 eval $frag=${srcdir}/$fragval
3377 # Miscellanea: directories, flags, etc.
3385 # Build module lists & subconfigure args.
3389 # Host module lists & subconfigure args.
3393 # Target module lists & subconfigure args.
3401 # Generate default definitions for YACC, M4, LEX and other programs that run
3402 # on the build machine. These are used if the Makefile can't locate these
3403 # programs in objdir.
3404 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3406 for ac_prog in 'bison -y' byacc yacc
3408 # Extract the first word of "$ac_prog", so it can be a program name with args.
3409 set dummy $ac_prog; ac_word=$2
3410 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3411 echo "configure
:3412: checking
for $ac_word" >&5
3412 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3413 echo $ac_n "(cached
) $ac_c" 1>&6
3415 if test -n "$YACC"; then
3416 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3420 for ac_dir in $ac_dummy; do
3421 test -z "$ac_dir" && ac_dir=.
3422 if test -f $ac_dir/$ac_word; then
3423 ac_cv_prog_YACC="$ac_prog"
3430 YACC="$ac_cv_prog_YACC"
3431 if test -n "$YACC"; then
3432 echo "$ac_t""$YACC" 1>&6
3434 echo "$ac_t""no
" 1>&6
3437 test -n "$YACC" && break
3439 test -n "$YACC" || YACC="$MISSING bison
-y"
3441 case " $build_configdirs " in
3442 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3443 *" byacc
"*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3446 for ac_prog in bison
3448 # Extract the first word of "$ac_prog", so it can be a program name with args.
3449 set dummy $ac_prog; ac_word=$2
3450 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3451 echo "configure
:3452: checking
for $ac_word" >&5
3452 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3453 echo $ac_n "(cached
) $ac_c" 1>&6
3455 if test -n "$BISON"; then
3456 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3458 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3460 for ac_dir in $ac_dummy; do
3461 test -z "$ac_dir" && ac_dir=.
3462 if test -f $ac_dir/$ac_word; then
3463 ac_cv_prog_BISON="$ac_prog"
3470 BISON="$ac_cv_prog_BISON"
3471 if test -n "$BISON"; then
3472 echo "$ac_t""$BISON" 1>&6
3474 echo "$ac_t""no
" 1>&6
3477 test -n "$BISON" && break
3479 test -n "$BISON" || BISON="$MISSING bison
"
3481 case " $build_configdirs " in
3482 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3485 for ac_prog in gm4 gnum4 m4
3487 # Extract the first word of "$ac_prog", so it can be a program name with args.
3488 set dummy $ac_prog; ac_word=$2
3489 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3490 echo "configure
:3491: checking
for $ac_word" >&5
3491 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3492 echo $ac_n "(cached
) $ac_c" 1>&6
3494 if test -n "$M4"; then
3495 ac_cv_prog_M4="$M4" # Let the user override the test.
3497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3499 for ac_dir in $ac_dummy; do
3500 test -z "$ac_dir" && ac_dir=.
3501 if test -f $ac_dir/$ac_word; then
3502 ac_cv_prog_M4="$ac_prog"
3510 if test -n "$M4"; then
3511 echo "$ac_t""$M4" 1>&6
3513 echo "$ac_t""no
" 1>&6
3516 test -n "$M4" && break
3518 test -n "$M4" || M4="$MISSING m4"
3520 case " $build_configdirs " in
3521 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3524 for ac_prog in flex lex
3526 # Extract the first word of "$ac_prog", so it can be a program name with args.
3527 set dummy $ac_prog; ac_word=$2
3528 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3529 echo "configure
:3530: checking
for $ac_word" >&5
3530 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3531 echo $ac_n "(cached
) $ac_c" 1>&6
3533 if test -n "$LEX"; then
3534 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3538 for ac_dir in $ac_dummy; do
3539 test -z "$ac_dir" && ac_dir=.
3540 if test -f $ac_dir/$ac_word; then
3541 ac_cv_prog_LEX="$ac_prog"
3548 LEX="$ac_cv_prog_LEX"
3549 if test -n "$LEX"; then
3550 echo "$ac_t""$LEX" 1>&6
3552 echo "$ac_t""no
" 1>&6
3555 test -n "$LEX" && break
3557 test -n "$LEX" || LEX="$MISSING flex
"
3559 case " $build_configdirs " in
3560 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3561 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3566 # Extract the first word of "$ac_prog", so it can be a program name with args.
3567 set dummy $ac_prog; ac_word=$2
3568 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3569 echo "configure
:3570: checking
for $ac_word" >&5
3570 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3571 echo $ac_n "(cached
) $ac_c" 1>&6
3573 if test -n "$FLEX"; then
3574 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3578 for ac_dir in $ac_dummy; do
3579 test -z "$ac_dir" && ac_dir=.
3580 if test -f $ac_dir/$ac_word; then
3581 ac_cv_prog_FLEX="$ac_prog"
3588 FLEX="$ac_cv_prog_FLEX"
3589 if test -n "$FLEX"; then
3590 echo "$ac_t""$FLEX" 1>&6
3592 echo "$ac_t""no
" 1>&6
3595 test -n "$FLEX" && break
3597 test -n "$FLEX" || FLEX="$MISSING flex
"
3599 case " $build_configdirs " in
3600 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3603 for ac_prog in makeinfo
3605 # Extract the first word of "$ac_prog", so it can be a program name with args.
3606 set dummy $ac_prog; ac_word=$2
3607 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3608 echo "configure
:3609: checking
for $ac_word" >&5
3609 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3610 echo $ac_n "(cached
) $ac_c" 1>&6
3612 if test -n "$MAKEINFO"; then
3613 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3617 for ac_dir in $ac_dummy; do
3618 test -z "$ac_dir" && ac_dir=.
3619 if test -f $ac_dir/$ac_word; then
3620 ac_cv_prog_MAKEINFO="$ac_prog"
3627 MAKEINFO="$ac_cv_prog_MAKEINFO"
3628 if test -n "$MAKEINFO"; then
3629 echo "$ac_t""$MAKEINFO" 1>&6
3631 echo "$ac_t""no
" 1>&6
3634 test -n "$MAKEINFO" && break
3636 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
3638 case " $build_configdirs " in
3639 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3642 # For an installed makeinfo, we require it to be from texinfo 4.4 or
3643 # higher, else we use the "missing
" dummy.
3644 if ${MAKEINFO} --version \
3645 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
3648 MAKEINFO="$MISSING makeinfo
"
3654 # FIXME: expect and dejagnu may become build tools?
3656 for ac_prog in expect
3658 # Extract the first word of "$ac_prog", so it can be a program name with args.
3659 set dummy $ac_prog; ac_word=$2
3660 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3661 echo "configure
:3662: checking
for $ac_word" >&5
3662 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3663 echo $ac_n "(cached
) $ac_c" 1>&6
3665 if test -n "$EXPECT"; then
3666 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3670 for ac_dir in $ac_dummy; do
3671 test -z "$ac_dir" && ac_dir=.
3672 if test -f $ac_dir/$ac_word; then
3673 ac_cv_prog_EXPECT="$ac_prog"
3680 EXPECT="$ac_cv_prog_EXPECT"
3681 if test -n "$EXPECT"; then
3682 echo "$ac_t""$EXPECT" 1>&6
3684 echo "$ac_t""no
" 1>&6
3687 test -n "$EXPECT" && break
3689 test -n "$EXPECT" || EXPECT="expect
"
3691 case " $configdirs " in
3693 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3697 for ac_prog in runtest
3699 # Extract the first word of "$ac_prog", so it can be a program name with args.
3700 set dummy $ac_prog; ac_word=$2
3701 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3702 echo "configure
:3703: checking
for $ac_word" >&5
3703 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3704 echo $ac_n "(cached
) $ac_c" 1>&6
3706 if test -n "$RUNTEST"; then
3707 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3711 for ac_dir in $ac_dummy; do
3712 test -z "$ac_dir" && ac_dir=.
3713 if test -f $ac_dir/$ac_word; then
3714 ac_cv_prog_RUNTEST="$ac_prog"
3721 RUNTEST="$ac_cv_prog_RUNTEST"
3722 if test -n "$RUNTEST"; then
3723 echo "$ac_t""$RUNTEST" 1>&6
3725 echo "$ac_t""no
" 1>&6
3728 test -n "$RUNTEST" && break
3730 test -n "$RUNTEST" || RUNTEST="runtest
"
3732 case " $configdirs " in
3734 test $host = $build && RUNTEST='$$r/$(HOST_SUBDIR)/dejagnu/runtest'
3741 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3742 ncn_target_tool_prefix=
3743 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3745 for ncn_progname in ar; do
3746 if test -n "$ncn_tool_prefix"; then
3747 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3748 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3749 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3750 echo "configure
:3751: checking
for $ac_word" >&5
3751 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3752 echo $ac_n "(cached
) $ac_c" 1>&6
3754 if test -n "$AR"; then
3755 ac_cv_prog_AR="$AR" # Let the user override the test.
3757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3759 for ac_dir in $ac_dummy; do
3760 test -z "$ac_dir" && ac_dir=.
3761 if test -f $ac_dir/$ac_word; then
3762 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3770 if test -n "$AR"; then
3771 echo "$ac_t""$AR" 1>&6
3773 echo "$ac_t""no
" 1>&6
3777 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3779 set dummy ${ncn_progname}; ac_word=$2
3780 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3781 echo "configure
:3782: checking
for $ac_word" >&5
3782 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3783 echo $ac_n "(cached
) $ac_c" 1>&6
3785 if test -n "$AR"; then
3786 ac_cv_prog_AR="$AR" # Let the user override the test.
3788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3790 for ac_dir in $ac_dummy; do
3791 test -z "$ac_dir" && ac_dir=.
3792 if test -f $ac_dir/$ac_word; then
3793 ac_cv_prog_AR="${ncn_progname}"
3801 if test -n "$AR"; then
3802 echo "$ac_t""$AR" 1>&6
3804 echo "$ac_t""no
" 1>&6
3808 test -n "$ac_cv_prog_AR" && break
3811 if test -z "$ac_cv_prog_AR" ; then
3813 if test $build = $host ; then
3816 AR="${ncn_tool_prefix}$2"
3820 for ncn_progname in as; do
3821 if test -n "$ncn_tool_prefix"; then
3822 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3823 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3824 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3825 echo "configure
:3826: checking
for $ac_word" >&5
3826 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3827 echo $ac_n "(cached
) $ac_c" 1>&6
3829 if test -n "$AS"; then
3830 ac_cv_prog_AS="$AS" # Let the user override the test.
3832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3834 for ac_dir in $ac_dummy; do
3835 test -z "$ac_dir" && ac_dir=.
3836 if test -f $ac_dir/$ac_word; then
3837 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3845 if test -n "$AS"; then
3846 echo "$ac_t""$AS" 1>&6
3848 echo "$ac_t""no
" 1>&6
3852 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3854 set dummy ${ncn_progname}; ac_word=$2
3855 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3856 echo "configure
:3857: checking
for $ac_word" >&5
3857 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3858 echo $ac_n "(cached
) $ac_c" 1>&6
3860 if test -n "$AS"; then
3861 ac_cv_prog_AS="$AS" # Let the user override the test.
3863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3865 for ac_dir in $ac_dummy; do
3866 test -z "$ac_dir" && ac_dir=.
3867 if test -f $ac_dir/$ac_word; then
3868 ac_cv_prog_AS="${ncn_progname}"
3876 if test -n "$AS"; then
3877 echo "$ac_t""$AS" 1>&6
3879 echo "$ac_t""no
" 1>&6
3883 test -n "$ac_cv_prog_AS" && break
3886 if test -z "$ac_cv_prog_AS" ; then
3888 if test $build = $host ; then
3891 AS="${ncn_tool_prefix}$2"
3895 for ncn_progname in dlltool; do
3896 if test -n "$ncn_tool_prefix"; then
3897 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3898 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3899 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3900 echo "configure
:3901: checking
for $ac_word" >&5
3901 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3902 echo $ac_n "(cached
) $ac_c" 1>&6
3904 if test -n "$DLLTOOL"; then
3905 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3909 for ac_dir in $ac_dummy; do
3910 test -z "$ac_dir" && ac_dir=.
3911 if test -f $ac_dir/$ac_word; then
3912 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3919 DLLTOOL="$ac_cv_prog_DLLTOOL"
3920 if test -n "$DLLTOOL"; then
3921 echo "$ac_t""$DLLTOOL" 1>&6
3923 echo "$ac_t""no
" 1>&6
3927 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3929 set dummy ${ncn_progname}; ac_word=$2
3930 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3931 echo "configure
:3932: checking
for $ac_word" >&5
3932 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3933 echo $ac_n "(cached
) $ac_c" 1>&6
3935 if test -n "$DLLTOOL"; then
3936 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3940 for ac_dir in $ac_dummy; do
3941 test -z "$ac_dir" && ac_dir=.
3942 if test -f $ac_dir/$ac_word; then
3943 ac_cv_prog_DLLTOOL="${ncn_progname}"
3950 DLLTOOL="$ac_cv_prog_DLLTOOL"
3951 if test -n "$DLLTOOL"; then
3952 echo "$ac_t""$DLLTOOL" 1>&6
3954 echo "$ac_t""no
" 1>&6
3958 test -n "$ac_cv_prog_DLLTOOL" && break
3961 if test -z "$ac_cv_prog_DLLTOOL" ; then
3963 if test $build = $host ; then
3966 DLLTOOL="${ncn_tool_prefix}$2"
3970 for ncn_progname in ld; do
3971 if test -n "$ncn_tool_prefix"; then
3972 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3973 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3974 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3975 echo "configure
:3976: checking
for $ac_word" >&5
3976 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3977 echo $ac_n "(cached
) $ac_c" 1>&6
3979 if test -n "$LD"; then
3980 ac_cv_prog_LD="$LD" # Let the user override the test.
3982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3984 for ac_dir in $ac_dummy; do
3985 test -z "$ac_dir" && ac_dir=.
3986 if test -f $ac_dir/$ac_word; then
3987 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3995 if test -n "$LD"; then
3996 echo "$ac_t""$LD" 1>&6
3998 echo "$ac_t""no
" 1>&6
4002 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4004 set dummy ${ncn_progname}; ac_word=$2
4005 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4006 echo "configure
:4007: checking
for $ac_word" >&5
4007 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4008 echo $ac_n "(cached
) $ac_c" 1>&6
4010 if test -n "$LD"; then
4011 ac_cv_prog_LD="$LD" # Let the user override the test.
4013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4015 for ac_dir in $ac_dummy; do
4016 test -z "$ac_dir" && ac_dir=.
4017 if test -f $ac_dir/$ac_word; then
4018 ac_cv_prog_LD="${ncn_progname}"
4026 if test -n "$LD"; then
4027 echo "$ac_t""$LD" 1>&6
4029 echo "$ac_t""no
" 1>&6
4033 test -n "$ac_cv_prog_LD" && break
4036 if test -z "$ac_cv_prog_LD" ; then
4038 if test $build = $host ; then
4041 LD="${ncn_tool_prefix}$2"
4045 for ncn_progname in lipo; do
4046 if test -n "$ncn_tool_prefix"; then
4047 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4048 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4049 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4050 echo "configure
:4051: checking
for $ac_word" >&5
4051 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4052 echo $ac_n "(cached
) $ac_c" 1>&6
4054 if test -n "$LIPO"; then
4055 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4059 for ac_dir in $ac_dummy; do
4060 test -z "$ac_dir" && ac_dir=.
4061 if test -f $ac_dir/$ac_word; then
4062 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4069 LIPO="$ac_cv_prog_LIPO"
4070 if test -n "$LIPO"; then
4071 echo "$ac_t""$LIPO" 1>&6
4073 echo "$ac_t""no
" 1>&6
4077 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4079 set dummy ${ncn_progname}; ac_word=$2
4080 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4081 echo "configure
:4082: checking
for $ac_word" >&5
4082 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4083 echo $ac_n "(cached
) $ac_c" 1>&6
4085 if test -n "$LIPO"; then
4086 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4090 for ac_dir in $ac_dummy; do
4091 test -z "$ac_dir" && ac_dir=.
4092 if test -f $ac_dir/$ac_word; then
4093 ac_cv_prog_LIPO="${ncn_progname}"
4100 LIPO="$ac_cv_prog_LIPO"
4101 if test -n "$LIPO"; then
4102 echo "$ac_t""$LIPO" 1>&6
4104 echo "$ac_t""no
" 1>&6
4108 test -n "$ac_cv_prog_LIPO" && break
4111 if test -z "$ac_cv_prog_LIPO" ; then
4113 if test $build = $host ; then
4116 LIPO="${ncn_tool_prefix}$2"
4120 for ncn_progname in nm; do
4121 if test -n "$ncn_tool_prefix"; then
4122 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4123 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4124 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4125 echo "configure
:4126: checking
for $ac_word" >&5
4126 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4127 echo $ac_n "(cached
) $ac_c" 1>&6
4129 if test -n "$NM"; then
4130 ac_cv_prog_NM="$NM" # Let the user override the test.
4132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4134 for ac_dir in $ac_dummy; do
4135 test -z "$ac_dir" && ac_dir=.
4136 if test -f $ac_dir/$ac_word; then
4137 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4145 if test -n "$NM"; then
4146 echo "$ac_t""$NM" 1>&6
4148 echo "$ac_t""no
" 1>&6
4152 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4153 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4154 set dummy ${ncn_progname}; ac_word=$2
4155 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4156 echo "configure
:4157: checking
for $ac_word" >&5
4157 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4158 echo $ac_n "(cached
) $ac_c" 1>&6
4160 if test -n "$NM"; then
4161 ac_cv_prog_NM="$NM" # Let the user override the test.
4163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4165 for ac_dir in $ac_dummy; do
4166 test -z "$ac_dir" && ac_dir=.
4167 if test -f $ac_dir/$ac_word; then
4168 ac_cv_prog_NM="${ncn_progname}"
4176 if test -n "$NM"; then
4177 echo "$ac_t""$NM" 1>&6
4179 echo "$ac_t""no
" 1>&6
4183 test -n "$ac_cv_prog_NM" && break
4186 if test -z "$ac_cv_prog_NM" ; then
4188 if test $build = $host ; then
4191 NM="${ncn_tool_prefix}$2"
4195 for ncn_progname in ranlib; do
4196 if test -n "$ncn_tool_prefix"; then
4197 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4198 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4199 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4200 echo "configure
:4201: checking
for $ac_word" >&5
4201 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4202 echo $ac_n "(cached
) $ac_c" 1>&6
4204 if test -n "$RANLIB"; then
4205 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4209 for ac_dir in $ac_dummy; do
4210 test -z "$ac_dir" && ac_dir=.
4211 if test -f $ac_dir/$ac_word; then
4212 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4219 RANLIB="$ac_cv_prog_RANLIB"
4220 if test -n "$RANLIB"; then
4221 echo "$ac_t""$RANLIB" 1>&6
4223 echo "$ac_t""no
" 1>&6
4227 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4229 set dummy ${ncn_progname}; ac_word=$2
4230 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4231 echo "configure
:4232: checking
for $ac_word" >&5
4232 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4233 echo $ac_n "(cached
) $ac_c" 1>&6
4235 if test -n "$RANLIB"; then
4236 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4240 for ac_dir in $ac_dummy; do
4241 test -z "$ac_dir" && ac_dir=.
4242 if test -f $ac_dir/$ac_word; then
4243 ac_cv_prog_RANLIB="${ncn_progname}"
4250 RANLIB="$ac_cv_prog_RANLIB"
4251 if test -n "$RANLIB"; then
4252 echo "$ac_t""$RANLIB" 1>&6
4254 echo "$ac_t""no
" 1>&6
4258 test -n "$ac_cv_prog_RANLIB" && break
4261 if test -z "$ac_cv_prog_RANLIB" ; then
4265 for ncn_progname in strip; do
4266 if test -n "$ncn_tool_prefix"; then
4267 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4268 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4269 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4270 echo "configure
:4271: checking
for $ac_word" >&5
4271 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4272 echo $ac_n "(cached
) $ac_c" 1>&6
4274 if test -n "$STRIP"; then
4275 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4279 for ac_dir in $ac_dummy; do
4280 test -z "$ac_dir" && ac_dir=.
4281 if test -f $ac_dir/$ac_word; then
4282 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4289 STRIP="$ac_cv_prog_STRIP"
4290 if test -n "$STRIP"; then
4291 echo "$ac_t""$STRIP" 1>&6
4293 echo "$ac_t""no
" 1>&6
4297 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4299 set dummy ${ncn_progname}; ac_word=$2
4300 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4301 echo "configure
:4302: checking
for $ac_word" >&5
4302 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4303 echo $ac_n "(cached
) $ac_c" 1>&6
4305 if test -n "$STRIP"; then
4306 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4310 for ac_dir in $ac_dummy; do
4311 test -z "$ac_dir" && ac_dir=.
4312 if test -f $ac_dir/$ac_word; then
4313 ac_cv_prog_STRIP="${ncn_progname}"
4320 STRIP="$ac_cv_prog_STRIP"
4321 if test -n "$STRIP"; then
4322 echo "$ac_t""$STRIP" 1>&6
4324 echo "$ac_t""no
" 1>&6
4328 test -n "$ac_cv_prog_STRIP" && break
4331 if test -z "$ac_cv_prog_STRIP" ; then
4335 for ncn_progname in windres; do
4336 if test -n "$ncn_tool_prefix"; then
4337 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4338 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4339 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4340 echo "configure
:4341: checking
for $ac_word" >&5
4341 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4342 echo $ac_n "(cached
) $ac_c" 1>&6
4344 if test -n "$WINDRES"; then
4345 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4349 for ac_dir in $ac_dummy; do
4350 test -z "$ac_dir" && ac_dir=.
4351 if test -f $ac_dir/$ac_word; then
4352 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4359 WINDRES="$ac_cv_prog_WINDRES"
4360 if test -n "$WINDRES"; then
4361 echo "$ac_t""$WINDRES" 1>&6
4363 echo "$ac_t""no
" 1>&6
4367 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4369 set dummy ${ncn_progname}; ac_word=$2
4370 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4371 echo "configure
:4372: checking
for $ac_word" >&5
4372 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4373 echo $ac_n "(cached
) $ac_c" 1>&6
4375 if test -n "$WINDRES"; then
4376 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4380 for ac_dir in $ac_dummy; do
4381 test -z "$ac_dir" && ac_dir=.
4382 if test -f $ac_dir/$ac_word; then
4383 ac_cv_prog_WINDRES="${ncn_progname}"
4390 WINDRES="$ac_cv_prog_WINDRES"
4391 if test -n "$WINDRES"; then
4392 echo "$ac_t""$WINDRES" 1>&6
4394 echo "$ac_t""no
" 1>&6
4398 test -n "$ac_cv_prog_WINDRES" && break
4401 if test -z "$ac_cv_prog_WINDRES" ; then
4403 if test $build = $host ; then
4406 WINDRES="${ncn_tool_prefix}$2"
4410 for ncn_progname in objcopy; do
4411 if test -n "$ncn_tool_prefix"; then
4412 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4413 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4414 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4415 echo "configure
:4416: checking
for $ac_word" >&5
4416 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4417 echo $ac_n "(cached
) $ac_c" 1>&6
4419 if test -n "$OBJCOPY"; then
4420 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4424 for ac_dir in $ac_dummy; do
4425 test -z "$ac_dir" && ac_dir=.
4426 if test -f $ac_dir/$ac_word; then
4427 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4434 OBJCOPY="$ac_cv_prog_OBJCOPY"
4435 if test -n "$OBJCOPY"; then
4436 echo "$ac_t""$OBJCOPY" 1>&6
4438 echo "$ac_t""no
" 1>&6
4442 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4444 set dummy ${ncn_progname}; ac_word=$2
4445 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4446 echo "configure
:4447: checking
for $ac_word" >&5
4447 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4448 echo $ac_n "(cached
) $ac_c" 1>&6
4450 if test -n "$OBJCOPY"; then
4451 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4455 for ac_dir in $ac_dummy; do
4456 test -z "$ac_dir" && ac_dir=.
4457 if test -f $ac_dir/$ac_word; then
4458 ac_cv_prog_OBJCOPY="${ncn_progname}"
4465 OBJCOPY="$ac_cv_prog_OBJCOPY"
4466 if test -n "$OBJCOPY"; then
4467 echo "$ac_t""$OBJCOPY" 1>&6
4469 echo "$ac_t""no
" 1>&6
4473 test -n "$ac_cv_prog_OBJCOPY" && break
4476 if test -z "$ac_cv_prog_OBJCOPY" ; then
4478 if test $build = $host ; then
4481 OBJCOPY="${ncn_tool_prefix}$2"
4485 for ncn_progname in objdump; do
4486 if test -n "$ncn_tool_prefix"; then
4487 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4488 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4489 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4490 echo "configure
:4491: checking
for $ac_word" >&5
4491 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4492 echo $ac_n "(cached
) $ac_c" 1>&6
4494 if test -n "$OBJDUMP"; then
4495 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4499 for ac_dir in $ac_dummy; do
4500 test -z "$ac_dir" && ac_dir=.
4501 if test -f $ac_dir/$ac_word; then
4502 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4509 OBJDUMP="$ac_cv_prog_OBJDUMP"
4510 if test -n "$OBJDUMP"; then
4511 echo "$ac_t""$OBJDUMP" 1>&6
4513 echo "$ac_t""no
" 1>&6
4517 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4519 set dummy ${ncn_progname}; ac_word=$2
4520 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4521 echo "configure
:4522: checking
for $ac_word" >&5
4522 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4523 echo $ac_n "(cached
) $ac_c" 1>&6
4525 if test -n "$OBJDUMP"; then
4526 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4530 for ac_dir in $ac_dummy; do
4531 test -z "$ac_dir" && ac_dir=.
4532 if test -f $ac_dir/$ac_word; then
4533 ac_cv_prog_OBJDUMP="${ncn_progname}"
4540 OBJDUMP="$ac_cv_prog_OBJDUMP"
4541 if test -n "$OBJDUMP"; then
4542 echo "$ac_t""$OBJDUMP" 1>&6
4544 echo "$ac_t""no
" 1>&6
4548 test -n "$ac_cv_prog_OBJDUMP" && break
4551 if test -z "$ac_cv_prog_OBJDUMP" ; then
4553 if test $build = $host ; then
4556 OBJDUMP="${ncn_tool_prefix}$2"
4567 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4568 if test "${with_build_time_tools+set}" = set; then
4569 withval="$with_build_time_tools"
4573 with_build_time_tools=
4574 echo "configure
: warning
: argument to
--with-build-time-tools must be an absolute path
" 1>&2
4578 with_build_time_tools=
4582 if test -n "$with_build_time_tools"; then
4583 for ncn_progname in cc gcc; do
4584 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4585 echo "configure
:4586: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4586 if test -x $with_build_time_tools/${ncn_progname}; then
4587 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4588 echo "$ac_t""yes" 1>&6
4591 echo "$ac_t""no
" 1>&6
4596 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4597 for ncn_progname in cc gcc; do
4598 if test -n "$ncn_target_tool_prefix"; then
4599 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4600 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4601 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4602 echo "configure
:4603: checking
for $ac_word" >&5
4603 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4604 echo $ac_n "(cached
) $ac_c" 1>&6
4606 if test -n "$CC_FOR_TARGET"; then
4607 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4611 for ac_dir in $ac_dummy; do
4612 test -z "$ac_dir" && ac_dir=.
4613 if test -f $ac_dir/$ac_word; then
4614 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4621 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4622 if test -n "$CC_FOR_TARGET"; then
4623 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4625 echo "$ac_t""no
" 1>&6
4629 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4631 set dummy ${ncn_progname}; ac_word=$2
4632 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4633 echo "configure
:4634: checking
for $ac_word" >&5
4634 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4635 echo $ac_n "(cached
) $ac_c" 1>&6
4637 if test -n "$CC_FOR_TARGET"; then
4638 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4642 for ac_dir in $ac_dummy; do
4643 test -z "$ac_dir" && ac_dir=.
4644 if test -f $ac_dir/$ac_word; then
4645 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4652 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4653 if test -n "$CC_FOR_TARGET"; then
4654 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4656 echo "$ac_t""no
" 1>&6
4660 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4664 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4666 if test $build = $target ; then
4669 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4673 if test -n "$with_build_time_tools"; then
4674 for ncn_progname in c++ g++ cxx gxx; do
4675 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4676 echo "configure
:4677: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4677 if test -x $with_build_time_tools/${ncn_progname}; then
4678 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4679 echo "$ac_t""yes" 1>&6
4682 echo "$ac_t""no
" 1>&6
4687 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4688 for ncn_progname in c++ g++ cxx gxx; do
4689 if test -n "$ncn_target_tool_prefix"; then
4690 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4691 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4692 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4693 echo "configure
:4694: checking
for $ac_word" >&5
4694 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4695 echo $ac_n "(cached
) $ac_c" 1>&6
4697 if test -n "$CXX_FOR_TARGET"; then
4698 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4702 for ac_dir in $ac_dummy; do
4703 test -z "$ac_dir" && ac_dir=.
4704 if test -f $ac_dir/$ac_word; then
4705 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4712 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4713 if test -n "$CXX_FOR_TARGET"; then
4714 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4716 echo "$ac_t""no
" 1>&6
4720 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4722 set dummy ${ncn_progname}; ac_word=$2
4723 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4724 echo "configure
:4725: checking
for $ac_word" >&5
4725 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4726 echo $ac_n "(cached
) $ac_c" 1>&6
4728 if test -n "$CXX_FOR_TARGET"; then
4729 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4733 for ac_dir in $ac_dummy; do
4734 test -z "$ac_dir" && ac_dir=.
4735 if test -f $ac_dir/$ac_word; then
4736 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4743 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4744 if test -n "$CXX_FOR_TARGET"; then
4745 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4747 echo "$ac_t""no
" 1>&6
4751 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4755 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4756 set dummy c++ g++ cxx gxx
4757 if test $build = $target ; then
4760 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4764 if test -n "$with_build_time_tools"; then
4765 for ncn_progname in gcc; do
4766 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4767 echo "configure
:4768: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4768 if test -x $with_build_time_tools/${ncn_progname}; then
4769 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4770 echo "$ac_t""yes" 1>&6
4773 echo "$ac_t""no
" 1>&6
4778 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4779 for ncn_progname in gcc; do
4780 if test -n "$ncn_target_tool_prefix"; then
4781 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4782 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4783 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4784 echo "configure
:4785: checking
for $ac_word" >&5
4785 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4786 echo $ac_n "(cached
) $ac_c" 1>&6
4788 if test -n "$GCC_FOR_TARGET"; then
4789 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4793 for ac_dir in $ac_dummy; do
4794 test -z "$ac_dir" && ac_dir=.
4795 if test -f $ac_dir/$ac_word; then
4796 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4803 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4804 if test -n "$GCC_FOR_TARGET"; then
4805 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4807 echo "$ac_t""no
" 1>&6
4811 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4813 set dummy ${ncn_progname}; ac_word=$2
4814 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4815 echo "configure
:4816: checking
for $ac_word" >&5
4816 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4817 echo $ac_n "(cached
) $ac_c" 1>&6
4819 if test -n "$GCC_FOR_TARGET"; then
4820 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4824 for ac_dir in $ac_dummy; do
4825 test -z "$ac_dir" && ac_dir=.
4826 if test -f $ac_dir/$ac_word; then
4827 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4834 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4835 if test -n "$GCC_FOR_TARGET"; then
4836 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4838 echo "$ac_t""no
" 1>&6
4842 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4846 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4847 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4850 if test -n "$with_build_time_tools"; then
4851 for ncn_progname in gcj; do
4852 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4853 echo "configure
:4854: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4854 if test -x $with_build_time_tools/${ncn_progname}; then
4855 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4856 echo "$ac_t""yes" 1>&6
4859 echo "$ac_t""no
" 1>&6
4864 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4865 for ncn_progname in gcj; do
4866 if test -n "$ncn_target_tool_prefix"; then
4867 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4868 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4869 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4870 echo "configure
:4871: checking
for $ac_word" >&5
4871 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4872 echo $ac_n "(cached
) $ac_c" 1>&6
4874 if test -n "$GCJ_FOR_TARGET"; then
4875 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4879 for ac_dir in $ac_dummy; do
4880 test -z "$ac_dir" && ac_dir=.
4881 if test -f $ac_dir/$ac_word; then
4882 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4889 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4890 if test -n "$GCJ_FOR_TARGET"; then
4891 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4893 echo "$ac_t""no
" 1>&6
4897 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4899 set dummy ${ncn_progname}; ac_word=$2
4900 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4901 echo "configure
:4902: checking
for $ac_word" >&5
4902 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4903 echo $ac_n "(cached
) $ac_c" 1>&6
4905 if test -n "$GCJ_FOR_TARGET"; then
4906 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4910 for ac_dir in $ac_dummy; do
4911 test -z "$ac_dir" && ac_dir=.
4912 if test -f $ac_dir/$ac_word; then
4913 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4920 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4921 if test -n "$GCJ_FOR_TARGET"; then
4922 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4924 echo "$ac_t""no
" 1>&6
4928 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4932 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4934 if test $build = $target ; then
4937 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4941 if test -n "$with_build_time_tools"; then
4942 for ncn_progname in gfortran; do
4943 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4944 echo "configure
:4945: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4945 if test -x $with_build_time_tools/${ncn_progname}; then
4946 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4947 echo "$ac_t""yes" 1>&6
4950 echo "$ac_t""no
" 1>&6
4955 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
4956 for ncn_progname in gfortran; do
4957 if test -n "$ncn_target_tool_prefix"; then
4958 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4959 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4960 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4961 echo "configure
:4962: checking
for $ac_word" >&5
4962 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4963 echo $ac_n "(cached
) $ac_c" 1>&6
4965 if test -n "$GFORTRAN_FOR_TARGET"; then
4966 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4970 for ac_dir in $ac_dummy; do
4971 test -z "$ac_dir" && ac_dir=.
4972 if test -f $ac_dir/$ac_word; then
4973 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4980 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4981 if test -n "$GFORTRAN_FOR_TARGET"; then
4982 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4984 echo "$ac_t""no
" 1>&6
4988 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
4989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4990 set dummy ${ncn_progname}; ac_word=$2
4991 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4992 echo "configure
:4993: checking
for $ac_word" >&5
4993 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4994 echo $ac_n "(cached
) $ac_c" 1>&6
4996 if test -n "$GFORTRAN_FOR_TARGET"; then
4997 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5001 for ac_dir in $ac_dummy; do
5002 test -z "$ac_dir" && ac_dir=.
5003 if test -f $ac_dir/$ac_word; then
5004 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5011 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5012 if test -n "$GFORTRAN_FOR_TARGET"; then
5013 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5015 echo "$ac_t""no
" 1>&6
5019 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5023 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5025 if test $build = $target ; then
5026 GFORTRAN_FOR_TARGET="$2"
5028 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5034 # The user is always right.
5035 if test "${PATH_SEPARATOR+set}" != set; then
5036 echo "#! /bin/sh" >conf$$.sh
5037 echo "exit 0" >>conf$$.sh
5039 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5049 if test "x$exec_prefix" = xNONE
; then
5050 if test "x$prefix" = xNONE
; then
5051 gcc_cv_tool_prefix
=$ac_default_prefix
5053 gcc_cv_tool_prefix
=$prefix
5056 gcc_cv_tool_prefix
=$exec_prefix
5059 # If there is no compiler in the tree, use the PATH only. In any
5060 # case, if there is no compiler in the tree nobody should use
5061 # AS_FOR_TARGET and LD_FOR_TARGET.
5062 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
5063 gcc_version
=`cat $srcdir/gcc/BASE-VER`
5064 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5065 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5066 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5067 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5068 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5069 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5074 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
5075 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5080 cat > conftest.c
<< \EOF
5085 if ($GCC_FOR_TARGET -E conftest.c |
grep gcc_yay
) > /dev
/null
2>&1; then
5086 have_gcc_for_target
=yes
5088 GCC_FOR_TARGET
=${ncn_target_tool_prefix}gcc
5089 have_gcc_for_target
=no
5096 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5097 if test -n "$with_build_time_tools"; then
5098 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5099 echo "configure:5100: checking for ar in $with_build_time_tools" >&5
5100 if test -x $with_build_time_tools/ar; then
5101 AR_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ar
5102 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5103 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5105 echo "$ac_t""no" 1>&6
5107 elif test $build != $host && test $have_gcc_for_target = yes; then
5108 AR_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ar`
5109 test $AR_FOR_TARGET=ar && AR_FOR_TARGET
=
5110 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5113 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5114 # Extract the first word of "ar", so it can be a program name with args.
5115 set dummy
ar; ac_word
=$2
5116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5117 echo "configure:5118: checking for $ac_word" >&5
5118 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5119 echo $ac_n "(cached) $ac_c" 1>&6
5121 case "$AR_FOR_TARGET" in
5123 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a path.
5126 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5129 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5130 ac_dummy
="$gcc_cv_tool_dirs"
5131 for ac_dir
in $ac_dummy; do
5132 test -z "$ac_dir" && ac_dir
=.
5133 if test -f $ac_dir/$ac_word; then
5134 ac_cv_path_AR_FOR_TARGET
="$ac_dir/$ac_word"
5142 AR_FOR_TARGET
="$ac_cv_path_AR_FOR_TARGET"
5143 if test -n "$AR_FOR_TARGET"; then
5144 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5146 echo "$ac_t""no" 1>&6
5150 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5151 if test -n "$with_build_time_tools"; then
5152 for ncn_progname
in ar; do
5153 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5154 echo "configure:5155: checking for ${ncn_progname} in $with_build_time_tools" >&5
5155 if test -x $with_build_time_tools/${ncn_progname}; then
5156 ac_cv_prog_AR_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5157 echo "$ac_t""yes" 1>&6
5160 echo "$ac_t""no" 1>&6
5165 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5166 for ncn_progname
in ar; do
5167 if test -n "$ncn_target_tool_prefix"; then
5168 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5169 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5171 echo "configure:5172: checking for $ac_word" >&5
5172 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5173 echo $ac_n "(cached) $ac_c" 1>&6
5175 if test -n "$AR_FOR_TARGET"; then
5176 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5178 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5180 for ac_dir
in $ac_dummy; do
5181 test -z "$ac_dir" && ac_dir
=.
5182 if test -f $ac_dir/$ac_word; then
5183 ac_cv_prog_AR_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5190 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5191 if test -n "$AR_FOR_TARGET"; then
5192 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5194 echo "$ac_t""no" 1>&6
5198 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5200 set dummy
${ncn_progname}; ac_word
=$2
5201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5202 echo "configure:5203: checking for $ac_word" >&5
5203 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5204 echo $ac_n "(cached) $ac_c" 1>&6
5206 if test -n "$AR_FOR_TARGET"; then
5207 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5209 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5211 for ac_dir
in $ac_dummy; do
5212 test -z "$ac_dir" && ac_dir
=.
5213 if test -f $ac_dir/$ac_word; then
5214 ac_cv_prog_AR_FOR_TARGET
="${ncn_progname}"
5221 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5222 if test -n "$AR_FOR_TARGET"; then
5223 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5225 echo "$ac_t""no" 1>&6
5229 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5233 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5235 if test $build = $target ; then
5238 AR_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5243 AR_FOR_TARGET
=$ac_cv_path_AR_FOR_TARGET
5249 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5250 if test -n "$with_build_time_tools"; then
5251 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5252 echo "configure:5253: checking for as in $with_build_time_tools" >&5
5253 if test -x $with_build_time_tools/as
; then
5254 AS_FOR_TARGET
=`cd $with_build_time_tools && pwd`/as
5255 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5256 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5258 echo "$ac_t""no" 1>&6
5260 elif test $build != $host && test $have_gcc_for_target = yes; then
5261 AS_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=as`
5262 test $AS_FOR_TARGET=as
&& AS_FOR_TARGET
=
5263 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5266 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5267 # Extract the first word of "as", so it can be a program name with args.
5268 set dummy as
; ac_word
=$2
5269 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5270 echo "configure:5271: checking for $ac_word" >&5
5271 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5272 echo $ac_n "(cached) $ac_c" 1>&6
5274 case "$AS_FOR_TARGET" in
5276 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a path.
5279 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5282 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5283 ac_dummy
="$gcc_cv_tool_dirs"
5284 for ac_dir
in $ac_dummy; do
5285 test -z "$ac_dir" && ac_dir
=.
5286 if test -f $ac_dir/$ac_word; then
5287 ac_cv_path_AS_FOR_TARGET
="$ac_dir/$ac_word"
5295 AS_FOR_TARGET
="$ac_cv_path_AS_FOR_TARGET"
5296 if test -n "$AS_FOR_TARGET"; then
5297 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5299 echo "$ac_t""no" 1>&6
5303 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5304 if test -n "$with_build_time_tools"; then
5305 for ncn_progname
in as
; do
5306 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5307 echo "configure:5308: checking for ${ncn_progname} in $with_build_time_tools" >&5
5308 if test -x $with_build_time_tools/${ncn_progname}; then
5309 ac_cv_prog_AS_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5310 echo "$ac_t""yes" 1>&6
5313 echo "$ac_t""no" 1>&6
5318 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5319 for ncn_progname
in as
; do
5320 if test -n "$ncn_target_tool_prefix"; then
5321 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5322 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5324 echo "configure:5325: checking for $ac_word" >&5
5325 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5326 echo $ac_n "(cached) $ac_c" 1>&6
5328 if test -n "$AS_FOR_TARGET"; then
5329 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5331 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5333 for ac_dir
in $ac_dummy; do
5334 test -z "$ac_dir" && ac_dir
=.
5335 if test -f $ac_dir/$ac_word; then
5336 ac_cv_prog_AS_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5343 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5344 if test -n "$AS_FOR_TARGET"; then
5345 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5347 echo "$ac_t""no" 1>&6
5351 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5353 set dummy
${ncn_progname}; ac_word
=$2
5354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5355 echo "configure:5356: checking for $ac_word" >&5
5356 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5357 echo $ac_n "(cached) $ac_c" 1>&6
5359 if test -n "$AS_FOR_TARGET"; then
5360 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5362 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5364 for ac_dir
in $ac_dummy; do
5365 test -z "$ac_dir" && ac_dir
=.
5366 if test -f $ac_dir/$ac_word; then
5367 ac_cv_prog_AS_FOR_TARGET
="${ncn_progname}"
5374 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5375 if test -n "$AS_FOR_TARGET"; then
5376 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5378 echo "$ac_t""no" 1>&6
5382 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5386 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5388 if test $build = $target ; then
5391 AS_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5396 AS_FOR_TARGET
=$ac_cv_path_AS_FOR_TARGET
5402 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5403 if test -n "$with_build_time_tools"; then
5404 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5405 echo "configure:5406: checking for dlltool in $with_build_time_tools" >&5
5406 if test -x $with_build_time_tools/dlltool
; then
5407 DLLTOOL_FOR_TARGET
=`cd $with_build_time_tools && pwd`/dlltool
5408 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5409 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5411 echo "$ac_t""no" 1>&6
5413 elif test $build != $host && test $have_gcc_for_target = yes; then
5414 DLLTOOL_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5415 test $DLLTOOL_FOR_TARGET=dlltool
&& DLLTOOL_FOR_TARGET
=
5416 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5419 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5420 # Extract the first word of "dlltool", so it can be a program name with args.
5421 set dummy dlltool
; ac_word
=$2
5422 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5423 echo "configure:5424: checking for $ac_word" >&5
5424 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5425 echo $ac_n "(cached) $ac_c" 1>&6
5427 case "$DLLTOOL_FOR_TARGET" in
5429 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5432 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5435 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5436 ac_dummy
="$gcc_cv_tool_dirs"
5437 for ac_dir
in $ac_dummy; do
5438 test -z "$ac_dir" && ac_dir
=.
5439 if test -f $ac_dir/$ac_word; then
5440 ac_cv_path_DLLTOOL_FOR_TARGET
="$ac_dir/$ac_word"
5448 DLLTOOL_FOR_TARGET
="$ac_cv_path_DLLTOOL_FOR_TARGET"
5449 if test -n "$DLLTOOL_FOR_TARGET"; then
5450 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5452 echo "$ac_t""no" 1>&6
5456 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5457 if test -n "$with_build_time_tools"; then
5458 for ncn_progname
in dlltool
; do
5459 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5460 echo "configure:5461: checking for ${ncn_progname} in $with_build_time_tools" >&5
5461 if test -x $with_build_time_tools/${ncn_progname}; then
5462 ac_cv_prog_DLLTOOL_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5463 echo "$ac_t""yes" 1>&6
5466 echo "$ac_t""no" 1>&6
5471 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5472 for ncn_progname
in dlltool
; do
5473 if test -n "$ncn_target_tool_prefix"; then
5474 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5475 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5477 echo "configure:5478: checking for $ac_word" >&5
5478 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5479 echo $ac_n "(cached) $ac_c" 1>&6
5481 if test -n "$DLLTOOL_FOR_TARGET"; then
5482 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5484 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5486 for ac_dir
in $ac_dummy; do
5487 test -z "$ac_dir" && ac_dir
=.
5488 if test -f $ac_dir/$ac_word; then
5489 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5496 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5497 if test -n "$DLLTOOL_FOR_TARGET"; then
5498 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5500 echo "$ac_t""no" 1>&6
5504 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5506 set dummy
${ncn_progname}; ac_word
=$2
5507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5508 echo "configure:5509: checking for $ac_word" >&5
5509 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5510 echo $ac_n "(cached) $ac_c" 1>&6
5512 if test -n "$DLLTOOL_FOR_TARGET"; then
5513 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5515 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5517 for ac_dir
in $ac_dummy; do
5518 test -z "$ac_dir" && ac_dir
=.
5519 if test -f $ac_dir/$ac_word; then
5520 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_progname}"
5527 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5528 if test -n "$DLLTOOL_FOR_TARGET"; then
5529 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5531 echo "$ac_t""no" 1>&6
5535 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5539 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5541 if test $build = $target ; then
5542 DLLTOOL_FOR_TARGET
="$2"
5544 DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5549 DLLTOOL_FOR_TARGET
=$ac_cv_path_DLLTOOL_FOR_TARGET
5555 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5556 if test -n "$with_build_time_tools"; then
5557 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5558 echo "configure:5559: checking for ld in $with_build_time_tools" >&5
5559 if test -x $with_build_time_tools/ld
; then
5560 LD_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ld
5561 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5562 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5564 echo "$ac_t""no" 1>&6
5566 elif test $build != $host && test $have_gcc_for_target = yes; then
5567 LD_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ld`
5568 test $LD_FOR_TARGET=ld
&& LD_FOR_TARGET
=
5569 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5572 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5573 # Extract the first word of "ld", so it can be a program name with args.
5574 set dummy ld
; ac_word
=$2
5575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5576 echo "configure:5577: checking for $ac_word" >&5
5577 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5580 case "$LD_FOR_TARGET" in
5582 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a path.
5585 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5588 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5589 ac_dummy
="$gcc_cv_tool_dirs"
5590 for ac_dir
in $ac_dummy; do
5591 test -z "$ac_dir" && ac_dir
=.
5592 if test -f $ac_dir/$ac_word; then
5593 ac_cv_path_LD_FOR_TARGET
="$ac_dir/$ac_word"
5601 LD_FOR_TARGET
="$ac_cv_path_LD_FOR_TARGET"
5602 if test -n "$LD_FOR_TARGET"; then
5603 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5605 echo "$ac_t""no" 1>&6
5609 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5610 if test -n "$with_build_time_tools"; then
5611 for ncn_progname
in ld
; do
5612 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5613 echo "configure:5614: checking for ${ncn_progname} in $with_build_time_tools" >&5
5614 if test -x $with_build_time_tools/${ncn_progname}; then
5615 ac_cv_prog_LD_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5616 echo "$ac_t""yes" 1>&6
5619 echo "$ac_t""no" 1>&6
5624 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5625 for ncn_progname
in ld
; do
5626 if test -n "$ncn_target_tool_prefix"; then
5627 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5628 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5630 echo "configure:5631: checking for $ac_word" >&5
5631 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5632 echo $ac_n "(cached) $ac_c" 1>&6
5634 if test -n "$LD_FOR_TARGET"; then
5635 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5637 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5639 for ac_dir
in $ac_dummy; do
5640 test -z "$ac_dir" && ac_dir
=.
5641 if test -f $ac_dir/$ac_word; then
5642 ac_cv_prog_LD_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5649 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5650 if test -n "$LD_FOR_TARGET"; then
5651 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5653 echo "$ac_t""no" 1>&6
5657 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5659 set dummy
${ncn_progname}; ac_word
=$2
5660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5661 echo "configure:5662: checking for $ac_word" >&5
5662 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5663 echo $ac_n "(cached) $ac_c" 1>&6
5665 if test -n "$LD_FOR_TARGET"; then
5666 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5668 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5670 for ac_dir
in $ac_dummy; do
5671 test -z "$ac_dir" && ac_dir
=.
5672 if test -f $ac_dir/$ac_word; then
5673 ac_cv_prog_LD_FOR_TARGET
="${ncn_progname}"
5680 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5681 if test -n "$LD_FOR_TARGET"; then
5682 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5684 echo "$ac_t""no" 1>&6
5688 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5692 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5694 if test $build = $target ; then
5697 LD_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5702 LD_FOR_TARGET
=$ac_cv_path_LD_FOR_TARGET
5708 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5709 if test -n "$with_build_time_tools"; then
5710 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5711 echo "configure:5712: checking for lipo in $with_build_time_tools" >&5
5712 if test -x $with_build_time_tools/lipo
; then
5713 LIPO_FOR_TARGET
=`cd $with_build_time_tools && pwd`/lipo
5714 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5715 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5717 echo "$ac_t""no" 1>&6
5719 elif test $build != $host && test $have_gcc_for_target = yes; then
5720 LIPO_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=lipo`
5721 test $LIPO_FOR_TARGET=lipo
&& LIPO_FOR_TARGET
=
5722 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5725 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5726 # Extract the first word of "lipo", so it can be a program name with args.
5727 set dummy lipo
; ac_word
=$2
5728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5729 echo "configure:5730: checking for $ac_word" >&5
5730 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5731 echo $ac_n "(cached) $ac_c" 1>&6
5733 case "$LIPO_FOR_TARGET" in
5735 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5738 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5741 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5742 ac_dummy
="$gcc_cv_tool_dirs"
5743 for ac_dir
in $ac_dummy; do
5744 test -z "$ac_dir" && ac_dir
=.
5745 if test -f $ac_dir/$ac_word; then
5746 ac_cv_path_LIPO_FOR_TARGET
="$ac_dir/$ac_word"
5754 LIPO_FOR_TARGET
="$ac_cv_path_LIPO_FOR_TARGET"
5755 if test -n "$LIPO_FOR_TARGET"; then
5756 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5758 echo "$ac_t""no" 1>&6
5762 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5763 if test -n "$with_build_time_tools"; then
5764 for ncn_progname
in lipo
; do
5765 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5766 echo "configure:5767: checking for ${ncn_progname} in $with_build_time_tools" >&5
5767 if test -x $with_build_time_tools/${ncn_progname}; then
5768 ac_cv_prog_LIPO_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5769 echo "$ac_t""yes" 1>&6
5772 echo "$ac_t""no" 1>&6
5777 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5778 for ncn_progname
in lipo
; do
5779 if test -n "$ncn_target_tool_prefix"; then
5780 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5781 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5783 echo "configure:5784: checking for $ac_word" >&5
5784 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5785 echo $ac_n "(cached) $ac_c" 1>&6
5787 if test -n "$LIPO_FOR_TARGET"; then
5788 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
5790 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5792 for ac_dir
in $ac_dummy; do
5793 test -z "$ac_dir" && ac_dir
=.
5794 if test -f $ac_dir/$ac_word; then
5795 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5802 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
5803 if test -n "$LIPO_FOR_TARGET"; then
5804 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5806 echo "$ac_t""no" 1>&6
5810 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5812 set dummy
${ncn_progname}; ac_word
=$2
5813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5814 echo "configure:5815: checking for $ac_word" >&5
5815 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5816 echo $ac_n "(cached) $ac_c" 1>&6
5818 if test -n "$LIPO_FOR_TARGET"; then
5819 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
5821 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5823 for ac_dir
in $ac_dummy; do
5824 test -z "$ac_dir" && ac_dir
=.
5825 if test -f $ac_dir/$ac_word; then
5826 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_progname}"
5833 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
5834 if test -n "$LIPO_FOR_TARGET"; then
5835 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5837 echo "$ac_t""no" 1>&6
5841 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5845 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5847 if test $build = $target ; then
5848 LIPO_FOR_TARGET
="$2"
5850 LIPO_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5855 LIPO_FOR_TARGET
=$ac_cv_path_LIPO_FOR_TARGET
5861 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5862 if test -n "$with_build_time_tools"; then
5863 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
5864 echo "configure:5865: checking for nm in $with_build_time_tools" >&5
5865 if test -x $with_build_time_tools/nm
; then
5866 NM_FOR_TARGET
=`cd $with_build_time_tools && pwd`/nm
5867 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
5868 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5870 echo "$ac_t""no" 1>&6
5872 elif test $build != $host && test $have_gcc_for_target = yes; then
5873 NM_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=nm`
5874 test $NM_FOR_TARGET=nm
&& NM_FOR_TARGET
=
5875 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
5878 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5879 # Extract the first word of "nm", so it can be a program name with args.
5880 set dummy nm
; ac_word
=$2
5881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5882 echo "configure:5883: checking for $ac_word" >&5
5883 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5884 echo $ac_n "(cached) $ac_c" 1>&6
5886 case "$NM_FOR_TARGET" in
5888 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a path.
5891 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5894 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5895 ac_dummy
="$gcc_cv_tool_dirs"
5896 for ac_dir
in $ac_dummy; do
5897 test -z "$ac_dir" && ac_dir
=.
5898 if test -f $ac_dir/$ac_word; then
5899 ac_cv_path_NM_FOR_TARGET
="$ac_dir/$ac_word"
5907 NM_FOR_TARGET
="$ac_cv_path_NM_FOR_TARGET"
5908 if test -n "$NM_FOR_TARGET"; then
5909 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5911 echo "$ac_t""no" 1>&6
5915 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5916 if test -n "$with_build_time_tools"; then
5917 for ncn_progname
in nm
; do
5918 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5919 echo "configure:5920: checking for ${ncn_progname} in $with_build_time_tools" >&5
5920 if test -x $with_build_time_tools/${ncn_progname}; then
5921 ac_cv_prog_NM_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5922 echo "$ac_t""yes" 1>&6
5925 echo "$ac_t""no" 1>&6
5930 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
5931 for ncn_progname
in nm
; do
5932 if test -n "$ncn_target_tool_prefix"; then
5933 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5934 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5936 echo "configure:5937: checking for $ac_word" >&5
5937 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5938 echo $ac_n "(cached) $ac_c" 1>&6
5940 if test -n "$NM_FOR_TARGET"; then
5941 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
5943 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5945 for ac_dir
in $ac_dummy; do
5946 test -z "$ac_dir" && ac_dir
=.
5947 if test -f $ac_dir/$ac_word; then
5948 ac_cv_prog_NM_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5955 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
5956 if test -n "$NM_FOR_TARGET"; then
5957 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5959 echo "$ac_t""no" 1>&6
5963 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
5964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5965 set dummy
${ncn_progname}; ac_word
=$2
5966 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5967 echo "configure:5968: checking for $ac_word" >&5
5968 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5969 echo $ac_n "(cached) $ac_c" 1>&6
5971 if test -n "$NM_FOR_TARGET"; then
5972 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
5974 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5976 for ac_dir
in $ac_dummy; do
5977 test -z "$ac_dir" && ac_dir
=.
5978 if test -f $ac_dir/$ac_word; then
5979 ac_cv_prog_NM_FOR_TARGET
="${ncn_progname}"
5986 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
5987 if test -n "$NM_FOR_TARGET"; then
5988 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5990 echo "$ac_t""no" 1>&6
5994 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
5998 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6000 if test $build = $target ; then
6003 NM_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6008 NM_FOR_TARGET
=$ac_cv_path_NM_FOR_TARGET
6014 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6015 if test -n "$with_build_time_tools"; then
6016 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6017 echo "configure:6018: checking for objdump in $with_build_time_tools" >&5
6018 if test -x $with_build_time_tools/objdump
; then
6019 OBJDUMP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/objdump
6020 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6021 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6023 echo "$ac_t""no" 1>&6
6025 elif test $build != $host && test $have_gcc_for_target = yes; then
6026 OBJDUMP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=objdump`
6027 test $OBJDUMP_FOR_TARGET=objdump
&& OBJDUMP_FOR_TARGET
=
6028 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6031 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6032 # Extract the first word of "objdump", so it can be a program name with args.
6033 set dummy objdump
; ac_word
=$2
6034 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6035 echo "configure:6036: checking for $ac_word" >&5
6036 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6037 echo $ac_n "(cached) $ac_c" 1>&6
6039 case "$OBJDUMP_FOR_TARGET" in
6041 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6044 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6047 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6048 ac_dummy
="$gcc_cv_tool_dirs"
6049 for ac_dir
in $ac_dummy; do
6050 test -z "$ac_dir" && ac_dir
=.
6051 if test -f $ac_dir/$ac_word; then
6052 ac_cv_path_OBJDUMP_FOR_TARGET
="$ac_dir/$ac_word"
6060 OBJDUMP_FOR_TARGET
="$ac_cv_path_OBJDUMP_FOR_TARGET"
6061 if test -n "$OBJDUMP_FOR_TARGET"; then
6062 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6064 echo "$ac_t""no" 1>&6
6068 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6069 if test -n "$with_build_time_tools"; then
6070 for ncn_progname
in objdump
; do
6071 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6072 echo "configure:6073: checking for ${ncn_progname} in $with_build_time_tools" >&5
6073 if test -x $with_build_time_tools/${ncn_progname}; then
6074 ac_cv_prog_OBJDUMP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6075 echo "$ac_t""yes" 1>&6
6078 echo "$ac_t""no" 1>&6
6083 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6084 for ncn_progname
in objdump
; do
6085 if test -n "$ncn_target_tool_prefix"; then
6086 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6087 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6089 echo "configure:6090: checking for $ac_word" >&5
6090 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6091 echo $ac_n "(cached) $ac_c" 1>&6
6093 if test -n "$OBJDUMP_FOR_TARGET"; then
6094 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6096 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6098 for ac_dir
in $ac_dummy; do
6099 test -z "$ac_dir" && ac_dir
=.
6100 if test -f $ac_dir/$ac_word; then
6101 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6108 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6109 if test -n "$OBJDUMP_FOR_TARGET"; then
6110 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6112 echo "$ac_t""no" 1>&6
6116 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6118 set dummy
${ncn_progname}; ac_word
=$2
6119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6120 echo "configure:6121: checking for $ac_word" >&5
6121 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6122 echo $ac_n "(cached) $ac_c" 1>&6
6124 if test -n "$OBJDUMP_FOR_TARGET"; then
6125 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6127 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6129 for ac_dir
in $ac_dummy; do
6130 test -z "$ac_dir" && ac_dir
=.
6131 if test -f $ac_dir/$ac_word; then
6132 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_progname}"
6139 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6140 if test -n "$OBJDUMP_FOR_TARGET"; then
6141 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6143 echo "$ac_t""no" 1>&6
6147 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6151 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6153 if test $build = $target ; then
6154 OBJDUMP_FOR_TARGET
="$2"
6156 OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6161 OBJDUMP_FOR_TARGET
=$ac_cv_path_OBJDUMP_FOR_TARGET
6167 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6168 if test -n "$with_build_time_tools"; then
6169 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6170 echo "configure:6171: checking for ranlib in $with_build_time_tools" >&5
6171 if test -x $with_build_time_tools/ranlib
; then
6172 RANLIB_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ranlib
6173 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6174 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6176 echo "$ac_t""no" 1>&6
6178 elif test $build != $host && test $have_gcc_for_target = yes; then
6179 RANLIB_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6180 test $RANLIB_FOR_TARGET=ranlib
&& RANLIB_FOR_TARGET
=
6181 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6184 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6185 # Extract the first word of "ranlib", so it can be a program name with args.
6186 set dummy ranlib
; ac_word
=$2
6187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6188 echo "configure:6189: checking for $ac_word" >&5
6189 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6190 echo $ac_n "(cached) $ac_c" 1>&6
6192 case "$RANLIB_FOR_TARGET" in
6194 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6197 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6200 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6201 ac_dummy
="$gcc_cv_tool_dirs"
6202 for ac_dir
in $ac_dummy; do
6203 test -z "$ac_dir" && ac_dir
=.
6204 if test -f $ac_dir/$ac_word; then
6205 ac_cv_path_RANLIB_FOR_TARGET
="$ac_dir/$ac_word"
6213 RANLIB_FOR_TARGET
="$ac_cv_path_RANLIB_FOR_TARGET"
6214 if test -n "$RANLIB_FOR_TARGET"; then
6215 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6217 echo "$ac_t""no" 1>&6
6221 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6222 if test -n "$with_build_time_tools"; then
6223 for ncn_progname
in ranlib
; do
6224 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6225 echo "configure:6226: checking for ${ncn_progname} in $with_build_time_tools" >&5
6226 if test -x $with_build_time_tools/${ncn_progname}; then
6227 ac_cv_prog_RANLIB_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6228 echo "$ac_t""yes" 1>&6
6231 echo "$ac_t""no" 1>&6
6236 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6237 for ncn_progname
in ranlib
; do
6238 if test -n "$ncn_target_tool_prefix"; then
6239 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6240 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6242 echo "configure:6243: checking for $ac_word" >&5
6243 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6244 echo $ac_n "(cached) $ac_c" 1>&6
6246 if test -n "$RANLIB_FOR_TARGET"; then
6247 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6249 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6251 for ac_dir
in $ac_dummy; do
6252 test -z "$ac_dir" && ac_dir
=.
6253 if test -f $ac_dir/$ac_word; then
6254 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6261 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6262 if test -n "$RANLIB_FOR_TARGET"; then
6263 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6265 echo "$ac_t""no" 1>&6
6269 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6271 set dummy
${ncn_progname}; ac_word
=$2
6272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6273 echo "configure:6274: checking for $ac_word" >&5
6274 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6275 echo $ac_n "(cached) $ac_c" 1>&6
6277 if test -n "$RANLIB_FOR_TARGET"; then
6278 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6280 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6282 for ac_dir
in $ac_dummy; do
6283 test -z "$ac_dir" && ac_dir
=.
6284 if test -f $ac_dir/$ac_word; then
6285 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_progname}"
6292 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6293 if test -n "$RANLIB_FOR_TARGET"; then
6294 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6296 echo "$ac_t""no" 1>&6
6300 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6304 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6306 if test $build = $target ; then
6307 RANLIB_FOR_TARGET
="$2"
6309 RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6314 RANLIB_FOR_TARGET
=$ac_cv_path_RANLIB_FOR_TARGET
6320 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6321 if test -n "$with_build_time_tools"; then
6322 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6323 echo "configure:6324: checking for strip in $with_build_time_tools" >&5
6324 if test -x $with_build_time_tools/strip
; then
6325 STRIP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/strip
6326 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6327 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6329 echo "$ac_t""no" 1>&6
6331 elif test $build != $host && test $have_gcc_for_target = yes; then
6332 STRIP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=strip`
6333 test $STRIP_FOR_TARGET=strip
&& STRIP_FOR_TARGET
=
6334 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6337 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6338 # Extract the first word of "strip", so it can be a program name with args.
6339 set dummy strip
; ac_word
=$2
6340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6341 echo "configure:6342: checking for $ac_word" >&5
6342 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6343 echo $ac_n "(cached) $ac_c" 1>&6
6345 case "$STRIP_FOR_TARGET" in
6347 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6350 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6353 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6354 ac_dummy
="$gcc_cv_tool_dirs"
6355 for ac_dir
in $ac_dummy; do
6356 test -z "$ac_dir" && ac_dir
=.
6357 if test -f $ac_dir/$ac_word; then
6358 ac_cv_path_STRIP_FOR_TARGET
="$ac_dir/$ac_word"
6366 STRIP_FOR_TARGET
="$ac_cv_path_STRIP_FOR_TARGET"
6367 if test -n "$STRIP_FOR_TARGET"; then
6368 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6370 echo "$ac_t""no" 1>&6
6374 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6375 if test -n "$with_build_time_tools"; then
6376 for ncn_progname
in strip
; do
6377 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6378 echo "configure:6379: checking for ${ncn_progname} in $with_build_time_tools" >&5
6379 if test -x $with_build_time_tools/${ncn_progname}; then
6380 ac_cv_prog_STRIP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6381 echo "$ac_t""yes" 1>&6
6384 echo "$ac_t""no" 1>&6
6389 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6390 for ncn_progname
in strip
; do
6391 if test -n "$ncn_target_tool_prefix"; then
6392 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6393 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6395 echo "configure:6396: checking for $ac_word" >&5
6396 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6397 echo $ac_n "(cached) $ac_c" 1>&6
6399 if test -n "$STRIP_FOR_TARGET"; then
6400 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6402 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6404 for ac_dir
in $ac_dummy; do
6405 test -z "$ac_dir" && ac_dir
=.
6406 if test -f $ac_dir/$ac_word; then
6407 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6414 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6415 if test -n "$STRIP_FOR_TARGET"; then
6416 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6418 echo "$ac_t""no" 1>&6
6422 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6424 set dummy
${ncn_progname}; ac_word
=$2
6425 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6426 echo "configure:6427: checking for $ac_word" >&5
6427 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6428 echo $ac_n "(cached) $ac_c" 1>&6
6430 if test -n "$STRIP_FOR_TARGET"; then
6431 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6433 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6435 for ac_dir
in $ac_dummy; do
6436 test -z "$ac_dir" && ac_dir
=.
6437 if test -f $ac_dir/$ac_word; then
6438 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_progname}"
6445 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6446 if test -n "$STRIP_FOR_TARGET"; then
6447 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6449 echo "$ac_t""no" 1>&6
6453 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6457 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6459 if test $build = $target ; then
6460 STRIP_FOR_TARGET
="$2"
6462 STRIP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6467 STRIP_FOR_TARGET
=$ac_cv_path_STRIP_FOR_TARGET
6473 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6474 if test -n "$with_build_time_tools"; then
6475 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6476 echo "configure:6477: checking for windres in $with_build_time_tools" >&5
6477 if test -x $with_build_time_tools/windres
; then
6478 WINDRES_FOR_TARGET
=`cd $with_build_time_tools && pwd`/windres
6479 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6480 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6482 echo "$ac_t""no" 1>&6
6484 elif test $build != $host && test $have_gcc_for_target = yes; then
6485 WINDRES_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=windres`
6486 test $WINDRES_FOR_TARGET=windres
&& WINDRES_FOR_TARGET
=
6487 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6490 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6491 # Extract the first word of "windres", so it can be a program name with args.
6492 set dummy windres
; ac_word
=$2
6493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6494 echo "configure:6495: checking for $ac_word" >&5
6495 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6496 echo $ac_n "(cached) $ac_c" 1>&6
6498 case "$WINDRES_FOR_TARGET" in
6500 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6503 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6506 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6507 ac_dummy
="$gcc_cv_tool_dirs"
6508 for ac_dir
in $ac_dummy; do
6509 test -z "$ac_dir" && ac_dir
=.
6510 if test -f $ac_dir/$ac_word; then
6511 ac_cv_path_WINDRES_FOR_TARGET
="$ac_dir/$ac_word"
6519 WINDRES_FOR_TARGET
="$ac_cv_path_WINDRES_FOR_TARGET"
6520 if test -n "$WINDRES_FOR_TARGET"; then
6521 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6523 echo "$ac_t""no" 1>&6
6527 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6528 if test -n "$with_build_time_tools"; then
6529 for ncn_progname
in windres
; do
6530 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6531 echo "configure:6532: checking for ${ncn_progname} in $with_build_time_tools" >&5
6532 if test -x $with_build_time_tools/${ncn_progname}; then
6533 ac_cv_prog_WINDRES_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6534 echo "$ac_t""yes" 1>&6
6537 echo "$ac_t""no" 1>&6
6542 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6543 for ncn_progname
in windres
; do
6544 if test -n "$ncn_target_tool_prefix"; then
6545 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6546 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6547 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6548 echo "configure:6549: checking for $ac_word" >&5
6549 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6550 echo $ac_n "(cached) $ac_c" 1>&6
6552 if test -n "$WINDRES_FOR_TARGET"; then
6553 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6555 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6557 for ac_dir
in $ac_dummy; do
6558 test -z "$ac_dir" && ac_dir
=.
6559 if test -f $ac_dir/$ac_word; then
6560 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6567 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6568 if test -n "$WINDRES_FOR_TARGET"; then
6569 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6571 echo "$ac_t""no" 1>&6
6575 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6577 set dummy
${ncn_progname}; ac_word
=$2
6578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6579 echo "configure:6580: checking for $ac_word" >&5
6580 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6581 echo $ac_n "(cached) $ac_c" 1>&6
6583 if test -n "$WINDRES_FOR_TARGET"; then
6584 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6586 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6588 for ac_dir
in $ac_dummy; do
6589 test -z "$ac_dir" && ac_dir
=.
6590 if test -f $ac_dir/$ac_word; then
6591 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_progname}"
6598 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6599 if test -n "$WINDRES_FOR_TARGET"; then
6600 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6602 echo "$ac_t""no" 1>&6
6606 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6610 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6612 if test $build = $target ; then
6613 WINDRES_FOR_TARGET
="$2"
6615 WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6620 WINDRES_FOR_TARGET
=$ac_cv_path_WINDRES_FOR_TARGET
6624 RAW_CXX_FOR_TARGET
="$CXX_FOR_TARGET"
6626 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6627 echo "configure:6628: checking where to find the target ar" >&5
6628 if test "x${build}" != "x${host}" ; then
6629 if expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6630 # We already found the complete path
6631 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6633 # Canadian cross, just use what we found
6634 echo "$ac_t""pre-installed" 1>&6
6638 case " ${configdirs} " in
6643 if test $ok = yes; then
6644 # An in-tree tool is available and we can use it
6645 AR_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ar'
6646 echo "$ac_t""just compiled" 1>&6
6647 elif expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6648 # We already found the complete path
6649 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6650 elif test "x$target" = "x$host"; then
6651 # We can use an host tool
6652 AR_FOR_TARGET
='$(AR)'
6653 echo "$ac_t""host tool" 1>&6
6655 # We need a cross tool
6656 echo "$ac_t""pre-installed" 1>&6
6659 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6660 echo "configure:6661: checking where to find the target as" >&5
6661 if test "x${build}" != "x${host}" ; then
6662 if expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6663 # We already found the complete path
6664 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6666 # Canadian cross, just use what we found
6667 echo "$ac_t""pre-installed" 1>&6
6671 case " ${configdirs} " in
6676 if test $ok = yes; then
6677 # An in-tree tool is available and we can use it
6678 AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gas/as-new'
6679 echo "$ac_t""just compiled" 1>&6
6680 elif expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6681 # We already found the complete path
6682 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6683 elif test "x$target" = "x$host"; then
6684 # We can use an host tool
6685 AS_FOR_TARGET
='$(AS)'
6686 echo "$ac_t""host tool" 1>&6
6688 # We need a cross tool
6689 echo "$ac_t""pre-installed" 1>&6
6692 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6693 echo "configure:6694: checking where to find the target cc" >&5
6694 if test "x${build}" != "x${host}" ; then
6695 if expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6696 # We already found the complete path
6697 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6699 # Canadian cross, just use what we found
6700 echo "$ac_t""pre-installed" 1>&6
6704 case " ${configdirs} " in
6709 if test $ok = yes; then
6710 # An in-tree tool is available and we can use it
6711 CC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6712 echo "$ac_t""just compiled" 1>&6
6713 elif expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6714 # We already found the complete path
6715 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6716 elif test "x$target" = "x$host"; then
6717 # We can use an host tool
6718 CC_FOR_TARGET
='$(CC)'
6719 echo "$ac_t""host tool" 1>&6
6721 # We need a cross tool
6722 echo "$ac_t""pre-installed" 1>&6
6725 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6726 echo "configure:6727: checking where to find the target c++" >&5
6727 if test "x${build}" != "x${host}" ; then
6728 if expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6729 # We already found the complete path
6730 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6732 # Canadian cross, just use what we found
6733 echo "$ac_t""pre-installed" 1>&6
6737 case " ${configdirs} " in
6741 case ,${enable_languages}, in
6745 if test $ok = yes; then
6746 # An in-tree tool is available and we can use it
6747 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'
6748 echo "$ac_t""just compiled" 1>&6
6749 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6750 # We already found the complete path
6751 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6752 elif test "x$target" = "x$host"; then
6753 # We can use an host tool
6754 CXX_FOR_TARGET
='$(CXX)'
6755 echo "$ac_t""host tool" 1>&6
6757 # We need a cross tool
6758 echo "$ac_t""pre-installed" 1>&6
6761 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6762 echo "configure:6763: checking where to find the target c++ for libstdc++" >&5
6763 if test "x${build}" != "x${host}" ; then
6764 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6765 # We already found the complete path
6766 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6768 # Canadian cross, just use what we found
6769 echo "$ac_t""pre-installed" 1>&6
6773 case " ${configdirs} " in
6777 case ,${enable_languages}, in
6781 if test $ok = yes; then
6782 # An in-tree tool is available and we can use it
6783 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'
6784 echo "$ac_t""just compiled" 1>&6
6785 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6786 # We already found the complete path
6787 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6788 elif test "x$target" = "x$host"; then
6789 # We can use an host tool
6790 RAW_CXX_FOR_TARGET
='$(CXX)'
6791 echo "$ac_t""host tool" 1>&6
6793 # We need a cross tool
6794 echo "$ac_t""pre-installed" 1>&6
6797 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6798 echo "configure:6799: checking where to find the target dlltool" >&5
6799 if test "x${build}" != "x${host}" ; then
6800 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
6801 # We already found the complete path
6802 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6804 # Canadian cross, just use what we found
6805 echo "$ac_t""pre-installed" 1>&6
6809 case " ${configdirs} " in
6814 if test $ok = yes; then
6815 # An in-tree tool is available and we can use it
6816 DLLTOOL_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6817 echo "$ac_t""just compiled" 1>&6
6818 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
6819 # We already found the complete path
6820 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6821 elif test "x$target" = "x$host"; then
6822 # We can use an host tool
6823 DLLTOOL_FOR_TARGET
='$(DLLTOOL)'
6824 echo "$ac_t""host tool" 1>&6
6826 # We need a cross tool
6827 echo "$ac_t""pre-installed" 1>&6
6830 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6831 echo "configure:6832: checking where to find the target gcc" >&5
6832 if test "x${build}" != "x${host}" ; then
6833 if expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
6834 # We already found the complete path
6835 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6837 # Canadian cross, just use what we found
6838 echo "$ac_t""pre-installed" 1>&6
6842 case " ${configdirs} " in
6847 if test $ok = yes; then
6848 # An in-tree tool is available and we can use it
6849 GCC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6850 echo "$ac_t""just compiled" 1>&6
6851 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
6852 # We already found the complete path
6853 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6854 elif test "x$target" = "x$host"; then
6855 # We can use an host tool
6856 GCC_FOR_TARGET
='$()'
6857 echo "$ac_t""host tool" 1>&6
6859 # We need a cross tool
6860 echo "$ac_t""pre-installed" 1>&6
6863 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6864 echo "configure:6865: checking where to find the target gcj" >&5
6865 if test "x${build}" != "x${host}" ; then
6866 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
6867 # We already found the complete path
6868 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6870 # Canadian cross, just use what we found
6871 echo "$ac_t""pre-installed" 1>&6
6875 case " ${configdirs} " in
6879 case ,${enable_languages}, in
6883 if test $ok = yes; then
6884 # An in-tree tool is available and we can use it
6885 GCJ_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6886 echo "$ac_t""just compiled" 1>&6
6887 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
6888 # We already found the complete path
6889 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6890 elif test "x$target" = "x$host"; then
6891 # We can use an host tool
6892 GCJ_FOR_TARGET
='$(GCJ)'
6893 echo "$ac_t""host tool" 1>&6
6895 # We need a cross tool
6896 echo "$ac_t""pre-installed" 1>&6
6899 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
6900 echo "configure:6901: checking where to find the target gfortran" >&5
6901 if test "x${build}" != "x${host}" ; then
6902 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
6903 # We already found the complete path
6904 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6906 # Canadian cross, just use what we found
6907 echo "$ac_t""pre-installed" 1>&6
6911 case " ${configdirs} " in
6915 case ,${enable_languages}, in
6919 if test $ok = yes; then
6920 # An in-tree tool is available and we can use it
6921 GFORTRAN_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
6922 echo "$ac_t""just compiled" 1>&6
6923 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
6924 # We already found the complete path
6925 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6926 elif test "x$target" = "x$host"; then
6927 # We can use an host tool
6928 GFORTRAN_FOR_TARGET
='$(GFORTRAN)'
6929 echo "$ac_t""host tool" 1>&6
6931 # We need a cross tool
6932 echo "$ac_t""pre-installed" 1>&6
6935 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
6936 echo "configure:6937: checking where to find the target ld" >&5
6937 if test "x${build}" != "x${host}" ; then
6938 if expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
6939 # We already found the complete path
6940 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6942 # Canadian cross, just use what we found
6943 echo "$ac_t""pre-installed" 1>&6
6947 case " ${configdirs} " in
6952 if test $ok = yes; then
6953 # An in-tree tool is available and we can use it
6954 LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/ld/ld-new'
6955 echo "$ac_t""just compiled" 1>&6
6956 elif expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
6957 # We already found the complete path
6958 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6959 elif test "x$target" = "x$host"; then
6960 # We can use an host tool
6961 LD_FOR_TARGET
='$(LD)'
6962 echo "$ac_t""host tool" 1>&6
6964 # We need a cross tool
6965 echo "$ac_t""pre-installed" 1>&6
6968 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
6969 echo "configure:6970: checking where to find the target lipo" >&5
6970 if test "x${build}" != "x${host}" ; then
6971 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
6972 # We already found the complete path
6973 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6975 # Canadian cross, just use what we found
6976 echo "$ac_t""pre-installed" 1>&6
6979 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
6980 # We already found the complete path
6981 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6982 elif test "x$target" = "x$host"; then
6983 # We can use an host tool
6984 LIPO_FOR_TARGET
='$(LIPO)'
6985 echo "$ac_t""host tool" 1>&6
6987 # We need a cross tool
6988 echo "$ac_t""pre-installed" 1>&6
6991 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
6992 echo "configure:6993: checking where to find the target nm" >&5
6993 if test "x${build}" != "x${host}" ; then
6994 if expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
6995 # We already found the complete path
6996 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
6998 # Canadian cross, just use what we found
6999 echo "$ac_t""pre-installed" 1>&6
7003 case " ${configdirs} " in
7008 if test $ok = yes; then
7009 # An in-tree tool is available and we can use it
7010 NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7011 echo "$ac_t""just compiled" 1>&6
7012 elif expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
7013 # We already found the complete path
7014 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7015 elif test "x$target" = "x$host"; then
7016 # We can use an host tool
7017 NM_FOR_TARGET
='$(NM)'
7018 echo "$ac_t""host tool" 1>&6
7020 # We need a cross tool
7021 echo "$ac_t""pre-installed" 1>&6
7024 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7025 echo "configure:7026: checking where to find the target objdump" >&5
7026 if test "x${build}" != "x${host}" ; then
7027 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7028 # We already found the complete path
7029 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7031 # Canadian cross, just use what we found
7032 echo "$ac_t""pre-installed" 1>&6
7036 case " ${configdirs} " in
7041 if test $ok = yes; then
7042 # An in-tree tool is available and we can use it
7043 OBJDUMP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/objdump'
7044 echo "$ac_t""just compiled" 1>&6
7045 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7046 # We already found the complete path
7047 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7048 elif test "x$target" = "x$host"; then
7049 # We can use an host tool
7050 OBJDUMP_FOR_TARGET
='$(OBJDUMP)'
7051 echo "$ac_t""host tool" 1>&6
7053 # We need a cross tool
7054 echo "$ac_t""pre-installed" 1>&6
7057 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7058 echo "configure:7059: checking where to find the target ranlib" >&5
7059 if test "x${build}" != "x${host}" ; then
7060 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7061 # We already found the complete path
7062 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7064 # Canadian cross, just use what we found
7065 echo "$ac_t""pre-installed" 1>&6
7069 case " ${configdirs} " in
7074 if test $ok = yes; then
7075 # An in-tree tool is available and we can use it
7076 RANLIB_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7077 echo "$ac_t""just compiled" 1>&6
7078 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7079 # We already found the complete path
7080 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7081 elif test "x$target" = "x$host"; then
7082 # We can use an host tool
7083 RANLIB_FOR_TARGET
='$(RANLIB)'
7084 echo "$ac_t""host tool" 1>&6
7086 # We need a cross tool
7087 echo "$ac_t""pre-installed" 1>&6
7090 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7091 echo "configure:7092: checking where to find the target strip" >&5
7092 if test "x${build}" != "x${host}" ; then
7093 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7094 # We already found the complete path
7095 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7097 # Canadian cross, just use what we found
7098 echo "$ac_t""pre-installed" 1>&6
7102 case " ${configdirs} " in
7107 if test $ok = yes; then
7108 # An in-tree tool is available and we can use it
7109 STRIP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/strip'
7110 echo "$ac_t""just compiled" 1>&6
7111 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7112 # We already found the complete path
7113 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7114 elif test "x$target" = "x$host"; then
7115 # We can use an host tool
7116 STRIP_FOR_TARGET
='$(STRIP)'
7117 echo "$ac_t""host tool" 1>&6
7119 # We need a cross tool
7120 echo "$ac_t""pre-installed" 1>&6
7123 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7124 echo "configure:7125: checking where to find the target windres" >&5
7125 if test "x${build}" != "x${host}" ; then
7126 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7127 # We already found the complete path
7128 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7130 # Canadian cross, just use what we found
7131 echo "$ac_t""pre-installed" 1>&6
7135 case " ${configdirs} " in
7140 if test $ok = yes; then
7141 # An in-tree tool is available and we can use it
7142 WINDRES_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/windres'
7143 echo "$ac_t""just compiled" 1>&6
7144 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7145 # We already found the complete path
7146 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7147 elif test "x$target" = "x$host"; then
7148 # We can use an host tool
7149 WINDRES_FOR_TARGET
='$(WINDRES)'
7150 echo "$ac_t""host tool" 1>&6
7152 # We need a cross tool
7153 echo "$ac_t""pre-installed" 1>&6
7160 # Certain tools may need extra flags.
7161 AR_FOR_TARGET
=${AR_FOR_TARGET}${extra_arflags_for_target}
7162 RANLIB_FOR_TARGET
=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7163 NM_FOR_TARGET
=${NM_FOR_TARGET}${extra_nmflags_for_target}
7165 # When building target libraries, except in a Canadian cross, we use
7166 # the same toolchain as the compiler we just built.
7167 COMPILER_AS_FOR_TARGET
='$(AS_FOR_TARGET)'
7168 COMPILER_LD_FOR_TARGET
='$(LD_FOR_TARGET)'
7169 COMPILER_NM_FOR_TARGET
='$(NM_FOR_TARGET)'
7170 if test $host = $build; then
7171 case " $configdirs " in
7173 COMPILER_AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/as'
7174 COMPILER_LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7175 COMPILER_NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7184 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7185 echo "configure:7186: checking whether to enable maintainer-specific portions of Makefiles" >&5
7186 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7187 if test "${enable_maintainer_mode+set}" = set; then
7188 enableval
="$enable_maintainer_mode"
7189 USE_MAINTAINER_MODE
=$enableval
7191 USE_MAINTAINER_MODE
=no
7194 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7197 if test "$USE_MAINTAINER_MODE" = yes; then
7198 MAINTAINER_MODE_TRUE
=
7199 MAINTAINER_MODE_FALSE
='#'
7201 MAINTAINER_MODE_TRUE
='#'
7202 MAINTAINER_MODE_FALSE
=
7204 MAINT
=$MAINTAINER_MODE_TRUE
7206 # ---------------------
7207 # GCC bootstrap support
7208 # ---------------------
7210 # Stage specific cflags for build.
7215 yes) stage1_cflags
="-g -Wa,-J" ;;
7216 *) stage1_cflags
="-g -J" ;;
7219 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7220 # sources; use -no-cpp-precomp to get to GNU cpp.
7221 # Apple's GCC has bugs in designated initializer handling, so disable
7223 stage1_cflags
="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7228 # Enable -Werror in bootstrap stage2 and later.
7229 # Change the default to "no" on release branches.
7230 # Check whether --enable-werror or --disable-werror was given.
7231 if test "${enable_werror+set}" = set; then
7232 enableval
="$enable_werror"
7238 case ${enable_werror} in
7239 yes) stage2_werror_flag
="--enable-werror-always" ;;
7240 *) stage2_werror_flag
="" ;;
7245 cat > confcache
<<\EOF
7246 # This file is a shell script that caches the results of configure
7247 # tests run on this system so they can be shared between configure
7248 # scripts and configure runs. It is not useful on other systems.
7249 # If it contains results you don't want to keep, you may remove or edit it.
7251 # By default, configure uses ./config.cache as the cache file,
7252 # creating it if it does not exist already. You can give configure
7253 # the --cache-file=FILE option to use a different cache file; that is
7254 # what configure does when it calls configure scripts in
7255 # subdirectories, so they share the cache.
7256 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7257 # config.status only pays attention to the cache file if you give it the
7258 # --recheck option to rerun configure.
7261 # The following way of writing the cache mishandles newlines in values,
7262 # but we know of no workaround that is simple, portable, and efficient.
7263 # So, don't put newlines in cache variables' values.
7264 # Ultrix sh set writes to stderr and can't be redirected directly,
7265 # and sets the high bit in the cache file unless we assign to the vars.
7267 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7269 # `set' does not quote correctly, so add quotes (double-quote substitution
7270 # turns \\\\ into \\, and sed turns \\ into \).
7272 -e "s/'/'\\\\''/g" \
7273 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7276 # `set' quotes correctly as required by POSIX, so do not add quotes.
7277 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7280 if cmp -s $cache_file confcache
; then
7283 if test -w $cache_file; then
7284 echo "updating cache $cache_file"
7285 cat confcache
> $cache_file
7287 echo "not updating unwritable cache $cache_file"
7292 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7294 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7295 # Let make expand exec_prefix.
7296 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7298 # Any assignment to VPATH causes Sun make to only execute
7299 # the first set of double-colon rules, so remove it if not needed.
7300 # If there is a colon in the path, we need to keep it.
7301 if test "x$srcdir" = x.
; then
7302 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7305 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7307 # Transform confdefs.h into DEFS.
7308 # Protect against shell expansion while executing Makefile rules.
7309 # Protect against Makefile macro expansion.
7311 # If the first sed substitution is executed (which looks for macros that
7312 # take arguments), then we branch to the quote section. Otherwise,
7313 # look for a macro that doesn't take arguments.
7314 cat >confdef2opt.
sed <<\_ACEOF
7317 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
7319 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
7323 s
,[ `~#$^&*(){}\\|;'"<>?],\\&,g
7329 # We use echo to avoid assuming a particular line-breaking character.
7330 # The extra dot is to prevent the shell from consuming trailing
7331 # line-breaks from the sub-command output. A line-break within
7332 # single-quotes doesn't work because, if this script is created in a
7333 # platform that uses two characters for line-breaks (e.g., DOS), tr
7335 ac_LF_and_DOT=`echo; echo .
`
7336 DEFS=`sed -n -f confdef2opt.
sed confdefs.h |
tr "$ac_LF_and_DOT" ' .'`
7337 rm -f confdef2opt.sed
7340 # Without the "./", some shells look in PATH for config.status.
7341 : ${CONFIG_STATUS=./config.status}
7343 echo creating $CONFIG_STATUS
7344 rm -f $CONFIG_STATUS
7345 cat > $CONFIG_STATUS <<EOF
7347 # Generated automatically by configure.
7348 # Run this file to recreate the current configuration.
7349 # This directory was configured as follows,
7350 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
7352 # $0 $ac_configure_args
7354 # Compiler output produced by configure, useful for debugging
7355 # configure, is in ./config.log if it exists.
7357 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7360 case "\$ac_option" in
7361 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7362 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7363 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7364 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7365 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7367 -help | --help | --hel | --he | --h)
7368 echo "\$ac_cs_usage"; exit 0 ;;
7369 *) echo "\$ac_cs_usage"; exit 1 ;;
7373 ac_given_srcdir=$srcdir
7374 ac_given_INSTALL="$INSTALL"
7376 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7378 cat >> $CONFIG_STATUS <<EOF
7380 # Protect against being on the right side of a sed subst in config.status.
7381 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7382 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7386 s%@CFLAGS@%$CFLAGS%g
7387 s%@CPPFLAGS@%$CPPFLAGS%g
7388 s%@CXXFLAGS@%$CXXFLAGS%g
7389 s%@FFLAGS@%$FFLAGS%g
7391 s%@LDFLAGS@%$LDFLAGS%g
7393 s%@exec_prefix@%$exec_prefix%g
7394 s%@prefix@%$prefix%g
7395 s%@program_transform_name@%$program_transform_name%g
7396 s%@bindir@%$bindir%g
7397 s%@sbindir@%$sbindir%g
7398 s%@libexecdir@%$libexecdir%g
7399 s%@datadir@%$datadir%g
7400 s%@sysconfdir@%$sysconfdir%g
7401 s%@sharedstatedir@%$sharedstatedir%g
7402 s%@localstatedir@%$localstatedir%g
7403 s%@libdir@%$libdir%g
7404 s%@includedir@%$includedir%g
7405 s%@oldincludedir@%$oldincludedir%g
7406 s%@infodir@%$infodir%g
7407 s%@mandir@%$mandir%g
7409 s%@host_alias@%$host_alias%g
7410 s%@host_cpu@%$host_cpu%g
7411 s%@host_vendor@%$host_vendor%g
7412 s%@host_os@%$host_os%g
7413 s%@target@%$target%g
7414 s%@target_alias@%$target_alias%g
7415 s%@target_cpu@%$target_cpu%g
7416 s%@target_vendor@%$target_vendor%g
7417 s%@target_os@%$target_os%g
7419 s%@build_alias@%$build_alias%g
7420 s%@build_cpu@%$build_cpu%g
7421 s%@build_vendor@%$build_vendor%g
7422 s%@build_os@%$build_os%g
7423 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7424 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7425 s%@INSTALL_DATA@%$INSTALL_DATA%g
7428 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7429 s%@build_subdir@%$build_subdir%g
7430 s%@host_subdir@%$host_subdir%g
7431 s%@target_subdir@%$target_subdir%g
7433 s%@GNATBIND@%$GNATBIND%g
7434 s%@do_compare@%$do_compare%g
7435 s%@gmplibs@%$gmplibs%g
7436 s%@gmpinc@%$gmpinc%g
7437 s%@stage1_languages@%$stage1_languages%g
7438 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7439 /@serialization_dependencies@/r $serialization_dependencies
7440 s%@serialization_dependencies@%%g
7441 /@host_makefile_frag@/r $host_makefile_frag
7442 s%@host_makefile_frag@%%g
7443 /@target_makefile_frag@/r $target_makefile_frag
7444 s%@target_makefile_frag@%%g
7445 /@alphaieee_frag@/r $alphaieee_frag
7446 s%@alphaieee_frag@%%g
7447 /@ospace_frag@/r $ospace_frag
7449 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7450 s%@tooldir@%$tooldir%g
7451 s%@build_tooldir@%$build_tooldir%g
7452 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7453 s%@GDB_TK@%$GDB_TK%g
7454 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7455 s%@build_configargs@%$build_configargs%g
7456 s%@build_configdirs@%$build_configdirs%g
7457 s%@host_configargs@%$host_configargs%g
7458 s%@configdirs@%$configdirs%g
7459 s%@target_configargs@%$target_configargs%g
7460 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7461 s%@config_shell@%$config_shell%g
7467 s%@MAKEINFO@%$MAKEINFO%g
7468 s%@EXPECT@%$EXPECT%g
7469 s%@RUNTEST@%$RUNTEST%g
7472 s%@DLLTOOL@%$DLLTOOL%g
7476 s%@RANLIB@%$RANLIB%g
7478 s%@WINDRES@%$WINDRES%g
7479 s%@OBJCOPY@%$OBJCOPY%g
7480 s%@OBJDUMP@%$OBJDUMP%g
7482 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7483 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7484 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7485 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7486 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7487 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7488 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7489 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7490 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7491 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7492 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7493 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7494 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7495 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7496 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7497 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7498 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7499 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7500 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7501 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7502 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7503 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7504 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7506 s%@stage1_cflags@%$stage1_cflags%g
7507 s%@stage2_werror_flag@%$stage2_werror_flag%g
7512 cat >> $CONFIG_STATUS <<\EOF
7514 # Split the substitutions into bite-sized pieces for seds with
7515 # small command number limits, like on Digital OSF/1 and HP-UX.
7516 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7517 ac_file=1 # Number of current file.
7518 ac_beg=1 # First line for current file.
7519 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7522 while $ac_more_lines; do
7523 if test $ac_beg -gt 1; then
7524 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7526 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7528 if test ! -s conftest.s$ac_file; then
7530 rm -f conftest.s$ac_file
7532 if test -z "$ac_sed_cmds"; then
7533 ac_sed_cmds="sed -f conftest.s$ac_file"
7535 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7537 ac_file=`expr $ac_file + 1`
7539 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7542 if test -z "$ac_sed_cmds"; then
7547 cat >> $CONFIG_STATUS <<EOF
7549 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7551 cat >> $CONFIG_STATUS <<\EOF
7552 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7553 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7555 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
7556 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
7557 *) ac_file_in="${ac_file}.in" ;;
7560 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7562 # Remove last slash and all that follows it. Not all systems have dirname.
7563 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7564 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7565 # The file is in a subdirectory.
7566 test ! -d "$ac_dir" && mkdir "$ac_dir"
7567 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
7568 # A "../" for each directory in $ac_dir_suffix.
7569 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
7571 ac_dir_suffix= ac_dots=
7574 case "$ac_given_srcdir" in
7576 if test -z "$ac_dots"; then top_srcdir=.
7577 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
7578 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7580 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7581 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7584 case "$ac_given_INSTALL" in
7585 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7586 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7589 echo creating "$ac_file"
7591 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
7593 *Makefile*) ac_comsub="1i\\
7594 # $configure_input" ;;
7598 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7600 s%@configure_input@%$configure_input%g
7601 s%@srcdir@%$srcdir%g
7602 s%@top_srcdir@%$top_srcdir%g
7603 s%@INSTALL@%$INSTALL%g
7604 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7609 cat >> $CONFIG_STATUS <<EOF
7612 cat >> $CONFIG_STATUS <<\EOF
7616 chmod +x $CONFIG_STATUS
7617 rm -fr confdefs* $ac_clean_files
7618 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1