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