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 --with-datarootdir Use datarootdir as the data root directory."
49 --with-docdir Install documentation in this directory."
51 --with-htmldir Install html in this directory."
53 # Initialize some variables set by options.
54 # The variables have the same names as the options, with
55 # dashes changed to underlines.
57 cache_file=./config.cache
66 program_transform_name=s,x,x,
74 bindir='${exec_prefix}/bin'
75 sbindir='${exec_prefix}/sbin'
76 libexecdir='${exec_prefix}/libexec'
77 datadir='${prefix}/share'
78 sysconfdir='${prefix}/etc'
79 sharedstatedir='${prefix}/com'
80 localstatedir='${prefix}/var'
81 libdir='${exec_prefix}/lib'
82 includedir='${prefix}/include'
83 oldincludedir='/usr/include'
84 infodir='${prefix}/info'
85 mandir='${prefix}/man'
87 # Initialize some other variables.
90 SHELL=${CONFIG_SHELL-/bin/sh}
91 # Maximum number of lines to put in a shell here document.
98 # If the previous option needs an argument, assign it.
99 if test -n "$ac_prev"; then
100 eval "$ac_prev=\$ac_option"
106 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
110 # Accept the important Cygnus configure options, so we can diagnose typos.
114 -bindir | --bindir | --bindi | --bind | --bin | --bi)
116 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
117 bindir="$ac_optarg" ;;
119 -build | --build | --buil | --bui | --bu)
121 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
122 build="$ac_optarg" ;;
124 -cache-file | --cache-file | --cache-fil | --cache-fi \
125 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
126 ac_prev=cache_file ;;
127 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
128 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
129 cache_file="$ac_optarg" ;;
131 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
133 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
135 datadir="$ac_optarg" ;;
137 -disable-* | --disable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}=no" ;;
146 -enable-* | --enable-*)
147 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}='$ac_optarg'" ;;
159 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
160 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
161 | --exec | --exe | --ex)
162 ac_prev=exec_prefix ;;
163 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
164 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
165 | --exec=* | --exe=* | --ex=*)
166 exec_prefix="$ac_optarg" ;;
168 -gas | --gas | --ga | --g)
169 # Obsolete; use --with-gas.
172 -help | --help | --hel | --he)
173 # Omit some internal or obsolete options to make the list less imposing.
174 # This message is too long to be a string in the A/UX 3.1 sh.
176 Usage: configure [options] [host]
177 Options: [defaults in brackets after descriptions]
179 --cache-file=FILE cache test results in FILE
180 --help print this message
181 --no-create do not create output files
182 --quiet, --silent do not print \`checking...' messages
183 --version print the version of autoconf that created configure
184 Directory and file names:
185 --prefix=PREFIX install architecture-independent files in PREFIX
187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
189 --bindir=DIR user executables in DIR [EPREFIX/bin]
190 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
191 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
192 --datadir=DIR read-only architecture-independent data in DIR
194 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
195 --sharedstatedir=DIR modifiable architecture-independent data in DIR
197 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
198 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
199 --includedir=DIR C header files in DIR [PREFIX/include]
200 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
201 --infodir=DIR info documentation in DIR [PREFIX/info]
202 --mandir=DIR man documentation in DIR [PREFIX/man]
203 --srcdir=DIR find the sources in DIR [configure dir or ..]
204 --program-prefix=PREFIX prepend PREFIX to installed program names
205 --program-suffix=SUFFIX append SUFFIX to installed program names
206 --program-transform-name=PROGRAM
207 run sed PROGRAM on installed program names
211 --build=BUILD configure for building on BUILD [BUILD=HOST]
212 --host=HOST configure for HOST [guessed]
213 --target=TARGET configure for TARGET [TARGET=HOST]
214 Features and packages:
215 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
216 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
217 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
218 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
219 --x-includes=DIR X include files are in DIR
220 --x-libraries=DIR X library files are in DIR
222 if test -n "$ac_help"; then
223 echo "--enable and --with options recognized:$ac_help"
227 -host | --host | --hos | --ho)
229 -host=* | --host=* | --hos=* | --ho=*)
232 -includedir | --includedir | --includedi | --included | --include \
233 | --includ | --inclu | --incl | --inc)
234 ac_prev=includedir ;;
235 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
236 | --includ=* | --inclu=* | --incl=* | --inc=*)
237 includedir="$ac_optarg" ;;
239 -infodir | --infodir | --infodi | --infod | --info | --inf)
241 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
242 infodir="$ac_optarg" ;;
244 -libdir | --libdir | --libdi | --libd)
246 -libdir=* | --libdir=* | --libdi=* | --libd=*)
247 libdir="$ac_optarg" ;;
249 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
250 | --libexe | --libex | --libe)
251 ac_prev=libexecdir ;;
252 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
253 | --libexe=* | --libex=* | --libe=*)
254 libexecdir="$ac_optarg" ;;
256 -localstatedir | --localstatedir | --localstatedi | --localstated \
257 | --localstate | --localstat | --localsta | --localst \
258 | --locals | --local | --loca | --loc | --lo)
259 ac_prev=localstatedir ;;
260 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
261 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
262 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
263 localstatedir="$ac_optarg" ;;
265 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
268 mandir="$ac_optarg" ;;
271 # Obsolete; use --without-fp.
274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
282 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
283 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
284 | --oldin | --oldi | --old | --ol | --o)
285 ac_prev=oldincludedir ;;
286 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
287 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
288 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
289 oldincludedir="$ac_optarg" ;;
291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
294 prefix="$ac_optarg" ;;
296 -program-prefix | --program-prefix | --program-prefi | --program-pref \
297 | --program-pre | --program-pr | --program-p)
298 ac_prev=program_prefix ;;
299 -program-prefix=* | --program-prefix=* | --program-prefi=* \
300 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
301 program_prefix="$ac_optarg" ;;
303 -program-suffix | --program-suffix | --program-suffi | --program-suff \
304 | --program-suf | --program-su | --program-s)
305 ac_prev=program_suffix ;;
306 -program-suffix=* | --program-suffix=* | --program-suffi=* \
307 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
308 program_suffix="$ac_optarg" ;;
310 -program-transform-name | --program-transform-name \
311 | --program-transform-nam | --program-transform-na \
312 | --program-transform-n | --program-transform- \
313 | --program-transform | --program-transfor \
314 | --program-transfo | --program-transf \
315 | --program-trans | --program-tran \
316 | --progr-tra | --program-tr | --program-t)
317 ac_prev=program_transform_name ;;
318 -program-transform-name=* | --program-transform-name=* \
319 | --program-transform-nam=* | --program-transform-na=* \
320 | --program-transform-n=* | --program-transform-=* \
321 | --program-transform=* | --program-transfor=* \
322 | --program-transfo=* | --program-transf=* \
323 | --program-trans=* | --program-tran=* \
324 | --progr-tra=* | --program-tr=* | --program-t=*)
325 program_transform_name="$ac_optarg" ;;
327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
328 | -silent | --silent | --silen | --sile | --sil)
331 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
333 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
335 sbindir="$ac_optarg" ;;
337 -sharedstatedir | --sharedstatedir | --sharedstatedi \
338 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
339 | --sharedst | --shareds | --shared | --share | --shar \
341 ac_prev=sharedstatedir ;;
342 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
343 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
344 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
346 sharedstatedir="$ac_optarg" ;;
348 -site | --site | --sit)
350 -site=* | --site=* | --sit=*)
353 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
355 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
356 srcdir="$ac_optarg" ;;
358 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
359 | --syscon | --sysco | --sysc | --sys | --sy)
360 ac_prev=sysconfdir ;;
361 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
362 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
363 sysconfdir="$ac_optarg" ;;
365 -target | --target | --targe | --targ | --tar | --ta | --t)
367 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
368 target="$ac_optarg" ;;
370 -v | -verbose | --verbose | --verbos | --verbo | --verb)
373 -version | --version | --versio | --versi | --vers)
374 echo "configure generated by autoconf version 2.13"
378 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}='$ac_optarg'" ;;
390 -without-* | --without-*)
391 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}=no" ;;
400 # Obsolete; use --with-x.
403 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
404 | --x-incl | --x-inc | --x-in | --x-i)
405 ac_prev=x_includes ;;
406 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
407 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
408 x_includes="$ac_optarg" ;;
410 -x-libraries | --x-libraries | --x-librarie | --x-librari \
411 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
412 ac_prev=x_libraries ;;
413 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
414 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
415 x_libraries="$ac_optarg" ;;
417 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
421 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422 echo "configure: warning: $ac_option: invalid host type" 1>&2
424 if test "x$nonopt" != xNONE; then
425 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
433 if test -n "$ac_prev"; then
434 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
437 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
439 # File descriptor usage:
442 # 2 errors and warnings
443 # 3 some systems may open it to /dev/tty
444 # 4 used on the Kubota Titan
445 # 6 checking for... messages and results
446 # 5 compiler messages saved in config.log
447 if test "$silent" = yes; then
455 This file contains any messages produced by compilers while
456 running configure, to aid debugging if configure makes a mistake.
459 # Strip out --no-create and --no-recursion so they do not pile up.
460 # Also quote any args containing shell metacharacters.
465 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
466 | --no-cr | --no-c) ;;
467 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
468 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
471 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
476 # Only set these to C if already set. These must not be set unconditionally
477 # because not all systems understand e.g. LANG=C (notably SCO).
478 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479 # Non-C LC_CTYPE values break the ctype check.
480 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
481 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
482 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
483 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
485 # confdefs.h avoids OS command line length limits that DEFS can exceed.
486 rm -rf conftest* confdefs.h
487 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
490 # A filename unique to this package, relative to the directory that
491 # configure is in, which we can look for to find out if srcdir is correct.
492 ac_unique_file=move-if-change
494 # Find the source files, if location was not specified.
495 if test -z "$srcdir"; then
496 ac_srcdir_defaulted=yes
497 # Try the directory containing this script, then its parent.
499 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
502 if test ! -r $srcdir/$ac_unique_file; then
506 ac_srcdir_defaulted=no
508 if test ! -r $srcdir/$ac_unique_file; then
509 if test "$ac_srcdir_defaulted" = yes; then
510 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
512 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
515 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
517 # Prefer explicitly selected file to automatically selected ones.
518 if test -z "$CONFIG_SITE"; then
519 if test "x$prefix" != xNONE; then
520 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
522 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
525 for ac_site_file in $CONFIG_SITE; do
526 if test -r "$ac_site_file"; then
527 echo "loading site script $ac_site_file"
532 if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
536 echo "creating cache $cache_file"
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542 ac_cpp='$CPP $CPPFLAGS'
543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545 cross_compiling=$ac_cv_prog_cc_cross
549 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
558 ac_n= ac_c='\c' ac_t=
564 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
565 if test -f $ac_dir/install-sh; then
567 ac_install_sh="$ac_aux_dir/install-sh -c"
569 elif test -f $ac_dir/install.sh; then
571 ac_install_sh="$ac_aux_dir/install.sh -c"
575 if test -z "$ac_aux_dir"; then
576 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
578 ac_config_guess=$ac_aux_dir/config.guess
579 ac_config_sub=$ac_aux_dir/config.sub
580 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
583 # Do some error checking and defaulting for the host and target type.
585 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
588 # 1. You are not allowed to specify --host, --target, and nonopt at the
590 # 2. Host defaults to nonopt.
591 # 3. If nonopt is not specified, then host defaults to the current host,
592 # as determined by config.guess.
593 # 4. Target and build default to nonopt.
594 # 5. If nonopt is not specified, then target and build default to host.
596 # The aliases save the names the user supplied, while $host etc.
597 # will get canonicalized.
598 case $host---$target---$nonopt in
599 NONE---*---* | *---NONE---* | *---*---NONE) ;;
600 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
604 # Make sure we can run config.sub.
605 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
606 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
609 echo $ac_n "checking host system type""... $ac_c" 1>&6
610 echo "configure:611: checking host system type" >&5
613 case "$host_alias" in
617 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
618 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
620 *) host_alias=$nonopt ;;
624 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
625 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
626 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
627 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
628 echo "$ac_t""$host" 1>&6
630 echo $ac_n "checking target system type""... $ac_c" 1>&6
631 echo "configure:632: checking target system type" >&5
634 case "$target_alias" in
637 NONE) target_alias=$host_alias ;;
638 *) target_alias=$nonopt ;;
642 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
643 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
644 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
645 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
646 echo "$ac_t""$target" 1>&6
648 echo $ac_n "checking build system type""... $ac_c" 1>&6
649 echo "configure:650: checking build system type" >&5
652 case "$build_alias" in
655 NONE) build_alias=$host_alias ;;
656 *) build_alias=$nonopt ;;
660 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
661 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
662 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
663 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
664 echo "$ac_t""$build" 1>&6
666 test "$host_alias" != "$target_alias" &&
667 test "$program_prefix$program_suffix$program_transform_name" = \
669 program_prefix=${target_alias}-
671 if test "$program_transform_name" = s,x,x,; then
672 program_transform_name=
674 # Double any \ or $. echo might interpret backslashes.
675 cat <<\EOF_SED > conftestsed
676 s,\\,\\\\,g; s,\$,$$,g
678 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
681 test "$program_prefix" != NONE &&
682 program_transform_name="s,^,${program_prefix},; $program_transform_name"
683 # Use a double $ so make ignores it.
684 test "$program_suffix" != NONE &&
685 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
687 # sed with no file args requires a program.
688 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
691 # Get 'install' or 'install-sh' and its variants.
692 # Find a good install program. We prefer a C program (faster),
693 # so one script is as good as another. But avoid the broken or
694 # incompatible versions:
695 # SysV /etc/install, /usr/sbin/install
696 # SunOS /usr/etc/install
699 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
700 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
701 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
702 # ./install, which can be erroneously created by make from ./install.sh.
703 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
704 echo "configure:705: checking for a BSD compatible install" >&5
705 if test -z "$INSTALL"; then
706 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
707 echo $ac_n "(cached) $ac_c" 1>&6
709 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
710 for ac_dir in $PATH; do
711 # Account for people who put trailing slashes in PATH elements.
713 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
715 # OSF1 and SCO ODT 3.0 have their own names for install.
716 # Don't use installbsd from OSF since it installs stuff as root
718 for ac_prog in ginstall scoinst install; do
719 if test -f $ac_dir/$ac_prog; then
720 if test $ac_prog = install &&
721 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
722 # AIX install. It has an incompatible calling convention.
725 ac_cv_path_install="$ac_dir/$ac_prog -c"
736 if test "${ac_cv_path_install+set}" = set; then
737 INSTALL="$ac_cv_path_install"
739 # As a last resort, use the slow shell script. We don't cache a
740 # path for INSTALL within a source directory, because that will
741 # break other packages using the cache if that directory is
742 # removed, or if the path is relative.
743 INSTALL="$ac_install_sh"
746 echo "$ac_t""$INSTALL" 1>&6
748 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
749 # It thinks the first close brace ends the variable substitution.
750 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
752 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
754 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
756 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
757 echo "configure:758: checking whether ln works" >&5
758 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
763 if ln conftestdata_f conftestdata_t 2>/dev/null
769 rm -f conftestdata_f conftestdata_t
772 if test $acx_cv_prog_LN = no; then
774 echo "$ac_t""no, using $LN" 1>&6
777 echo "$ac_t""yes" 1>&6
780 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
781 echo "configure:782: checking whether ln -s works" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
786 if ln -s X conftestdata 2>/dev/null
789 ac_cv_prog_LN_S="ln -s"
794 LN_S="$ac_cv_prog_LN_S"
795 if test "$ac_cv_prog_LN_S" = "ln -s"; then
796 echo "$ac_t""yes" 1>&6
798 echo "$ac_t""no" 1>&6
802 ### we might need to use some other shell than /bin/sh for running subshells
803 ### If we are on Windows, search for the shell. This will permit people
804 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
805 ### without also having to set CONFIG_SHELL. This code will work when
806 ### using bash, which sets OSTYPE.
809 if test x${CONFIG_SHELL} = x ; then
810 if test ! -f /bin/sh ; then
811 if test x${SHELL} != x && test -f ${SHELL} ; then
812 CONFIG_SHELL=${SHELL}
815 for prog in sh sh.exe bash bash.exe; do
816 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
818 test -z "$dir" && dir=.
819 if test -f $dir/$prog; then
820 CONFIG_SHELL=$dir/$prog
826 test -n "${CONFIG_SHELL}" && break
834 config_shell=${CONFIG_SHELL-/bin/sh}
837 # if PWD already has a value, it is probably wrong.
838 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
840 # Export original configure arguments for use by sub-configures. These
841 # will be expanded by make, so quote '$'.
843 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
846 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
847 rm -f conftestsed.out
850 moveifchange=${srcdir}/move-if-change
852 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
854 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
856 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
857 INSTALL="${srcpwd}/install-sh -c"
860 # Set srcdir to "." if that's what it is.
861 # This is important for multilib support.
863 if test "${pwd}" = "${srcpwd}" ; then
871 ### To add a new directory to the tree, first choose whether it is a target
872 ### or a host dependent tool. Then put it into the appropriate list
873 ### (library or tools, host or target), doing a dependency sort.
875 # Subdirs will be configured in the order listed in build_configdirs,
876 # configdirs, or target_configdirs; see the serialization section below.
878 # Dependency sorting is only needed when *configuration* must be done in
879 # a particular order. In all cases a dependency should be specified in
880 # the Makefile, whether or not it's implicitly specified here.
882 # Double entries in build_configdirs, configdirs, or target_configdirs may
883 # cause circular dependencies and break everything horribly.
885 # these library is used by various programs built for the build
888 build_libs="build-libiberty"
890 # these tools are built for the build environment
891 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
893 # these libraries are used by various programs built for the host environment
895 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
897 # these tools are built for the host environment
898 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
899 # know that we are building the simulator.
900 # binutils, gas and ld appear in that order because it makes sense to run
901 # "make check" in that particular order.
902 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"
904 # libgcj represents the runtime libraries only used by gcj.
905 libgcj="target-libffi \
911 # these libraries are built for the target environment, and are built after
912 # the host libraries and the host tools (which may be a cross compiler)
914 target_libraries="target-libiberty \
917 target-libstdc++-v3 \
927 # these tools are built using the target libraries, and are intended to
928 # run only in the target environment
930 # note: any program that *uses* libraries that are in the "target_libraries"
931 # list belongs in this list. those programs are also very likely
932 # candidates for the "native_only" list which follows
934 target_tools="target-examples target-groff target-gperf target-rda"
936 ################################################################################
938 ## All tools belong in one of the four categories, and are assigned above
939 ## We assign ${configdirs} this way to remove all embedded newlines. This
940 ## is important because configure will choke if they ever get through.
941 ## ${configdirs} is directories we build using the host tools.
942 ## ${target_configdirs} is directories we build using the target tools.
943 configdirs=`echo ${host_libs} ${host_tools}`
944 target_configdirs=`echo ${target_libraries} ${target_tools}`
945 build_configdirs=`echo ${build_libs} ${build_tools}`
947 ################################################################################
949 srcname="gnu development package"
951 # This gets set non-empty for some net releases of packages.
954 # Define is_cross_compiler to save on calls to 'test'.
956 if test x"${host}" = x"${target}" ; then
959 is_cross_compiler=yes
962 # Find the build and target subdir names.
963 case ${build_alias} in
964 "") build_noncanonical=${build} ;;
965 *) build_noncanonical=${build_alias} ;;
968 case ${host_alias} in
969 "") host_noncanonical=${build_noncanonical} ;;
970 *) host_noncanonical=${host_alias} ;;
973 case ${target_alias} in
974 "") target_noncanonical=${host_noncanonical} ;;
975 *) target_noncanonical=${target_alias} ;;
978 # Prefix 'build-' so this never conflicts with target_subdir.
979 build_subdir="build-${build_noncanonical}"
980 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
981 if ( test $srcdir = . && test -d gcc ) \
982 || test -d $srcdir/../host-${host_noncanonical}; then
983 host_subdir="host-${host_noncanonical}"
988 target_subdir=${target_noncanonical}
991 # Skipdirs are removed silently.
993 # Noconfigdirs are removed loudly.
997 # Make sure we don't let GNU ld be added if we didn't want it.
998 if test x$with_gnu_ld = xno ; then
1000 noconfigdirs="$noconfigdirs ld"
1004 # Make sure we don't let GNU as be added if we didn't want it.
1005 if test x$with_gnu_as = xno ; then
1007 noconfigdirs="$noconfigdirs gas"
1010 # some tools are so dependent upon X11 that if we're not building with X,
1011 # it's not even worth trying to configure, much less build, that tool.
1014 yes | "") ;; # the default value for this tree is that X11 is available
1016 skipdirs="${skipdirs} tk itcl libgui"
1017 # We won't be able to build gdbtk without X.
1020 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1023 # Some tools are only suitable for building in a "native" situation.
1024 # Remove these if host!=target.
1025 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1027 # Similarly, some are only suitable for cross toolchains.
1028 # Remove these if host=target.
1029 cross_only="target-libgloss target-newlib target-opcodes"
1031 case $is_cross_compiler in
1032 no) skipdirs="${skipdirs} ${cross_only}" ;;
1033 yes) skipdirs="${skipdirs} ${native_only}" ;;
1036 # If both --with-headers and --with-libs are specified, default to
1038 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1039 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1040 if test x"${with_newlib}" = x ; then
1045 # Recognize --with-newlib/--without-newlib.
1046 case ${with_newlib} in
1047 no) skipdirs="${skipdirs} target-newlib" ;;
1048 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1051 # Configure extra directories which are host specific
1055 configdirs="$configdirs libtermcap" ;;
1058 # A target can indicate whether a language isn't supported for some reason.
1059 # Only spaces may be used in this macro; not newlines or tabs.
1060 unsupported_languages=
1062 # Remove more programs from consideration, based on the host or
1063 # target this usually means that a port of the program doesn't
1068 noconfigdirs="$noconfigdirs byacc"
1070 i[3456789]86-*-vsta)
1071 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1073 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1074 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1076 i[3456789]86-*-mingw32*)
1077 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1078 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1080 i[3456789]86-*-beos*)
1081 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1084 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1087 noconfigdirs="$noconfigdirs rcs"
1090 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1093 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1098 # Check whether --enable-libada or --disable-libada was given.
1099 if test "${enable_libada+set}" = set; then
1100 enableval="$enable_libada"
1101 ENABLE_LIBADA=$enableval
1106 if test "${ENABLE_LIBADA}" != "yes" ; then
1107 noconfigdirs="$noconfigdirs gnattools"
1110 # Check whether --enable-libssp or --disable-libssp was given.
1111 if test "${enable_libssp+set}" = set; then
1112 enableval="$enable_libssp"
1113 ENABLE_LIBSSP=$enableval
1119 # Set the default so we build libgcc-math for ix86 and x86_64
1120 # Check whether --enable-libgcc-math or --disable-libgcc-math was given.
1121 if test "${enable_libgcc_math+set}" = set; then
1122 enableval="$enable_libgcc_math"
1128 enable_libgcc_math=yes ;;
1130 enable_libgcc_math=no ;;
1136 # Save it here so that, even in case of --enable-libgcj, if the Java
1137 # front-end isn't enabled, we still get libgcj disabled.
1138 libgcj_saved=$libgcj
1139 case $enable_libgcj in
1141 # If we reset it here, it won't get added to noconfigdirs in the
1142 # target-specific build rules, so it will be forcibly enabled
1143 # (unless the Java language itself isn't enabled).
1147 # Make sure we get it printed in the list of not supported target libs.
1148 noconfigdirs="$noconfigdirs ${libgcj}"
1153 # Disable libmudflap on some systems.
1154 if test x$enable_libmudflap = x ; then
1156 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1157 # Enable libmudflap by default in GNU and friends.
1160 # Enable libmudflap by default in FreeBSD.
1163 # Disable it by default everywhere else.
1164 noconfigdirs="$noconfigdirs target-libmudflap"
1169 # Disable libgomp on non POSIX hosted systems.
1170 if test x$enable_libgomp = x ; then
1171 # Enable libgomp by default on hosted POSIX systems.
1173 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1175 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1177 *-*-solaris2* | *-*-sysv4* | *-*-irix* | *-*-osf* | *-*-hpux*)
1179 *-*-darwin* | *-*-aix*)
1182 noconfigdirs="$noconfigdirs target-libgomp"
1190 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1193 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1194 noconfigdirs="$noconfigdirs sim target-rda"
1197 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1198 noconfigdirs="$noconfigdirs sim target-rda"
1199 noconfigdirs="$noconfigdirs ${libgcj}"
1201 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1202 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1205 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1206 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1207 && test -f /usr/local/include/gmp.h; then
1211 # Skip some stuff that's unsupported on some FreeBSD configurations.
1216 noconfigdirs="$noconfigdirs ${libgcj}"
1221 # Remove unsupported stuff on all kaOS configurations.
1222 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1223 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1224 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1225 noconfigdirs="$noconfigdirs target-libgloss"
1228 # Skip some stuff on all NetBSD configurations.
1229 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1231 # Skip some stuff that's unsupported on some NetBSD configurations.
1233 i*86-*-netbsdelf*) ;;
1234 arm*-*-netbsdelf*) ;;
1236 noconfigdirs="$noconfigdirs ${libgcj}"
1241 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1244 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1246 # The tpf target doesn't support gdb yet.
1248 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1251 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1254 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1257 # ld works, but does not support shared libraries.
1258 # newlib is not 64 bit ready. I'm not sure about fileutils.
1259 # gas doesn't generate exception information.
1260 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1263 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1266 # newlib is not 64 bit ready
1267 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1270 # newlib is not 64 bit ready
1271 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1274 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1277 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1279 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1280 noconfigdirs="$noconfigdirs ${libgcj}"
1281 noconfigdirs="$noconfigdirs target-examples"
1282 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1283 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1284 noconfigdirs="$noconfigdirs expect dejagnu"
1285 # the C++ libraries don't build on top of CE's C libraries
1286 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1287 noconfigdirs="$noconfigdirs target-newlib"
1289 *-*-cygwin*) ;; # keep gdb and readline
1290 *) noconfigdirs="$noconfigdirs gdb readline"
1295 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1299 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1300 noconfigdirs="$noconfigdirs ${libgcj}"
1302 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1303 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1305 arm*-*-linux-gnueabi)
1306 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1307 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1310 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1313 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1316 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1319 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1322 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1325 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1328 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1331 noconfigdirs="$noconfigdirs target-libgloss gdb"
1332 if test x${is_cross_compiler} != xno ; then
1333 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1336 c4x-*-* | tic4x-*-*)
1337 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1339 c54x*-*-* | tic54x-*-*)
1340 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1342 cris-*-* | crisv32-*-*)
1343 unsupported_languages="$unsupported_languages java"
1346 unsupported_languages="$unsupported_languages fortran"
1347 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
1349 unsupported_languages="$unsupported_languages fortran"
1350 noconfigdirs="$noconfigdirs target-boehm-gc";;
1352 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
1354 unsupported_languages="$unsupported_languages fortran"
1355 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1359 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1362 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1365 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1368 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1371 noconfigdirs="$noconfigdirs ${libgcj}"
1374 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1377 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1379 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1381 hppa*64*-*-linux* | parisc*64*-*-linux*)
1382 # In this case, it's because the hppa64-linux target is for
1383 # the kernel only at this point and has no libc, and thus no
1384 # headers, crt*.o, etc., all of which are needed by these.
1385 noconfigdirs="$noconfigdirs target-zlib"
1387 parisc*-*-linux* | hppa*-*-linux*)
1391 hppa*-*-openbsd* | \
1393 noconfigdirs="$noconfigdirs ${libgcj}"
1396 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1397 # build on HP-UX 10.20.
1398 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1401 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1404 # No gdb support yet.
1405 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1408 # No gdb or ld support yet.
1409 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1413 i[3456789]86-*-coff | i[3456789]86-*-elf)
1414 noconfigdirs="$noconfigdirs ${libgcj}"
1416 i[3456789]86-*-linux*)
1417 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1418 # not build java stuff by default.
1421 noconfigdirs="$noconfigdirs ${libgcj}";;
1424 # This section makes it possible to build newlib natively on linux.
1425 # If we are using a cross compiler then don't configure newlib.
1426 if test x${is_cross_compiler} != xno ; then
1427 noconfigdirs="$noconfigdirs target-newlib"
1429 noconfigdirs="$noconfigdirs target-libgloss"
1430 # If we are not using a cross compiler, do configure newlib.
1431 # Note however, that newlib will only be configured in this situation
1432 # if the --with-newlib option has been given, because otherwise
1433 # 'target-newlib' will appear in skipdirs.
1435 i[3456789]86-*-mingw32*)
1436 target_configdirs="$target_configdirs target-mingw"
1437 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1439 # Can't build gdb for mingw32 if not native.
1441 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1442 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1447 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1448 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1449 # always build newlib if winsup directory is present.
1450 if test -d "$srcdir/winsup"; then
1451 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1452 elif test -d "$srcdir/newlib"; then
1453 echo "Warning: winsup is missing so newlib can't be built."
1456 # Can't build gdb for Cygwin if not native.
1458 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1459 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1463 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1464 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1467 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1469 i[3456789]86-*-sco3.2v5*)
1470 # The linker does not yet know about weak symbols in COFF,
1471 # and is not configured to handle mixed ELF and COFF.
1472 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1474 i[3456789]86-*-sco*)
1475 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1477 i[3456789]86-*-solaris2*)
1478 noconfigdirs="$noconfigdirs target-libgloss"
1480 i[3456789]86-*-sysv4*)
1481 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1483 i[3456789]86-*-beos*)
1484 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1486 i[3456789]86-*-rdos*)
1487 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1490 noconfigdirs="$noconfigdirs ${libgcj}"
1492 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1493 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1496 noconfigdirs="$noconfigdirs ${libgcj}"
1499 noconfigdirs="$noconfigdirs ${libgcj}"
1502 # The EPOC C++ environment does not support exceptions or rtti,
1503 # and so building libstdc++-v3 tends not to always work.
1504 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1507 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1508 unsupported_languages="$unsupported_languages fortran java"
1511 noconfigdirs="$noconfigdirs ${libgcj}"
1514 noconfigdirs="$noconfigdirs ${libgcj}"
1517 noconfigdirs="$noconfigdirs sim"
1520 # copied from rs6000-*-* entry
1521 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1523 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1524 target_configdirs="$target_configdirs target-winsup"
1525 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1526 # always build newlib.
1527 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1529 # This is temporary until we can link against shared libraries
1530 powerpcle-*-solaris*)
1531 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1534 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1537 noconfigdirs="$noconfigdirs ${libgcj}"
1539 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1542 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1545 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1548 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1551 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1554 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1557 # Linking libjava exceeds command-line length limits on at least
1558 # IRIX 6.2, but not on IRIX 6.5.
1559 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1560 # <oldham@codesourcery.com>
1561 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1564 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1567 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1570 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1573 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1576 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1579 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1582 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1586 i[3456789]86-*-vsta) ;; # don't add gprof back in
1587 i[3456789]86-*-go32*) ;; # don't add gprof back in
1588 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1589 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1591 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1594 noconfigdirs="$noconfigdirs ${libgcj}"
1597 noconfigdirs="$noconfigdirs ${libgcj}"
1600 noconfigdirs="$noconfigdirs ${libgcj}"
1603 noconfigdirs="$noconfigdirs ${libgcj}"
1604 if test x${is_cross_compiler} != xno ; then
1605 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1610 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1611 noconfigdirs="$noconfigdirs ${libgcj}"
1613 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1616 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1619 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1622 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1625 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1628 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1631 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1634 noconfigdirs="$noconfigdirs ${libgcj}"
1637 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1639 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1640 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1643 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1646 noconfigdirs="$noconfigdirs ${libgcj}"
1650 # If we aren't building newlib, then don't build libgloss, since libgloss
1651 # depends upon some newlib header files.
1652 case "${noconfigdirs}" in
1653 *target-libgloss*) ;;
1654 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1657 # Work in distributions that contain no compiler tools, like Autoconf.
1659 host_makefile_frag=/dev/null
1660 if test -d ${srcdir}/config ; then
1663 # Avoid "too much defining" errors from HPUX compiler.
1664 tentative_cc="cc -Wp,-H256000"
1665 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1666 # If it's HP/UX ar, this should be harmless.
1670 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1673 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1674 # chokes on bfd, the compiler won't let you assign integers to enums, and
1675 # other problems. Defining CC to gcc is a questionable way to say "don't use
1676 # the apollo compiler" (the preferred version of GCC could be called cc,
1677 # or whatever), but I'm not sure leaving CC as cc is any better...
1678 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1679 # Used to have BISON=yacc.
1683 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1686 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1687 tentative_cc="cc -Xa"
1688 host_makefile_frag="config/mh-cxux"
1690 m88k-motorola-sysv*)
1693 tentative_cc="cc -Wf,-XNg1000"
1694 host_makefile_frag="config/mh-decstation"
1697 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1698 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1699 host_makefile_frag="config/mh-necv4"
1702 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1703 # environment. Also bump switch table size so that cp-parse will
1704 # compile. Bump string length limit so linker builds.
1705 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1708 host_makefile_frag="config/mh-sysv4"
1711 # This is for a MIPS running RISC/os 4.52C.
1713 # This is needed for GDB, but needs to be in the top-level make because
1714 # if a library is compiled with the bsd headers and gets linked with the
1715 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1716 # a different size).
1717 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1718 # known except to select the sysv environment. Could we use /proc instead?
1719 # These "sysv environments" and "bsd environments" often end up being a pain.
1721 # This is not part of CFLAGS because perhaps not all C compilers have this
1723 tentative_cc="cc -systype sysv"
1728 i[3456789]86-*-sysv5*)
1729 host_makefile_frag="config/mh-sysv5"
1731 i[3456789]86-*-dgux*)
1732 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1733 host_makefile_frag="config/mh-dgux386"
1735 i[3456789]86-ncr-sysv4.3*)
1736 # The MetaWare compiler will generate a copyright message unless you
1737 # turn it off by adding the -Hnocopyr flag.
1738 tentative_cc="cc -Hnocopyr"
1740 i[3456789]86-ncr-sysv4*)
1741 # for an NCR 3000 (i486/SVR4) system.
1742 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1743 # This compiler not only emits obnoxious copyright messages every time
1744 # you run it, but it chokes and dies on a whole bunch of GNU source
1745 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1746 tentative_cc="/usr/ccs/ATT/cc"
1747 host_makefile_frag="config/mh-ncr3000"
1749 i[3456789]86-*-sco3.2v5*)
1751 i[3456789]86-*-sco*)
1752 # The native C compiler botches some simple uses of const. Unfortunately,
1753 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1754 tentative_cc="cc -Dconst="
1755 host_makefile_frag="config/mh-sco"
1757 i[3456789]86-*-udk*)
1758 host_makefile_frag="config/mh-sysv5"
1760 i[3456789]86-*-solaris2*)
1761 host_makefile_frag="config/mh-sysv4"
1763 i[3456789]86-*-msdosdjgpp*)
1764 host_makefile_frag="config/mh-djgpp"
1767 host_makefile_frag="config/mh-cygwin"
1772 host_makefile_frag="config/mh-interix"
1775 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1779 host_makefile_frag="config/mh-solaris"
1782 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1783 # without overflowing the jump tables (-J says to use a 32 bit table)
1784 tentative_cc="cc -J"
1787 tentative_cc="cc -Wp,-H256000"
1790 tentative_cc="cc -Wp,-H256000"
1793 # /bin/cc is less than useful for our purposes. Always use GCC
1794 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1795 host_makefile_frag="config/mh-lynxrs6k"
1798 host_makefile_frag="config/mh-ppc-darwin"
1801 host_makefile_frag="config/mh-ppc-aix"
1804 host_makefile_frag="config/mh-ppc-aix"
1807 # /bin/cc is less than useful for our purposes. Always use GCC
1808 tentative_cc="/bin/gcc"
1811 host_makefile_frag="config/mh-sysv4"
1813 # This is placed last to prevent interfering with the cases above.
1815 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1816 host_makefile_frag="config/mh-x86omitfp"
1821 # If we aren't going to be using gcc, see if we can extract a definition
1822 # of CC from the fragment.
1823 # Actually, use the 'pre-extracted' version above.
1824 if test -z "${CC}" && test "${build}" = "${host}" ; then
1825 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1827 for dir in $PATH; do
1828 test -z "$dir" && dir=.
1829 if test -f $dir/gcc; then
1835 if test -z "${found}" && test -n "${tentative_cc}" ; then
1840 if test "${build}" != "${host}" ; then
1841 # If we are doing a Canadian Cross, in which the host and build systems
1842 # are not the same, we set reasonable default values for the tools.
1844 CC=${CC-${host_alias}-gcc}
1845 CFLAGS=${CFLAGS-"-g -O2"}
1846 CXX=${CXX-${host_alias}-c++}
1847 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1848 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1851 # Set reasonable default values for some tools even if not Canadian.
1852 # Of course, these are different reasonable default values, originally
1853 # specified directly in the Makefile.
1854 # We don't export, so that autoconf can do its job.
1855 # Note that all these settings are above the fragment inclusion point
1856 # in Makefile.in, so can still be overridden by fragments.
1857 # This is all going to change when we autoconfiscate...
1859 CC_FOR_BUILD="\$(CC)"
1860 # Extract the first word of "gcc", so it can be a program name with args.
1861 set dummy gcc; ac_word=$2
1862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1863 echo "configure:1864: checking for $ac_word" >&5
1864 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1867 if test -n "$CC"; then
1868 ac_cv_prog_CC="$CC" # Let the user override the test.
1870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1872 for ac_dir in $ac_dummy; do
1873 test -z "$ac_dir" && ac_dir=.
1874 if test -f $ac_dir/$ac_word; then
1883 if test -n "$CC"; then
1884 echo "$ac_t""$CC" 1>&6
1886 echo "$ac_t""no" 1>&6
1889 if test -z "$CC"; then
1890 # Extract the first word of "cc", so it can be a program name with args.
1891 set dummy cc; ac_word=$2
1892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1893 echo "configure:1894: checking for $ac_word" >&5
1894 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1895 echo $ac_n "(cached) $ac_c" 1>&6
1897 if test -n "$CC"; then
1898 ac_cv_prog_CC="$CC" # Let the user override the test.
1900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1903 for ac_dir in $ac_dummy; do
1904 test -z "$ac_dir" && ac_dir=.
1905 if test -f $ac_dir/$ac_word; then
1906 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1907 ac_prog_rejected=yes
1915 if test $ac_prog_rejected = yes; then
1916 # We found a bogon in the path, so make sure we never use it.
1917 set dummy $ac_cv_prog_CC
1919 if test $# -gt 0; then
1920 # We chose a different compiler from the bogus one.
1921 # However, it has the same basename, so the bogon will be chosen
1922 # first if we set CC to just the basename; use the full file name.
1924 set dummy "$ac_dir/$ac_word" "$@"
1932 if test -n "$CC"; then
1933 echo "$ac_t""$CC" 1>&6
1935 echo "$ac_t""no" 1>&6
1938 if test -z "$CC"; then
1939 case "`uname -s`" in
1941 # Extract the first word of "cl", so it can be a program name with args.
1942 set dummy cl; ac_word=$2
1943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1944 echo "configure:1945: checking for $ac_word" >&5
1945 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1946 echo $ac_n "(cached) $ac_c" 1>&6
1948 if test -n "$CC"; then
1949 ac_cv_prog_CC="$CC" # Let the user override the test.
1951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1953 for ac_dir in $ac_dummy; do
1954 test -z "$ac_dir" && ac_dir=.
1955 if test -f $ac_dir/$ac_word; then
1964 if test -n "$CC"; then
1965 echo "$ac_t""$CC" 1>&6
1967 echo "$ac_t""no" 1>&6
1972 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1975 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1976 echo "configure:1977: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1979 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1980 ac_cpp='$CPP $CPPFLAGS'
1981 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1982 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1983 cross_compiling=$ac_cv_prog_cc_cross
1985 cat > conftest.$ac_ext << EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1992 if { (eval echo configure:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1993 ac_cv_prog_cc_works=yes
1994 # If we can't run a trivial program, we are probably using a cross compiler.
1995 if (./conftest; exit) 2>/dev/null; then
1996 ac_cv_prog_cc_cross=no
1998 ac_cv_prog_cc_cross=yes
2001 echo "configure: failed program was:" >&5
2002 cat conftest.$ac_ext >&5
2003 ac_cv_prog_cc_works=no
2007 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2010 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2011 cross_compiling=$ac_cv_prog_cc_cross
2013 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2014 if test $ac_cv_prog_cc_works = no; then
2015 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2017 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2018 echo "configure:2019: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2019 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2020 cross_compiling=$ac_cv_prog_cc_cross
2022 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2023 echo "configure:2024: checking whether we are using GNU C" >&5
2024 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2027 cat > conftest.c <<EOF
2032 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2039 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2041 if test $ac_cv_prog_gcc = yes; then
2047 ac_test_CFLAGS="${CFLAGS+set}"
2048 ac_save_CFLAGS="$CFLAGS"
2050 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2051 echo "configure:2052: checking whether ${CC-cc} accepts -g" >&5
2052 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2055 echo 'void f(){}' > conftest.c
2056 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2065 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2066 if test "$ac_test_CFLAGS" = set; then
2067 CFLAGS="$ac_save_CFLAGS"
2068 elif test $ac_cv_prog_cc_g = yes; then
2069 if test "$GCC" = yes; then
2075 if test "$GCC" = yes; then
2083 # We must set the default linker to the linker used by gcc for the correct
2084 # operation of libtool. If LD is not defined and we are using gcc, try to
2085 # set the LD default to the ld used by gcc.
2086 if test -z "$LD"; then
2087 if test "$GCC" = yes; then
2090 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2092 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2094 case $gcc_prog_ld in
2095 # Accept absolute paths.
2096 [\\/]* | [A-Za-z]:[\\/]*)
2097 LD="$gcc_prog_ld" ;;
2103 CFLAGS=${CFLAGS-"-g"}
2104 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2107 if test $host != $build; then
2108 ac_tool_prefix=${host_alias}-
2115 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2116 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2118 echo "configure:2119: checking for $ac_word" >&5
2119 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2122 if test -n "$GNATBIND"; then
2123 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2127 for ac_dir in $ac_dummy; do
2128 test -z "$ac_dir" && ac_dir=.
2129 if test -f $ac_dir/$ac_word; then
2130 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2137 GNATBIND="$ac_cv_prog_GNATBIND"
2138 if test -n "$GNATBIND"; then
2139 echo "$ac_t""$GNATBIND" 1>&6
2141 echo "$ac_t""no" 1>&6
2145 if test -z "$ac_cv_prog_GNATBIND"; then
2146 if test -n "$ac_tool_prefix"; then
2147 # Extract the first word of "gnatbind", so it can be a program name with args.
2148 set dummy gnatbind; ac_word=$2
2149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2150 echo "configure:2151: checking for $ac_word" >&5
2151 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2154 if test -n "$GNATBIND"; then
2155 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2159 for ac_dir in $ac_dummy; do
2160 test -z "$ac_dir" && ac_dir=.
2161 if test -f $ac_dir/$ac_word; then
2162 ac_cv_prog_GNATBIND="gnatbind"
2167 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2170 GNATBIND="$ac_cv_prog_GNATBIND"
2171 if test -n "$GNATBIND"; then
2172 echo "$ac_t""$GNATBIND" 1>&6
2174 echo "$ac_t""no" 1>&6
2182 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2183 echo "configure:2184: checking whether compiler driver understands Ada" >&5
2184 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2187 cat >conftest.adb <<EOF
2188 procedure conftest is begin null; end conftest;
2190 acx_cv_cc_gcc_supports_ada=no
2191 # There is a bug in old released versions of GCC which causes the
2192 # driver to exit successfully when the appropriate language module
2193 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2194 # Therefore we must check for the error message as well as an
2195 # unsuccessful exit.
2196 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2197 # given a .adb file, but produce no object file. So we must check
2198 # if an object file was really produced to guard against this.
2199 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2200 if test x"$errors" = x && test -f conftest.$ac_objext; then
2201 acx_cv_cc_gcc_supports_ada=yes
2206 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2208 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2214 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2215 echo "configure:2216: checking how to compare bootstrapped objects" >&5
2216 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2221 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2222 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2223 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2226 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2229 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2230 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2233 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2240 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2241 do_compare="$gcc_cv_prog_cmp_skip"
2245 # Check for GMP and MPFR
2249 # Specify a location for mpfr
2250 # check for this first so it ends up on the link line before gmp.
2251 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2252 if test "${with_mpfr_dir+set}" = set; then
2253 withval="$with_mpfr_dir"
2258 if test "x$with_mpfr_dir" != x; then
2259 gmpinc="-I$with_mpfr_dir"
2260 gmplibs="$with_mpfr_dir/libmpfr.a"
2265 # Check whether --with-mpfr or --without-mpfr was given.
2266 if test "${with_mpfr+set}" = set; then
2267 withval="$with_mpfr"
2272 if test "x$with_mpfr" != x; then
2273 gmplibs="-L$with_mpfr/lib $gmplibs"
2274 gmpinc="-I$with_mpfr/include"
2277 # Specify a location for gmp
2278 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2279 if test "${with_gmp_dir+set}" = set; then
2280 withval="$with_gmp_dir"
2285 if test "x$with_gmp_dir" != x; then
2286 gmpinc="$gmpinc -I$with_gmp_dir"
2287 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2288 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2289 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2290 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2292 # One of the later tests will catch the error if neither library is present.
2294 gmplibs="$gmplibs -lgmp"
2297 # Check whether --with-gmp or --without-gmp was given.
2298 if test "${with_gmp+set}" = set; then
2304 if test "x$with_gmp" != x; then
2305 gmplibs="-L$with_gmp/lib $gmplibs"
2306 gmpinc="-I$with_gmp/include $gmpinc"
2309 saved_CFLAGS="$CFLAGS"
2310 CFLAGS="$CFLAGS $gmpinc"
2311 # Check GMP actually works
2312 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2313 echo "configure:2314: checking for correct version of gmp.h" >&5
2314 cat > conftest.$ac_ext <<EOF
2315 #line 2316 "configure"
2316 #include "confdefs.h"
2320 #if __GNU_MP_VERSION < 3
2326 if { (eval echo configure:2327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2328 echo "$ac_t""yes" 1>&6
2330 echo "configure: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2333 echo "$ac_t""no" 1>&6; have_gmp=no
2337 if test x"$have_gmp" = xyes; then
2338 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2339 echo "configure:2340: checking for MPFR" >&5
2342 LIBS="$LIBS $gmplibs"
2343 cat > conftest.$ac_ext <<EOF
2344 #line 2345 "configure"
2345 #include "confdefs.h"
2349 mpfr_t n; mpfr_init(n);
2352 if { (eval echo configure:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2354 echo "$ac_t""yes" 1>&6
2356 echo "configure: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2359 echo "$ac_t""no" 1>&6; have_gmp=no
2364 CFLAGS="$saved_CFLAGS"
2366 # Flags needed for both GMP and/or MPFR
2370 # By default, C is the only stage 1 language.
2374 # Figure out what language subdirectories are present.
2375 # Look if the user specified --enable-languages="..."; if not, use
2376 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2378 # NB: embedded tabs in this IF block -- do not untabify
2379 if test -d ${srcdir}/gcc; then
2380 if test x"${enable_languages+set}" != xset; then
2381 if test x"${LANGUAGES+set}" = xset; then
2382 enable_languages="${LANGUAGES}"
2383 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2385 enable_languages=all
2388 if test x"${enable_languages}" = x ||
2389 test x"${enable_languages}" = xyes;
2391 echo configure.in: --enable-languages needs at least one language argument 1>&2
2395 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2397 # 'f95' is the old name for the 'fortran' language. We issue a warning
2398 # and make the substitution.
2399 case ,${enable_languages}, in
2401 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2402 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2406 # First scan to see if an enabled language requires some other language.
2407 # We assume that a given config-lang.in will list all the language
2408 # front ends it requires, even if some are required indirectly.
2409 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2410 case ${lang_frag} in
2412 # The odd quoting in the next line works around
2413 # an apparent bug in bash 1.12 on linux.
2414 ${srcdir}/gcc/[*]/config-lang.in) ;;
2416 # From the config-lang.in, get $language, $lang_requires
2420 for other in ${lang_requires} ; do
2421 case ,${enable_languages}, in
2425 echo " \`$other' language required by \`$language'; enabling" 1>&2
2426 enable_languages="${enable_languages},${other}"
2434 new_enable_languages=c
2435 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2436 potential_languages=c
2438 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2439 case ${lang_frag} in
2441 # The odd quoting in the next line works around
2442 # an apparent bug in bash 1.12 on linux.
2443 ${srcdir}/gcc/[*]/config-lang.in) ;;
2445 # From the config-lang.in, get $language, $target_libs,
2446 # $lang_dirs, $boot_language, and $build_by_default
2454 potential_languages="${potential_languages},${language}"
2455 # This is quite sensitive to the ordering of the case statement arms.
2456 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2458 echo "${lang_frag} doesn't set \$language." 1>&2
2462 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2465 *,${language},*:*:*:*)
2466 # Language was explicitly selected; include it.
2470 # 'all' was selected, but this is not a default language
2471 # so do not include it.
2475 # 'all' was selected and this is a default language; include it.
2483 # Disable languages that need GMP if it isn't available.
2484 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2485 *,${language},*:no:yes)
2486 # Specifically requested language; tell them.
2487 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2495 # Disable a language that is unsupported by the target.
2496 case " $unsupported_languages " in
2502 case $add_this_lang in
2504 # Remove language-dependent dirs.
2505 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2508 new_enable_languages="$new_enable_languages,$language"
2509 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2510 case ${boot_language} in
2512 # Add to (comma-separated) list of stage 1 languages.
2513 stage1_languages="${stage1_languages},${language}"
2522 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2523 if test "x$missing_languages" != x; then
2524 { echo "configure: error:
2525 The following requested languages could not be built: ${missing_languages}
2526 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2529 if test "x$new_enable_languages" != "x$enable_languages"; then
2530 echo The following languages will be built: ${new_enable_languages}
2532 enable_languages="$new_enable_languages"
2533 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2536 # Handle --disable-<component> generically.
2537 for dir in $configdirs $build_configdirs $target_configdirs ; do
2538 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2539 if eval test x\${enable_${dirname}} "=" xno ; then
2540 noconfigdirs="$noconfigdirs $dir"
2544 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2545 # $build_configdirs and $target_configdirs.
2546 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2549 for dir in . $skipdirs $noconfigdirs ; do
2550 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2551 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2552 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2553 if test -r $srcdir/$dirname/configure ; then
2554 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2557 notsupp="$notsupp $dir"
2561 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2562 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2563 if test -r $srcdir/$dirname/configure ; then
2564 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2567 notsupp="$notsupp $dir"
2571 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2572 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2573 if test -r $srcdir/$dirname/configure ; then
2574 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2577 notsupp="$notsupp $dir"
2583 # Sometimes the tools are distributed with libiberty but with no other
2584 # libraries. In that case, we don't want to build target-libiberty.
2585 if test -n "${target_configdirs}" ; then
2587 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2588 if test "$i" != "libiberty" ; then
2589 if test -r $srcdir/$i/configure ; then
2595 if test -z "${others}" ; then
2600 # Quietly strip out all directories which aren't configurable in this tree.
2601 # This relies on all configurable subdirectories being autoconfiscated, which
2603 build_configdirs_all="$build_configdirs"
2605 for i in ${build_configdirs_all} ; do
2606 j=`echo $i | sed -e s/build-//g`
2607 if test -f ${srcdir}/$j/configure ; then
2608 build_configdirs="${build_configdirs} $i"
2612 configdirs_all="$configdirs"
2614 for i in ${configdirs_all} ; do
2615 if test -f ${srcdir}/$i/configure ; then
2616 configdirs="${configdirs} $i"
2620 target_configdirs_all="$target_configdirs"
2622 for i in ${target_configdirs_all} ; do
2623 j=`echo $i | sed -e s/target-//g`
2624 if test -f ${srcdir}/$j/configure ; then
2625 target_configdirs="${target_configdirs} $i"
2629 # Produce a warning message for the subdirs we can't configure.
2630 # This isn't especially interesting in the Cygnus tree, but in the individual
2631 # FSF releases, it's important to let people know when their machine isn't
2632 # supported by the one or two programs in a package.
2634 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2635 # If $appdirs is non-empty, at least one of those directories must still
2636 # be configured, or we error out. (E.g., if the gas release supports a
2637 # specified target in some subdirs but not the gas subdir, we shouldn't
2638 # pretend that all is well.)
2639 if test -n "$appdirs" ; then
2640 for dir in $appdirs ; do
2641 if test -r $dir/Makefile.in ; then
2642 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2646 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2652 if test -n "$appdirs" ; then
2653 echo "*** This configuration is not supported by this package." 1>&2
2657 # Okay, some application will build, or we don't care to check. Still
2658 # notify of subdirs not getting built.
2659 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2660 echo " ${notsupp}" 1>&2
2661 echo " (Any other directories should still work fine.)" 1>&2
2671 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2672 if test "${with_build_sysroot+set}" = set; then
2673 withval="$with_build_sysroot"
2674 if test x"$withval" != x ; then
2675 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2678 SYSROOT_CFLAGS_FOR_TARGET=
2683 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2684 # the named directory are copied to $(tooldir)/sys-include.
2685 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2686 if test x${is_cross_compiler} = xno ; then
2687 echo 1>&2 '***' --with-headers is only supported when cross compiling
2690 if test x"${with_headers}" != xyes ; then
2691 case "${exec_prefixoption}" in
2693 *) x=${exec_prefix} ;;
2695 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2699 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2700 # the name directories are copied to $(tooldir)/lib. Multiple directories
2702 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2703 if test x${is_cross_compiler} = xno ; then
2704 echo 1>&2 '***' --with-libs is only supported when cross compiling
2707 if test x"${with_libs}" != xyes ; then
2708 # Copy the libraries in reverse order, so that files in the first named
2709 # library override files in subsequent libraries.
2710 case "${exec_prefixoption}" in
2712 *) x=${exec_prefix} ;;
2714 for l in ${with_libs}; do
2715 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2720 # Set with_gnu_as and with_gnu_ld as appropriate.
2722 # This is done by determining whether or not the appropriate directory
2723 # is available, and by checking whether or not specific configurations
2724 # have requested that this magic not happen.
2726 # The command line options always override the explicit settings in
2727 # configure.in, and the settings in configure.in override this magic.
2729 # If the default for a toolchain is to use GNU as and ld, and you don't
2730 # want to do that, then you should use the --without-gnu-as and
2731 # --without-gnu-ld options for the configure script.
2733 if test x${use_gnu_as} = x &&
2734 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2736 extra_host_args="$extra_host_args --with-gnu-as"
2739 if test x${use_gnu_ld} = x &&
2740 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2742 extra_host_args="$extra_host_args --with-gnu-ld"
2745 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2746 # can detect this case.
2748 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2750 extra_host_args="$extra_host_args --with-newlib"
2753 # Handle ${copy_dirs}
2754 set fnord ${copy_dirs}
2756 while test $# != 0 ; do
2757 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2760 echo Copying $1 to $2
2762 # Use the install script to create the directory and all required
2763 # parent directories.
2764 if test -d $2 ; then
2768 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2771 # Copy the directory, assuming we have tar.
2772 # FIXME: Should we use B in the second tar? Not all systems support it.
2773 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2775 # It is the responsibility of the user to correctly adjust all
2776 # symlinks. If somebody can figure out how to handle them correctly
2777 # here, feel free to add the code.
2784 # Determine a target-dependent exec_prefix that the installed
2785 # gcc will search in. Keep this list sorted by triplet, with
2786 # the *-*-osname triplets last.
2790 md_exec_prefix=/gnu/lib/gcc-lib
2792 i3456786-pc-msdosdjgpp*)
2793 md_exec_prefix=/dev/env/DJDIR/bin
2795 i3456786-*-sco3.2v5*)
2796 if test $with_gnu_as = yes; then
2797 md_exec_prefix=/usr/gnu/bin
2799 md_exec_prefix=/usr/ccs/bin/elf
2804 powerpc-*-chorusos* | \
2805 powerpc*-*-eabi* | \
2806 powerpc*-*-sysv* | \
2807 powerpc*-*-kaos* | \
2809 md_exec_prefix=/usr/ccs/bin
2814 md_exec_prefix=/usr/ccs/bin
2829 md_exec_prefix=/usr/ccs/bin
2833 extra_arflags_for_target=
2834 extra_nmflags_for_target=
2835 extra_ranlibflags_for_target=
2836 target_makefile_frag=/dev/null
2839 target_makefile_frag="config/mt-netware"
2841 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2842 target_makefile_frag="config/mt-gnu"
2844 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2845 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2846 # commands to handle both 32-bit and 64-bit objects. These flags are
2847 # harmless if we're using GNU nm or ar.
2848 extra_arflags_for_target=" -X32_64"
2849 extra_nmflags_for_target=" -B -X32_64"
2852 # ranlib from Darwin requires the -c flag to look at common symbols.
2853 extra_ranlibflags_for_target=" -c"
2855 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2856 target_makefile_frag="config/mt-wince"
2860 alphaieee_frag=/dev/null
2863 # This just makes sure to use the -mieee option to build target libs.
2864 # This should probably be set individually by each library.
2865 alphaieee_frag="config/mt-alphaieee"
2869 # If --enable-target-optspace always use -Os instead of -O2 to build
2870 # the target libraries, similarly if it is not specified, use -Os
2871 # on selected platforms.
2872 ospace_frag=/dev/null
2873 case "${enable_target_optspace}:${target}" in
2875 ospace_frag="config/mt-ospace"
2878 ospace_frag="config/mt-d30v"
2880 :m32r-* | :d10v-* | :fr30-*)
2881 ospace_frag="config/mt-ospace"
2886 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2890 # Default to using --with-stabs for certain targets.
2891 if test x${with_stabs} = x ; then
2895 mips*-*-* | alpha*-*-osf*)
2897 extra_host_args="${extra_host_args} --with-stabs"
2902 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2903 # them automatically.
2906 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2910 # Some systems (e.g., one of the i386-aix systems the gas testers are
2911 # using) don't handle "\$" correctly, so don't use it here.
2912 tooldir='${exec_prefix}'/${target_alias}
2913 build_tooldir=${tooldir}
2915 # Create a .gdbinit file which runs the one in srcdir
2916 # and tells GDB to look there for source files.
2918 if test -r ${srcdir}/.gdbinit ; then
2921 *) cat > ./.gdbinit <<EOF
2925 source ${srcdir}/.gdbinit
2931 # Make sure that the compiler is able to generate an executable. If it
2932 # can't, we are probably in trouble. We don't care whether we can run the
2933 # executable--we might be using a cross compiler--we only care whether it
2934 # can be created. At this point the main configure script has set CC.
2936 echo "int main () { return 0; }" > conftest.c
2937 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2938 if test $? = 0 ; then
2939 if test -s conftest || test -s conftest.exe ; then
2945 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2946 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2953 # The Solaris /usr/ucb/cc compiler does not appear to work.
2955 sparc-sun-solaris2*)
2956 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2957 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2959 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2960 if test -d /opt/cygnus/bin ; then
2961 if test "$could_use" = "" ; then
2962 could_use="/opt/cygnus/bin"
2964 could_use="$could_use or /opt/cygnus/bin"
2967 if test "$could_use" = "" ; then
2968 echo "Warning: compilation may fail because you're using"
2969 echo "/usr/ucb/cc. You should change your PATH or CC "
2970 echo "variable and rerun configure."
2972 echo "Warning: compilation may fail because you're using"
2973 echo "/usr/ucb/cc, when you should use the C compiler from"
2974 echo "$could_use. You should change your"
2975 echo "PATH or CC variable and rerun configure."
2982 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2983 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
2984 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2987 # Record target_configdirs and the configure arguments for target and
2988 # build configuration in Makefile.
2989 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2990 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
2992 # Determine whether gdb needs tk/tcl or not.
2993 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2994 # and in that case we want gdb to be built without tk. Ugh!
2995 # In fact I believe gdb is the *only* package directly dependent on tk,
2996 # so we should be able to put the 'maybe's in unconditionally and
2997 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2998 # 100% sure that that's safe though.
3000 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3001 case "$enable_gdbtk" in
3005 GDB_TK="${gdb_tk}" ;;
3007 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3008 # distro. Eventually someone will fix this and move Insight, nee
3009 # gdbtk to a separate directory.
3010 if test -d ${srcdir}/gdb/gdbtk ; then
3017 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3018 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3020 # Strip out unwanted targets.
3022 # While at that, we remove Makefiles if we were started for recursive
3023 # configuration, so that the top-level Makefile reconfigures them,
3024 # like we used to do when configure itself was recursive.
3026 # Loop over modules. $extrasub must be used with care, limiting as
3027 # much as possible the usage of range addresses. That's because autoconf
3028 # splits the sed script to overcome limits in the number of commands,
3029 # and relying on carefully-timed sed passes may turn out to be very hard
3030 # to maintain later. In this particular case, you just have to be careful
3031 # not to nest @if/@endif pairs, because configure will not warn you at all.
3033 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3034 if test "${enable_bootstrap+set}" = set; then
3035 enableval="$enable_bootstrap"
3038 enable_bootstrap=default
3042 # Issue errors and warnings for invalid/strange bootstrap combinations.
3043 case "$configdirs" in
3044 *gcc*) have_compiler=yes ;;
3045 *) have_compiler=no ;;
3048 case "$have_compiler:$host:$target:$enable_bootstrap" in
3051 # Default behavior. Enable bootstrap if we have a compiler
3052 # and we are in a native configuration.
3053 yes:$build:$build:default)
3054 enable_bootstrap=yes ;;
3057 enable_bootstrap=no ;;
3059 # We have a compiler and we are in a native configuration, bootstrap is ok
3060 yes:$build:$build:yes)
3063 # Other configurations, but we have a compiler. Assume the user knows
3066 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3069 # No compiler: if they passed --enable-bootstrap explicitly, fail
3071 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3073 # Fail if wrong command line
3075 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3079 # Adjust the toplevel makefile according to whether bootstrap was selected.
3080 case "$enable_bootstrap" in
3082 bootstrap_suffix=bootstrap ;;
3084 bootstrap_suffix=no-bootstrap ;;
3087 for module in ${build_configdirs} ; do
3088 if test -z "${no_recursion}" \
3089 && test -f ${build_subdir}/${module}/Makefile; then
3090 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3091 rm -f ${build_subdir}/${module}/Makefile
3094 /^@if build-$module\$/d
3095 /^@endif build-$module\$/d
3096 /^@if build-$module-$bootstrap_suffix\$/d
3097 /^@endif build-$module-$bootstrap_suffix\$/d"
3099 for module in ${configdirs} ; do
3100 if test -z "${no_recursion}"; then
3101 for file in stage*-${module}/Makefile ${module}/Makefile; do
3102 if test -f ${file}; then
3103 echo 1>&2 "*** removing ${file} to force reconfigure"
3110 /^@endif $module\$/d
3111 /^@if $module-$bootstrap_suffix\$/d
3112 /^@endif $module-$bootstrap_suffix\$/d"
3114 for module in ${target_configdirs} ; do
3115 if test -z "${no_recursion}" \
3116 && test -f ${target_subdir}/${module}/Makefile; then
3117 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3118 rm -f ${target_subdir}/${module}/Makefile
3121 /^@if target-$module\$/d
3122 /^@endif target-$module\$/d
3123 /^@if target-$module-$bootstrap_suffix\$/d
3124 /^@endif target-$module-$bootstrap_suffix\$/d"
3128 /^@if /,/^@endif /d"
3130 # Create the serialization dependencies. This uses a temporary file.
3132 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3133 if test "${enable_serial_configure+set}" = set; then
3134 enableval="$enable_serial_configure"
3139 case ${enable_serial_configure} in
3141 enable_serial_build_configure=yes
3142 enable_serial_host_configure=yes
3143 enable_serial_target_configure=yes
3147 # These force 'configure's to be done one at a time, to avoid problems
3148 # with contention over a shared config.cache.
3150 echo '# serdep.tmp' > serdep.tmp
3152 test "x${enable_serial_build_configure}" = xyes &&
3153 for item in ${build_configdirs} ; do
3156 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3161 test "x${enable_serial_host_configure}" = xyes &&
3162 for item in ${configdirs} ; do
3165 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3170 test "x${enable_serial_target_configure}" = xyes &&
3171 for item in ${target_configdirs} ; do
3174 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3178 serialization_dependencies=serdep.tmp
3181 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3182 # target and nonopt. These are the ones we might not want to pass
3183 # down to subconfigures. Also strip program-prefix, program-suffix,
3184 # and program-transform-name, so that we can pass down a consistent
3185 # program-transform-name. If autoconf has put single quotes around
3186 # any of these arguments (because they contain shell metacharacters)
3187 # then this will fail; in practice this only happens for
3188 # --program-transform-name, so be sure to override --program-transform-name
3189 # at the end of the argument list.
3190 # These will be expanded by make, so quote '$'.
3191 cat <<\EOF_SED > conftestsed
3193 s/ --c[a-z-]*[= ][^ ]*//g
3194 s/ --sr[a-z-]*[= ][^ ]*//g
3195 s/ --ho[a-z-]*[= ][^ ]*//g
3196 s/ --bu[a-z-]*[= ][^ ]*//g
3197 s/ --t[a-z-]*[= ][^ ]*//g
3198 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3199 s/ -cache-file[= ][^ ]*//g
3200 s/ -srcdir[= ][^ ]*//g
3201 s/ -host[= ][^ ]*//g
3202 s/ -build[= ][^ ]*//g
3203 s/ -target[= ][^ ]*//g
3204 s/ -program-prefix[= ][^ ]*//g
3205 s/ -program-suffix[= ][^ ]*//g
3206 s/ -program-transform-name[= ][^ ]*//g
3211 sed -f conftestsed <<EOF_SED > conftestsed.out
3212 ${ac_configure_args}
3214 baseargs=`cat conftestsed.out`
3215 rm -f conftestsed conftestsed.out
3217 # Add in --program-transform-name, after --program-prefix and
3218 # --program-suffix have been applied to it. Autoconf has already
3219 # doubled dollar signs and backslashes in program_transform_name; we want
3220 # the backslashes un-doubled, and then the entire thing wrapped in single
3221 # quotes, because this will be expanded first by make and then by the shell.
3222 # Also, because we want to override the logic in subdir configure scripts to
3223 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3224 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3225 ${program_transform_name}
3227 gcc_transform_name=`cat conftestsed.out`
3228 rm -f conftestsed.out
3229 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3231 # For the build-side libraries, we just need to pretend we're native,
3232 # and not use the same cache file. Multilibs are neither needed nor
3234 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3236 # For host modules, accept cache file option, or specification as blank.
3237 case "${cache_file}" in
3239 cache_file_option="" ;;
3240 /* | [A-Za-z]:[\\/]* ) # absolute path
3241 cache_file_option="--cache-file=${cache_file}" ;;
3243 cache_file_option="--cache-file=../${cache_file}" ;;
3246 # Host dirs don't like to share a cache file either, horribly enough.
3247 # This seems to be due to autoconf 2.5x stupidity.
3248 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3250 target_configargs=${baseargs}
3252 # Passing a --with-cross-host argument lets the target libraries know
3253 # whether they are being built with a cross-compiler or being built
3254 # native. However, it would be better to use other mechanisms to make the
3255 # sorts of decisions they want to make on this basis. Please consider
3256 # this option to be deprecated. FIXME.
3257 if test x${is_cross_compiler} = xyes ; then
3258 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3261 # Default to --enable-multilib.
3262 if test x${enable_multilib} = x ; then
3263 target_configargs="--enable-multilib ${target_configargs}"
3266 # Pass --with-newlib if appropriate. Note that target_configdirs has
3267 # changed from the earlier setting of with_newlib.
3268 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3269 target_configargs="--with-newlib ${target_configargs}"
3272 # Different target subdirs use different values of certain variables
3273 # (notably CXX). Worse, multilibs use *lots* of different values.
3274 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3275 # it doesn't automatically accept command-line overrides of them.
3276 # This means it's not safe for target subdirs to share a cache file,
3277 # which is disgusting, but there you have it. Hopefully this can be
3278 # fixed in future. It's still worthwhile to use a cache file for each
3279 # directory. I think.
3281 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3282 # We need to pass --target, as newer autoconf's requires consistency
3283 # for target_alias and gcc doesn't manage it consistently.
3284 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3287 case " $target_configdirs " in
3289 case " $target_configargs " in
3290 *" --with-newlib "*)
3293 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' ;;
3296 # If we're not building GCC, don't discard standard headers.
3297 if test -d ${srcdir}/gcc; then
3298 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3300 if test "${build}" != "${host}"; then
3301 # On Canadian crosses, CC_FOR_TARGET will have already been set
3302 # by `configure', so we won't have an opportunity to add -Bgcc/
3303 # to it. This is right: we don't want to search that directory
3304 # for binaries, but we want the header files in there, so add
3306 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3308 # Someone might think of using the pre-installed headers on
3309 # Canadian crosses, in case the installed compiler is not fully
3310 # compatible with the compiler being built. In this case, it
3311 # would be better to flag an error than risking having
3312 # incompatible object files being constructed. We can't
3313 # guarantee that an error will be flagged, but let's hope the
3314 # compiler will do it, when presented with incompatible header
3319 case "${target}-${is_cross_compiler}" in
3320 i[3456789]86-*-linux*-no)
3321 # Here host == target, so we don't need to build gcc,
3322 # so we don't want to discard standard headers.
3323 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3326 # If we're building newlib, use its generic headers last, but search
3327 # for any libc-related directories first (so make it the last -B
3329 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3337 # Allow the user to override the flags for
3338 # our build compiler if desired.
3339 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3341 # On Canadian crosses, we'll be searching the right directories for
3342 # the previously-installed cross compiler, so don't bother to add
3343 # flags for directories within the install tree of the compiler
3344 # being built; programs in there won't even run.
3345 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3346 # Search for pre-installed headers if nothing else fits.
3347 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3350 if test "x${use_gnu_ld}" = x &&
3351 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3352 # Arrange for us to find uninstalled linker scripts.
3353 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3356 # Search for other target-specific linker scripts and such.
3359 if test -d ${srcdir}/libgloss/m32c; then
3360 # This is for crt0.o
3361 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3362 # This is for r8c.ld
3363 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3364 # This is for libnosys.a
3365 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3370 # Makefile fragments.
3371 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3373 eval fragval=\$$frag
3374 if test $fragval != /dev/null; then
3375 eval $frag=${srcdir}/$fragval
3383 # Miscellanea: directories, flags, etc.
3391 # Build module lists & subconfigure args.
3395 # Host module lists & subconfigure args.
3399 # Target module lists & subconfigure args.
3407 # Generate default definitions for YACC, M4, LEX and other programs that run
3408 # on the build machine. These are used if the Makefile can't locate these
3409 # programs in objdir.
3410 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3412 for ac_prog in 'bison -y' byacc yacc
3414 # Extract the first word of "$ac_prog", so it can be a program name with args.
3415 set dummy $ac_prog; ac_word=$2
3416 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3417 echo "configure:3418: checking for $ac_word" >&5
3418 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3421 if test -n "$YACC"; then
3422 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3426 for ac_dir in $ac_dummy; do
3427 test -z "$ac_dir" && ac_dir=.
3428 if test -f $ac_dir/$ac_word; then
3429 ac_cv_prog_YACC="$ac_prog"
3436 YACC="$ac_cv_prog_YACC"
3437 if test -n "$YACC"; then
3438 echo "$ac_t""$YACC" 1>&6
3440 echo "$ac_t""no" 1>&6
3443 test -n "$YACC" && break
3445 test -n "$YACC" || YACC="$MISSING bison -y"
3447 case " $build_configdirs " in
3448 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3449 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3452 for ac_prog in bison
3454 # Extract the first word of "$ac_prog", so it can be a program name with args.
3455 set dummy $ac_prog; ac_word=$2
3456 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3457 echo "configure:3458: checking for $ac_word" >&5
3458 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3459 echo $ac_n "(cached) $ac_c" 1>&6
3461 if test -n "$BISON"; then
3462 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3466 for ac_dir in $ac_dummy; do
3467 test -z "$ac_dir" && ac_dir=.
3468 if test -f $ac_dir/$ac_word; then
3469 ac_cv_prog_BISON="$ac_prog"
3476 BISON="$ac_cv_prog_BISON"
3477 if test -n "$BISON"; then
3478 echo "$ac_t""$BISON" 1>&6
3480 echo "$ac_t""no" 1>&6
3483 test -n "$BISON" && break
3485 test -n "$BISON" || BISON="$MISSING bison"
3487 case " $build_configdirs " in
3488 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3491 for ac_prog in gm4 gnum4 m4
3493 # Extract the first word of "$ac_prog", so it can be a program name with args.
3494 set dummy $ac_prog; ac_word=$2
3495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3496 echo "configure:3497: checking for $ac_word" >&5
3497 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3500 if test -n "$M4"; then
3501 ac_cv_prog_M4="$M4" # Let the user override the test.
3503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3505 for ac_dir in $ac_dummy; do
3506 test -z "$ac_dir" && ac_dir=.
3507 if test -f $ac_dir/$ac_word; then
3508 ac_cv_prog_M4="$ac_prog"
3516 if test -n "$M4"; then
3517 echo "$ac_t""$M4" 1>&6
3519 echo "$ac_t""no" 1>&6
3522 test -n "$M4" && break
3524 test -n "$M4" || M4="$MISSING m4"
3526 case " $build_configdirs " in
3527 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3530 for ac_prog in flex lex
3532 # Extract the first word of "$ac_prog", so it can be a program name with args.
3533 set dummy $ac_prog; ac_word=$2
3534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3535 echo "configure:3536: checking for $ac_word" >&5
3536 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3539 if test -n "$LEX"; then
3540 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3544 for ac_dir in $ac_dummy; do
3545 test -z "$ac_dir" && ac_dir=.
3546 if test -f $ac_dir/$ac_word; then
3547 ac_cv_prog_LEX="$ac_prog"
3554 LEX="$ac_cv_prog_LEX"
3555 if test -n "$LEX"; then
3556 echo "$ac_t""$LEX" 1>&6
3558 echo "$ac_t""no" 1>&6
3561 test -n "$LEX" && break
3563 test -n "$LEX" || LEX="$MISSING flex"
3565 case " $build_configdirs " in
3566 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3567 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3572 # Extract the first word of "$ac_prog", so it can be a program name with args.
3573 set dummy $ac_prog; ac_word=$2
3574 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3575 echo "configure:3576: checking for $ac_word" >&5
3576 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3579 if test -n "$FLEX"; then
3580 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3582 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3584 for ac_dir in $ac_dummy; do
3585 test -z "$ac_dir" && ac_dir=.
3586 if test -f $ac_dir/$ac_word; then
3587 ac_cv_prog_FLEX="$ac_prog"
3594 FLEX="$ac_cv_prog_FLEX"
3595 if test -n "$FLEX"; then
3596 echo "$ac_t""$FLEX" 1>&6
3598 echo "$ac_t""no" 1>&6
3601 test -n "$FLEX" && break
3603 test -n "$FLEX" || FLEX="$MISSING flex"
3605 case " $build_configdirs " in
3606 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3609 for ac_prog in makeinfo
3611 # Extract the first word of "$ac_prog", so it can be a program name with args.
3612 set dummy $ac_prog; ac_word=$2
3613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3614 echo "configure:3615: checking for $ac_word" >&5
3615 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 if test -n "$MAKEINFO"; then
3619 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3623 for ac_dir in $ac_dummy; do
3624 test -z "$ac_dir" && ac_dir=.
3625 if test -f $ac_dir/$ac_word; then
3626 ac_cv_prog_MAKEINFO="$ac_prog"
3633 MAKEINFO="$ac_cv_prog_MAKEINFO"
3634 if test -n "$MAKEINFO"; then
3635 echo "$ac_t""$MAKEINFO" 1>&6
3637 echo "$ac_t""no" 1>&6
3640 test -n "$MAKEINFO" && break
3642 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3644 case " $build_configdirs " in
3645 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3648 # For an installed makeinfo, we require it to be from texinfo 4.4 or
3649 # higher, else we use the "missing" dummy.
3650 if ${MAKEINFO} --version \
3651 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
3654 MAKEINFO="$MISSING makeinfo"
3660 # FIXME: expect and dejagnu may become build tools?
3662 for ac_prog in expect
3664 # Extract the first word of "$ac_prog", so it can be a program name with args.
3665 set dummy $ac_prog; ac_word=$2
3666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3667 echo "configure:3668: checking for $ac_word" >&5
3668 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3671 if test -n "$EXPECT"; then
3672 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3676 for ac_dir in $ac_dummy; do
3677 test -z "$ac_dir" && ac_dir=.
3678 if test -f $ac_dir/$ac_word; then
3679 ac_cv_prog_EXPECT="$ac_prog"
3686 EXPECT="$ac_cv_prog_EXPECT"
3687 if test -n "$EXPECT"; then
3688 echo "$ac_t""$EXPECT" 1>&6
3690 echo "$ac_t""no" 1>&6
3693 test -n "$EXPECT" && break
3695 test -n "$EXPECT" || EXPECT="expect"
3697 case " $configdirs " in
3699 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3703 for ac_prog in runtest
3705 # Extract the first word of "$ac_prog", so it can be a program name with args.
3706 set dummy $ac_prog; ac_word=$2
3707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3708 echo "configure:3709: checking for $ac_word" >&5
3709 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3710 echo $ac_n "(cached) $ac_c" 1>&6
3712 if test -n "$RUNTEST"; then
3713 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3717 for ac_dir in $ac_dummy; do
3718 test -z "$ac_dir" && ac_dir=.
3719 if test -f $ac_dir/$ac_word; then
3720 ac_cv_prog_RUNTEST="$ac_prog"
3727 RUNTEST="$ac_cv_prog_RUNTEST"
3728 if test -n "$RUNTEST"; then
3729 echo "$ac_t""$RUNTEST" 1>&6
3731 echo "$ac_t""no" 1>&6
3734 test -n "$RUNTEST" && break
3736 test -n "$RUNTEST" || RUNTEST="runtest"
3738 case " $configdirs " in
3740 test $host = $build && RUNTEST='$$r/$(HOST_SUBDIR)/dejagnu/runtest'
3747 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3748 ncn_target_tool_prefix=
3749 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3751 for ncn_progname in ar; do
3752 if test -n "$ncn_tool_prefix"; then
3753 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3754 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3755 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3756 echo "configure:3757: checking for $ac_word" >&5
3757 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3758 echo $ac_n "(cached) $ac_c" 1>&6
3760 if test -n "$AR"; then
3761 ac_cv_prog_AR="$AR" # Let the user override the test.
3763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3765 for ac_dir in $ac_dummy; do
3766 test -z "$ac_dir" && ac_dir=.
3767 if test -f $ac_dir/$ac_word; then
3768 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3776 if test -n "$AR"; then
3777 echo "$ac_t""$AR" 1>&6
3779 echo "$ac_t""no" 1>&6
3783 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3785 set dummy ${ncn_progname}; ac_word=$2
3786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3787 echo "configure:3788: checking for $ac_word" >&5
3788 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3789 echo $ac_n "(cached) $ac_c" 1>&6
3791 if test -n "$AR"; then
3792 ac_cv_prog_AR="$AR" # Let the user override the test.
3794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3796 for ac_dir in $ac_dummy; do
3797 test -z "$ac_dir" && ac_dir=.
3798 if test -f $ac_dir/$ac_word; then
3799 ac_cv_prog_AR="${ncn_progname}"
3807 if test -n "$AR"; then
3808 echo "$ac_t""$AR" 1>&6
3810 echo "$ac_t""no" 1>&6
3814 test -n "$ac_cv_prog_AR" && break
3817 if test -z "$ac_cv_prog_AR" ; then
3819 if test $build = $host ; then
3822 AR="${ncn_tool_prefix}$2"
3826 for ncn_progname in as; do
3827 if test -n "$ncn_tool_prefix"; then
3828 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3829 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3831 echo "configure:3832: checking for $ac_word" >&5
3832 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3833 echo $ac_n "(cached) $ac_c" 1>&6
3835 if test -n "$AS"; then
3836 ac_cv_prog_AS="$AS" # Let the user override the test.
3838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3840 for ac_dir in $ac_dummy; do
3841 test -z "$ac_dir" && ac_dir=.
3842 if test -f $ac_dir/$ac_word; then
3843 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3851 if test -n "$AS"; then
3852 echo "$ac_t""$AS" 1>&6
3854 echo "$ac_t""no" 1>&6
3858 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3860 set dummy ${ncn_progname}; ac_word=$2
3861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3862 echo "configure:3863: checking for $ac_word" >&5
3863 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3866 if test -n "$AS"; then
3867 ac_cv_prog_AS="$AS" # Let the user override the test.
3869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3871 for ac_dir in $ac_dummy; do
3872 test -z "$ac_dir" && ac_dir=.
3873 if test -f $ac_dir/$ac_word; then
3874 ac_cv_prog_AS="${ncn_progname}"
3882 if test -n "$AS"; then
3883 echo "$ac_t""$AS" 1>&6
3885 echo "$ac_t""no" 1>&6
3889 test -n "$ac_cv_prog_AS" && break
3892 if test -z "$ac_cv_prog_AS" ; then
3894 if test $build = $host ; then
3897 AS="${ncn_tool_prefix}$2"
3901 for ncn_progname in dlltool; do
3902 if test -n "$ncn_tool_prefix"; then
3903 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3904 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3906 echo "configure:3907: checking for $ac_word" >&5
3907 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3910 if test -n "$DLLTOOL"; then
3911 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3915 for ac_dir in $ac_dummy; do
3916 test -z "$ac_dir" && ac_dir=.
3917 if test -f $ac_dir/$ac_word; then
3918 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3925 DLLTOOL="$ac_cv_prog_DLLTOOL"
3926 if test -n "$DLLTOOL"; then
3927 echo "$ac_t""$DLLTOOL" 1>&6
3929 echo "$ac_t""no" 1>&6
3933 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3935 set dummy ${ncn_progname}; ac_word=$2
3936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3937 echo "configure:3938: checking for $ac_word" >&5
3938 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3939 echo $ac_n "(cached) $ac_c" 1>&6
3941 if test -n "$DLLTOOL"; then
3942 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3946 for ac_dir in $ac_dummy; do
3947 test -z "$ac_dir" && ac_dir=.
3948 if test -f $ac_dir/$ac_word; then
3949 ac_cv_prog_DLLTOOL="${ncn_progname}"
3956 DLLTOOL="$ac_cv_prog_DLLTOOL"
3957 if test -n "$DLLTOOL"; then
3958 echo "$ac_t""$DLLTOOL" 1>&6
3960 echo "$ac_t""no" 1>&6
3964 test -n "$ac_cv_prog_DLLTOOL" && break
3967 if test -z "$ac_cv_prog_DLLTOOL" ; then
3969 if test $build = $host ; then
3972 DLLTOOL="${ncn_tool_prefix}$2"
3976 for ncn_progname in ld; do
3977 if test -n "$ncn_tool_prefix"; then
3978 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3979 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3981 echo "configure:3982: checking for $ac_word" >&5
3982 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3983 echo $ac_n "(cached) $ac_c" 1>&6
3985 if test -n "$LD"; then
3986 ac_cv_prog_LD="$LD" # Let the user override the test.
3988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3990 for ac_dir in $ac_dummy; do
3991 test -z "$ac_dir" && ac_dir=.
3992 if test -f $ac_dir/$ac_word; then
3993 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
4001 if test -n "$LD"; then
4002 echo "$ac_t""$LD" 1>&6
4004 echo "$ac_t""no" 1>&6
4008 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4010 set dummy ${ncn_progname}; ac_word=$2
4011 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4012 echo "configure:4013: checking for $ac_word" >&5
4013 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4014 echo $ac_n "(cached) $ac_c" 1>&6
4016 if test -n "$LD"; then
4017 ac_cv_prog_LD="$LD" # Let the user override the test.
4019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4021 for ac_dir in $ac_dummy; do
4022 test -z "$ac_dir" && ac_dir=.
4023 if test -f $ac_dir/$ac_word; then
4024 ac_cv_prog_LD="${ncn_progname}"
4032 if test -n "$LD"; then
4033 echo "$ac_t""$LD" 1>&6
4035 echo "$ac_t""no" 1>&6
4039 test -n "$ac_cv_prog_LD" && break
4042 if test -z "$ac_cv_prog_LD" ; then
4044 if test $build = $host ; then
4047 LD="${ncn_tool_prefix}$2"
4051 for ncn_progname in lipo; do
4052 if test -n "$ncn_tool_prefix"; then
4053 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4054 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4056 echo "configure:4057: checking for $ac_word" >&5
4057 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4060 if test -n "$LIPO"; then
4061 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4063 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4065 for ac_dir in $ac_dummy; do
4066 test -z "$ac_dir" && ac_dir=.
4067 if test -f $ac_dir/$ac_word; then
4068 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4075 LIPO="$ac_cv_prog_LIPO"
4076 if test -n "$LIPO"; then
4077 echo "$ac_t""$LIPO" 1>&6
4079 echo "$ac_t""no" 1>&6
4083 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4085 set dummy ${ncn_progname}; ac_word=$2
4086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4087 echo "configure:4088: checking for $ac_word" >&5
4088 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4091 if test -n "$LIPO"; then
4092 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4096 for ac_dir in $ac_dummy; do
4097 test -z "$ac_dir" && ac_dir=.
4098 if test -f $ac_dir/$ac_word; then
4099 ac_cv_prog_LIPO="${ncn_progname}"
4106 LIPO="$ac_cv_prog_LIPO"
4107 if test -n "$LIPO"; then
4108 echo "$ac_t""$LIPO" 1>&6
4110 echo "$ac_t""no" 1>&6
4114 test -n "$ac_cv_prog_LIPO" && break
4117 if test -z "$ac_cv_prog_LIPO" ; then
4119 if test $build = $host ; then
4122 LIPO="${ncn_tool_prefix}$2"
4126 for ncn_progname in nm; do
4127 if test -n "$ncn_tool_prefix"; then
4128 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4129 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4131 echo "configure:4132: checking for $ac_word" >&5
4132 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4133 echo $ac_n "(cached) $ac_c" 1>&6
4135 if test -n "$NM"; then
4136 ac_cv_prog_NM="$NM" # Let the user override the test.
4138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4140 for ac_dir in $ac_dummy; do
4141 test -z "$ac_dir" && ac_dir=.
4142 if test -f $ac_dir/$ac_word; then
4143 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4151 if test -n "$NM"; then
4152 echo "$ac_t""$NM" 1>&6
4154 echo "$ac_t""no" 1>&6
4158 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4159 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4160 set dummy ${ncn_progname}; ac_word=$2
4161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4162 echo "configure:4163: checking for $ac_word" >&5
4163 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4164 echo $ac_n "(cached) $ac_c" 1>&6
4166 if test -n "$NM"; then
4167 ac_cv_prog_NM="$NM" # Let the user override the test.
4169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4171 for ac_dir in $ac_dummy; do
4172 test -z "$ac_dir" && ac_dir=.
4173 if test -f $ac_dir/$ac_word; then
4174 ac_cv_prog_NM="${ncn_progname}"
4182 if test -n "$NM"; then
4183 echo "$ac_t""$NM" 1>&6
4185 echo "$ac_t""no" 1>&6
4189 test -n "$ac_cv_prog_NM" && break
4192 if test -z "$ac_cv_prog_NM" ; then
4194 if test $build = $host ; then
4197 NM="${ncn_tool_prefix}$2"
4201 for ncn_progname in ranlib; do
4202 if test -n "$ncn_tool_prefix"; then
4203 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4204 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4206 echo "configure:4207: checking for $ac_word" >&5
4207 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4208 echo $ac_n "(cached) $ac_c" 1>&6
4210 if test -n "$RANLIB"; then
4211 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4215 for ac_dir in $ac_dummy; do
4216 test -z "$ac_dir" && ac_dir=.
4217 if test -f $ac_dir/$ac_word; then
4218 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4225 RANLIB="$ac_cv_prog_RANLIB"
4226 if test -n "$RANLIB"; then
4227 echo "$ac_t""$RANLIB" 1>&6
4229 echo "$ac_t""no" 1>&6
4233 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4235 set dummy ${ncn_progname}; ac_word=$2
4236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4237 echo "configure:4238: checking for $ac_word" >&5
4238 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4239 echo $ac_n "(cached) $ac_c" 1>&6
4241 if test -n "$RANLIB"; then
4242 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4246 for ac_dir in $ac_dummy; do
4247 test -z "$ac_dir" && ac_dir=.
4248 if test -f $ac_dir/$ac_word; then
4249 ac_cv_prog_RANLIB="${ncn_progname}"
4256 RANLIB="$ac_cv_prog_RANLIB"
4257 if test -n "$RANLIB"; then
4258 echo "$ac_t""$RANLIB" 1>&6
4260 echo "$ac_t""no" 1>&6
4264 test -n "$ac_cv_prog_RANLIB" && break
4267 if test -z "$ac_cv_prog_RANLIB" ; then
4271 for ncn_progname in strip; do
4272 if test -n "$ncn_tool_prefix"; then
4273 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4274 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4276 echo "configure:4277: checking for $ac_word" >&5
4277 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4280 if test -n "$STRIP"; then
4281 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4285 for ac_dir in $ac_dummy; do
4286 test -z "$ac_dir" && ac_dir=.
4287 if test -f $ac_dir/$ac_word; then
4288 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4295 STRIP="$ac_cv_prog_STRIP"
4296 if test -n "$STRIP"; then
4297 echo "$ac_t""$STRIP" 1>&6
4299 echo "$ac_t""no" 1>&6
4303 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4304 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4305 set dummy ${ncn_progname}; ac_word=$2
4306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4307 echo "configure:4308: checking for $ac_word" >&5
4308 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4309 echo $ac_n "(cached) $ac_c" 1>&6
4311 if test -n "$STRIP"; then
4312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4316 for ac_dir in $ac_dummy; do
4317 test -z "$ac_dir" && ac_dir=.
4318 if test -f $ac_dir/$ac_word; then
4319 ac_cv_prog_STRIP="${ncn_progname}"
4326 STRIP="$ac_cv_prog_STRIP"
4327 if test -n "$STRIP"; then
4328 echo "$ac_t""$STRIP" 1>&6
4330 echo "$ac_t""no" 1>&6
4334 test -n "$ac_cv_prog_STRIP" && break
4337 if test -z "$ac_cv_prog_STRIP" ; then
4341 for ncn_progname in windres; do
4342 if test -n "$ncn_tool_prefix"; then
4343 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4344 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4346 echo "configure:4347: checking for $ac_word" >&5
4347 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4350 if test -n "$WINDRES"; then
4351 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4355 for ac_dir in $ac_dummy; do
4356 test -z "$ac_dir" && ac_dir=.
4357 if test -f $ac_dir/$ac_word; then
4358 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4365 WINDRES="$ac_cv_prog_WINDRES"
4366 if test -n "$WINDRES"; then
4367 echo "$ac_t""$WINDRES" 1>&6
4369 echo "$ac_t""no" 1>&6
4373 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4375 set dummy ${ncn_progname}; ac_word=$2
4376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4377 echo "configure:4378: checking for $ac_word" >&5
4378 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4381 if test -n "$WINDRES"; then
4382 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4386 for ac_dir in $ac_dummy; do
4387 test -z "$ac_dir" && ac_dir=.
4388 if test -f $ac_dir/$ac_word; then
4389 ac_cv_prog_WINDRES="${ncn_progname}"
4396 WINDRES="$ac_cv_prog_WINDRES"
4397 if test -n "$WINDRES"; then
4398 echo "$ac_t""$WINDRES" 1>&6
4400 echo "$ac_t""no" 1>&6
4404 test -n "$ac_cv_prog_WINDRES" && break
4407 if test -z "$ac_cv_prog_WINDRES" ; then
4409 if test $build = $host ; then
4412 WINDRES="${ncn_tool_prefix}$2"
4416 for ncn_progname in objcopy; do
4417 if test -n "$ncn_tool_prefix"; then
4418 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4419 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4420 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4421 echo "configure:4422: checking for $ac_word" >&5
4422 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4423 echo $ac_n "(cached) $ac_c" 1>&6
4425 if test -n "$OBJCOPY"; then
4426 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4430 for ac_dir in $ac_dummy; do
4431 test -z "$ac_dir" && ac_dir=.
4432 if test -f $ac_dir/$ac_word; then
4433 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4440 OBJCOPY="$ac_cv_prog_OBJCOPY"
4441 if test -n "$OBJCOPY"; then
4442 echo "$ac_t""$OBJCOPY" 1>&6
4444 echo "$ac_t""no" 1>&6
4448 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4450 set dummy ${ncn_progname}; ac_word=$2
4451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4452 echo "configure:4453: checking for $ac_word" >&5
4453 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4454 echo $ac_n "(cached) $ac_c" 1>&6
4456 if test -n "$OBJCOPY"; then
4457 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4461 for ac_dir in $ac_dummy; do
4462 test -z "$ac_dir" && ac_dir=.
4463 if test -f $ac_dir/$ac_word; then
4464 ac_cv_prog_OBJCOPY="${ncn_progname}"
4471 OBJCOPY="$ac_cv_prog_OBJCOPY"
4472 if test -n "$OBJCOPY"; then
4473 echo "$ac_t""$OBJCOPY" 1>&6
4475 echo "$ac_t""no" 1>&6
4479 test -n "$ac_cv_prog_OBJCOPY" && break
4482 if test -z "$ac_cv_prog_OBJCOPY" ; then
4484 if test $build = $host ; then
4487 OBJCOPY="${ncn_tool_prefix}$2"
4491 for ncn_progname in objdump; do
4492 if test -n "$ncn_tool_prefix"; then
4493 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4494 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4496 echo "configure:4497: checking for $ac_word" >&5
4497 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4500 if test -n "$OBJDUMP"; then
4501 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4505 for ac_dir in $ac_dummy; do
4506 test -z "$ac_dir" && ac_dir=.
4507 if test -f $ac_dir/$ac_word; then
4508 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4515 OBJDUMP="$ac_cv_prog_OBJDUMP"
4516 if test -n "$OBJDUMP"; then
4517 echo "$ac_t""$OBJDUMP" 1>&6
4519 echo "$ac_t""no" 1>&6
4523 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4525 set dummy ${ncn_progname}; ac_word=$2
4526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4527 echo "configure:4528: checking for $ac_word" >&5
4528 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4529 echo $ac_n "(cached) $ac_c" 1>&6
4531 if test -n "$OBJDUMP"; then
4532 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4536 for ac_dir in $ac_dummy; do
4537 test -z "$ac_dir" && ac_dir=.
4538 if test -f $ac_dir/$ac_word; then
4539 ac_cv_prog_OBJDUMP="${ncn_progname}"
4546 OBJDUMP="$ac_cv_prog_OBJDUMP"
4547 if test -n "$OBJDUMP"; then
4548 echo "$ac_t""$OBJDUMP" 1>&6
4550 echo "$ac_t""no" 1>&6
4554 test -n "$ac_cv_prog_OBJDUMP" && break
4557 if test -z "$ac_cv_prog_OBJDUMP" ; then
4559 if test $build = $host ; then
4562 OBJDUMP="${ncn_tool_prefix}$2"
4573 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4574 if test "${with_build_time_tools+set}" = set; then
4575 withval="$with_build_time_tools"
4579 with_build_time_tools=
4580 echo "configure: warning: argument to --with-build-time-tools must be an absolute path" 1>&2
4584 with_build_time_tools=
4588 if test -n "$with_build_time_tools"; then
4589 for ncn_progname in cc gcc; do
4590 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4591 echo "configure:4592: checking for ${ncn_progname} in $with_build_time_tools" >&5
4592 if test -x $with_build_time_tools/${ncn_progname}; then
4593 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4594 echo "$ac_t""yes" 1>&6
4597 echo "$ac_t""no" 1>&6
4602 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4603 for ncn_progname in cc gcc; do
4604 if test -n "$ncn_target_tool_prefix"; then
4605 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4606 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4608 echo "configure:4609: checking for $ac_word" >&5
4609 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4610 echo $ac_n "(cached) $ac_c" 1>&6
4612 if test -n "$CC_FOR_TARGET"; then
4613 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4617 for ac_dir in $ac_dummy; do
4618 test -z "$ac_dir" && ac_dir=.
4619 if test -f $ac_dir/$ac_word; then
4620 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4627 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4628 if test -n "$CC_FOR_TARGET"; then
4629 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4631 echo "$ac_t""no" 1>&6
4635 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4637 set dummy ${ncn_progname}; ac_word=$2
4638 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4639 echo "configure:4640: checking for $ac_word" >&5
4640 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4641 echo $ac_n "(cached) $ac_c" 1>&6
4643 if test -n "$CC_FOR_TARGET"; then
4644 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4648 for ac_dir in $ac_dummy; do
4649 test -z "$ac_dir" && ac_dir=.
4650 if test -f $ac_dir/$ac_word; then
4651 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4658 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4659 if test -n "$CC_FOR_TARGET"; then
4660 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4662 echo "$ac_t""no" 1>&6
4666 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4670 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4672 if test $build = $target ; then
4675 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4679 if test -n "$with_build_time_tools"; then
4680 for ncn_progname in c++ g++ cxx gxx; do
4681 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4682 echo "configure:4683: checking for ${ncn_progname} in $with_build_time_tools" >&5
4683 if test -x $with_build_time_tools/${ncn_progname}; then
4684 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4685 echo "$ac_t""yes" 1>&6
4688 echo "$ac_t""no" 1>&6
4693 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4694 for ncn_progname in c++ g++ cxx gxx; do
4695 if test -n "$ncn_target_tool_prefix"; then
4696 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4697 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4699 echo "configure:4700: checking for $ac_word" >&5
4700 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4701 echo $ac_n "(cached) $ac_c" 1>&6
4703 if test -n "$CXX_FOR_TARGET"; then
4704 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4708 for ac_dir in $ac_dummy; do
4709 test -z "$ac_dir" && ac_dir=.
4710 if test -f $ac_dir/$ac_word; then
4711 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4718 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4719 if test -n "$CXX_FOR_TARGET"; then
4720 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4722 echo "$ac_t""no" 1>&6
4726 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4728 set dummy ${ncn_progname}; ac_word=$2
4729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4730 echo "configure:4731: checking for $ac_word" >&5
4731 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4732 echo $ac_n "(cached) $ac_c" 1>&6
4734 if test -n "$CXX_FOR_TARGET"; then
4735 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4739 for ac_dir in $ac_dummy; do
4740 test -z "$ac_dir" && ac_dir=.
4741 if test -f $ac_dir/$ac_word; then
4742 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4749 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4750 if test -n "$CXX_FOR_TARGET"; then
4751 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4753 echo "$ac_t""no" 1>&6
4757 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4761 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4762 set dummy c++ g++ cxx gxx
4763 if test $build = $target ; then
4766 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4770 if test -n "$with_build_time_tools"; then
4771 for ncn_progname in gcc; do
4772 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4773 echo "configure:4774: checking for ${ncn_progname} in $with_build_time_tools" >&5
4774 if test -x $with_build_time_tools/${ncn_progname}; then
4775 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4776 echo "$ac_t""yes" 1>&6
4779 echo "$ac_t""no" 1>&6
4784 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4785 for ncn_progname in gcc; do
4786 if test -n "$ncn_target_tool_prefix"; then
4787 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4788 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4790 echo "configure:4791: checking for $ac_word" >&5
4791 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4792 echo $ac_n "(cached) $ac_c" 1>&6
4794 if test -n "$GCC_FOR_TARGET"; then
4795 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4799 for ac_dir in $ac_dummy; do
4800 test -z "$ac_dir" && ac_dir=.
4801 if test -f $ac_dir/$ac_word; then
4802 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4809 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4810 if test -n "$GCC_FOR_TARGET"; then
4811 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4813 echo "$ac_t""no" 1>&6
4817 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4819 set dummy ${ncn_progname}; ac_word=$2
4820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4821 echo "configure:4822: checking for $ac_word" >&5
4822 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4823 echo $ac_n "(cached) $ac_c" 1>&6
4825 if test -n "$GCC_FOR_TARGET"; then
4826 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4830 for ac_dir in $ac_dummy; do
4831 test -z "$ac_dir" && ac_dir=.
4832 if test -f $ac_dir/$ac_word; then
4833 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4840 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4841 if test -n "$GCC_FOR_TARGET"; then
4842 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4844 echo "$ac_t""no" 1>&6
4848 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4852 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4853 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4856 if test -n "$with_build_time_tools"; then
4857 for ncn_progname in gcj; do
4858 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4859 echo "configure:4860: checking for ${ncn_progname} in $with_build_time_tools" >&5
4860 if test -x $with_build_time_tools/${ncn_progname}; then
4861 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4862 echo "$ac_t""yes" 1>&6
4865 echo "$ac_t""no" 1>&6
4870 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4871 for ncn_progname in gcj; do
4872 if test -n "$ncn_target_tool_prefix"; then
4873 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4874 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4875 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4876 echo "configure:4877: checking for $ac_word" >&5
4877 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4878 echo $ac_n "(cached) $ac_c" 1>&6
4880 if test -n "$GCJ_FOR_TARGET"; then
4881 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4885 for ac_dir in $ac_dummy; do
4886 test -z "$ac_dir" && ac_dir=.
4887 if test -f $ac_dir/$ac_word; then
4888 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4895 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4896 if test -n "$GCJ_FOR_TARGET"; then
4897 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4899 echo "$ac_t""no" 1>&6
4903 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4905 set dummy ${ncn_progname}; ac_word=$2
4906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4907 echo "configure:4908: checking for $ac_word" >&5
4908 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4911 if test -n "$GCJ_FOR_TARGET"; then
4912 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4916 for ac_dir in $ac_dummy; do
4917 test -z "$ac_dir" && ac_dir=.
4918 if test -f $ac_dir/$ac_word; then
4919 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4926 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4927 if test -n "$GCJ_FOR_TARGET"; then
4928 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4930 echo "$ac_t""no" 1>&6
4934 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4938 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4940 if test $build = $target ; then
4943 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4947 if test -n "$with_build_time_tools"; then
4948 for ncn_progname in gfortran; do
4949 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4950 echo "configure:4951: checking for ${ncn_progname} in $with_build_time_tools" >&5
4951 if test -x $with_build_time_tools/${ncn_progname}; then
4952 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4953 echo "$ac_t""yes" 1>&6
4956 echo "$ac_t""no" 1>&6
4961 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
4962 for ncn_progname in gfortran; do
4963 if test -n "$ncn_target_tool_prefix"; then
4964 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4965 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4966 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4967 echo "configure:4968: checking for $ac_word" >&5
4968 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4969 echo $ac_n "(cached) $ac_c" 1>&6
4971 if test -n "$GFORTRAN_FOR_TARGET"; then
4972 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4976 for ac_dir in $ac_dummy; do
4977 test -z "$ac_dir" && ac_dir=.
4978 if test -f $ac_dir/$ac_word; then
4979 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4986 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4987 if test -n "$GFORTRAN_FOR_TARGET"; then
4988 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4990 echo "$ac_t""no" 1>&6
4994 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
4995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4996 set dummy ${ncn_progname}; ac_word=$2
4997 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4998 echo "configure:4999: checking for $ac_word" >&5
4999 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5002 if test -n "$GFORTRAN_FOR_TARGET"; then
5003 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5007 for ac_dir in $ac_dummy; do
5008 test -z "$ac_dir" && ac_dir=.
5009 if test -f $ac_dir/$ac_word; then
5010 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5017 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5018 if test -n "$GFORTRAN_FOR_TARGET"; then
5019 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5021 echo "$ac_t""no" 1>&6
5025 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5029 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5031 if test $build = $target ; then
5032 GFORTRAN_FOR_TARGET="$2"
5034 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5040 # The user is always right.
5041 if test "${PATH_SEPARATOR+set}" != set; then
5042 echo "#! /bin/sh" >conf$$.sh
5043 echo "exit 0" >>conf$$.sh
5045 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5055 if test "x$exec_prefix" = xNONE; then
5056 if test "x$prefix" = xNONE; then
5057 gcc_cv_tool_prefix=$ac_default_prefix
5059 gcc_cv_tool_prefix=$prefix
5062 gcc_cv_tool_prefix=$exec_prefix
5065 # If there is no compiler in the tree, use the PATH only. In any
5066 # case, if there is no compiler in the tree nobody should use
5067 # AS_FOR_TARGET and LD_FOR_TARGET.
5068 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5069 gcc_version=`cat $srcdir/gcc/BASE-VER`
5070 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5071 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5072 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5073 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5074 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5075 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5080 if test x$build = x$target && test -n "$md_exec_prefix"; then
5081 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5086 cat > conftest.c << \EOF
5091 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
5092 have_gcc_for_target=yes
5094 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
5095 have_gcc_for_target=no
5102 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5103 if test -n "$with_build_time_tools"; then
5104 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5105 echo "configure:5106: checking for ar in $with_build_time_tools" >&5
5106 if test -x $with_build_time_tools/ar; then
5107 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
5108 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5109 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5111 echo "$ac_t""no" 1>&6
5113 elif test $build != $host && test $have_gcc_for_target = yes; then
5114 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
5115 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
5116 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5119 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5120 # Extract the first word of "ar", so it can be a program name with args.
5121 set dummy ar; ac_word=$2
5122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5123 echo "configure:5124: checking for $ac_word" >&5
5124 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5125 echo $ac_n "(cached) $ac_c" 1>&6
5127 case "$AR_FOR_TARGET" in
5129 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
5132 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5136 ac_dummy="$gcc_cv_tool_dirs"
5137 for ac_dir in $ac_dummy; do
5138 test -z "$ac_dir" && ac_dir=.
5139 if test -f $ac_dir/$ac_word; then
5140 ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
5148 AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
5149 if test -n "$AR_FOR_TARGET"; then
5150 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5152 echo "$ac_t""no" 1>&6
5156 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5157 if test -n "$with_build_time_tools"; then
5158 for ncn_progname in ar; do
5159 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5160 echo "configure:5161: checking for ${ncn_progname} in $with_build_time_tools" >&5
5161 if test -x $with_build_time_tools/${ncn_progname}; then
5162 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5163 echo "$ac_t""yes" 1>&6
5166 echo "$ac_t""no" 1>&6
5171 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5172 for ncn_progname in ar; do
5173 if test -n "$ncn_target_tool_prefix"; then
5174 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5175 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5177 echo "configure:5178: checking for $ac_word" >&5
5178 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5181 if test -n "$AR_FOR_TARGET"; then
5182 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5186 for ac_dir in $ac_dummy; do
5187 test -z "$ac_dir" && ac_dir=.
5188 if test -f $ac_dir/$ac_word; then
5189 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5196 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5197 if test -n "$AR_FOR_TARGET"; then
5198 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5200 echo "$ac_t""no" 1>&6
5204 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5206 set dummy ${ncn_progname}; ac_word=$2
5207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5208 echo "configure:5209: checking for $ac_word" >&5
5209 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5210 echo $ac_n "(cached) $ac_c" 1>&6
5212 if test -n "$AR_FOR_TARGET"; then
5213 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5217 for ac_dir in $ac_dummy; do
5218 test -z "$ac_dir" && ac_dir=.
5219 if test -f $ac_dir/$ac_word; then
5220 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5227 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5228 if test -n "$AR_FOR_TARGET"; then
5229 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5231 echo "$ac_t""no" 1>&6
5235 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5239 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5241 if test $build = $target ; then
5244 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
5249 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
5255 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5256 if test -n "$with_build_time_tools"; then
5257 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5258 echo "configure:5259: checking for as in $with_build_time_tools" >&5
5259 if test -x $with_build_time_tools/as; then
5260 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
5261 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5262 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5264 echo "$ac_t""no" 1>&6
5266 elif test $build != $host && test $have_gcc_for_target = yes; then
5267 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
5268 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
5269 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5272 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5273 # Extract the first word of "as", so it can be a program name with args.
5274 set dummy as; ac_word=$2
5275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5276 echo "configure:5277: checking for $ac_word" >&5
5277 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5278 echo $ac_n "(cached) $ac_c" 1>&6
5280 case "$AS_FOR_TARGET" in
5282 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
5285 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5289 ac_dummy="$gcc_cv_tool_dirs"
5290 for ac_dir in $ac_dummy; do
5291 test -z "$ac_dir" && ac_dir=.
5292 if test -f $ac_dir/$ac_word; then
5293 ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
5301 AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
5302 if test -n "$AS_FOR_TARGET"; then
5303 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5305 echo "$ac_t""no" 1>&6
5309 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5310 if test -n "$with_build_time_tools"; then
5311 for ncn_progname in as; do
5312 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5313 echo "configure:5314: checking for ${ncn_progname} in $with_build_time_tools" >&5
5314 if test -x $with_build_time_tools/${ncn_progname}; then
5315 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5316 echo "$ac_t""yes" 1>&6
5319 echo "$ac_t""no" 1>&6
5324 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5325 for ncn_progname in as; do
5326 if test -n "$ncn_target_tool_prefix"; then
5327 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5328 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5330 echo "configure:5331: checking for $ac_word" >&5
5331 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5332 echo $ac_n "(cached) $ac_c" 1>&6
5334 if test -n "$AS_FOR_TARGET"; then
5335 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5339 for ac_dir in $ac_dummy; do
5340 test -z "$ac_dir" && ac_dir=.
5341 if test -f $ac_dir/$ac_word; then
5342 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5349 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5350 if test -n "$AS_FOR_TARGET"; then
5351 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5353 echo "$ac_t""no" 1>&6
5357 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5358 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5359 set dummy ${ncn_progname}; ac_word=$2
5360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5361 echo "configure:5362: checking for $ac_word" >&5
5362 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5363 echo $ac_n "(cached) $ac_c" 1>&6
5365 if test -n "$AS_FOR_TARGET"; then
5366 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5370 for ac_dir in $ac_dummy; do
5371 test -z "$ac_dir" && ac_dir=.
5372 if test -f $ac_dir/$ac_word; then
5373 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5380 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5381 if test -n "$AS_FOR_TARGET"; then
5382 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5384 echo "$ac_t""no" 1>&6
5388 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5392 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5394 if test $build = $target ; then
5397 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
5402 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
5408 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5409 if test -n "$with_build_time_tools"; then
5410 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5411 echo "configure:5412: checking for dlltool in $with_build_time_tools" >&5
5412 if test -x $with_build_time_tools/dlltool; then
5413 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
5414 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5415 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5417 echo "$ac_t""no" 1>&6
5419 elif test $build != $host && test $have_gcc_for_target = yes; then
5420 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5421 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
5422 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5425 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5426 # Extract the first word of "dlltool", so it can be a program name with args.
5427 set dummy dlltool; ac_word=$2
5428 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5429 echo "configure:5430: checking for $ac_word" >&5
5430 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5431 echo $ac_n "(cached) $ac_c" 1>&6
5433 case "$DLLTOOL_FOR_TARGET" in
5435 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5438 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5442 ac_dummy="$gcc_cv_tool_dirs"
5443 for ac_dir in $ac_dummy; do
5444 test -z "$ac_dir" && ac_dir=.
5445 if test -f $ac_dir/$ac_word; then
5446 ac_cv_path_DLLTOOL_FOR_TARGET="$ac_dir/$ac_word"
5454 DLLTOOL_FOR_TARGET="$ac_cv_path_DLLTOOL_FOR_TARGET"
5455 if test -n "$DLLTOOL_FOR_TARGET"; then
5456 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5458 echo "$ac_t""no" 1>&6
5462 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5463 if test -n "$with_build_time_tools"; then
5464 for ncn_progname in dlltool; do
5465 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5466 echo "configure:5467: checking for ${ncn_progname} in $with_build_time_tools" >&5
5467 if test -x $with_build_time_tools/${ncn_progname}; then
5468 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5469 echo "$ac_t""yes" 1>&6
5472 echo "$ac_t""no" 1>&6
5477 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5478 for ncn_progname in dlltool; do
5479 if test -n "$ncn_target_tool_prefix"; then
5480 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5481 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5483 echo "configure:5484: checking for $ac_word" >&5
5484 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5485 echo $ac_n "(cached) $ac_c" 1>&6
5487 if test -n "$DLLTOOL_FOR_TARGET"; then
5488 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5492 for ac_dir in $ac_dummy; do
5493 test -z "$ac_dir" && ac_dir=.
5494 if test -f $ac_dir/$ac_word; then
5495 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5502 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5503 if test -n "$DLLTOOL_FOR_TARGET"; then
5504 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5506 echo "$ac_t""no" 1>&6
5510 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5512 set dummy ${ncn_progname}; ac_word=$2
5513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5514 echo "configure:5515: checking for $ac_word" >&5
5515 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5516 echo $ac_n "(cached) $ac_c" 1>&6
5518 if test -n "$DLLTOOL_FOR_TARGET"; then
5519 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5523 for ac_dir in $ac_dummy; do
5524 test -z "$ac_dir" && ac_dir=.
5525 if test -f $ac_dir/$ac_word; then
5526 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5533 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5534 if test -n "$DLLTOOL_FOR_TARGET"; then
5535 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5537 echo "$ac_t""no" 1>&6
5541 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5545 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5547 if test $build = $target ; then
5548 DLLTOOL_FOR_TARGET="$2"
5550 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
5555 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
5561 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5562 if test -n "$with_build_time_tools"; then
5563 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5564 echo "configure:5565: checking for ld in $with_build_time_tools" >&5
5565 if test -x $with_build_time_tools/ld; then
5566 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
5567 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5568 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5570 echo "$ac_t""no" 1>&6
5572 elif test $build != $host && test $have_gcc_for_target = yes; then
5573 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
5574 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
5575 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5578 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5579 # Extract the first word of "ld", so it can be a program name with args.
5580 set dummy ld; ac_word=$2
5581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5582 echo "configure:5583: checking for $ac_word" >&5
5583 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5584 echo $ac_n "(cached) $ac_c" 1>&6
5586 case "$LD_FOR_TARGET" in
5588 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
5591 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5595 ac_dummy="$gcc_cv_tool_dirs"
5596 for ac_dir in $ac_dummy; do
5597 test -z "$ac_dir" && ac_dir=.
5598 if test -f $ac_dir/$ac_word; then
5599 ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
5607 LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
5608 if test -n "$LD_FOR_TARGET"; then
5609 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5611 echo "$ac_t""no" 1>&6
5615 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5616 if test -n "$with_build_time_tools"; then
5617 for ncn_progname in ld; do
5618 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5619 echo "configure:5620: checking for ${ncn_progname} in $with_build_time_tools" >&5
5620 if test -x $with_build_time_tools/${ncn_progname}; then
5621 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5622 echo "$ac_t""yes" 1>&6
5625 echo "$ac_t""no" 1>&6
5630 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5631 for ncn_progname in ld; do
5632 if test -n "$ncn_target_tool_prefix"; then
5633 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5634 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5636 echo "configure:5637: checking for $ac_word" >&5
5637 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5638 echo $ac_n "(cached) $ac_c" 1>&6
5640 if test -n "$LD_FOR_TARGET"; then
5641 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5645 for ac_dir in $ac_dummy; do
5646 test -z "$ac_dir" && ac_dir=.
5647 if test -f $ac_dir/$ac_word; then
5648 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5655 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5656 if test -n "$LD_FOR_TARGET"; then
5657 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5659 echo "$ac_t""no" 1>&6
5663 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5665 set dummy ${ncn_progname}; ac_word=$2
5666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5667 echo "configure:5668: checking for $ac_word" >&5
5668 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5669 echo $ac_n "(cached) $ac_c" 1>&6
5671 if test -n "$LD_FOR_TARGET"; then
5672 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5676 for ac_dir in $ac_dummy; do
5677 test -z "$ac_dir" && ac_dir=.
5678 if test -f $ac_dir/$ac_word; then
5679 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5686 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5687 if test -n "$LD_FOR_TARGET"; then
5688 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5690 echo "$ac_t""no" 1>&6
5694 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5698 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5700 if test $build = $target ; then
5703 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
5708 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
5714 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5715 if test -n "$with_build_time_tools"; then
5716 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5717 echo "configure:5718: checking for lipo in $with_build_time_tools" >&5
5718 if test -x $with_build_time_tools/lipo; then
5719 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
5720 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5721 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5723 echo "$ac_t""no" 1>&6
5725 elif test $build != $host && test $have_gcc_for_target = yes; then
5726 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
5727 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
5728 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5731 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5732 # Extract the first word of "lipo", so it can be a program name with args.
5733 set dummy lipo; ac_word=$2
5734 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5735 echo "configure:5736: checking for $ac_word" >&5
5736 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5737 echo $ac_n "(cached) $ac_c" 1>&6
5739 case "$LIPO_FOR_TARGET" in
5741 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5744 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5748 ac_dummy="$gcc_cv_tool_dirs"
5749 for ac_dir in $ac_dummy; do
5750 test -z "$ac_dir" && ac_dir=.
5751 if test -f $ac_dir/$ac_word; then
5752 ac_cv_path_LIPO_FOR_TARGET="$ac_dir/$ac_word"
5760 LIPO_FOR_TARGET="$ac_cv_path_LIPO_FOR_TARGET"
5761 if test -n "$LIPO_FOR_TARGET"; then
5762 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5764 echo "$ac_t""no" 1>&6
5768 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5769 if test -n "$with_build_time_tools"; then
5770 for ncn_progname in lipo; do
5771 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5772 echo "configure:5773: checking for ${ncn_progname} in $with_build_time_tools" >&5
5773 if test -x $with_build_time_tools/${ncn_progname}; then
5774 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5775 echo "$ac_t""yes" 1>&6
5778 echo "$ac_t""no" 1>&6
5783 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5784 for ncn_progname in lipo; do
5785 if test -n "$ncn_target_tool_prefix"; then
5786 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5787 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5788 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5789 echo "configure:5790: checking for $ac_word" >&5
5790 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5791 echo $ac_n "(cached) $ac_c" 1>&6
5793 if test -n "$LIPO_FOR_TARGET"; then
5794 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5798 for ac_dir in $ac_dummy; do
5799 test -z "$ac_dir" && ac_dir=.
5800 if test -f $ac_dir/$ac_word; then
5801 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5808 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5809 if test -n "$LIPO_FOR_TARGET"; then
5810 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5812 echo "$ac_t""no" 1>&6
5816 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5818 set dummy ${ncn_progname}; ac_word=$2
5819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5820 echo "configure:5821: checking for $ac_word" >&5
5821 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5822 echo $ac_n "(cached) $ac_c" 1>&6
5824 if test -n "$LIPO_FOR_TARGET"; then
5825 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5829 for ac_dir in $ac_dummy; do
5830 test -z "$ac_dir" && ac_dir=.
5831 if test -f $ac_dir/$ac_word; then
5832 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5839 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5840 if test -n "$LIPO_FOR_TARGET"; then
5841 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5843 echo "$ac_t""no" 1>&6
5847 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5851 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5853 if test $build = $target ; then
5854 LIPO_FOR_TARGET="$2"
5856 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
5861 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
5867 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5868 if test -n "$with_build_time_tools"; then
5869 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
5870 echo "configure:5871: checking for nm in $with_build_time_tools" >&5
5871 if test -x $with_build_time_tools/nm; then
5872 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
5873 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5874 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5876 echo "$ac_t""no" 1>&6
5878 elif test $build != $host && test $have_gcc_for_target = yes; then
5879 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
5880 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
5881 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5884 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5885 # Extract the first word of "nm", so it can be a program name with args.
5886 set dummy nm; ac_word=$2
5887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5888 echo "configure:5889: checking for $ac_word" >&5
5889 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5890 echo $ac_n "(cached) $ac_c" 1>&6
5892 case "$NM_FOR_TARGET" in
5894 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
5897 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5901 ac_dummy="$gcc_cv_tool_dirs"
5902 for ac_dir in $ac_dummy; do
5903 test -z "$ac_dir" && ac_dir=.
5904 if test -f $ac_dir/$ac_word; then
5905 ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
5913 NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
5914 if test -n "$NM_FOR_TARGET"; then
5915 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5917 echo "$ac_t""no" 1>&6
5921 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5922 if test -n "$with_build_time_tools"; then
5923 for ncn_progname in nm; do
5924 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5925 echo "configure:5926: checking for ${ncn_progname} in $with_build_time_tools" >&5
5926 if test -x $with_build_time_tools/${ncn_progname}; then
5927 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5928 echo "$ac_t""yes" 1>&6
5931 echo "$ac_t""no" 1>&6
5936 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
5937 for ncn_progname in nm; do
5938 if test -n "$ncn_target_tool_prefix"; then
5939 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5940 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5942 echo "configure:5943: checking for $ac_word" >&5
5943 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5944 echo $ac_n "(cached) $ac_c" 1>&6
5946 if test -n "$NM_FOR_TARGET"; then
5947 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5951 for ac_dir in $ac_dummy; do
5952 test -z "$ac_dir" && ac_dir=.
5953 if test -f $ac_dir/$ac_word; then
5954 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5961 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5962 if test -n "$NM_FOR_TARGET"; then
5963 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5965 echo "$ac_t""no" 1>&6
5969 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
5970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5971 set dummy ${ncn_progname}; ac_word=$2
5972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5973 echo "configure:5974: checking for $ac_word" >&5
5974 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5975 echo $ac_n "(cached) $ac_c" 1>&6
5977 if test -n "$NM_FOR_TARGET"; then
5978 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5982 for ac_dir in $ac_dummy; do
5983 test -z "$ac_dir" && ac_dir=.
5984 if test -f $ac_dir/$ac_word; then
5985 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5992 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5993 if test -n "$NM_FOR_TARGET"; then
5994 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5996 echo "$ac_t""no" 1>&6
6000 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6004 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6006 if test $build = $target ; then
6009 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
6014 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
6020 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6021 if test -n "$with_build_time_tools"; then
6022 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6023 echo "configure:6024: checking for objdump in $with_build_time_tools" >&5
6024 if test -x $with_build_time_tools/objdump; then
6025 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
6026 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6027 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6029 echo "$ac_t""no" 1>&6
6031 elif test $build != $host && test $have_gcc_for_target = yes; then
6032 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
6033 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
6034 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6037 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6038 # Extract the first word of "objdump", so it can be a program name with args.
6039 set dummy objdump; ac_word=$2
6040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6041 echo "configure:6042: checking for $ac_word" >&5
6042 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6043 echo $ac_n "(cached) $ac_c" 1>&6
6045 case "$OBJDUMP_FOR_TARGET" in
6047 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6050 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6054 ac_dummy="$gcc_cv_tool_dirs"
6055 for ac_dir in $ac_dummy; do
6056 test -z "$ac_dir" && ac_dir=.
6057 if test -f $ac_dir/$ac_word; then
6058 ac_cv_path_OBJDUMP_FOR_TARGET="$ac_dir/$ac_word"
6066 OBJDUMP_FOR_TARGET="$ac_cv_path_OBJDUMP_FOR_TARGET"
6067 if test -n "$OBJDUMP_FOR_TARGET"; then
6068 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6070 echo "$ac_t""no" 1>&6
6074 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6075 if test -n "$with_build_time_tools"; then
6076 for ncn_progname in objdump; do
6077 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6078 echo "configure:6079: checking for ${ncn_progname} in $with_build_time_tools" >&5
6079 if test -x $with_build_time_tools/${ncn_progname}; then
6080 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6081 echo "$ac_t""yes" 1>&6
6084 echo "$ac_t""no" 1>&6
6089 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6090 for ncn_progname in objdump; do
6091 if test -n "$ncn_target_tool_prefix"; then
6092 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6093 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6095 echo "configure:6096: checking for $ac_word" >&5
6096 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6097 echo $ac_n "(cached) $ac_c" 1>&6
6099 if test -n "$OBJDUMP_FOR_TARGET"; then
6100 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6104 for ac_dir in $ac_dummy; do
6105 test -z "$ac_dir" && ac_dir=.
6106 if test -f $ac_dir/$ac_word; then
6107 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6114 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6115 if test -n "$OBJDUMP_FOR_TARGET"; then
6116 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6118 echo "$ac_t""no" 1>&6
6122 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6124 set dummy ${ncn_progname}; ac_word=$2
6125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6126 echo "configure:6127: checking for $ac_word" >&5
6127 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6128 echo $ac_n "(cached) $ac_c" 1>&6
6130 if test -n "$OBJDUMP_FOR_TARGET"; then
6131 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6135 for ac_dir in $ac_dummy; do
6136 test -z "$ac_dir" && ac_dir=.
6137 if test -f $ac_dir/$ac_word; then
6138 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
6145 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6146 if test -n "$OBJDUMP_FOR_TARGET"; then
6147 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6149 echo "$ac_t""no" 1>&6
6153 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6157 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6159 if test $build = $target ; then
6160 OBJDUMP_FOR_TARGET="$2"
6162 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6167 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
6173 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6174 if test -n "$with_build_time_tools"; then
6175 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6176 echo "configure:6177: checking for ranlib in $with_build_time_tools" >&5
6177 if test -x $with_build_time_tools/ranlib; then
6178 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
6179 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6180 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6182 echo "$ac_t""no" 1>&6
6184 elif test $build != $host && test $have_gcc_for_target = yes; then
6185 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6186 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
6187 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6190 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6191 # Extract the first word of "ranlib", so it can be a program name with args.
6192 set dummy ranlib; ac_word=$2
6193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6194 echo "configure:6195: checking for $ac_word" >&5
6195 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6196 echo $ac_n "(cached) $ac_c" 1>&6
6198 case "$RANLIB_FOR_TARGET" in
6200 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6203 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6207 ac_dummy="$gcc_cv_tool_dirs"
6208 for ac_dir in $ac_dummy; do
6209 test -z "$ac_dir" && ac_dir=.
6210 if test -f $ac_dir/$ac_word; then
6211 ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
6219 RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
6220 if test -n "$RANLIB_FOR_TARGET"; then
6221 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6223 echo "$ac_t""no" 1>&6
6227 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6228 if test -n "$with_build_time_tools"; then
6229 for ncn_progname in ranlib; do
6230 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6231 echo "configure:6232: checking for ${ncn_progname} in $with_build_time_tools" >&5
6232 if test -x $with_build_time_tools/${ncn_progname}; then
6233 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6234 echo "$ac_t""yes" 1>&6
6237 echo "$ac_t""no" 1>&6
6242 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6243 for ncn_progname in ranlib; do
6244 if test -n "$ncn_target_tool_prefix"; then
6245 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6246 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6247 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6248 echo "configure:6249: checking for $ac_word" >&5
6249 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6250 echo $ac_n "(cached) $ac_c" 1>&6
6252 if test -n "$RANLIB_FOR_TARGET"; then
6253 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6257 for ac_dir in $ac_dummy; do
6258 test -z "$ac_dir" && ac_dir=.
6259 if test -f $ac_dir/$ac_word; then
6260 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6267 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6268 if test -n "$RANLIB_FOR_TARGET"; then
6269 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6271 echo "$ac_t""no" 1>&6
6275 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6277 set dummy ${ncn_progname}; ac_word=$2
6278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6279 echo "configure:6280: checking for $ac_word" >&5
6280 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6281 echo $ac_n "(cached) $ac_c" 1>&6
6283 if test -n "$RANLIB_FOR_TARGET"; then
6284 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6286 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6288 for ac_dir in $ac_dummy; do
6289 test -z "$ac_dir" && ac_dir=.
6290 if test -f $ac_dir/$ac_word; then
6291 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
6298 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6299 if test -n "$RANLIB_FOR_TARGET"; then
6300 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6302 echo "$ac_t""no" 1>&6
6306 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6310 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6312 if test $build = $target ; then
6313 RANLIB_FOR_TARGET="$2"
6315 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
6320 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
6326 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6327 if test -n "$with_build_time_tools"; then
6328 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6329 echo "configure:6330: checking for strip in $with_build_time_tools" >&5
6330 if test -x $with_build_time_tools/strip; then
6331 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
6332 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6333 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6335 echo "$ac_t""no" 1>&6
6337 elif test $build != $host && test $have_gcc_for_target = yes; then
6338 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
6339 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
6340 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6343 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6344 # Extract the first word of "strip", so it can be a program name with args.
6345 set dummy strip; ac_word=$2
6346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6347 echo "configure:6348: checking for $ac_word" >&5
6348 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6349 echo $ac_n "(cached) $ac_c" 1>&6
6351 case "$STRIP_FOR_TARGET" in
6353 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6356 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6360 ac_dummy="$gcc_cv_tool_dirs"
6361 for ac_dir in $ac_dummy; do
6362 test -z "$ac_dir" && ac_dir=.
6363 if test -f $ac_dir/$ac_word; then
6364 ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
6372 STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
6373 if test -n "$STRIP_FOR_TARGET"; then
6374 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6376 echo "$ac_t""no" 1>&6
6380 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6381 if test -n "$with_build_time_tools"; then
6382 for ncn_progname in strip; do
6383 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6384 echo "configure:6385: checking for ${ncn_progname} in $with_build_time_tools" >&5
6385 if test -x $with_build_time_tools/${ncn_progname}; then
6386 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6387 echo "$ac_t""yes" 1>&6
6390 echo "$ac_t""no" 1>&6
6395 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6396 for ncn_progname in strip; do
6397 if test -n "$ncn_target_tool_prefix"; then
6398 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6399 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6401 echo "configure:6402: checking for $ac_word" >&5
6402 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6403 echo $ac_n "(cached) $ac_c" 1>&6
6405 if test -n "$STRIP_FOR_TARGET"; then
6406 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6410 for ac_dir in $ac_dummy; do
6411 test -z "$ac_dir" && ac_dir=.
6412 if test -f $ac_dir/$ac_word; then
6413 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6420 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6421 if test -n "$STRIP_FOR_TARGET"; then
6422 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6424 echo "$ac_t""no" 1>&6
6428 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6429 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6430 set dummy ${ncn_progname}; ac_word=$2
6431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6432 echo "configure:6433: checking for $ac_word" >&5
6433 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6434 echo $ac_n "(cached) $ac_c" 1>&6
6436 if test -n "$STRIP_FOR_TARGET"; then
6437 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6441 for ac_dir in $ac_dummy; do
6442 test -z "$ac_dir" && ac_dir=.
6443 if test -f $ac_dir/$ac_word; then
6444 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
6451 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6452 if test -n "$STRIP_FOR_TARGET"; then
6453 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6455 echo "$ac_t""no" 1>&6
6459 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6463 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6465 if test $build = $target ; then
6466 STRIP_FOR_TARGET="$2"
6468 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6473 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
6479 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6480 if test -n "$with_build_time_tools"; then
6481 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6482 echo "configure:6483: checking for windres in $with_build_time_tools" >&5
6483 if test -x $with_build_time_tools/windres; then
6484 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
6485 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6486 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6488 echo "$ac_t""no" 1>&6
6490 elif test $build != $host && test $have_gcc_for_target = yes; then
6491 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
6492 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
6493 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6496 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6497 # Extract the first word of "windres", so it can be a program name with args.
6498 set dummy windres; ac_word=$2
6499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6500 echo "configure:6501: checking for $ac_word" >&5
6501 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6502 echo $ac_n "(cached) $ac_c" 1>&6
6504 case "$WINDRES_FOR_TARGET" in
6506 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6509 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6513 ac_dummy="$gcc_cv_tool_dirs"
6514 for ac_dir in $ac_dummy; do
6515 test -z "$ac_dir" && ac_dir=.
6516 if test -f $ac_dir/$ac_word; then
6517 ac_cv_path_WINDRES_FOR_TARGET="$ac_dir/$ac_word"
6525 WINDRES_FOR_TARGET="$ac_cv_path_WINDRES_FOR_TARGET"
6526 if test -n "$WINDRES_FOR_TARGET"; then
6527 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6529 echo "$ac_t""no" 1>&6
6533 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6534 if test -n "$with_build_time_tools"; then
6535 for ncn_progname in windres; do
6536 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6537 echo "configure:6538: checking for ${ncn_progname} in $with_build_time_tools" >&5
6538 if test -x $with_build_time_tools/${ncn_progname}; then
6539 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6540 echo "$ac_t""yes" 1>&6
6543 echo "$ac_t""no" 1>&6
6548 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6549 for ncn_progname in windres; do
6550 if test -n "$ncn_target_tool_prefix"; then
6551 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6552 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6554 echo "configure:6555: checking for $ac_word" >&5
6555 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6556 echo $ac_n "(cached) $ac_c" 1>&6
6558 if test -n "$WINDRES_FOR_TARGET"; then
6559 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6563 for ac_dir in $ac_dummy; do
6564 test -z "$ac_dir" && ac_dir=.
6565 if test -f $ac_dir/$ac_word; then
6566 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6573 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6574 if test -n "$WINDRES_FOR_TARGET"; then
6575 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6577 echo "$ac_t""no" 1>&6
6581 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6583 set dummy ${ncn_progname}; ac_word=$2
6584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6585 echo "configure:6586: checking for $ac_word" >&5
6586 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6587 echo $ac_n "(cached) $ac_c" 1>&6
6589 if test -n "$WINDRES_FOR_TARGET"; then
6590 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6592 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6594 for ac_dir in $ac_dummy; do
6595 test -z "$ac_dir" && ac_dir=.
6596 if test -f $ac_dir/$ac_word; then
6597 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
6604 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6605 if test -n "$WINDRES_FOR_TARGET"; then
6606 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6608 echo "$ac_t""no" 1>&6
6612 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6616 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6618 if test $build = $target ; then
6619 WINDRES_FOR_TARGET="$2"
6621 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
6626 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
6630 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
6632 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6633 echo "configure:6634: checking where to find the target ar" >&5
6634 if test "x${build}" != "x${host}" ; then
6635 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6636 # We already found the complete path
6637 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6639 # Canadian cross, just use what we found
6640 echo "$ac_t""pre-installed" 1>&6
6644 case " ${configdirs} " in
6649 if test $ok = yes; then
6650 # An in-tree tool is available and we can use it
6651 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
6652 echo "$ac_t""just compiled" 1>&6
6653 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6654 # We already found the complete path
6655 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6656 elif test "x$target" = "x$host"; then
6657 # We can use an host tool
6658 AR_FOR_TARGET='$(AR)'
6659 echo "$ac_t""host tool" 1>&6
6661 # We need a cross tool
6662 echo "$ac_t""pre-installed" 1>&6
6665 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6666 echo "configure:6667: checking where to find the target as" >&5
6667 if test "x${build}" != "x${host}" ; then
6668 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6669 # We already found the complete path
6670 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6672 # Canadian cross, just use what we found
6673 echo "$ac_t""pre-installed" 1>&6
6677 case " ${configdirs} " in
6682 if test $ok = yes; then
6683 # An in-tree tool is available and we can use it
6684 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
6685 echo "$ac_t""just compiled" 1>&6
6686 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6687 # We already found the complete path
6688 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6689 elif test "x$target" = "x$host"; then
6690 # We can use an host tool
6691 AS_FOR_TARGET='$(AS)'
6692 echo "$ac_t""host tool" 1>&6
6694 # We need a cross tool
6695 echo "$ac_t""pre-installed" 1>&6
6698 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6699 echo "configure:6700: checking where to find the target cc" >&5
6700 if test "x${build}" != "x${host}" ; then
6701 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6702 # We already found the complete path
6703 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6705 # Canadian cross, just use what we found
6706 echo "$ac_t""pre-installed" 1>&6
6710 case " ${configdirs} " in
6715 if test $ok = yes; then
6716 # An in-tree tool is available and we can use it
6717 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6718 echo "$ac_t""just compiled" 1>&6
6719 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6720 # We already found the complete path
6721 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6722 elif test "x$target" = "x$host"; then
6723 # We can use an host tool
6724 CC_FOR_TARGET='$(CC)'
6725 echo "$ac_t""host tool" 1>&6
6727 # We need a cross tool
6728 echo "$ac_t""pre-installed" 1>&6
6731 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6732 echo "configure:6733: checking where to find the target c++" >&5
6733 if test "x${build}" != "x${host}" ; then
6734 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6735 # We already found the complete path
6736 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6738 # Canadian cross, just use what we found
6739 echo "$ac_t""pre-installed" 1>&6
6743 case " ${configdirs} " in
6747 case ,${enable_languages}, in
6751 if test $ok = yes; then
6752 # An in-tree tool is available and we can use it
6753 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'
6754 echo "$ac_t""just compiled" 1>&6
6755 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6756 # We already found the complete path
6757 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6758 elif test "x$target" = "x$host"; then
6759 # We can use an host tool
6760 CXX_FOR_TARGET='$(CXX)'
6761 echo "$ac_t""host tool" 1>&6
6763 # We need a cross tool
6764 echo "$ac_t""pre-installed" 1>&6
6767 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6768 echo "configure:6769: checking where to find the target c++ for libstdc++" >&5
6769 if test "x${build}" != "x${host}" ; then
6770 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6771 # We already found the complete path
6772 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6774 # Canadian cross, just use what we found
6775 echo "$ac_t""pre-installed" 1>&6
6779 case " ${configdirs} " in
6783 case ,${enable_languages}, in
6787 if test $ok = yes; then
6788 # An in-tree tool is available and we can use it
6789 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'
6790 echo "$ac_t""just compiled" 1>&6
6791 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6792 # We already found the complete path
6793 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6794 elif test "x$target" = "x$host"; then
6795 # We can use an host tool
6796 RAW_CXX_FOR_TARGET='$(CXX)'
6797 echo "$ac_t""host tool" 1>&6
6799 # We need a cross tool
6800 echo "$ac_t""pre-installed" 1>&6
6803 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6804 echo "configure:6805: checking where to find the target dlltool" >&5
6805 if test "x${build}" != "x${host}" ; then
6806 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6807 # We already found the complete path
6808 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6810 # Canadian cross, just use what we found
6811 echo "$ac_t""pre-installed" 1>&6
6815 case " ${configdirs} " in
6820 if test $ok = yes; then
6821 # An in-tree tool is available and we can use it
6822 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6823 echo "$ac_t""just compiled" 1>&6
6824 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6825 # We already found the complete path
6826 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6827 elif test "x$target" = "x$host"; then
6828 # We can use an host tool
6829 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
6830 echo "$ac_t""host tool" 1>&6
6832 # We need a cross tool
6833 echo "$ac_t""pre-installed" 1>&6
6836 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6837 echo "configure:6838: checking where to find the target gcc" >&5
6838 if test "x${build}" != "x${host}" ; then
6839 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6840 # We already found the complete path
6841 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6843 # Canadian cross, just use what we found
6844 echo "$ac_t""pre-installed" 1>&6
6848 case " ${configdirs} " in
6853 if test $ok = yes; then
6854 # An in-tree tool is available and we can use it
6855 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6856 echo "$ac_t""just compiled" 1>&6
6857 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6858 # We already found the complete path
6859 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6860 elif test "x$target" = "x$host"; then
6861 # We can use an host tool
6862 GCC_FOR_TARGET='$()'
6863 echo "$ac_t""host tool" 1>&6
6865 # We need a cross tool
6866 echo "$ac_t""pre-installed" 1>&6
6869 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6870 echo "configure:6871: checking where to find the target gcj" >&5
6871 if test "x${build}" != "x${host}" ; then
6872 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6873 # We already found the complete path
6874 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6876 # Canadian cross, just use what we found
6877 echo "$ac_t""pre-installed" 1>&6
6881 case " ${configdirs} " in
6885 case ,${enable_languages}, in
6889 if test $ok = yes; then
6890 # An in-tree tool is available and we can use it
6891 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6892 echo "$ac_t""just compiled" 1>&6
6893 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6894 # We already found the complete path
6895 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6896 elif test "x$target" = "x$host"; then
6897 # We can use an host tool
6898 GCJ_FOR_TARGET='$(GCJ)'
6899 echo "$ac_t""host tool" 1>&6
6901 # We need a cross tool
6902 echo "$ac_t""pre-installed" 1>&6
6905 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
6906 echo "configure:6907: checking where to find the target gfortran" >&5
6907 if test "x${build}" != "x${host}" ; then
6908 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6909 # We already found the complete path
6910 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6912 # Canadian cross, just use what we found
6913 echo "$ac_t""pre-installed" 1>&6
6917 case " ${configdirs} " in
6921 case ,${enable_languages}, in
6925 if test $ok = yes; then
6926 # An in-tree tool is available and we can use it
6927 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
6928 echo "$ac_t""just compiled" 1>&6
6929 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6930 # We already found the complete path
6931 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6932 elif test "x$target" = "x$host"; then
6933 # We can use an host tool
6934 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
6935 echo "$ac_t""host tool" 1>&6
6937 # We need a cross tool
6938 echo "$ac_t""pre-installed" 1>&6
6941 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
6942 echo "configure:6943: checking where to find the target ld" >&5
6943 if test "x${build}" != "x${host}" ; then
6944 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
6945 # We already found the complete path
6946 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6948 # Canadian cross, just use what we found
6949 echo "$ac_t""pre-installed" 1>&6
6953 case " ${configdirs} " in
6958 if test $ok = yes; then
6959 # An in-tree tool is available and we can use it
6960 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
6961 echo "$ac_t""just compiled" 1>&6
6962 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
6963 # We already found the complete path
6964 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6965 elif test "x$target" = "x$host"; then
6966 # We can use an host tool
6967 LD_FOR_TARGET='$(LD)'
6968 echo "$ac_t""host tool" 1>&6
6970 # We need a cross tool
6971 echo "$ac_t""pre-installed" 1>&6
6974 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
6975 echo "configure:6976: checking where to find the target lipo" >&5
6976 if test "x${build}" != "x${host}" ; then
6977 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
6978 # We already found the complete path
6979 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6981 # Canadian cross, just use what we found
6982 echo "$ac_t""pre-installed" 1>&6
6985 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
6986 # We already found the complete path
6987 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6988 elif test "x$target" = "x$host"; then
6989 # We can use an host tool
6990 LIPO_FOR_TARGET='$(LIPO)'
6991 echo "$ac_t""host tool" 1>&6
6993 # We need a cross tool
6994 echo "$ac_t""pre-installed" 1>&6
6997 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
6998 echo "configure:6999: checking where to find the target nm" >&5
6999 if test "x${build}" != "x${host}" ; then
7000 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7001 # We already found the complete path
7002 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7004 # Canadian cross, just use what we found
7005 echo "$ac_t""pre-installed" 1>&6
7009 case " ${configdirs} " in
7014 if test $ok = yes; then
7015 # An in-tree tool is available and we can use it
7016 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7017 echo "$ac_t""just compiled" 1>&6
7018 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7019 # We already found the complete path
7020 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7021 elif test "x$target" = "x$host"; then
7022 # We can use an host tool
7023 NM_FOR_TARGET='$(NM)'
7024 echo "$ac_t""host tool" 1>&6
7026 # We need a cross tool
7027 echo "$ac_t""pre-installed" 1>&6
7030 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7031 echo "configure:7032: checking where to find the target objdump" >&5
7032 if test "x${build}" != "x${host}" ; then
7033 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7034 # We already found the complete path
7035 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7037 # Canadian cross, just use what we found
7038 echo "$ac_t""pre-installed" 1>&6
7042 case " ${configdirs} " in
7047 if test $ok = yes; then
7048 # An in-tree tool is available and we can use it
7049 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
7050 echo "$ac_t""just compiled" 1>&6
7051 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7052 # We already found the complete path
7053 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7054 elif test "x$target" = "x$host"; then
7055 # We can use an host tool
7056 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
7057 echo "$ac_t""host tool" 1>&6
7059 # We need a cross tool
7060 echo "$ac_t""pre-installed" 1>&6
7063 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7064 echo "configure:7065: checking where to find the target ranlib" >&5
7065 if test "x${build}" != "x${host}" ; then
7066 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7067 # We already found the complete path
7068 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7070 # Canadian cross, just use what we found
7071 echo "$ac_t""pre-installed" 1>&6
7075 case " ${configdirs} " in
7080 if test $ok = yes; then
7081 # An in-tree tool is available and we can use it
7082 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7083 echo "$ac_t""just compiled" 1>&6
7084 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7085 # We already found the complete path
7086 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7087 elif test "x$target" = "x$host"; then
7088 # We can use an host tool
7089 RANLIB_FOR_TARGET='$(RANLIB)'
7090 echo "$ac_t""host tool" 1>&6
7092 # We need a cross tool
7093 echo "$ac_t""pre-installed" 1>&6
7096 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7097 echo "configure:7098: checking where to find the target strip" >&5
7098 if test "x${build}" != "x${host}" ; then
7099 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7100 # We already found the complete path
7101 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7103 # Canadian cross, just use what we found
7104 echo "$ac_t""pre-installed" 1>&6
7108 case " ${configdirs} " in
7113 if test $ok = yes; then
7114 # An in-tree tool is available and we can use it
7115 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
7116 echo "$ac_t""just compiled" 1>&6
7117 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7118 # We already found the complete path
7119 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7120 elif test "x$target" = "x$host"; then
7121 # We can use an host tool
7122 STRIP_FOR_TARGET='$(STRIP)'
7123 echo "$ac_t""host tool" 1>&6
7125 # We need a cross tool
7126 echo "$ac_t""pre-installed" 1>&6
7129 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7130 echo "configure:7131: checking where to find the target windres" >&5
7131 if test "x${build}" != "x${host}" ; then
7132 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7133 # We already found the complete path
7134 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7136 # Canadian cross, just use what we found
7137 echo "$ac_t""pre-installed" 1>&6
7141 case " ${configdirs} " in
7146 if test $ok = yes; then
7147 # An in-tree tool is available and we can use it
7148 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
7149 echo "$ac_t""just compiled" 1>&6
7150 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7151 # We already found the complete path
7152 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7153 elif test "x$target" = "x$host"; then
7154 # We can use an host tool
7155 WINDRES_FOR_TARGET='$(WINDRES)'
7156 echo "$ac_t""host tool" 1>&6
7158 # We need a cross tool
7159 echo "$ac_t""pre-installed" 1>&6
7166 # Certain tools may need extra flags.
7167 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7168 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7169 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
7171 # When building target libraries, except in a Canadian cross, we use
7172 # the same toolchain as the compiler we just built.
7173 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
7174 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
7175 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
7176 if test $host = $build; then
7177 case " $configdirs " in
7179 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
7180 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7181 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7190 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7191 echo "configure:7192: checking whether to enable maintainer-specific portions of Makefiles" >&5
7192 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7193 if test "${enable_maintainer_mode+set}" = set; then
7194 enableval="$enable_maintainer_mode"
7195 USE_MAINTAINER_MODE=$enableval
7197 USE_MAINTAINER_MODE=no
7200 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7203 if test "$USE_MAINTAINER_MODE" = yes; then
7204 MAINTAINER_MODE_TRUE=
7205 MAINTAINER_MODE_FALSE='#'
7207 MAINTAINER_MODE_TRUE='#'
7208 MAINTAINER_MODE_FALSE=
7210 MAINT=$MAINTAINER_MODE_TRUE
7212 # ---------------------
7213 # GCC bootstrap support
7214 # ---------------------
7216 # Stage specific cflags for build.
7221 yes) stage1_cflags="-g -Wa,-J" ;;
7222 *) stage1_cflags="-g -J" ;;
7225 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7226 # sources; use -no-cpp-precomp to get to GNU cpp.
7227 # Apple's GCC has bugs in designated initializer handling, so disable
7229 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7234 # Enable -Werror in bootstrap stage2 and later.
7235 # Change the default to "no" on release branches.
7236 # Check whether --enable-werror or --disable-werror was given.
7237 if test "${enable_werror+set}" = set; then
7238 enableval="$enable_werror"
7244 case ${enable_werror} in
7245 yes) stage2_werror_flag="--enable-werror-always" ;;
7246 *) stage2_werror_flag="" ;;
7250 # Flags needed to enable html installing and building
7251 # Check whether --with-datarootdir or --without-datarootdir was given.
7252 if test "${with_datarootdir+set}" = set; then
7253 withval="$with_datarootdir"
7254 datarootdir="\${prefix}/${withval}"
7256 datarootdir="\${prefix}/share"
7260 # Check whether --with-docdir or --without-docdir was given.
7261 if test "${with_docdir+set}" = set; then
7262 withval="$with_docdir"
7263 docdir="\${prefix}/${withval}"
7265 docdir="\${datarootdir}/doc"
7269 # Check whether --with-htmldir or --without-htmldir was given.
7270 if test "${with_htmldir+set}" = set; then
7271 withval="$with_htmldir"
7272 htmldir="\${prefix}/${withval}"
7274 htmldir="\${docdir}"
7283 cat > confcache <<\EOF
7284 # This file is a shell script that caches the results of configure
7285 # tests run on this system so they can be shared between configure
7286 # scripts and configure runs. It is not useful on other systems.
7287 # If it contains results you don't want to keep, you may remove or edit it.
7289 # By default, configure uses ./config.cache as the cache file,
7290 # creating it if it does not exist already. You can give configure
7291 # the --cache-file=FILE option to use a different cache file; that is
7292 # what configure does when it calls configure scripts in
7293 # subdirectories, so they share the cache.
7294 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7295 # config.status only pays attention to the cache file if you give it the
7296 # --recheck option to rerun configure.
7299 # The following way of writing the cache mishandles newlines in values,
7300 # but we know of no workaround that is simple, portable, and efficient.
7301 # So, don't put newlines in cache variables' values.
7302 # Ultrix sh set writes to stderr and can't be redirected directly,
7303 # and sets the high bit in the cache file unless we assign to the vars.
7305 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7307 # `set' does not quote correctly, so add quotes (double-quote substitution
7308 # turns \\\\ into \\, and sed turns \\ into \).
7310 -e "s/'/'\\\\''/g" \
7311 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7314 # `set' quotes correctly as required by POSIX, so do not add quotes.
7315 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7318 if cmp -s $cache_file confcache; then
7321 if test -w $cache_file; then
7322 echo "updating cache $cache_file"
7323 cat confcache > $cache_file
7325 echo "not updating unwritable cache $cache_file"
7330 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7332 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7333 # Let make expand exec_prefix.
7334 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7336 # Any assignment to VPATH causes Sun make to only execute
7337 # the first set of double-colon rules, so remove it if not needed.
7338 # If there is a colon in the path, we need to keep it.
7339 if test "x$srcdir" = x.; then
7340 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7343 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7345 # Transform confdefs.h into DEFS.
7346 # Protect against shell expansion while executing Makefile rules.
7347 # Protect against Makefile macro expansion.
7349 # If the first sed substitution is executed (which looks for macros that
7350 # take arguments), then we branch to the quote section. Otherwise,
7351 # look for a macro that doesn't take arguments.
7352 cat >confdef2opt.sed <<\_ACEOF
7355 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
7357 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
7361 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
7367 # We use echo to avoid assuming a particular line-breaking character.
7368 # The extra dot is to prevent the shell from consuming trailing
7369 # line-breaks from the sub-command output. A line-break within
7370 # single-quotes doesn't work because, if this script is created in a
7371 # platform that uses two characters for line-breaks (e.g., DOS), tr
7373 ac_LF_and_DOT=`echo; echo .`
7374 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
7375 rm -f confdef2opt.sed
7378 # Without the "./", some shells look in PATH for config.status.
7379 : ${CONFIG_STATUS=./config.status}
7381 echo creating $CONFIG_STATUS
7382 rm -f $CONFIG_STATUS
7383 cat > $CONFIG_STATUS <<EOF
7385 # Generated automatically by configure.
7386 # Run this file to recreate the current configuration.
7387 # This directory was configured as follows,
7388 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7390 # $0 $ac_configure_args
7392 # Compiler output produced by configure, useful for debugging
7393 # configure, is in ./config.log if it exists.
7395 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7398 case "\$ac_option" in
7399 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7400 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7401 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7402 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7403 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7405 -help | --help | --hel | --he | --h)
7406 echo "\$ac_cs_usage"; exit 0 ;;
7407 *) echo "\$ac_cs_usage"; exit 1 ;;
7411 ac_given_srcdir=$srcdir
7412 ac_given_INSTALL="$INSTALL"
7414 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7416 cat >> $CONFIG_STATUS <<EOF
7418 # Protect against being on the right side of a sed subst in config.status.
7419 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7420 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7424 s%@CFLAGS@%$CFLAGS%g
7425 s%@CPPFLAGS@%$CPPFLAGS%g
7426 s%@CXXFLAGS@%$CXXFLAGS%g
7427 s%@FFLAGS@%$FFLAGS%g
7429 s%@LDFLAGS@%$LDFLAGS%g
7431 s%@exec_prefix@%$exec_prefix%g
7432 s%@prefix@%$prefix%g
7433 s%@program_transform_name@%$program_transform_name%g
7434 s%@bindir@%$bindir%g
7435 s%@sbindir@%$sbindir%g
7436 s%@libexecdir@%$libexecdir%g
7437 s%@datadir@%$datadir%g
7438 s%@sysconfdir@%$sysconfdir%g
7439 s%@sharedstatedir@%$sharedstatedir%g
7440 s%@localstatedir@%$localstatedir%g
7441 s%@libdir@%$libdir%g
7442 s%@includedir@%$includedir%g
7443 s%@oldincludedir@%$oldincludedir%g
7444 s%@infodir@%$infodir%g
7445 s%@mandir@%$mandir%g
7447 s%@host_alias@%$host_alias%g
7448 s%@host_cpu@%$host_cpu%g
7449 s%@host_vendor@%$host_vendor%g
7450 s%@host_os@%$host_os%g
7451 s%@target@%$target%g
7452 s%@target_alias@%$target_alias%g
7453 s%@target_cpu@%$target_cpu%g
7454 s%@target_vendor@%$target_vendor%g
7455 s%@target_os@%$target_os%g
7457 s%@build_alias@%$build_alias%g
7458 s%@build_cpu@%$build_cpu%g
7459 s%@build_vendor@%$build_vendor%g
7460 s%@build_os@%$build_os%g
7461 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7462 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7463 s%@INSTALL_DATA@%$INSTALL_DATA%g
7466 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7467 s%@build_subdir@%$build_subdir%g
7468 s%@host_subdir@%$host_subdir%g
7469 s%@target_subdir@%$target_subdir%g
7471 s%@GNATBIND@%$GNATBIND%g
7472 s%@do_compare@%$do_compare%g
7473 s%@gmplibs@%$gmplibs%g
7474 s%@gmpinc@%$gmpinc%g
7475 s%@stage1_languages@%$stage1_languages%g
7476 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7477 /@serialization_dependencies@/r $serialization_dependencies
7478 s%@serialization_dependencies@%%g
7479 /@host_makefile_frag@/r $host_makefile_frag
7480 s%@host_makefile_frag@%%g
7481 /@target_makefile_frag@/r $target_makefile_frag
7482 s%@target_makefile_frag@%%g
7483 /@alphaieee_frag@/r $alphaieee_frag
7484 s%@alphaieee_frag@%%g
7485 /@ospace_frag@/r $ospace_frag
7487 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7488 s%@tooldir@%$tooldir%g
7489 s%@build_tooldir@%$build_tooldir%g
7490 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7491 s%@GDB_TK@%$GDB_TK%g
7492 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7493 s%@build_configargs@%$build_configargs%g
7494 s%@build_configdirs@%$build_configdirs%g
7495 s%@host_configargs@%$host_configargs%g
7496 s%@configdirs@%$configdirs%g
7497 s%@target_configargs@%$target_configargs%g
7498 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7499 s%@config_shell@%$config_shell%g
7505 s%@MAKEINFO@%$MAKEINFO%g
7506 s%@EXPECT@%$EXPECT%g
7507 s%@RUNTEST@%$RUNTEST%g
7510 s%@DLLTOOL@%$DLLTOOL%g
7514 s%@RANLIB@%$RANLIB%g
7516 s%@WINDRES@%$WINDRES%g
7517 s%@OBJCOPY@%$OBJCOPY%g
7518 s%@OBJDUMP@%$OBJDUMP%g
7520 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7521 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7522 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7523 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7524 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7525 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7526 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7527 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7528 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7529 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7530 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7531 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7532 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7533 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7534 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7535 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7536 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7537 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7538 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7539 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7540 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7541 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7542 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7544 s%@stage1_cflags@%$stage1_cflags%g
7545 s%@stage2_werror_flag@%$stage2_werror_flag%g
7546 s%@datarootdir@%$datarootdir%g
7547 s%@docdir@%$docdir%g
7548 s%@htmldir@%$htmldir%g
7553 cat >> $CONFIG_STATUS <<\EOF
7555 # Split the substitutions into bite-sized pieces for seds with
7556 # small command number limits, like on Digital OSF/1 and HP-UX.
7557 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7558 ac_file=1 # Number of current file.
7559 ac_beg=1 # First line for current file.
7560 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7563 while $ac_more_lines; do
7564 if test $ac_beg -gt 1; then
7565 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7567 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7569 if test ! -s conftest.s$ac_file; then
7571 rm -f conftest.s$ac_file
7573 if test -z "$ac_sed_cmds"; then
7574 ac_sed_cmds="sed -f conftest.s$ac_file"
7576 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7578 ac_file=`expr $ac_file + 1`
7580 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7583 if test -z "$ac_sed_cmds"; then
7588 cat >> $CONFIG_STATUS <<EOF
7590 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7592 cat >> $CONFIG_STATUS <<\EOF
7593 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7594 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7596 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7597 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7598 *) ac_file_in="${ac_file}.in" ;;
7601 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7603 # Remove last slash and all that follows it. Not all systems have dirname.
7604 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7605 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7606 # The file is in a subdirectory.
7607 test ! -d "$ac_dir" && mkdir "$ac_dir"
7608 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7609 # A "../" for each directory in $ac_dir_suffix.
7610 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7612 ac_dir_suffix= ac_dots=
7615 case "$ac_given_srcdir" in
7617 if test -z "$ac_dots"; then top_srcdir=.
7618 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7619 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7621 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7622 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7625 case "$ac_given_INSTALL" in
7626 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7627 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7630 echo creating "$ac_file"
7632 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7634 *Makefile*) ac_comsub="1i\\
7635 # $configure_input" ;;
7639 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7641 s%@configure_input@%$configure_input%g
7642 s%@srcdir@%$srcdir%g
7643 s%@top_srcdir@%$top_srcdir%g
7644 s%@INSTALL@%$INSTALL%g
7645 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7650 cat >> $CONFIG_STATUS <<EOF
7653 cat >> $CONFIG_STATUS <<\EOF
7657 chmod +x $CONFIG_STATUS
7658 rm -fr confdefs* $ac_clean_files
7659 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1