2006-10-26 Paul Brook <paul@codesourcery.com>
[binutils.git] / configure
blob6c06341bc90890a5f91b2d8609576abbef4f9c7d
1 #! /bin/sh
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-libada Builds libada directory"
16 ac_help="$ac_help
17 --enable-libssp Builds libssp directory"
18 ac_help="$ac_help
19 --enable-libgcc-math Builds libgcc-math directory"
20 ac_help="$ac_help
21 --with-mpfr-dir=PATH Specify source directory for MPFR library"
22 ac_help="$ac_help
23 --with-mpfr=PATH Specify directory for installed MPFR library"
24 ac_help="$ac_help
25 --with-gmp-dir=PATH Specify source directory for GMP library"
26 ac_help="$ac_help
27 --with-gmp=PATH Specify directory for installed GMP library"
28 ac_help="$ac_help
29 --with-build-sysroot=sysroot
30 use sysroot as the system root during the build"
31 ac_help="$ac_help
32 --enable-bootstrap Enable bootstrapping [yes if native build]"
33 ac_help="$ac_help
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"
38 ac_help="$ac_help
39 --with-build-time-tools=path
40 use given path to find target tools during the build"
41 ac_help="$ac_help
42 --enable-maintainer-mode enable make rules and dependencies not useful
43 (and sometimes confusing) to the casual installer"
44 ac_help="$ac_help
45 --enable-werror enable -Werror in bootstrap stage2 and later"
46 ac_help="$ac_help
47 --with-datarootdir Use datarootdir as the data root directory."
48 ac_help="$ac_help
49 --with-docdir Install documentation in this directory."
50 ac_help="$ac_help
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.
56 build=NONE
57 cache_file=./config.cache
58 exec_prefix=NONE
59 host=NONE
60 no_create=
61 nonopt=NONE
62 no_recursion=
63 prefix=NONE
64 program_prefix=NONE
65 program_suffix=NONE
66 program_transform_name=s,x,x,
67 silent=
68 site=
69 srcdir=
70 target=NONE
71 verbose=
72 x_includes=NONE
73 x_libraries=NONE
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.
88 subdirs=
89 MFLAGS= MAKEFLAGS=
90 SHELL=${CONFIG_SHELL-/bin/sh}
91 # Maximum number of lines to put in a shell here document.
92 ac_max_here_lines=12
94 ac_prev=
95 for ac_option
98 # If the previous option needs an argument, assign it.
99 if test -n "$ac_prev"; then
100 eval "$ac_prev=\$ac_option"
101 ac_prev=
102 continue
105 case "$ac_option" in
106 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
107 *) ac_optarg= ;;
108 esac
110 # Accept the important Cygnus configure options, so we can diagnose typos.
112 case "$ac_option" in
114 -bindir | --bindir | --bindi | --bind | --bin | --bi)
115 ac_prev=bindir ;;
116 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
117 bindir="$ac_optarg" ;;
119 -build | --build | --buil | --bui | --bu)
120 ac_prev=build ;;
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)
132 ac_prev=datadir ;;
133 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
134 | --da=*)
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'`
153 case "$ac_option" in
154 *=*) ;;
155 *) ac_optarg=yes ;;
156 esac
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.
170 with_gas=yes ;;
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.
175 cat << EOF
176 Usage: configure [options] [host]
177 Options: [defaults in brackets after descriptions]
178 Configuration:
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
186 [$ac_default_prefix]
187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
188 [same as prefix]
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
193 [PREFIX/share]
194 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
195 --sharedstatedir=DIR modifiable architecture-independent data in DIR
196 [PREFIX/com]
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
209 cat << EOF
210 Host type:
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"
225 exit 0 ;;
227 -host | --host | --hos | --ho)
228 ac_prev=host ;;
229 -host=* | --host=* | --hos=* | --ho=*)
230 host="$ac_optarg" ;;
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)
240 ac_prev=infodir ;;
241 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
242 infodir="$ac_optarg" ;;
244 -libdir | --libdir | --libdi | --libd)
245 ac_prev=libdir ;;
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)
266 ac_prev=mandir ;;
267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
268 mandir="$ac_optarg" ;;
270 -nfp | --nfp | --nf)
271 # Obsolete; use --without-fp.
272 with_fp=no ;;
274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
275 | --no-cr | --no-c)
276 no_create=yes ;;
278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
280 no_recursion=yes ;;
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)
292 ac_prev=prefix ;;
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)
329 silent=yes ;;
331 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
332 ac_prev=sbindir ;;
333 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
334 | --sbi=* | --sb=*)
335 sbindir="$ac_optarg" ;;
337 -sharedstatedir | --sharedstatedir | --sharedstatedi \
338 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
339 | --sharedst | --shareds | --shared | --share | --shar \
340 | --sha | --sh)
341 ac_prev=sharedstatedir ;;
342 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
343 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
344 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
345 | --sha=* | --sh=*)
346 sharedstatedir="$ac_optarg" ;;
348 -site | --site | --sit)
349 ac_prev=site ;;
350 -site=* | --site=* | --sit=*)
351 site="$ac_optarg" ;;
353 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
354 ac_prev=srcdir ;;
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)
366 ac_prev=target ;;
367 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
368 target="$ac_optarg" ;;
370 -v | -verbose | --verbose | --verbos | --verbo | --verb)
371 verbose=yes ;;
373 -version | --version | --versio | --versi | --vers)
374 echo "configure generated by autoconf version 2.13"
375 exit 0 ;;
377 -with-* | --with-*)
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'`
384 case "$ac_option" in
385 *=*) ;;
386 *) ac_optarg=yes ;;
387 esac
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" ;;
399 --x)
400 # Obsolete; use --with-x.
401 with_x=yes ;;
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; }
427 nonopt="$ac_option"
430 esac
431 done
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:
440 # 0 standard input
441 # 1 file creation
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
448 exec 6>/dev/null
449 else
450 exec 6>&1
452 exec 5>./config.log
454 echo "\
455 This file contains any messages produced by compilers while
456 running configure, to aid debugging if configure makes a mistake.
457 " 1>&5
459 # Strip out --no-create and --no-recursion so they do not pile up.
460 # Also quote any args containing shell metacharacters.
461 ac_configure_args=
462 for ac_arg
464 case "$ac_arg" in
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" ;;
472 esac
473 done
475 # NLS nuisances.
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.
488 echo > confdefs.h
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.
498 ac_prog=$0
499 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
501 srcdir=$ac_confdir
502 if test ! -r $srcdir/$ac_unique_file; then
503 srcdir=..
505 else
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; }
511 else
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"
521 else
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"
528 . "$ac_site_file"
530 done
532 if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
534 . $cache_file
535 else
536 echo "creating cache $cache_file"
537 > $cache_file
540 ac_ext=c
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
547 ac_exeext=
548 ac_objext=o
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
552 ac_n= ac_c='
553 ' ac_t=' '
554 else
555 ac_n=-n ac_c= ac_t=
557 else
558 ac_n= ac_c='\c' ac_t=
563 ac_aux_dir=
564 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
565 if test -f $ac_dir/install-sh; then
566 ac_aux_dir=$ac_dir
567 ac_install_sh="$ac_aux_dir/install-sh -c"
568 break
569 elif test -f $ac_dir/install.sh; then
570 ac_aux_dir=$ac_dir
571 ac_install_sh="$ac_aux_dir/install.sh -c"
572 break
574 done
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.
584 # The inputs are:
585 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
587 # The rules are:
588 # 1. You are not allowed to specify --host, --target, and nonopt at the
589 # same time.
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; } ;;
601 esac
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
612 host_alias=$host
613 case "$host_alias" in
614 NONE)
615 case $nonopt in
616 NONE)
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; }
619 fi ;;
620 *) host_alias=$nonopt ;;
621 esac ;;
622 esac
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
633 target_alias=$target
634 case "$target_alias" in
635 NONE)
636 case $nonopt in
637 NONE) target_alias=$host_alias ;;
638 *) target_alias=$nonopt ;;
639 esac ;;
640 esac
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
651 build_alias=$build
652 case "$build_alias" in
653 NONE)
654 case $nonopt in
655 NONE) build_alias=$host_alias ;;
656 *) build_alias=$nonopt ;;
657 esac ;;
658 esac
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" = \
668 NONENONEs,x,x, &&
669 program_prefix=${target_alias}-
671 if test "$program_transform_name" = s,x,x,; then
672 program_transform_name=
673 else
674 # Double any \ or $. echo might interpret backslashes.
675 cat <<\EOF_SED > conftestsed
676 s,\\,\\\\,g; s,\$,$$,g
677 EOF_SED
678 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
679 rm -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
697 # IRIX /sbin/install
698 # AIX /bin/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
708 else
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.
712 case "$ac_dir/" in
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
717 # by default.
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.
724 else
725 ac_cv_path_install="$ac_dir/$ac_prog -c"
726 break 2
729 done
731 esac
732 done
733 IFS="$ac_save_IFS"
736 if test "${ac_cv_path_install+set}" = set; then
737 INSTALL="$ac_cv_path_install"
738 else
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
760 else
761 rm -f conftestdata_t
762 echo >conftestdata_f
763 if ln conftestdata_f conftestdata_t 2>/dev/null
764 then
765 acx_cv_prog_LN=ln
766 else
767 acx_cv_prog_LN=no
769 rm -f conftestdata_f conftestdata_t
772 if test $acx_cv_prog_LN = no; then
773 LN="cp"
774 echo "$ac_t""no, using $LN" 1>&6
775 else
776 LN="$acx_cv_prog_LN"
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
784 else
785 rm -f conftestdata
786 if ln -s X conftestdata 2>/dev/null
787 then
788 rm -f conftestdata
789 ac_cv_prog_LN_S="ln -s"
790 else
791 ac_cv_prog_LN_S=ln
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
797 else
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.
807 case "${OSTYPE}" in
808 *win32*)
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}
813 export CONFIG_SHELL
814 else
815 for prog in sh sh.exe bash bash.exe; do
816 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
817 for dir in $PATH; do
818 test -z "$dir" && dir=.
819 if test -f $dir/$prog; then
820 CONFIG_SHELL=$dir/$prog
821 export CONFIG_SHELL
822 break
824 done
825 IFS="$save_ifs"
826 test -n "${CONFIG_SHELL}" && break
827 done
832 esac
834 config_shell=${CONFIG_SHELL-/bin/sh}
836 progname=$0
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.
841 # Quote arguments with shell meta charatcers.
842 TOPLEVEL_CONFIGURE_ARGUMENTS=
843 set -- "$progname" "$@"
844 for ac_arg; do
845 case "$ac_arg" in
846 *" "*|*" "*|*\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?*)
847 # if the argument is of the form -foo=baz, quote the baz part only
848 ac_arg="`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"`" ;;
849 *) ;;
850 esac
851 # Add the quoted argument to the list.
852 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
853 done
854 # Remove the initial space we just introduced and, as these will be
855 # expanded by make, quote '$'.
856 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
859 moveifchange=${srcdir}/move-if-change
861 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
863 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
864 # a relative path.
865 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
866 INSTALL="${srcpwd}/install-sh -c"
869 # Set srcdir to "." if that's what it is.
870 # This is important for multilib support.
871 pwd=`${PWDCMD-pwd}`
872 if test "${pwd}" = "${srcpwd}" ; then
873 srcdir=.
876 topsrcdir=$srcpwd
878 extra_host_args=
880 ### To add a new directory to the tree, first choose whether it is a target
881 ### or a host dependent tool. Then put it into the appropriate list
882 ### (library or tools, host or target), doing a dependency sort.
884 # Subdirs will be configured in the order listed in build_configdirs,
885 # configdirs, or target_configdirs; see the serialization section below.
887 # Dependency sorting is only needed when *configuration* must be done in
888 # a particular order. In all cases a dependency should be specified in
889 # the Makefile, whether or not it's implicitly specified here.
891 # Double entries in build_configdirs, configdirs, or target_configdirs may
892 # cause circular dependencies and break everything horribly.
894 # these library is used by various programs built for the build
895 # environment
897 build_libs="build-libiberty"
899 # these tools are built for the build environment
900 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
902 # these libraries are used by various programs built for the host environment
904 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
906 # these tools are built for the host environment
907 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
908 # know that we are building the simulator.
909 # binutils, gas and ld appear in that order because it makes sense to run
910 # "make check" in that particular order.
911 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"
913 # libgcj represents the runtime libraries only used by gcj.
914 libgcj="target-libffi \
915 target-boehm-gc \
916 target-zlib \
917 target-qthreads \
918 target-libjava"
920 # these libraries are built for the target environment, and are built after
921 # the host libraries and the host tools (which may be a cross compiler)
923 target_libraries="target-libiberty \
924 target-libgloss \
925 target-newlib \
926 target-libstdc++-v3 \
927 target-libmudflap \
928 target-libssp \
929 target-libgcc-math \
930 target-libgfortran \
931 ${libgcj} \
932 target-libobjc \
933 target-libada \
934 target-libgomp"
936 # these tools are built using the target libraries, and are intended to
937 # run only in the target environment
939 # note: any program that *uses* libraries that are in the "target_libraries"
940 # list belongs in this list. those programs are also very likely
941 # candidates for the "native_only" list which follows
943 target_tools="target-examples target-groff target-gperf target-rda"
945 ################################################################################
947 ## All tools belong in one of the four categories, and are assigned above
948 ## We assign ${configdirs} this way to remove all embedded newlines. This
949 ## is important because configure will choke if they ever get through.
950 ## ${configdirs} is directories we build using the host tools.
951 ## ${target_configdirs} is directories we build using the target tools.
952 configdirs=`echo ${host_libs} ${host_tools}`
953 target_configdirs=`echo ${target_libraries} ${target_tools}`
954 build_configdirs=`echo ${build_libs} ${build_tools}`
956 ################################################################################
958 srcname="gnu development package"
960 # This gets set non-empty for some net releases of packages.
961 appdirs=""
963 # Define is_cross_compiler to save on calls to 'test'.
964 is_cross_compiler=
965 if test x"${host}" = x"${target}" ; then
966 is_cross_compiler=no
967 else
968 is_cross_compiler=yes
971 # Find the build and target subdir names.
972 case ${build_alias} in
973 "") build_noncanonical=${build} ;;
974 *) build_noncanonical=${build_alias} ;;
975 esac
977 case ${host_alias} in
978 "") host_noncanonical=${build_noncanonical} ;;
979 *) host_noncanonical=${host_alias} ;;
980 esac
982 case ${target_alias} in
983 "") target_noncanonical=${host_noncanonical} ;;
984 *) target_noncanonical=${target_alias} ;;
985 esac
987 # Prefix 'build-' so this never conflicts with target_subdir.
988 build_subdir="build-${build_noncanonical}"
989 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
990 if ( test $srcdir = . && test -d gcc ) \
991 || test -d $srcdir/../host-${host_noncanonical}; then
992 host_subdir="host-${host_noncanonical}"
993 else
994 host_subdir=.
996 # No prefix.
997 target_subdir=${target_noncanonical}
1000 # Skipdirs are removed silently.
1001 skipdirs=
1002 # Noconfigdirs are removed loudly.
1003 noconfigdirs=""
1005 use_gnu_ld=
1006 # Make sure we don't let GNU ld be added if we didn't want it.
1007 if test x$with_gnu_ld = xno ; then
1008 use_gnu_ld=no
1009 noconfigdirs="$noconfigdirs ld"
1012 use_gnu_as=
1013 # Make sure we don't let GNU as be added if we didn't want it.
1014 if test x$with_gnu_as = xno ; then
1015 use_gnu_as=no
1016 noconfigdirs="$noconfigdirs gas"
1019 # some tools are so dependent upon X11 that if we're not building with X,
1020 # it's not even worth trying to configure, much less build, that tool.
1022 case ${with_x} in
1023 yes | "") ;; # the default value for this tree is that X11 is available
1025 skipdirs="${skipdirs} tk itcl libgui"
1026 # We won't be able to build gdbtk without X.
1027 enable_gdbtk=no
1029 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1030 esac
1032 # Some tools are only suitable for building in a "native" situation.
1033 # Remove these if host!=target.
1034 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"
1036 # Similarly, some are only suitable for cross toolchains.
1037 # Remove these if host=target.
1038 cross_only="target-libgloss target-newlib target-opcodes"
1040 case $is_cross_compiler in
1041 no) skipdirs="${skipdirs} ${cross_only}" ;;
1042 yes) skipdirs="${skipdirs} ${native_only}" ;;
1043 esac
1045 # If both --with-headers and --with-libs are specified, default to
1046 # --without-newlib.
1047 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1048 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1049 if test x"${with_newlib}" = x ; then
1050 with_newlib=no
1054 # Recognize --with-newlib/--without-newlib.
1055 case ${with_newlib} in
1056 no) skipdirs="${skipdirs} target-newlib" ;;
1057 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1058 esac
1060 # Configure extra directories which are host specific
1062 case "${host}" in
1063 *-cygwin*)
1064 configdirs="$configdirs libtermcap" ;;
1065 esac
1067 # A target can indicate whether a language isn't supported for some reason.
1068 # Only spaces may be used in this macro; not newlines or tabs.
1069 unsupported_languages=
1071 # Remove more programs from consideration, based on the host or
1072 # target this usually means that a port of the program doesn't
1073 # exist yet.
1075 case "${host}" in
1076 hppa*64*-*-*)
1077 noconfigdirs="$noconfigdirs byacc"
1079 i[3456789]86-*-vsta)
1080 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1082 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1083 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1085 i[3456789]86-*-mingw32*)
1086 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1087 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1089 i[3456789]86-*-beos*)
1090 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1092 *-*-cygwin*)
1093 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1095 *-*-netbsd*)
1096 noconfigdirs="$noconfigdirs rcs"
1098 ppc*-*-pe)
1099 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1101 powerpc-*-beos*)
1102 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1104 esac
1107 # Check whether --enable-libada or --disable-libada was given.
1108 if test "${enable_libada+set}" = set; then
1109 enableval="$enable_libada"
1110 ENABLE_LIBADA=$enableval
1111 else
1112 ENABLE_LIBADA=yes
1115 if test "${ENABLE_LIBADA}" != "yes" ; then
1116 noconfigdirs="$noconfigdirs gnattools"
1119 # Check whether --enable-libssp or --disable-libssp was given.
1120 if test "${enable_libssp+set}" = set; then
1121 enableval="$enable_libssp"
1122 ENABLE_LIBSSP=$enableval
1123 else
1124 ENABLE_LIBSSP=yes
1128 # Set the default so we build libgcc-math for ix86 and x86_64
1129 # Check whether --enable-libgcc-math or --disable-libgcc-math was given.
1130 if test "${enable_libgcc_math+set}" = set; then
1131 enableval="$enable_libgcc_math"
1133 else
1135 case "${target}" in
1136 i?86-* | x86_64-* )
1137 enable_libgcc_math=yes ;;
1139 enable_libgcc_math=no ;;
1140 esac
1145 # Save it here so that, even in case of --enable-libgcj, if the Java
1146 # front-end isn't enabled, we still get libgcj disabled.
1147 libgcj_saved=$libgcj
1148 case $enable_libgcj in
1149 yes)
1150 # If we reset it here, it won't get added to noconfigdirs in the
1151 # target-specific build rules, so it will be forcibly enabled
1152 # (unless the Java language itself isn't enabled).
1153 libgcj=
1156 # Make sure we get it printed in the list of not supported target libs.
1157 noconfigdirs="$noconfigdirs ${libgcj}"
1159 esac
1162 # Disable libmudflap on some systems.
1163 if test x$enable_libmudflap = x ; then
1164 case "${target}" in
1165 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1166 # Enable libmudflap by default in GNU and friends.
1168 *-*-freebsd*)
1169 # Enable libmudflap by default in FreeBSD.
1172 # Disable it by default everywhere else.
1173 noconfigdirs="$noconfigdirs target-libmudflap"
1175 esac
1178 # Disable libgomp on non POSIX hosted systems.
1179 if test x$enable_libgomp = x ; then
1180 # Enable libgomp by default on hosted POSIX systems.
1181 case "${target}" in
1182 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1184 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1186 *-*-solaris2* | *-*-sysv4* | *-*-irix* | *-*-osf* | *-*-hpux*)
1188 *-*-darwin* | *-*-aix*)
1191 noconfigdirs="$noconfigdirs target-libgomp"
1193 esac
1197 case "${target}" in
1198 *-*-chorusos)
1199 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1201 powerpc-*-darwin*)
1202 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1203 noconfigdirs="$noconfigdirs sim target-rda"
1205 *-*-darwin*)
1206 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1207 noconfigdirs="$noconfigdirs sim target-rda"
1208 noconfigdirs="$noconfigdirs ${libgcj}"
1210 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1211 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1213 *-*-freebsd*)
1214 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1215 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1216 && test -f /usr/local/include/gmp.h; then
1217 with_gmp=/usr/local
1220 # Skip some stuff that's unsupported on some FreeBSD configurations.
1221 case "${target}" in
1222 i*86-*-*) ;;
1223 alpha*-*-*) ;;
1225 noconfigdirs="$noconfigdirs ${libgcj}"
1227 esac
1229 *-*-kaos*)
1230 # Remove unsupported stuff on all kaOS configurations.
1231 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1232 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1233 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1234 noconfigdirs="$noconfigdirs target-libgloss"
1236 *-*-netbsd*)
1237 # Skip some stuff on all NetBSD configurations.
1238 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1240 # Skip some stuff that's unsupported on some NetBSD configurations.
1241 case "${target}" in
1242 i*86-*-netbsdelf*) ;;
1243 arm*-*-netbsdelf*) ;;
1245 noconfigdirs="$noconfigdirs ${libgcj}"
1247 esac
1249 *-*-netware*)
1250 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1252 *-*-rtems*)
1253 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1255 # The tpf target doesn't support gdb yet.
1256 *-*-tpf*)
1257 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1259 *-*-uclinux*)
1260 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1262 *-*-vxworks*)
1263 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1265 m32c-*-*)
1266 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1268 alpha*-dec-osf*)
1269 # ld works, but does not support shared libraries.
1270 # newlib is not 64 bit ready. I'm not sure about fileutils.
1271 # gas doesn't generate exception information.
1272 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1274 alpha*-*-*vms*)
1275 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1277 alpha*-*-linux*)
1278 # newlib is not 64 bit ready
1279 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1281 alpha*-*-*)
1282 # newlib is not 64 bit ready
1283 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1285 am33_2.0-*-linux*)
1286 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1288 sh-*-linux*)
1289 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1291 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1292 noconfigdirs="$noconfigdirs ${libgcj}"
1293 noconfigdirs="$noconfigdirs target-examples"
1294 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1295 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1296 noconfigdirs="$noconfigdirs expect dejagnu"
1297 # the C++ libraries don't build on top of CE's C libraries
1298 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1299 noconfigdirs="$noconfigdirs target-newlib"
1300 case "${host}" in
1301 *-*-cygwin*) ;; # keep gdb and readline
1302 *) noconfigdirs="$noconfigdirs gdb readline"
1304 esac
1306 arc-*-*)
1307 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1309 arm-semi-aof )
1311 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1312 noconfigdirs="$noconfigdirs ${libgcj}"
1314 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1315 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1317 arm*-*-linux-gnueabi)
1318 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1319 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1321 arm*-*-symbianelf*)
1322 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1324 arm-*-pe*)
1325 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1327 thumb-*-coff)
1328 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1330 thumb-*-elf)
1331 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1333 thumb-*-pe)
1334 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1336 arm-*-riscix*)
1337 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1339 avr-*-*)
1340 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1342 bfin-*-*)
1343 noconfigdirs="$noconfigdirs target-libgloss gdb"
1344 if test x${is_cross_compiler} != xno ; then
1345 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1348 c4x-*-* | tic4x-*-*)
1349 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1351 c54x*-*-* | tic54x-*-*)
1352 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1354 cris-*-* | crisv32-*-*)
1355 unsupported_languages="$unsupported_languages java"
1356 case "${target}" in
1357 *-*-aout)
1358 unsupported_languages="$unsupported_languages fortran"
1359 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
1360 *-*-elf)
1361 unsupported_languages="$unsupported_languages fortran"
1362 noconfigdirs="$noconfigdirs target-boehm-gc";;
1363 *-*-linux*)
1364 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
1366 unsupported_languages="$unsupported_languages fortran"
1367 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1368 esac
1370 crx-*-*)
1371 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1373 d10v-*-*)
1374 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1376 d30v-*-*)
1377 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1379 fr30-*-elf*)
1380 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1382 frv-*-*)
1383 noconfigdirs="$noconfigdirs ${libgcj}"
1385 h8300*-*-*)
1386 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1388 h8500-*-*)
1389 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1391 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1393 hppa*64*-*-linux* | parisc*64*-*-linux*)
1394 # In this case, it's because the hppa64-linux target is for
1395 # the kernel only at this point and has no libc, and thus no
1396 # headers, crt*.o, etc., all of which are needed by these.
1397 noconfigdirs="$noconfigdirs target-zlib"
1399 parisc*-*-linux* | hppa*-*-linux*)
1401 hppa*-*-*elf* | \
1402 hppa*-*-lites* | \
1403 hppa*-*-openbsd* | \
1404 hppa*64*-*-*)
1405 noconfigdirs="$noconfigdirs ${libgcj}"
1407 hppa*-*-*)
1408 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1409 # build on HP-UX 10.20.
1410 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1412 i960-*-*)
1413 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1415 ia64*-*-elf*)
1416 # No gdb support yet.
1417 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1419 ia64*-**-hpux*)
1420 # No gdb or ld support yet.
1421 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1423 i370-*-opened*)
1425 i[3456789]86-*-coff | i[3456789]86-*-elf)
1426 noconfigdirs="$noconfigdirs ${libgcj}"
1428 i[3456789]86-*-linux*)
1429 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1430 # not build java stuff by default.
1431 case "${target}" in
1432 *-*-*libc1*)
1433 noconfigdirs="$noconfigdirs ${libgcj}";;
1434 esac
1436 # This section makes it possible to build newlib natively on linux.
1437 # If we are using a cross compiler then don't configure newlib.
1438 if test x${is_cross_compiler} != xno ; then
1439 noconfigdirs="$noconfigdirs target-newlib"
1441 noconfigdirs="$noconfigdirs target-libgloss"
1442 # If we are not using a cross compiler, do configure newlib.
1443 # Note however, that newlib will only be configured in this situation
1444 # if the --with-newlib option has been given, because otherwise
1445 # 'target-newlib' will appear in skipdirs.
1447 i[3456789]86-*-mingw32*)
1448 target_configdirs="$target_configdirs target-mingw"
1449 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1451 # Can't build gdb for mingw32 if not native.
1452 case "${host}" in
1453 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1454 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1456 esac
1458 *-*-cygwin*)
1459 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1460 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1461 # always build newlib if winsup directory is present.
1462 if test -d "$srcdir/winsup"; then
1463 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1464 elif test -d "$srcdir/newlib"; then
1465 echo "Warning: winsup is missing so newlib can't be built."
1468 # Can't build gdb for Cygwin if not native.
1469 case "${host}" in
1470 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1471 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1473 esac
1475 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1476 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1478 i[3456789]86-*-pe)
1479 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1481 i[3456789]86-*-sco3.2v5*)
1482 # The linker does not yet know about weak symbols in COFF,
1483 # and is not configured to handle mixed ELF and COFF.
1484 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1486 i[3456789]86-*-sco*)
1487 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1489 i[3456789]86-*-solaris2*)
1490 noconfigdirs="$noconfigdirs target-libgloss"
1492 i[3456789]86-*-sysv4*)
1493 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1495 i[3456789]86-*-beos*)
1496 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1498 i[3456789]86-*-rdos*)
1499 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1501 m32r-*-*)
1502 noconfigdirs="$noconfigdirs ${libgcj}"
1504 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1505 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1507 m68k-*-elf*)
1508 noconfigdirs="$noconfigdirs ${libgcj}"
1510 m68k-*-coff*)
1511 noconfigdirs="$noconfigdirs ${libgcj}"
1513 mcore-*-pe*)
1514 # The EPOC C++ environment does not support exceptions or rtti,
1515 # and so building libstdc++-v3 tends not to always work.
1516 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1518 mmix-*-*)
1519 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1520 unsupported_languages="$unsupported_languages fortran java"
1522 mn10200-*-*)
1523 noconfigdirs="$noconfigdirs ${libgcj}"
1525 mn10300-*-*)
1526 noconfigdirs="$noconfigdirs ${libgcj}"
1528 mt-*-*)
1529 noconfigdirs="$noconfigdirs sim"
1531 powerpc-*-aix*)
1532 # copied from rs6000-*-* entry
1533 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1535 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1536 target_configdirs="$target_configdirs target-winsup"
1537 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1538 # always build newlib.
1539 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1541 # This is temporary until we can link against shared libraries
1542 powerpcle-*-solaris*)
1543 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1545 powerpc-*-beos*)
1546 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1548 powerpc-*-eabi)
1549 noconfigdirs="$noconfigdirs ${libgcj}"
1551 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1553 rs6000-*-lynxos*)
1554 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1556 rs6000-*-aix*)
1557 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1559 rs6000-*-*)
1560 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1562 m68k-apollo-*)
1563 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1565 mips*-*-irix5*)
1566 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1568 mips*-*-irix6*)
1569 # Linking libjava exceeds command-line length limits on at least
1570 # IRIX 6.2, but not on IRIX 6.5.
1571 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1572 # <oldham@codesourcery.com>
1573 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1575 mips*-dec-bsd*)
1576 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1578 mips*-*-bsd*)
1579 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1581 mipstx39-*-*)
1582 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1584 mips64*-*-linux*)
1585 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1587 mips*-*-linux*)
1588 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1590 mips*-*-*)
1591 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1593 romp-*-*)
1594 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1596 sh-*-* | sh64-*-*)
1597 case "${host}" in
1598 i[3456789]86-*-vsta) ;; # don't add gprof back in
1599 i[3456789]86-*-go32*) ;; # don't add gprof back in
1600 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1601 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1602 esac
1603 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1605 sparc-*-elf*)
1606 noconfigdirs="$noconfigdirs ${libgcj}"
1608 sparc64-*-elf*)
1609 noconfigdirs="$noconfigdirs ${libgcj}"
1611 sparclite-*-*)
1612 noconfigdirs="$noconfigdirs ${libgcj}"
1614 sparc-*-sunos4*)
1615 noconfigdirs="$noconfigdirs ${libgcj}"
1616 if test x${is_cross_compiler} != xno ; then
1617 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1618 else
1619 use_gnu_ld=no
1622 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1623 noconfigdirs="$noconfigdirs ${libgcj}"
1625 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1627 v810-*-*)
1628 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1630 v850-*-*)
1631 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1633 v850e-*-*)
1634 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1636 v850ea-*-*)
1637 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1639 vax-*-vms)
1640 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1642 vax-*-*)
1643 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1645 xtensa-*-*)
1646 noconfigdirs="$noconfigdirs ${libgcj}"
1648 ip2k-*-*)
1649 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1651 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1652 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1654 *-*-lynxos*)
1655 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1657 *-*-*)
1658 noconfigdirs="$noconfigdirs ${libgcj}"
1660 esac
1662 # If we aren't building newlib, then don't build libgloss, since libgloss
1663 # depends upon some newlib header files.
1664 case "${noconfigdirs}" in
1665 *target-libgloss*) ;;
1666 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1667 esac
1669 # Work in distributions that contain no compiler tools, like Autoconf.
1670 tentative_cc=""
1671 host_makefile_frag=/dev/null
1672 if test -d ${srcdir}/config ; then
1673 case "${host}" in
1674 m68k-hp-hpux*)
1675 # Avoid "too much defining" errors from HPUX compiler.
1676 tentative_cc="cc -Wp,-H256000"
1677 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1678 # If it's HP/UX ar, this should be harmless.
1679 RANLIB="ar ts"
1681 m68k-apollo-sysv*)
1682 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1684 m68k-apollo-bsd*)
1685 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1686 # chokes on bfd, the compiler won't let you assign integers to enums, and
1687 # other problems. Defining CC to gcc is a questionable way to say "don't use
1688 # the apollo compiler" (the preferred version of GCC could be called cc,
1689 # or whatever), but I'm not sure leaving CC as cc is any better...
1690 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1691 # Used to have BISON=yacc.
1692 tentative_cc=gcc
1694 m88k-dg-dgux*)
1695 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1697 m88k-harris-cxux*)
1698 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1699 tentative_cc="cc -Xa"
1700 host_makefile_frag="config/mh-cxux"
1702 m88k-motorola-sysv*)
1704 mips*-dec-ultrix*)
1705 tentative_cc="cc -Wf,-XNg1000"
1706 host_makefile_frag="config/mh-decstation"
1708 mips*-nec-sysv4*)
1709 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1710 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1711 host_makefile_frag="config/mh-necv4"
1713 mips*-sgi-irix4*)
1714 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1715 # environment. Also bump switch table size so that cp-parse will
1716 # compile. Bump string length limit so linker builds.
1717 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1719 mips*-*-sysv4*)
1720 host_makefile_frag="config/mh-sysv4"
1722 mips*-*-sysv*)
1723 # This is for a MIPS running RISC/os 4.52C.
1725 # This is needed for GDB, but needs to be in the top-level make because
1726 # if a library is compiled with the bsd headers and gets linked with the
1727 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1728 # a different size).
1729 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1730 # known except to select the sysv environment. Could we use /proc instead?
1731 # These "sysv environments" and "bsd environments" often end up being a pain.
1733 # This is not part of CFLAGS because perhaps not all C compilers have this
1734 # option.
1735 tentative_cc="cc -systype sysv"
1737 i370-ibm-opened*)
1738 tentative_cc="c89"
1740 i[3456789]86-*-sysv5*)
1741 host_makefile_frag="config/mh-sysv5"
1743 i[3456789]86-*-dgux*)
1744 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1745 host_makefile_frag="config/mh-dgux386"
1747 i[3456789]86-ncr-sysv4.3*)
1748 # The MetaWare compiler will generate a copyright message unless you
1749 # turn it off by adding the -Hnocopyr flag.
1750 tentative_cc="cc -Hnocopyr"
1752 i[3456789]86-ncr-sysv4*)
1753 # for an NCR 3000 (i486/SVR4) system.
1754 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1755 # This compiler not only emits obnoxious copyright messages every time
1756 # you run it, but it chokes and dies on a whole bunch of GNU source
1757 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1758 tentative_cc="/usr/ccs/ATT/cc"
1759 host_makefile_frag="config/mh-ncr3000"
1761 i[3456789]86-*-sco3.2v5*)
1763 i[3456789]86-*-sco*)
1764 # The native C compiler botches some simple uses of const. Unfortunately,
1765 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1766 tentative_cc="cc -Dconst="
1767 host_makefile_frag="config/mh-sco"
1769 i[3456789]86-*-udk*)
1770 host_makefile_frag="config/mh-sysv5"
1772 i[3456789]86-*-solaris2*)
1773 host_makefile_frag="config/mh-sysv4"
1775 i[3456789]86-*-msdosdjgpp*)
1776 host_makefile_frag="config/mh-djgpp"
1778 *-cygwin*)
1779 host_makefile_frag="config/mh-cygwin"
1781 *-mingw32*)
1783 *-interix*)
1784 host_makefile_frag="config/mh-interix"
1786 vax-*-ultrix2*)
1787 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1788 tentative_cc=gcc
1790 *-*-solaris2*)
1791 host_makefile_frag="config/mh-solaris"
1793 m68k-sun-sunos*)
1794 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1795 # without overflowing the jump tables (-J says to use a 32 bit table)
1796 tentative_cc="cc -J"
1798 *-hp-hpux*)
1799 tentative_cc="cc -Wp,-H256000"
1801 *-*-hiux*)
1802 tentative_cc="cc -Wp,-H256000"
1804 rs6000-*-lynxos*)
1805 # /bin/cc is less than useful for our purposes. Always use GCC
1806 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1807 host_makefile_frag="config/mh-lynxrs6k"
1809 powerpc-*-darwin*)
1810 host_makefile_frag="config/mh-ppc-darwin"
1812 powerpc-*-aix*)
1813 host_makefile_frag="config/mh-ppc-aix"
1815 rs6000-*-aix*)
1816 host_makefile_frag="config/mh-ppc-aix"
1818 *-*-lynxos*)
1819 # /bin/cc is less than useful for our purposes. Always use GCC
1820 tentative_cc="/bin/gcc"
1822 *-*-sysv4*)
1823 host_makefile_frag="config/mh-sysv4"
1825 # This is placed last to prevent interfering with the cases above.
1826 i[3456789]86-*-*)
1827 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1828 host_makefile_frag="config/mh-x86omitfp"
1830 esac
1833 # If we aren't going to be using gcc, see if we can extract a definition
1834 # of CC from the fragment.
1835 # Actually, use the 'pre-extracted' version above.
1836 if test -z "${CC}" && test "${build}" = "${host}" ; then
1837 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1838 found=
1839 for dir in $PATH; do
1840 test -z "$dir" && dir=.
1841 if test -f $dir/gcc; then
1842 found=yes
1843 break
1845 done
1846 IFS="$save_ifs"
1847 if test -z "${found}" && test -n "${tentative_cc}" ; then
1848 CC=$tentative_cc
1852 if test "${build}" != "${host}" ; then
1853 # If we are doing a Canadian Cross, in which the host and build systems
1854 # are not the same, we set reasonable default values for the tools.
1856 CC=${CC-${host_alias}-gcc}
1857 CFLAGS=${CFLAGS-"-g -O2"}
1858 CXX=${CXX-${host_alias}-c++}
1859 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1860 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1862 else
1863 # Set reasonable default values for some tools even if not Canadian.
1864 # Of course, these are different reasonable default values, originally
1865 # specified directly in the Makefile.
1866 # We don't export, so that autoconf can do its job.
1867 # Note that all these settings are above the fragment inclusion point
1868 # in Makefile.in, so can still be overridden by fragments.
1869 # This is all going to change when we autoconfiscate...
1871 CC_FOR_BUILD="\$(CC)"
1872 # Extract the first word of "gcc", so it can be a program name with args.
1873 set dummy gcc; ac_word=$2
1874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1875 echo "configure:1876: checking for $ac_word" >&5
1876 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1878 else
1879 if test -n "$CC"; then
1880 ac_cv_prog_CC="$CC" # Let the user override the test.
1881 else
1882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1883 ac_dummy="$PATH"
1884 for ac_dir in $ac_dummy; do
1885 test -z "$ac_dir" && ac_dir=.
1886 if test -f $ac_dir/$ac_word; then
1887 ac_cv_prog_CC="gcc"
1888 break
1890 done
1891 IFS="$ac_save_ifs"
1894 CC="$ac_cv_prog_CC"
1895 if test -n "$CC"; then
1896 echo "$ac_t""$CC" 1>&6
1897 else
1898 echo "$ac_t""no" 1>&6
1901 if test -z "$CC"; then
1902 # Extract the first word of "cc", so it can be a program name with args.
1903 set dummy cc; ac_word=$2
1904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1905 echo "configure:1906: checking for $ac_word" >&5
1906 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1908 else
1909 if test -n "$CC"; then
1910 ac_cv_prog_CC="$CC" # Let the user override the test.
1911 else
1912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1913 ac_prog_rejected=no
1914 ac_dummy="$PATH"
1915 for ac_dir in $ac_dummy; do
1916 test -z "$ac_dir" && ac_dir=.
1917 if test -f $ac_dir/$ac_word; then
1918 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1919 ac_prog_rejected=yes
1920 continue
1922 ac_cv_prog_CC="cc"
1923 break
1925 done
1926 IFS="$ac_save_ifs"
1927 if test $ac_prog_rejected = yes; then
1928 # We found a bogon in the path, so make sure we never use it.
1929 set dummy $ac_cv_prog_CC
1930 shift
1931 if test $# -gt 0; then
1932 # We chose a different compiler from the bogus one.
1933 # However, it has the same basename, so the bogon will be chosen
1934 # first if we set CC to just the basename; use the full file name.
1935 shift
1936 set dummy "$ac_dir/$ac_word" "$@"
1937 shift
1938 ac_cv_prog_CC="$@"
1943 CC="$ac_cv_prog_CC"
1944 if test -n "$CC"; then
1945 echo "$ac_t""$CC" 1>&6
1946 else
1947 echo "$ac_t""no" 1>&6
1950 if test -z "$CC"; then
1951 case "`uname -s`" in
1952 *win32* | *WIN32*)
1953 # Extract the first word of "cl", so it can be a program name with args.
1954 set dummy cl; ac_word=$2
1955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1956 echo "configure:1957: checking for $ac_word" >&5
1957 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1959 else
1960 if test -n "$CC"; then
1961 ac_cv_prog_CC="$CC" # Let the user override the test.
1962 else
1963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1964 ac_dummy="$PATH"
1965 for ac_dir in $ac_dummy; do
1966 test -z "$ac_dir" && ac_dir=.
1967 if test -f $ac_dir/$ac_word; then
1968 ac_cv_prog_CC="cl"
1969 break
1971 done
1972 IFS="$ac_save_ifs"
1975 CC="$ac_cv_prog_CC"
1976 if test -n "$CC"; then
1977 echo "$ac_t""$CC" 1>&6
1978 else
1979 echo "$ac_t""no" 1>&6
1982 esac
1984 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1987 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1988 echo "configure:1989: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1990 ac_ext=c
1991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1992 ac_cpp='$CPP $CPPFLAGS'
1993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1995 cross_compiling=$ac_cv_prog_cc_cross
1997 cat > conftest.$ac_ext << EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2002 main(){return(0);}
2004 if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2005 ac_cv_prog_cc_works=yes
2006 # If we can't run a trivial program, we are probably using a cross compiler.
2007 if (./conftest; exit) 2>/dev/null; then
2008 ac_cv_prog_cc_cross=no
2009 else
2010 ac_cv_prog_cc_cross=yes
2012 else
2013 echo "configure: failed program was:" >&5
2014 cat conftest.$ac_ext >&5
2015 ac_cv_prog_cc_works=no
2017 rm -fr conftest*
2018 ac_ext=c
2019 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2020 ac_cpp='$CPP $CPPFLAGS'
2021 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2022 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2023 cross_compiling=$ac_cv_prog_cc_cross
2025 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2026 if test $ac_cv_prog_cc_works = no; then
2027 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2029 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2030 echo "configure:2031: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2031 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2032 cross_compiling=$ac_cv_prog_cc_cross
2034 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2035 echo "configure:2036: checking whether we are using GNU C" >&5
2036 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2038 else
2039 cat > conftest.c <<EOF
2040 #ifdef __GNUC__
2041 yes;
2042 #endif
2044 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2045 ac_cv_prog_gcc=yes
2046 else
2047 ac_cv_prog_gcc=no
2051 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2053 if test $ac_cv_prog_gcc = yes; then
2054 GCC=yes
2055 else
2056 GCC=
2059 ac_test_CFLAGS="${CFLAGS+set}"
2060 ac_save_CFLAGS="$CFLAGS"
2061 CFLAGS=
2062 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2063 echo "configure:2064: checking whether ${CC-cc} accepts -g" >&5
2064 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2066 else
2067 echo 'void f(){}' > conftest.c
2068 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2069 ac_cv_prog_cc_g=yes
2070 else
2071 ac_cv_prog_cc_g=no
2073 rm -f conftest*
2077 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2078 if test "$ac_test_CFLAGS" = set; then
2079 CFLAGS="$ac_save_CFLAGS"
2080 elif test $ac_cv_prog_cc_g = yes; then
2081 if test "$GCC" = yes; then
2082 CFLAGS="-g -O2"
2083 else
2084 CFLAGS="-g"
2086 else
2087 if test "$GCC" = yes; then
2088 CFLAGS="-O2"
2089 else
2090 CFLAGS=
2095 # We must set the default linker to the linker used by gcc for the correct
2096 # operation of libtool. If LD is not defined and we are using gcc, try to
2097 # set the LD default to the ld used by gcc.
2098 if test -z "$LD"; then
2099 if test "$GCC" = yes; then
2100 case $build in
2101 *-*-mingw*)
2102 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2104 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2105 esac
2106 case $gcc_prog_ld in
2107 # Accept absolute paths.
2108 [\\/]* | [A-Za-z]:[\\/]*)
2109 LD="$gcc_prog_ld" ;;
2110 esac
2114 CXX=${CXX-"c++"}
2115 CFLAGS=${CFLAGS-"-g"}
2116 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2119 if test $host != $build; then
2120 ac_tool_prefix=${host_alias}-
2121 else
2122 ac_tool_prefix=
2127 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2128 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2130 echo "configure:2131: checking for $ac_word" >&5
2131 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2133 else
2134 if test -n "$GNATBIND"; then
2135 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2136 else
2137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2138 ac_dummy="$PATH"
2139 for ac_dir in $ac_dummy; do
2140 test -z "$ac_dir" && ac_dir=.
2141 if test -f $ac_dir/$ac_word; then
2142 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2143 break
2145 done
2146 IFS="$ac_save_ifs"
2149 GNATBIND="$ac_cv_prog_GNATBIND"
2150 if test -n "$GNATBIND"; then
2151 echo "$ac_t""$GNATBIND" 1>&6
2152 else
2153 echo "$ac_t""no" 1>&6
2157 if test -z "$ac_cv_prog_GNATBIND"; then
2158 if test -n "$ac_tool_prefix"; then
2159 # Extract the first word of "gnatbind", so it can be a program name with args.
2160 set dummy gnatbind; ac_word=$2
2161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2162 echo "configure:2163: checking for $ac_word" >&5
2163 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2165 else
2166 if test -n "$GNATBIND"; then
2167 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2168 else
2169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2170 ac_dummy="$PATH"
2171 for ac_dir in $ac_dummy; do
2172 test -z "$ac_dir" && ac_dir=.
2173 if test -f $ac_dir/$ac_word; then
2174 ac_cv_prog_GNATBIND="gnatbind"
2175 break
2177 done
2178 IFS="$ac_save_ifs"
2179 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2182 GNATBIND="$ac_cv_prog_GNATBIND"
2183 if test -n "$GNATBIND"; then
2184 echo "$ac_t""$GNATBIND" 1>&6
2185 else
2186 echo "$ac_t""no" 1>&6
2189 else
2190 GNATBIND="no"
2194 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2195 echo "configure:2196: checking whether compiler driver understands Ada" >&5
2196 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2198 else
2199 cat >conftest.adb <<EOF
2200 procedure conftest is begin null; end conftest;
2202 acx_cv_cc_gcc_supports_ada=no
2203 # There is a bug in old released versions of GCC which causes the
2204 # driver to exit successfully when the appropriate language module
2205 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2206 # Therefore we must check for the error message as well as an
2207 # unsuccessful exit.
2208 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2209 # given a .adb file, but produce no object file. So we must check
2210 # if an object file was really produced to guard against this.
2211 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2212 if test x"$errors" = x && test -f conftest.$ac_objext; then
2213 acx_cv_cc_gcc_supports_ada=yes
2215 rm -f conftest.*
2218 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2220 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2221 have_gnat=yes
2222 else
2223 have_gnat=no
2226 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2227 echo "configure:2228: checking how to compare bootstrapped objects" >&5
2228 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2230 else
2231 echo abfoo >t1
2232 echo cdfoo >t2
2233 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2234 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2235 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2237 else
2238 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2241 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2242 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2244 else
2245 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2248 rm t1 t2
2252 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2253 do_compare="$gcc_cv_prog_cmp_skip"
2257 # Check for GMP and MPFR
2258 gmplibs=
2259 gmpinc=
2260 have_gmp=yes
2261 # Specify a location for mpfr
2262 # check for this first so it ends up on the link line before gmp.
2263 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2264 if test "${with_mpfr_dir+set}" = set; then
2265 withval="$with_mpfr_dir"
2270 if test "x$with_mpfr_dir" != x; then
2271 gmpinc="-I$with_mpfr_dir"
2272 gmplibs="$with_mpfr_dir/libmpfr.a"
2273 else
2274 gmplibs="-lmpfr"
2277 # Check whether --with-mpfr or --without-mpfr was given.
2278 if test "${with_mpfr+set}" = set; then
2279 withval="$with_mpfr"
2284 if test "x$with_mpfr" != x; then
2285 gmplibs="-L$with_mpfr/lib $gmplibs"
2286 gmpinc="-I$with_mpfr/include"
2289 # Specify a location for gmp
2290 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2291 if test "${with_gmp_dir+set}" = set; then
2292 withval="$with_gmp_dir"
2297 if test "x$with_gmp_dir" != x; then
2298 gmpinc="$gmpinc -I$with_gmp_dir"
2299 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2300 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2301 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2302 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2304 # One of the later tests will catch the error if neither library is present.
2305 else
2306 gmplibs="$gmplibs -lgmp"
2309 # Check whether --with-gmp or --without-gmp was given.
2310 if test "${with_gmp+set}" = set; then
2311 withval="$with_gmp"
2316 if test "x$with_gmp" != x; then
2317 gmplibs="-L$with_gmp/lib $gmplibs"
2318 gmpinc="-I$with_gmp/include $gmpinc"
2321 saved_CFLAGS="$CFLAGS"
2322 CFLAGS="$CFLAGS $gmpinc"
2323 # Check GMP actually works
2324 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2325 echo "configure:2326: checking for correct version of gmp.h" >&5
2326 cat > conftest.$ac_ext <<EOF
2327 #line 2328 "configure"
2328 #include "confdefs.h"
2329 #include "gmp.h"
2330 int main() {
2332 #if __GNU_MP_VERSION < 3
2333 choke me
2334 #endif
2336 ; return 0; }
2338 if { (eval echo configure:2339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2339 rm -rf conftest*
2340 echo "$ac_t""yes" 1>&6
2341 else
2342 echo "configure: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2344 rm -rf conftest*
2345 echo "$ac_t""no" 1>&6; have_gmp=no
2347 rm -f conftest*
2349 if test x"$have_gmp" = xyes; then
2350 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2351 echo "configure:2352: checking for MPFR" >&5
2353 saved_LIBS="$LIBS"
2354 LIBS="$LIBS $gmplibs"
2355 cat > conftest.$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2358 #include <gmp.h>
2359 #include <mpfr.h>
2360 int main() {
2361 mpfr_t n; mpfr_init(n);
2362 ; return 0; }
2364 if { (eval echo configure:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2365 rm -rf conftest*
2366 echo "$ac_t""yes" 1>&6
2367 else
2368 echo "configure: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
2370 rm -rf conftest*
2371 echo "$ac_t""no" 1>&6; have_gmp=no
2373 rm -f conftest*
2374 LIBS="$saved_LIBS"
2375 CFLAGS="$saved_CFLAGS"
2378 # Flags needed for both GMP and/or MPFR
2382 # By default, C is the only stage 1 language.
2383 stage1_languages=c
2386 # Figure out what language subdirectories are present.
2387 # Look if the user specified --enable-languages="..."; if not, use
2388 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2389 # go away some day.
2390 # NB: embedded tabs in this IF block -- do not untabify
2391 if test -d ${srcdir}/gcc; then
2392 if test x"${enable_languages+set}" != xset; then
2393 if test x"${LANGUAGES+set}" = xset; then
2394 enable_languages="${LANGUAGES}"
2395 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2396 else
2397 enable_languages=all
2399 else
2400 if test x"${enable_languages}" = x ||
2401 test x"${enable_languages}" = xyes;
2402 then
2403 echo configure.in: --enable-languages needs at least one language argument 1>&2
2404 exit 1
2407 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2409 # 'f95' is the old name for the 'fortran' language. We issue a warning
2410 # and make the substitution.
2411 case ,${enable_languages}, in
2412 *,f95,*)
2413 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2414 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2416 esac
2418 # First scan to see if an enabled language requires some other language.
2419 # We assume that a given config-lang.in will list all the language
2420 # front ends it requires, even if some are required indirectly.
2421 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2422 case ${lang_frag} in
2423 ..) ;;
2424 # The odd quoting in the next line works around
2425 # an apparent bug in bash 1.12 on linux.
2426 ${srcdir}/gcc/[*]/config-lang.in) ;;
2428 # From the config-lang.in, get $language, $lang_requires
2429 language=
2430 lang_requires=
2431 . ${lang_frag}
2432 for other in ${lang_requires} ; do
2433 case ,${enable_languages}, in
2434 *,$other,*) ;;
2435 *,all,*) ;;
2436 *,$language,*)
2437 echo " \`$other' language required by \`$language'; enabling" 1>&2
2438 enable_languages="${enable_languages},${other}"
2440 esac
2441 done
2443 esac
2444 done
2446 new_enable_languages=c
2447 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2448 potential_languages=c
2450 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2451 case ${lang_frag} in
2452 ..) ;;
2453 # The odd quoting in the next line works around
2454 # an apparent bug in bash 1.12 on linux.
2455 ${srcdir}/gcc/[*]/config-lang.in) ;;
2457 # From the config-lang.in, get $language, $target_libs,
2458 # $lang_dirs, $boot_language, and $build_by_default
2459 language=
2460 target_libs=
2461 lang_dirs=
2462 boot_language=
2463 build_by_default=
2464 need_gmp=
2465 . ${lang_frag}
2466 potential_languages="${potential_languages},${language}"
2467 # This is quite sensitive to the ordering of the case statement arms.
2468 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2469 *::*:*)
2470 echo "${lang_frag} doesn't set \$language." 1>&2
2471 exit 1
2473 *:ada:no:*)
2474 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2475 add_this_lang=no
2477 *,${language},*:*:*:*)
2478 # Language was explicitly selected; include it.
2479 add_this_lang=yes
2481 *,all,*:*:*:no)
2482 # 'all' was selected, but this is not a default language
2483 # so do not include it.
2484 add_this_lang=no
2486 *,all,*:*:*:*)
2487 # 'all' was selected and this is a default language; include it.
2488 add_this_lang=yes
2491 add_this_lang=no
2493 esac
2495 # Disable languages that need GMP if it isn't available.
2496 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2497 *,${language},*:no:yes)
2498 # Specifically requested language; tell them.
2499 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2501 *:no:yes)
2502 # Silently disable.
2503 add_this_lang=no
2505 esac
2507 # Disable a language that is unsupported by the target.
2508 case " $unsupported_languages " in
2509 *" $language "*)
2510 add_this_lang=no
2512 esac
2514 case $add_this_lang in
2516 # Remove language-dependent dirs.
2517 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2520 new_enable_languages="$new_enable_languages,$language"
2521 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2522 case ${boot_language} in
2523 yes)
2524 # Add to (comma-separated) list of stage 1 languages.
2525 stage1_languages="${stage1_languages},${language}"
2527 esac
2529 esac
2531 esac
2532 done
2534 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2535 if test "x$missing_languages" != x; then
2536 { echo "configure: error:
2537 The following requested languages could not be built: ${missing_languages}
2538 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2541 if test "x$new_enable_languages" != "x$enable_languages"; then
2542 echo The following languages will be built: ${new_enable_languages}
2544 enable_languages="$new_enable_languages"
2545 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2548 # Handle --disable-<component> generically.
2549 for dir in $configdirs $build_configdirs $target_configdirs ; do
2550 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2551 if eval test x\${enable_${dirname}} "=" xno ; then
2552 noconfigdirs="$noconfigdirs $dir"
2554 done
2556 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2557 # $build_configdirs and $target_configdirs.
2558 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2560 notsupp=""
2561 for dir in . $skipdirs $noconfigdirs ; do
2562 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2563 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2564 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2565 if test -r $srcdir/$dirname/configure ; then
2566 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2567 true
2568 else
2569 notsupp="$notsupp $dir"
2573 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2574 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2575 if test -r $srcdir/$dirname/configure ; then
2576 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2577 true
2578 else
2579 notsupp="$notsupp $dir"
2583 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2584 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2585 if test -r $srcdir/$dirname/configure ; then
2586 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2587 true
2588 else
2589 notsupp="$notsupp $dir"
2593 done
2595 # Sometimes the tools are distributed with libiberty but with no other
2596 # libraries. In that case, we don't want to build target-libiberty.
2597 if test -n "${target_configdirs}" ; then
2598 others=
2599 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2600 if test "$i" != "libiberty" ; then
2601 if test -r $srcdir/$i/configure ; then
2602 others=yes;
2603 break;
2606 done
2607 if test -z "${others}" ; then
2608 target_configdirs=
2612 # Quietly strip out all directories which aren't configurable in this tree.
2613 # This relies on all configurable subdirectories being autoconfiscated, which
2614 # is now the case.
2615 build_configdirs_all="$build_configdirs"
2616 build_configdirs=
2617 for i in ${build_configdirs_all} ; do
2618 j=`echo $i | sed -e s/build-//g`
2619 if test -f ${srcdir}/$j/configure ; then
2620 build_configdirs="${build_configdirs} $i"
2622 done
2624 configdirs_all="$configdirs"
2625 configdirs=
2626 for i in ${configdirs_all} ; do
2627 if test -f ${srcdir}/$i/configure ; then
2628 configdirs="${configdirs} $i"
2630 done
2632 target_configdirs_all="$target_configdirs"
2633 target_configdirs=
2634 for i in ${target_configdirs_all} ; do
2635 j=`echo $i | sed -e s/target-//g`
2636 if test -f ${srcdir}/$j/configure ; then
2637 target_configdirs="${target_configdirs} $i"
2639 done
2641 # Produce a warning message for the subdirs we can't configure.
2642 # This isn't especially interesting in the Cygnus tree, but in the individual
2643 # FSF releases, it's important to let people know when their machine isn't
2644 # supported by the one or two programs in a package.
2646 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2647 # If $appdirs is non-empty, at least one of those directories must still
2648 # be configured, or we error out. (E.g., if the gas release supports a
2649 # specified target in some subdirs but not the gas subdir, we shouldn't
2650 # pretend that all is well.)
2651 if test -n "$appdirs" ; then
2652 for dir in $appdirs ; do
2653 if test -r $dir/Makefile.in ; then
2654 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2655 appdirs=""
2656 break
2658 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2659 appdirs=""
2660 break
2663 done
2664 if test -n "$appdirs" ; then
2665 echo "*** This configuration is not supported by this package." 1>&2
2666 exit 1
2669 # Okay, some application will build, or we don't care to check. Still
2670 # notify of subdirs not getting built.
2671 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2672 echo " ${notsupp}" 1>&2
2673 echo " (Any other directories should still work fine.)" 1>&2
2676 case "$host" in
2677 *msdosdjgpp*)
2678 enable_gdbtk=no ;;
2679 esac
2681 copy_dirs=
2683 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2684 if test "${with_build_sysroot+set}" = set; then
2685 withval="$with_build_sysroot"
2686 if test x"$withval" != x ; then
2687 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2689 else
2690 SYSROOT_CFLAGS_FOR_TARGET=
2695 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2696 # the named directory are copied to $(tooldir)/sys-include.
2697 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2698 if test x${is_cross_compiler} = xno ; then
2699 echo 1>&2 '***' --with-headers is only supported when cross compiling
2700 exit 1
2702 if test x"${with_headers}" != xyes ; then
2703 case "${exec_prefixoption}" in
2704 "") x=${prefix} ;;
2705 *) x=${exec_prefix} ;;
2706 esac
2707 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2711 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2712 # the name directories are copied to $(tooldir)/lib. Multiple directories
2713 # are permitted.
2714 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2715 if test x${is_cross_compiler} = xno ; then
2716 echo 1>&2 '***' --with-libs is only supported when cross compiling
2717 exit 1
2719 if test x"${with_libs}" != xyes ; then
2720 # Copy the libraries in reverse order, so that files in the first named
2721 # library override files in subsequent libraries.
2722 case "${exec_prefixoption}" in
2723 "") x=${prefix} ;;
2724 *) x=${exec_prefix} ;;
2725 esac
2726 for l in ${with_libs}; do
2727 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2728 done
2732 # Set with_gnu_as and with_gnu_ld as appropriate.
2734 # This is done by determining whether or not the appropriate directory
2735 # is available, and by checking whether or not specific configurations
2736 # have requested that this magic not happen.
2738 # The command line options always override the explicit settings in
2739 # configure.in, and the settings in configure.in override this magic.
2741 # If the default for a toolchain is to use GNU as and ld, and you don't
2742 # want to do that, then you should use the --without-gnu-as and
2743 # --without-gnu-ld options for the configure script.
2745 if test x${use_gnu_as} = x &&
2746 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2747 with_gnu_as=yes
2748 extra_host_args="$extra_host_args --with-gnu-as"
2751 if test x${use_gnu_ld} = x &&
2752 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2753 with_gnu_ld=yes
2754 extra_host_args="$extra_host_args --with-gnu-ld"
2757 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2758 # can detect this case.
2760 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2761 with_newlib=yes
2762 extra_host_args="$extra_host_args --with-newlib"
2765 # Handle ${copy_dirs}
2766 set fnord ${copy_dirs}
2767 shift
2768 while test $# != 0 ; do
2769 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2771 else
2772 echo Copying $1 to $2
2774 # Use the install script to create the directory and all required
2775 # parent directories.
2776 if test -d $2 ; then
2778 else
2779 echo >config.temp
2780 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2783 # Copy the directory, assuming we have tar.
2784 # FIXME: Should we use B in the second tar? Not all systems support it.
2785 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2787 # It is the responsibility of the user to correctly adjust all
2788 # symlinks. If somebody can figure out how to handle them correctly
2789 # here, feel free to add the code.
2791 echo $1 > $2/COPIED
2793 shift; shift
2794 done
2796 # Determine a target-dependent exec_prefix that the installed
2797 # gcc will search in. Keep this list sorted by triplet, with
2798 # the *-*-osname triplets last.
2799 md_exec_prefix=
2800 case "${target}" in
2801 alpha*-*-*vms*)
2802 md_exec_prefix=/gnu/lib/gcc-lib
2804 i3456786-pc-msdosdjgpp*)
2805 md_exec_prefix=/dev/env/DJDIR/bin
2807 i3456786-*-sco3.2v5*)
2808 if test $with_gnu_as = yes; then
2809 md_exec_prefix=/usr/gnu/bin
2810 else
2811 md_exec_prefix=/usr/ccs/bin/elf
2815 mn10300-*-* | \
2816 powerpc-*-chorusos* | \
2817 powerpc*-*-eabi* | \
2818 powerpc*-*-sysv* | \
2819 powerpc*-*-kaos* | \
2820 s390x-ibm-tpf*)
2821 md_exec_prefix=/usr/ccs/bin
2823 sparc64-*-elf*)
2825 v850*-*-*)
2826 md_exec_prefix=/usr/ccs/bin
2828 xtensa-*-elf*)
2831 *-*-beos* | \
2832 *-*-elf* | \
2833 *-*-hpux* | \
2834 *-*-netware* | \
2835 *-*-nto-qnx* | \
2836 *-*-rtems* | \
2837 *-*-solaris2* | \
2838 *-*-sysv45* | \
2839 *-*-vxworks* | \
2840 *-wrs-windiss)
2841 md_exec_prefix=/usr/ccs/bin
2843 esac
2845 extra_arflags_for_target=
2846 extra_nmflags_for_target=
2847 extra_ranlibflags_for_target=
2848 target_makefile_frag=/dev/null
2849 case "${target}" in
2850 *-*-netware*)
2851 target_makefile_frag="config/mt-netware"
2853 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2854 target_makefile_frag="config/mt-gnu"
2856 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2857 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2858 # commands to handle both 32-bit and 64-bit objects. These flags are
2859 # harmless if we're using GNU nm or ar.
2860 extra_arflags_for_target=" -X32_64"
2861 extra_nmflags_for_target=" -B -X32_64"
2863 *-*-darwin*)
2864 # ranlib from Darwin requires the -c flag to look at common symbols.
2865 extra_ranlibflags_for_target=" -c"
2867 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2868 target_makefile_frag="config/mt-wince"
2870 esac
2872 alphaieee_frag=/dev/null
2873 case $target in
2874 alpha*-*-*)
2875 # This just makes sure to use the -mieee option to build target libs.
2876 # This should probably be set individually by each library.
2877 alphaieee_frag="config/mt-alphaieee"
2879 esac
2881 # If --enable-target-optspace always use -Os instead of -O2 to build
2882 # the target libraries, similarly if it is not specified, use -Os
2883 # on selected platforms.
2884 ospace_frag=/dev/null
2885 case "${enable_target_optspace}:${target}" in
2886 yes:*)
2887 ospace_frag="config/mt-ospace"
2889 :d30v-*)
2890 ospace_frag="config/mt-d30v"
2892 :m32r-* | :d10v-* | :fr30-*)
2893 ospace_frag="config/mt-ospace"
2895 no:* | :*)
2898 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2900 esac
2902 # Default to using --with-stabs for certain targets.
2903 if test x${with_stabs} = x ; then
2904 case "${target}" in
2905 mips*-*-irix[56]*)
2907 mips*-*-* | alpha*-*-osf*)
2908 with_stabs=yes;
2909 extra_host_args="${extra_host_args} --with-stabs"
2911 esac
2914 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2915 # them automatically.
2916 case "${host}" in
2917 hppa*64*-*-hpux11*)
2918 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2920 esac
2922 # Some systems (e.g., one of the i386-aix systems the gas testers are
2923 # using) don't handle "\$" correctly, so don't use it here.
2924 tooldir='${exec_prefix}'/${target_alias}
2925 build_tooldir=${tooldir}
2927 # Create a .gdbinit file which runs the one in srcdir
2928 # and tells GDB to look there for source files.
2930 if test -r ${srcdir}/.gdbinit ; then
2931 case ${srcdir} in
2932 .) ;;
2933 *) cat > ./.gdbinit <<EOF
2934 # ${NO_EDIT}
2935 dir ${srcdir}
2936 dir .
2937 source ${srcdir}/.gdbinit
2940 esac
2943 # Make sure that the compiler is able to generate an executable. If it
2944 # can't, we are probably in trouble. We don't care whether we can run the
2945 # executable--we might be using a cross compiler--we only care whether it
2946 # can be created. At this point the main configure script has set CC.
2947 we_are_ok=no
2948 echo "int main () { return 0; }" > conftest.c
2949 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2950 if test $? = 0 ; then
2951 if test -s conftest || test -s conftest.exe ; then
2952 we_are_ok=yes
2955 case $we_are_ok in
2957 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2958 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2959 rm -f conftest*
2960 exit 1
2962 esac
2963 rm -f conftest*
2965 # The Solaris /usr/ucb/cc compiler does not appear to work.
2966 case "${host}" in
2967 sparc-sun-solaris2*)
2968 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2969 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2970 could_use=
2971 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2972 if test -d /opt/cygnus/bin ; then
2973 if test "$could_use" = "" ; then
2974 could_use="/opt/cygnus/bin"
2975 else
2976 could_use="$could_use or /opt/cygnus/bin"
2979 if test "$could_use" = "" ; then
2980 echo "Warning: compilation may fail because you're using"
2981 echo "/usr/ucb/cc. You should change your PATH or CC "
2982 echo "variable and rerun configure."
2983 else
2984 echo "Warning: compilation may fail because you're using"
2985 echo "/usr/ucb/cc, when you should use the C compiler from"
2986 echo "$could_use. You should change your"
2987 echo "PATH or CC variable and rerun configure."
2991 esac
2993 case "${host}" in
2994 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2995 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
2996 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2997 esac
2999 # Record target_configdirs and the configure arguments for target and
3000 # build configuration in Makefile.
3001 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3002 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3004 # Determine whether gdb needs tk/tcl or not.
3005 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3006 # and in that case we want gdb to be built without tk. Ugh!
3007 # In fact I believe gdb is the *only* package directly dependent on tk,
3008 # so we should be able to put the 'maybe's in unconditionally and
3009 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3010 # 100% sure that that's safe though.
3012 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3013 case "$enable_gdbtk" in
3015 GDB_TK="" ;;
3016 yes)
3017 GDB_TK="${gdb_tk}" ;;
3019 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3020 # distro. Eventually someone will fix this and move Insight, nee
3021 # gdbtk to a separate directory.
3022 if test -d ${srcdir}/gdb/gdbtk ; then
3023 GDB_TK="${gdb_tk}"
3024 else
3025 GDB_TK=""
3028 esac
3029 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3030 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3032 # Strip out unwanted targets.
3034 # While at that, we remove Makefiles if we were started for recursive
3035 # configuration, so that the top-level Makefile reconfigures them,
3036 # like we used to do when configure itself was recursive.
3038 # Loop over modules. $extrasub must be used with care, limiting as
3039 # much as possible the usage of range addresses. That's because autoconf
3040 # splits the sed script to overcome limits in the number of commands,
3041 # and relying on carefully-timed sed passes may turn out to be very hard
3042 # to maintain later. In this particular case, you just have to be careful
3043 # not to nest @if/@endif pairs, because configure will not warn you at all.
3045 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3046 if test "${enable_bootstrap+set}" = set; then
3047 enableval="$enable_bootstrap"
3049 else
3050 enable_bootstrap=default
3054 # Issue errors and warnings for invalid/strange bootstrap combinations.
3055 case "$configdirs" in
3056 *gcc*) have_compiler=yes ;;
3057 *) have_compiler=no ;;
3058 esac
3060 case "$have_compiler:$host:$target:$enable_bootstrap" in
3061 *:*:*:no) ;;
3063 # Default behavior. Enable bootstrap if we have a compiler
3064 # and we are in a native configuration.
3065 yes:$build:$build:default)
3066 enable_bootstrap=yes ;;
3068 *:*:*:default)
3069 enable_bootstrap=no ;;
3071 # We have a compiler and we are in a native configuration, bootstrap is ok
3072 yes:$build:$build:yes)
3075 # Other configurations, but we have a compiler. Assume the user knows
3076 # what he's doing.
3077 yes:*:*:yes)
3078 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3081 # No compiler: if they passed --enable-bootstrap explicitly, fail
3082 no:*:*:yes)
3083 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3085 # Fail if wrong command line
3087 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3089 esac
3091 # Adjust the toplevel makefile according to whether bootstrap was selected.
3092 case "$enable_bootstrap" in
3093 yes)
3094 bootstrap_suffix=bootstrap ;;
3096 bootstrap_suffix=no-bootstrap ;;
3097 esac
3099 for module in ${build_configdirs} ; do
3100 if test -z "${no_recursion}" \
3101 && test -f ${build_subdir}/${module}/Makefile; then
3102 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3103 rm -f ${build_subdir}/${module}/Makefile
3105 extrasub="$extrasub
3106 /^@if build-$module\$/d
3107 /^@endif build-$module\$/d
3108 /^@if build-$module-$bootstrap_suffix\$/d
3109 /^@endif build-$module-$bootstrap_suffix\$/d"
3110 done
3111 for module in ${configdirs} ; do
3112 if test -z "${no_recursion}"; then
3113 for file in stage*-${module}/Makefile ${module}/Makefile; do
3114 if test -f ${file}; then
3115 echo 1>&2 "*** removing ${file} to force reconfigure"
3116 rm -f ${file}
3118 done
3120 extrasub="$extrasub
3121 /^@if $module\$/d
3122 /^@endif $module\$/d
3123 /^@if $module-$bootstrap_suffix\$/d
3124 /^@endif $module-$bootstrap_suffix\$/d"
3125 done
3126 for module in ${target_configdirs} ; do
3127 if test -z "${no_recursion}" \
3128 && test -f ${target_subdir}/${module}/Makefile; then
3129 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3130 rm -f ${target_subdir}/${module}/Makefile
3132 extrasub="$extrasub
3133 /^@if target-$module\$/d
3134 /^@endif target-$module\$/d
3135 /^@if target-$module-$bootstrap_suffix\$/d
3136 /^@endif target-$module-$bootstrap_suffix\$/d"
3137 done
3139 extrasub="$extrasub
3140 /^@if /,/^@endif /d"
3142 # Create the serialization dependencies. This uses a temporary file.
3144 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3145 if test "${enable_serial_configure+set}" = set; then
3146 enableval="$enable_serial_configure"
3151 case ${enable_serial_configure} in
3152 yes)
3153 enable_serial_build_configure=yes
3154 enable_serial_host_configure=yes
3155 enable_serial_target_configure=yes
3157 esac
3159 # These force 'configure's to be done one at a time, to avoid problems
3160 # with contention over a shared config.cache.
3161 rm -f serdep.tmp
3162 echo '# serdep.tmp' > serdep.tmp
3163 olditem=
3164 test "x${enable_serial_build_configure}" = xyes &&
3165 for item in ${build_configdirs} ; do
3166 case ${olditem} in
3167 "") ;;
3168 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3169 esac
3170 olditem=${item}
3171 done
3172 olditem=
3173 test "x${enable_serial_host_configure}" = xyes &&
3174 for item in ${configdirs} ; do
3175 case ${olditem} in
3176 "") ;;
3177 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3178 esac
3179 olditem=${item}
3180 done
3181 olditem=
3182 test "x${enable_serial_target_configure}" = xyes &&
3183 for item in ${target_configdirs} ; do
3184 case ${olditem} in
3185 "") ;;
3186 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3187 esac
3188 olditem=${item}
3189 done
3190 serialization_dependencies=serdep.tmp
3193 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3194 # target and nonopt. These are the ones we might not want to pass
3195 # down to subconfigures. Also strip program-prefix, program-suffix,
3196 # and program-transform-name, so that we can pass down a consistent
3197 # program-transform-name.
3198 baseargs=
3199 eval "set -- $ac_configure_args"
3200 for ac_arg; do
3201 case "$ac_arg" in
3202 --no* | \
3203 --c* | \
3204 --sr* | \
3205 --ho* | \
3206 --bu* | \
3207 --t* | \
3208 --program-* | \
3209 -cache_file* | \
3210 -srcdir* | \
3211 -host* | \
3212 -build* | \
3213 -target* | \
3214 -program-prefix* | \
3215 -program-suffix* | \
3216 -program-transform-name* )
3217 continue
3219 *" "*|*" "*|*\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?*)
3220 # Quote the argument, using the same trick that autoconf itself
3221 # uses. if the argument is of the form -foo=baz, quote the baz part only
3222 baseargs="$baseargs `echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"`" ;;
3224 # Add the quoted argument to the list.
3225 baseargs="$baseargs $ac_arg"
3227 esac
3228 done
3229 # Remove the initial space we just introduced and, as these will be
3230 # expanded by make, quote '$'.
3231 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
3233 # Add in --program-transform-name, after --program-prefix and
3234 # --program-suffix have been applied to it. Autoconf has already
3235 # doubled dollar signs and backslashes in program_transform_name; we want
3236 # the backslashes un-doubled, and then the entire thing wrapped in single
3237 # quotes, because this will be expanded first by make and then by the shell.
3238 # Also, because we want to override the logic in subdir configure scripts to
3239 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3240 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3241 ${program_transform_name}
3242 EOF_SED
3243 gcc_transform_name=`cat conftestsed.out`
3244 rm -f conftestsed.out
3245 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3247 # For the build-side libraries, we just need to pretend we're native,
3248 # and not use the same cache file. Multilibs are neither needed nor
3249 # desired.
3250 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3252 # For host modules, accept cache file option, or specification as blank.
3253 case "${cache_file}" in
3254 "") # empty
3255 cache_file_option="" ;;
3256 /* | [A-Za-z]:[\\/]* ) # absolute path
3257 cache_file_option="--cache-file=${cache_file}" ;;
3258 *) # relative path
3259 cache_file_option="--cache-file=../${cache_file}" ;;
3260 esac
3262 # Host dirs don't like to share a cache file either, horribly enough.
3263 # This seems to be due to autoconf 2.5x stupidity.
3264 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3266 target_configargs=${baseargs}
3268 # Passing a --with-cross-host argument lets the target libraries know
3269 # whether they are being built with a cross-compiler or being built
3270 # native. However, it would be better to use other mechanisms to make the
3271 # sorts of decisions they want to make on this basis. Please consider
3272 # this option to be deprecated. FIXME.
3273 if test x${is_cross_compiler} = xyes ; then
3274 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3277 # Default to --enable-multilib.
3278 if test x${enable_multilib} = x ; then
3279 target_configargs="--enable-multilib ${target_configargs}"
3282 # Pass --with-newlib if appropriate. Note that target_configdirs has
3283 # changed from the earlier setting of with_newlib.
3284 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3285 target_configargs="--with-newlib ${target_configargs}"
3288 # Different target subdirs use different values of certain variables
3289 # (notably CXX). Worse, multilibs use *lots* of different values.
3290 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3291 # it doesn't automatically accept command-line overrides of them.
3292 # This means it's not safe for target subdirs to share a cache file,
3293 # which is disgusting, but there you have it. Hopefully this can be
3294 # fixed in future. It's still worthwhile to use a cache file for each
3295 # directory. I think.
3297 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3298 # We need to pass --target, as newer autoconf's requires consistency
3299 # for target_alias and gcc doesn't manage it consistently.
3300 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3302 FLAGS_FOR_TARGET=
3303 case " $target_configdirs " in
3304 *" newlib "*)
3305 case " $target_configargs " in
3306 *" --with-newlib "*)
3307 case "$target" in
3308 *-cygwin*)
3309 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' ;;
3310 esac
3312 # If we're not building GCC, don't discard standard headers.
3313 if test -d ${srcdir}/gcc; then
3314 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3316 if test "${build}" != "${host}"; then
3317 # On Canadian crosses, CC_FOR_TARGET will have already been set
3318 # by `configure', so we won't have an opportunity to add -Bgcc/
3319 # to it. This is right: we don't want to search that directory
3320 # for binaries, but we want the header files in there, so add
3321 # them explicitly.
3322 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3324 # Someone might think of using the pre-installed headers on
3325 # Canadian crosses, in case the installed compiler is not fully
3326 # compatible with the compiler being built. In this case, it
3327 # would be better to flag an error than risking having
3328 # incompatible object files being constructed. We can't
3329 # guarantee that an error will be flagged, but let's hope the
3330 # compiler will do it, when presented with incompatible header
3331 # files.
3335 case "${target}-${is_cross_compiler}" in
3336 i[3456789]86-*-linux*-no)
3337 # Here host == target, so we don't need to build gcc,
3338 # so we don't want to discard standard headers.
3339 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3342 # If we're building newlib, use its generic headers last, but search
3343 # for any libc-related directories first (so make it the last -B
3344 # switch).
3345 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3347 esac
3349 esac
3351 esac
3353 # Allow the user to override the flags for
3354 # our build compiler if desired.
3355 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3357 # On Canadian crosses, we'll be searching the right directories for
3358 # the previously-installed cross compiler, so don't bother to add
3359 # flags for directories within the install tree of the compiler
3360 # being built; programs in there won't even run.
3361 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3362 # Search for pre-installed headers if nothing else fits.
3363 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3366 if test "x${use_gnu_ld}" = x &&
3367 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3368 # Arrange for us to find uninstalled linker scripts.
3369 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3372 # Makefile fragments.
3373 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3375 eval fragval=\$$frag
3376 if test $fragval != /dev/null; then
3377 eval $frag=${srcdir}/$fragval
3379 done
3385 # Miscellanea: directories, flags, etc.
3393 # Build module lists & subconfigure args.
3397 # Host module lists & subconfigure args.
3401 # Target module lists & subconfigure args.
3405 # Build tools.
3409 # Generate default definitions for YACC, M4, LEX and other programs that run
3410 # on the build machine. These are used if the Makefile can't locate these
3411 # programs in objdir.
3412 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3414 for ac_prog in 'bison -y' byacc yacc
3416 # Extract the first word of "$ac_prog", so it can be a program name with args.
3417 set dummy $ac_prog; ac_word=$2
3418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3419 echo "configure:3420: checking for $ac_word" >&5
3420 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3421 echo $ac_n "(cached) $ac_c" 1>&6
3422 else
3423 if test -n "$YACC"; then
3424 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3425 else
3426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3427 ac_dummy="$PATH"
3428 for ac_dir in $ac_dummy; do
3429 test -z "$ac_dir" && ac_dir=.
3430 if test -f $ac_dir/$ac_word; then
3431 ac_cv_prog_YACC="$ac_prog"
3432 break
3434 done
3435 IFS="$ac_save_ifs"
3438 YACC="$ac_cv_prog_YACC"
3439 if test -n "$YACC"; then
3440 echo "$ac_t""$YACC" 1>&6
3441 else
3442 echo "$ac_t""no" 1>&6
3445 test -n "$YACC" && break
3446 done
3447 test -n "$YACC" || YACC="$MISSING bison -y"
3449 case " $build_configdirs " in
3450 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3451 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3452 esac
3454 for ac_prog in bison
3456 # Extract the first word of "$ac_prog", so it can be a program name with args.
3457 set dummy $ac_prog; ac_word=$2
3458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3459 echo "configure:3460: checking for $ac_word" >&5
3460 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3462 else
3463 if test -n "$BISON"; then
3464 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3465 else
3466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3467 ac_dummy="$PATH"
3468 for ac_dir in $ac_dummy; do
3469 test -z "$ac_dir" && ac_dir=.
3470 if test -f $ac_dir/$ac_word; then
3471 ac_cv_prog_BISON="$ac_prog"
3472 break
3474 done
3475 IFS="$ac_save_ifs"
3478 BISON="$ac_cv_prog_BISON"
3479 if test -n "$BISON"; then
3480 echo "$ac_t""$BISON" 1>&6
3481 else
3482 echo "$ac_t""no" 1>&6
3485 test -n "$BISON" && break
3486 done
3487 test -n "$BISON" || BISON="$MISSING bison"
3489 case " $build_configdirs " in
3490 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3491 esac
3493 for ac_prog in gm4 gnum4 m4
3495 # Extract the first word of "$ac_prog", so it can be a program name with args.
3496 set dummy $ac_prog; ac_word=$2
3497 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3498 echo "configure:3499: checking for $ac_word" >&5
3499 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3500 echo $ac_n "(cached) $ac_c" 1>&6
3501 else
3502 if test -n "$M4"; then
3503 ac_cv_prog_M4="$M4" # Let the user override the test.
3504 else
3505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3506 ac_dummy="$PATH"
3507 for ac_dir in $ac_dummy; do
3508 test -z "$ac_dir" && ac_dir=.
3509 if test -f $ac_dir/$ac_word; then
3510 ac_cv_prog_M4="$ac_prog"
3511 break
3513 done
3514 IFS="$ac_save_ifs"
3517 M4="$ac_cv_prog_M4"
3518 if test -n "$M4"; then
3519 echo "$ac_t""$M4" 1>&6
3520 else
3521 echo "$ac_t""no" 1>&6
3524 test -n "$M4" && break
3525 done
3526 test -n "$M4" || M4="$MISSING m4"
3528 case " $build_configdirs " in
3529 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3530 esac
3532 for ac_prog in flex lex
3534 # Extract the first word of "$ac_prog", so it can be a program name with args.
3535 set dummy $ac_prog; ac_word=$2
3536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3537 echo "configure:3538: checking for $ac_word" >&5
3538 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3540 else
3541 if test -n "$LEX"; then
3542 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3543 else
3544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3545 ac_dummy="$PATH"
3546 for ac_dir in $ac_dummy; do
3547 test -z "$ac_dir" && ac_dir=.
3548 if test -f $ac_dir/$ac_word; then
3549 ac_cv_prog_LEX="$ac_prog"
3550 break
3552 done
3553 IFS="$ac_save_ifs"
3556 LEX="$ac_cv_prog_LEX"
3557 if test -n "$LEX"; then
3558 echo "$ac_t""$LEX" 1>&6
3559 else
3560 echo "$ac_t""no" 1>&6
3563 test -n "$LEX" && break
3564 done
3565 test -n "$LEX" || LEX="$MISSING flex"
3567 case " $build_configdirs " in
3568 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3569 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3570 esac
3572 for ac_prog in flex
3574 # Extract the first word of "$ac_prog", so it can be a program name with args.
3575 set dummy $ac_prog; ac_word=$2
3576 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3577 echo "configure:3578: checking for $ac_word" >&5
3578 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3579 echo $ac_n "(cached) $ac_c" 1>&6
3580 else
3581 if test -n "$FLEX"; then
3582 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3583 else
3584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3585 ac_dummy="$PATH"
3586 for ac_dir in $ac_dummy; do
3587 test -z "$ac_dir" && ac_dir=.
3588 if test -f $ac_dir/$ac_word; then
3589 ac_cv_prog_FLEX="$ac_prog"
3590 break
3592 done
3593 IFS="$ac_save_ifs"
3596 FLEX="$ac_cv_prog_FLEX"
3597 if test -n "$FLEX"; then
3598 echo "$ac_t""$FLEX" 1>&6
3599 else
3600 echo "$ac_t""no" 1>&6
3603 test -n "$FLEX" && break
3604 done
3605 test -n "$FLEX" || FLEX="$MISSING flex"
3607 case " $build_configdirs " in
3608 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3609 esac
3611 for ac_prog in makeinfo
3613 # Extract the first word of "$ac_prog", so it can be a program name with args.
3614 set dummy $ac_prog; ac_word=$2
3615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3616 echo "configure:3617: checking for $ac_word" >&5
3617 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3618 echo $ac_n "(cached) $ac_c" 1>&6
3619 else
3620 if test -n "$MAKEINFO"; then
3621 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3622 else
3623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3624 ac_dummy="$PATH"
3625 for ac_dir in $ac_dummy; do
3626 test -z "$ac_dir" && ac_dir=.
3627 if test -f $ac_dir/$ac_word; then
3628 ac_cv_prog_MAKEINFO="$ac_prog"
3629 break
3631 done
3632 IFS="$ac_save_ifs"
3635 MAKEINFO="$ac_cv_prog_MAKEINFO"
3636 if test -n "$MAKEINFO"; then
3637 echo "$ac_t""$MAKEINFO" 1>&6
3638 else
3639 echo "$ac_t""no" 1>&6
3642 test -n "$MAKEINFO" && break
3643 done
3644 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3646 case " $build_configdirs " in
3647 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3650 # For an installed makeinfo, we require it to be from texinfo 4.4 or
3651 # higher, else we use the "missing" dummy.
3652 if ${MAKEINFO} --version \
3653 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
3655 else
3656 MAKEINFO="$MISSING makeinfo"
3660 esac
3662 # FIXME: expect and dejagnu may become build tools?
3664 for ac_prog in expect
3666 # Extract the first word of "$ac_prog", so it can be a program name with args.
3667 set dummy $ac_prog; ac_word=$2
3668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3669 echo "configure:3670: checking for $ac_word" >&5
3670 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3671 echo $ac_n "(cached) $ac_c" 1>&6
3672 else
3673 if test -n "$EXPECT"; then
3674 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3675 else
3676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3677 ac_dummy="$PATH"
3678 for ac_dir in $ac_dummy; do
3679 test -z "$ac_dir" && ac_dir=.
3680 if test -f $ac_dir/$ac_word; then
3681 ac_cv_prog_EXPECT="$ac_prog"
3682 break
3684 done
3685 IFS="$ac_save_ifs"
3688 EXPECT="$ac_cv_prog_EXPECT"
3689 if test -n "$EXPECT"; then
3690 echo "$ac_t""$EXPECT" 1>&6
3691 else
3692 echo "$ac_t""no" 1>&6
3695 test -n "$EXPECT" && break
3696 done
3697 test -n "$EXPECT" || EXPECT="expect"
3699 case " $configdirs " in
3700 *" expect "*)
3701 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3703 esac
3705 for ac_prog in runtest
3707 # Extract the first word of "$ac_prog", so it can be a program name with args.
3708 set dummy $ac_prog; ac_word=$2
3709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3710 echo "configure:3711: checking for $ac_word" >&5
3711 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3712 echo $ac_n "(cached) $ac_c" 1>&6
3713 else
3714 if test -n "$RUNTEST"; then
3715 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3716 else
3717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3718 ac_dummy="$PATH"
3719 for ac_dir in $ac_dummy; do
3720 test -z "$ac_dir" && ac_dir=.
3721 if test -f $ac_dir/$ac_word; then
3722 ac_cv_prog_RUNTEST="$ac_prog"
3723 break
3725 done
3726 IFS="$ac_save_ifs"
3729 RUNTEST="$ac_cv_prog_RUNTEST"
3730 if test -n "$RUNTEST"; then
3731 echo "$ac_t""$RUNTEST" 1>&6
3732 else
3733 echo "$ac_t""no" 1>&6
3736 test -n "$RUNTEST" && break
3737 done
3738 test -n "$RUNTEST" || RUNTEST="runtest"
3740 case " $configdirs " in
3741 *" dejagnu "*)
3742 test $host = $build && RUNTEST='$$r/$(HOST_SUBDIR)/dejagnu/runtest'
3744 esac
3747 # Host tools.
3748 ncn_tool_prefix=
3749 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3750 ncn_target_tool_prefix=
3751 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3753 for ncn_progname in ar; do
3754 if test -n "$ncn_tool_prefix"; then
3755 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3756 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3757 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3758 echo "configure:3759: checking for $ac_word" >&5
3759 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3761 else
3762 if test -n "$AR"; then
3763 ac_cv_prog_AR="$AR" # Let the user override the test.
3764 else
3765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3766 ac_dummy="$PATH"
3767 for ac_dir in $ac_dummy; do
3768 test -z "$ac_dir" && ac_dir=.
3769 if test -f $ac_dir/$ac_word; then
3770 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3771 break
3773 done
3774 IFS="$ac_save_ifs"
3777 AR="$ac_cv_prog_AR"
3778 if test -n "$AR"; then
3779 echo "$ac_t""$AR" 1>&6
3780 else
3781 echo "$ac_t""no" 1>&6
3785 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3787 set dummy ${ncn_progname}; ac_word=$2
3788 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3789 echo "configure:3790: checking for $ac_word" >&5
3790 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3792 else
3793 if test -n "$AR"; then
3794 ac_cv_prog_AR="$AR" # Let the user override the test.
3795 else
3796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3797 ac_dummy="$PATH"
3798 for ac_dir in $ac_dummy; do
3799 test -z "$ac_dir" && ac_dir=.
3800 if test -f $ac_dir/$ac_word; then
3801 ac_cv_prog_AR="${ncn_progname}"
3802 break
3804 done
3805 IFS="$ac_save_ifs"
3808 AR="$ac_cv_prog_AR"
3809 if test -n "$AR"; then
3810 echo "$ac_t""$AR" 1>&6
3811 else
3812 echo "$ac_t""no" 1>&6
3816 test -n "$ac_cv_prog_AR" && break
3817 done
3819 if test -z "$ac_cv_prog_AR" ; then
3820 set dummy ar
3821 if test $build = $host ; then
3822 AR="$2"
3823 else
3824 AR="${ncn_tool_prefix}$2"
3828 for ncn_progname in as; do
3829 if test -n "$ncn_tool_prefix"; then
3830 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3831 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3833 echo "configure:3834: checking for $ac_word" >&5
3834 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3836 else
3837 if test -n "$AS"; then
3838 ac_cv_prog_AS="$AS" # Let the user override the test.
3839 else
3840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3841 ac_dummy="$PATH"
3842 for ac_dir in $ac_dummy; do
3843 test -z "$ac_dir" && ac_dir=.
3844 if test -f $ac_dir/$ac_word; then
3845 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3846 break
3848 done
3849 IFS="$ac_save_ifs"
3852 AS="$ac_cv_prog_AS"
3853 if test -n "$AS"; then
3854 echo "$ac_t""$AS" 1>&6
3855 else
3856 echo "$ac_t""no" 1>&6
3860 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3862 set dummy ${ncn_progname}; ac_word=$2
3863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3864 echo "configure:3865: checking for $ac_word" >&5
3865 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3867 else
3868 if test -n "$AS"; then
3869 ac_cv_prog_AS="$AS" # Let the user override the test.
3870 else
3871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3872 ac_dummy="$PATH"
3873 for ac_dir in $ac_dummy; do
3874 test -z "$ac_dir" && ac_dir=.
3875 if test -f $ac_dir/$ac_word; then
3876 ac_cv_prog_AS="${ncn_progname}"
3877 break
3879 done
3880 IFS="$ac_save_ifs"
3883 AS="$ac_cv_prog_AS"
3884 if test -n "$AS"; then
3885 echo "$ac_t""$AS" 1>&6
3886 else
3887 echo "$ac_t""no" 1>&6
3891 test -n "$ac_cv_prog_AS" && break
3892 done
3894 if test -z "$ac_cv_prog_AS" ; then
3895 set dummy as
3896 if test $build = $host ; then
3897 AS="$2"
3898 else
3899 AS="${ncn_tool_prefix}$2"
3903 for ncn_progname in dlltool; do
3904 if test -n "$ncn_tool_prefix"; then
3905 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3906 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3908 echo "configure:3909: checking for $ac_word" >&5
3909 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3911 else
3912 if test -n "$DLLTOOL"; then
3913 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3914 else
3915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3916 ac_dummy="$PATH"
3917 for ac_dir in $ac_dummy; do
3918 test -z "$ac_dir" && ac_dir=.
3919 if test -f $ac_dir/$ac_word; then
3920 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3921 break
3923 done
3924 IFS="$ac_save_ifs"
3927 DLLTOOL="$ac_cv_prog_DLLTOOL"
3928 if test -n "$DLLTOOL"; then
3929 echo "$ac_t""$DLLTOOL" 1>&6
3930 else
3931 echo "$ac_t""no" 1>&6
3935 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3937 set dummy ${ncn_progname}; ac_word=$2
3938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3939 echo "configure:3940: checking for $ac_word" >&5
3940 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3942 else
3943 if test -n "$DLLTOOL"; then
3944 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3945 else
3946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3947 ac_dummy="$PATH"
3948 for ac_dir in $ac_dummy; do
3949 test -z "$ac_dir" && ac_dir=.
3950 if test -f $ac_dir/$ac_word; then
3951 ac_cv_prog_DLLTOOL="${ncn_progname}"
3952 break
3954 done
3955 IFS="$ac_save_ifs"
3958 DLLTOOL="$ac_cv_prog_DLLTOOL"
3959 if test -n "$DLLTOOL"; then
3960 echo "$ac_t""$DLLTOOL" 1>&6
3961 else
3962 echo "$ac_t""no" 1>&6
3966 test -n "$ac_cv_prog_DLLTOOL" && break
3967 done
3969 if test -z "$ac_cv_prog_DLLTOOL" ; then
3970 set dummy dlltool
3971 if test $build = $host ; then
3972 DLLTOOL="$2"
3973 else
3974 DLLTOOL="${ncn_tool_prefix}$2"
3978 for ncn_progname in ld; do
3979 if test -n "$ncn_tool_prefix"; then
3980 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3981 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3983 echo "configure:3984: checking for $ac_word" >&5
3984 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3985 echo $ac_n "(cached) $ac_c" 1>&6
3986 else
3987 if test -n "$LD"; then
3988 ac_cv_prog_LD="$LD" # Let the user override the test.
3989 else
3990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3991 ac_dummy="$PATH"
3992 for ac_dir in $ac_dummy; do
3993 test -z "$ac_dir" && ac_dir=.
3994 if test -f $ac_dir/$ac_word; then
3995 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3996 break
3998 done
3999 IFS="$ac_save_ifs"
4002 LD="$ac_cv_prog_LD"
4003 if test -n "$LD"; then
4004 echo "$ac_t""$LD" 1>&6
4005 else
4006 echo "$ac_t""no" 1>&6
4010 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4012 set dummy ${ncn_progname}; ac_word=$2
4013 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4014 echo "configure:4015: checking for $ac_word" >&5
4015 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4016 echo $ac_n "(cached) $ac_c" 1>&6
4017 else
4018 if test -n "$LD"; then
4019 ac_cv_prog_LD="$LD" # Let the user override the test.
4020 else
4021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4022 ac_dummy="$PATH"
4023 for ac_dir in $ac_dummy; do
4024 test -z "$ac_dir" && ac_dir=.
4025 if test -f $ac_dir/$ac_word; then
4026 ac_cv_prog_LD="${ncn_progname}"
4027 break
4029 done
4030 IFS="$ac_save_ifs"
4033 LD="$ac_cv_prog_LD"
4034 if test -n "$LD"; then
4035 echo "$ac_t""$LD" 1>&6
4036 else
4037 echo "$ac_t""no" 1>&6
4041 test -n "$ac_cv_prog_LD" && break
4042 done
4044 if test -z "$ac_cv_prog_LD" ; then
4045 set dummy ld
4046 if test $build = $host ; then
4047 LD="$2"
4048 else
4049 LD="${ncn_tool_prefix}$2"
4053 for ncn_progname in lipo; do
4054 if test -n "$ncn_tool_prefix"; then
4055 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4056 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4058 echo "configure:4059: checking for $ac_word" >&5
4059 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4060 echo $ac_n "(cached) $ac_c" 1>&6
4061 else
4062 if test -n "$LIPO"; then
4063 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4064 else
4065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4066 ac_dummy="$PATH"
4067 for ac_dir in $ac_dummy; do
4068 test -z "$ac_dir" && ac_dir=.
4069 if test -f $ac_dir/$ac_word; then
4070 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4071 break
4073 done
4074 IFS="$ac_save_ifs"
4077 LIPO="$ac_cv_prog_LIPO"
4078 if test -n "$LIPO"; then
4079 echo "$ac_t""$LIPO" 1>&6
4080 else
4081 echo "$ac_t""no" 1>&6
4085 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4087 set dummy ${ncn_progname}; ac_word=$2
4088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4089 echo "configure:4090: checking for $ac_word" >&5
4090 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4091 echo $ac_n "(cached) $ac_c" 1>&6
4092 else
4093 if test -n "$LIPO"; then
4094 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4095 else
4096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4097 ac_dummy="$PATH"
4098 for ac_dir in $ac_dummy; do
4099 test -z "$ac_dir" && ac_dir=.
4100 if test -f $ac_dir/$ac_word; then
4101 ac_cv_prog_LIPO="${ncn_progname}"
4102 break
4104 done
4105 IFS="$ac_save_ifs"
4108 LIPO="$ac_cv_prog_LIPO"
4109 if test -n "$LIPO"; then
4110 echo "$ac_t""$LIPO" 1>&6
4111 else
4112 echo "$ac_t""no" 1>&6
4116 test -n "$ac_cv_prog_LIPO" && break
4117 done
4119 if test -z "$ac_cv_prog_LIPO" ; then
4120 set dummy lipo
4121 if test $build = $host ; then
4122 LIPO="$2"
4123 else
4124 LIPO="${ncn_tool_prefix}$2"
4128 for ncn_progname in nm; do
4129 if test -n "$ncn_tool_prefix"; then
4130 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4131 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4133 echo "configure:4134: checking for $ac_word" >&5
4134 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4136 else
4137 if test -n "$NM"; then
4138 ac_cv_prog_NM="$NM" # Let the user override the test.
4139 else
4140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4141 ac_dummy="$PATH"
4142 for ac_dir in $ac_dummy; do
4143 test -z "$ac_dir" && ac_dir=.
4144 if test -f $ac_dir/$ac_word; then
4145 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4146 break
4148 done
4149 IFS="$ac_save_ifs"
4152 NM="$ac_cv_prog_NM"
4153 if test -n "$NM"; then
4154 echo "$ac_t""$NM" 1>&6
4155 else
4156 echo "$ac_t""no" 1>&6
4160 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4162 set dummy ${ncn_progname}; ac_word=$2
4163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4164 echo "configure:4165: checking for $ac_word" >&5
4165 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4167 else
4168 if test -n "$NM"; then
4169 ac_cv_prog_NM="$NM" # Let the user override the test.
4170 else
4171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4172 ac_dummy="$PATH"
4173 for ac_dir in $ac_dummy; do
4174 test -z "$ac_dir" && ac_dir=.
4175 if test -f $ac_dir/$ac_word; then
4176 ac_cv_prog_NM="${ncn_progname}"
4177 break
4179 done
4180 IFS="$ac_save_ifs"
4183 NM="$ac_cv_prog_NM"
4184 if test -n "$NM"; then
4185 echo "$ac_t""$NM" 1>&6
4186 else
4187 echo "$ac_t""no" 1>&6
4191 test -n "$ac_cv_prog_NM" && break
4192 done
4194 if test -z "$ac_cv_prog_NM" ; then
4195 set dummy nm
4196 if test $build = $host ; then
4197 NM="$2"
4198 else
4199 NM="${ncn_tool_prefix}$2"
4203 for ncn_progname in ranlib; do
4204 if test -n "$ncn_tool_prefix"; then
4205 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4206 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4208 echo "configure:4209: checking for $ac_word" >&5
4209 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4211 else
4212 if test -n "$RANLIB"; then
4213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4214 else
4215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4216 ac_dummy="$PATH"
4217 for ac_dir in $ac_dummy; do
4218 test -z "$ac_dir" && ac_dir=.
4219 if test -f $ac_dir/$ac_word; then
4220 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4221 break
4223 done
4224 IFS="$ac_save_ifs"
4227 RANLIB="$ac_cv_prog_RANLIB"
4228 if test -n "$RANLIB"; then
4229 echo "$ac_t""$RANLIB" 1>&6
4230 else
4231 echo "$ac_t""no" 1>&6
4235 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4237 set dummy ${ncn_progname}; ac_word=$2
4238 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4239 echo "configure:4240: checking for $ac_word" >&5
4240 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4242 else
4243 if test -n "$RANLIB"; then
4244 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4245 else
4246 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4247 ac_dummy="$PATH"
4248 for ac_dir in $ac_dummy; do
4249 test -z "$ac_dir" && ac_dir=.
4250 if test -f $ac_dir/$ac_word; then
4251 ac_cv_prog_RANLIB="${ncn_progname}"
4252 break
4254 done
4255 IFS="$ac_save_ifs"
4258 RANLIB="$ac_cv_prog_RANLIB"
4259 if test -n "$RANLIB"; then
4260 echo "$ac_t""$RANLIB" 1>&6
4261 else
4262 echo "$ac_t""no" 1>&6
4266 test -n "$ac_cv_prog_RANLIB" && break
4267 done
4269 if test -z "$ac_cv_prog_RANLIB" ; then
4270 RANLIB=":"
4273 for ncn_progname in strip; do
4274 if test -n "$ncn_tool_prefix"; then
4275 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4276 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4278 echo "configure:4279: checking for $ac_word" >&5
4279 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4280 echo $ac_n "(cached) $ac_c" 1>&6
4281 else
4282 if test -n "$STRIP"; then
4283 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4284 else
4285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4286 ac_dummy="$PATH"
4287 for ac_dir in $ac_dummy; do
4288 test -z "$ac_dir" && ac_dir=.
4289 if test -f $ac_dir/$ac_word; then
4290 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4291 break
4293 done
4294 IFS="$ac_save_ifs"
4297 STRIP="$ac_cv_prog_STRIP"
4298 if test -n "$STRIP"; then
4299 echo "$ac_t""$STRIP" 1>&6
4300 else
4301 echo "$ac_t""no" 1>&6
4305 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4307 set dummy ${ncn_progname}; ac_word=$2
4308 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4309 echo "configure:4310: checking for $ac_word" >&5
4310 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4311 echo $ac_n "(cached) $ac_c" 1>&6
4312 else
4313 if test -n "$STRIP"; then
4314 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4315 else
4316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4317 ac_dummy="$PATH"
4318 for ac_dir in $ac_dummy; do
4319 test -z "$ac_dir" && ac_dir=.
4320 if test -f $ac_dir/$ac_word; then
4321 ac_cv_prog_STRIP="${ncn_progname}"
4322 break
4324 done
4325 IFS="$ac_save_ifs"
4328 STRIP="$ac_cv_prog_STRIP"
4329 if test -n "$STRIP"; then
4330 echo "$ac_t""$STRIP" 1>&6
4331 else
4332 echo "$ac_t""no" 1>&6
4336 test -n "$ac_cv_prog_STRIP" && break
4337 done
4339 if test -z "$ac_cv_prog_STRIP" ; then
4340 STRIP=":"
4343 for ncn_progname in windres; do
4344 if test -n "$ncn_tool_prefix"; then
4345 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4346 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4348 echo "configure:4349: checking for $ac_word" >&5
4349 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6
4351 else
4352 if test -n "$WINDRES"; then
4353 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4354 else
4355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4356 ac_dummy="$PATH"
4357 for ac_dir in $ac_dummy; do
4358 test -z "$ac_dir" && ac_dir=.
4359 if test -f $ac_dir/$ac_word; then
4360 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4361 break
4363 done
4364 IFS="$ac_save_ifs"
4367 WINDRES="$ac_cv_prog_WINDRES"
4368 if test -n "$WINDRES"; then
4369 echo "$ac_t""$WINDRES" 1>&6
4370 else
4371 echo "$ac_t""no" 1>&6
4375 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4376 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4377 set dummy ${ncn_progname}; ac_word=$2
4378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4379 echo "configure:4380: checking for $ac_word" >&5
4380 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4381 echo $ac_n "(cached) $ac_c" 1>&6
4382 else
4383 if test -n "$WINDRES"; then
4384 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4385 else
4386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4387 ac_dummy="$PATH"
4388 for ac_dir in $ac_dummy; do
4389 test -z "$ac_dir" && ac_dir=.
4390 if test -f $ac_dir/$ac_word; then
4391 ac_cv_prog_WINDRES="${ncn_progname}"
4392 break
4394 done
4395 IFS="$ac_save_ifs"
4398 WINDRES="$ac_cv_prog_WINDRES"
4399 if test -n "$WINDRES"; then
4400 echo "$ac_t""$WINDRES" 1>&6
4401 else
4402 echo "$ac_t""no" 1>&6
4406 test -n "$ac_cv_prog_WINDRES" && break
4407 done
4409 if test -z "$ac_cv_prog_WINDRES" ; then
4410 set dummy windres
4411 if test $build = $host ; then
4412 WINDRES="$2"
4413 else
4414 WINDRES="${ncn_tool_prefix}$2"
4418 for ncn_progname in objcopy; do
4419 if test -n "$ncn_tool_prefix"; then
4420 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4421 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4422 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4423 echo "configure:4424: checking for $ac_word" >&5
4424 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4425 echo $ac_n "(cached) $ac_c" 1>&6
4426 else
4427 if test -n "$OBJCOPY"; then
4428 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4429 else
4430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4431 ac_dummy="$PATH"
4432 for ac_dir in $ac_dummy; do
4433 test -z "$ac_dir" && ac_dir=.
4434 if test -f $ac_dir/$ac_word; then
4435 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4436 break
4438 done
4439 IFS="$ac_save_ifs"
4442 OBJCOPY="$ac_cv_prog_OBJCOPY"
4443 if test -n "$OBJCOPY"; then
4444 echo "$ac_t""$OBJCOPY" 1>&6
4445 else
4446 echo "$ac_t""no" 1>&6
4450 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4452 set dummy ${ncn_progname}; ac_word=$2
4453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4454 echo "configure:4455: checking for $ac_word" >&5
4455 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4457 else
4458 if test -n "$OBJCOPY"; then
4459 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4460 else
4461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4462 ac_dummy="$PATH"
4463 for ac_dir in $ac_dummy; do
4464 test -z "$ac_dir" && ac_dir=.
4465 if test -f $ac_dir/$ac_word; then
4466 ac_cv_prog_OBJCOPY="${ncn_progname}"
4467 break
4469 done
4470 IFS="$ac_save_ifs"
4473 OBJCOPY="$ac_cv_prog_OBJCOPY"
4474 if test -n "$OBJCOPY"; then
4475 echo "$ac_t""$OBJCOPY" 1>&6
4476 else
4477 echo "$ac_t""no" 1>&6
4481 test -n "$ac_cv_prog_OBJCOPY" && break
4482 done
4484 if test -z "$ac_cv_prog_OBJCOPY" ; then
4485 set dummy objcopy
4486 if test $build = $host ; then
4487 OBJCOPY="$2"
4488 else
4489 OBJCOPY="${ncn_tool_prefix}$2"
4493 for ncn_progname in objdump; do
4494 if test -n "$ncn_tool_prefix"; then
4495 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4496 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4497 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4498 echo "configure:4499: checking for $ac_word" >&5
4499 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4501 else
4502 if test -n "$OBJDUMP"; then
4503 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4504 else
4505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4506 ac_dummy="$PATH"
4507 for ac_dir in $ac_dummy; do
4508 test -z "$ac_dir" && ac_dir=.
4509 if test -f $ac_dir/$ac_word; then
4510 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4511 break
4513 done
4514 IFS="$ac_save_ifs"
4517 OBJDUMP="$ac_cv_prog_OBJDUMP"
4518 if test -n "$OBJDUMP"; then
4519 echo "$ac_t""$OBJDUMP" 1>&6
4520 else
4521 echo "$ac_t""no" 1>&6
4525 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4526 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4527 set dummy ${ncn_progname}; ac_word=$2
4528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4529 echo "configure:4530: checking for $ac_word" >&5
4530 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4531 echo $ac_n "(cached) $ac_c" 1>&6
4532 else
4533 if test -n "$OBJDUMP"; then
4534 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4535 else
4536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4537 ac_dummy="$PATH"
4538 for ac_dir in $ac_dummy; do
4539 test -z "$ac_dir" && ac_dir=.
4540 if test -f $ac_dir/$ac_word; then
4541 ac_cv_prog_OBJDUMP="${ncn_progname}"
4542 break
4544 done
4545 IFS="$ac_save_ifs"
4548 OBJDUMP="$ac_cv_prog_OBJDUMP"
4549 if test -n "$OBJDUMP"; then
4550 echo "$ac_t""$OBJDUMP" 1>&6
4551 else
4552 echo "$ac_t""no" 1>&6
4556 test -n "$ac_cv_prog_OBJDUMP" && break
4557 done
4559 if test -z "$ac_cv_prog_OBJDUMP" ; then
4560 set dummy objdump
4561 if test $build = $host ; then
4562 OBJDUMP="$2"
4563 else
4564 OBJDUMP="${ncn_tool_prefix}$2"
4574 # Target tools.
4575 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4576 if test "${with_build_time_tools+set}" = set; then
4577 withval="$with_build_time_tools"
4578 case x"$withval" in
4579 x/*) ;;
4581 with_build_time_tools=
4582 echo "configure: warning: argument to --with-build-time-tools must be an absolute path" 1>&2
4584 esac
4585 else
4586 with_build_time_tools=
4590 if test -n "$with_build_time_tools"; then
4591 for ncn_progname in cc gcc; do
4592 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4593 echo "configure:4594: checking for ${ncn_progname} in $with_build_time_tools" >&5
4594 if test -x $with_build_time_tools/${ncn_progname}; then
4595 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4596 echo "$ac_t""yes" 1>&6
4597 break
4598 else
4599 echo "$ac_t""no" 1>&6
4601 done
4604 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4605 for ncn_progname in cc gcc; do
4606 if test -n "$ncn_target_tool_prefix"; then
4607 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4608 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4610 echo "configure:4611: checking for $ac_word" >&5
4611 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4612 echo $ac_n "(cached) $ac_c" 1>&6
4613 else
4614 if test -n "$CC_FOR_TARGET"; then
4615 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4616 else
4617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4618 ac_dummy="$PATH"
4619 for ac_dir in $ac_dummy; do
4620 test -z "$ac_dir" && ac_dir=.
4621 if test -f $ac_dir/$ac_word; then
4622 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4623 break
4625 done
4626 IFS="$ac_save_ifs"
4629 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4630 if test -n "$CC_FOR_TARGET"; then
4631 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4632 else
4633 echo "$ac_t""no" 1>&6
4637 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4638 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4639 set dummy ${ncn_progname}; ac_word=$2
4640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4641 echo "configure:4642: checking for $ac_word" >&5
4642 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4644 else
4645 if test -n "$CC_FOR_TARGET"; then
4646 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4647 else
4648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4649 ac_dummy="$PATH"
4650 for ac_dir in $ac_dummy; do
4651 test -z "$ac_dir" && ac_dir=.
4652 if test -f $ac_dir/$ac_word; then
4653 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4654 break
4656 done
4657 IFS="$ac_save_ifs"
4660 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4661 if test -n "$CC_FOR_TARGET"; then
4662 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4663 else
4664 echo "$ac_t""no" 1>&6
4668 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4669 done
4672 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4673 set dummy cc gcc
4674 if test $build = $target ; then
4675 CC_FOR_TARGET="$2"
4676 else
4677 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4681 if test -n "$with_build_time_tools"; then
4682 for ncn_progname in c++ g++ cxx gxx; do
4683 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4684 echo "configure:4685: checking for ${ncn_progname} in $with_build_time_tools" >&5
4685 if test -x $with_build_time_tools/${ncn_progname}; then
4686 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4687 echo "$ac_t""yes" 1>&6
4688 break
4689 else
4690 echo "$ac_t""no" 1>&6
4692 done
4695 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4696 for ncn_progname in c++ g++ cxx gxx; do
4697 if test -n "$ncn_target_tool_prefix"; then
4698 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4699 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4701 echo "configure:4702: checking for $ac_word" >&5
4702 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4703 echo $ac_n "(cached) $ac_c" 1>&6
4704 else
4705 if test -n "$CXX_FOR_TARGET"; then
4706 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4707 else
4708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4709 ac_dummy="$PATH"
4710 for ac_dir in $ac_dummy; do
4711 test -z "$ac_dir" && ac_dir=.
4712 if test -f $ac_dir/$ac_word; then
4713 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4714 break
4716 done
4717 IFS="$ac_save_ifs"
4720 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4721 if test -n "$CXX_FOR_TARGET"; then
4722 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4723 else
4724 echo "$ac_t""no" 1>&6
4728 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4730 set dummy ${ncn_progname}; ac_word=$2
4731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4732 echo "configure:4733: checking for $ac_word" >&5
4733 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4734 echo $ac_n "(cached) $ac_c" 1>&6
4735 else
4736 if test -n "$CXX_FOR_TARGET"; then
4737 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4738 else
4739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4740 ac_dummy="$PATH"
4741 for ac_dir in $ac_dummy; do
4742 test -z "$ac_dir" && ac_dir=.
4743 if test -f $ac_dir/$ac_word; then
4744 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4745 break
4747 done
4748 IFS="$ac_save_ifs"
4751 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4752 if test -n "$CXX_FOR_TARGET"; then
4753 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4754 else
4755 echo "$ac_t""no" 1>&6
4759 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4760 done
4763 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4764 set dummy c++ g++ cxx gxx
4765 if test $build = $target ; then
4766 CXX_FOR_TARGET="$2"
4767 else
4768 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4772 if test -n "$with_build_time_tools"; then
4773 for ncn_progname in gcc; do
4774 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4775 echo "configure:4776: checking for ${ncn_progname} in $with_build_time_tools" >&5
4776 if test -x $with_build_time_tools/${ncn_progname}; then
4777 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4778 echo "$ac_t""yes" 1>&6
4779 break
4780 else
4781 echo "$ac_t""no" 1>&6
4783 done
4786 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4787 for ncn_progname in gcc; do
4788 if test -n "$ncn_target_tool_prefix"; then
4789 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4790 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4792 echo "configure:4793: checking for $ac_word" >&5
4793 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4794 echo $ac_n "(cached) $ac_c" 1>&6
4795 else
4796 if test -n "$GCC_FOR_TARGET"; then
4797 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4798 else
4799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4800 ac_dummy="$PATH"
4801 for ac_dir in $ac_dummy; do
4802 test -z "$ac_dir" && ac_dir=.
4803 if test -f $ac_dir/$ac_word; then
4804 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4805 break
4807 done
4808 IFS="$ac_save_ifs"
4811 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4812 if test -n "$GCC_FOR_TARGET"; then
4813 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4814 else
4815 echo "$ac_t""no" 1>&6
4819 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4820 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4821 set dummy ${ncn_progname}; ac_word=$2
4822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4823 echo "configure:4824: checking for $ac_word" >&5
4824 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6
4826 else
4827 if test -n "$GCC_FOR_TARGET"; then
4828 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4829 else
4830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4831 ac_dummy="$PATH"
4832 for ac_dir in $ac_dummy; do
4833 test -z "$ac_dir" && ac_dir=.
4834 if test -f $ac_dir/$ac_word; then
4835 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4836 break
4838 done
4839 IFS="$ac_save_ifs"
4842 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4843 if test -n "$GCC_FOR_TARGET"; then
4844 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4845 else
4846 echo "$ac_t""no" 1>&6
4850 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4851 done
4854 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4855 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4858 if test -n "$with_build_time_tools"; then
4859 for ncn_progname in gcj; do
4860 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4861 echo "configure:4862: checking for ${ncn_progname} in $with_build_time_tools" >&5
4862 if test -x $with_build_time_tools/${ncn_progname}; then
4863 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4864 echo "$ac_t""yes" 1>&6
4865 break
4866 else
4867 echo "$ac_t""no" 1>&6
4869 done
4872 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4873 for ncn_progname in gcj; do
4874 if test -n "$ncn_target_tool_prefix"; then
4875 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4876 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4878 echo "configure:4879: checking for $ac_word" >&5
4879 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4880 echo $ac_n "(cached) $ac_c" 1>&6
4881 else
4882 if test -n "$GCJ_FOR_TARGET"; then
4883 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4884 else
4885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4886 ac_dummy="$PATH"
4887 for ac_dir in $ac_dummy; do
4888 test -z "$ac_dir" && ac_dir=.
4889 if test -f $ac_dir/$ac_word; then
4890 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4891 break
4893 done
4894 IFS="$ac_save_ifs"
4897 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4898 if test -n "$GCJ_FOR_TARGET"; then
4899 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4900 else
4901 echo "$ac_t""no" 1>&6
4905 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4907 set dummy ${ncn_progname}; ac_word=$2
4908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4909 echo "configure:4910: checking for $ac_word" >&5
4910 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4911 echo $ac_n "(cached) $ac_c" 1>&6
4912 else
4913 if test -n "$GCJ_FOR_TARGET"; then
4914 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4915 else
4916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4917 ac_dummy="$PATH"
4918 for ac_dir in $ac_dummy; do
4919 test -z "$ac_dir" && ac_dir=.
4920 if test -f $ac_dir/$ac_word; then
4921 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4922 break
4924 done
4925 IFS="$ac_save_ifs"
4928 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4929 if test -n "$GCJ_FOR_TARGET"; then
4930 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4931 else
4932 echo "$ac_t""no" 1>&6
4936 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4937 done
4940 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4941 set dummy gcj
4942 if test $build = $target ; then
4943 GCJ_FOR_TARGET="$2"
4944 else
4945 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4949 if test -n "$with_build_time_tools"; then
4950 for ncn_progname in gfortran; do
4951 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4952 echo "configure:4953: checking for ${ncn_progname} in $with_build_time_tools" >&5
4953 if test -x $with_build_time_tools/${ncn_progname}; then
4954 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4955 echo "$ac_t""yes" 1>&6
4956 break
4957 else
4958 echo "$ac_t""no" 1>&6
4960 done
4963 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
4964 for ncn_progname in gfortran; do
4965 if test -n "$ncn_target_tool_prefix"; then
4966 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4967 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4969 echo "configure:4970: checking for $ac_word" >&5
4970 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4971 echo $ac_n "(cached) $ac_c" 1>&6
4972 else
4973 if test -n "$GFORTRAN_FOR_TARGET"; then
4974 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4975 else
4976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4977 ac_dummy="$PATH"
4978 for ac_dir in $ac_dummy; do
4979 test -z "$ac_dir" && ac_dir=.
4980 if test -f $ac_dir/$ac_word; then
4981 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4982 break
4984 done
4985 IFS="$ac_save_ifs"
4988 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4989 if test -n "$GFORTRAN_FOR_TARGET"; then
4990 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4991 else
4992 echo "$ac_t""no" 1>&6
4996 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
4997 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4998 set dummy ${ncn_progname}; ac_word=$2
4999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5000 echo "configure:5001: checking for $ac_word" >&5
5001 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5002 echo $ac_n "(cached) $ac_c" 1>&6
5003 else
5004 if test -n "$GFORTRAN_FOR_TARGET"; then
5005 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5006 else
5007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5008 ac_dummy="$PATH"
5009 for ac_dir in $ac_dummy; do
5010 test -z "$ac_dir" && ac_dir=.
5011 if test -f $ac_dir/$ac_word; then
5012 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5013 break
5015 done
5016 IFS="$ac_save_ifs"
5019 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5020 if test -n "$GFORTRAN_FOR_TARGET"; then
5021 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5022 else
5023 echo "$ac_t""no" 1>&6
5027 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5028 done
5031 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5032 set dummy gfortran
5033 if test $build = $target ; then
5034 GFORTRAN_FOR_TARGET="$2"
5035 else
5036 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5042 # The user is always right.
5043 if test "${PATH_SEPARATOR+set}" != set; then
5044 echo "#! /bin/sh" >conf$$.sh
5045 echo "exit 0" >>conf$$.sh
5046 chmod +x conf$$.sh
5047 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5048 PATH_SEPARATOR=';'
5049 else
5050 PATH_SEPARATOR=:
5052 rm -f conf$$.sh
5057 if test "x$exec_prefix" = xNONE; then
5058 if test "x$prefix" = xNONE; then
5059 gcc_cv_tool_prefix=$ac_default_prefix
5060 else
5061 gcc_cv_tool_prefix=$prefix
5063 else
5064 gcc_cv_tool_prefix=$exec_prefix
5067 # If there is no compiler in the tree, use the PATH only. In any
5068 # case, if there is no compiler in the tree nobody should use
5069 # AS_FOR_TARGET and LD_FOR_TARGET.
5070 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5071 gcc_version=`cat $srcdir/gcc/BASE-VER`
5072 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5073 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5074 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5075 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5076 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5077 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5078 else
5079 gcc_cv_tool_dirs=
5082 if test x$build = x$target && test -n "$md_exec_prefix"; then
5083 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5088 cat > conftest.c << \EOF
5089 #ifdef __GNUC__
5090 gcc_yay;
5091 #endif
5093 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
5094 have_gcc_for_target=yes
5095 else
5096 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
5097 have_gcc_for_target=no
5099 rm conftest.c
5104 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5105 if test -n "$with_build_time_tools"; then
5106 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5107 echo "configure:5108: checking for ar in $with_build_time_tools" >&5
5108 if test -x $with_build_time_tools/ar; then
5109 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
5110 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5111 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5112 else
5113 echo "$ac_t""no" 1>&6
5115 elif test $build != $host && test $have_gcc_for_target = yes; then
5116 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
5117 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
5118 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5121 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5122 # Extract the first word of "ar", so it can be a program name with args.
5123 set dummy ar; ac_word=$2
5124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5125 echo "configure:5126: checking for $ac_word" >&5
5126 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5127 echo $ac_n "(cached) $ac_c" 1>&6
5128 else
5129 case "$AR_FOR_TARGET" in
5131 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
5133 ?:/*)
5134 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5138 ac_dummy="$gcc_cv_tool_dirs"
5139 for ac_dir in $ac_dummy; do
5140 test -z "$ac_dir" && ac_dir=.
5141 if test -f $ac_dir/$ac_word; then
5142 ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
5143 break
5145 done
5146 IFS="$ac_save_ifs"
5148 esac
5150 AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
5151 if test -n "$AR_FOR_TARGET"; then
5152 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5153 else
5154 echo "$ac_t""no" 1>&6
5158 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5159 if test -n "$with_build_time_tools"; then
5160 for ncn_progname in ar; do
5161 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5162 echo "configure:5163: checking for ${ncn_progname} in $with_build_time_tools" >&5
5163 if test -x $with_build_time_tools/${ncn_progname}; then
5164 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5165 echo "$ac_t""yes" 1>&6
5166 break
5167 else
5168 echo "$ac_t""no" 1>&6
5170 done
5173 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5174 for ncn_progname in ar; do
5175 if test -n "$ncn_target_tool_prefix"; then
5176 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5177 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5178 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5179 echo "configure:5180: checking for $ac_word" >&5
5180 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6
5182 else
5183 if test -n "$AR_FOR_TARGET"; then
5184 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5185 else
5186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5187 ac_dummy="$PATH"
5188 for ac_dir in $ac_dummy; do
5189 test -z "$ac_dir" && ac_dir=.
5190 if test -f $ac_dir/$ac_word; then
5191 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5192 break
5194 done
5195 IFS="$ac_save_ifs"
5198 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5199 if test -n "$AR_FOR_TARGET"; then
5200 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5201 else
5202 echo "$ac_t""no" 1>&6
5206 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5208 set dummy ${ncn_progname}; ac_word=$2
5209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5210 echo "configure:5211: checking for $ac_word" >&5
5211 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5212 echo $ac_n "(cached) $ac_c" 1>&6
5213 else
5214 if test -n "$AR_FOR_TARGET"; then
5215 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5216 else
5217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5218 ac_dummy="$PATH"
5219 for ac_dir in $ac_dummy; do
5220 test -z "$ac_dir" && ac_dir=.
5221 if test -f $ac_dir/$ac_word; then
5222 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5223 break
5225 done
5226 IFS="$ac_save_ifs"
5229 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5230 if test -n "$AR_FOR_TARGET"; then
5231 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5232 else
5233 echo "$ac_t""no" 1>&6
5237 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5238 done
5241 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5242 set dummy ar
5243 if test $build = $target ; then
5244 AR_FOR_TARGET="$2"
5245 else
5246 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
5250 else
5251 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
5257 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5258 if test -n "$with_build_time_tools"; then
5259 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5260 echo "configure:5261: checking for as in $with_build_time_tools" >&5
5261 if test -x $with_build_time_tools/as; then
5262 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
5263 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5264 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5265 else
5266 echo "$ac_t""no" 1>&6
5268 elif test $build != $host && test $have_gcc_for_target = yes; then
5269 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
5270 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
5271 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5274 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5275 # Extract the first word of "as", so it can be a program name with args.
5276 set dummy as; ac_word=$2
5277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5278 echo "configure:5279: checking for $ac_word" >&5
5279 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5281 else
5282 case "$AS_FOR_TARGET" in
5284 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
5286 ?:/*)
5287 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5291 ac_dummy="$gcc_cv_tool_dirs"
5292 for ac_dir in $ac_dummy; do
5293 test -z "$ac_dir" && ac_dir=.
5294 if test -f $ac_dir/$ac_word; then
5295 ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
5296 break
5298 done
5299 IFS="$ac_save_ifs"
5301 esac
5303 AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
5304 if test -n "$AS_FOR_TARGET"; then
5305 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5306 else
5307 echo "$ac_t""no" 1>&6
5311 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5312 if test -n "$with_build_time_tools"; then
5313 for ncn_progname in as; do
5314 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5315 echo "configure:5316: checking for ${ncn_progname} in $with_build_time_tools" >&5
5316 if test -x $with_build_time_tools/${ncn_progname}; then
5317 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5318 echo "$ac_t""yes" 1>&6
5319 break
5320 else
5321 echo "$ac_t""no" 1>&6
5323 done
5326 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5327 for ncn_progname in as; do
5328 if test -n "$ncn_target_tool_prefix"; then
5329 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5330 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5332 echo "configure:5333: checking for $ac_word" >&5
5333 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5334 echo $ac_n "(cached) $ac_c" 1>&6
5335 else
5336 if test -n "$AS_FOR_TARGET"; then
5337 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5338 else
5339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5340 ac_dummy="$PATH"
5341 for ac_dir in $ac_dummy; do
5342 test -z "$ac_dir" && ac_dir=.
5343 if test -f $ac_dir/$ac_word; then
5344 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5345 break
5347 done
5348 IFS="$ac_save_ifs"
5351 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5352 if test -n "$AS_FOR_TARGET"; then
5353 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5354 else
5355 echo "$ac_t""no" 1>&6
5359 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5361 set dummy ${ncn_progname}; ac_word=$2
5362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5363 echo "configure:5364: checking for $ac_word" >&5
5364 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5365 echo $ac_n "(cached) $ac_c" 1>&6
5366 else
5367 if test -n "$AS_FOR_TARGET"; then
5368 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5369 else
5370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5371 ac_dummy="$PATH"
5372 for ac_dir in $ac_dummy; do
5373 test -z "$ac_dir" && ac_dir=.
5374 if test -f $ac_dir/$ac_word; then
5375 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5376 break
5378 done
5379 IFS="$ac_save_ifs"
5382 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5383 if test -n "$AS_FOR_TARGET"; then
5384 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5385 else
5386 echo "$ac_t""no" 1>&6
5390 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5391 done
5394 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5395 set dummy as
5396 if test $build = $target ; then
5397 AS_FOR_TARGET="$2"
5398 else
5399 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
5403 else
5404 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
5410 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5411 if test -n "$with_build_time_tools"; then
5412 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5413 echo "configure:5414: checking for dlltool in $with_build_time_tools" >&5
5414 if test -x $with_build_time_tools/dlltool; then
5415 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
5416 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5417 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5418 else
5419 echo "$ac_t""no" 1>&6
5421 elif test $build != $host && test $have_gcc_for_target = yes; then
5422 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5423 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
5424 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5427 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5428 # Extract the first word of "dlltool", so it can be a program name with args.
5429 set dummy dlltool; ac_word=$2
5430 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5431 echo "configure:5432: checking for $ac_word" >&5
5432 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5433 echo $ac_n "(cached) $ac_c" 1>&6
5434 else
5435 case "$DLLTOOL_FOR_TARGET" in
5437 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5439 ?:/*)
5440 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5444 ac_dummy="$gcc_cv_tool_dirs"
5445 for ac_dir in $ac_dummy; do
5446 test -z "$ac_dir" && ac_dir=.
5447 if test -f $ac_dir/$ac_word; then
5448 ac_cv_path_DLLTOOL_FOR_TARGET="$ac_dir/$ac_word"
5449 break
5451 done
5452 IFS="$ac_save_ifs"
5454 esac
5456 DLLTOOL_FOR_TARGET="$ac_cv_path_DLLTOOL_FOR_TARGET"
5457 if test -n "$DLLTOOL_FOR_TARGET"; then
5458 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5459 else
5460 echo "$ac_t""no" 1>&6
5464 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5465 if test -n "$with_build_time_tools"; then
5466 for ncn_progname in dlltool; do
5467 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5468 echo "configure:5469: checking for ${ncn_progname} in $with_build_time_tools" >&5
5469 if test -x $with_build_time_tools/${ncn_progname}; then
5470 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5471 echo "$ac_t""yes" 1>&6
5472 break
5473 else
5474 echo "$ac_t""no" 1>&6
5476 done
5479 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5480 for ncn_progname in dlltool; do
5481 if test -n "$ncn_target_tool_prefix"; then
5482 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5483 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5485 echo "configure:5486: checking for $ac_word" >&5
5486 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5487 echo $ac_n "(cached) $ac_c" 1>&6
5488 else
5489 if test -n "$DLLTOOL_FOR_TARGET"; then
5490 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5491 else
5492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5493 ac_dummy="$PATH"
5494 for ac_dir in $ac_dummy; do
5495 test -z "$ac_dir" && ac_dir=.
5496 if test -f $ac_dir/$ac_word; then
5497 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5498 break
5500 done
5501 IFS="$ac_save_ifs"
5504 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5505 if test -n "$DLLTOOL_FOR_TARGET"; then
5506 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5507 else
5508 echo "$ac_t""no" 1>&6
5512 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5514 set dummy ${ncn_progname}; ac_word=$2
5515 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5516 echo "configure:5517: checking for $ac_word" >&5
5517 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5518 echo $ac_n "(cached) $ac_c" 1>&6
5519 else
5520 if test -n "$DLLTOOL_FOR_TARGET"; then
5521 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5522 else
5523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5524 ac_dummy="$PATH"
5525 for ac_dir in $ac_dummy; do
5526 test -z "$ac_dir" && ac_dir=.
5527 if test -f $ac_dir/$ac_word; then
5528 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5529 break
5531 done
5532 IFS="$ac_save_ifs"
5535 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5536 if test -n "$DLLTOOL_FOR_TARGET"; then
5537 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5538 else
5539 echo "$ac_t""no" 1>&6
5543 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5544 done
5547 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5548 set dummy dlltool
5549 if test $build = $target ; then
5550 DLLTOOL_FOR_TARGET="$2"
5551 else
5552 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
5556 else
5557 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
5563 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5564 if test -n "$with_build_time_tools"; then
5565 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5566 echo "configure:5567: checking for ld in $with_build_time_tools" >&5
5567 if test -x $with_build_time_tools/ld; then
5568 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
5569 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5570 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5571 else
5572 echo "$ac_t""no" 1>&6
5574 elif test $build != $host && test $have_gcc_for_target = yes; then
5575 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
5576 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
5577 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5580 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5581 # Extract the first word of "ld", so it can be a program name with args.
5582 set dummy ld; ac_word=$2
5583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5584 echo "configure:5585: checking for $ac_word" >&5
5585 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5586 echo $ac_n "(cached) $ac_c" 1>&6
5587 else
5588 case "$LD_FOR_TARGET" in
5590 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
5592 ?:/*)
5593 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5597 ac_dummy="$gcc_cv_tool_dirs"
5598 for ac_dir in $ac_dummy; do
5599 test -z "$ac_dir" && ac_dir=.
5600 if test -f $ac_dir/$ac_word; then
5601 ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
5602 break
5604 done
5605 IFS="$ac_save_ifs"
5607 esac
5609 LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
5610 if test -n "$LD_FOR_TARGET"; then
5611 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5612 else
5613 echo "$ac_t""no" 1>&6
5617 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5618 if test -n "$with_build_time_tools"; then
5619 for ncn_progname in ld; do
5620 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5621 echo "configure:5622: checking for ${ncn_progname} in $with_build_time_tools" >&5
5622 if test -x $with_build_time_tools/${ncn_progname}; then
5623 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5624 echo "$ac_t""yes" 1>&6
5625 break
5626 else
5627 echo "$ac_t""no" 1>&6
5629 done
5632 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5633 for ncn_progname in ld; do
5634 if test -n "$ncn_target_tool_prefix"; then
5635 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5636 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5638 echo "configure:5639: checking for $ac_word" >&5
5639 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5640 echo $ac_n "(cached) $ac_c" 1>&6
5641 else
5642 if test -n "$LD_FOR_TARGET"; then
5643 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5644 else
5645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5646 ac_dummy="$PATH"
5647 for ac_dir in $ac_dummy; do
5648 test -z "$ac_dir" && ac_dir=.
5649 if test -f $ac_dir/$ac_word; then
5650 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5651 break
5653 done
5654 IFS="$ac_save_ifs"
5657 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5658 if test -n "$LD_FOR_TARGET"; then
5659 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5660 else
5661 echo "$ac_t""no" 1>&6
5665 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5667 set dummy ${ncn_progname}; ac_word=$2
5668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5669 echo "configure:5670: checking for $ac_word" >&5
5670 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5671 echo $ac_n "(cached) $ac_c" 1>&6
5672 else
5673 if test -n "$LD_FOR_TARGET"; then
5674 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5675 else
5676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5677 ac_dummy="$PATH"
5678 for ac_dir in $ac_dummy; do
5679 test -z "$ac_dir" && ac_dir=.
5680 if test -f $ac_dir/$ac_word; then
5681 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5682 break
5684 done
5685 IFS="$ac_save_ifs"
5688 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5689 if test -n "$LD_FOR_TARGET"; then
5690 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5691 else
5692 echo "$ac_t""no" 1>&6
5696 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5697 done
5700 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5701 set dummy ld
5702 if test $build = $target ; then
5703 LD_FOR_TARGET="$2"
5704 else
5705 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
5709 else
5710 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
5716 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5717 if test -n "$with_build_time_tools"; then
5718 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5719 echo "configure:5720: checking for lipo in $with_build_time_tools" >&5
5720 if test -x $with_build_time_tools/lipo; then
5721 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
5722 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5723 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5724 else
5725 echo "$ac_t""no" 1>&6
5727 elif test $build != $host && test $have_gcc_for_target = yes; then
5728 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
5729 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
5730 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5733 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5734 # Extract the first word of "lipo", so it can be a program name with args.
5735 set dummy lipo; ac_word=$2
5736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5737 echo "configure:5738: checking for $ac_word" >&5
5738 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5739 echo $ac_n "(cached) $ac_c" 1>&6
5740 else
5741 case "$LIPO_FOR_TARGET" in
5743 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5745 ?:/*)
5746 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5750 ac_dummy="$gcc_cv_tool_dirs"
5751 for ac_dir in $ac_dummy; do
5752 test -z "$ac_dir" && ac_dir=.
5753 if test -f $ac_dir/$ac_word; then
5754 ac_cv_path_LIPO_FOR_TARGET="$ac_dir/$ac_word"
5755 break
5757 done
5758 IFS="$ac_save_ifs"
5760 esac
5762 LIPO_FOR_TARGET="$ac_cv_path_LIPO_FOR_TARGET"
5763 if test -n "$LIPO_FOR_TARGET"; then
5764 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5765 else
5766 echo "$ac_t""no" 1>&6
5770 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5771 if test -n "$with_build_time_tools"; then
5772 for ncn_progname in lipo; do
5773 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5774 echo "configure:5775: checking for ${ncn_progname} in $with_build_time_tools" >&5
5775 if test -x $with_build_time_tools/${ncn_progname}; then
5776 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5777 echo "$ac_t""yes" 1>&6
5778 break
5779 else
5780 echo "$ac_t""no" 1>&6
5782 done
5785 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5786 for ncn_progname in lipo; do
5787 if test -n "$ncn_target_tool_prefix"; then
5788 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5789 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5791 echo "configure:5792: checking for $ac_word" >&5
5792 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5793 echo $ac_n "(cached) $ac_c" 1>&6
5794 else
5795 if test -n "$LIPO_FOR_TARGET"; then
5796 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5797 else
5798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5799 ac_dummy="$PATH"
5800 for ac_dir in $ac_dummy; do
5801 test -z "$ac_dir" && ac_dir=.
5802 if test -f $ac_dir/$ac_word; then
5803 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5804 break
5806 done
5807 IFS="$ac_save_ifs"
5810 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5811 if test -n "$LIPO_FOR_TARGET"; then
5812 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5813 else
5814 echo "$ac_t""no" 1>&6
5818 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5820 set dummy ${ncn_progname}; ac_word=$2
5821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5822 echo "configure:5823: checking for $ac_word" >&5
5823 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5824 echo $ac_n "(cached) $ac_c" 1>&6
5825 else
5826 if test -n "$LIPO_FOR_TARGET"; then
5827 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5828 else
5829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5830 ac_dummy="$PATH"
5831 for ac_dir in $ac_dummy; do
5832 test -z "$ac_dir" && ac_dir=.
5833 if test -f $ac_dir/$ac_word; then
5834 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5835 break
5837 done
5838 IFS="$ac_save_ifs"
5841 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5842 if test -n "$LIPO_FOR_TARGET"; then
5843 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5844 else
5845 echo "$ac_t""no" 1>&6
5849 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5850 done
5853 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5854 set dummy lipo
5855 if test $build = $target ; then
5856 LIPO_FOR_TARGET="$2"
5857 else
5858 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
5862 else
5863 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
5869 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5870 if test -n "$with_build_time_tools"; then
5871 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
5872 echo "configure:5873: checking for nm in $with_build_time_tools" >&5
5873 if test -x $with_build_time_tools/nm; then
5874 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
5875 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5876 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5877 else
5878 echo "$ac_t""no" 1>&6
5880 elif test $build != $host && test $have_gcc_for_target = yes; then
5881 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
5882 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
5883 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5886 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5887 # Extract the first word of "nm", so it can be a program name with args.
5888 set dummy nm; ac_word=$2
5889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5890 echo "configure:5891: checking for $ac_word" >&5
5891 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5892 echo $ac_n "(cached) $ac_c" 1>&6
5893 else
5894 case "$NM_FOR_TARGET" in
5896 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
5898 ?:/*)
5899 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5903 ac_dummy="$gcc_cv_tool_dirs"
5904 for ac_dir in $ac_dummy; do
5905 test -z "$ac_dir" && ac_dir=.
5906 if test -f $ac_dir/$ac_word; then
5907 ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
5908 break
5910 done
5911 IFS="$ac_save_ifs"
5913 esac
5915 NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
5916 if test -n "$NM_FOR_TARGET"; then
5917 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5918 else
5919 echo "$ac_t""no" 1>&6
5923 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5924 if test -n "$with_build_time_tools"; then
5925 for ncn_progname in nm; do
5926 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5927 echo "configure:5928: checking for ${ncn_progname} in $with_build_time_tools" >&5
5928 if test -x $with_build_time_tools/${ncn_progname}; then
5929 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5930 echo "$ac_t""yes" 1>&6
5931 break
5932 else
5933 echo "$ac_t""no" 1>&6
5935 done
5938 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
5939 for ncn_progname in nm; do
5940 if test -n "$ncn_target_tool_prefix"; then
5941 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5942 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5944 echo "configure:5945: checking for $ac_word" >&5
5945 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5946 echo $ac_n "(cached) $ac_c" 1>&6
5947 else
5948 if test -n "$NM_FOR_TARGET"; then
5949 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5950 else
5951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5952 ac_dummy="$PATH"
5953 for ac_dir in $ac_dummy; do
5954 test -z "$ac_dir" && ac_dir=.
5955 if test -f $ac_dir/$ac_word; then
5956 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5957 break
5959 done
5960 IFS="$ac_save_ifs"
5963 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5964 if test -n "$NM_FOR_TARGET"; then
5965 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5966 else
5967 echo "$ac_t""no" 1>&6
5971 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
5972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5973 set dummy ${ncn_progname}; ac_word=$2
5974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5975 echo "configure:5976: checking for $ac_word" >&5
5976 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5977 echo $ac_n "(cached) $ac_c" 1>&6
5978 else
5979 if test -n "$NM_FOR_TARGET"; then
5980 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5981 else
5982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5983 ac_dummy="$PATH"
5984 for ac_dir in $ac_dummy; do
5985 test -z "$ac_dir" && ac_dir=.
5986 if test -f $ac_dir/$ac_word; then
5987 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5988 break
5990 done
5991 IFS="$ac_save_ifs"
5994 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5995 if test -n "$NM_FOR_TARGET"; then
5996 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5997 else
5998 echo "$ac_t""no" 1>&6
6002 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6003 done
6006 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6007 set dummy nm
6008 if test $build = $target ; then
6009 NM_FOR_TARGET="$2"
6010 else
6011 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
6015 else
6016 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
6022 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6023 if test -n "$with_build_time_tools"; then
6024 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6025 echo "configure:6026: checking for objdump in $with_build_time_tools" >&5
6026 if test -x $with_build_time_tools/objdump; then
6027 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
6028 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6029 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6030 else
6031 echo "$ac_t""no" 1>&6
6033 elif test $build != $host && test $have_gcc_for_target = yes; then
6034 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
6035 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
6036 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6039 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6040 # Extract the first word of "objdump", so it can be a program name with args.
6041 set dummy objdump; ac_word=$2
6042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6043 echo "configure:6044: checking for $ac_word" >&5
6044 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6045 echo $ac_n "(cached) $ac_c" 1>&6
6046 else
6047 case "$OBJDUMP_FOR_TARGET" in
6049 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6051 ?:/*)
6052 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6056 ac_dummy="$gcc_cv_tool_dirs"
6057 for ac_dir in $ac_dummy; do
6058 test -z "$ac_dir" && ac_dir=.
6059 if test -f $ac_dir/$ac_word; then
6060 ac_cv_path_OBJDUMP_FOR_TARGET="$ac_dir/$ac_word"
6061 break
6063 done
6064 IFS="$ac_save_ifs"
6066 esac
6068 OBJDUMP_FOR_TARGET="$ac_cv_path_OBJDUMP_FOR_TARGET"
6069 if test -n "$OBJDUMP_FOR_TARGET"; then
6070 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6071 else
6072 echo "$ac_t""no" 1>&6
6076 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6077 if test -n "$with_build_time_tools"; then
6078 for ncn_progname in objdump; do
6079 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6080 echo "configure:6081: checking for ${ncn_progname} in $with_build_time_tools" >&5
6081 if test -x $with_build_time_tools/${ncn_progname}; then
6082 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6083 echo "$ac_t""yes" 1>&6
6084 break
6085 else
6086 echo "$ac_t""no" 1>&6
6088 done
6091 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6092 for ncn_progname in objdump; do
6093 if test -n "$ncn_target_tool_prefix"; then
6094 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6095 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6097 echo "configure:6098: checking for $ac_word" >&5
6098 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6099 echo $ac_n "(cached) $ac_c" 1>&6
6100 else
6101 if test -n "$OBJDUMP_FOR_TARGET"; then
6102 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6103 else
6104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6105 ac_dummy="$PATH"
6106 for ac_dir in $ac_dummy; do
6107 test -z "$ac_dir" && ac_dir=.
6108 if test -f $ac_dir/$ac_word; then
6109 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6110 break
6112 done
6113 IFS="$ac_save_ifs"
6116 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6117 if test -n "$OBJDUMP_FOR_TARGET"; then
6118 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6119 else
6120 echo "$ac_t""no" 1>&6
6124 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6125 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6126 set dummy ${ncn_progname}; ac_word=$2
6127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6128 echo "configure:6129: checking for $ac_word" >&5
6129 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6130 echo $ac_n "(cached) $ac_c" 1>&6
6131 else
6132 if test -n "$OBJDUMP_FOR_TARGET"; then
6133 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6134 else
6135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6136 ac_dummy="$PATH"
6137 for ac_dir in $ac_dummy; do
6138 test -z "$ac_dir" && ac_dir=.
6139 if test -f $ac_dir/$ac_word; then
6140 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
6141 break
6143 done
6144 IFS="$ac_save_ifs"
6147 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6148 if test -n "$OBJDUMP_FOR_TARGET"; then
6149 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6150 else
6151 echo "$ac_t""no" 1>&6
6155 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6156 done
6159 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6160 set dummy objdump
6161 if test $build = $target ; then
6162 OBJDUMP_FOR_TARGET="$2"
6163 else
6164 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6168 else
6169 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
6175 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6176 if test -n "$with_build_time_tools"; then
6177 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6178 echo "configure:6179: checking for ranlib in $with_build_time_tools" >&5
6179 if test -x $with_build_time_tools/ranlib; then
6180 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
6181 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6182 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6183 else
6184 echo "$ac_t""no" 1>&6
6186 elif test $build != $host && test $have_gcc_for_target = yes; then
6187 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6188 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
6189 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6192 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6193 # Extract the first word of "ranlib", so it can be a program name with args.
6194 set dummy ranlib; ac_word=$2
6195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6196 echo "configure:6197: checking for $ac_word" >&5
6197 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6198 echo $ac_n "(cached) $ac_c" 1>&6
6199 else
6200 case "$RANLIB_FOR_TARGET" in
6202 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6204 ?:/*)
6205 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6209 ac_dummy="$gcc_cv_tool_dirs"
6210 for ac_dir in $ac_dummy; do
6211 test -z "$ac_dir" && ac_dir=.
6212 if test -f $ac_dir/$ac_word; then
6213 ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
6214 break
6216 done
6217 IFS="$ac_save_ifs"
6219 esac
6221 RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
6222 if test -n "$RANLIB_FOR_TARGET"; then
6223 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6224 else
6225 echo "$ac_t""no" 1>&6
6229 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6230 if test -n "$with_build_time_tools"; then
6231 for ncn_progname in ranlib; do
6232 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6233 echo "configure:6234: checking for ${ncn_progname} in $with_build_time_tools" >&5
6234 if test -x $with_build_time_tools/${ncn_progname}; then
6235 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6236 echo "$ac_t""yes" 1>&6
6237 break
6238 else
6239 echo "$ac_t""no" 1>&6
6241 done
6244 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6245 for ncn_progname in ranlib; do
6246 if test -n "$ncn_target_tool_prefix"; then
6247 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6248 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6249 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6250 echo "configure:6251: checking for $ac_word" >&5
6251 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6252 echo $ac_n "(cached) $ac_c" 1>&6
6253 else
6254 if test -n "$RANLIB_FOR_TARGET"; then
6255 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6256 else
6257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6258 ac_dummy="$PATH"
6259 for ac_dir in $ac_dummy; do
6260 test -z "$ac_dir" && ac_dir=.
6261 if test -f $ac_dir/$ac_word; then
6262 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6263 break
6265 done
6266 IFS="$ac_save_ifs"
6269 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6270 if test -n "$RANLIB_FOR_TARGET"; then
6271 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6272 else
6273 echo "$ac_t""no" 1>&6
6277 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6279 set dummy ${ncn_progname}; ac_word=$2
6280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6281 echo "configure:6282: checking for $ac_word" >&5
6282 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6283 echo $ac_n "(cached) $ac_c" 1>&6
6284 else
6285 if test -n "$RANLIB_FOR_TARGET"; then
6286 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6287 else
6288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6289 ac_dummy="$PATH"
6290 for ac_dir in $ac_dummy; do
6291 test -z "$ac_dir" && ac_dir=.
6292 if test -f $ac_dir/$ac_word; then
6293 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
6294 break
6296 done
6297 IFS="$ac_save_ifs"
6300 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6301 if test -n "$RANLIB_FOR_TARGET"; then
6302 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6303 else
6304 echo "$ac_t""no" 1>&6
6308 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6309 done
6312 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6313 set dummy ranlib
6314 if test $build = $target ; then
6315 RANLIB_FOR_TARGET="$2"
6316 else
6317 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
6321 else
6322 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
6328 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6329 if test -n "$with_build_time_tools"; then
6330 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6331 echo "configure:6332: checking for strip in $with_build_time_tools" >&5
6332 if test -x $with_build_time_tools/strip; then
6333 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
6334 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6335 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6336 else
6337 echo "$ac_t""no" 1>&6
6339 elif test $build != $host && test $have_gcc_for_target = yes; then
6340 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
6341 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
6342 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6345 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6346 # Extract the first word of "strip", so it can be a program name with args.
6347 set dummy strip; ac_word=$2
6348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6349 echo "configure:6350: checking for $ac_word" >&5
6350 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6351 echo $ac_n "(cached) $ac_c" 1>&6
6352 else
6353 case "$STRIP_FOR_TARGET" in
6355 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6357 ?:/*)
6358 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6362 ac_dummy="$gcc_cv_tool_dirs"
6363 for ac_dir in $ac_dummy; do
6364 test -z "$ac_dir" && ac_dir=.
6365 if test -f $ac_dir/$ac_word; then
6366 ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
6367 break
6369 done
6370 IFS="$ac_save_ifs"
6372 esac
6374 STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
6375 if test -n "$STRIP_FOR_TARGET"; then
6376 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6377 else
6378 echo "$ac_t""no" 1>&6
6382 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6383 if test -n "$with_build_time_tools"; then
6384 for ncn_progname in strip; do
6385 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6386 echo "configure:6387: checking for ${ncn_progname} in $with_build_time_tools" >&5
6387 if test -x $with_build_time_tools/${ncn_progname}; then
6388 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6389 echo "$ac_t""yes" 1>&6
6390 break
6391 else
6392 echo "$ac_t""no" 1>&6
6394 done
6397 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6398 for ncn_progname in strip; do
6399 if test -n "$ncn_target_tool_prefix"; then
6400 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6401 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6403 echo "configure:6404: checking for $ac_word" >&5
6404 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6405 echo $ac_n "(cached) $ac_c" 1>&6
6406 else
6407 if test -n "$STRIP_FOR_TARGET"; then
6408 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6409 else
6410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6411 ac_dummy="$PATH"
6412 for ac_dir in $ac_dummy; do
6413 test -z "$ac_dir" && ac_dir=.
6414 if test -f $ac_dir/$ac_word; then
6415 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6416 break
6418 done
6419 IFS="$ac_save_ifs"
6422 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6423 if test -n "$STRIP_FOR_TARGET"; then
6424 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6425 else
6426 echo "$ac_t""no" 1>&6
6430 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6432 set dummy ${ncn_progname}; ac_word=$2
6433 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6434 echo "configure:6435: checking for $ac_word" >&5
6435 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6436 echo $ac_n "(cached) $ac_c" 1>&6
6437 else
6438 if test -n "$STRIP_FOR_TARGET"; then
6439 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6440 else
6441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6442 ac_dummy="$PATH"
6443 for ac_dir in $ac_dummy; do
6444 test -z "$ac_dir" && ac_dir=.
6445 if test -f $ac_dir/$ac_word; then
6446 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
6447 break
6449 done
6450 IFS="$ac_save_ifs"
6453 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6454 if test -n "$STRIP_FOR_TARGET"; then
6455 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6456 else
6457 echo "$ac_t""no" 1>&6
6461 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6462 done
6465 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6466 set dummy strip
6467 if test $build = $target ; then
6468 STRIP_FOR_TARGET="$2"
6469 else
6470 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6474 else
6475 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
6481 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6482 if test -n "$with_build_time_tools"; then
6483 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6484 echo "configure:6485: checking for windres in $with_build_time_tools" >&5
6485 if test -x $with_build_time_tools/windres; then
6486 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
6487 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6488 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6489 else
6490 echo "$ac_t""no" 1>&6
6492 elif test $build != $host && test $have_gcc_for_target = yes; then
6493 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
6494 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
6495 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6498 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6499 # Extract the first word of "windres", so it can be a program name with args.
6500 set dummy windres; ac_word=$2
6501 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6502 echo "configure:6503: checking for $ac_word" >&5
6503 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6504 echo $ac_n "(cached) $ac_c" 1>&6
6505 else
6506 case "$WINDRES_FOR_TARGET" in
6508 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6510 ?:/*)
6511 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6515 ac_dummy="$gcc_cv_tool_dirs"
6516 for ac_dir in $ac_dummy; do
6517 test -z "$ac_dir" && ac_dir=.
6518 if test -f $ac_dir/$ac_word; then
6519 ac_cv_path_WINDRES_FOR_TARGET="$ac_dir/$ac_word"
6520 break
6522 done
6523 IFS="$ac_save_ifs"
6525 esac
6527 WINDRES_FOR_TARGET="$ac_cv_path_WINDRES_FOR_TARGET"
6528 if test -n "$WINDRES_FOR_TARGET"; then
6529 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6530 else
6531 echo "$ac_t""no" 1>&6
6535 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6536 if test -n "$with_build_time_tools"; then
6537 for ncn_progname in windres; do
6538 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6539 echo "configure:6540: checking for ${ncn_progname} in $with_build_time_tools" >&5
6540 if test -x $with_build_time_tools/${ncn_progname}; then
6541 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6542 echo "$ac_t""yes" 1>&6
6543 break
6544 else
6545 echo "$ac_t""no" 1>&6
6547 done
6550 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6551 for ncn_progname in windres; do
6552 if test -n "$ncn_target_tool_prefix"; then
6553 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6554 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6556 echo "configure:6557: checking for $ac_word" >&5
6557 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6558 echo $ac_n "(cached) $ac_c" 1>&6
6559 else
6560 if test -n "$WINDRES_FOR_TARGET"; then
6561 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6562 else
6563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6564 ac_dummy="$PATH"
6565 for ac_dir in $ac_dummy; do
6566 test -z "$ac_dir" && ac_dir=.
6567 if test -f $ac_dir/$ac_word; then
6568 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6569 break
6571 done
6572 IFS="$ac_save_ifs"
6575 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6576 if test -n "$WINDRES_FOR_TARGET"; then
6577 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6578 else
6579 echo "$ac_t""no" 1>&6
6583 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6585 set dummy ${ncn_progname}; ac_word=$2
6586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6587 echo "configure:6588: checking for $ac_word" >&5
6588 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6589 echo $ac_n "(cached) $ac_c" 1>&6
6590 else
6591 if test -n "$WINDRES_FOR_TARGET"; then
6592 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6593 else
6594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6595 ac_dummy="$PATH"
6596 for ac_dir in $ac_dummy; do
6597 test -z "$ac_dir" && ac_dir=.
6598 if test -f $ac_dir/$ac_word; then
6599 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
6600 break
6602 done
6603 IFS="$ac_save_ifs"
6606 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6607 if test -n "$WINDRES_FOR_TARGET"; then
6608 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6609 else
6610 echo "$ac_t""no" 1>&6
6614 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6615 done
6618 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6619 set dummy windres
6620 if test $build = $target ; then
6621 WINDRES_FOR_TARGET="$2"
6622 else
6623 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
6627 else
6628 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
6632 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
6634 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6635 echo "configure:6636: checking where to find the target ar" >&5
6636 if test "x${build}" != "x${host}" ; then
6637 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6638 # We already found the complete path
6639 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6640 else
6641 # Canadian cross, just use what we found
6642 echo "$ac_t""pre-installed" 1>&6
6644 else
6645 ok=yes
6646 case " ${configdirs} " in
6647 *" binutils "*) ;;
6648 *) ok=no ;;
6649 esac
6651 if test $ok = yes; then
6652 # An in-tree tool is available and we can use it
6653 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
6654 echo "$ac_t""just compiled" 1>&6
6655 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6656 # We already found the complete path
6657 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6658 elif test "x$target" = "x$host"; then
6659 # We can use an host tool
6660 AR_FOR_TARGET='$(AR)'
6661 echo "$ac_t""host tool" 1>&6
6662 else
6663 # We need a cross tool
6664 echo "$ac_t""pre-installed" 1>&6
6667 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6668 echo "configure:6669: checking where to find the target as" >&5
6669 if test "x${build}" != "x${host}" ; then
6670 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6671 # We already found the complete path
6672 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6673 else
6674 # Canadian cross, just use what we found
6675 echo "$ac_t""pre-installed" 1>&6
6677 else
6678 ok=yes
6679 case " ${configdirs} " in
6680 *" gas "*) ;;
6681 *) ok=no ;;
6682 esac
6684 if test $ok = yes; then
6685 # An in-tree tool is available and we can use it
6686 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
6687 echo "$ac_t""just compiled" 1>&6
6688 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6689 # We already found the complete path
6690 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6691 elif test "x$target" = "x$host"; then
6692 # We can use an host tool
6693 AS_FOR_TARGET='$(AS)'
6694 echo "$ac_t""host tool" 1>&6
6695 else
6696 # We need a cross tool
6697 echo "$ac_t""pre-installed" 1>&6
6700 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6701 echo "configure:6702: checking where to find the target cc" >&5
6702 if test "x${build}" != "x${host}" ; then
6703 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6704 # We already found the complete path
6705 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6706 else
6707 # Canadian cross, just use what we found
6708 echo "$ac_t""pre-installed" 1>&6
6710 else
6711 ok=yes
6712 case " ${configdirs} " in
6713 *" gcc "*) ;;
6714 *) ok=no ;;
6715 esac
6717 if test $ok = yes; then
6718 # An in-tree tool is available and we can use it
6719 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6720 echo "$ac_t""just compiled" 1>&6
6721 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6722 # We already found the complete path
6723 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6724 elif test "x$target" = "x$host"; then
6725 # We can use an host tool
6726 CC_FOR_TARGET='$(CC)'
6727 echo "$ac_t""host tool" 1>&6
6728 else
6729 # We need a cross tool
6730 echo "$ac_t""pre-installed" 1>&6
6733 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6734 echo "configure:6735: checking where to find the target c++" >&5
6735 if test "x${build}" != "x${host}" ; then
6736 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6737 # We already found the complete path
6738 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6739 else
6740 # Canadian cross, just use what we found
6741 echo "$ac_t""pre-installed" 1>&6
6743 else
6744 ok=yes
6745 case " ${configdirs} " in
6746 *" gcc "*) ;;
6747 *) ok=no ;;
6748 esac
6749 case ,${enable_languages}, in
6750 *,c++,*) ;;
6751 *) ok=no ;;
6752 esac
6753 if test $ok = yes; then
6754 # An in-tree tool is available and we can use it
6755 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'
6756 echo "$ac_t""just compiled" 1>&6
6757 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6758 # We already found the complete path
6759 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6760 elif test "x$target" = "x$host"; then
6761 # We can use an host tool
6762 CXX_FOR_TARGET='$(CXX)'
6763 echo "$ac_t""host tool" 1>&6
6764 else
6765 # We need a cross tool
6766 echo "$ac_t""pre-installed" 1>&6
6769 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6770 echo "configure:6771: checking where to find the target c++ for libstdc++" >&5
6771 if test "x${build}" != "x${host}" ; then
6772 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6773 # We already found the complete path
6774 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6775 else
6776 # Canadian cross, just use what we found
6777 echo "$ac_t""pre-installed" 1>&6
6779 else
6780 ok=yes
6781 case " ${configdirs} " in
6782 *" gcc "*) ;;
6783 *) ok=no ;;
6784 esac
6785 case ,${enable_languages}, in
6786 *,c++,*) ;;
6787 *) ok=no ;;
6788 esac
6789 if test $ok = yes; then
6790 # An in-tree tool is available and we can use it
6791 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'
6792 echo "$ac_t""just compiled" 1>&6
6793 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6794 # We already found the complete path
6795 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6796 elif test "x$target" = "x$host"; then
6797 # We can use an host tool
6798 RAW_CXX_FOR_TARGET='$(CXX)'
6799 echo "$ac_t""host tool" 1>&6
6800 else
6801 # We need a cross tool
6802 echo "$ac_t""pre-installed" 1>&6
6805 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6806 echo "configure:6807: checking where to find the target dlltool" >&5
6807 if test "x${build}" != "x${host}" ; then
6808 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6809 # We already found the complete path
6810 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6811 else
6812 # Canadian cross, just use what we found
6813 echo "$ac_t""pre-installed" 1>&6
6815 else
6816 ok=yes
6817 case " ${configdirs} " in
6818 *" binutils "*) ;;
6819 *) ok=no ;;
6820 esac
6822 if test $ok = yes; then
6823 # An in-tree tool is available and we can use it
6824 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6825 echo "$ac_t""just compiled" 1>&6
6826 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6827 # We already found the complete path
6828 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6829 elif test "x$target" = "x$host"; then
6830 # We can use an host tool
6831 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
6832 echo "$ac_t""host tool" 1>&6
6833 else
6834 # We need a cross tool
6835 echo "$ac_t""pre-installed" 1>&6
6838 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6839 echo "configure:6840: checking where to find the target gcc" >&5
6840 if test "x${build}" != "x${host}" ; then
6841 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6842 # We already found the complete path
6843 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6844 else
6845 # Canadian cross, just use what we found
6846 echo "$ac_t""pre-installed" 1>&6
6848 else
6849 ok=yes
6850 case " ${configdirs} " in
6851 *" gcc "*) ;;
6852 *) ok=no ;;
6853 esac
6855 if test $ok = yes; then
6856 # An in-tree tool is available and we can use it
6857 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6858 echo "$ac_t""just compiled" 1>&6
6859 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6860 # We already found the complete path
6861 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6862 elif test "x$target" = "x$host"; then
6863 # We can use an host tool
6864 GCC_FOR_TARGET='$()'
6865 echo "$ac_t""host tool" 1>&6
6866 else
6867 # We need a cross tool
6868 echo "$ac_t""pre-installed" 1>&6
6871 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6872 echo "configure:6873: checking where to find the target gcj" >&5
6873 if test "x${build}" != "x${host}" ; then
6874 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6875 # We already found the complete path
6876 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6877 else
6878 # Canadian cross, just use what we found
6879 echo "$ac_t""pre-installed" 1>&6
6881 else
6882 ok=yes
6883 case " ${configdirs} " in
6884 *" gcc "*) ;;
6885 *) ok=no ;;
6886 esac
6887 case ,${enable_languages}, in
6888 *,java,*) ;;
6889 *) ok=no ;;
6890 esac
6891 if test $ok = yes; then
6892 # An in-tree tool is available and we can use it
6893 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6894 echo "$ac_t""just compiled" 1>&6
6895 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6896 # We already found the complete path
6897 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6898 elif test "x$target" = "x$host"; then
6899 # We can use an host tool
6900 GCJ_FOR_TARGET='$(GCJ)'
6901 echo "$ac_t""host tool" 1>&6
6902 else
6903 # We need a cross tool
6904 echo "$ac_t""pre-installed" 1>&6
6907 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
6908 echo "configure:6909: checking where to find the target gfortran" >&5
6909 if test "x${build}" != "x${host}" ; then
6910 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6911 # We already found the complete path
6912 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6913 else
6914 # Canadian cross, just use what we found
6915 echo "$ac_t""pre-installed" 1>&6
6917 else
6918 ok=yes
6919 case " ${configdirs} " in
6920 *" gcc "*) ;;
6921 *) ok=no ;;
6922 esac
6923 case ,${enable_languages}, in
6924 *,fortran,*) ;;
6925 *) ok=no ;;
6926 esac
6927 if test $ok = yes; then
6928 # An in-tree tool is available and we can use it
6929 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
6930 echo "$ac_t""just compiled" 1>&6
6931 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6932 # We already found the complete path
6933 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6934 elif test "x$target" = "x$host"; then
6935 # We can use an host tool
6936 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
6937 echo "$ac_t""host tool" 1>&6
6938 else
6939 # We need a cross tool
6940 echo "$ac_t""pre-installed" 1>&6
6943 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
6944 echo "configure:6945: checking where to find the target ld" >&5
6945 if test "x${build}" != "x${host}" ; then
6946 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
6947 # We already found the complete path
6948 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6949 else
6950 # Canadian cross, just use what we found
6951 echo "$ac_t""pre-installed" 1>&6
6953 else
6954 ok=yes
6955 case " ${configdirs} " in
6956 *" ld "*) ;;
6957 *) ok=no ;;
6958 esac
6960 if test $ok = yes; then
6961 # An in-tree tool is available and we can use it
6962 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
6963 echo "$ac_t""just compiled" 1>&6
6964 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
6965 # We already found the complete path
6966 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6967 elif test "x$target" = "x$host"; then
6968 # We can use an host tool
6969 LD_FOR_TARGET='$(LD)'
6970 echo "$ac_t""host tool" 1>&6
6971 else
6972 # We need a cross tool
6973 echo "$ac_t""pre-installed" 1>&6
6976 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
6977 echo "configure:6978: checking where to find the target lipo" >&5
6978 if test "x${build}" != "x${host}" ; then
6979 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
6980 # We already found the complete path
6981 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6982 else
6983 # Canadian cross, just use what we found
6984 echo "$ac_t""pre-installed" 1>&6
6986 else
6987 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
6988 # We already found the complete path
6989 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6990 elif test "x$target" = "x$host"; then
6991 # We can use an host tool
6992 LIPO_FOR_TARGET='$(LIPO)'
6993 echo "$ac_t""host tool" 1>&6
6994 else
6995 # We need a cross tool
6996 echo "$ac_t""pre-installed" 1>&6
6999 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
7000 echo "configure:7001: checking where to find the target nm" >&5
7001 if test "x${build}" != "x${host}" ; then
7002 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7003 # We already found the complete path
7004 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7005 else
7006 # Canadian cross, just use what we found
7007 echo "$ac_t""pre-installed" 1>&6
7009 else
7010 ok=yes
7011 case " ${configdirs} " in
7012 *" binutils "*) ;;
7013 *) ok=no ;;
7014 esac
7016 if test $ok = yes; then
7017 # An in-tree tool is available and we can use it
7018 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7019 echo "$ac_t""just compiled" 1>&6
7020 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7021 # We already found the complete path
7022 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7023 elif test "x$target" = "x$host"; then
7024 # We can use an host tool
7025 NM_FOR_TARGET='$(NM)'
7026 echo "$ac_t""host tool" 1>&6
7027 else
7028 # We need a cross tool
7029 echo "$ac_t""pre-installed" 1>&6
7032 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7033 echo "configure:7034: checking where to find the target objdump" >&5
7034 if test "x${build}" != "x${host}" ; then
7035 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7036 # We already found the complete path
7037 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7038 else
7039 # Canadian cross, just use what we found
7040 echo "$ac_t""pre-installed" 1>&6
7042 else
7043 ok=yes
7044 case " ${configdirs} " in
7045 *" binutils "*) ;;
7046 *) ok=no ;;
7047 esac
7049 if test $ok = yes; then
7050 # An in-tree tool is available and we can use it
7051 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
7052 echo "$ac_t""just compiled" 1>&6
7053 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7054 # We already found the complete path
7055 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7056 elif test "x$target" = "x$host"; then
7057 # We can use an host tool
7058 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
7059 echo "$ac_t""host tool" 1>&6
7060 else
7061 # We need a cross tool
7062 echo "$ac_t""pre-installed" 1>&6
7065 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7066 echo "configure:7067: checking where to find the target ranlib" >&5
7067 if test "x${build}" != "x${host}" ; then
7068 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7069 # We already found the complete path
7070 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7071 else
7072 # Canadian cross, just use what we found
7073 echo "$ac_t""pre-installed" 1>&6
7075 else
7076 ok=yes
7077 case " ${configdirs} " in
7078 *" binutils "*) ;;
7079 *) ok=no ;;
7080 esac
7082 if test $ok = yes; then
7083 # An in-tree tool is available and we can use it
7084 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7085 echo "$ac_t""just compiled" 1>&6
7086 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7087 # We already found the complete path
7088 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7089 elif test "x$target" = "x$host"; then
7090 # We can use an host tool
7091 RANLIB_FOR_TARGET='$(RANLIB)'
7092 echo "$ac_t""host tool" 1>&6
7093 else
7094 # We need a cross tool
7095 echo "$ac_t""pre-installed" 1>&6
7098 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7099 echo "configure:7100: checking where to find the target strip" >&5
7100 if test "x${build}" != "x${host}" ; then
7101 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7102 # We already found the complete path
7103 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7104 else
7105 # Canadian cross, just use what we found
7106 echo "$ac_t""pre-installed" 1>&6
7108 else
7109 ok=yes
7110 case " ${configdirs} " in
7111 *" binutils "*) ;;
7112 *) ok=no ;;
7113 esac
7115 if test $ok = yes; then
7116 # An in-tree tool is available and we can use it
7117 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
7118 echo "$ac_t""just compiled" 1>&6
7119 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7120 # We already found the complete path
7121 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7122 elif test "x$target" = "x$host"; then
7123 # We can use an host tool
7124 STRIP_FOR_TARGET='$(STRIP)'
7125 echo "$ac_t""host tool" 1>&6
7126 else
7127 # We need a cross tool
7128 echo "$ac_t""pre-installed" 1>&6
7131 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7132 echo "configure:7133: checking where to find the target windres" >&5
7133 if test "x${build}" != "x${host}" ; then
7134 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7135 # We already found the complete path
7136 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7137 else
7138 # Canadian cross, just use what we found
7139 echo "$ac_t""pre-installed" 1>&6
7141 else
7142 ok=yes
7143 case " ${configdirs} " in
7144 *" binutils "*) ;;
7145 *) ok=no ;;
7146 esac
7148 if test $ok = yes; then
7149 # An in-tree tool is available and we can use it
7150 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
7151 echo "$ac_t""just compiled" 1>&6
7152 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7153 # We already found the complete path
7154 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7155 elif test "x$target" = "x$host"; then
7156 # We can use an host tool
7157 WINDRES_FOR_TARGET='$(WINDRES)'
7158 echo "$ac_t""host tool" 1>&6
7159 else
7160 # We need a cross tool
7161 echo "$ac_t""pre-installed" 1>&6
7168 # Certain tools may need extra flags.
7169 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7170 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7171 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
7173 # When building target libraries, except in a Canadian cross, we use
7174 # the same toolchain as the compiler we just built.
7175 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
7176 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
7177 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
7178 if test $host = $build; then
7179 case " $configdirs " in
7180 *" gcc "*)
7181 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
7182 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7183 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7185 esac
7192 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7193 echo "configure:7194: checking whether to enable maintainer-specific portions of Makefiles" >&5
7194 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7195 if test "${enable_maintainer_mode+set}" = set; then
7196 enableval="$enable_maintainer_mode"
7197 USE_MAINTAINER_MODE=$enableval
7198 else
7199 USE_MAINTAINER_MODE=no
7202 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7205 if test "$USE_MAINTAINER_MODE" = yes; then
7206 MAINTAINER_MODE_TRUE=
7207 MAINTAINER_MODE_FALSE='#'
7208 else
7209 MAINTAINER_MODE_TRUE='#'
7210 MAINTAINER_MODE_FALSE=
7212 MAINT=$MAINTAINER_MODE_TRUE
7214 # ---------------------
7215 # GCC bootstrap support
7216 # ---------------------
7218 # Stage specific cflags for build.
7219 stage1_cflags="-g"
7220 case $build in
7221 vax-*-*)
7222 case ${GCC} in
7223 yes) stage1_cflags="-g -Wa,-J" ;;
7224 *) stage1_cflags="-g -J" ;;
7225 esac ;;
7226 powerpc-*-darwin*)
7227 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7228 # sources; use -no-cpp-precomp to get to GNU cpp.
7229 # Apple's GCC has bugs in designated initializer handling, so disable
7230 # that too.
7231 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7233 esac
7236 # Enable -Werror in bootstrap stage2 and later.
7237 # Change the default to "no" on release branches.
7238 # Check whether --enable-werror or --disable-werror was given.
7239 if test "${enable_werror+set}" = set; then
7240 enableval="$enable_werror"
7242 else
7243 enable_werror=yes
7246 case ${enable_werror} in
7247 yes) stage2_werror_flag="--enable-werror-always" ;;
7248 *) stage2_werror_flag="" ;;
7249 esac
7252 # Flags needed to enable html installing and building
7253 # Check whether --with-datarootdir or --without-datarootdir was given.
7254 if test "${with_datarootdir+set}" = set; then
7255 withval="$with_datarootdir"
7256 datarootdir="\${prefix}/${withval}"
7257 else
7258 datarootdir="\${prefix}/share"
7262 # Check whether --with-docdir or --without-docdir was given.
7263 if test "${with_docdir+set}" = set; then
7264 withval="$with_docdir"
7265 docdir="\${prefix}/${withval}"
7266 else
7267 docdir="\${datarootdir}/doc"
7271 # Check whether --with-htmldir or --without-htmldir was given.
7272 if test "${with_htmldir+set}" = set; then
7273 withval="$with_htmldir"
7274 htmldir="\${prefix}/${withval}"
7275 else
7276 htmldir="\${docdir}"
7284 trap '' 1 2 15
7285 cat > confcache <<\EOF
7286 # This file is a shell script that caches the results of configure
7287 # tests run on this system so they can be shared between configure
7288 # scripts and configure runs. It is not useful on other systems.
7289 # If it contains results you don't want to keep, you may remove or edit it.
7291 # By default, configure uses ./config.cache as the cache file,
7292 # creating it if it does not exist already. You can give configure
7293 # the --cache-file=FILE option to use a different cache file; that is
7294 # what configure does when it calls configure scripts in
7295 # subdirectories, so they share the cache.
7296 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7297 # config.status only pays attention to the cache file if you give it the
7298 # --recheck option to rerun configure.
7301 # The following way of writing the cache mishandles newlines in values,
7302 # but we know of no workaround that is simple, portable, and efficient.
7303 # So, don't put newlines in cache variables' values.
7304 # Ultrix sh set writes to stderr and can't be redirected directly,
7305 # and sets the high bit in the cache file unless we assign to the vars.
7306 (set) 2>&1 |
7307 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7308 *ac_space=\ *)
7309 # `set' does not quote correctly, so add quotes (double-quote substitution
7310 # turns \\\\ into \\, and sed turns \\ into \).
7311 sed -n \
7312 -e "s/'/'\\\\''/g" \
7313 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7316 # `set' quotes correctly as required by POSIX, so do not add quotes.
7317 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7319 esac >> confcache
7320 if cmp -s $cache_file confcache; then
7322 else
7323 if test -w $cache_file; then
7324 echo "updating cache $cache_file"
7325 cat confcache > $cache_file
7326 else
7327 echo "not updating unwritable cache $cache_file"
7330 rm -f confcache
7332 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7334 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7335 # Let make expand exec_prefix.
7336 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7338 # Any assignment to VPATH causes Sun make to only execute
7339 # the first set of double-colon rules, so remove it if not needed.
7340 # If there is a colon in the path, we need to keep it.
7341 if test "x$srcdir" = x.; then
7342 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7345 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7347 # Transform confdefs.h into DEFS.
7348 # Protect against shell expansion while executing Makefile rules.
7349 # Protect against Makefile macro expansion.
7350 cat > conftest.defs <<\EOF
7351 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7352 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7353 s%\[%\\&%g
7354 s%\]%\\&%g
7355 s%\$%$$%g
7357 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
7358 rm -f conftest.defs
7361 # Without the "./", some shells look in PATH for config.status.
7362 : ${CONFIG_STATUS=./config.status}
7364 echo creating $CONFIG_STATUS
7365 rm -f $CONFIG_STATUS
7366 cat > $CONFIG_STATUS <<EOF
7367 #! /bin/sh
7368 # Generated automatically by configure.
7369 # Run this file to recreate the current configuration.
7370 # This directory was configured as follows,
7371 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7373 # $0 $ac_configure_args
7375 # Compiler output produced by configure, useful for debugging
7376 # configure, is in ./config.log if it exists.
7378 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7379 for ac_option
7381 case "\$ac_option" in
7382 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7383 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7384 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7385 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7386 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7387 exit 0 ;;
7388 -help | --help | --hel | --he | --h)
7389 echo "\$ac_cs_usage"; exit 0 ;;
7390 *) echo "\$ac_cs_usage"; exit 1 ;;
7391 esac
7392 done
7394 ac_given_srcdir=$srcdir
7395 ac_given_INSTALL="$INSTALL"
7397 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7399 cat >> $CONFIG_STATUS <<EOF
7401 # Protect against being on the right side of a sed subst in config.status.
7402 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7403 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7404 $ac_vpsub
7405 $extrasub
7406 s%@SHELL@%$SHELL%g
7407 s%@CFLAGS@%$CFLAGS%g
7408 s%@CPPFLAGS@%$CPPFLAGS%g
7409 s%@CXXFLAGS@%$CXXFLAGS%g
7410 s%@FFLAGS@%$FFLAGS%g
7411 s%@DEFS@%$DEFS%g
7412 s%@LDFLAGS@%$LDFLAGS%g
7413 s%@LIBS@%$LIBS%g
7414 s%@exec_prefix@%$exec_prefix%g
7415 s%@prefix@%$prefix%g
7416 s%@program_transform_name@%$program_transform_name%g
7417 s%@bindir@%$bindir%g
7418 s%@sbindir@%$sbindir%g
7419 s%@libexecdir@%$libexecdir%g
7420 s%@datadir@%$datadir%g
7421 s%@sysconfdir@%$sysconfdir%g
7422 s%@sharedstatedir@%$sharedstatedir%g
7423 s%@localstatedir@%$localstatedir%g
7424 s%@libdir@%$libdir%g
7425 s%@includedir@%$includedir%g
7426 s%@oldincludedir@%$oldincludedir%g
7427 s%@infodir@%$infodir%g
7428 s%@mandir@%$mandir%g
7429 s%@host@%$host%g
7430 s%@host_alias@%$host_alias%g
7431 s%@host_cpu@%$host_cpu%g
7432 s%@host_vendor@%$host_vendor%g
7433 s%@host_os@%$host_os%g
7434 s%@target@%$target%g
7435 s%@target_alias@%$target_alias%g
7436 s%@target_cpu@%$target_cpu%g
7437 s%@target_vendor@%$target_vendor%g
7438 s%@target_os@%$target_os%g
7439 s%@build@%$build%g
7440 s%@build_alias@%$build_alias%g
7441 s%@build_cpu@%$build_cpu%g
7442 s%@build_vendor@%$build_vendor%g
7443 s%@build_os@%$build_os%g
7444 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7445 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7446 s%@INSTALL_DATA@%$INSTALL_DATA%g
7447 s%@LN@%$LN%g
7448 s%@LN_S@%$LN_S%g
7449 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7450 s%@build_subdir@%$build_subdir%g
7451 s%@host_subdir@%$host_subdir%g
7452 s%@target_subdir@%$target_subdir%g
7453 s%@CC@%$CC%g
7454 s%@GNATBIND@%$GNATBIND%g
7455 s%@do_compare@%$do_compare%g
7456 s%@gmplibs@%$gmplibs%g
7457 s%@gmpinc@%$gmpinc%g
7458 s%@stage1_languages@%$stage1_languages%g
7459 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7460 /@serialization_dependencies@/r $serialization_dependencies
7461 s%@serialization_dependencies@%%g
7462 /@host_makefile_frag@/r $host_makefile_frag
7463 s%@host_makefile_frag@%%g
7464 /@target_makefile_frag@/r $target_makefile_frag
7465 s%@target_makefile_frag@%%g
7466 /@alphaieee_frag@/r $alphaieee_frag
7467 s%@alphaieee_frag@%%g
7468 /@ospace_frag@/r $ospace_frag
7469 s%@ospace_frag@%%g
7470 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7471 s%@tooldir@%$tooldir%g
7472 s%@build_tooldir@%$build_tooldir%g
7473 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7474 s%@GDB_TK@%$GDB_TK%g
7475 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7476 s%@build_configargs@%$build_configargs%g
7477 s%@build_configdirs@%$build_configdirs%g
7478 s%@host_configargs@%$host_configargs%g
7479 s%@configdirs@%$configdirs%g
7480 s%@target_configargs@%$target_configargs%g
7481 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7482 s%@config_shell@%$config_shell%g
7483 s%@YACC@%$YACC%g
7484 s%@BISON@%$BISON%g
7485 s%@M4@%$M4%g
7486 s%@LEX@%$LEX%g
7487 s%@FLEX@%$FLEX%g
7488 s%@MAKEINFO@%$MAKEINFO%g
7489 s%@EXPECT@%$EXPECT%g
7490 s%@RUNTEST@%$RUNTEST%g
7491 s%@AR@%$AR%g
7492 s%@AS@%$AS%g
7493 s%@DLLTOOL@%$DLLTOOL%g
7494 s%@LD@%$LD%g
7495 s%@LIPO@%$LIPO%g
7496 s%@NM@%$NM%g
7497 s%@RANLIB@%$RANLIB%g
7498 s%@STRIP@%$STRIP%g
7499 s%@WINDRES@%$WINDRES%g
7500 s%@OBJCOPY@%$OBJCOPY%g
7501 s%@OBJDUMP@%$OBJDUMP%g
7502 s%@CXX@%$CXX%g
7503 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7504 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7505 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7506 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7507 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7508 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7509 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7510 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7511 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7512 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7513 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7514 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7515 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7516 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7517 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7518 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7519 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7520 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7521 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7522 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7523 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7524 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7525 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7526 s%@MAINT@%$MAINT%g
7527 s%@stage1_cflags@%$stage1_cflags%g
7528 s%@stage2_werror_flag@%$stage2_werror_flag%g
7529 s%@datarootdir@%$datarootdir%g
7530 s%@docdir@%$docdir%g
7531 s%@htmldir@%$htmldir%g
7533 CEOF
7536 cat >> $CONFIG_STATUS <<\EOF
7538 # Split the substitutions into bite-sized pieces for seds with
7539 # small command number limits, like on Digital OSF/1 and HP-UX.
7540 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7541 ac_file=1 # Number of current file.
7542 ac_beg=1 # First line for current file.
7543 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7544 ac_more_lines=:
7545 ac_sed_cmds=""
7546 while $ac_more_lines; do
7547 if test $ac_beg -gt 1; then
7548 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7549 else
7550 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7552 if test ! -s conftest.s$ac_file; then
7553 ac_more_lines=false
7554 rm -f conftest.s$ac_file
7555 else
7556 if test -z "$ac_sed_cmds"; then
7557 ac_sed_cmds="sed -f conftest.s$ac_file"
7558 else
7559 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7561 ac_file=`expr $ac_file + 1`
7562 ac_beg=$ac_end
7563 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7565 done
7566 if test -z "$ac_sed_cmds"; then
7567 ac_sed_cmds=cat
7571 cat >> $CONFIG_STATUS <<EOF
7573 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7575 cat >> $CONFIG_STATUS <<\EOF
7576 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7577 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7578 case "$ac_file" in
7579 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7580 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7581 *) ac_file_in="${ac_file}.in" ;;
7582 esac
7584 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7586 # Remove last slash and all that follows it. Not all systems have dirname.
7587 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7588 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7589 # The file is in a subdirectory.
7590 test ! -d "$ac_dir" && mkdir "$ac_dir"
7591 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7592 # A "../" for each directory in $ac_dir_suffix.
7593 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7594 else
7595 ac_dir_suffix= ac_dots=
7598 case "$ac_given_srcdir" in
7599 .) srcdir=.
7600 if test -z "$ac_dots"; then top_srcdir=.
7601 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7602 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7603 *) # Relative path.
7604 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7605 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7606 esac
7608 case "$ac_given_INSTALL" in
7609 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7610 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7611 esac
7613 echo creating "$ac_file"
7614 rm -f "$ac_file"
7615 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7616 case "$ac_file" in
7617 *Makefile*) ac_comsub="1i\\
7618 # $configure_input" ;;
7619 *) ac_comsub= ;;
7620 esac
7622 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7623 sed -e "$ac_comsub
7624 s%@configure_input@%$configure_input%g
7625 s%@srcdir@%$srcdir%g
7626 s%@top_srcdir@%$top_srcdir%g
7627 s%@INSTALL@%$INSTALL%g
7628 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7629 fi; done
7630 rm -f conftest.s*
7633 cat >> $CONFIG_STATUS <<EOF
7636 cat >> $CONFIG_STATUS <<\EOF
7638 exit 0
7640 chmod +x $CONFIG_STATUS
7641 rm -fr confdefs* $ac_clean_files
7642 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1