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