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