2006-02-14 Paolo Bonzini <bonzini@gnu.org>
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
cac3d6c4 2
a0da8069 3# Guess values for system-dependent variables and create Makefiles.
cac3d6c4
CM
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
a0da8069
NN
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
cac3d6c4
CM
10# Defaults:
11ac_help=
a0da8069 12ac_default_prefix=/usr/local
cac3d6c4
CM
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-libada Builds libada directory"
16ac_help="$ac_help
17 --enable-libssp Builds libssp directory"
18ac_help="$ac_help
19 --with-mpfr-dir=PATH Specify source directory for MPFR library"
20ac_help="$ac_help
21 --with-mpfr=PATH Specify directory for installed MPFR library"
22ac_help="$ac_help
23 --with-gmp-dir=PATH Specify source directory for GMP library"
24ac_help="$ac_help
25 --with-gmp=PATH Specify directory for installed GMP library"
26ac_help="$ac_help
27 --with-build-sysroot=sysroot
28 use sysroot as the system root during the build"
29ac_help="$ac_help
80911fe1 30 --enable-bootstrap Enable bootstrapping [yes if native build]"
cac3d6c4
CM
31ac_help="$ac_help
32 --enable-serial-[{host,target,build}-]configure
33 Force sequential configuration of
34 sub-packages for the host, target or build
35 machine, or all sub-packages"
2429c060
PB
36ac_help="$ac_help
37 --with-build-time-tools=path
38 use given path to find target tools during the build"
cac3d6c4
CM
39ac_help="$ac_help
40 --enable-maintainer-mode enable make rules and dependencies not useful
41 (and sometimes confusing) to the casual installer"
42ac_help="$ac_help
43 --enable-werror enable -Werror in bootstrap stage2 and later"
a0da8069
NN
44
45# Initialize some variables set by options.
46# The variables have the same names as the options, with
47# dashes changed to underlines.
cac3d6c4
CM
48build=NONE
49cache_file=./config.cache
a0da8069 50exec_prefix=NONE
cac3d6c4 51host=NONE
a0da8069 52no_create=
cac3d6c4 53nonopt=NONE
a0da8069
NN
54no_recursion=
55prefix=NONE
56program_prefix=NONE
57program_suffix=NONE
58program_transform_name=s,x,x,
59silent=
60site=
61srcdir=
cac3d6c4 62target=NONE
a0da8069
NN
63verbose=
64x_includes=NONE
65x_libraries=NONE
66bindir='${exec_prefix}/bin'
67sbindir='${exec_prefix}/sbin'
68libexecdir='${exec_prefix}/libexec'
69datadir='${prefix}/share'
70sysconfdir='${prefix}/etc'
71sharedstatedir='${prefix}/com'
72localstatedir='${prefix}/var'
73libdir='${exec_prefix}/lib'
74includedir='${prefix}/include'
75oldincludedir='/usr/include'
76infodir='${prefix}/info'
77mandir='${prefix}/man'
252b5132 78
cac3d6c4
CM
79# Initialize some other variables.
80subdirs=
81MFLAGS= MAKEFLAGS=
82SHELL=${CONFIG_SHELL-/bin/sh}
83# Maximum number of lines to put in a shell here document.
84ac_max_here_lines=12
85
a0da8069
NN
86ac_prev=
87for ac_option
88do
cac3d6c4 89
a0da8069
NN
90 # If the previous option needs an argument, assign it.
91 if test -n "$ac_prev"; then
92 eval "$ac_prev=\$ac_option"
93 ac_prev=
94 continue
95 fi
252b5132 96
cac3d6c4
CM
97 case "$ac_option" in
98 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 *) ac_optarg= ;;
100 esac
a0da8069
NN
101
102 # Accept the important Cygnus configure options, so we can diagnose typos.
103
cac3d6c4 104 case "$ac_option" in
a0da8069
NN
105
106 -bindir | --bindir | --bindi | --bind | --bin | --bi)
107 ac_prev=bindir ;;
108 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
cac3d6c4 109 bindir="$ac_optarg" ;;
a0da8069
NN
110
111 -build | --build | --buil | --bui | --bu)
cac3d6c4 112 ac_prev=build ;;
a0da8069 113 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
cac3d6c4 114 build="$ac_optarg" ;;
a0da8069
NN
115
116 -cache-file | --cache-file | --cache-fil | --cache-fi \
117 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
118 ac_prev=cache_file ;;
119 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
120 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cac3d6c4 121 cache_file="$ac_optarg" ;;
a0da8069
NN
122
123 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
124 ac_prev=datadir ;;
125 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
126 | --da=*)
cac3d6c4 127 datadir="$ac_optarg" ;;
a0da8069
NN
128
129 -disable-* | --disable-*)
cac3d6c4 130 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
a0da8069 131 # Reject names that are not valid shell variable names.
cac3d6c4
CM
132 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 fi
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}=no" ;;
a0da8069
NN
137
138 -enable-* | --enable-*)
cac3d6c4 139 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
a0da8069 140 # Reject names that are not valid shell variable names.
cac3d6c4
CM
141 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 fi
144 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
145 case "$ac_option" in
146 *=*) ;;
a0da8069
NN
147 *) ac_optarg=yes ;;
148 esac
cac3d6c4 149 eval "enable_${ac_feature}='$ac_optarg'" ;;
a0da8069
NN
150
151 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
152 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
153 | --exec | --exe | --ex)
154 ac_prev=exec_prefix ;;
155 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
156 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
157 | --exec=* | --exe=* | --ex=*)
cac3d6c4 158 exec_prefix="$ac_optarg" ;;
a0da8069
NN
159
160 -gas | --gas | --ga | --g)
161 # Obsolete; use --with-gas.
162 with_gas=yes ;;
163
cac3d6c4
CM
164 -help | --help | --hel | --he)
165 # Omit some internal or obsolete options to make the list less imposing.
166 # This message is too long to be a string in the A/UX 3.1 sh.
167 cat << EOF
168Usage: configure [options] [host]
169Options: [defaults in brackets after descriptions]
170Configuration:
171 --cache-file=FILE cache test results in FILE
172 --help print this message
173 --no-create do not create output files
174 --quiet, --silent do not print \`checking...' messages
175 --version print the version of autoconf that created configure
176Directory and file names:
177 --prefix=PREFIX install architecture-independent files in PREFIX
178 [$ac_default_prefix]
179 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
180 [same as prefix]
181 --bindir=DIR user executables in DIR [EPREFIX/bin]
182 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
183 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
184 --datadir=DIR read-only architecture-independent data in DIR
185 [PREFIX/share]
186 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
187 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 [PREFIX/com]
189 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
190 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
191 --includedir=DIR C header files in DIR [PREFIX/include]
192 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
193 --infodir=DIR info documentation in DIR [PREFIX/info]
194 --mandir=DIR man documentation in DIR [PREFIX/man]
195 --srcdir=DIR find the sources in DIR [configure dir or ..]
196 --program-prefix=PREFIX prepend PREFIX to installed program names
197 --program-suffix=SUFFIX append SUFFIX to installed program names
198 --program-transform-name=PROGRAM
199 run sed PROGRAM on installed program names
200EOF
201 cat << EOF
202Host type:
203 --build=BUILD configure for building on BUILD [BUILD=HOST]
204 --host=HOST configure for HOST [guessed]
205 --target=TARGET configure for TARGET [TARGET=HOST]
206Features and packages:
207 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
208 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
209 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
210 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
211 --x-includes=DIR X include files are in DIR
212 --x-libraries=DIR X library files are in DIR
213EOF
214 if test -n "$ac_help"; then
215 echo "--enable and --with options recognized:$ac_help"
216 fi
217 exit 0 ;;
a0da8069
NN
218
219 -host | --host | --hos | --ho)
cac3d6c4 220 ac_prev=host ;;
a0da8069 221 -host=* | --host=* | --hos=* | --ho=*)
cac3d6c4 222 host="$ac_optarg" ;;
a0da8069
NN
223
224 -includedir | --includedir | --includedi | --included | --include \
225 | --includ | --inclu | --incl | --inc)
226 ac_prev=includedir ;;
227 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
228 | --includ=* | --inclu=* | --incl=* | --inc=*)
cac3d6c4 229 includedir="$ac_optarg" ;;
a0da8069
NN
230
231 -infodir | --infodir | --infodi | --infod | --info | --inf)
232 ac_prev=infodir ;;
233 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
cac3d6c4 234 infodir="$ac_optarg" ;;
a0da8069
NN
235
236 -libdir | --libdir | --libdi | --libd)
237 ac_prev=libdir ;;
238 -libdir=* | --libdir=* | --libdi=* | --libd=*)
cac3d6c4 239 libdir="$ac_optarg" ;;
a0da8069
NN
240
241 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
242 | --libexe | --libex | --libe)
243 ac_prev=libexecdir ;;
244 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
245 | --libexe=* | --libex=* | --libe=*)
cac3d6c4 246 libexecdir="$ac_optarg" ;;
a0da8069
NN
247
248 -localstatedir | --localstatedir | --localstatedi | --localstated \
249 | --localstate | --localstat | --localsta | --localst \
250 | --locals | --local | --loca | --loc | --lo)
251 ac_prev=localstatedir ;;
252 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
253 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
254 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
cac3d6c4 255 localstatedir="$ac_optarg" ;;
a0da8069
NN
256
257 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
258 ac_prev=mandir ;;
259 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
cac3d6c4 260 mandir="$ac_optarg" ;;
a0da8069
NN
261
262 -nfp | --nfp | --nf)
263 # Obsolete; use --without-fp.
264 with_fp=no ;;
265
266 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cac3d6c4 267 | --no-cr | --no-c)
a0da8069
NN
268 no_create=yes ;;
269
270 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
271 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
272 no_recursion=yes ;;
273
274 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
275 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
276 | --oldin | --oldi | --old | --ol | --o)
277 ac_prev=oldincludedir ;;
278 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
279 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
280 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
cac3d6c4 281 oldincludedir="$ac_optarg" ;;
a0da8069
NN
282
283 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
284 ac_prev=prefix ;;
285 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
cac3d6c4 286 prefix="$ac_optarg" ;;
a0da8069
NN
287
288 -program-prefix | --program-prefix | --program-prefi | --program-pref \
289 | --program-pre | --program-pr | --program-p)
290 ac_prev=program_prefix ;;
291 -program-prefix=* | --program-prefix=* | --program-prefi=* \
292 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
cac3d6c4 293 program_prefix="$ac_optarg" ;;
a0da8069
NN
294
295 -program-suffix | --program-suffix | --program-suffi | --program-suff \
296 | --program-suf | --program-su | --program-s)
297 ac_prev=program_suffix ;;
298 -program-suffix=* | --program-suffix=* | --program-suffi=* \
299 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
cac3d6c4 300 program_suffix="$ac_optarg" ;;
a0da8069
NN
301
302 -program-transform-name | --program-transform-name \
303 | --program-transform-nam | --program-transform-na \
304 | --program-transform-n | --program-transform- \
305 | --program-transform | --program-transfor \
306 | --program-transfo | --program-transf \
307 | --program-trans | --program-tran \
308 | --progr-tra | --program-tr | --program-t)
309 ac_prev=program_transform_name ;;
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=*)
cac3d6c4 317 program_transform_name="$ac_optarg" ;;
a0da8069
NN
318
319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
320 | -silent | --silent | --silen | --sile | --sil)
321 silent=yes ;;
322
323 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
324 ac_prev=sbindir ;;
325 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
326 | --sbi=* | --sb=*)
cac3d6c4 327 sbindir="$ac_optarg" ;;
a0da8069
NN
328
329 -sharedstatedir | --sharedstatedir | --sharedstatedi \
330 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
331 | --sharedst | --shareds | --shared | --share | --shar \
332 | --sha | --sh)
333 ac_prev=sharedstatedir ;;
334 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
335 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
336 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
337 | --sha=* | --sh=*)
cac3d6c4 338 sharedstatedir="$ac_optarg" ;;
a0da8069
NN
339
340 -site | --site | --sit)
341 ac_prev=site ;;
342 -site=* | --site=* | --sit=*)
cac3d6c4 343 site="$ac_optarg" ;;
a0da8069
NN
344
345 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
346 ac_prev=srcdir ;;
347 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
cac3d6c4 348 srcdir="$ac_optarg" ;;
a0da8069
NN
349
350 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
351 | --syscon | --sysco | --sysc | --sys | --sy)
352 ac_prev=sysconfdir ;;
353 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
354 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
cac3d6c4 355 sysconfdir="$ac_optarg" ;;
a0da8069
NN
356
357 -target | --target | --targe | --targ | --tar | --ta | --t)
cac3d6c4 358 ac_prev=target ;;
a0da8069 359 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
cac3d6c4 360 target="$ac_optarg" ;;
a0da8069
NN
361
362 -v | -verbose | --verbose | --verbos | --verbo | --verb)
363 verbose=yes ;;
364
cac3d6c4
CM
365 -version | --version | --versio | --versi | --vers)
366 echo "configure generated by autoconf version 2.13"
367 exit 0 ;;
a0da8069
NN
368
369 -with-* | --with-*)
cac3d6c4 370 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
a0da8069 371 # Reject names that are not valid shell variable names.
cac3d6c4
CM
372 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 fi
a0da8069 375 ac_package=`echo $ac_package| sed 's/-/_/g'`
cac3d6c4
CM
376 case "$ac_option" in
377 *=*) ;;
a0da8069
NN
378 *) ac_optarg=yes ;;
379 esac
cac3d6c4 380 eval "with_${ac_package}='$ac_optarg'" ;;
a0da8069
NN
381
382 -without-* | --without-*)
cac3d6c4 383 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
a0da8069 384 # Reject names that are not valid shell variable names.
cac3d6c4
CM
385 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 fi
388 ac_package=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}=no" ;;
a0da8069
NN
390
391 --x)
392 # Obsolete; use --with-x.
393 with_x=yes ;;
394
395 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
396 | --x-incl | --x-inc | --x-in | --x-i)
397 ac_prev=x_includes ;;
398 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
399 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
cac3d6c4 400 x_includes="$ac_optarg" ;;
a0da8069
NN
401
402 -x-libraries | --x-libraries | --x-librarie | --x-librari \
403 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
404 ac_prev=x_libraries ;;
405 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
406 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
cac3d6c4 407 x_libraries="$ac_optarg" ;;
a0da8069 408
cac3d6c4 409 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
a0da8069
NN
410 ;;
411
412 *)
cac3d6c4
CM
413 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
414 echo "configure: warning: $ac_option: invalid host type" 1>&2
415 fi
416 if test "x$nonopt" != xNONE; then
417 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
418 fi
419 nonopt="$ac_option"
a0da8069
NN
420 ;;
421
422 esac
423done
424
425if test -n "$ac_prev"; then
cac3d6c4 426 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
a0da8069 427fi
a0da8069 428
cac3d6c4
CM
429trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430
431# File descriptor usage:
432# 0 standard input
433# 1 file creation
434# 2 errors and warnings
435# 3 some systems may open it to /dev/tty
436# 4 used on the Kubota Titan
437# 6 checking for... messages and results
438# 5 compiler messages saved in config.log
439if test "$silent" = yes; then
440 exec 6>/dev/null
441else
442 exec 6>&1
443fi
444exec 5>./config.log
445
446echo "\
447This file contains any messages produced by compilers while
448running configure, to aid debugging if configure makes a mistake.
449" 1>&5
a0da8069 450
cac3d6c4
CM
451# Strip out --no-create and --no-recursion so they do not pile up.
452# Also quote any args containing shell metacharacters.
453ac_configure_args=
454for ac_arg
a0da8069 455do
cac3d6c4
CM
456 case "$ac_arg" in
457 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
458 | --no-cr | --no-c) ;;
459 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
460 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
462 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
463 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
a0da8069
NN
464 esac
465done
466
cac3d6c4
CM
467# NLS nuisances.
468# Only set these to C if already set. These must not be set unconditionally
469# because not all systems understand e.g. LANG=C (notably SCO).
470# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
471# Non-C LC_CTYPE values break the ctype check.
472if test "${LANG+set}" = set; then LANG=C; export LANG; fi
473if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
474if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
475if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
376a0e54 476
cac3d6c4
CM
477# confdefs.h avoids OS command line length limits that DEFS can exceed.
478rm -rf conftest* confdefs.h
479# AIX cpp loses on an empty file, so make sure it contains at least a newline.
480echo > confdefs.h
a0da8069 481
cac3d6c4
CM
482# A filename unique to this package, relative to the directory that
483# configure is in, which we can look for to find out if srcdir is correct.
484ac_unique_file=move-if-change
a0da8069
NN
485
486# Find the source files, if location was not specified.
487if test -z "$srcdir"; then
488 ac_srcdir_defaulted=yes
489 # Try the directory containing this script, then its parent.
cac3d6c4
CM
490 ac_prog=$0
491 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
492 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
a0da8069
NN
493 srcdir=$ac_confdir
494 if test ! -r $srcdir/$ac_unique_file; then
495 srcdir=..
496 fi
497else
498 ac_srcdir_defaulted=no
499fi
500if test ! -r $srcdir/$ac_unique_file; then
501 if test "$ac_srcdir_defaulted" = yes; then
cac3d6c4 502 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
a0da8069 503 else
cac3d6c4 504 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
a0da8069
NN
505 fi
506fi
cac3d6c4 507srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
a0da8069
NN
508
509# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
510if test -z "$CONFIG_SITE"; then
511 if test "x$prefix" != xNONE; then
512 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
513 else
514 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
515 fi
516fi
517for ac_site_file in $CONFIG_SITE; do
518 if test -r "$ac_site_file"; then
cac3d6c4 519 echo "loading site script $ac_site_file"
a0da8069
NN
520 . "$ac_site_file"
521 fi
522done
523
524if test -r "$cache_file"; then
cac3d6c4
CM
525 echo "loading cache $cache_file"
526 . $cache_file
a0da8069 527else
cac3d6c4
CM
528 echo "creating cache $cache_file"
529 > $cache_file
a0da8069
NN
530fi
531
532ac_ext=c
cac3d6c4 533# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
a0da8069 534ac_cpp='$CPP $CPPFLAGS'
cac3d6c4
CM
535ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
536ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
537cross_compiling=$ac_cv_prog_cc_cross
538
539ac_exeext=
540ac_objext=o
541if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
542 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
543 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
544 ac_n= ac_c='
545' ac_t=' '
546 else
547 ac_n=-n ac_c= ac_t=
548 fi
549else
550 ac_n= ac_c='\c' ac_t=
551fi
a0da8069
NN
552
553
75778ec4 554
a0da8069 555ac_aux_dir=
315b3b02 556for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
557 if test -f $ac_dir/install-sh; then
558 ac_aux_dir=$ac_dir
559 ac_install_sh="$ac_aux_dir/install-sh -c"
560 break
561 elif test -f $ac_dir/install.sh; then
562 ac_aux_dir=$ac_dir
563 ac_install_sh="$ac_aux_dir/install.sh -c"
564 break
565 fi
566done
567if test -z "$ac_aux_dir"; then
cac3d6c4 568 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
a0da8069 569fi
cac3d6c4
CM
570ac_config_guess=$ac_aux_dir/config.guess
571ac_config_sub=$ac_aux_dir/config.sub
572ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
a0da8069
NN
573
574
cac3d6c4
CM
575# Do some error checking and defaulting for the host and target type.
576# The inputs are:
577# configure --host=HOST --target=TARGET --build=BUILD NONOPT
578#
579# The rules are:
580# 1. You are not allowed to specify --host, --target, and nonopt at the
581# same time.
582# 2. Host defaults to nonopt.
583# 3. If nonopt is not specified, then host defaults to the current host,
584# as determined by config.guess.
585# 4. Target and build default to nonopt.
586# 5. If nonopt is not specified, then target and build default to host.
a0da8069
NN
587
588# The aliases save the names the user supplied, while $host etc.
589# will get canonicalized.
cac3d6c4
CM
590case $host---$target---$nonopt in
591NONE---*---* | *---NONE---* | *---*---NONE) ;;
592*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
593esac
594
595
596# Make sure we can run config.sub.
597if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
598else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
599fi
600
601echo $ac_n "checking host system type""... $ac_c" 1>&6
2429c060 602echo "configure:603: checking host system type" >&5
cac3d6c4
CM
603
604host_alias=$host
605case "$host_alias" in
606NONE)
607 case $nonopt in
608 NONE)
609 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
610 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
611 fi ;;
612 *) host_alias=$nonopt ;;
613 esac ;;
614esac
615
616host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
617host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
618host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
619host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
620echo "$ac_t""$host" 1>&6
621
622echo $ac_n "checking target system type""... $ac_c" 1>&6
2429c060 623echo "configure:624: checking target system type" >&5
cac3d6c4
CM
624
625target_alias=$target
626case "$target_alias" in
627NONE)
628 case $nonopt in
629 NONE) target_alias=$host_alias ;;
630 *) target_alias=$nonopt ;;
631 esac ;;
632esac
633
634target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
635target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
638echo "$ac_t""$target" 1>&6
639
640echo $ac_n "checking build system type""... $ac_c" 1>&6
2429c060 641echo "configure:642: checking build system type" >&5
cac3d6c4
CM
642
643build_alias=$build
644case "$build_alias" in
645NONE)
646 case $nonopt in
647 NONE) build_alias=$host_alias ;;
648 *) build_alias=$nonopt ;;
649 esac ;;
650esac
651
652build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
653build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
654build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
655build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
656echo "$ac_t""$build" 1>&6
657
658test "$host_alias" != "$target_alias" &&
a0da8069
NN
659 test "$program_prefix$program_suffix$program_transform_name" = \
660 NONENONEs,x,x, &&
661 program_prefix=${target_alias}-
cac3d6c4
CM
662
663if test "$program_transform_name" = s,x,x,; then
664 program_transform_name=
665else
666 # Double any \ or $. echo might interpret backslashes.
667 cat <<\EOF_SED > conftestsed
668s,\\,\\\\,g; s,\$,$$,g
669EOF_SED
670 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
671 rm -f conftestsed
672fi
a0da8069 673test "$program_prefix" != NONE &&
cac3d6c4 674 program_transform_name="s,^,${program_prefix},; $program_transform_name"
a0da8069
NN
675# Use a double $ so make ignores it.
676test "$program_suffix" != NONE &&
cac3d6c4
CM
677 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
678
679# sed with no file args requires a program.
680test "$program_transform_name" = "" && program_transform_name="s,x,x,"
a0da8069
NN
681
682
e5c3f801
NN
683# Get 'install' or 'install-sh' and its variants.
684# Find a good install program. We prefer a C program (faster),
685# so one script is as good as another. But avoid the broken or
686# incompatible versions:
687# SysV /etc/install, /usr/sbin/install
688# SunOS /usr/etc/install
689# IRIX /sbin/install
690# AIX /bin/install
691# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
692# AFS /usr/afsws/bin/install, which mishandles nonexistent args
693# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
694# ./install, which can be erroneously created by make from ./install.sh.
cac3d6c4 695echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2429c060 696echo "configure:697: checking for a BSD compatible install" >&5
e5c3f801 697if test -z "$INSTALL"; then
cac3d6c4
CM
698if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
700else
701 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
702 for ac_dir in $PATH; do
703 # Account for people who put trailing slashes in PATH elements.
704 case "$ac_dir/" in
705 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
706 *)
707 # OSF1 and SCO ODT 3.0 have their own names for install.
708 # Don't use installbsd from OSF since it installs stuff as root
709 # by default.
710 for ac_prog in ginstall scoinst install; do
711 if test -f $ac_dir/$ac_prog; then
e5c3f801 712 if test $ac_prog = install &&
cac3d6c4 713 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
e5c3f801
NN
714 # AIX install. It has an incompatible calling convention.
715 :
716 else
cac3d6c4
CM
717 ac_cv_path_install="$ac_dir/$ac_prog -c"
718 break 2
e5c3f801
NN
719 fi
720 fi
721 done
cac3d6c4
CM
722 ;;
723 esac
724 done
725 IFS="$ac_save_IFS"
e5c3f801
NN
726
727fi
728 if test "${ac_cv_path_install+set}" = set; then
cac3d6c4 729 INSTALL="$ac_cv_path_install"
e5c3f801
NN
730 else
731 # As a last resort, use the slow shell script. We don't cache a
732 # path for INSTALL within a source directory, because that will
733 # break other packages using the cache if that directory is
734 # removed, or if the path is relative.
cac3d6c4 735 INSTALL="$ac_install_sh"
e5c3f801
NN
736 fi
737fi
cac3d6c4 738echo "$ac_t""$INSTALL" 1>&6
e5c3f801
NN
739
740# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
741# It thinks the first close brace ends the variable substitution.
742test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
743
cac3d6c4 744test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
e5c3f801
NN
745
746test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
747
cac3d6c4 748echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2429c060 749echo "configure:750: checking whether ln works" >&5
cac3d6c4
CM
750if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
656fdd47
PB
752else
753 rm -f conftestdata_t
754echo >conftestdata_f
755if ln conftestdata_f conftestdata_t 2>/dev/null
756then
757 acx_cv_prog_LN=ln
758else
759 acx_cv_prog_LN=no
760fi
761rm -f conftestdata_f conftestdata_t
762
763fi
764if test $acx_cv_prog_LN = no; then
765 LN="cp"
cac3d6c4 766 echo "$ac_t""no, using $LN" 1>&6
656fdd47
PB
767else
768 LN="$acx_cv_prog_LN"
cac3d6c4 769 echo "$ac_t""yes" 1>&6
656fdd47
PB
770fi
771
cac3d6c4 772echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2429c060 773echo "configure:774: checking whether ln -s works" >&5
cac3d6c4
CM
774if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
775 echo $ac_n "(cached) $ac_c" 1>&6
776else
777 rm -f conftestdata
778if ln -s X conftestdata 2>/dev/null
779then
780 rm -f conftestdata
781 ac_cv_prog_LN_S="ln -s"
782else
783 ac_cv_prog_LN_S=ln
784fi
785fi
786LN_S="$ac_cv_prog_LN_S"
787if test "$ac_cv_prog_LN_S" = "ln -s"; then
788 echo "$ac_t""yes" 1>&6
dfdffa2c 789else
cac3d6c4 790 echo "$ac_t""no" 1>&6
dfdffa2c
PB
791fi
792
e5c3f801 793
252b5132 794### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
795### If we are on Windows, search for the shell. This will permit people
796### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
797### without also having to set CONFIG_SHELL. This code will work when
798### using bash, which sets OSTYPE.
799case "${OSTYPE}" in
800*win32*)
a0da8069
NN
801 if test x${CONFIG_SHELL} = x ; then
802 if test ! -f /bin/sh ; then
803 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
804 CONFIG_SHELL=${SHELL}
805 export CONFIG_SHELL
806 else
807 for prog in sh sh.exe bash bash.exe; do
808 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
809 for dir in $PATH; do
810 test -z "$dir" && dir=.
811 if test -f $dir/$prog; then
812 CONFIG_SHELL=$dir/$prog
813 export CONFIG_SHELL
814 break
815 fi
816 done
817 IFS="$save_ifs"
818 test -n "${CONFIG_SHELL}" && break
819 done
820 fi
821 fi
822 fi
823 ;;
824esac
825
826config_shell=${CONFIG_SHELL-/bin/sh}
827
252b5132
RH
828progname=$0
829# if PWD already has a value, it is probably wrong.
a0da8069 830if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 831
d2cc0e0d 832# Export original configure arguments for use by sub-configures. These
8ff944f6
DJ
833# will be expanded by make, so quote '$'.
834tmp="$progname $@"
835sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
836$tmp
d2cc0e0d 837EOF_SED
8ff944f6
DJ
838TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
839rm -f conftestsed.out
586c0873 840
75205f78 841
a0da8069 842moveifchange=${srcdir}/move-if-change
252b5132 843
0fdbe983
DJ
844srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
845
846# We pass INSTALL explicitly to sub-makes. Make sure that it is not
847# a relative path.
848if test "$INSTALL" = "${srcdir}/install-sh -c"; then
849 INSTALL="${srcpwd}/install-sh -c"
850fi
851
a0da8069
NN
852# Set srcdir to "." if that's what it is.
853# This is important for multilib support.
854pwd=`${PWDCMD-pwd}`
a0da8069
NN
855if test "${pwd}" = "${srcpwd}" ; then
856 srcdir=.
252b5132
RH
857fi
858
a0da8069 859topsrcdir=$srcpwd
252b5132 860
a0da8069 861extra_host_args=
afefada0 862
a0da8069
NN
863### To add a new directory to the tree, first choose whether it is a target
864### or a host dependent tool. Then put it into the appropriate list
865### (library or tools, host or target), doing a dependency sort.
252b5132 866
cac3d6c4 867# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 868# configdirs, or target_configdirs; see the serialization section below.
252b5132 869
cac3d6c4
CM
870# Dependency sorting is only needed when *configuration* must be done in
871# a particular order. In all cases a dependency should be specified in
a0da8069 872# the Makefile, whether or not it's implicitly specified here.
252b5132 873
a0da8069
NN
874# Double entries in build_configdirs, configdirs, or target_configdirs may
875# cause circular dependencies and break everything horribly.
252b5132 876
6a9cf61e
PB
877# these library is used by various programs built for the build
878# environment
879#
880build_libs="build-libiberty"
881
882# these tools are built for the build environment
ee025550 883build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 884
a0da8069
NN
885# these libraries are used by various programs built for the host environment
886#
be01d343 887host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
a0da8069 888
a0da8069
NN
889# these tools are built for the host environment
890# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
891# know that we are building the simulator.
892# binutils, gas and ld appear in that order because it makes sense to run
893# "make check" in that particular order.
b00612cc 894host_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"
a0da8069
NN
895
896# libgcj represents the runtime libraries only used by gcj.
897libgcj="target-libffi \
898 target-boehm-gc \
899 target-zlib \
900 target-qthreads \
901 target-libjava"
902
903# these libraries are built for the target environment, and are built after
904# the host libraries and the host tools (which may be a cross compiler)
905#
9c14acb8 906target_libraries="target-libiberty \
a0da8069
NN
907 target-libgloss \
908 target-newlib \
b9459e83 909 target-libstdc++-v3 \
4b1cb4fe 910 target-libmudflap \
bb780410 911 target-libssp \
4b1cb4fe 912 target-libgfortran \
83326456 913 ${libgcj} \
a2592b1b
DD
914 target-libobjc \
915 target-libada"
a0da8069 916
9c14acb8
NN
917# these tools are built using the target libraries, and are intended to
918# run only in the target environment
a0da8069 919#
9c14acb8 920# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
921# list belongs in this list. those programs are also very likely
922# candidates for the "native_only" list which follows
923#
a3dd767d 924target_tools="target-examples target-groff target-gperf target-rda"
252b5132 925
a0da8069 926################################################################################
252b5132 927
a0da8069
NN
928## All tools belong in one of the four categories, and are assigned above
929## We assign ${configdirs} this way to remove all embedded newlines. This
930## is important because configure will choke if they ever get through.
931## ${configdirs} is directories we build using the host tools.
932## ${target_configdirs} is directories we build using the target tools.
a0da8069 933configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 934target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 935build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 936
a0da8069 937################################################################################
252b5132 938
a0da8069 939srcname="gnu development package"
252b5132 940
a0da8069
NN
941# This gets set non-empty for some net releases of packages.
942appdirs=""
252b5132 943
a0da8069
NN
944# Define is_cross_compiler to save on calls to 'test'.
945is_cross_compiler=
946if test x"${host}" = x"${target}" ; then
947 is_cross_compiler=no
252b5132 948else
a0da8069 949 is_cross_compiler=yes
cac3d6c4 950fi
252b5132 951
9175bfc0 952# Find the build and target subdir names.
dd12c3a8
NN
953 case ${build_alias} in
954 "") build_noncanonical=${build} ;;
955 *) build_noncanonical=${build_alias} ;;
956esac
957
958 case ${host_alias} in
959 "") host_noncanonical=${build_noncanonical} ;;
960 *) host_noncanonical=${host_alias} ;;
961esac
962
963 case ${target_alias} in
964 "") target_noncanonical=${host_noncanonical} ;;
965 *) target_noncanonical=${target_alias} ;;
966esac
967
968 # Prefix 'build-' so this never conflicts with target_subdir.
969build_subdir="build-${build_noncanonical}"
b00612cc
PB
970# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
971if ( test $srcdir = . && test -d gcc ) \
972 || test -d $srcdir/../host-${host_noncanonical}; then
973 host_subdir="host-${host_noncanonical}"
974else
975 host_subdir=.
976fi
dd12c3a8
NN
977# No prefix.
978target_subdir=${target_noncanonical}
cac3d6c4 979
252b5132 980
a0da8069
NN
981# Skipdirs are removed silently.
982skipdirs=
983# Noconfigdirs are removed loudly.
984noconfigdirs=""
252b5132 985
a0da8069
NN
986use_gnu_ld=
987# Make sure we don't let GNU ld be added if we didn't want it.
988if test x$with_gnu_ld = xno ; then
989 use_gnu_ld=no
990 noconfigdirs="$noconfigdirs ld"
252b5132
RH
991fi
992
a0da8069
NN
993use_gnu_as=
994# Make sure we don't let GNU as be added if we didn't want it.
995if test x$with_gnu_as = xno ; then
996 use_gnu_as=no
997 noconfigdirs="$noconfigdirs gas"
252b5132
RH
998fi
999
cac3d6c4 1000# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1001# it's not even worth trying to configure, much less build, that tool.
252b5132 1002
a0da8069
NN
1003case ${with_x} in
1004 yes | "") ;; # the default value for this tree is that X11 is available
1005 no)
675c6968 1006 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1007 # We won't be able to build gdbtk without X.
cac3d6c4 1008 enable_gdbtk=no
a0da8069
NN
1009 ;;
1010 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1011esac
252b5132 1012
a0da8069 1013# Some tools are only suitable for building in a "native" situation.
cac3d6c4 1014# Remove these if host!=target.
91f0e695 1015native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
252b5132 1016
a0da8069
NN
1017# Similarly, some are only suitable for cross toolchains.
1018# Remove these if host=target.
1019cross_only="target-libgloss target-newlib target-opcodes"
1020
1021case $is_cross_compiler in
1022 no) skipdirs="${skipdirs} ${cross_only}" ;;
1023 yes) skipdirs="${skipdirs} ${native_only}" ;;
1024esac
252b5132 1025
a0da8069
NN
1026# If both --with-headers and --with-libs are specified, default to
1027# --without-newlib.
32be62b5
RS
1028if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1029 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
1030 if test x"${with_newlib}" = x ; then
1031 with_newlib=no
1032 fi
252b5132
RH
1033fi
1034
a0da8069
NN
1035# Recognize --with-newlib/--without-newlib.
1036case ${with_newlib} in
1037 no) skipdirs="${skipdirs} target-newlib" ;;
1038 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1039esac
252b5132 1040
a0da8069 1041# Configure extra directories which are host specific
252b5132 1042
a0da8069
NN
1043case "${host}" in
1044 *-cygwin*)
1045 configdirs="$configdirs libtermcap" ;;
1046esac
252b5132 1047
59f7ec45
HPN
1048# A target can indicate whether a language isn't supported for some reason.
1049# Only spaces may be used in this macro; not newlines or tabs.
1050unsupported_languages=
1051
cac3d6c4 1052# Remove more programs from consideration, based on the host or
a0da8069
NN
1053# target this usually means that a port of the program doesn't
1054# exist yet.
252b5132 1055
a0da8069
NN
1056case "${host}" in
1057 hppa*64*-*-*)
1058 noconfigdirs="$noconfigdirs byacc"
1059 ;;
ec11bdc6 1060 i[3456789]86-*-vsta)
675c6968 1061 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 1062 ;;
ec11bdc6 1063 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 1064 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 1065 ;;
ec11bdc6 1066 i[3456789]86-*-mingw32*)
675c6968 1067 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
a92834c8 1068 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
bba45b8b 1069 ;;
ec11bdc6 1070 i[3456789]86-*-beos*)
675c6968 1071 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 1072 ;;
a0da8069 1073 *-*-cygwin*)
a92834c8 1074 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
1075 ;;
1076 *-*-netbsd*)
a92834c8 1077 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
1078 ;;
1079 ppc*-*-pe)
675c6968 1080 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
1081 ;;
1082 powerpc-*-beos*)
675c6968 1083 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 1084 ;;
a0da8069 1085esac
252b5132 1086
4b1cb4fe 1087
a2592b1b
DD
1088# Check whether --enable-libada or --disable-libada was given.
1089if test "${enable_libada+set}" = set; then
1090 enableval="$enable_libada"
1091 ENABLE_LIBADA=$enableval
1092else
1093 ENABLE_LIBADA=yes
cac3d6c4
CM
1094fi
1095
a2592b1b
DD
1096if test "${ENABLE_LIBADA}" != "yes" ; then
1097 noconfigdirs="$noconfigdirs target-libada"
b00612cc 1098 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
1099fi
1100
5f128533
KH
1101# Check whether --enable-libssp or --disable-libssp was given.
1102if test "${enable_libssp+set}" = set; then
1103 enableval="$enable_libssp"
1104 ENABLE_LIBSSP=$enableval
1105else
1106 ENABLE_LIBSSP=yes
cac3d6c4
CM
1107fi
1108
5f128533 1109if test "${ENABLE_LIBSSP}" != "yes" ; then
bb780410 1110 noconfigdirs="$noconfigdirs target-libssp"
5f128533
KH
1111fi
1112
a0da8069
NN
1113# Save it here so that, even in case of --enable-libgcj, if the Java
1114# front-end isn't enabled, we still get libgcj disabled.
1115libgcj_saved=$libgcj
1116case $enable_libgcj in
1117yes)
1118 # If we reset it here, it won't get added to noconfigdirs in the
1119 # target-specific build rules, so it will be forcibly enabled
1120 # (unless the Java language itself isn't enabled).
1121 libgcj=
1122 ;;
1123no)
1124 # Make sure we get it printed in the list of not supported target libs.
1125 noconfigdirs="$noconfigdirs ${libgcj}"
1126 ;;
1127esac
252b5132 1128
4b1cb4fe
DD
1129
1130# Allow --disable-libmudflap to exclude target-libmudflap
1131case $enable_libmudflap in
3e707e94 1132yes)
4b1cb4fe
DD
1133 ;;
1134no)
1135 noconfigdirs="$noconfigdirs target-libmudflap"
1136 ;;
3e707e94
PB
1137"")
1138 case "${target}" in
3d6dfe0f
NN
1139 *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
1140 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
1141 ;;
1142 *-*-freebsd*)
1143 # Enable libmudflap by default in FreeBSD.
1144 ;;
1145 *)
1146 # Disable it by default everywhere else.
1147 noconfigdirs="$noconfigdirs target-libmudflap"
1148 ;;
1149 esac
4b1cb4fe
DD
1150esac
1151
1152
a0da8069
NN
1153case "${target}" in
1154 *-*-chorusos)
1155 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1156 ;;
04d1ab34 1157 powerpc-*-darwin*)
b3f16a9b 1158 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 1159 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 1160 ;;
04d1ab34 1161 *-*-darwin*)
d320aacb 1162 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 1163 noconfigdirs="$noconfigdirs sim target-rda"
fe69863c 1164 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 1165 ;;
a0da8069
NN
1166 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1167 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1168 ;;
de0b4a87 1169 *-*-freebsd*)
4b1cb4fe
DD
1170 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1171 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1172 && test -f /usr/local/include/gmp.h; then
1173 with_gmp=/usr/local
1174 fi
1175
1176 # Skip some stuff that's unsupported on some FreeBSD configurations.
1177 case "${target}" in
1178 i*86-*-*) ;;
1179 alpha*-*-*) ;;
1180 *)
1181 noconfigdirs="$noconfigdirs ${libgcj}"
1182 ;;
1183 esac
1184 ;;
f8a495c8
NC
1185 *-*-kaos*)
1186 # Remove unsupported stuff on all kaOS configurations.
80b200a1 1187 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
1188 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1189 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1190 noconfigdirs="$noconfigdirs target-libgloss"
1191 ;;
a0da8069
NN
1192 *-*-netbsd*)
1193 # Skip some stuff on all NetBSD configurations.
1194 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1195
1196 # Skip some stuff that's unsupported on some NetBSD configurations.
1197 case "${target}" in
1198 i*86-*-netbsdelf*) ;;
5b474aa8 1199 arm*-*-netbsdelf*) ;;
a0da8069
NN
1200 *)
1201 noconfigdirs="$noconfigdirs ${libgcj}"
1202 ;;
1203 esac
1204 ;;
2a3124ca
RH
1205 *-*-netware*)
1206 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
1207 ;;
1208 *-*-rtems*)
1209 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 1210 ;;
1587117a
EC
1211 # The tpf target doesn't support gdb yet.
1212 *-*-tpf*)
1213 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1214 ;;
c1968181
DD
1215 *-*-uclinux*)
1216 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1217 ;;
a0da8069 1218 *-*-vxworks*)
6dd2fda9 1219 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 1220 ;;
49f58d10
JB
1221 m32c-*-*)
1222 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1223 ;;
a0da8069
NN
1224 alpha*-dec-osf*)
1225 # ld works, but does not support shared libraries.
1226 # newlib is not 64 bit ready. I'm not sure about fileutils.
1227 # gas doesn't generate exception information.
1228 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1229 ;;
1230 alpha*-*-*vms*)
69e57115 1231 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
1232 ;;
1233 alpha*-*-linux*)
1234 # newlib is not 64 bit ready
1235 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1236 ;;
a0da8069
NN
1237 alpha*-*-*)
1238 # newlib is not 64 bit ready
1239 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1240 ;;
4a18bd6b
AO
1241 am33_2.0-*-linux*)
1242 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1243 ;;
a0da8069
NN
1244 sh-*-linux*)
1245 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
cac3d6c4 1246 ;;
a0da8069
NN
1247 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1248 noconfigdirs="$noconfigdirs ${libgcj}"
1249 noconfigdirs="$noconfigdirs target-examples"
1250 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 1251 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
1252 noconfigdirs="$noconfigdirs expect dejagnu"
1253 # the C++ libraries don't build on top of CE's C libraries
b9459e83 1254 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
1255 noconfigdirs="$noconfigdirs target-newlib"
1256 case "${host}" in
1257 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 1258 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
1259 ;;
1260 esac
1261 ;;
1262 arc-*-*)
1263 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1264 ;;
caeba88f 1265 arm-semi-aof )
caeba88f 1266 ;;
a0da8069
NN
1267 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1268 noconfigdirs="$noconfigdirs ${libgcj}"
1269 ;;
11b04d1f 1270 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069
NN
1271 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1272 ;;
bd70a46f
KH
1273 arm*-*-linux-gnueabi)
1274 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1275 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1276 ;;
df4a6958
MM
1277 arm*-*-symbianelf*)
1278 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1279 ;;
a0da8069
NN
1280 arm-*-pe*)
1281 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1282 ;;
a0da8069
NN
1283 thumb-*-coff)
1284 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1285 ;;
1286 thumb-*-elf)
1287 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1288 ;;
a0da8069
NN
1289 thumb-*-pe)
1290 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1291 ;;
1292 arm-*-riscix*)
1293 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1294 ;;
1295 avr-*-*)
69e57115 1296 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 1297 ;;
376a0e54
CM
1298 bfin-*-*)
1299 noconfigdirs="$noconfigdirs target-libgloss gdb"
3cf3372e 1300 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
1301 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1302 fi
1303 ;;
a0da8069 1304 c4x-*-* | tic4x-*-*)
b9459e83 1305 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
1306 ;;
1307 c54x*-*-* | tic54x-*-*)
b9459e83 1308 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 1309 ;;
c7e66c6d 1310 cris-*-* | crisv32-*-*)
59f7ec45 1311 unsupported_languages="$unsupported_languages java"
c7e66c6d 1312 case "${target}" in
2faa2958 1313 *-*-aout)
096f7d00 1314 unsupported_languages="$unsupported_languages fortran"
59f7ec45 1315 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 1316 *-*-elf)
096f7d00 1317 unsupported_languages="$unsupported_languages fortran"
5e818318 1318 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 1319 *-*-linux*)
5e818318 1320 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 1321 *)
096f7d00 1322 unsupported_languages="$unsupported_languages fortran"
c7e66c6d
HPN
1323 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1324 esac
a0da8069 1325 ;;
3e707e94 1326 crx-*-*)
0490e016 1327 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 1328 ;;
a0da8069 1329 d10v-*-*)
b9459e83 1330 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
1331 ;;
1332 d30v-*-*)
b07c2aad 1333 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
1334 ;;
1335 fr30-*-elf*)
b07c2aad 1336 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
1337 ;;
1338 frv-*-*)
1339 noconfigdirs="$noconfigdirs ${libgcj}"
1340 ;;
1341 h8300*-*-*)
80b200a1 1342 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
1343 ;;
1344 h8500-*-*)
80b200a1 1345 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 1346 ;;
caeba88f 1347 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 1348 ;;
a0da8069
NN
1349 hppa*64*-*-linux* | parisc*64*-*-linux*)
1350 # In this case, it's because the hppa64-linux target is for
1351 # the kernel only at this point and has no libc, and thus no
1352 # headers, crt*.o, etc., all of which are needed by these.
1353 noconfigdirs="$noconfigdirs target-zlib"
1354 ;;
5dcac624
DA
1355 parisc*-*-linux* | hppa*-*-linux*)
1356 ;;
a0da8069 1357 hppa*-*-*elf* | \
a0da8069
NN
1358 hppa*-*-lites* | \
1359 hppa*-*-openbsd* | \
1360 hppa*64*-*-*)
1361 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
1362 ;;
1363 hppa*-*-*)
1364 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1365 # build on HP-UX 10.20.
1366 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1367 ;;
b07c2aad
HPN
1368 i960-*-*)
1369 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1370 ;;
a0da8069
NN
1371 ia64*-*-elf*)
1372 # No gdb support yet.
675c6968 1373 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
1374 ;;
1375 ia64*-**-hpux*)
1376 # No gdb or ld support yet.
675c6968 1377 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 1378 ;;
caeba88f 1379 i370-*-opened*)
caeba88f 1380 ;;
ec11bdc6 1381 i[3456789]86-*-coff | i[3456789]86-*-elf)
a0da8069
NN
1382 noconfigdirs="$noconfigdirs ${libgcj}"
1383 ;;
ec11bdc6 1384 i[3456789]86-*-linux*)
a0da8069
NN
1385 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1386 # not build java stuff by default.
1387 case "${target}" in
1388 *-*-*libc1*)
1389 noconfigdirs="$noconfigdirs ${libgcj}";;
1390 esac
1391
1392 # This section makes it possible to build newlib natively on linux.
1393 # If we are using a cross compiler then don't configure newlib.
1394 if test x${is_cross_compiler} != xno ; then
bba45b8b 1395 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
1396 fi
1397 noconfigdirs="$noconfigdirs target-libgloss"
1398 # If we are not using a cross compiler, do configure newlib.
1399 # Note however, that newlib will only be configured in this situation
1400 # if the --with-newlib option has been given, because otherwise
1401 # 'target-newlib' will appear in skipdirs.
1402 ;;
ec11bdc6 1403 i[3456789]86-*-mingw32*)
a0da8069 1404 target_configdirs="$target_configdirs target-mingw"
69e57115 1405 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
a0da8069
NN
1406
1407 # Can't build gdb for mingw32 if not native.
1408 case "${host}" in
ec11bdc6 1409 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
675c6968 1410 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv"
a0da8069
NN
1411 ;;
1412 esac
cac3d6c4 1413 ;;
a0da8069
NN
1414 *-*-cygwin*)
1415 target_configdirs="$target_configdirs target-libtermcap target-winsup"
69e57115 1416 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 1417 # always build newlib if winsup directory is present.
ac0fa625 1418 if test -d "$srcdir/winsup"; then
b76d7de0 1419 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 1420 elif test -d "$srcdir/newlib"; then
b76d7de0
CV
1421 echo "Warning: winsup is missing so newlib can't be built."
1422 fi
a0da8069
NN
1423
1424 # Can't build gdb for Cygwin if not native.
1425 case "${host}" in
1426 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
675c6968 1427 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
a0da8069
NN
1428 ;;
1429 esac
cac3d6c4 1430 ;;
caeba88f
AL
1431 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1432 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 1433 ;;
ec11bdc6 1434 i[3456789]86-*-pe)
69e57115 1435 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 1436 ;;
ec11bdc6 1437 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
1438 # The linker does not yet know about weak symbols in COFF,
1439 # and is not configured to handle mixed ELF and COFF.
1440 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1441 ;;
ec11bdc6 1442 i[3456789]86-*-sco*)
a0da8069
NN
1443 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1444 ;;
ec11bdc6 1445 i[3456789]86-*-solaris2*)
a0da8069
NN
1446 noconfigdirs="$noconfigdirs target-libgloss"
1447 ;;
ec11bdc6 1448 i[3456789]86-*-sysv4*)
a0da8069
NN
1449 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1450 ;;
ec11bdc6 1451 i[3456789]86-*-beos*)
bba45b8b
NN
1452 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1453 ;;
b59bea8a 1454 i[3456789]86-*-rdos*)
2429c060
PB
1455 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1456 ;;
b07c2aad 1457 m32r-*-*)
970f29af 1458 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 1459 ;;
a0da8069 1460 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
b9459e83 1461 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
1462 ;;
1463 m68k-*-elf*)
1464 noconfigdirs="$noconfigdirs ${libgcj}"
1465 ;;
1466 m68k-*-coff*)
1467 noconfigdirs="$noconfigdirs ${libgcj}"
1468 ;;
1469 mcore-*-pe*)
1470 # The EPOC C++ environment does not support exceptions or rtti,
1471 # and so building libstdc++-v3 tends not to always work.
1472 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1473 ;;
1474 mmix-*-*)
59f7ec45 1475 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 1476 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
1477 ;;
1478 mn10200-*-*)
1479 noconfigdirs="$noconfigdirs ${libgcj}"
1480 ;;
1481 mn10300-*-*)
1482 noconfigdirs="$noconfigdirs ${libgcj}"
1483 ;;
4970f871 1484 mt-*-*)
cdb9b172
AH
1485 noconfigdirs="$noconfigdirs sim"
1486 ;;
a0da8069
NN
1487 powerpc-*-aix*)
1488 # copied from rs6000-*-* entry
096f7d00 1489 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
1490 ;;
1491 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1492 target_configdirs="$target_configdirs target-winsup"
675c6968 1493 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
1494 # always build newlib.
1495 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1496 ;;
1497 # This is temporary until we can link against shared libraries
1498 powerpcle-*-solaris*)
675c6968 1499 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
a0da8069
NN
1500 ;;
1501 powerpc-*-beos*)
1502 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1503 ;;
a0da8069 1504 powerpc-*-eabi)
69e57115 1505 noconfigdirs="$noconfigdirs ${libgcj}"
caeba88f
AL
1506 ;;
1507 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
a0da8069 1508 ;;
a0da8069
NN
1509 rs6000-*-lynxos*)
1510 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1511 ;;
1512 rs6000-*-aix*)
096f7d00 1513 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
1514 ;;
1515 rs6000-*-*)
1516 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1517 ;;
1518 m68k-apollo-*)
1519 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1520 ;;
1521 mips*-*-irix5*)
0f260896 1522 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
1523 ;;
1524 mips*-*-irix6*)
a0da8069
NN
1525 # Linking libjava exceeds command-line length limits on at least
1526 # IRIX 6.2, but not on IRIX 6.5.
1527 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1528 # <oldham@codesourcery.com>
aa236487 1529 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
1530 ;;
1531 mips*-dec-bsd*)
1532 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1533 ;;
1534 mips*-*-bsd*)
1535 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1536 ;;
1537 mipstx39-*-*)
1538 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
bba45b8b 1539 ;;
1712ab83
RS
1540 mips64*-*-linux*)
1541 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1542 ;;
a0da8069
NN
1543 mips*-*-linux*)
1544 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1545 ;;
1546 mips*-*-*)
1547 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1548 ;;
1549 romp-*-*)
1550 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1551 ;;
dbf85af7 1552 sh-*-* | sh64-*-*)
a0da8069 1553 case "${host}" in
ec11bdc6
DD
1554 i[3456789]86-*-vsta) ;; # don't add gprof back in
1555 i[3456789]86-*-go32*) ;; # don't add gprof back in
1556 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
1557 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1558 esac
1559 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1560 ;;
a0da8069
NN
1561 sparc-*-elf*)
1562 noconfigdirs="$noconfigdirs ${libgcj}"
1563 ;;
1564 sparc64-*-elf*)
1565 noconfigdirs="$noconfigdirs ${libgcj}"
1566 ;;
1567 sparclite-*-*)
1568 noconfigdirs="$noconfigdirs ${libgcj}"
1569 ;;
1570 sparc-*-sunos4*)
1571 noconfigdirs="$noconfigdirs ${libgcj}"
1572 if test x${is_cross_compiler} != xno ; then
1573 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1574 else
1575 use_gnu_ld=no
1576 fi
1577 ;;
e3c770b1
EB
1578 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1579 noconfigdirs="$noconfigdirs ${libgcj}"
1580 ;;
a0da8069
NN
1581 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1582 ;;
1583 v810-*-*)
b9459e83 1584 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
1585 ;;
1586 v850-*-*)
1587 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1588 ;;
1589 v850e-*-*)
1590 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1591 ;;
1592 v850ea-*-*)
1593 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1594 ;;
1595 vax-*-vms)
1596 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1597 ;;
1598 vax-*-*)
1599 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1600 ;;
fbd1054d
BW
1601 xtensa-*-*)
1602 noconfigdirs="$noconfigdirs ${libgcj}"
1603 ;;
a0da8069 1604 ip2k-*-*)
b9459e83 1605 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 1606 ;;
de0b4a87 1607 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
1608 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1609 ;;
1610 *-*-lynxos*)
1611 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
cac3d6c4 1612 ;;
a0da8069
NN
1613 *-*-*)
1614 noconfigdirs="$noconfigdirs ${libgcj}"
1615 ;;
1616esac
252b5132 1617
a0da8069
NN
1618# If we aren't building newlib, then don't build libgloss, since libgloss
1619# depends upon some newlib header files.
1620case "${noconfigdirs}" in
1621 *target-libgloss*) ;;
1622 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1623esac
1624
a0da8069
NN
1625# Work in distributions that contain no compiler tools, like Autoconf.
1626tentative_cc=""
1627host_makefile_frag=/dev/null
1628if test -d ${srcdir}/config ; then
1629case "${host}" in
1630 m68k-hp-hpux*)
1631 # Avoid "too much defining" errors from HPUX compiler.
1632 tentative_cc="cc -Wp,-H256000"
1633 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1634 # If it's HP/UX ar, this should be harmless.
1635 RANLIB="ar ts"
1636 ;;
1637 m68k-apollo-sysv*)
1638 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1639 ;;
1640 m68k-apollo-bsd*)
1641 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1642 # chokes on bfd, the compiler won't let you assign integers to enums, and
1643 # other problems. Defining CC to gcc is a questionable way to say "don't use
1644 # the apollo compiler" (the preferred version of GCC could be called cc,
1645 # or whatever), but I'm not sure leaving CC as cc is any better...
1646 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1647 # Used to have BISON=yacc.
1648 tentative_cc=gcc
1649 ;;
1650 m88k-dg-dgux*)
1651 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
1652 ;;
1653 m88k-harris-cxux*)
1654 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1655 tentative_cc="cc -Xa"
1656 host_makefile_frag="config/mh-cxux"
1657 ;;
1658 m88k-motorola-sysv*)
1659 ;;
1660 mips*-dec-ultrix*)
1661 tentative_cc="cc -Wf,-XNg1000"
1662 host_makefile_frag="config/mh-decstation"
1663 ;;
1664 mips*-nec-sysv4*)
1665 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1666 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1667 host_makefile_frag="config/mh-necv4"
1668 ;;
1669 mips*-sgi-irix4*)
1670 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1671 # environment. Also bump switch table size so that cp-parse will
1672 # compile. Bump string length limit so linker builds.
1673 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1674 ;;
1675 mips*-*-sysv4*)
1676 host_makefile_frag="config/mh-sysv4"
1677 ;;
1678 mips*-*-sysv*)
1679 # This is for a MIPS running RISC/os 4.52C.
1680
1681 # This is needed for GDB, but needs to be in the top-level make because
1682 # if a library is compiled with the bsd headers and gets linked with the
1683 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1684 # a different size).
1685 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1686 # known except to select the sysv environment. Could we use /proc instead?
1687 # These "sysv environments" and "bsd environments" often end up being a pain.
1688 #
1689 # This is not part of CFLAGS because perhaps not all C compilers have this
1690 # option.
1691 tentative_cc="cc -systype sysv"
1692 ;;
1693 i370-ibm-opened*)
1694 tentative_cc="c89"
1695 ;;
ec11bdc6 1696 i[3456789]86-*-sysv5*)
a0da8069
NN
1697 host_makefile_frag="config/mh-sysv5"
1698 ;;
ec11bdc6 1699 i[3456789]86-*-dgux*)
a0da8069
NN
1700 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1701 host_makefile_frag="config/mh-dgux386"
1702 ;;
ec11bdc6 1703 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
1704 # The MetaWare compiler will generate a copyright message unless you
1705 # turn it off by adding the -Hnocopyr flag.
1706 tentative_cc="cc -Hnocopyr"
1707 ;;
ec11bdc6 1708 i[3456789]86-ncr-sysv4*)
a0da8069
NN
1709 # for an NCR 3000 (i486/SVR4) system.
1710 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1711 # This compiler not only emits obnoxious copyright messages every time
1712 # you run it, but it chokes and dies on a whole bunch of GNU source
1713 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1714 tentative_cc="/usr/ccs/ATT/cc"
1715 host_makefile_frag="config/mh-ncr3000"
1716 ;;
ec11bdc6 1717 i[3456789]86-*-sco3.2v5*)
a0da8069 1718 ;;
ec11bdc6 1719 i[3456789]86-*-sco*)
a0da8069
NN
1720 # The native C compiler botches some simple uses of const. Unfortunately,
1721 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1722 tentative_cc="cc -Dconst="
1723 host_makefile_frag="config/mh-sco"
1724 ;;
ec11bdc6 1725 i[3456789]86-*-udk*)
a0da8069
NN
1726 host_makefile_frag="config/mh-sysv5"
1727 ;;
ec11bdc6 1728 i[3456789]86-*-solaris2*)
a0da8069
NN
1729 host_makefile_frag="config/mh-sysv4"
1730 ;;
ec11bdc6 1731 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
1732 host_makefile_frag="config/mh-djgpp"
1733 ;;
1734 *-cygwin*)
1735 host_makefile_frag="config/mh-cygwin"
1736 ;;
1737 *-mingw32*)
a0da8069
NN
1738 ;;
1739 *-interix*)
1740 host_makefile_frag="config/mh-interix"
1741 ;;
1742 vax-*-ultrix2*)
1743 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1744 tentative_cc=gcc
1745 ;;
1746 *-*-solaris2*)
1747 host_makefile_frag="config/mh-solaris"
1748 ;;
1749 m68k-sun-sunos*)
1750 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1751 # without overflowing the jump tables (-J says to use a 32 bit table)
1752 tentative_cc="cc -J"
1753 ;;
1754 *-hp-hpux*)
1755 tentative_cc="cc -Wp,-H256000"
1756 ;;
1757 *-*-hiux*)
1758 tentative_cc="cc -Wp,-H256000"
1759 ;;
1760 rs6000-*-lynxos*)
1761 # /bin/cc is less than useful for our purposes. Always use GCC
1762 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1763 host_makefile_frag="config/mh-lynxrs6k"
1764 ;;
0df3d27f
PB
1765 powerpc-*-darwin*)
1766 host_makefile_frag="config/mh-ppc-darwin"
1767 ;;
f6d183c0
PB
1768 powerpc-*-aix*)
1769 host_makefile_frag="config/mh-ppc-aix"
1770 ;;
1771 rs6000-*-aix*)
1772 host_makefile_frag="config/mh-ppc-aix"
1773 ;;
a0da8069
NN
1774 *-*-lynxos*)
1775 # /bin/cc is less than useful for our purposes. Always use GCC
1776 tentative_cc="/bin/gcc"
1777 ;;
1778 *-*-sysv4*)
1779 host_makefile_frag="config/mh-sysv4"
1780 ;;
fe69863c
DD
1781 # This is placed last to prevent interfering with the cases above.
1782 i[3456789]86-*-*)
1783 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1784 host_makefile_frag="config/mh-x86omitfp"
1785 ;;
a0da8069
NN
1786esac
1787fi
1788
9e07f89d
NN
1789# If we aren't going to be using gcc, see if we can extract a definition
1790# of CC from the fragment.
1791# Actually, use the 'pre-extracted' version above.
1792if test -z "${CC}" && test "${build}" = "${host}" ; then
1793 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1794 found=
1795 for dir in $PATH; do
1796 test -z "$dir" && dir=.
1797 if test -f $dir/gcc; then
1798 found=yes
1799 break
1800 fi
1801 done
1802 IFS="$save_ifs"
1803 if test -z "${found}" && test -n "${tentative_cc}" ; then
1804 CC=$tentative_cc
1805 fi
1806fi
1807
1808if test "${build}" != "${host}" ; then
1809 # If we are doing a Canadian Cross, in which the host and build systems
1810 # are not the same, we set reasonable default values for the tools.
1811
9e07f89d
NN
1812 CC=${CC-${host_alias}-gcc}
1813 CFLAGS=${CFLAGS-"-g -O2"}
1814 CXX=${CXX-${host_alias}-c++}
1815 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1816 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
9e07f89d
NN
1817 BUILD_PREFIX=${build_alias}-
1818 BUILD_PREFIX_1=${build_alias}-
9e07f89d
NN
1819
1820else
1821 # Set reasonable default values for some tools even if not Canadian.
1822 # Of course, these are different reasonable default values, originally
1823 # specified directly in the Makefile.
1824 # We don't export, so that autoconf can do its job.
1825 # Note that all these settings are above the fragment inclusion point
1826 # in Makefile.in, so can still be overridden by fragments.
1827 # This is all going to change when we autoconfiscate...
1828
9e07f89d 1829 CC_FOR_BUILD="\$(CC)"
9e07f89d
NN
1830 BUILD_PREFIX=
1831 BUILD_PREFIX_1=loser-
9e07f89d 1832
6a9cf61e 1833 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 1834set dummy gcc; ac_word=$2
cac3d6c4 1835echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 1836echo "configure:1837: checking for $ac_word" >&5
cac3d6c4
CM
1837if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
9e07f89d
NN
1839else
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1842else
cac3d6c4
CM
1843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1844 ac_dummy="$PATH"
1845 for ac_dir in $ac_dummy; do
1846 test -z "$ac_dir" && ac_dir=.
1847 if test -f $ac_dir/$ac_word; then
1848 ac_cv_prog_CC="gcc"
1849 break
1850 fi
1851 done
1852 IFS="$ac_save_ifs"
9e07f89d
NN
1853fi
1854fi
cac3d6c4 1855CC="$ac_cv_prog_CC"
9e07f89d 1856if test -n "$CC"; then
cac3d6c4 1857 echo "$ac_t""$CC" 1>&6
9e07f89d 1858else
cac3d6c4 1859 echo "$ac_t""no" 1>&6
9e07f89d
NN
1860fi
1861
1862if test -z "$CC"; then
1863 # Extract the first word of "cc", so it can be a program name with args.
1864set dummy cc; ac_word=$2
cac3d6c4 1865echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 1866echo "configure:1867: checking for $ac_word" >&5
cac3d6c4
CM
1867if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
9e07f89d
NN
1869else
1870 if test -n "$CC"; then
1871 ac_cv_prog_CC="$CC" # Let the user override the test.
1872else
cac3d6c4 1873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9e07f89d 1874 ac_prog_rejected=no
cac3d6c4
CM
1875 ac_dummy="$PATH"
1876 for ac_dir in $ac_dummy; do
1877 test -z "$ac_dir" && ac_dir=.
1878 if test -f $ac_dir/$ac_word; then
1879 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1880 ac_prog_rejected=yes
1881 continue
1882 fi
1883 ac_cv_prog_CC="cc"
1884 break
1885 fi
1886 done
1887 IFS="$ac_save_ifs"
9e07f89d
NN
1888if test $ac_prog_rejected = yes; then
1889 # We found a bogon in the path, so make sure we never use it.
1890 set dummy $ac_cv_prog_CC
1891 shift
cac3d6c4 1892 if test $# -gt 0; then
9e07f89d
NN
1893 # We chose a different compiler from the bogus one.
1894 # However, it has the same basename, so the bogon will be chosen
1895 # first if we set CC to just the basename; use the full file name.
1896 shift
cac3d6c4
CM
1897 set dummy "$ac_dir/$ac_word" "$@"
1898 shift
1899 ac_cv_prog_CC="$@"
9e07f89d
NN
1900 fi
1901fi
1902fi
1903fi
cac3d6c4 1904CC="$ac_cv_prog_CC"
9e07f89d 1905if test -n "$CC"; then
cac3d6c4 1906 echo "$ac_t""$CC" 1>&6
9e07f89d 1907else
cac3d6c4 1908 echo "$ac_t""no" 1>&6
9e07f89d
NN
1909fi
1910
cac3d6c4
CM
1911 if test -z "$CC"; then
1912 case "`uname -s`" in
1913 *win32* | *WIN32*)
1914 # Extract the first word of "cl", so it can be a program name with args.
1915set dummy cl; ac_word=$2
1916echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 1917echo "configure:1918: checking for $ac_word" >&5
cac3d6c4
CM
1918if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
9e07f89d
NN
1920else
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC="$CC" # Let the user override the test.
1923else
cac3d6c4
CM
1924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1925 ac_dummy="$PATH"
1926 for ac_dir in $ac_dummy; do
1927 test -z "$ac_dir" && ac_dir=.
1928 if test -f $ac_dir/$ac_word; then
1929 ac_cv_prog_CC="cl"
1930 break
1931 fi
1932 done
1933 IFS="$ac_save_ifs"
9e07f89d
NN
1934fi
1935fi
cac3d6c4 1936CC="$ac_cv_prog_CC"
9e07f89d 1937if test -n "$CC"; then
cac3d6c4 1938 echo "$ac_t""$CC" 1>&6
9e07f89d 1939else
cac3d6c4 1940 echo "$ac_t""no" 1>&6
9e07f89d 1941fi
cac3d6c4
CM
1942 ;;
1943 esac
376a0e54 1944 fi
cac3d6c4 1945 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9e07f89d
NN
1946fi
1947
cac3d6c4 1948echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2429c060 1949echo "configure:1950: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9e07f89d 1950
cac3d6c4
CM
1951ac_ext=c
1952# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1953ac_cpp='$CPP $CPPFLAGS'
1954ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1955ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1956cross_compiling=$ac_cv_prog_cc_cross
1957
1958cat > conftest.$ac_ext << EOF
1959
2429c060 1960#line 1961 "configure"
cac3d6c4
CM
1961#include "confdefs.h"
1962
1963main(){return(0);}
1964EOF
2429c060 1965if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
cac3d6c4
CM
1966 ac_cv_prog_cc_works=yes
1967 # If we can't run a trivial program, we are probably using a cross compiler.
1968 if (./conftest; exit) 2>/dev/null; then
1969 ac_cv_prog_cc_cross=no
376a0e54 1970 else
cac3d6c4 1971 ac_cv_prog_cc_cross=yes
376a0e54 1972 fi
cac3d6c4
CM
1973else
1974 echo "configure: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1976 ac_cv_prog_cc_works=no
9e07f89d 1977fi
cac3d6c4
CM
1978rm -fr conftest*
1979ac_ext=c
1980# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1981ac_cpp='$CPP $CPPFLAGS'
1982ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1983ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1984cross_compiling=$ac_cv_prog_cc_cross
1985
1986echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1987if test $ac_cv_prog_cc_works = no; then
1988 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1989fi
1990echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2429c060 1991echo "configure:1992: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
cac3d6c4
CM
1992echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1993cross_compiling=$ac_cv_prog_cc_cross
1994
1995echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2429c060 1996echo "configure:1997: checking whether we are using GNU C" >&5
cac3d6c4
CM
1997if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1998 echo $ac_n "(cached) $ac_c" 1>&6
1999else
2000 cat > conftest.c <<EOF
2001#ifdef __GNUC__
2002 yes;
2003#endif
2004EOF
2429c060 2005if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
cac3d6c4 2006 ac_cv_prog_gcc=yes
376a0e54 2007else
cac3d6c4
CM
2008 ac_cv_prog_gcc=no
2009fi
2010fi
2011
2012echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2013
2014if test $ac_cv_prog_gcc = yes; then
2015 GCC=yes
9e07f89d 2016else
cac3d6c4
CM
2017 GCC=
2018fi
376a0e54 2019
cac3d6c4
CM
2020ac_test_CFLAGS="${CFLAGS+set}"
2021ac_save_CFLAGS="$CFLAGS"
2022CFLAGS=
2023echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2429c060 2024echo "configure:2025: checking whether ${CC-cc} accepts -g" >&5
cac3d6c4
CM
2025if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2027else
2028 echo 'void f(){}' > conftest.c
2029if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9e07f89d
NN
2030 ac_cv_prog_cc_g=yes
2031else
cac3d6c4 2032 ac_cv_prog_cc_g=no
9e07f89d 2033fi
cac3d6c4
CM
2034rm -f conftest*
2035
376a0e54 2036fi
cac3d6c4
CM
2037
2038echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9e07f89d 2039if test "$ac_test_CFLAGS" = set; then
cac3d6c4 2040 CFLAGS="$ac_save_CFLAGS"
9e07f89d
NN
2041elif test $ac_cv_prog_cc_g = yes; then
2042 if test "$GCC" = yes; then
2043 CFLAGS="-g -O2"
2044 else
2045 CFLAGS="-g"
2046 fi
2047else
2048 if test "$GCC" = yes; then
2049 CFLAGS="-O2"
2050 else
2051 CFLAGS=
2052 fi
2053fi
2054
2055
6a9cf61e
PB
2056 # We must set the default linker to the linker used by gcc for the correct
2057 # operation of libtool. If LD is not defined and we are using gcc, try to
2058 # set the LD default to the ld used by gcc.
2059 if test -z "$LD"; then
2060 if test "$GCC" = yes; then
2061 case $build in
2062 *-*-mingw*)
2063 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2064 *)
2065 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2066 esac
2067 case $gcc_prog_ld in
2068 # Accept absolute paths.
2069 [\\/]* | [A-Za-z]:[\\/]*)
2070 LD="$gcc_prog_ld" ;;
2071 esac
2072 fi
2073 fi
2074
2075 CXX=${CXX-"c++"}
2076 CFLAGS=${CFLAGS-"-g"}
2077 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2078fi
2079
cac3d6c4
CM
2080if test $host != $build; then
2081 ac_tool_prefix=${host_alias}-
2082else
2083 ac_tool_prefix=
2084fi
6a9cf61e
PB
2085
2086
9e07f89d 2087
cac3d6c4 2088# Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
9e07f89d 2089set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
cac3d6c4 2090echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 2091echo "configure:2092: checking for $ac_word" >&5
cac3d6c4
CM
2092if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
9e07f89d
NN
2094else
2095 if test -n "$GNATBIND"; then
2096 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2097else
cac3d6c4
CM
2098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2099 ac_dummy="$PATH"
2100 for ac_dir in $ac_dummy; do
2101 test -z "$ac_dir" && ac_dir=.
2102 if test -f $ac_dir/$ac_word; then
2103 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2104 break
2105 fi
2106 done
2107 IFS="$ac_save_ifs"
9e07f89d
NN
2108fi
2109fi
cac3d6c4 2110GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d 2111if test -n "$GNATBIND"; then
cac3d6c4 2112 echo "$ac_t""$GNATBIND" 1>&6
9e07f89d 2113else
cac3d6c4 2114 echo "$ac_t""no" 1>&6
9e07f89d
NN
2115fi
2116
cac3d6c4 2117
9e07f89d 2118if test -z "$ac_cv_prog_GNATBIND"; then
cac3d6c4 2119if test -n "$ac_tool_prefix"; then
9e07f89d
NN
2120 # Extract the first word of "gnatbind", so it can be a program name with args.
2121set dummy gnatbind; ac_word=$2
cac3d6c4 2122echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 2123echo "configure:2124: checking for $ac_word" >&5
cac3d6c4
CM
2124if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
9e07f89d 2126else
cac3d6c4
CM
2127 if test -n "$GNATBIND"; then
2128 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 2129else
cac3d6c4
CM
2130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2131 ac_dummy="$PATH"
2132 for ac_dir in $ac_dummy; do
2133 test -z "$ac_dir" && ac_dir=.
2134 if test -f $ac_dir/$ac_word; then
2135 ac_cv_prog_GNATBIND="gnatbind"
2136 break
2137 fi
2138 done
2139 IFS="$ac_save_ifs"
2140 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
9e07f89d
NN
2141fi
2142fi
cac3d6c4
CM
2143GNATBIND="$ac_cv_prog_GNATBIND"
2144if test -n "$GNATBIND"; then
2145 echo "$ac_t""$GNATBIND" 1>&6
9e07f89d 2146else
cac3d6c4 2147 echo "$ac_t""no" 1>&6
9e07f89d
NN
2148fi
2149
2150else
cac3d6c4
CM
2151 GNATBIND="no"
2152fi
9e07f89d
NN
2153fi
2154
cac3d6c4 2155echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2429c060 2156echo "configure:2157: checking whether compiler driver understands Ada" >&5
cac3d6c4
CM
2157if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
9e07f89d
NN
2159else
2160 cat >conftest.adb <<EOF
2161procedure conftest is begin null; end conftest;
2162EOF
2163acx_cv_cc_gcc_supports_ada=no
2164# There is a bug in old released versions of GCC which causes the
2165# driver to exit successfully when the appropriate language module
2166# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2167# Therefore we must check for the error message as well as an
2168# unsuccessful exit.
b8908782
DD
2169# Other compilers, like HP Tru64 UNIX cc, exit successfully when
2170# given a .adb file, but produce no object file. So we must check
2171# if an object file was really produced to guard against this.
9e07f89d 2172errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 2173if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 2174 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
2175fi
2176rm -f conftest.*
2177fi
cac3d6c4
CM
2178
2179echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
9e07f89d 2180
b8908782 2181if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
2182 have_gnat=yes
2183else
2184 have_gnat=no
2185fi
2186
cac3d6c4 2187echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2429c060 2188echo "configure:2189: checking how to compare bootstrapped objects" >&5
cac3d6c4
CM
2189if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
b8908782
DD
2191else
2192 echo abfoo >t1
2193 echo cdfoo >t2
2194 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
2195 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2196 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2197 :
2198 else
2199 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2200 fi
2201 fi
b8908782
DD
2202 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2203 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 2204 :
b8908782
DD
2205 else
2206 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2207 fi
2208 fi
2209 rm t1 t2
2210
2211fi
cac3d6c4
CM
2212
2213echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
b8908782
DD
2214do_compare="$gcc_cv_prog_cmp_skip"
2215
2216
9e07f89d 2217
11b04d1f 2218# Check for GMP and MPFR
4b1cb4fe
DD
2219gmplibs=
2220gmpinc=
2221have_gmp=yes
11b04d1f
DD
2222# Specify a location for mpfr
2223# check for this first so it ends up on the link line before gmp.
2224# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2225if test "${with_mpfr_dir+set}" = set; then
2226 withval="$with_mpfr_dir"
cac3d6c4
CM
2227 :
2228fi
11b04d1f
DD
2229
2230
2231if test "x$with_mpfr_dir" != x; then
c10e9ba7 2232 gmpinc="-I$with_mpfr_dir"
11b04d1f
DD
2233 gmplibs="$with_mpfr_dir/libmpfr.a"
2234else
2235 gmplibs="-lmpfr"
2236fi
2237
2238# Check whether --with-mpfr or --without-mpfr was given.
2239if test "${with_mpfr+set}" = set; then
2240 withval="$with_mpfr"
cac3d6c4
CM
2241 :
2242fi
11b04d1f
DD
2243
2244
2245if test "x$with_mpfr" != x; then
2246 gmplibs="-L$with_mpfr/lib $gmplibs"
2247 gmpinc="-I$with_mpfr/include"
2248fi
2249
4b1cb4fe
DD
2250# Specify a location for gmp
2251# Check whether --with-gmp-dir or --without-gmp-dir was given.
2252if test "${with_gmp_dir+set}" = set; then
2253 withval="$with_gmp_dir"
cac3d6c4
CM
2254 :
2255fi
4b1cb4fe
DD
2256
2257
11b04d1f
DD
2258if test "x$with_gmp_dir" != x; then
2259 gmpinc="$gmpinc -I$with_gmp_dir"
4b1cb4fe 2260 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
11b04d1f 2261 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
4b1cb4fe 2262 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
11b04d1f 2263 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
4b1cb4fe
DD
2264 fi
2265 # One of the later tests will catch the error if neither library is present.
11b04d1f
DD
2266else
2267 gmplibs="$gmplibs -lgmp"
4b1cb4fe
DD
2268fi
2269
2270# Check whether --with-gmp or --without-gmp was given.
2271if test "${with_gmp+set}" = set; then
2272 withval="$with_gmp"
cac3d6c4
CM
2273 :
2274fi
4b1cb4fe
DD
2275
2276
11b04d1f
DD
2277if test "x$with_gmp" != x; then
2278 gmplibs="-L$with_gmp/lib $gmplibs"
2279 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe
DD
2280fi
2281
2282saved_CFLAGS="$CFLAGS"
2283CFLAGS="$CFLAGS $gmpinc"
2284# Check GMP actually works
cac3d6c4 2285echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2429c060 2286echo "configure:2287: checking for correct version of gmp.h" >&5
cac3d6c4 2287cat > conftest.$ac_ext <<EOF
2429c060 2288#line 2289 "configure"
cac3d6c4 2289#include "confdefs.h"
4b1cb4fe 2290#include "gmp.h"
cac3d6c4 2291int main() {
4b1cb4fe
DD
2292
2293#if __GNU_MP_VERSION < 3
2294choke me
2295#endif
2296
cac3d6c4
CM
2297; return 0; }
2298EOF
2429c060 2299if { (eval echo configure:2300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cac3d6c4
CM
2300 rm -rf conftest*
2301 echo "$ac_t""yes" 1>&6
2302else
2303 echo "configure: failed program was:" >&5
2304 cat conftest.$ac_ext >&5
2305 rm -rf conftest*
2306 echo "$ac_t""no" 1>&6; have_gmp=no
2307fi
2308rm -f conftest*
4b1cb4fe
DD
2309
2310if test x"$have_gmp" = xyes; then
cac3d6c4 2311 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2429c060 2312echo "configure:2313: checking for MPFR" >&5
4b1cb4fe
DD
2313
2314 saved_LIBS="$LIBS"
2315 LIBS="$LIBS $gmplibs"
cac3d6c4 2316 cat > conftest.$ac_ext <<EOF
2429c060 2317#line 2318 "configure"
cac3d6c4 2318#include "confdefs.h"
4b1cb4fe 2319#include <gmp.h>
11b04d1f 2320#include <mpfr.h>
cac3d6c4 2321int main() {
11b04d1f 2322mpfr_t n; mpfr_init(n);
cac3d6c4
CM
2323; return 0; }
2324EOF
2429c060 2325if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
cac3d6c4
CM
2326 rm -rf conftest*
2327 echo "$ac_t""yes" 1>&6
2328else
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2331 rm -rf conftest*
2332 echo "$ac_t""no" 1>&6; have_gmp=no
2333fi
2334rm -f conftest*
4b1cb4fe
DD
2335 LIBS="$saved_LIBS"
2336 CFLAGS="$saved_CFLAGS"
2337fi
2338
11b04d1f 2339# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
2340
2341
2342
947f426e 2343# By default, C is the only stage 1 language.
1d39f329
NN
2344stage1_languages=c
2345
2346
9e07f89d
NN
2347# Figure out what language subdirectories are present.
2348# Look if the user specified --enable-languages="..."; if not, use
2349# the environment variable $LANGUAGES if defined. $LANGUAGES might
2350# go away some day.
2351# NB: embedded tabs in this IF block -- do not untabify
2352if test -d ${srcdir}/gcc; then
2353 if test x"${enable_languages+set}" != xset; then
2354 if test x"${LANGUAGES+set}" = xset; then
2355 enable_languages="${LANGUAGES}"
2356 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2357 else
2358 enable_languages=all
2359 fi
2360 else
2361 if test x"${enable_languages}" = x ||
2362 test x"${enable_languages}" = xyes;
2363 then
2364 echo configure.in: --enable-languages needs at least one language argument 1>&2
2365 exit 1
2366 fi
2367 fi
2368 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2369
096f7d00
DE
2370 # 'f95' is the old name for the 'fortran' language. We issue a warning
2371 # and make the substitution.
2372 case ,${enable_languages}, in
2373 *,f95,*)
2374 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2375 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2376 ;;
2377 esac
2378
9e07f89d
NN
2379 # First scan to see if an enabled language requires some other language.
2380 # We assume that a given config-lang.in will list all the language
2381 # front ends it requires, even if some are required indirectly.
2382 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2383 case ${lang_frag} in
2384 ..) ;;
2385 # The odd quoting in the next line works around
2386 # an apparent bug in bash 1.12 on linux.
2387 ${srcdir}/gcc/[*]/config-lang.in) ;;
2388 *)
2389 # From the config-lang.in, get $language, $lang_requires
2390 language=
2391 lang_requires=
2392 . ${lang_frag}
2393 for other in ${lang_requires} ; do
2394 case ,${enable_languages}, in
2395 *,$other,*) ;;
2396 *,all,*) ;;
2397 *,$language,*)
2398 echo " \`$other' language required by \`$language'; enabling" 1>&2
2399 enable_languages="${enable_languages},${other}"
2400 ;;
2401 esac
2402 done
2403 ;;
2404 esac
2405 done
2406
2407 new_enable_languages=c
2408 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9cb3fa6f 2409 potential_languages=c
9e07f89d
NN
2410
2411 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2412 case ${lang_frag} in
2413 ..) ;;
2414 # The odd quoting in the next line works around
2415 # an apparent bug in bash 1.12 on linux.
2416 ${srcdir}/gcc/[*]/config-lang.in) ;;
2417 *)
cac3d6c4 2418 # From the config-lang.in, get $language, $target_libs,
1d39f329 2419 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
2420 language=
2421 target_libs=
2422 lang_dirs=
1d39f329 2423 boot_language=
9e07f89d 2424 build_by_default=
9cb3fa6f 2425 need_gmp=
9e07f89d 2426 . ${lang_frag}
9cb3fa6f 2427 potential_languages="${potential_languages},${language}"
9e07f89d
NN
2428 # This is quite sensitive to the ordering of the case statement arms.
2429 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2430 *::*:*)
2431 echo "${lang_frag} doesn't set \$language." 1>&2
2432 exit 1
9cb3fa6f 2433 ;;
9e07f89d
NN
2434 *:ada:no:*)
2435 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2436 add_this_lang=no
2437 ;;
2438 *,${language},*:*:*:*)
2439 # Language was explicitly selected; include it.
2440 add_this_lang=yes
2441 ;;
2442 *,all,*:*:*:no)
2443 # 'all' was selected, but this is not a default language
9cb3fa6f 2444 # so do not include it.
9e07f89d 2445 add_this_lang=no
9cb3fa6f 2446 ;;
9e07f89d
NN
2447 *,all,*:*:*:*)
2448 # 'all' was selected and this is a default language; include it.
2449 add_this_lang=yes
2450 ;;
2451 *)
2452 add_this_lang=no
2453 ;;
2454 esac
4b1cb4fe 2455
9cb3fa6f
PB
2456 # Disable languages that need GMP if it isn't available.
2457 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2458 *,${language},*:no:yes)
2459 # Specifically requested language; tell them.
cac3d6c4 2460 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
9cb3fa6f
PB
2461 ;;
2462 *:no:yes)
2463 # Silently disable.
2464 add_this_lang=no
2465 ;;
2466 esac
59f7ec45
HPN
2467
2468 # Disable a language that is unsupported by the target.
2469 case " $unsupported_languages " in
2470 *" $language "*)
2471 add_this_lang=no
2472 ;;
2473 esac
2474
4b1cb4fe 2475 case $add_this_lang in
9e07f89d
NN
2476 no)
2477 # Remove language-dependent dirs.
1d39f329
NN
2478 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2479 ;;
9e07f89d
NN
2480 *)
2481 new_enable_languages="$new_enable_languages,$language"
1d39f329
NN
2482 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2483 case ${boot_language} in
2484 yes)
4fa63067
NN
2485 # Add to (comma-separated) list of stage 1 languages.
2486 stage1_languages="${stage1_languages},${language}"
1d39f329
NN
2487 ;;
2488 esac
2489 ;;
9e07f89d
NN
2490 esac
2491 ;;
2492 esac
2493 done
2494
4b0ac75d 2495 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9e07f89d 2496 if test "x$missing_languages" != x; then
cac3d6c4 2497 { echo "configure: error:
27258dd4 2498The following requested languages could not be built: ${missing_languages}
cac3d6c4 2499Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
9e07f89d
NN
2500 fi
2501
2502 if test "x$new_enable_languages" != "x$enable_languages"; then
2503 echo The following languages will be built: ${new_enable_languages}
2504 fi
2505 enable_languages="$new_enable_languages"
2e70b094 2506 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
9e07f89d
NN
2507fi
2508
caeba88f
AL
2509# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2510# $build_configdirs and $target_configdirs.
9e07f89d
NN
2511# If we have the source for $noconfigdirs entries, add them to $notsupp.
2512
2513notsupp=""
2514for dir in . $skipdirs $noconfigdirs ; do
caeba88f 2515 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
2516 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2517 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2518 if test -r $srcdir/$dirname/configure ; then
2519 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2520 true
2521 else
2522 notsupp="$notsupp $dir"
2523 fi
2524 fi
2525 fi
caeba88f
AL
2526 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2527 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2528 if test -r $srcdir/$dirname/configure ; then
2529 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2530 true
2531 else
2532 notsupp="$notsupp $dir"
2533 fi
2534 fi
2535 fi
9e07f89d
NN
2536 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2537 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2538 if test -r $srcdir/$dirname/configure ; then
2539 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2540 true
2541 else
2542 notsupp="$notsupp $dir"
2543 fi
2544 fi
2545 fi
2546done
2547
2548# Sometimes the tools are distributed with libiberty but with no other
2549# libraries. In that case, we don't want to build target-libiberty.
2550if test -n "${target_configdirs}" ; then
2551 others=
2552 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2553 if test "$i" != "libiberty" ; then
2554 if test -r $srcdir/$i/configure ; then
2555 others=yes;
2556 break;
2557 fi
2558 fi
2559 done
2560 if test -z "${others}" ; then
2561 target_configdirs=
2562 fi
2563fi
2564
2565# Quietly strip out all directories which aren't configurable in this tree.
2566# This relies on all configurable subdirectories being autoconfiscated, which
2567# is now the case.
6a9cf61e
PB
2568build_configdirs_all="$build_configdirs"
2569build_configdirs=
2570for i in ${build_configdirs_all} ; do
cac3d6c4 2571 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
2572 if test -f ${srcdir}/$j/configure ; then
2573 build_configdirs="${build_configdirs} $i"
2574 fi
2575done
2576
9e07f89d
NN
2577configdirs_all="$configdirs"
2578configdirs=
2579for i in ${configdirs_all} ; do
2580 if test -f ${srcdir}/$i/configure ; then
2581 configdirs="${configdirs} $i"
2582 fi
2583done
6a9cf61e 2584
9e07f89d
NN
2585target_configdirs_all="$target_configdirs"
2586target_configdirs=
2587for i in ${target_configdirs_all} ; do
cac3d6c4 2588 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
2589 if test -f ${srcdir}/$j/configure ; then
2590 target_configdirs="${target_configdirs} $i"
2591 fi
2592done
2593
2594# Produce a warning message for the subdirs we can't configure.
2595# This isn't especially interesting in the Cygnus tree, but in the individual
2596# FSF releases, it's important to let people know when their machine isn't
2597# supported by the one or two programs in a package.
2598
2599if test -n "${notsupp}" && test -z "${norecursion}" ; then
2600 # If $appdirs is non-empty, at least one of those directories must still
2601 # be configured, or we error out. (E.g., if the gas release supports a
2602 # specified target in some subdirs but not the gas subdir, we shouldn't
2603 # pretend that all is well.)
2604 if test -n "$appdirs" ; then
2605 for dir in $appdirs ; do
2606 if test -r $dir/Makefile.in ; then
2607 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2608 appdirs=""
2609 break
2610 fi
6a9cf61e 2611 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
2612 appdirs=""
2613 break
2614 fi
2615 fi
2616 done
2617 if test -n "$appdirs" ; then
2618 echo "*** This configuration is not supported by this package." 1>&2
2619 exit 1
2620 fi
2621 fi
2622 # Okay, some application will build, or we don't care to check. Still
2623 # notify of subdirs not getting built.
2624 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2625 echo " ${notsupp}" 1>&2
2626 echo " (Any other directories should still work fine.)" 1>&2
2627fi
2628
2629case "$host" in
2630 *msdosdjgpp*)
2631 enable_gdbtk=no ;;
2632esac
2633
2634copy_dirs=
2635
a19b6204
MM
2636# Check whether --with-build-sysroot or --without-build-sysroot was given.
2637if test "${with_build_sysroot+set}" = set; then
2638 withval="$with_build_sysroot"
2639 if test x"$withval" != x ; then
2640 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2641 fi
2642else
2643 SYSROOT_CFLAGS_FOR_TARGET=
cac3d6c4
CM
2644fi
2645
a19b6204
MM
2646
2647
9e07f89d
NN
2648# Handle --with-headers=XXX. If the value is not "yes", the contents of
2649# the named directory are copied to $(tooldir)/sys-include.
2650if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2651 if test x${is_cross_compiler} = xno ; then
2652 echo 1>&2 '***' --with-headers is only supported when cross compiling
2653 exit 1
2654 fi
2655 if test x"${with_headers}" != xyes ; then
2656 case "${exec_prefixoption}" in
2657 "") x=${prefix} ;;
2658 *) x=${exec_prefix} ;;
2659 esac
2660 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2661 fi
2662fi
2663
2664# Handle --with-libs=XXX. If the value is not "yes", the contents of
2665# the name directories are copied to $(tooldir)/lib. Multiple directories
2666# are permitted.
2667if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2668 if test x${is_cross_compiler} = xno ; then
2669 echo 1>&2 '***' --with-libs is only supported when cross compiling
2670 exit 1
2671 fi
2672 if test x"${with_libs}" != xyes ; then
2673 # Copy the libraries in reverse order, so that files in the first named
2674 # library override files in subsequent libraries.
2675 case "${exec_prefixoption}" in
2676 "") x=${prefix} ;;
2677 *) x=${exec_prefix} ;;
2678 esac
2679 for l in ${with_libs}; do
2680 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2681 done
2682 fi
2683fi
2684
2429c060
PB
2685# Set with_gnu_as and with_gnu_ld as appropriate.
2686#
2687# This is done by determining whether or not the appropriate directory
2688# is available, and by checking whether or not specific configurations
2689# have requested that this magic not happen.
2690#
2691# The command line options always override the explicit settings in
2692# configure.in, and the settings in configure.in override this magic.
2693#
2694# If the default for a toolchain is to use GNU as and ld, and you don't
2695# want to do that, then you should use the --without-gnu-as and
2696# --without-gnu-ld options for the configure script.
2697
2698if test x${use_gnu_as} = x &&
2699 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2700 with_gnu_as=yes
2701 extra_host_args="$extra_host_args --with-gnu-as"
2702fi
2703
2704if test x${use_gnu_ld} = x &&
2705 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2706 with_gnu_ld=yes
2707 extra_host_args="$extra_host_args --with-gnu-ld"
2708fi
2709
2710# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2711# can detect this case.
2712
2713if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2714 with_newlib=yes
2715 extra_host_args="$extra_host_args --with-newlib"
2716fi
2717
9e07f89d
NN
2718# Handle ${copy_dirs}
2719set fnord ${copy_dirs}
2720shift
2721while test $# != 0 ; do
2722 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2723 :
2724 else
2725 echo Copying $1 to $2
2726
2727 # Use the install script to create the directory and all required
2728 # parent directories.
2729 if test -d $2 ; then
2730 :
2731 else
2732 echo >config.temp
2733 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2734 fi
2735
2736 # Copy the directory, assuming we have tar.
2737 # FIXME: Should we use B in the second tar? Not all systems support it.
2738 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2739
2740 # It is the responsibility of the user to correctly adjust all
2741 # symlinks. If somebody can figure out how to handle them correctly
2742 # here, feel free to add the code.
2743
2744 echo $1 > $2/COPIED
2745 fi
2746 shift; shift
2747done
2748
2429c060
PB
2749# Determine a target-dependent exec_prefix that the installed
2750# gcc will search in. Keep this list sorted by triplet, with
2751# the *-*-osname triplets last.
2752md_exec_prefix=
2753case "${target}" in
2754 alpha*-*-*vms*)
2755 md_exec_prefix=/gnu/lib/gcc-lib
2756 ;;
2757 i3456786-pc-msdosdjgpp*)
2758 md_exec_prefix=/dev/env/DJDIR/bin
2759 ;;
2760 i3456786-*-sco3.2v5*)
2761 if test $with_gnu_as = yes; then
2762 md_exec_prefix=/usr/gnu/bin
2763 else
2764 md_exec_prefix=/usr/ccs/bin/elf
2765 fi
2766 ;;
2767
2768 mn10300-*-* | \
2769 powerpc-*-chorusos* | \
2770 powerpc*-*-eabi* | \
2771 powerpc*-*-sysv* | \
2772 powerpc*-*-kaos* | \
2773 s390x-ibm-tpf*)
2774 md_exec_prefix=/usr/ccs/bin
2775 ;;
2776 sparc64-*-elf*)
2777 ;;
2778 v850*-*-*)
2779 md_exec_prefix=/usr/ccs/bin
2780 ;;
2781 xtensa-*-elf*)
2782 ;;
2783
2784 *-*-beos* | \
2785 *-*-elf* | \
2786 *-*-hpux* | \
2787 *-*-netware* | \
2788 *-*-nto-qnx* | \
2789 *-*-rtems* | \
2790 *-*-solaris2* | \
2791 *-*-sysv45* | \
2792 *-*-vxworks* | \
2793 *-wrs-windiss)
2794 md_exec_prefix=/usr/ccs/bin
2795 ;;
2796esac
2797
a0da8069
NN
2798extra_arflags_for_target=
2799extra_nmflags_for_target=
2800extra_ranlibflags_for_target=
2801target_makefile_frag=/dev/null
2802case "${target}" in
2a3124ca 2803 *-*-netware*)
a0da8069
NN
2804 target_makefile_frag="config/mt-netware"
2805 ;;
3d6dfe0f
NN
2806 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2807 target_makefile_frag="config/mt-gnu"
a0da8069
NN
2808 ;;
2809 *-*-aix4.[3456789]* | *-*-aix[56789].*)
cac3d6c4 2810 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
2811 # commands to handle both 32-bit and 64-bit objects. These flags are
2812 # harmless if we're using GNU nm or ar.
2813 extra_arflags_for_target=" -X32_64"
2814 extra_nmflags_for_target=" -B -X32_64"
2815 ;;
2816 *-*-darwin*)
2817 # ranlib from Darwin requires the -c flag to look at common symbols.
2818 extra_ranlibflags_for_target=" -c"
2819 ;;
2820 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2821 target_makefile_frag="config/mt-wince"
2822 ;;
2823esac
2824
2825alphaieee_frag=/dev/null
2826case $target in
2827 alpha*-*-*)
2828 # This just makes sure to use the -mieee option to build target libs.
2829 # This should probably be set individually by each library.
2830 alphaieee_frag="config/mt-alphaieee"
2831 ;;
2832esac
2833
2834# If --enable-target-optspace always use -Os instead of -O2 to build
2835# the target libraries, similarly if it is not specified, use -Os
2836# on selected platforms.
2837ospace_frag=/dev/null
2838case "${enable_target_optspace}:${target}" in
2839 yes:*)
2840 ospace_frag="config/mt-ospace"
2841 ;;
2842 :d30v-*)
2843 ospace_frag="config/mt-d30v"
2844 ;;
2845 :m32r-* | :d10v-* | :fr30-*)
2846 ospace_frag="config/mt-ospace"
2847 ;;
2848 no:* | :*)
2849 ;;
2850 *)
2851 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2852 ;;
2853esac
2854
a0da8069
NN
2855# Default to using --with-stabs for certain targets.
2856if test x${with_stabs} = x ; then
2857 case "${target}" in
e31d1ea3 2858 mips*-*-irix[56]*)
a0da8069
NN
2859 ;;
2860 mips*-*-* | alpha*-*-osf*)
2861 with_stabs=yes;
2862 extra_host_args="${extra_host_args} --with-stabs"
2863 ;;
2864 esac
2865fi
2866
2867# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2868# them automatically.
2869case "${host}" in
cac3d6c4 2870 hppa*64*-*-hpux11*)
a0da8069
NN
2871 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2872 ;;
2873esac
2874
a0da8069
NN
2875# Some systems (e.g., one of the i386-aix systems the gas testers are
2876# using) don't handle "\$" correctly, so don't use it here.
61fa5f72 2877tooldir='${exec_prefix}'/${target_alias}
a0da8069
NN
2878build_tooldir=${tooldir}
2879
a0da8069
NN
2880# Create a .gdbinit file which runs the one in srcdir
2881# and tells GDB to look there for source files.
2882
2883if test -r ${srcdir}/.gdbinit ; then
2884 case ${srcdir} in
2885 .) ;;
2886 *) cat > ./.gdbinit <<EOF
2887# ${NO_EDIT}
2888dir ${srcdir}
2889dir .
2890source ${srcdir}/.gdbinit
2891EOF
2892 ;;
2893 esac
2894fi
2895
a0da8069
NN
2896# Make sure that the compiler is able to generate an executable. If it
2897# can't, we are probably in trouble. We don't care whether we can run the
2898# executable--we might be using a cross compiler--we only care whether it
2899# can be created. At this point the main configure script has set CC.
2900we_are_ok=no
2901echo "int main () { return 0; }" > conftest.c
2902${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2903if test $? = 0 ; then
2904 if test -s conftest || test -s conftest.exe ; then
2905 we_are_ok=yes
2906 fi
cac3d6c4 2907fi
a0da8069
NN
2908case $we_are_ok in
2909 no)
2910 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2911 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2912 rm -f conftest*
2913 exit 1
2914 ;;
2915esac
2916rm -f conftest*
2917
2918# The Solaris /usr/ucb/cc compiler does not appear to work.
2919case "${host}" in
2920 sparc-sun-solaris2*)
2921 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2922 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2923 could_use=
2924 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2925 if test -d /opt/cygnus/bin ; then
2926 if test "$could_use" = "" ; then
2927 could_use="/opt/cygnus/bin"
2928 else
2929 could_use="$could_use or /opt/cygnus/bin"
2930 fi
2931 fi
2932 if test "$could_use" = "" ; then
2933 echo "Warning: compilation may fail because you're using"
2934 echo "/usr/ucb/cc. You should change your PATH or CC "
2935 echo "variable and rerun configure."
2936 else
2937 echo "Warning: compilation may fail because you're using"
2938 echo "/usr/ucb/cc, when you should use the C compiler from"
2939 echo "$could_use. You should change your"
2940 echo "PATH or CC variable and rerun configure."
2941 fi
2942 fi
2943 ;;
2944esac
2945
a0da8069
NN
2946case "${host}" in
2947 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 2948 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
2949 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2950esac
2951
2952# Record target_configdirs and the configure arguments for target and
2953# build configuration in Makefile.
2954target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 2955build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 2956
a0da8069
NN
2957# Determine whether gdb needs tk/tcl or not.
2958# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2959# and in that case we want gdb to be built without tk. Ugh!
2960# In fact I believe gdb is the *only* package directly dependent on tk,
2961# so we should be able to put the 'maybe's in unconditionally and
2962# leave out the maybe dependencies when enable_gdbtk is false. I'm not
2963# 100% sure that that's safe though.
c180f501 2964
675c6968 2965gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
2966case "$enable_gdbtk" in
2967 no)
2968 GDB_TK="" ;;
c180f501
AC
2969 yes)
2970 GDB_TK="${gdb_tk}" ;;
a0da8069 2971 *)
c180f501
AC
2972 # Only add the dependency on gdbtk when GDBtk is part of the gdb
2973 # distro. Eventually someone will fix this and move Insight, nee
2974 # gdbtk to a separate directory.
2975 if test -d ${srcdir}/gdb/gdbtk ; then
2976 GDB_TK="${gdb_tk}"
2977 else
2978 GDB_TK=""
2979 fi
2980 ;;
a0da8069 2981esac
907be67c
DJ
2982CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
2983INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 2984
6bd3dfaa 2985# Strip out unwanted targets.
dd12c3a8
NN
2986
2987# While at that, we remove Makefiles if we were started for recursive
2988# configuration, so that the top-level Makefile reconfigures them,
2989# like we used to do when configure itself was recursive.
dd12c3a8 2990
6bd3dfaa
PB
2991# Loop over modules. $extrasub must be used with care, limiting as
2992# much as possible the usage of range addresses. That's because autoconf
2993# splits the sed script to overcome limits in the number of commands,
2994# and relying on carefully-timed sed passes may turn out to be very hard
2995# to maintain later. In this particular case, you just have to be careful
2996# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 2997
319cab08
PB
2998# Check whether --enable-bootstrap or --disable-bootstrap was given.
2999if test "${enable_bootstrap+set}" = set; then
3000 enableval="$enable_bootstrap"
cac3d6c4 3001 :
319cab08 3002else
9cb3fa6f 3003 enable_bootstrap=default
cac3d6c4
CM
3004fi
3005
319cab08 3006
9cb3fa6f
PB
3007# Issue errors and warnings for invalid/strange bootstrap combinations.
3008case "$configdirs" in
3009 *gcc*) have_compiler=yes ;;
3010 *) have_compiler=no ;;
3011esac
3012
3013case "$have_compiler:$host:$target:$enable_bootstrap" in
3014 *:*:*:no) ;;
3015
0aed8855 3016 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
3017 # and we are in a native configuration.
3018 yes:$build:$build:default)
0aed8855 3019 enable_bootstrap=yes ;;
9cb3fa6f
PB
3020
3021 *:*:*:default)
3022 enable_bootstrap=no ;;
3023
3024 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 3025 yes:$build:$build:yes)
9cb3fa6f
PB
3026 ;;
3027
3028 # Other configurations, but we have a compiler. Assume the user knows
3029 # what he's doing.
80911fe1 3030 yes:*:*:yes)
cac3d6c4 3031 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
9cb3fa6f
PB
3032 ;;
3033
3034 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 3035 no:*:*:yes)
cac3d6c4 3036 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
9cb3fa6f
PB
3037
3038 # Fail if wrong command line
3039 *)
cac3d6c4 3040 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
9cb3fa6f
PB
3041 ;;
3042esac
3043
3044# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
3045case "$enable_bootstrap" in
3046 yes)
498d4a71 3047 bootstrap_suffix=bootstrap ;;
319cab08 3048 no)
498d4a71 3049 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
3050esac
3051
6a9cf61e 3052for module in ${build_configdirs} ; do
498d4a71
CF
3053 if test -z "${no_recursion}" \
3054 && test -f ${build_subdir}/${module}/Makefile; then
3055 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3056 rm -f ${build_subdir}/${module}/Makefile
3057 fi
3058 extrasub="$extrasub
3059/^@if build-$module\$/d
3060/^@endif build-$module\$/d
3061/^@if build-$module-$bootstrap_suffix\$/d
3062/^@endif build-$module-$bootstrap_suffix\$/d"
3063done
3064for module in ${configdirs} ; do
80911fe1
PB
3065 if test -z "${no_recursion}"; then
3066 for file in stage*-${module}/Makefile ${module}/Makefile; do
3067 if test -f ${file}; then
3068 echo 1>&2 "*** removing ${file} to force reconfigure"
3069 rm -f ${file}
3070 fi
3071 done
498d4a71
CF
3072 fi
3073 extrasub="$extrasub
3074/^@if $module\$/d
3075/^@endif $module\$/d
3076/^@if $module-$bootstrap_suffix\$/d
3077/^@endif $module-$bootstrap_suffix\$/d"
3078done
3079for module in ${target_configdirs} ; do
3080 if test -z "${no_recursion}" \
3081 && test -f ${target_subdir}/${module}/Makefile; then
3082 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3083 rm -f ${target_subdir}/${module}/Makefile
3084 fi
3085 extrasub="$extrasub
3086/^@if target-$module\$/d
3087/^@endif target-$module\$/d
3088/^@if target-$module-$bootstrap_suffix\$/d
3089/^@endif target-$module-$bootstrap_suffix\$/d"
3090done
3091
6bd3dfaa
PB
3092extrasub="$extrasub
3093/^@if /,/^@endif /d"
a0da8069
NN
3094
3095# Create the serialization dependencies. This uses a temporary file.
3096
e6bfb94a
AO
3097# Check whether --enable-serial-configure or --disable-serial-configure was given.
3098if test "${enable_serial_configure+set}" = set; then
3099 enableval="$enable_serial_configure"
cac3d6c4
CM
3100 :
3101fi
e6bfb94a
AO
3102
3103
1047cb91
DD
3104case ${enable_serial_configure} in
3105 yes)
3106 enable_serial_build_configure=yes
3107 enable_serial_host_configure=yes
3108 enable_serial_target_configure=yes
3109 ;;
3110esac
3111
a0da8069
NN
3112# These force 'configure's to be done one at a time, to avoid problems
3113# with contention over a shared config.cache.
3114rm -f serdep.tmp
e6bfb94a 3115echo '# serdep.tmp' > serdep.tmp
a0da8069 3116olditem=
1047cb91 3117test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
3118for item in ${build_configdirs} ; do
3119 case ${olditem} in
3120 "") ;;
e6bfb94a 3121 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
3122 esac
3123 olditem=${item}
3124done
3125olditem=
1047cb91 3126test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
3127for item in ${configdirs} ; do
3128 case ${olditem} in
3129 "") ;;
e6bfb94a 3130 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
3131 esac
3132 olditem=${item}
3133done
3134olditem=
1047cb91 3135test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
3136for item in ${target_configdirs} ; do
3137 case ${olditem} in
3138 "") ;;
e6bfb94a 3139 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
3140 esac
3141 olditem=${item}
3142done
3143serialization_dependencies=serdep.tmp
3144
3145
e6bfb94a
AO
3146# Base args. Strip norecursion, cache-file, srcdir, host, build,
3147# target and nonopt. These are the ones we might not want to pass
f27d4f92
DJ
3148# down to subconfigures. Also strip program-prefix, program-suffix,
3149# and program-transform-name, so that we can pass down a consistent
3150# program-transform-name. If autoconf has put single quotes around
3151# any of these arguments (because they contain shell metacharacters)
3152# then this will fail; in practice this only happens for
3153# --program-transform-name, so be sure to override --program-transform-name
3154# at the end of the argument list.
3155# These will be expanded by make, so quote '$'.
d2cc0e0d 3156cat <<\EOF_SED > conftestsed
54752a6b
NN
3157s/ --no[^ ]*/ /g
3158s/ --c[a-z-]*[= ][^ ]*//g
3159s/ --sr[a-z-]*[= ][^ ]*//g
3160s/ --ho[a-z-]*[= ][^ ]*//g
3161s/ --bu[a-z-]*[= ][^ ]*//g
3162s/ --t[a-z-]*[= ][^ ]*//g
3163s/ --program-[pst][a-z-]*[= ][^ ]*//g
3164s/ -cache-file[= ][^ ]*//g
3165s/ -srcdir[= ][^ ]*//g
3166s/ -host[= ][^ ]*//g
3167s/ -build[= ][^ ]*//g
3168s/ -target[= ][^ ]*//g
3169s/ -program-prefix[= ][^ ]*//g
3170s/ -program-suffix[= ][^ ]*//g
3171s/ -program-transform-name[= ][^ ]*//g
d2cc0e0d
GK
3172s/ [^' -][^ ]* / /
3173s/^ *//;s/ *$//
8ff944f6
DJ
3174s,\$,$$,g
3175EOF_SED
3176sed -f conftestsed <<EOF_SED > conftestsed.out
cac3d6c4 3177 ${ac_configure_args}
d2cc0e0d 3178EOF_SED
8ff944f6
DJ
3179baseargs=`cat conftestsed.out`
3180rm -f conftestsed conftestsed.out
a0da8069 3181
f27d4f92
DJ
3182# Add in --program-transform-name, after --program-prefix and
3183# --program-suffix have been applied to it. Autoconf has already
3184# doubled dollar signs and backslashes in program_transform_name; we want
3185# the backslashes un-doubled, and then the entire thing wrapped in single
cac3d6c4 3186# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
3187# Also, because we want to override the logic in subdir configure scripts to
3188# choose program_transform_name, replace any s,x,x, with s,y,y,.
3189sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3190${program_transform_name}
3191EOF_SED
3192gcc_transform_name=`cat conftestsed.out`
3193rm -f conftestsed.out
3194baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3195
a0da8069
NN
3196# For the build-side libraries, we just need to pretend we're native,
3197# and not use the same cache file. Multilibs are neither needed nor
3198# desired.
69e57115 3199build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
a0da8069
NN
3200
3201# For host modules, accept cache file option, or specification as blank.
3202case "${cache_file}" in
3203"") # empty
3204 cache_file_option="" ;;
3205/* | [A-Za-z]:[\\/]* ) # absolute path
3206 cache_file_option="--cache-file=${cache_file}" ;;
3207*) # relative path
3208 cache_file_option="--cache-file=../${cache_file}" ;;
3209esac
3210
82252c06
NN
3211# Host dirs don't like to share a cache file either, horribly enough.
3212# This seems to be due to autoconf 2.5x stupidity.
bb5dca17 3213host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
a0da8069
NN
3214
3215target_configargs=${baseargs}
3216
3217# Passing a --with-cross-host argument lets the target libraries know
3218# whether they are being built with a cross-compiler or being built
3219# native. However, it would be better to use other mechanisms to make the
3220# sorts of decisions they want to make on this basis. Please consider
3221# this option to be deprecated. FIXME.
3222if test x${is_cross_compiler} = xyes ; then
3223 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3224fi
3225
3226# Default to --enable-multilib.
3227if test x${enable_multilib} = x ; then
3228 target_configargs="--enable-multilib ${target_configargs}"
3229fi
3230
3231# Pass --with-newlib if appropriate. Note that target_configdirs has
3232# changed from the earlier setting of with_newlib.
3233if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3234 target_configargs="--with-newlib ${target_configargs}"
3235fi
3236
95036d20
NN
3237# Different target subdirs use different values of certain variables
3238# (notably CXX). Worse, multilibs use *lots* of different values.
3239# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3240# it doesn't automatically accept command-line overrides of them.
3241# This means it's not safe for target subdirs to share a cache file,
3242# which is disgusting, but there you have it. Hopefully this can be
3243# fixed in future. It's still worthwhile to use a cache file for each
3244# directory. I think.
3245
ae380b45
MS
3246# Pass the appropriate --build, --host, --target and --cache-file arguments.
3247# We need to pass --target, as newer autoconf's requires consistency
3248# for target_alias and gcc doesn't manage it consistently.
3249target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
a0da8069 3250
a0da8069
NN
3251FLAGS_FOR_TARGET=
3252case " $target_configdirs " in
3253 *" newlib "*)
3254 case " $target_configargs " in
3255 *" --with-newlib "*)
3256 case "$target" in
3257 *-cygwin*)
564b43e5 3258 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' ;;
a0da8069
NN
3259 esac
3260
3261 # If we're not building GCC, don't discard standard headers.
3262 if test -d ${srcdir}/gcc; then
3263 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3264
3265 if test "${build}" != "${host}"; then
3266 # On Canadian crosses, CC_FOR_TARGET will have already been set
3267 # by `configure', so we won't have an opportunity to add -Bgcc/
3268 # to it. This is right: we don't want to search that directory
3269 # for binaries, but we want the header files in there, so add
3270 # them explicitly.
b00612cc 3271 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
3272
3273 # Someone might think of using the pre-installed headers on
3274 # Canadian crosses, in case the installed compiler is not fully
3275 # compatible with the compiler being built. In this case, it
3276 # would be better to flag an error than risking having
3277 # incompatible object files being constructed. We can't
3278 # guarantee that an error will be flagged, but let's hope the
3279 # compiler will do it, when presented with incompatible header
3280 # files.
3281 fi
3282 fi
3283
3284 case "${target}-${is_cross_compiler}" in
ec11bdc6 3285 i[3456789]86-*-linux*-no)
a0da8069
NN
3286 # Here host == target, so we don't need to build gcc,
3287 # so we don't want to discard standard headers.
3288 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3289 ;;
3290 *)
3291 # If we're building newlib, use its generic headers last, but search
3292 # for any libc-related directories first (so make it the last -B
3293 # switch).
3294 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3295 ;;
3296 esac
3297 ;;
3298 esac
3299 ;;
3300esac
3301
5fbad20a
DD
3302# Allow the user to override the flags for
3303# our build compiler if desired.
3304CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3305
a0da8069
NN
3306# On Canadian crosses, we'll be searching the right directories for
3307# the previously-installed cross compiler, so don't bother to add
3308# flags for directories within the install tree of the compiler
3309# being built; programs in there won't even run.
3310if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3311 # Search for pre-installed headers if nothing else fits.
bba45b8b 3312 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
3313fi
3314
3315if test "x${use_gnu_ld}" = x &&
3316 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3317 # Arrange for us to find uninstalled linker scripts.
b00612cc 3318 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
3319fi
3320
a0da8069 3321# Makefile fragments.
3e707e94
PB
3322for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3323do
3324 eval fragval=\$$frag
3325 if test $fragval != /dev/null; then
3326 eval $frag=${srcdir}/$fragval
3327 fi
3328done
a0da8069
NN
3329
3330
3331
3332
3333
3334# Miscellanea: directories, flags, etc.
3335
3336
3337
3338
3339
3340
3341
907be67c
DJ
3342
3343
6a9cf61e 3344# Build module lists & subconfigure args.
a0da8069
NN
3345
3346
3347
be01d343
PB
3348# Host module lists & subconfigure args.
3349
3350
3351
3352# Target module lists & subconfigure args.
3353
3354
3355
3356# Build tools.
3357
3358
3359
3360# Generate default definitions for YACC, M4, LEX and other programs that run
3361# on the build machine. These are used if the Makefile can't locate these
3362# programs in objdir.
3363MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3364
3365for ac_prog in 'bison -y' byacc yacc
3366do
3367# Extract the first word of "$ac_prog", so it can be a program name with args.
3368set dummy $ac_prog; ac_word=$2
3369echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 3370echo "configure:3371: checking for $ac_word" >&5
be01d343
PB
3371if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3372 echo $ac_n "(cached) $ac_c" 1>&6
3373else
3374 if test -n "$YACC"; then
3375 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3376else
3377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3378 ac_dummy="$PATH"
3379 for ac_dir in $ac_dummy; do
3380 test -z "$ac_dir" && ac_dir=.
3381 if test -f $ac_dir/$ac_word; then
3382 ac_cv_prog_YACC="$ac_prog"
3383 break
3384 fi
3385 done
3386 IFS="$ac_save_ifs"
3387fi
3388fi
3389YACC="$ac_cv_prog_YACC"
3390if test -n "$YACC"; then
3391 echo "$ac_t""$YACC" 1>&6
3392else
3393 echo "$ac_t""no" 1>&6
3394fi
3395
3396test -n "$YACC" && break
3397done
3398test -n "$YACC" || YACC="$MISSING bison -y"
3399
3400case " $build_configdirs " in
3401 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3402 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3403esac
3404
3405for ac_prog in bison
3406do
3407# Extract the first word of "$ac_prog", so it can be a program name with args.
3408set dummy $ac_prog; ac_word=$2
3409echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 3410echo "configure:3411: checking for $ac_word" >&5
be01d343
PB
3411if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3413else
3414 if test -n "$BISON"; then
3415 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3416else
3417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3418 ac_dummy="$PATH"
3419 for ac_dir in $ac_dummy; do
3420 test -z "$ac_dir" && ac_dir=.
3421 if test -f $ac_dir/$ac_word; then
3422 ac_cv_prog_BISON="$ac_prog"
3423 break
3424 fi
3425 done
3426 IFS="$ac_save_ifs"
3427fi
3428fi
3429BISON="$ac_cv_prog_BISON"
3430if test -n "$BISON"; then
3431 echo "$ac_t""$BISON" 1>&6
3432else
3433 echo "$ac_t""no" 1>&6
3434fi
3435
3436test -n "$BISON" && break
3437done
3438test -n "$BISON" || BISON="$MISSING bison"
3439
3440case " $build_configdirs " in
3441 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3442esac
3443
3444for ac_prog in gm4 gnum4 m4
3445do
3446# Extract the first word of "$ac_prog", so it can be a program name with args.
3447set dummy $ac_prog; ac_word=$2
3448echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 3449echo "configure:3450: checking for $ac_word" >&5
be01d343
PB
3450if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3451 echo $ac_n "(cached) $ac_c" 1>&6
3452else
3453 if test -n "$M4"; then
3454 ac_cv_prog_M4="$M4" # Let the user override the test.
3455else
3456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3457 ac_dummy="$PATH"
3458 for ac_dir in $ac_dummy; do
3459 test -z "$ac_dir" && ac_dir=.
3460 if test -f $ac_dir/$ac_word; then
3461 ac_cv_prog_M4="$ac_prog"
3462 break
3463 fi
3464 done
3465 IFS="$ac_save_ifs"
3466fi
3467fi
3468M4="$ac_cv_prog_M4"
3469if test -n "$M4"; then
3470 echo "$ac_t""$M4" 1>&6
3471else
3472 echo "$ac_t""no" 1>&6
3473fi
3474
3475test -n "$M4" && break
3476done
3477test -n "$M4" || M4="$MISSING m4"
3478
3479case " $build_configdirs " in
3480 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3481esac
3482
3483for ac_prog in flex lex
3484do
3485# Extract the first word of "$ac_prog", so it can be a program name with args.
3486set dummy $ac_prog; ac_word=$2
3487echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 3488echo "configure:3489: checking for $ac_word" >&5
be01d343
PB
3489if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3491else
3492 if test -n "$LEX"; then
3493 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3494else
3495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3496 ac_dummy="$PATH"
3497 for ac_dir in $ac_dummy; do
3498 test -z "$ac_dir" && ac_dir=.
3499 if test -f $ac_dir/$ac_word; then
3500 ac_cv_prog_LEX="$ac_prog"
3501 break
3502 fi
3503 done
3504 IFS="$ac_save_ifs"
3505fi
3506fi
3507LEX="$ac_cv_prog_LEX"
3508if test -n "$LEX"; then
3509 echo "$ac_t""$LEX" 1>&6
3510else
3511 echo "$ac_t""no" 1>&6
3512fi
3513
3514test -n "$LEX" && break
3515done
3516test -n "$LEX" || LEX="$MISSING flex"
3517
3518case " $build_configdirs " in
3519 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3520 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3521esac
3522
3523for ac_prog in flex
3524do
3525# Extract the first word of "$ac_prog", so it can be a program name with args.
3526set dummy $ac_prog; ac_word=$2
3527echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 3528echo "configure:3529: checking for $ac_word" >&5
be01d343
PB
3529if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3531else
3532 if test -n "$FLEX"; then
3533 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3534else
3535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3536 ac_dummy="$PATH"
3537 for ac_dir in $ac_dummy; do
3538 test -z "$ac_dir" && ac_dir=.
3539 if test -f $ac_dir/$ac_word; then
3540 ac_cv_prog_FLEX="$ac_prog"
3541 break
3542 fi
3543 done
3544 IFS="$ac_save_ifs"
3545fi
3546fi
3547FLEX="$ac_cv_prog_FLEX"
3548if test -n "$FLEX"; then
3549 echo "$ac_t""$FLEX" 1>&6
3550else
3551 echo "$ac_t""no" 1>&6
3552fi
3553
3554test -n "$FLEX" && break
3555done
3556test -n "$FLEX" || FLEX="$MISSING flex"
3557
3558case " $build_configdirs " in
3559 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3560esac
3561
3562for ac_prog in makeinfo
3563do
3564# Extract the first word of "$ac_prog", so it can be a program name with args.
3565set dummy $ac_prog; ac_word=$2
3566echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 3567echo "configure:3568: checking for $ac_word" >&5
be01d343
PB
3568if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3570else
3571 if test -n "$MAKEINFO"; then
3572 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3573else
3574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3575 ac_dummy="$PATH"
3576 for ac_dir in $ac_dummy; do
3577 test -z "$ac_dir" && ac_dir=.
3578 if test -f $ac_dir/$ac_word; then
3579 ac_cv_prog_MAKEINFO="$ac_prog"
3580 break
3581 fi
3582 done
3583 IFS="$ac_save_ifs"
3584fi
3585fi
3586MAKEINFO="$ac_cv_prog_MAKEINFO"
3587if test -n "$MAKEINFO"; then
3588 echo "$ac_t""$MAKEINFO" 1>&6
3589else
3590 echo "$ac_t""no" 1>&6
3591fi
3592
3593test -n "$MAKEINFO" && break
3594done
3595test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3596
3597case " $build_configdirs " in
3598 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3599 *)
3600
3601 # For an installed makeinfo, we require it to be from texinfo 4.2 or
3602 # higher, else we use the "missing" dummy.
3603 if ${MAKEINFO} --version \
3604 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])' >/dev/null 2>&1; then
3605 :
3606 else
3607 MAKEINFO="$MISSING makeinfo"
3608 fi
3609 ;;
3610
3611esac
a0da8069 3612
be01d343 3613# FIXME: expect and dejagnu may become build tools?
a0da8069 3614
be01d343
PB
3615for ac_prog in expect
3616do
3617# Extract the first word of "$ac_prog", so it can be a program name with args.
3618set dummy $ac_prog; ac_word=$2
3619echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 3620echo "configure:3621: checking for $ac_word" >&5
be01d343
PB
3621if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3622 echo $ac_n "(cached) $ac_c" 1>&6
3623else
3624 if test -n "$EXPECT"; then
3625 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3626else
3627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3628 ac_dummy="$PATH"
3629 for ac_dir in $ac_dummy; do
3630 test -z "$ac_dir" && ac_dir=.
3631 if test -f $ac_dir/$ac_word; then
3632 ac_cv_prog_EXPECT="$ac_prog"
3633 break
3634 fi
3635 done
3636 IFS="$ac_save_ifs"
3637fi
3638fi
3639EXPECT="$ac_cv_prog_EXPECT"
3640if test -n "$EXPECT"; then
3641 echo "$ac_t""$EXPECT" 1>&6
3642else
3643 echo "$ac_t""no" 1>&6
3644fi
a0da8069 3645
be01d343
PB
3646test -n "$EXPECT" && break
3647done
3648test -n "$EXPECT" || EXPECT="expect"
a0da8069 3649
be01d343
PB
3650case " $configdirs " in
3651 *" expect "*)
3652 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3653 ;;
3654esac
a0da8069 3655
be01d343
PB
3656for ac_prog in runtest
3657do
3658# Extract the first word of "$ac_prog", so it can be a program name with args.
3659set dummy $ac_prog; ac_word=$2
3660echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 3661echo "configure:3662: checking for $ac_word" >&5
be01d343
PB
3662if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3664else
3665 if test -n "$RUNTEST"; then
3666 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3667else
3668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3669 ac_dummy="$PATH"
3670 for ac_dir in $ac_dummy; do
3671 test -z "$ac_dir" && ac_dir=.
3672 if test -f $ac_dir/$ac_word; then
3673 ac_cv_prog_RUNTEST="$ac_prog"
3674 break
3675 fi
3676 done
3677 IFS="$ac_save_ifs"
3678fi
3679fi
3680RUNTEST="$ac_cv_prog_RUNTEST"
3681if test -n "$RUNTEST"; then
3682 echo "$ac_t""$RUNTEST" 1>&6
3683else
3684 echo "$ac_t""no" 1>&6
3685fi
a0da8069 3686
be01d343
PB
3687test -n "$RUNTEST" && break
3688done
3689test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 3690
be01d343
PB
3691case " $configdirs " in
3692 *" dejagnu "*)
3693 test $host = $build && RUNTEST='$$r/$(HOST_SUBDIR)/dejagnu/runtest'
3694 ;;
3695esac
a0da8069
NN
3696
3697
a0da8069 3698# Host tools.
859789af
AC
3699ncn_tool_prefix=
3700test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3701ncn_target_tool_prefix=
3702test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3703
05cbd757
PB
3704 for ncn_progname in ar; do
3705 if test -n "$ncn_tool_prefix"; then
3706 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3707set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 3708echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 3709echo "configure:3710: checking for $ac_word" >&5
cac3d6c4
CM
3710if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
3712else
3713 if test -n "$AR"; then
3714 ac_cv_prog_AR="$AR" # Let the user override the test.
3715else
cac3d6c4
CM
3716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3717 ac_dummy="$PATH"
3718 for ac_dir in $ac_dummy; do
3719 test -z "$ac_dir" && ac_dir=.
3720 if test -f $ac_dir/$ac_word; then
3721 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3722 break
3723 fi
3724 done
3725 IFS="$ac_save_ifs"
859789af
AC
3726fi
3727fi
cac3d6c4 3728AR="$ac_cv_prog_AR"
859789af 3729if test -n "$AR"; then
cac3d6c4 3730 echo "$ac_t""$AR" 1>&6
859789af 3731else
cac3d6c4 3732 echo "$ac_t""no" 1>&6
859789af
AC
3733fi
3734
05cbd757
PB
3735 fi
3736 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3738set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 3739echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 3740echo "configure:3741: checking for $ac_word" >&5
cac3d6c4
CM
3741if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3742 echo $ac_n "(cached) $ac_c" 1>&6
859789af 3743else
05cbd757
PB
3744 if test -n "$AR"; then
3745 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 3746else
cac3d6c4
CM
3747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3748 ac_dummy="$PATH"
3749 for ac_dir in $ac_dummy; do
3750 test -z "$ac_dir" && ac_dir=.
3751 if test -f $ac_dir/$ac_word; then
3752 ac_cv_prog_AR="${ncn_progname}"
3753 break
3754 fi
3755 done
3756 IFS="$ac_save_ifs"
859789af
AC
3757fi
3758fi
cac3d6c4 3759AR="$ac_cv_prog_AR"
05cbd757 3760if test -n "$AR"; then
cac3d6c4 3761 echo "$ac_t""$AR" 1>&6
859789af 3762else
cac3d6c4 3763 echo "$ac_t""no" 1>&6
859789af 3764fi
cac3d6c4 3765
05cbd757
PB
3766 fi
3767 test -n "$ac_cv_prog_AR" && break
3768done
3769
3770if test -z "$ac_cv_prog_AR" ; then
3771 set dummy ar
3772 if test $build = $host ; then
3773 AR="$2"
859789af 3774 else
05cbd757 3775 AR="${ncn_tool_prefix}$2"
859789af 3776 fi
859789af
AC
3777fi
3778
05cbd757
PB
3779 for ncn_progname in as; do
3780 if test -n "$ncn_tool_prefix"; then
3781 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3782set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 3783echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 3784echo "configure:3785: checking for $ac_word" >&5
cac3d6c4
CM
3785if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
3787else
3788 if test -n "$AS"; then
3789 ac_cv_prog_AS="$AS" # Let the user override the test.
3790else
cac3d6c4
CM
3791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3792 ac_dummy="$PATH"
3793 for ac_dir in $ac_dummy; do
3794 test -z "$ac_dir" && ac_dir=.
3795 if test -f $ac_dir/$ac_word; then
3796 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3797 break
3798 fi
3799 done
3800 IFS="$ac_save_ifs"
859789af
AC
3801fi
3802fi
cac3d6c4 3803AS="$ac_cv_prog_AS"
859789af 3804if test -n "$AS"; then
cac3d6c4 3805 echo "$ac_t""$AS" 1>&6
859789af 3806else
cac3d6c4 3807 echo "$ac_t""no" 1>&6
859789af
AC
3808fi
3809
05cbd757
PB
3810 fi
3811 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3813set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 3814echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 3815echo "configure:3816: checking for $ac_word" >&5
cac3d6c4
CM
3816if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
859789af 3818else
05cbd757
PB
3819 if test -n "$AS"; then
3820 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 3821else
cac3d6c4
CM
3822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3823 ac_dummy="$PATH"
3824 for ac_dir in $ac_dummy; do
3825 test -z "$ac_dir" && ac_dir=.
3826 if test -f $ac_dir/$ac_word; then
3827 ac_cv_prog_AS="${ncn_progname}"
3828 break
3829 fi
3830 done
3831 IFS="$ac_save_ifs"
859789af
AC
3832fi
3833fi
cac3d6c4 3834AS="$ac_cv_prog_AS"
05cbd757 3835if test -n "$AS"; then
cac3d6c4 3836 echo "$ac_t""$AS" 1>&6
859789af 3837else
cac3d6c4 3838 echo "$ac_t""no" 1>&6
859789af 3839fi
cac3d6c4 3840
05cbd757
PB
3841 fi
3842 test -n "$ac_cv_prog_AS" && break
3843done
3844
3845if test -z "$ac_cv_prog_AS" ; then
3846 set dummy as
3847 if test $build = $host ; then
3848 AS="$2"
859789af 3849 else
05cbd757 3850 AS="${ncn_tool_prefix}$2"
859789af 3851 fi
859789af
AC
3852fi
3853
05cbd757
PB
3854 for ncn_progname in dlltool; do
3855 if test -n "$ncn_tool_prefix"; then
3856 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3857set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 3858echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 3859echo "configure:3860: checking for $ac_word" >&5
cac3d6c4
CM
3860if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
3862else
3863 if test -n "$DLLTOOL"; then
3864 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3865else
cac3d6c4
CM
3866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3867 ac_dummy="$PATH"
3868 for ac_dir in $ac_dummy; do
3869 test -z "$ac_dir" && ac_dir=.
3870 if test -f $ac_dir/$ac_word; then
3871 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3872 break
3873 fi
3874 done
3875 IFS="$ac_save_ifs"
859789af
AC
3876fi
3877fi
cac3d6c4 3878DLLTOOL="$ac_cv_prog_DLLTOOL"
859789af 3879if test -n "$DLLTOOL"; then
cac3d6c4 3880 echo "$ac_t""$DLLTOOL" 1>&6
859789af 3881else
cac3d6c4 3882 echo "$ac_t""no" 1>&6
859789af
AC
3883fi
3884
05cbd757
PB
3885 fi
3886 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3888set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 3889echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 3890echo "configure:3891: checking for $ac_word" >&5
cac3d6c4
CM
3891if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
859789af 3893else
05cbd757
PB
3894 if test -n "$DLLTOOL"; then
3895 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 3896else
cac3d6c4
CM
3897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3898 ac_dummy="$PATH"
3899 for ac_dir in $ac_dummy; do
3900 test -z "$ac_dir" && ac_dir=.
3901 if test -f $ac_dir/$ac_word; then
3902 ac_cv_prog_DLLTOOL="${ncn_progname}"
3903 break
3904 fi
3905 done
3906 IFS="$ac_save_ifs"
859789af
AC
3907fi
3908fi
cac3d6c4 3909DLLTOOL="$ac_cv_prog_DLLTOOL"
05cbd757 3910if test -n "$DLLTOOL"; then
cac3d6c4 3911 echo "$ac_t""$DLLTOOL" 1>&6
859789af 3912else
cac3d6c4 3913 echo "$ac_t""no" 1>&6
859789af 3914fi
cac3d6c4 3915
05cbd757
PB
3916 fi
3917 test -n "$ac_cv_prog_DLLTOOL" && break
3918done
3919
3920if test -z "$ac_cv_prog_DLLTOOL" ; then
3921 set dummy dlltool
3922 if test $build = $host ; then
3923 DLLTOOL="$2"
859789af 3924 else
05cbd757 3925 DLLTOOL="${ncn_tool_prefix}$2"
859789af 3926 fi
859789af
AC
3927fi
3928
05cbd757
PB
3929 for ncn_progname in ld; do
3930 if test -n "$ncn_tool_prefix"; then
3931 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3932set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 3933echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 3934echo "configure:3935: checking for $ac_word" >&5
cac3d6c4
CM
3935if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
3937else
3938 if test -n "$LD"; then
3939 ac_cv_prog_LD="$LD" # Let the user override the test.
3940else
cac3d6c4
CM
3941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3942 ac_dummy="$PATH"
3943 for ac_dir in $ac_dummy; do
3944 test -z "$ac_dir" && ac_dir=.
3945 if test -f $ac_dir/$ac_word; then
3946 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3947 break
3948 fi
3949 done
3950 IFS="$ac_save_ifs"
859789af
AC
3951fi
3952fi
cac3d6c4 3953LD="$ac_cv_prog_LD"
859789af 3954if test -n "$LD"; then
cac3d6c4 3955 echo "$ac_t""$LD" 1>&6
859789af 3956else
cac3d6c4 3957 echo "$ac_t""no" 1>&6
859789af
AC
3958fi
3959
05cbd757
PB
3960 fi
3961 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
3962 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3963set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 3964echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 3965echo "configure:3966: checking for $ac_word" >&5
cac3d6c4
CM
3966if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3967 echo $ac_n "(cached) $ac_c" 1>&6
859789af 3968else
05cbd757
PB
3969 if test -n "$LD"; then
3970 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 3971else
cac3d6c4
CM
3972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3973 ac_dummy="$PATH"
3974 for ac_dir in $ac_dummy; do
3975 test -z "$ac_dir" && ac_dir=.
3976 if test -f $ac_dir/$ac_word; then
3977 ac_cv_prog_LD="${ncn_progname}"
3978 break
3979 fi
3980 done
3981 IFS="$ac_save_ifs"
859789af
AC
3982fi
3983fi
cac3d6c4 3984LD="$ac_cv_prog_LD"
05cbd757 3985if test -n "$LD"; then
cac3d6c4 3986 echo "$ac_t""$LD" 1>&6
859789af 3987else
cac3d6c4 3988 echo "$ac_t""no" 1>&6
859789af 3989fi
cac3d6c4 3990
05cbd757
PB
3991 fi
3992 test -n "$ac_cv_prog_LD" && break
3993done
3994
3995if test -z "$ac_cv_prog_LD" ; then
3996 set dummy ld
3997 if test $build = $host ; then
3998 LD="$2"
859789af 3999 else
05cbd757 4000 LD="${ncn_tool_prefix}$2"
859789af 4001 fi
859789af
AC
4002fi
4003
be01d343
PB
4004 for ncn_progname in lipo; do
4005 if test -n "$ncn_tool_prefix"; then
4006 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4007set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4008echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4009echo "configure:4010: checking for $ac_word" >&5
be01d343
PB
4010if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4011 echo $ac_n "(cached) $ac_c" 1>&6
4012else
4013 if test -n "$LIPO"; then
4014 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4015else
4016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4017 ac_dummy="$PATH"
4018 for ac_dir in $ac_dummy; do
4019 test -z "$ac_dir" && ac_dir=.
4020 if test -f $ac_dir/$ac_word; then
4021 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4022 break
4023 fi
4024 done
4025 IFS="$ac_save_ifs"
4026fi
4027fi
4028LIPO="$ac_cv_prog_LIPO"
4029if test -n "$LIPO"; then
4030 echo "$ac_t""$LIPO" 1>&6
4031else
4032 echo "$ac_t""no" 1>&6
4033fi
4034
4035 fi
4036 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4038set dummy ${ncn_progname}; ac_word=$2
4039echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4040echo "configure:4041: checking for $ac_word" >&5
be01d343
PB
4041if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4042 echo $ac_n "(cached) $ac_c" 1>&6
4043else
4044 if test -n "$LIPO"; then
4045 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4046else
4047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4048 ac_dummy="$PATH"
4049 for ac_dir in $ac_dummy; do
4050 test -z "$ac_dir" && ac_dir=.
4051 if test -f $ac_dir/$ac_word; then
4052 ac_cv_prog_LIPO="${ncn_progname}"
4053 break
4054 fi
4055 done
4056 IFS="$ac_save_ifs"
4057fi
4058fi
4059LIPO="$ac_cv_prog_LIPO"
4060if test -n "$LIPO"; then
4061 echo "$ac_t""$LIPO" 1>&6
4062else
4063 echo "$ac_t""no" 1>&6
4064fi
4065
4066 fi
4067 test -n "$ac_cv_prog_LIPO" && break
4068done
4069
4070if test -z "$ac_cv_prog_LIPO" ; then
4071 set dummy lipo
4072 if test $build = $host ; then
4073 LIPO="$2"
4074 else
4075 LIPO="${ncn_tool_prefix}$2"
4076 fi
4077fi
4078
05cbd757
PB
4079 for ncn_progname in nm; do
4080 if test -n "$ncn_tool_prefix"; then
4081 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4082set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4083echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4084echo "configure:4085: checking for $ac_word" >&5
cac3d6c4
CM
4085if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
4087else
4088 if test -n "$NM"; then
4089 ac_cv_prog_NM="$NM" # Let the user override the test.
4090else
cac3d6c4
CM
4091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4092 ac_dummy="$PATH"
4093 for ac_dir in $ac_dummy; do
4094 test -z "$ac_dir" && ac_dir=.
4095 if test -f $ac_dir/$ac_word; then
4096 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4097 break
4098 fi
4099 done
4100 IFS="$ac_save_ifs"
859789af
AC
4101fi
4102fi
cac3d6c4 4103NM="$ac_cv_prog_NM"
859789af 4104if test -n "$NM"; then
cac3d6c4 4105 echo "$ac_t""$NM" 1>&6
859789af 4106else
cac3d6c4 4107 echo "$ac_t""no" 1>&6
859789af
AC
4108fi
4109
05cbd757
PB
4110 fi
4111 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4113set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4114echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4115echo "configure:4116: checking for $ac_word" >&5
cac3d6c4
CM
4116if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4117 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4118else
05cbd757
PB
4119 if test -n "$NM"; then
4120 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 4121else
cac3d6c4
CM
4122 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4123 ac_dummy="$PATH"
4124 for ac_dir in $ac_dummy; do
4125 test -z "$ac_dir" && ac_dir=.
4126 if test -f $ac_dir/$ac_word; then
4127 ac_cv_prog_NM="${ncn_progname}"
4128 break
4129 fi
4130 done
4131 IFS="$ac_save_ifs"
859789af
AC
4132fi
4133fi
cac3d6c4 4134NM="$ac_cv_prog_NM"
05cbd757 4135if test -n "$NM"; then
cac3d6c4 4136 echo "$ac_t""$NM" 1>&6
859789af 4137else
cac3d6c4 4138 echo "$ac_t""no" 1>&6
859789af 4139fi
cac3d6c4 4140
05cbd757
PB
4141 fi
4142 test -n "$ac_cv_prog_NM" && break
4143done
4144
4145if test -z "$ac_cv_prog_NM" ; then
4146 set dummy nm
4147 if test $build = $host ; then
4148 NM="$2"
859789af 4149 else
05cbd757 4150 NM="${ncn_tool_prefix}$2"
859789af 4151 fi
859789af
AC
4152fi
4153
05cbd757
PB
4154 for ncn_progname in ranlib; do
4155 if test -n "$ncn_tool_prefix"; then
4156 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4157set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4158echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4159echo "configure:4160: checking for $ac_word" >&5
cac3d6c4
CM
4160if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4161 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
4162else
4163 if test -n "$RANLIB"; then
4164 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4165else
cac3d6c4
CM
4166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4167 ac_dummy="$PATH"
4168 for ac_dir in $ac_dummy; do
4169 test -z "$ac_dir" && ac_dir=.
4170 if test -f $ac_dir/$ac_word; then
4171 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4172 break
4173 fi
4174 done
4175 IFS="$ac_save_ifs"
859789af
AC
4176fi
4177fi
cac3d6c4 4178RANLIB="$ac_cv_prog_RANLIB"
859789af 4179if test -n "$RANLIB"; then
cac3d6c4 4180 echo "$ac_t""$RANLIB" 1>&6
859789af 4181else
cac3d6c4 4182 echo "$ac_t""no" 1>&6
859789af
AC
4183fi
4184
05cbd757
PB
4185 fi
4186 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4188set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4189echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4190echo "configure:4191: checking for $ac_word" >&5
cac3d6c4
CM
4191if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4193else
05cbd757
PB
4194 if test -n "$RANLIB"; then
4195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 4196else
cac3d6c4
CM
4197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4198 ac_dummy="$PATH"
4199 for ac_dir in $ac_dummy; do
4200 test -z "$ac_dir" && ac_dir=.
4201 if test -f $ac_dir/$ac_word; then
4202 ac_cv_prog_RANLIB="${ncn_progname}"
4203 break
4204 fi
4205 done
4206 IFS="$ac_save_ifs"
859789af
AC
4207fi
4208fi
cac3d6c4 4209RANLIB="$ac_cv_prog_RANLIB"
05cbd757 4210if test -n "$RANLIB"; then
cac3d6c4 4211 echo "$ac_t""$RANLIB" 1>&6
859789af 4212else
cac3d6c4 4213 echo "$ac_t""no" 1>&6
859789af 4214fi
cac3d6c4 4215
859789af 4216 fi
05cbd757
PB
4217 test -n "$ac_cv_prog_RANLIB" && break
4218done
4219
4220if test -z "$ac_cv_prog_RANLIB" ; then
4221 RANLIB=":"
859789af
AC
4222fi
4223
be01d343
PB
4224 for ncn_progname in strip; do
4225 if test -n "$ncn_tool_prefix"; then
4226 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4227set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4228echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4229echo "configure:4230: checking for $ac_word" >&5
be01d343
PB
4230if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4231 echo $ac_n "(cached) $ac_c" 1>&6
4232else
4233 if test -n "$STRIP"; then
4234 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4235else
4236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4237 ac_dummy="$PATH"
4238 for ac_dir in $ac_dummy; do
4239 test -z "$ac_dir" && ac_dir=.
4240 if test -f $ac_dir/$ac_word; then
4241 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4242 break
4243 fi
4244 done
4245 IFS="$ac_save_ifs"
4246fi
4247fi
4248STRIP="$ac_cv_prog_STRIP"
4249if test -n "$STRIP"; then
4250 echo "$ac_t""$STRIP" 1>&6
4251else
4252 echo "$ac_t""no" 1>&6
4253fi
4254
4255 fi
4256 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4258set dummy ${ncn_progname}; ac_word=$2
4259echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4260echo "configure:4261: checking for $ac_word" >&5
be01d343
PB
4261if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4263else
4264 if test -n "$STRIP"; then
4265 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4266else
4267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4268 ac_dummy="$PATH"
4269 for ac_dir in $ac_dummy; do
4270 test -z "$ac_dir" && ac_dir=.
4271 if test -f $ac_dir/$ac_word; then
4272 ac_cv_prog_STRIP="${ncn_progname}"
4273 break
4274 fi
4275 done
4276 IFS="$ac_save_ifs"
4277fi
4278fi
4279STRIP="$ac_cv_prog_STRIP"
4280if test -n "$STRIP"; then
4281 echo "$ac_t""$STRIP" 1>&6
4282else
4283 echo "$ac_t""no" 1>&6
4284fi
4285
4286 fi
4287 test -n "$ac_cv_prog_STRIP" && break
4288done
4289
4290if test -z "$ac_cv_prog_STRIP" ; then
4291 STRIP=":"
4292fi
4293
05cbd757
PB
4294 for ncn_progname in windres; do
4295 if test -n "$ncn_tool_prefix"; then
4296 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4297set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4298echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4299echo "configure:4300: checking for $ac_word" >&5
cac3d6c4
CM
4300if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4301 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
4302else
4303 if test -n "$WINDRES"; then
4304 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4305else
cac3d6c4
CM
4306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4307 ac_dummy="$PATH"
4308 for ac_dir in $ac_dummy; do
4309 test -z "$ac_dir" && ac_dir=.
4310 if test -f $ac_dir/$ac_word; then
4311 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4312 break
4313 fi
4314 done
4315 IFS="$ac_save_ifs"
859789af
AC
4316fi
4317fi
cac3d6c4 4318WINDRES="$ac_cv_prog_WINDRES"
859789af 4319if test -n "$WINDRES"; then
cac3d6c4 4320 echo "$ac_t""$WINDRES" 1>&6
859789af 4321else
cac3d6c4 4322 echo "$ac_t""no" 1>&6
859789af
AC
4323fi
4324
05cbd757
PB
4325 fi
4326 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4327 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4328set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4329echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4330echo "configure:4331: checking for $ac_word" >&5
cac3d6c4
CM
4331if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4332 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4333else
05cbd757
PB
4334 if test -n "$WINDRES"; then
4335 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 4336else
cac3d6c4
CM
4337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4338 ac_dummy="$PATH"
4339 for ac_dir in $ac_dummy; do
4340 test -z "$ac_dir" && ac_dir=.
4341 if test -f $ac_dir/$ac_word; then
4342 ac_cv_prog_WINDRES="${ncn_progname}"
4343 break
4344 fi
4345 done
4346 IFS="$ac_save_ifs"
859789af
AC
4347fi
4348fi
cac3d6c4 4349WINDRES="$ac_cv_prog_WINDRES"
05cbd757 4350if test -n "$WINDRES"; then
cac3d6c4 4351 echo "$ac_t""$WINDRES" 1>&6
859789af 4352else
cac3d6c4 4353 echo "$ac_t""no" 1>&6
859789af 4354fi
cac3d6c4 4355
05cbd757
PB
4356 fi
4357 test -n "$ac_cv_prog_WINDRES" && break
4358done
4359
4360if test -z "$ac_cv_prog_WINDRES" ; then
4361 set dummy windres
4362 if test $build = $host ; then
4363 WINDRES="$2"
859789af 4364 else
05cbd757 4365 WINDRES="${ncn_tool_prefix}$2"
859789af 4366 fi
859789af
AC
4367fi
4368
05cbd757
PB
4369 for ncn_progname in objcopy; do
4370 if test -n "$ncn_tool_prefix"; then
4371 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4372set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4373echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4374echo "configure:4375: checking for $ac_word" >&5
cac3d6c4
CM
4375if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4376 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
4377else
4378 if test -n "$OBJCOPY"; then
4379 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4380else
cac3d6c4
CM
4381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4382 ac_dummy="$PATH"
4383 for ac_dir in $ac_dummy; do
4384 test -z "$ac_dir" && ac_dir=.
4385 if test -f $ac_dir/$ac_word; then
4386 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4387 break
4388 fi
4389 done
4390 IFS="$ac_save_ifs"
859789af
AC
4391fi
4392fi
cac3d6c4 4393OBJCOPY="$ac_cv_prog_OBJCOPY"
859789af 4394if test -n "$OBJCOPY"; then
cac3d6c4 4395 echo "$ac_t""$OBJCOPY" 1>&6
859789af 4396else
cac3d6c4 4397 echo "$ac_t""no" 1>&6
859789af
AC
4398fi
4399
05cbd757
PB
4400 fi
4401 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4403set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4404echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4405echo "configure:4406: checking for $ac_word" >&5
cac3d6c4
CM
4406if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4408else
05cbd757
PB
4409 if test -n "$OBJCOPY"; then
4410 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 4411else
cac3d6c4
CM
4412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4413 ac_dummy="$PATH"
4414 for ac_dir in $ac_dummy; do
4415 test -z "$ac_dir" && ac_dir=.
4416 if test -f $ac_dir/$ac_word; then
4417 ac_cv_prog_OBJCOPY="${ncn_progname}"
4418 break
4419 fi
4420 done
4421 IFS="$ac_save_ifs"
859789af
AC
4422fi
4423fi
cac3d6c4 4424OBJCOPY="$ac_cv_prog_OBJCOPY"
05cbd757 4425if test -n "$OBJCOPY"; then
cac3d6c4 4426 echo "$ac_t""$OBJCOPY" 1>&6
859789af 4427else
cac3d6c4 4428 echo "$ac_t""no" 1>&6
859789af 4429fi
cac3d6c4 4430
05cbd757
PB
4431 fi
4432 test -n "$ac_cv_prog_OBJCOPY" && break
4433done
4434
4435if test -z "$ac_cv_prog_OBJCOPY" ; then
4436 set dummy objcopy
4437 if test $build = $host ; then
4438 OBJCOPY="$2"
859789af 4439 else
05cbd757 4440 OBJCOPY="${ncn_tool_prefix}$2"
859789af 4441 fi
859789af
AC
4442fi
4443
05cbd757
PB
4444 for ncn_progname in objdump; do
4445 if test -n "$ncn_tool_prefix"; then
4446 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4447set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4448echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4449echo "configure:4450: checking for $ac_word" >&5
cac3d6c4
CM
4450if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
4452else
4453 if test -n "$OBJDUMP"; then
4454 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4455else
cac3d6c4
CM
4456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4457 ac_dummy="$PATH"
4458 for ac_dir in $ac_dummy; do
4459 test -z "$ac_dir" && ac_dir=.
4460 if test -f $ac_dir/$ac_word; then
4461 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4462 break
4463 fi
4464 done
4465 IFS="$ac_save_ifs"
859789af
AC
4466fi
4467fi
cac3d6c4 4468OBJDUMP="$ac_cv_prog_OBJDUMP"
859789af 4469if test -n "$OBJDUMP"; then
cac3d6c4 4470 echo "$ac_t""$OBJDUMP" 1>&6
859789af 4471else
cac3d6c4 4472 echo "$ac_t""no" 1>&6
859789af
AC
4473fi
4474
05cbd757
PB
4475 fi
4476 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4477 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4478set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4479echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4480echo "configure:4481: checking for $ac_word" >&5
cac3d6c4
CM
4481if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4482 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4483else
05cbd757
PB
4484 if test -n "$OBJDUMP"; then
4485 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 4486else
cac3d6c4
CM
4487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4488 ac_dummy="$PATH"
4489 for ac_dir in $ac_dummy; do
4490 test -z "$ac_dir" && ac_dir=.
4491 if test -f $ac_dir/$ac_word; then
4492 ac_cv_prog_OBJDUMP="${ncn_progname}"
4493 break
4494 fi
4495 done
4496 IFS="$ac_save_ifs"
859789af
AC
4497fi
4498fi
cac3d6c4 4499OBJDUMP="$ac_cv_prog_OBJDUMP"
05cbd757 4500if test -n "$OBJDUMP"; then
cac3d6c4 4501 echo "$ac_t""$OBJDUMP" 1>&6
859789af 4502else
cac3d6c4 4503 echo "$ac_t""no" 1>&6
859789af 4504fi
cac3d6c4 4505
05cbd757
PB
4506 fi
4507 test -n "$ac_cv_prog_OBJDUMP" && break
4508done
4509
4510if test -z "$ac_cv_prog_OBJDUMP" ; then
4511 set dummy objdump
4512 if test $build = $host ; then
4513 OBJDUMP="$2"
859789af 4514 else
05cbd757 4515 OBJDUMP="${ncn_tool_prefix}$2"
859789af 4516 fi
859789af
AC
4517fi
4518
a0da8069
NN
4519
4520
4521
4522
4523
4524
be01d343 4525# Target tools.
2429c060
PB
4526# Check whether --with-build-time-tools or --without-build-time-tools was given.
4527if test "${with_build_time_tools+set}" = set; then
4528 withval="$with_build_time_tools"
4529 case x"$withval" in
4530 x/*) ;;
4531 *)
4532 with_build_time_tools=
4533 echo "configure: warning: argument to --with-build-time-tools must be an absolute path" 1>&2
4534 ;;
4535 esac
859789af 4536else
2429c060 4537 with_build_time_tools=
859789af
AC
4538fi
4539
859789af 4540
2429c060
PB
4541 if test -n "$with_build_time_tools"; then
4542 for ncn_progname in cc gcc; do
4543 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4544echo "configure:4545: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
4545 if test -x $with_build_time_tools/${ncn_progname}; then
4546 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060 4547 echo "$ac_t""yes" 1>&6
cac3d6c4 4548 break
2429c060
PB
4549 else
4550 echo "$ac_t""no" 1>&6
cac3d6c4
CM
4551 fi
4552 done
55db4b87
PB
4553fi
4554
2429c060
PB
4555if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4556 for ncn_progname in cc gcc; do
4557 if test -n "$ncn_target_tool_prefix"; then
4558 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 4559set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4560echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4561echo "configure:4562: checking for $ac_word" >&5
cac3d6c4
CM
4562if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4563 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87
PB
4564else
4565 if test -n "$CC_FOR_TARGET"; then
4566 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4567else
cac3d6c4
CM
4568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4569 ac_dummy="$PATH"
4570 for ac_dir in $ac_dummy; do
4571 test -z "$ac_dir" && ac_dir=.
4572 if test -f $ac_dir/$ac_word; then
4573 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4574 break
4575 fi
4576 done
4577 IFS="$ac_save_ifs"
55db4b87
PB
4578fi
4579fi
cac3d6c4 4580CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87 4581if test -n "$CC_FOR_TARGET"; then
cac3d6c4 4582 echo "$ac_t""$CC_FOR_TARGET" 1>&6
55db4b87 4583else
cac3d6c4 4584 echo "$ac_t""no" 1>&6
55db4b87
PB
4585fi
4586
2429c060
PB
4587 fi
4588 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 4590set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4591echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4592echo "configure:4593: checking for $ac_word" >&5
cac3d6c4
CM
4593if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87 4595else
05cbd757
PB
4596 if test -n "$CC_FOR_TARGET"; then
4597 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 4598else
cac3d6c4
CM
4599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4600 ac_dummy="$PATH"
4601 for ac_dir in $ac_dummy; do
4602 test -z "$ac_dir" && ac_dir=.
4603 if test -f $ac_dir/$ac_word; then
4604 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4605 break
4606 fi
4607 done
4608 IFS="$ac_save_ifs"
55db4b87
PB
4609fi
4610fi
cac3d6c4 4611CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
05cbd757 4612if test -n "$CC_FOR_TARGET"; then
cac3d6c4 4613 echo "$ac_t""$CC_FOR_TARGET" 1>&6
55db4b87 4614else
cac3d6c4 4615 echo "$ac_t""no" 1>&6
55db4b87 4616fi
cac3d6c4 4617
2429c060
PB
4618 fi
4619 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4620 done
4621fi
4622
05cbd757
PB
4623if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4624 set dummy cc gcc
4625 if test $build = $target ; then
4626 CC_FOR_TARGET="$2"
55db4b87 4627 else
05cbd757 4628 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 4629 fi
55db4b87
PB
4630fi
4631
2429c060
PB
4632 if test -n "$with_build_time_tools"; then
4633 for ncn_progname in c++ g++ cxx gxx; do
4634 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4635echo "configure:4636: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
4636 if test -x $with_build_time_tools/${ncn_progname}; then
4637 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
4638 echo "$ac_t""yes" 1>&6
4639 break
4640 else
4641 echo "$ac_t""no" 1>&6
4642 fi
4643 done
4644fi
4645
4646if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4647 for ncn_progname in c++ g++ cxx gxx; do
4648 if test -n "$ncn_target_tool_prefix"; then
4649 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 4650set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4652echo "configure:4653: checking for $ac_word" >&5
cac3d6c4
CM
4653if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4654 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87
PB
4655else
4656 if test -n "$CXX_FOR_TARGET"; then
4657 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4658else
cac3d6c4
CM
4659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4660 ac_dummy="$PATH"
4661 for ac_dir in $ac_dummy; do
4662 test -z "$ac_dir" && ac_dir=.
4663 if test -f $ac_dir/$ac_word; then
4664 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4665 break
4666 fi
4667 done
4668 IFS="$ac_save_ifs"
55db4b87
PB
4669fi
4670fi
cac3d6c4 4671CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
55db4b87 4672if test -n "$CXX_FOR_TARGET"; then
cac3d6c4 4673 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
55db4b87 4674else
cac3d6c4 4675 echo "$ac_t""no" 1>&6
55db4b87
PB
4676fi
4677
2429c060
PB
4678 fi
4679 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 4681set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4682echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4683echo "configure:4684: checking for $ac_word" >&5
cac3d6c4
CM
4684if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87 4686else
05cbd757
PB
4687 if test -n "$CXX_FOR_TARGET"; then
4688 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 4689else
cac3d6c4
CM
4690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4691 ac_dummy="$PATH"
4692 for ac_dir in $ac_dummy; do
4693 test -z "$ac_dir" && ac_dir=.
4694 if test -f $ac_dir/$ac_word; then
4695 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4696 break
4697 fi
4698 done
4699 IFS="$ac_save_ifs"
55db4b87
PB
4700fi
4701fi
cac3d6c4 4702CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
05cbd757 4703if test -n "$CXX_FOR_TARGET"; then
cac3d6c4 4704 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
55db4b87 4705else
cac3d6c4 4706 echo "$ac_t""no" 1>&6
55db4b87 4707fi
cac3d6c4 4708
2429c060
PB
4709 fi
4710 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4711 done
4712fi
4713
05cbd757
PB
4714if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4715 set dummy c++ g++ cxx gxx
4716 if test $build = $target ; then
4717 CXX_FOR_TARGET="$2"
55db4b87 4718 else
05cbd757 4719 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 4720 fi
859789af
AC
4721fi
4722
2429c060
PB
4723 if test -n "$with_build_time_tools"; then
4724 for ncn_progname in gcc; do
4725 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4726echo "configure:4727: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
4727 if test -x $with_build_time_tools/${ncn_progname}; then
4728 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
4729 echo "$ac_t""yes" 1>&6
4730 break
4731 else
4732 echo "$ac_t""no" 1>&6
4733 fi
4734 done
4735fi
4736
4737if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4738 for ncn_progname in gcc; do
4739 if test -n "$ncn_target_tool_prefix"; then
4740 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 4741set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4742echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060
PB
4743echo "configure:4744: checking for $ac_word" >&5
4744if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
cac3d6c4 4745 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4746else
2429c060
PB
4747 if test -n "$GCC_FOR_TARGET"; then
4748 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 4749else
cac3d6c4
CM
4750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4751 ac_dummy="$PATH"
4752 for ac_dir in $ac_dummy; do
4753 test -z "$ac_dir" && ac_dir=.
4754 if test -f $ac_dir/$ac_word; then
4755 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4756 break
4757 fi
4758 done
4759 IFS="$ac_save_ifs"
55db4b87
PB
4760fi
4761fi
cac3d6c4 4762GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87 4763if test -n "$GCC_FOR_TARGET"; then
cac3d6c4 4764 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
55db4b87 4765else
cac3d6c4 4766 echo "$ac_t""no" 1>&6
55db4b87
PB
4767fi
4768
2429c060
PB
4769 fi
4770 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 4772set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4773echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4774echo "configure:4775: checking for $ac_word" >&5
cac3d6c4
CM
4775if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87 4777else
05cbd757
PB
4778 if test -n "$GCC_FOR_TARGET"; then
4779 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 4780else
cac3d6c4
CM
4781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4782 ac_dummy="$PATH"
4783 for ac_dir in $ac_dummy; do
4784 test -z "$ac_dir" && ac_dir=.
4785 if test -f $ac_dir/$ac_word; then
4786 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4787 break
4788 fi
4789 done
4790 IFS="$ac_save_ifs"
55db4b87
PB
4791fi
4792fi
cac3d6c4 4793GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
05cbd757 4794if test -n "$GCC_FOR_TARGET"; then
cac3d6c4 4795 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
55db4b87 4796else
cac3d6c4 4797 echo "$ac_t""no" 1>&6
55db4b87 4798fi
cac3d6c4 4799
2429c060
PB
4800 fi
4801 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4802 done
4803fi
4804
05cbd757
PB
4805if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4806 GCC_FOR_TARGET="${CC_FOR_TARGET}"
55db4b87
PB
4807fi
4808
2429c060
PB
4809 if test -n "$with_build_time_tools"; then
4810 for ncn_progname in gcj; do
4811 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4812echo "configure:4813: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
4813 if test -x $with_build_time_tools/${ncn_progname}; then
4814 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
4815 echo "$ac_t""yes" 1>&6
4816 break
4817 else
4818 echo "$ac_t""no" 1>&6
4819 fi
4820 done
4821fi
4822
4823if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4824 for ncn_progname in gcj; do
4825 if test -n "$ncn_target_tool_prefix"; then
4826 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 4827set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4828echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4829echo "configure:4830: checking for $ac_word" >&5
cac3d6c4
CM
4830if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87
PB
4832else
4833 if test -n "$GCJ_FOR_TARGET"; then
4834 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4835else
cac3d6c4
CM
4836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4837 ac_dummy="$PATH"
4838 for ac_dir in $ac_dummy; do
4839 test -z "$ac_dir" && ac_dir=.
4840 if test -f $ac_dir/$ac_word; then
4841 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4842 break
4843 fi
4844 done
4845 IFS="$ac_save_ifs"
55db4b87
PB
4846fi
4847fi
cac3d6c4 4848GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
55db4b87 4849if test -n "$GCJ_FOR_TARGET"; then
cac3d6c4 4850 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
55db4b87 4851else
cac3d6c4 4852 echo "$ac_t""no" 1>&6
55db4b87
PB
4853fi
4854
2429c060
PB
4855 fi
4856 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 4858set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4859echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4860echo "configure:4861: checking for $ac_word" >&5
cac3d6c4
CM
4861if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4862 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87 4863else
05cbd757
PB
4864 if test -n "$GCJ_FOR_TARGET"; then
4865 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
55db4b87 4866else
cac3d6c4
CM
4867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4868 ac_dummy="$PATH"
4869 for ac_dir in $ac_dummy; do
4870 test -z "$ac_dir" && ac_dir=.
4871 if test -f $ac_dir/$ac_word; then
4872 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4873 break
4874 fi
4875 done
4876 IFS="$ac_save_ifs"
55db4b87
PB
4877fi
4878fi
cac3d6c4 4879GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
05cbd757 4880if test -n "$GCJ_FOR_TARGET"; then
cac3d6c4 4881 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
55db4b87 4882else
cac3d6c4 4883 echo "$ac_t""no" 1>&6
55db4b87 4884fi
cac3d6c4 4885
2429c060
PB
4886 fi
4887 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4888 done
4889fi
4890
05cbd757
PB
4891if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4892 set dummy gcj
4893 if test $build = $target ; then
4894 GCJ_FOR_TARGET="$2"
55db4b87 4895 else
05cbd757 4896 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 4897 fi
55db4b87
PB
4898fi
4899
2429c060
PB
4900 if test -n "$with_build_time_tools"; then
4901 for ncn_progname in gfortran; do
4902 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4903echo "configure:4904: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
4904 if test -x $with_build_time_tools/${ncn_progname}; then
4905 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
4906 echo "$ac_t""yes" 1>&6
4907 break
4908 else
4909 echo "$ac_t""no" 1>&6
4910 fi
4911 done
4912fi
4913
4914if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
4915 for ncn_progname in gfortran; do
4916 if test -n "$ncn_target_tool_prefix"; then
4917 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 4918set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4919echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4920echo "configure:4921: checking for $ac_word" >&5
cac3d6c4
CM
4921if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87
PB
4923else
4924 if test -n "$GFORTRAN_FOR_TARGET"; then
4925 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4926else
cac3d6c4
CM
4927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4928 ac_dummy="$PATH"
4929 for ac_dir in $ac_dummy; do
4930 test -z "$ac_dir" && ac_dir=.
4931 if test -f $ac_dir/$ac_word; then
4932 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4933 break
4934 fi
4935 done
4936 IFS="$ac_save_ifs"
55db4b87
PB
4937fi
4938fi
cac3d6c4 4939GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
55db4b87 4940if test -n "$GFORTRAN_FOR_TARGET"; then
cac3d6c4 4941 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
55db4b87 4942else
cac3d6c4 4943 echo "$ac_t""no" 1>&6
55db4b87
PB
4944fi
4945
2429c060
PB
4946 fi
4947 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
4948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 4949set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4950echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429c060 4951echo "configure:4952: checking for $ac_word" >&5
cac3d6c4
CM
4952if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87 4954else
05cbd757
PB
4955 if test -n "$GFORTRAN_FOR_TARGET"; then
4956 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 4957else
cac3d6c4
CM
4958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4959 ac_dummy="$PATH"
4960 for ac_dir in $ac_dummy; do
4961 test -z "$ac_dir" && ac_dir=.
4962 if test -f $ac_dir/$ac_word; then
4963 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
4964 break
4965 fi
4966 done
4967 IFS="$ac_save_ifs"
55db4b87
PB
4968fi
4969fi
cac3d6c4 4970GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
05cbd757 4971if test -n "$GFORTRAN_FOR_TARGET"; then
cac3d6c4 4972 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
55db4b87 4973else
cac3d6c4 4974 echo "$ac_t""no" 1>&6
55db4b87 4975fi
cac3d6c4 4976
2429c060
PB
4977 fi
4978 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
4979 done
4980fi
4981
05cbd757
PB
4982if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
4983 set dummy gfortran
4984 if test $build = $target ; then
4985 GFORTRAN_FOR_TARGET="$2"
55db4b87 4986 else
05cbd757 4987 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 4988 fi
859789af
AC
4989fi
4990
2429c060
PB
4991
4992
4993# The user is always right.
4994if test "${PATH_SEPARATOR+set}" != set; then
4995 echo "#! /bin/sh" >conf$$.sh
4996 echo "exit 0" >>conf$$.sh
4997 chmod +x conf$$.sh
4998 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4999 PATH_SEPARATOR=';'
5000 else
5001 PATH_SEPARATOR=:
5002 fi
5003 rm -f conf$$.sh
5004fi
5005
5006
5007
5008if test "x$exec_prefix" = xNONE; then
5009 if test "x$prefix" = xNONE; then
5010 gcc_cv_tool_prefix=$ac_default_prefix
5011 else
5012 gcc_cv_tool_prefix=$prefix
5013 fi
859789af 5014else
2429c060
PB
5015 gcc_cv_tool_prefix=$exec_prefix
5016fi
5017
5018# If there is no compiler in the tree, use the PATH only. In any
5019# case, if there is no compiler in the tree nobody should use
5020# AS_FOR_TARGET and LD_FOR_TARGET.
5021if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5022 gcc_version=`cat $srcdir/gcc/BASE-VER`
5023 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5024 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5025 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5026 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5027 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5028 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
859789af 5029else
2429c060 5030 gcc_cv_tool_dirs=
859789af 5031fi
2429c060
PB
5032
5033if test x$build = x$target && test -n "$md_exec_prefix"; then
5034 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
859789af 5035fi
2429c060
PB
5036
5037
5038
5039cat > conftest.c << \EOF
5040#ifdef __GNUC__
5041 gcc_yay;
5042#endif
5043EOF
5044if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
5045 have_gcc_for_target=yes
859789af 5046else
2429c060
PB
5047 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
5048 have_gcc_for_target=no
859789af 5049fi
2429c060
PB
5050rm conftest.c
5051
5052
5053
859789af 5054
2429c060
PB
5055if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5056 if test -n "$with_build_time_tools"; then
3a35eeb3
PB
5057 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5058echo "configure:5059: checking for ar in $with_build_time_tools" >&5
5059 if test -x $with_build_time_tools/ar; then
5060 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
5061 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5062 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5063 else
5064 echo "$ac_t""no" 1>&6
5065 fi
2429c060
PB
5066 elif test $build != $host && test $have_gcc_for_target = yes; then
5067 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
5068 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
5069 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 5070 fi
2429c060
PB
5071fi
5072if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5073 # Extract the first word of "ar", so it can be a program name with args.
5074set dummy ar; ac_word=$2
cac3d6c4 5075echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 5076echo "configure:5077: checking for $ac_word" >&5
2429c060 5077if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
cac3d6c4 5078 echo $ac_n "(cached) $ac_c" 1>&6
859789af 5079else
2429c060
PB
5080 case "$AR_FOR_TARGET" in
5081 /*)
5082 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
5083 ;;
5084 ?:/*)
5085 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5086 ;;
5087 *)
cac3d6c4 5088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2429c060
PB
5089 ac_dummy="$gcc_cv_tool_dirs"
5090 for ac_dir in $ac_dummy; do
cac3d6c4
CM
5091 test -z "$ac_dir" && ac_dir=.
5092 if test -f $ac_dir/$ac_word; then
2429c060 5093 ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
cac3d6c4
CM
5094 break
5095 fi
5096 done
5097 IFS="$ac_save_ifs"
2429c060
PB
5098 ;;
5099esac
859789af 5100fi
2429c060
PB
5101AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
5102if test -n "$AR_FOR_TARGET"; then
5103 echo "$ac_t""$AR_FOR_TARGET" 1>&6
859789af 5104else
cac3d6c4 5105 echo "$ac_t""no" 1>&6
859789af 5106fi
05cbd757 5107
2429c060
PB
5108fi
5109if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5110 if test -n "$with_build_time_tools"; then
5111 for ncn_progname in ar; do
5112 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
3a35eeb3
PB
5113echo "configure:5114: checking for ${ncn_progname} in $with_build_time_tools" >&5
5114 if test -x $with_build_time_tools/${ncn_progname}; then
5115 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
5116 echo "$ac_t""yes" 1>&6
5117 break
5118 else
5119 echo "$ac_t""no" 1>&6
5120 fi
5121 done
859789af
AC
5122fi
5123
2429c060
PB
5124if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5125 for ncn_progname in ar; do
5126 if test -n "$ncn_target_tool_prefix"; then
5127 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 5128set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 5129echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 5130echo "configure:5131: checking for $ac_word" >&5
2429c060 5131if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
cac3d6c4 5132 echo $ac_n "(cached) $ac_c" 1>&6
7e0f7140 5133else
2429c060
PB
5134 if test -n "$AR_FOR_TARGET"; then
5135 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 5136else
cac3d6c4
CM
5137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5138 ac_dummy="$PATH"
5139 for ac_dir in $ac_dummy; do
5140 test -z "$ac_dir" && ac_dir=.
5141 if test -f $ac_dir/$ac_word; then
2429c060 5142 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cac3d6c4
CM
5143 break
5144 fi
5145 done
5146 IFS="$ac_save_ifs"
7e0f7140
GK
5147fi
5148fi
2429c060
PB
5149AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5150if test -n "$AR_FOR_TARGET"; then
5151 echo "$ac_t""$AR_FOR_TARGET" 1>&6
7e0f7140 5152else
cac3d6c4 5153 echo "$ac_t""no" 1>&6
7e0f7140
GK
5154fi
5155
2429c060
PB
5156 fi
5157 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 5159set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 5160echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 5161echo "configure:5162: checking for $ac_word" >&5
2429c060 5162if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
cac3d6c4 5163 echo $ac_n "(cached) $ac_c" 1>&6
7e0f7140 5164else
2429c060
PB
5165 if test -n "$AR_FOR_TARGET"; then
5166 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4
CM
5167else
5168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5169 ac_dummy="$PATH"
5170 for ac_dir in $ac_dummy; do
5171 test -z "$ac_dir" && ac_dir=.
5172 if test -f $ac_dir/$ac_word; then
2429c060 5173 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
cac3d6c4
CM
5174 break
5175 fi
5176 done
5177 IFS="$ac_save_ifs"
7e0f7140
GK
5178fi
5179fi
2429c060
PB
5180AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5181if test -n "$AR_FOR_TARGET"; then
5182 echo "$ac_t""$AR_FOR_TARGET" 1>&6
7e0f7140 5183else
cac3d6c4 5184 echo "$ac_t""no" 1>&6
7e0f7140 5185fi
cac3d6c4 5186
2429c060
PB
5187 fi
5188 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5189 done
5190fi
5191
5192if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5193 set dummy ar
7e0f7140 5194 if test $build = $target ; then
2429c060 5195 AR_FOR_TARGET="$2"
7e0f7140 5196 else
2429c060 5197 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140
GK
5198 fi
5199fi
5200
3a35eeb3
PB
5201else
5202 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
5203fi
5204
5205
5206
5207
5208if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5209 if test -n "$with_build_time_tools"; then
3a35eeb3
PB
5210 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5211echo "configure:5212: checking for as in $with_build_time_tools" >&5
5212 if test -x $with_build_time_tools/as; then
5213 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
5214 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5215 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5216 else
5217 echo "$ac_t""no" 1>&6
5218 fi
2429c060
PB
5219 elif test $build != $host && test $have_gcc_for_target = yes; then
5220 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
5221 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
5222 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5223 fi
5224fi
5225if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5226 # Extract the first word of "as", so it can be a program name with args.
5227set dummy as; ac_word=$2
5228echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 5229echo "configure:5230: checking for $ac_word" >&5
2429c060
PB
5230if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5231 echo $ac_n "(cached) $ac_c" 1>&6
5232else
5233 case "$AS_FOR_TARGET" in
5234 /*)
5235 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
5236 ;;
5237 ?:/*)
5238 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5239 ;;
5240 *)
5241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5242 ac_dummy="$gcc_cv_tool_dirs"
5243 for ac_dir in $ac_dummy; do
5244 test -z "$ac_dir" && ac_dir=.
5245 if test -f $ac_dir/$ac_word; then
5246 ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
5247 break
5248 fi
5249 done
5250 IFS="$ac_save_ifs"
5251 ;;
5252esac
5253fi
5254AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
5255if test -n "$AS_FOR_TARGET"; then
5256 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5257else
5258 echo "$ac_t""no" 1>&6
5259fi
5260
5261fi
5262if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5263 if test -n "$with_build_time_tools"; then
5264 for ncn_progname in as; do
5265 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
3a35eeb3
PB
5266echo "configure:5267: checking for ${ncn_progname} in $with_build_time_tools" >&5
5267 if test -x $with_build_time_tools/${ncn_progname}; then
5268 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
5269 echo "$ac_t""yes" 1>&6
5270 break
5271 else
5272 echo "$ac_t""no" 1>&6
5273 fi
5274 done
5275fi
5276
5277if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5278 for ncn_progname in as; do
5279 if test -n "$ncn_target_tool_prefix"; then
5280 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5281set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5282echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 5283echo "configure:5284: checking for $ac_word" >&5
2429c060
PB
5284if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5285 echo $ac_n "(cached) $ac_c" 1>&6
5286else
5287 if test -n "$AS_FOR_TARGET"; then
5288 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5289else
5290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5291 ac_dummy="$PATH"
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_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5296 break
5297 fi
5298 done
5299 IFS="$ac_save_ifs"
5300fi
5301fi
5302AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5303if test -n "$AS_FOR_TARGET"; then
5304 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5305else
5306 echo "$ac_t""no" 1>&6
5307fi
5308
5309 fi
5310 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5312set dummy ${ncn_progname}; ac_word=$2
5313echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 5314echo "configure:5315: checking for $ac_word" >&5
2429c060
PB
5315if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5316 echo $ac_n "(cached) $ac_c" 1>&6
5317else
5318 if test -n "$AS_FOR_TARGET"; then
5319 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5320else
5321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5322 ac_dummy="$PATH"
5323 for ac_dir in $ac_dummy; do
5324 test -z "$ac_dir" && ac_dir=.
5325 if test -f $ac_dir/$ac_word; then
5326 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5327 break
5328 fi
5329 done
5330 IFS="$ac_save_ifs"
5331fi
5332fi
5333AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5334if test -n "$AS_FOR_TARGET"; then
5335 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5336else
5337 echo "$ac_t""no" 1>&6
5338fi
5339
5340 fi
5341 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5342 done
5343fi
5344
5345if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5346 set dummy as
5347 if test $build = $target ; then
5348 AS_FOR_TARGET="$2"
5349 else
5350 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
5351 fi
5352fi
5353
3a35eeb3
PB
5354else
5355 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
5356fi
5357
5358
5359
5360
5361if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5362 if test -n "$with_build_time_tools"; then
3a35eeb3
PB
5363 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5364echo "configure:5365: checking for dlltool in $with_build_time_tools" >&5
5365 if test -x $with_build_time_tools/dlltool; then
5366 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
5367 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5368 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5369 else
5370 echo "$ac_t""no" 1>&6
5371 fi
2429c060
PB
5372 elif test $build != $host && test $have_gcc_for_target = yes; then
5373 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5374 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
5375 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5376 fi
5377fi
5378if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5379 # Extract the first word of "dlltool", so it can be a program name with args.
5380set dummy dlltool; ac_word=$2
5381echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 5382echo "configure:5383: checking for $ac_word" >&5
2429c060
PB
5383if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5384 echo $ac_n "(cached) $ac_c" 1>&6
5385else
5386 case "$DLLTOOL_FOR_TARGET" in
5387 /*)
5388 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5389 ;;
5390 ?:/*)
5391 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5392 ;;
5393 *)
5394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5395 ac_dummy="$gcc_cv_tool_dirs"
5396 for ac_dir in $ac_dummy; do
5397 test -z "$ac_dir" && ac_dir=.
5398 if test -f $ac_dir/$ac_word; then
5399 ac_cv_path_DLLTOOL_FOR_TARGET="$ac_dir/$ac_word"
5400 break
5401 fi
5402 done
5403 IFS="$ac_save_ifs"
5404 ;;
5405esac
5406fi
5407DLLTOOL_FOR_TARGET="$ac_cv_path_DLLTOOL_FOR_TARGET"
5408if test -n "$DLLTOOL_FOR_TARGET"; then
5409 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5410else
5411 echo "$ac_t""no" 1>&6
5412fi
5413
5414fi
5415if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5416 if test -n "$with_build_time_tools"; then
5417 for ncn_progname in dlltool; do
5418 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
3a35eeb3
PB
5419echo "configure:5420: checking for ${ncn_progname} in $with_build_time_tools" >&5
5420 if test -x $with_build_time_tools/${ncn_progname}; then
5421 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
5422 echo "$ac_t""yes" 1>&6
5423 break
5424 else
5425 echo "$ac_t""no" 1>&6
5426 fi
5427 done
5428fi
5429
5430if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5431 for ncn_progname in dlltool; do
5432 if test -n "$ncn_target_tool_prefix"; then
5433 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5434set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5435echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 5436echo "configure:5437: checking for $ac_word" >&5
2429c060
PB
5437if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5438 echo $ac_n "(cached) $ac_c" 1>&6
5439else
5440 if test -n "$DLLTOOL_FOR_TARGET"; then
5441 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5442else
5443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5444 ac_dummy="$PATH"
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_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5449 break
5450 fi
5451 done
5452 IFS="$ac_save_ifs"
5453fi
5454fi
5455DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5456if test -n "$DLLTOOL_FOR_TARGET"; then
5457 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5458else
5459 echo "$ac_t""no" 1>&6
5460fi
5461
5462 fi
5463 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5465set dummy ${ncn_progname}; ac_word=$2
5466echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 5467echo "configure:5468: checking for $ac_word" >&5
2429c060
PB
5468if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5469 echo $ac_n "(cached) $ac_c" 1>&6
5470else
5471 if test -n "$DLLTOOL_FOR_TARGET"; then
5472 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5473else
5474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5475 ac_dummy="$PATH"
5476 for ac_dir in $ac_dummy; do
5477 test -z "$ac_dir" && ac_dir=.
5478 if test -f $ac_dir/$ac_word; then
5479 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5480 break
5481 fi
5482 done
5483 IFS="$ac_save_ifs"
5484fi
5485fi
5486DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5487if test -n "$DLLTOOL_FOR_TARGET"; then
5488 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5489else
5490 echo "$ac_t""no" 1>&6
5491fi
5492
5493 fi
5494 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5495 done
5496fi
5497
5498if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5499 set dummy dlltool
5500 if test $build = $target ; then
5501 DLLTOOL_FOR_TARGET="$2"
5502 else
5503 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
5504 fi
5505fi
5506
3a35eeb3
PB
5507else
5508 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
5509fi
5510
5511
5512
5513
5514if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5515 if test -n "$with_build_time_tools"; then
3a35eeb3
PB
5516 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5517echo "configure:5518: checking for ld in $with_build_time_tools" >&5
5518 if test -x $with_build_time_tools/ld; then
5519 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
5520 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5521 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5522 else
5523 echo "$ac_t""no" 1>&6
5524 fi
2429c060
PB
5525 elif test $build != $host && test $have_gcc_for_target = yes; then
5526 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
5527 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
5528 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5529 fi
5530fi
5531if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5532 # Extract the first word of "ld", so it can be a program name with args.
5533set dummy ld; ac_word=$2
5534echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 5535echo "configure:5536: checking for $ac_word" >&5
2429c060
PB
5536if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5538else
5539 case "$LD_FOR_TARGET" in
5540 /*)
5541 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
5542 ;;
5543 ?:/*)
5544 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5545 ;;
5546 *)
5547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5548 ac_dummy="$gcc_cv_tool_dirs"
5549 for ac_dir in $ac_dummy; do
5550 test -z "$ac_dir" && ac_dir=.
5551 if test -f $ac_dir/$ac_word; then
5552 ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
5553 break
5554 fi
5555 done
5556 IFS="$ac_save_ifs"
5557 ;;
5558esac
5559fi
5560LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
5561if test -n "$LD_FOR_TARGET"; then
5562 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5563else
5564 echo "$ac_t""no" 1>&6
5565fi
5566
5567fi
5568if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5569 if test -n "$with_build_time_tools"; then
5570 for ncn_progname in ld; do
5571 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
3a35eeb3
PB
5572echo "configure:5573: checking for ${ncn_progname} in $with_build_time_tools" >&5
5573 if test -x $with_build_time_tools/${ncn_progname}; then
5574 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
5575 echo "$ac_t""yes" 1>&6
5576 break
5577 else
5578 echo "$ac_t""no" 1>&6
5579 fi
5580 done
5581fi
5582
5583if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5584 for ncn_progname in ld; do
5585 if test -n "$ncn_target_tool_prefix"; then
5586 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5587set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5588echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 5589echo "configure:5590: checking for $ac_word" >&5
2429c060
PB
5590if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5591 echo $ac_n "(cached) $ac_c" 1>&6
5592else
5593 if test -n "$LD_FOR_TARGET"; then
5594 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5595else
5596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5597 ac_dummy="$PATH"
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_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5602 break
5603 fi
5604 done
5605 IFS="$ac_save_ifs"
5606fi
5607fi
5608LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5609if test -n "$LD_FOR_TARGET"; then
5610 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5611else
5612 echo "$ac_t""no" 1>&6
5613fi
5614
5615 fi
5616 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5618set dummy ${ncn_progname}; ac_word=$2
5619echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 5620echo "configure:5621: checking for $ac_word" >&5
2429c060
PB
5621if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5622 echo $ac_n "(cached) $ac_c" 1>&6
5623else
5624 if test -n "$LD_FOR_TARGET"; then
5625 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5626else
5627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5628 ac_dummy="$PATH"
5629 for ac_dir in $ac_dummy; do
5630 test -z "$ac_dir" && ac_dir=.
5631 if test -f $ac_dir/$ac_word; then
5632 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5633 break
5634 fi
5635 done
5636 IFS="$ac_save_ifs"
5637fi
5638fi
5639LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5640if test -n "$LD_FOR_TARGET"; then
5641 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5642else
5643 echo "$ac_t""no" 1>&6
5644fi
5645
5646 fi
5647 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5648 done
5649fi
5650
5651if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5652 set dummy ld
5653 if test $build = $target ; then
5654 LD_FOR_TARGET="$2"
5655 else
5656 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
5657 fi
5658fi
5659
3a35eeb3
PB
5660else
5661 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
5662fi
5663
5664
5665
5666
5667if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5668 if test -n "$with_build_time_tools"; then
3a35eeb3
PB
5669 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5670echo "configure:5671: checking for lipo in $with_build_time_tools" >&5
5671 if test -x $with_build_time_tools/lipo; then
5672 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
5673 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5674 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5675 else
5676 echo "$ac_t""no" 1>&6
5677 fi
2429c060
PB
5678 elif test $build != $host && test $have_gcc_for_target = yes; then
5679 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
5680 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
5681 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5682 fi
5683fi
5684if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5685 # Extract the first word of "lipo", so it can be a program name with args.
5686set dummy lipo; ac_word=$2
5687echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 5688echo "configure:5689: checking for $ac_word" >&5
2429c060
PB
5689if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5690 echo $ac_n "(cached) $ac_c" 1>&6
5691else
5692 case "$LIPO_FOR_TARGET" in
5693 /*)
5694 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5695 ;;
5696 ?:/*)
5697 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5698 ;;
5699 *)
5700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5701 ac_dummy="$gcc_cv_tool_dirs"
5702 for ac_dir in $ac_dummy; do
5703 test -z "$ac_dir" && ac_dir=.
5704 if test -f $ac_dir/$ac_word; then
5705 ac_cv_path_LIPO_FOR_TARGET="$ac_dir/$ac_word"
5706 break
5707 fi
5708 done
5709 IFS="$ac_save_ifs"
5710 ;;
5711esac
5712fi
5713LIPO_FOR_TARGET="$ac_cv_path_LIPO_FOR_TARGET"
5714if test -n "$LIPO_FOR_TARGET"; then
5715 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5716else
5717 echo "$ac_t""no" 1>&6
5718fi
5719
5720fi
5721if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5722 if test -n "$with_build_time_tools"; then
5723 for ncn_progname in lipo; do
5724 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
3a35eeb3
PB
5725echo "configure:5726: checking for ${ncn_progname} in $with_build_time_tools" >&5
5726 if test -x $with_build_time_tools/${ncn_progname}; then
5727 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
5728 echo "$ac_t""yes" 1>&6
5729 break
5730 else
5731 echo "$ac_t""no" 1>&6
5732 fi
5733 done
5734fi
5735
5736if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5737 for ncn_progname in lipo; do
5738 if test -n "$ncn_target_tool_prefix"; then
5739 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5740set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5741echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 5742echo "configure:5743: checking for $ac_word" >&5
2429c060
PB
5743if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5744 echo $ac_n "(cached) $ac_c" 1>&6
5745else
5746 if test -n "$LIPO_FOR_TARGET"; then
5747 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5748else
5749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5750 ac_dummy="$PATH"
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_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5755 break
5756 fi
5757 done
5758 IFS="$ac_save_ifs"
5759fi
5760fi
5761LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5762if test -n "$LIPO_FOR_TARGET"; then
5763 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5764else
5765 echo "$ac_t""no" 1>&6
5766fi
5767
5768 fi
5769 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5770 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5771set dummy ${ncn_progname}; ac_word=$2
5772echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 5773echo "configure:5774: checking for $ac_word" >&5
2429c060
PB
5774if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5775 echo $ac_n "(cached) $ac_c" 1>&6
5776else
5777 if test -n "$LIPO_FOR_TARGET"; then
5778 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5779else
5780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5781 ac_dummy="$PATH"
5782 for ac_dir in $ac_dummy; do
5783 test -z "$ac_dir" && ac_dir=.
5784 if test -f $ac_dir/$ac_word; then
5785 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5786 break
5787 fi
5788 done
5789 IFS="$ac_save_ifs"
5790fi
5791fi
5792LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5793if test -n "$LIPO_FOR_TARGET"; then
5794 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5795else
5796 echo "$ac_t""no" 1>&6
5797fi
5798
5799 fi
5800 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5801 done
5802fi
5803
5804if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5805 set dummy lipo
5806 if test $build = $target ; then
5807 LIPO_FOR_TARGET="$2"
5808 else
5809 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
5810 fi
5811fi
5812
3a35eeb3
PB
5813else
5814 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
5815fi
5816
5817
5818
5819
5820if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5821 if test -n "$with_build_time_tools"; then
3a35eeb3
PB
5822 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
5823echo "configure:5824: checking for nm in $with_build_time_tools" >&5
5824 if test -x $with_build_time_tools/nm; then
5825 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
5826 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5827 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5828 else
5829 echo "$ac_t""no" 1>&6
5830 fi
2429c060
PB
5831 elif test $build != $host && test $have_gcc_for_target = yes; then
5832 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
5833 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
5834 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5835 fi
5836fi
5837if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5838 # Extract the first word of "nm", so it can be a program name with args.
5839set dummy nm; ac_word=$2
5840echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 5841echo "configure:5842: checking for $ac_word" >&5
2429c060
PB
5842if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5843 echo $ac_n "(cached) $ac_c" 1>&6
5844else
5845 case "$NM_FOR_TARGET" in
5846 /*)
5847 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
5848 ;;
5849 ?:/*)
5850 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5851 ;;
5852 *)
5853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5854 ac_dummy="$gcc_cv_tool_dirs"
5855 for ac_dir in $ac_dummy; do
5856 test -z "$ac_dir" && ac_dir=.
5857 if test -f $ac_dir/$ac_word; then
5858 ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
5859 break
5860 fi
5861 done
5862 IFS="$ac_save_ifs"
5863 ;;
5864esac
5865fi
5866NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
5867if test -n "$NM_FOR_TARGET"; then
5868 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5869else
5870 echo "$ac_t""no" 1>&6
5871fi
5872
5873fi
5874if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5875 if test -n "$with_build_time_tools"; then
5876 for ncn_progname in nm; do
5877 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
3a35eeb3
PB
5878echo "configure:5879: checking for ${ncn_progname} in $with_build_time_tools" >&5
5879 if test -x $with_build_time_tools/${ncn_progname}; then
5880 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
5881 echo "$ac_t""yes" 1>&6
5882 break
5883 else
5884 echo "$ac_t""no" 1>&6
5885 fi
5886 done
5887fi
5888
5889if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
5890 for ncn_progname in nm; do
5891 if test -n "$ncn_target_tool_prefix"; then
5892 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 5893set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 5894echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 5895echo "configure:5896: checking for $ac_word" >&5
cac3d6c4
CM
5896if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5897 echo $ac_n "(cached) $ac_c" 1>&6
859789af 5898else
55db4b87
PB
5899 if test -n "$NM_FOR_TARGET"; then
5900 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 5901else
cac3d6c4
CM
5902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5903 ac_dummy="$PATH"
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_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5908 break
5909 fi
5910 done
5911 IFS="$ac_save_ifs"
859789af
AC
5912fi
5913fi
cac3d6c4 5914NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
55db4b87 5915if test -n "$NM_FOR_TARGET"; then
cac3d6c4 5916 echo "$ac_t""$NM_FOR_TARGET" 1>&6
859789af 5917else
cac3d6c4 5918 echo "$ac_t""no" 1>&6
859789af
AC
5919fi
5920
2429c060
PB
5921 fi
5922 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
5923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 5924set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 5925echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 5926echo "configure:5927: checking for $ac_word" >&5
cac3d6c4
CM
5927if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5928 echo $ac_n "(cached) $ac_c" 1>&6
859789af 5929else
05cbd757
PB
5930 if test -n "$NM_FOR_TARGET"; then
5931 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 5932else
cac3d6c4
CM
5933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5934 ac_dummy="$PATH"
5935 for ac_dir in $ac_dummy; do
5936 test -z "$ac_dir" && ac_dir=.
5937 if test -f $ac_dir/$ac_word; then
5938 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5939 break
5940 fi
5941 done
5942 IFS="$ac_save_ifs"
859789af
AC
5943fi
5944fi
cac3d6c4 5945NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
05cbd757 5946if test -n "$NM_FOR_TARGET"; then
cac3d6c4 5947 echo "$ac_t""$NM_FOR_TARGET" 1>&6
859789af 5948else
cac3d6c4 5949 echo "$ac_t""no" 1>&6
859789af 5950fi
cac3d6c4 5951
2429c060
PB
5952 fi
5953 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
5954 done
5955fi
5956
05cbd757
PB
5957if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
5958 set dummy nm
5959 if test $build = $target ; then
5960 NM_FOR_TARGET="$2"
859789af 5961 else
05cbd757 5962 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 5963 fi
859789af
AC
5964fi
5965
3a35eeb3
PB
5966else
5967 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
5968fi
5969
5970
5971
5972
5973if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
5974 if test -n "$with_build_time_tools"; then
3a35eeb3
PB
5975 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
5976echo "configure:5977: checking for objdump in $with_build_time_tools" >&5
5977 if test -x $with_build_time_tools/objdump; then
5978 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
5979 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5980 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
5981 else
5982 echo "$ac_t""no" 1>&6
5983 fi
2429c060
PB
5984 elif test $build != $host && test $have_gcc_for_target = yes; then
5985 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
5986 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
5987 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5988 fi
5989fi
5990if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
5991 # Extract the first word of "objdump", so it can be a program name with args.
5992set dummy objdump; ac_word=$2
5993echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 5994echo "configure:5995: checking for $ac_word" >&5
2429c060
PB
5995if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5996 echo $ac_n "(cached) $ac_c" 1>&6
5997else
5998 case "$OBJDUMP_FOR_TARGET" in
5999 /*)
6000 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6001 ;;
6002 ?:/*)
6003 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6004 ;;
6005 *)
6006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6007 ac_dummy="$gcc_cv_tool_dirs"
6008 for ac_dir in $ac_dummy; do
6009 test -z "$ac_dir" && ac_dir=.
6010 if test -f $ac_dir/$ac_word; then
6011 ac_cv_path_OBJDUMP_FOR_TARGET="$ac_dir/$ac_word"
6012 break
6013 fi
6014 done
6015 IFS="$ac_save_ifs"
6016 ;;
6017esac
6018fi
6019OBJDUMP_FOR_TARGET="$ac_cv_path_OBJDUMP_FOR_TARGET"
6020if test -n "$OBJDUMP_FOR_TARGET"; then
6021 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6022else
6023 echo "$ac_t""no" 1>&6
6024fi
6025
6026fi
6027if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6028 if test -n "$with_build_time_tools"; then
6029 for ncn_progname in objdump; do
6030 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
3a35eeb3
PB
6031echo "configure:6032: checking for ${ncn_progname} in $with_build_time_tools" >&5
6032 if test -x $with_build_time_tools/${ncn_progname}; then
6033 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
6034 echo "$ac_t""yes" 1>&6
6035 break
6036 else
6037 echo "$ac_t""no" 1>&6
6038 fi
6039 done
6040fi
6041
6042if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6043 for ncn_progname in objdump; do
6044 if test -n "$ncn_target_tool_prefix"; then
6045 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 6046set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 6047echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 6048echo "configure:6049: checking for $ac_word" >&5
5ae72758
DJ
6049if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6050 echo $ac_n "(cached) $ac_c" 1>&6
6051else
6052 if test -n "$OBJDUMP_FOR_TARGET"; then
6053 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6054else
6055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6056 ac_dummy="$PATH"
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_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6061 break
6062 fi
6063 done
6064 IFS="$ac_save_ifs"
6065fi
6066fi
6067OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6068if test -n "$OBJDUMP_FOR_TARGET"; then
6069 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6070else
6071 echo "$ac_t""no" 1>&6
6072fi
6073
2429c060
PB
6074 fi
6075 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758
DJ
6077set dummy ${ncn_progname}; ac_word=$2
6078echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 6079echo "configure:6080: checking for $ac_word" >&5
5ae72758
DJ
6080if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6081 echo $ac_n "(cached) $ac_c" 1>&6
6082else
6083 if test -n "$OBJDUMP_FOR_TARGET"; then
6084 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6085else
6086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6087 ac_dummy="$PATH"
6088 for ac_dir in $ac_dummy; do
6089 test -z "$ac_dir" && ac_dir=.
6090 if test -f $ac_dir/$ac_word; then
6091 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
6092 break
6093 fi
6094 done
6095 IFS="$ac_save_ifs"
6096fi
6097fi
6098OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6099if test -n "$OBJDUMP_FOR_TARGET"; then
6100 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6101else
6102 echo "$ac_t""no" 1>&6
6103fi
6104
2429c060
PB
6105 fi
6106 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6107 done
6108fi
6109
5ae72758
DJ
6110if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6111 set dummy objdump
6112 if test $build = $target ; then
6113 OBJDUMP_FOR_TARGET="$2"
6114 else
6115 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6116 fi
6117fi
6118
3a35eeb3
PB
6119else
6120 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
6121fi
6122
6123
6124
6125
6126if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6127 if test -n "$with_build_time_tools"; then
3a35eeb3
PB
6128 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6129echo "configure:6130: checking for ranlib in $with_build_time_tools" >&5
6130 if test -x $with_build_time_tools/ranlib; then
6131 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
6132 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6133 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6134 else
6135 echo "$ac_t""no" 1>&6
6136 fi
2429c060
PB
6137 elif test $build != $host && test $have_gcc_for_target = yes; then
6138 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6139 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
6140 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6141 fi
6142fi
6143if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6144 # Extract the first word of "ranlib", so it can be a program name with args.
6145set dummy ranlib; ac_word=$2
6146echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 6147echo "configure:6148: checking for $ac_word" >&5
2429c060
PB
6148if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6149 echo $ac_n "(cached) $ac_c" 1>&6
6150else
6151 case "$RANLIB_FOR_TARGET" in
6152 /*)
6153 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6154 ;;
6155 ?:/*)
6156 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6157 ;;
6158 *)
6159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6160 ac_dummy="$gcc_cv_tool_dirs"
6161 for ac_dir in $ac_dummy; do
6162 test -z "$ac_dir" && ac_dir=.
6163 if test -f $ac_dir/$ac_word; then
6164 ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
6165 break
6166 fi
6167 done
6168 IFS="$ac_save_ifs"
6169 ;;
6170esac
6171fi
6172RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
6173if test -n "$RANLIB_FOR_TARGET"; then
6174 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6175else
6176 echo "$ac_t""no" 1>&6
6177fi
6178
6179fi
6180if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6181 if test -n "$with_build_time_tools"; then
6182 for ncn_progname in ranlib; do
6183 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
3a35eeb3
PB
6184echo "configure:6185: checking for ${ncn_progname} in $with_build_time_tools" >&5
6185 if test -x $with_build_time_tools/${ncn_progname}; then
6186 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
6187 echo "$ac_t""yes" 1>&6
6188 break
6189 else
6190 echo "$ac_t""no" 1>&6
6191 fi
6192 done
6193fi
6194
6195if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6196 for ncn_progname in ranlib; do
6197 if test -n "$ncn_target_tool_prefix"; then
6198 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758
DJ
6199set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6200echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 6201echo "configure:6202: checking for $ac_word" >&5
cac3d6c4
CM
6202if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6203 echo $ac_n "(cached) $ac_c" 1>&6
859789af 6204else
55db4b87
PB
6205 if test -n "$RANLIB_FOR_TARGET"; then
6206 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 6207else
cac3d6c4
CM
6208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6209 ac_dummy="$PATH"
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_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6214 break
6215 fi
6216 done
6217 IFS="$ac_save_ifs"
859789af
AC
6218fi
6219fi
cac3d6c4 6220RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
55db4b87 6221if test -n "$RANLIB_FOR_TARGET"; then
cac3d6c4 6222 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
859789af 6223else
cac3d6c4 6224 echo "$ac_t""no" 1>&6
859789af
AC
6225fi
6226
2429c060
PB
6227 fi
6228 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 6230set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 6231echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 6232echo "configure:6233: checking for $ac_word" >&5
cac3d6c4
CM
6233if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6234 echo $ac_n "(cached) $ac_c" 1>&6
859789af 6235else
05cbd757
PB
6236 if test -n "$RANLIB_FOR_TARGET"; then
6237 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 6238else
cac3d6c4
CM
6239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6240 ac_dummy="$PATH"
6241 for ac_dir in $ac_dummy; do
6242 test -z "$ac_dir" && ac_dir=.
6243 if test -f $ac_dir/$ac_word; then
6244 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
6245 break
6246 fi
6247 done
6248 IFS="$ac_save_ifs"
859789af
AC
6249fi
6250fi
cac3d6c4 6251RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
05cbd757 6252if test -n "$RANLIB_FOR_TARGET"; then
cac3d6c4 6253 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
859789af 6254else
cac3d6c4 6255 echo "$ac_t""no" 1>&6
859789af 6256fi
cac3d6c4 6257
2429c060
PB
6258 fi
6259 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6260 done
6261fi
6262
6263if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6264 set dummy ranlib
6265 if test $build = $target ; then
6266 RANLIB_FOR_TARGET="$2"
6267 else
6268 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 6269 fi
2429c060 6270fi
05cbd757 6271
3a35eeb3
PB
6272else
6273 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
6274fi
6275
2429c060
PB
6276
6277
6278
6279if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6280 if test -n "$with_build_time_tools"; then
3a35eeb3
PB
6281 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6282echo "configure:6283: checking for strip in $with_build_time_tools" >&5
6283 if test -x $with_build_time_tools/strip; then
6284 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
6285 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6286 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6287 else
6288 echo "$ac_t""no" 1>&6
6289 fi
2429c060
PB
6290 elif test $build != $host && test $have_gcc_for_target = yes; then
6291 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
6292 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
6293 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6294 fi
6295fi
6296if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6297 # Extract the first word of "strip", so it can be a program name with args.
6298set dummy strip; ac_word=$2
6299echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 6300echo "configure:6301: checking for $ac_word" >&5
2429c060
PB
6301if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6302 echo $ac_n "(cached) $ac_c" 1>&6
6303else
6304 case "$STRIP_FOR_TARGET" in
6305 /*)
6306 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6307 ;;
6308 ?:/*)
6309 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6310 ;;
6311 *)
6312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6313 ac_dummy="$gcc_cv_tool_dirs"
6314 for ac_dir in $ac_dummy; do
6315 test -z "$ac_dir" && ac_dir=.
6316 if test -f $ac_dir/$ac_word; then
6317 ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
6318 break
6319 fi
6320 done
6321 IFS="$ac_save_ifs"
6322 ;;
6323esac
6324fi
6325STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
6326if test -n "$STRIP_FOR_TARGET"; then
6327 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6328else
6329 echo "$ac_t""no" 1>&6
6330fi
6331
6332fi
6333if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6334 if test -n "$with_build_time_tools"; then
6335 for ncn_progname in strip; do
6336 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
3a35eeb3
PB
6337echo "configure:6338: checking for ${ncn_progname} in $with_build_time_tools" >&5
6338 if test -x $with_build_time_tools/${ncn_progname}; then
6339 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
6340 echo "$ac_t""yes" 1>&6
6341 break
6342 else
6343 echo "$ac_t""no" 1>&6
6344 fi
6345 done
6346fi
6347
6348if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6349 for ncn_progname in strip; do
6350 if test -n "$ncn_target_tool_prefix"; then
6351 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 6352set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 6353echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 6354echo "configure:6355: checking for $ac_word" >&5
cac3d6c4
CM
6355if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6356 echo $ac_n "(cached) $ac_c" 1>&6
7e0f7140
GK
6357else
6358 if test -n "$STRIP_FOR_TARGET"; then
6359 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6360else
cac3d6c4
CM
6361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6362 ac_dummy="$PATH"
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_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6367 break
6368 fi
6369 done
6370 IFS="$ac_save_ifs"
7e0f7140
GK
6371fi
6372fi
cac3d6c4 6373STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140 6374if test -n "$STRIP_FOR_TARGET"; then
cac3d6c4 6375 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
7e0f7140 6376else
cac3d6c4 6377 echo "$ac_t""no" 1>&6
7e0f7140
GK
6378fi
6379
2429c060
PB
6380 fi
6381 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 6383set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 6384echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 6385echo "configure:6386: checking for $ac_word" >&5
cac3d6c4
CM
6386if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6387 echo $ac_n "(cached) $ac_c" 1>&6
7e0f7140
GK
6388else
6389 if test -n "$STRIP_FOR_TARGET"; then
6390 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6391else
cac3d6c4
CM
6392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6393 ac_dummy="$PATH"
6394 for ac_dir in $ac_dummy; do
6395 test -z "$ac_dir" && ac_dir=.
6396 if test -f $ac_dir/$ac_word; then
6397 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
6398 break
6399 fi
6400 done
6401 IFS="$ac_save_ifs"
7e0f7140
GK
6402fi
6403fi
cac3d6c4 6404STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140 6405if test -n "$STRIP_FOR_TARGET"; then
cac3d6c4 6406 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
7e0f7140 6407else
cac3d6c4 6408 echo "$ac_t""no" 1>&6
7e0f7140 6409fi
cac3d6c4 6410
2429c060
PB
6411 fi
6412 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6413 done
6414fi
6415
7e0f7140
GK
6416if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6417 set dummy strip
6418 if test $build = $target ; then
6419 STRIP_FOR_TARGET="$2"
6420 else
6421 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6422 fi
6423fi
6424
3a35eeb3
PB
6425else
6426 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
6427fi
6428
6429
6430
6431
6432if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6433 if test -n "$with_build_time_tools"; then
3a35eeb3
PB
6434 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6435echo "configure:6436: checking for windres in $with_build_time_tools" >&5
6436 if test -x $with_build_time_tools/windres; then
6437 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
6438 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6439 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6440 else
6441 echo "$ac_t""no" 1>&6
6442 fi
2429c060
PB
6443 elif test $build != $host && test $have_gcc_for_target = yes; then
6444 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
6445 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
6446 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6447 fi
6448fi
6449if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6450 # Extract the first word of "windres", so it can be a program name with args.
6451set dummy windres; ac_word=$2
6452echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 6453echo "configure:6454: checking for $ac_word" >&5
2429c060
PB
6454if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6455 echo $ac_n "(cached) $ac_c" 1>&6
6456else
6457 case "$WINDRES_FOR_TARGET" in
6458 /*)
6459 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6460 ;;
6461 ?:/*)
6462 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6463 ;;
6464 *)
6465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6466 ac_dummy="$gcc_cv_tool_dirs"
6467 for ac_dir in $ac_dummy; do
6468 test -z "$ac_dir" && ac_dir=.
6469 if test -f $ac_dir/$ac_word; then
6470 ac_cv_path_WINDRES_FOR_TARGET="$ac_dir/$ac_word"
6471 break
6472 fi
6473 done
6474 IFS="$ac_save_ifs"
6475 ;;
6476esac
6477fi
6478WINDRES_FOR_TARGET="$ac_cv_path_WINDRES_FOR_TARGET"
6479if test -n "$WINDRES_FOR_TARGET"; then
6480 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6481else
6482 echo "$ac_t""no" 1>&6
6483fi
6484
6485fi
6486if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6487 if test -n "$with_build_time_tools"; then
6488 for ncn_progname in windres; do
6489 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
3a35eeb3
PB
6490echo "configure:6491: checking for ${ncn_progname} in $with_build_time_tools" >&5
6491 if test -x $with_build_time_tools/${ncn_progname}; then
6492 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
6493 echo "$ac_t""yes" 1>&6
6494 break
6495 else
6496 echo "$ac_t""no" 1>&6
6497 fi
6498 done
6499fi
6500
6501if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6502 for ncn_progname in windres; do
6503 if test -n "$ncn_target_tool_prefix"; then
6504 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 6505set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 6506echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 6507echo "configure:6508: checking for $ac_word" >&5
cac3d6c4
CM
6508if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6509 echo $ac_n "(cached) $ac_c" 1>&6
859789af 6510else
55db4b87
PB
6511 if test -n "$WINDRES_FOR_TARGET"; then
6512 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 6513else
cac3d6c4
CM
6514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6515 ac_dummy="$PATH"
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_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6520 break
6521 fi
6522 done
6523 IFS="$ac_save_ifs"
859789af
AC
6524fi
6525fi
cac3d6c4 6526WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
55db4b87 6527if test -n "$WINDRES_FOR_TARGET"; then
cac3d6c4 6528 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
859789af 6529else
cac3d6c4 6530 echo "$ac_t""no" 1>&6
859789af
AC
6531fi
6532
2429c060
PB
6533 fi
6534 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 6536set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 6537echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3a35eeb3 6538echo "configure:6539: checking for $ac_word" >&5
cac3d6c4
CM
6539if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6540 echo $ac_n "(cached) $ac_c" 1>&6
859789af 6541else
05cbd757
PB
6542 if test -n "$WINDRES_FOR_TARGET"; then
6543 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 6544else
cac3d6c4
CM
6545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6546 ac_dummy="$PATH"
6547 for ac_dir in $ac_dummy; do
6548 test -z "$ac_dir" && ac_dir=.
6549 if test -f $ac_dir/$ac_word; then
6550 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
6551 break
6552 fi
6553 done
6554 IFS="$ac_save_ifs"
859789af
AC
6555fi
6556fi
cac3d6c4 6557WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
05cbd757 6558if test -n "$WINDRES_FOR_TARGET"; then
cac3d6c4 6559 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
859789af 6560else
cac3d6c4 6561 echo "$ac_t""no" 1>&6
859789af 6562fi
cac3d6c4 6563
2429c060
PB
6564 fi
6565 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6566 done
6567fi
6568
05cbd757
PB
6569if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6570 set dummy windres
6571 if test $build = $target ; then
6572 WINDRES_FOR_TARGET="$2"
859789af 6573 else
05cbd757 6574 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 6575 fi
859789af
AC
6576fi
6577
3a35eeb3
PB
6578else
6579 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
6580fi
6581
852e5f18 6582
be01d343
PB
6583RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
6584
6585echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
3a35eeb3 6586echo "configure:6587: checking where to find the target ar" >&5
be01d343 6587if test "x${build}" != "x${host}" ; then
2429c060
PB
6588 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6589 # We already found the complete path
6590 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6591 else
6592 # Canadian cross, just use what we found
6593 echo "$ac_t""pre-installed" 1>&6
6594 fi
be01d343
PB
6595else
6596 ok=yes
6597 case " ${configdirs} " in
6598 *" binutils "*) ;;
6599 *) ok=no ;;
6600 esac
6601
6602 if test $ok = yes; then
6603 # An in-tree tool is available and we can use it
6604 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
6605 echo "$ac_t""just compiled" 1>&6
2429c060
PB
6606 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6607 # We already found the complete path
6608 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
be01d343
PB
6609 elif test "x$target" = "x$host"; then
6610 # We can use an host tool
6611 AR_FOR_TARGET='$(AR)'
6612 echo "$ac_t""host tool" 1>&6
6613 else
6614 # We need a cross tool
6615 echo "$ac_t""pre-installed" 1>&6
6616 fi
6617fi
6618echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
3a35eeb3 6619echo "configure:6620: checking where to find the target as" >&5
be01d343 6620if test "x${build}" != "x${host}" ; then
2429c060
PB
6621 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6622 # We already found the complete path
6623 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6624 else
6625 # Canadian cross, just use what we found
6626 echo "$ac_t""pre-installed" 1>&6
6627 fi
be01d343
PB
6628else
6629 ok=yes
6630 case " ${configdirs} " in
6631 *" gas "*) ;;
6632 *) ok=no ;;
6633 esac
6634
6635 if test $ok = yes; then
6636 # An in-tree tool is available and we can use it
6637 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
6638 echo "$ac_t""just compiled" 1>&6
2429c060
PB
6639 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6640 # We already found the complete path
6641 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
be01d343
PB
6642 elif test "x$target" = "x$host"; then
6643 # We can use an host tool
6644 AS_FOR_TARGET='$(AS)'
6645 echo "$ac_t""host tool" 1>&6
6646 else
6647 # We need a cross tool
6648 echo "$ac_t""pre-installed" 1>&6
6649 fi
6650fi
6651echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
3a35eeb3 6652echo "configure:6653: checking where to find the target cc" >&5
be01d343 6653if test "x${build}" != "x${host}" ; then
2429c060
PB
6654 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6655 # We already found the complete path
6656 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6657 else
6658 # Canadian cross, just use what we found
6659 echo "$ac_t""pre-installed" 1>&6
6660 fi
be01d343
PB
6661else
6662 ok=yes
6663 case " ${configdirs} " in
6664 *" gcc "*) ;;
6665 *) ok=no ;;
6666 esac
6667
6668 if test $ok = yes; then
6669 # An in-tree tool is available and we can use it
6670 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6671 echo "$ac_t""just compiled" 1>&6
2429c060
PB
6672 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6673 # We already found the complete path
6674 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
be01d343
PB
6675 elif test "x$target" = "x$host"; then
6676 # We can use an host tool
6677 CC_FOR_TARGET='$(CC)'
6678 echo "$ac_t""host tool" 1>&6
6679 else
6680 # We need a cross tool
6681 echo "$ac_t""pre-installed" 1>&6
6682 fi
6683fi
6684echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
3a35eeb3 6685echo "configure:6686: checking where to find the target c++" >&5
be01d343 6686if test "x${build}" != "x${host}" ; then
2429c060
PB
6687 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6688 # We already found the complete path
6689 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6690 else
6691 # Canadian cross, just use what we found
6692 echo "$ac_t""pre-installed" 1>&6
6693 fi
be01d343
PB
6694else
6695 ok=yes
6696 case " ${configdirs} " in
6697 *" gcc "*) ;;
6698 *) ok=no ;;
6699 esac
6700 case ,${enable_languages}, in
6701 *,c++,*) ;;
6702 *) ok=no ;;
6703 esac
6704 if test $ok = yes; then
6705 # An in-tree tool is available and we can use it
6706 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'
6707 echo "$ac_t""just compiled" 1>&6
2429c060
PB
6708 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6709 # We already found the complete path
6710 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
be01d343
PB
6711 elif test "x$target" = "x$host"; then
6712 # We can use an host tool
6713 CXX_FOR_TARGET='$(CXX)'
6714 echo "$ac_t""host tool" 1>&6
6715 else
6716 # We need a cross tool
6717 echo "$ac_t""pre-installed" 1>&6
6718 fi
6719fi
6720echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
3a35eeb3 6721echo "configure:6722: checking where to find the target c++ for libstdc++" >&5
be01d343 6722if test "x${build}" != "x${host}" ; then
2429c060
PB
6723 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6724 # We already found the complete path
6725 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6726 else
6727 # Canadian cross, just use what we found
6728 echo "$ac_t""pre-installed" 1>&6
6729 fi
be01d343
PB
6730else
6731 ok=yes
6732 case " ${configdirs} " in
6733 *" gcc "*) ;;
6734 *) ok=no ;;
6735 esac
6736 case ,${enable_languages}, in
6737 *,c++,*) ;;
6738 *) ok=no ;;
6739 esac
6740 if test $ok = yes; then
6741 # An in-tree tool is available and we can use it
6742 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'
6743 echo "$ac_t""just compiled" 1>&6
2429c060
PB
6744 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6745 # We already found the complete path
6746 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
be01d343
PB
6747 elif test "x$target" = "x$host"; then
6748 # We can use an host tool
6749 RAW_CXX_FOR_TARGET='$(CXX)'
6750 echo "$ac_t""host tool" 1>&6
6751 else
6752 # We need a cross tool
6753 echo "$ac_t""pre-installed" 1>&6
6754 fi
6755fi
6756echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
3a35eeb3 6757echo "configure:6758: checking where to find the target dlltool" >&5
be01d343 6758if test "x${build}" != "x${host}" ; then
2429c060
PB
6759 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6760 # We already found the complete path
6761 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6762 else
6763 # Canadian cross, just use what we found
6764 echo "$ac_t""pre-installed" 1>&6
6765 fi
be01d343
PB
6766else
6767 ok=yes
6768 case " ${configdirs} " in
6769 *" binutils "*) ;;
6770 *) ok=no ;;
6771 esac
6772
6773 if test $ok = yes; then
6774 # An in-tree tool is available and we can use it
6775 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6776 echo "$ac_t""just compiled" 1>&6
2429c060
PB
6777 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6778 # We already found the complete path
6779 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
be01d343
PB
6780 elif test "x$target" = "x$host"; then
6781 # We can use an host tool
6782 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
6783 echo "$ac_t""host tool" 1>&6
6784 else
6785 # We need a cross tool
6786 echo "$ac_t""pre-installed" 1>&6
6787 fi
6788fi
6789echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
3a35eeb3 6790echo "configure:6791: checking where to find the target gcc" >&5
be01d343 6791if test "x${build}" != "x${host}" ; then
2429c060
PB
6792 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6793 # We already found the complete path
6794 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6795 else
6796 # Canadian cross, just use what we found
6797 echo "$ac_t""pre-installed" 1>&6
6798 fi
be01d343
PB
6799else
6800 ok=yes
6801 case " ${configdirs} " in
6802 *" gcc "*) ;;
6803 *) ok=no ;;
6804 esac
6805
6806 if test $ok = yes; then
6807 # An in-tree tool is available and we can use it
6808 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6809 echo "$ac_t""just compiled" 1>&6
2429c060
PB
6810 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6811 # We already found the complete path
6812 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
be01d343
PB
6813 elif test "x$target" = "x$host"; then
6814 # We can use an host tool
6815 GCC_FOR_TARGET='$()'
6816 echo "$ac_t""host tool" 1>&6
6817 else
6818 # We need a cross tool
6819 echo "$ac_t""pre-installed" 1>&6
6820 fi
6821fi
6822echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
3a35eeb3 6823echo "configure:6824: checking where to find the target gcj" >&5
be01d343 6824if test "x${build}" != "x${host}" ; then
2429c060
PB
6825 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6826 # We already found the complete path
6827 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6828 else
6829 # Canadian cross, just use what we found
6830 echo "$ac_t""pre-installed" 1>&6
6831 fi
be01d343
PB
6832else
6833 ok=yes
6834 case " ${configdirs} " in
6835 *" gcc "*) ;;
6836 *) ok=no ;;
6837 esac
6838 case ,${enable_languages}, in
6839 *,java,*) ;;
6840 *) ok=no ;;
6841 esac
6842 if test $ok = yes; then
6843 # An in-tree tool is available and we can use it
6844 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6845 echo "$ac_t""just compiled" 1>&6
2429c060
PB
6846 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6847 # We already found the complete path
6848 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
be01d343
PB
6849 elif test "x$target" = "x$host"; then
6850 # We can use an host tool
6851 GCJ_FOR_TARGET='$(GCJ)'
6852 echo "$ac_t""host tool" 1>&6
6853 else
6854 # We need a cross tool
6855 echo "$ac_t""pre-installed" 1>&6
6856 fi
6857fi
6858echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
3a35eeb3 6859echo "configure:6860: checking where to find the target gfortran" >&5
be01d343 6860if test "x${build}" != "x${host}" ; then
2429c060
PB
6861 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6862 # We already found the complete path
6863 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6864 else
6865 # Canadian cross, just use what we found
6866 echo "$ac_t""pre-installed" 1>&6
6867 fi
be01d343
PB
6868else
6869 ok=yes
6870 case " ${configdirs} " in
6871 *" gcc "*) ;;
6872 *) ok=no ;;
6873 esac
6874 case ,${enable_languages}, in
6875 *,fortran,*) ;;
6876 *) ok=no ;;
6877 esac
6878 if test $ok = yes; then
6879 # An in-tree tool is available and we can use it
6880 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
6881 echo "$ac_t""just compiled" 1>&6
2429c060
PB
6882 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6883 # We already found the complete path
6884 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
be01d343
PB
6885 elif test "x$target" = "x$host"; then
6886 # We can use an host tool
6887 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
6888 echo "$ac_t""host tool" 1>&6
6889 else
6890 # We need a cross tool
6891 echo "$ac_t""pre-installed" 1>&6
6892 fi
6893fi
6894echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
3a35eeb3 6895echo "configure:6896: checking where to find the target ld" >&5
be01d343 6896if test "x${build}" != "x${host}" ; then
2429c060
PB
6897 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
6898 # We already found the complete path
6899 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6900 else
6901 # Canadian cross, just use what we found
6902 echo "$ac_t""pre-installed" 1>&6
6903 fi
be01d343
PB
6904else
6905 ok=yes
6906 case " ${configdirs} " in
6907 *" ld "*) ;;
6908 *) ok=no ;;
6909 esac
6910
6911 if test $ok = yes; then
6912 # An in-tree tool is available and we can use it
6913 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
6914 echo "$ac_t""just compiled" 1>&6
2429c060
PB
6915 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
6916 # We already found the complete path
6917 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
be01d343
PB
6918 elif test "x$target" = "x$host"; then
6919 # We can use an host tool
6920 LD_FOR_TARGET='$(LD)'
6921 echo "$ac_t""host tool" 1>&6
6922 else
6923 # We need a cross tool
6924 echo "$ac_t""pre-installed" 1>&6
6925 fi
6926fi
6927echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
3a35eeb3 6928echo "configure:6929: checking where to find the target lipo" >&5
be01d343 6929if test "x${build}" != "x${host}" ; then
2429c060
PB
6930 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
6931 # We already found the complete path
6932 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6933 else
6934 # Canadian cross, just use what we found
6935 echo "$ac_t""pre-installed" 1>&6
6936 fi
be01d343 6937else
2429c060
PB
6938 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
6939 # We already found the complete path
6940 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6941 elif test "x$target" = "x$host"; then
be01d343
PB
6942 # We can use an host tool
6943 LIPO_FOR_TARGET='$(LIPO)'
6944 echo "$ac_t""host tool" 1>&6
6945 else
6946 # We need a cross tool
6947 echo "$ac_t""pre-installed" 1>&6
6948 fi
6949fi
6950echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
3a35eeb3 6951echo "configure:6952: checking where to find the target nm" >&5
be01d343 6952if test "x${build}" != "x${host}" ; then
2429c060
PB
6953 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
6954 # We already found the complete path
6955 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
6956 else
6957 # Canadian cross, just use what we found
6958 echo "$ac_t""pre-installed" 1>&6
6959 fi
be01d343
PB
6960else
6961 ok=yes
6962 case " ${configdirs} " in
6963 *" binutils "*) ;;
6964 *) ok=no ;;
6965 esac
6966
6967 if test $ok = yes; then
6968 # An in-tree tool is available and we can use it
6969 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
6970 echo "$ac_t""just compiled" 1>&6
2429c060
PB
6971 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
6972 # We already found the complete path
6973 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
be01d343
PB
6974 elif test "x$target" = "x$host"; then
6975 # We can use an host tool
6976 NM_FOR_TARGET='$(NM)'
6977 echo "$ac_t""host tool" 1>&6
6978 else
6979 # We need a cross tool
6980 echo "$ac_t""pre-installed" 1>&6
6981 fi
6982fi
6983echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
3a35eeb3 6984echo "configure:6985: checking where to find the target objdump" >&5
be01d343 6985if test "x${build}" != "x${host}" ; then
2429c060
PB
6986 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
6987 # We already found the complete path
6988 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
6989 else
6990 # Canadian cross, just use what we found
6991 echo "$ac_t""pre-installed" 1>&6
6992 fi
be01d343
PB
6993else
6994 ok=yes
6995 case " ${configdirs} " in
6996 *" binutils "*) ;;
6997 *) ok=no ;;
6998 esac
6999
7000 if test $ok = yes; then
7001 # An in-tree tool is available and we can use it
7002 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
7003 echo "$ac_t""just compiled" 1>&6
2429c060
PB
7004 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7005 # We already found the complete path
7006 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
be01d343
PB
7007 elif test "x$target" = "x$host"; then
7008 # We can use an host tool
7009 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
7010 echo "$ac_t""host tool" 1>&6
7011 else
7012 # We need a cross tool
7013 echo "$ac_t""pre-installed" 1>&6
7014 fi
7015fi
7016echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
3a35eeb3 7017echo "configure:7018: checking where to find the target ranlib" >&5
be01d343 7018if test "x${build}" != "x${host}" ; then
2429c060
PB
7019 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7020 # We already found the complete path
7021 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7022 else
7023 # Canadian cross, just use what we found
7024 echo "$ac_t""pre-installed" 1>&6
7025 fi
be01d343
PB
7026else
7027 ok=yes
7028 case " ${configdirs} " in
7029 *" binutils "*) ;;
7030 *) ok=no ;;
7031 esac
7032
7033 if test $ok = yes; then
7034 # An in-tree tool is available and we can use it
7035 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7036 echo "$ac_t""just compiled" 1>&6
2429c060
PB
7037 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7038 # We already found the complete path
7039 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
be01d343
PB
7040 elif test "x$target" = "x$host"; then
7041 # We can use an host tool
7042 RANLIB_FOR_TARGET='$(RANLIB)'
7043 echo "$ac_t""host tool" 1>&6
7044 else
7045 # We need a cross tool
7046 echo "$ac_t""pre-installed" 1>&6
7047 fi
7048fi
7049echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
3a35eeb3 7050echo "configure:7051: checking where to find the target strip" >&5
be01d343 7051if test "x${build}" != "x${host}" ; then
2429c060
PB
7052 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7053 # We already found the complete path
7054 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7055 else
7056 # Canadian cross, just use what we found
7057 echo "$ac_t""pre-installed" 1>&6
7058 fi
be01d343
PB
7059else
7060 ok=yes
7061 case " ${configdirs} " in
7062 *" binutils "*) ;;
7063 *) ok=no ;;
7064 esac
7065
7066 if test $ok = yes; then
7067 # An in-tree tool is available and we can use it
7068 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
7069 echo "$ac_t""just compiled" 1>&6
2429c060
PB
7070 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7071 # We already found the complete path
7072 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
be01d343
PB
7073 elif test "x$target" = "x$host"; then
7074 # We can use an host tool
7075 STRIP_FOR_TARGET='$(STRIP)'
7076 echo "$ac_t""host tool" 1>&6
7077 else
7078 # We need a cross tool
7079 echo "$ac_t""pre-installed" 1>&6
7080 fi
7081fi
7082echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
3a35eeb3 7083echo "configure:7084: checking where to find the target windres" >&5
be01d343 7084if test "x${build}" != "x${host}" ; then
2429c060
PB
7085 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7086 # We already found the complete path
7087 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7088 else
7089 # Canadian cross, just use what we found
7090 echo "$ac_t""pre-installed" 1>&6
7091 fi
be01d343
PB
7092else
7093 ok=yes
7094 case " ${configdirs} " in
7095 *" binutils "*) ;;
7096 *) ok=no ;;
7097 esac
7098
7099 if test $ok = yes; then
7100 # An in-tree tool is available and we can use it
7101 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
7102 echo "$ac_t""just compiled" 1>&6
2429c060
PB
7103 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7104 # We already found the complete path
7105 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
be01d343
PB
7106 elif test "x$target" = "x$host"; then
7107 # We can use an host tool
7108 WINDRES_FOR_TARGET='$(WINDRES)'
7109 echo "$ac_t""host tool" 1>&6
7110 else
7111 # We need a cross tool
7112 echo "$ac_t""pre-installed" 1>&6
7113 fi
a0da8069 7114fi
54752a6b
NN
7115
7116
7117
be01d343 7118
a0da8069
NN
7119# Certain tools may need extra flags.
7120AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7121RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7122NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
7123
be01d343
PB
7124# When building target libraries, except in a Canadian cross, we use
7125# the same toolchain as the compiler we just built.
7126COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
7127COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
7128COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
7129if test $host = $build; then
7130 case " $configdirs " in
7131 *" gcc "*)
7132 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
7133 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7134 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7135 ;;
7136 esac
7137fi
7138
7139
7140
7141
7142
cac3d6c4 7143echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3a35eeb3 7144echo "configure:7145: checking whether to enable maintainer-specific portions of Makefiles" >&5
3d5e36ae
AO
7145# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7146if test "${enable_maintainer_mode+set}" = set; then
7147 enableval="$enable_maintainer_mode"
7148 USE_MAINTAINER_MODE=$enableval
7149else
7150 USE_MAINTAINER_MODE=no
cac3d6c4
CM
7151fi
7152
7153echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3d5e36ae
AO
7154
7155
7156if test "$USE_MAINTAINER_MODE" = yes; then
7157 MAINTAINER_MODE_TRUE=
7158 MAINTAINER_MODE_FALSE='#'
7159else
7160 MAINTAINER_MODE_TRUE='#'
7161 MAINTAINER_MODE_FALSE=
cac3d6c4 7162fi
3d5e36ae
AO
7163MAINT=$MAINTAINER_MODE_TRUE
7164
1d39f329
NN
7165# ---------------------
7166# GCC bootstrap support
7167# ---------------------
7168
7169# Stage specific cflags for build.
7170stage1_cflags="-g"
7171case $build in
7172 vax-*-*)
7173 case ${GCC} in
7174 yes) stage1_cflags="-g -Wa,-J" ;;
7175 *) stage1_cflags="-g -J" ;;
7176 esac ;;
7177 powerpc-*-darwin*)
7178 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7179 # sources; use -no-cpp-precomp to get to GNU cpp.
7180 # Apple's GCC has bugs in designated initializer handling, so disable
7181 # that too.
7182 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7183 ;;
7184esac
7185
7186
7187# Enable -Werror in bootstrap stage2 and later.
7188# Change the default to "no" on release branches.
7189# Check whether --enable-werror or --disable-werror was given.
7190if test "${enable_werror+set}" = set; then
7191 enableval="$enable_werror"
cac3d6c4 7192 :
1d39f329
NN
7193else
7194 enable_werror=yes
cac3d6c4
CM
7195fi
7196
1a6f2dc7
NN
7197case ${enable_werror} in
7198 yes) stage2_werror_flag="--enable-werror-always" ;;
7199 *) stage2_werror_flag="" ;;
1d39f329
NN
7200esac
7201
7202
cac3d6c4
CM
7203trap '' 1 2 15
7204cat > confcache <<\EOF
a0da8069
NN
7205# This file is a shell script that caches the results of configure
7206# tests run on this system so they can be shared between configure
cac3d6c4
CM
7207# scripts and configure runs. It is not useful on other systems.
7208# If it contains results you don't want to keep, you may remove or edit it.
a0da8069 7209#
cac3d6c4
CM
7210# By default, configure uses ./config.cache as the cache file,
7211# creating it if it does not exist already. You can give configure
7212# the --cache-file=FILE option to use a different cache file; that is
7213# what configure does when it calls configure scripts in
7214# subdirectories, so they share the cache.
7215# Giving --cache-file=/dev/null disables caching, for debugging configure.
7216# config.status only pays attention to the cache file if you give it the
7217# --recheck option to rerun configure.
a0da8069 7218#
cac3d6c4 7219EOF
a0da8069
NN
7220# The following way of writing the cache mishandles newlines in values,
7221# but we know of no workaround that is simple, portable, and efficient.
7222# So, don't put newlines in cache variables' values.
7223# Ultrix sh set writes to stderr and can't be redirected directly,
7224# and sets the high bit in the cache file unless we assign to the vars.
cac3d6c4
CM
7225(set) 2>&1 |
7226 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7227 *ac_space=\ *)
7228 # `set' does not quote correctly, so add quotes (double-quote substitution
7229 # turns \\\\ into \\, and sed turns \\ into \).
7230 sed -n \
7231 -e "s/'/'\\\\''/g" \
7232 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7233 ;;
7234 *)
7235 # `set' quotes correctly as required by POSIX, so do not add quotes.
7236 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7237 ;;
7238 esac >> confcache
7239if cmp -s $cache_file confcache; then
7240 :
7241else
a0da8069 7242 if test -w $cache_file; then
cac3d6c4
CM
7243 echo "updating cache $cache_file"
7244 cat confcache > $cache_file
a0da8069
NN
7245 else
7246 echo "not updating unwritable cache $cache_file"
7247 fi
852e5f18 7248fi
a0da8069 7249rm -f confcache
852e5f18 7250
cac3d6c4
CM
7251trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7252
a0da8069
NN
7253test "x$prefix" = xNONE && prefix=$ac_default_prefix
7254# Let make expand exec_prefix.
7255test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 7256
cac3d6c4
CM
7257# Any assignment to VPATH causes Sun make to only execute
7258# the first set of double-colon rules, so remove it if not needed.
7259# If there is a colon in the path, we need to keep it.
a0da8069 7260if test "x$srcdir" = x.; then
cac3d6c4 7261 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
a0da8069 7262fi
252b5132 7263
cac3d6c4
CM
7264trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7265
a0da8069
NN
7266# Transform confdefs.h into DEFS.
7267# Protect against shell expansion while executing Makefile rules.
7268# Protect against Makefile macro expansion.
80911fe1
PB
7269cat > conftest.defs <<\EOF
7270s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7271s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7272s%\[%\\&%g
7273s%\]%\\&%g
7274s%\$%$$%g
7275EOF
7276DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
7277rm -f conftest.defs
852e5f18 7278
376a0e54 7279
cac3d6c4 7280# Without the "./", some shells look in PATH for config.status.
376a0e54 7281: ${CONFIG_STATUS=./config.status}
cac3d6c4
CM
7282
7283echo creating $CONFIG_STATUS
7284rm -f $CONFIG_STATUS
7285cat > $CONFIG_STATUS <<EOF
7286#! /bin/sh
7287# Generated automatically by configure.
a0da8069 7288# Run this file to recreate the current configuration.
cac3d6c4
CM
7289# This directory was configured as follows,
7290# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7291#
7292# $0 $ac_configure_args
7293#
a0da8069 7294# Compiler output produced by configure, useful for debugging
cac3d6c4 7295# configure, is in ./config.log if it exists.
376a0e54 7296
cac3d6c4
CM
7297ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7298for ac_option
a0da8069 7299do
cac3d6c4 7300 case "\$ac_option" in
a0da8069 7301 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
cac3d6c4
CM
7302 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7303 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7304 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7305 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7306 exit 0 ;;
7307 -help | --help | --hel | --he | --h)
7308 echo "\$ac_cs_usage"; exit 0 ;;
7309 *) echo "\$ac_cs_usage"; exit 1 ;;
376a0e54
CM
7310 esac
7311done
7312
cac3d6c4
CM
7313ac_given_srcdir=$srcdir
7314ac_given_INSTALL="$INSTALL"
376a0e54 7315
cac3d6c4
CM
7316trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7317EOF
7318cat >> $CONFIG_STATUS <<EOF
376a0e54 7319
cac3d6c4
CM
7320# Protect against being on the right side of a sed subst in config.status.
7321sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7322 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7323$ac_vpsub
7324$extrasub
7325s%@SHELL@%$SHELL%g
7326s%@CFLAGS@%$CFLAGS%g
7327s%@CPPFLAGS@%$CPPFLAGS%g
7328s%@CXXFLAGS@%$CXXFLAGS%g
7329s%@FFLAGS@%$FFLAGS%g
7330s%@DEFS@%$DEFS%g
7331s%@LDFLAGS@%$LDFLAGS%g
7332s%@LIBS@%$LIBS%g
7333s%@exec_prefix@%$exec_prefix%g
7334s%@prefix@%$prefix%g
7335s%@program_transform_name@%$program_transform_name%g
7336s%@bindir@%$bindir%g
7337s%@sbindir@%$sbindir%g
7338s%@libexecdir@%$libexecdir%g
7339s%@datadir@%$datadir%g
7340s%@sysconfdir@%$sysconfdir%g
7341s%@sharedstatedir@%$sharedstatedir%g
7342s%@localstatedir@%$localstatedir%g
7343s%@libdir@%$libdir%g
7344s%@includedir@%$includedir%g
7345s%@oldincludedir@%$oldincludedir%g
7346s%@infodir@%$infodir%g
7347s%@mandir@%$mandir%g
7348s%@host@%$host%g
7349s%@host_alias@%$host_alias%g
7350s%@host_cpu@%$host_cpu%g
7351s%@host_vendor@%$host_vendor%g
7352s%@host_os@%$host_os%g
7353s%@target@%$target%g
7354s%@target_alias@%$target_alias%g
7355s%@target_cpu@%$target_cpu%g
7356s%@target_vendor@%$target_vendor%g
7357s%@target_os@%$target_os%g
7358s%@build@%$build%g
7359s%@build_alias@%$build_alias%g
7360s%@build_cpu@%$build_cpu%g
7361s%@build_vendor@%$build_vendor%g
7362s%@build_os@%$build_os%g
7363s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7364s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7365s%@INSTALL_DATA@%$INSTALL_DATA%g
7366s%@LN@%$LN%g
7367s%@LN_S@%$LN_S%g
7368s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7369s%@build_subdir@%$build_subdir%g
7370s%@host_subdir@%$host_subdir%g
7371s%@target_subdir@%$target_subdir%g
7372s%@CC@%$CC%g
7373s%@GNATBIND@%$GNATBIND%g
7374s%@do_compare@%$do_compare%g
7375s%@gmplibs@%$gmplibs%g
7376s%@gmpinc@%$gmpinc%g
7377s%@stage1_languages@%$stage1_languages%g
7378s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
a0da8069 7379/@serialization_dependencies@/r $serialization_dependencies
cac3d6c4 7380s%@serialization_dependencies@%%g
a0da8069 7381/@host_makefile_frag@/r $host_makefile_frag
cac3d6c4 7382s%@host_makefile_frag@%%g
a0da8069 7383/@target_makefile_frag@/r $target_makefile_frag
cac3d6c4 7384s%@target_makefile_frag@%%g
a0da8069 7385/@alphaieee_frag@/r $alphaieee_frag
cac3d6c4 7386s%@alphaieee_frag@%%g
a0da8069 7387/@ospace_frag@/r $ospace_frag
cac3d6c4
CM
7388s%@ospace_frag@%%g
7389s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7390s%@BUILD_PREFIX@%$BUILD_PREFIX%g
7391s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
7392s%@tooldir@%$tooldir%g
7393s%@build_tooldir@%$build_tooldir%g
907be67c 7394s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
cac3d6c4 7395s%@GDB_TK@%$GDB_TK%g
907be67c 7396s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
cac3d6c4
CM
7397s%@build_configargs@%$build_configargs%g
7398s%@build_configdirs@%$build_configdirs%g
7399s%@host_configargs@%$host_configargs%g
7400s%@configdirs@%$configdirs%g
7401s%@target_configargs@%$target_configargs%g
7402s%@target_configdirs@%$target_configdirs%g
7403s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7404s%@config_shell@%$config_shell%g
be01d343
PB
7405s%@YACC@%$YACC%g
7406s%@BISON@%$BISON%g
7407s%@M4@%$M4%g
7408s%@LEX@%$LEX%g
7409s%@FLEX@%$FLEX%g
7410s%@MAKEINFO@%$MAKEINFO%g
7411s%@EXPECT@%$EXPECT%g
7412s%@RUNTEST@%$RUNTEST%g
cac3d6c4
CM
7413s%@AR@%$AR%g
7414s%@AS@%$AS%g
7415s%@DLLTOOL@%$DLLTOOL%g
7416s%@LD@%$LD%g
be01d343 7417s%@LIPO@%$LIPO%g
cac3d6c4
CM
7418s%@NM@%$NM%g
7419s%@RANLIB@%$RANLIB%g
be01d343 7420s%@STRIP@%$STRIP%g
cac3d6c4
CM
7421s%@WINDRES@%$WINDRES%g
7422s%@OBJCOPY@%$OBJCOPY%g
7423s%@OBJDUMP@%$OBJDUMP%g
7424s%@CXX@%$CXX%g
7425s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
cac3d6c4
CM
7426s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7427s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
cac3d6c4
CM
7428s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7429s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7430s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
2429c060
PB
7431s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7432s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7433s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
cac3d6c4
CM
7434s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7435s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7436s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
5ae72758 7437s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
cac3d6c4
CM
7438s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7439s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7440s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
cac3d6c4
CM
7441s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7442s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
be01d343
PB
7443s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7444s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7445s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
cac3d6c4
CM
7446s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7447s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7448s%@MAINT@%$MAINT%g
7449s%@stage1_cflags@%$stage1_cflags%g
cac3d6c4
CM
7450s%@stage2_werror_flag@%$stage2_werror_flag%g
7451
a0da8069 7452CEOF
cac3d6c4 7453EOF
252b5132 7454
cac3d6c4
CM
7455cat >> $CONFIG_STATUS <<\EOF
7456
7457# Split the substitutions into bite-sized pieces for seds with
7458# small command number limits, like on Digital OSF/1 and HP-UX.
7459ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7460ac_file=1 # Number of current file.
7461ac_beg=1 # First line for current file.
7462ac_end=$ac_max_sed_cmds # Line after last line for current file.
7463ac_more_lines=:
7464ac_sed_cmds=""
7465while $ac_more_lines; do
7466 if test $ac_beg -gt 1; then
7467 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7468 else
7469 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7470 fi
7471 if test ! -s conftest.s$ac_file; then
7472 ac_more_lines=false
7473 rm -f conftest.s$ac_file
7474 else
7475 if test -z "$ac_sed_cmds"; then
7476 ac_sed_cmds="sed -f conftest.s$ac_file"
a0da8069 7477 else
cac3d6c4 7478 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
a0da8069 7479 fi
cac3d6c4
CM
7480 ac_file=`expr $ac_file + 1`
7481 ac_beg=$ac_end
7482 ac_end=`expr $ac_end + $ac_max_sed_cmds`
852e5f18 7483 fi
cac3d6c4
CM
7484done
7485if test -z "$ac_sed_cmds"; then
7486 ac_sed_cmds=cat
7487fi
7488EOF
7489
7490cat >> $CONFIG_STATUS <<EOF
252b5132 7491
cac3d6c4
CM
7492CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7493EOF
7494cat >> $CONFIG_STATUS <<\EOF
7495for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
a0da8069 7496 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
cac3d6c4
CM
7497 case "$ac_file" in
7498 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7499 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7500 *) ac_file_in="${ac_file}.in" ;;
a0da8069 7501 esac
252b5132 7502
cac3d6c4 7503 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
376a0e54 7504
cac3d6c4
CM
7505 # Remove last slash and all that follows it. Not all systems have dirname.
7506 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7507 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7508 # The file is in a subdirectory.
7509 test ! -d "$ac_dir" && mkdir "$ac_dir"
7510 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7511 # A "../" for each directory in $ac_dir_suffix.
7512 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7513 else
7514 ac_dir_suffix= ac_dots=
7515 fi
252b5132 7516
cac3d6c4
CM
7517 case "$ac_given_srcdir" in
7518 .) srcdir=.
7519 if test -z "$ac_dots"; then top_srcdir=.
7520 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7521 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
a0da8069 7522 *) # Relative path.
cac3d6c4
CM
7523 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7524 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7525 esac
252b5132 7526
cac3d6c4
CM
7527 case "$ac_given_INSTALL" in
7528 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7529 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7530 esac
252b5132 7531
cac3d6c4
CM
7532 echo creating "$ac_file"
7533 rm -f "$ac_file"
7534 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7535 case "$ac_file" in
7536 *Makefile*) ac_comsub="1i\\
7537# $configure_input" ;;
7538 *) ac_comsub= ;;
a0da8069 7539 esac
252b5132 7540
cac3d6c4
CM
7541 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7542 sed -e "$ac_comsub
7543s%@configure_input@%$configure_input%g
7544s%@srcdir@%$srcdir%g
7545s%@top_srcdir@%$top_srcdir%g
7546s%@INSTALL@%$INSTALL%g
7547" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7548fi; done
7549rm -f conftest.s*
c148b4cb 7550
cac3d6c4
CM
7551EOF
7552cat >> $CONFIG_STATUS <<EOF
c148b4cb 7553
cac3d6c4
CM
7554EOF
7555cat >> $CONFIG_STATUS <<\EOF
c148b4cb 7556
cac3d6c4
CM
7557exit 0
7558EOF
c148b4cb 7559chmod +x $CONFIG_STATUS
cac3d6c4
CM
7560rm -fr confdefs* $ac_clean_files
7561test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
c148b4cb 7562
This page took 0.724988 seconds and 4 git commands to generate.