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