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