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