Rename ms1 files to mt files (part 1 -- renames only)
[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
30 --enable-bootstrap[=lean] Enable bootstrapping [no]"
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 ;;
b07c2aad 1451 m32r-*-*)
970f29af 1452 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 1453 ;;
a0da8069 1454 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
b9459e83 1455 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
1456 ;;
1457 m68k-*-elf*)
1458 noconfigdirs="$noconfigdirs ${libgcj}"
1459 ;;
1460 m68k-*-coff*)
1461 noconfigdirs="$noconfigdirs ${libgcj}"
1462 ;;
1463 mcore-*-pe*)
1464 # The EPOC C++ environment does not support exceptions or rtti,
1465 # and so building libstdc++-v3 tends not to always work.
1466 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1467 ;;
1468 mmix-*-*)
59f7ec45 1469 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 1470 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
1471 ;;
1472 mn10200-*-*)
1473 noconfigdirs="$noconfigdirs ${libgcj}"
1474 ;;
1475 mn10300-*-*)
1476 noconfigdirs="$noconfigdirs ${libgcj}"
1477 ;;
cdb9b172
AH
1478 ms1-*-*)
1479 noconfigdirs="$noconfigdirs sim"
1480 ;;
a0da8069
NN
1481 powerpc-*-aix*)
1482 # copied from rs6000-*-* entry
096f7d00 1483 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
1484 ;;
1485 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1486 target_configdirs="$target_configdirs target-winsup"
675c6968 1487 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
1488 # always build newlib.
1489 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1490 ;;
1491 # This is temporary until we can link against shared libraries
1492 powerpcle-*-solaris*)
675c6968 1493 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
a0da8069
NN
1494 ;;
1495 powerpc-*-beos*)
1496 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1497 ;;
a0da8069 1498 powerpc-*-eabi)
69e57115 1499 noconfigdirs="$noconfigdirs ${libgcj}"
caeba88f
AL
1500 ;;
1501 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
a0da8069 1502 ;;
a0da8069
NN
1503 rs6000-*-lynxos*)
1504 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1505 ;;
1506 rs6000-*-aix*)
096f7d00 1507 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
1508 ;;
1509 rs6000-*-*)
1510 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1511 ;;
1512 m68k-apollo-*)
1513 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1514 ;;
1515 mips*-*-irix5*)
0f260896 1516 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
1517 ;;
1518 mips*-*-irix6*)
a0da8069
NN
1519 # Linking libjava exceeds command-line length limits on at least
1520 # IRIX 6.2, but not on IRIX 6.5.
1521 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1522 # <oldham@codesourcery.com>
aa236487 1523 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
1524 ;;
1525 mips*-dec-bsd*)
1526 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1527 ;;
1528 mips*-*-bsd*)
1529 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1530 ;;
1531 mipstx39-*-*)
1532 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
bba45b8b 1533 ;;
1712ab83
RS
1534 mips64*-*-linux*)
1535 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1536 ;;
a0da8069
NN
1537 mips*-*-linux*)
1538 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1539 ;;
1540 mips*-*-*)
1541 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1542 ;;
1543 romp-*-*)
1544 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1545 ;;
dbf85af7 1546 sh-*-* | sh64-*-*)
a0da8069 1547 case "${host}" in
ec11bdc6
DD
1548 i[3456789]86-*-vsta) ;; # don't add gprof back in
1549 i[3456789]86-*-go32*) ;; # don't add gprof back in
1550 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
1551 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1552 esac
1553 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1554 ;;
a0da8069
NN
1555 sparc-*-elf*)
1556 noconfigdirs="$noconfigdirs ${libgcj}"
1557 ;;
1558 sparc64-*-elf*)
1559 noconfigdirs="$noconfigdirs ${libgcj}"
1560 ;;
1561 sparclite-*-*)
1562 noconfigdirs="$noconfigdirs ${libgcj}"
1563 ;;
1564 sparc-*-sunos4*)
1565 noconfigdirs="$noconfigdirs ${libgcj}"
1566 if test x${is_cross_compiler} != xno ; then
1567 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1568 else
1569 use_gnu_ld=no
1570 fi
1571 ;;
e3c770b1
EB
1572 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1573 noconfigdirs="$noconfigdirs ${libgcj}"
1574 ;;
a0da8069
NN
1575 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1576 ;;
1577 v810-*-*)
b9459e83 1578 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
1579 ;;
1580 v850-*-*)
1581 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1582 ;;
1583 v850e-*-*)
1584 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1585 ;;
1586 v850ea-*-*)
1587 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1588 ;;
1589 vax-*-vms)
1590 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1591 ;;
1592 vax-*-*)
1593 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1594 ;;
fbd1054d
BW
1595 xtensa-*-*)
1596 noconfigdirs="$noconfigdirs ${libgcj}"
1597 ;;
a0da8069 1598 ip2k-*-*)
b9459e83 1599 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 1600 ;;
de0b4a87 1601 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
1602 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1603 ;;
1604 *-*-lynxos*)
1605 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
cac3d6c4 1606 ;;
a0da8069
NN
1607 *-*-*)
1608 noconfigdirs="$noconfigdirs ${libgcj}"
1609 ;;
1610esac
252b5132 1611
a0da8069
NN
1612# If we aren't building newlib, then don't build libgloss, since libgloss
1613# depends upon some newlib header files.
1614case "${noconfigdirs}" in
1615 *target-libgloss*) ;;
1616 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1617esac
1618
a0da8069
NN
1619# Work in distributions that contain no compiler tools, like Autoconf.
1620tentative_cc=""
1621host_makefile_frag=/dev/null
1622if test -d ${srcdir}/config ; then
1623case "${host}" in
1624 m68k-hp-hpux*)
1625 # Avoid "too much defining" errors from HPUX compiler.
1626 tentative_cc="cc -Wp,-H256000"
1627 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1628 # If it's HP/UX ar, this should be harmless.
1629 RANLIB="ar ts"
1630 ;;
1631 m68k-apollo-sysv*)
1632 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1633 ;;
1634 m68k-apollo-bsd*)
1635 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1636 # chokes on bfd, the compiler won't let you assign integers to enums, and
1637 # other problems. Defining CC to gcc is a questionable way to say "don't use
1638 # the apollo compiler" (the preferred version of GCC could be called cc,
1639 # or whatever), but I'm not sure leaving CC as cc is any better...
1640 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1641 # Used to have BISON=yacc.
1642 tentative_cc=gcc
1643 ;;
1644 m88k-dg-dgux*)
1645 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
1646 ;;
1647 m88k-harris-cxux*)
1648 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1649 tentative_cc="cc -Xa"
1650 host_makefile_frag="config/mh-cxux"
1651 ;;
1652 m88k-motorola-sysv*)
1653 ;;
1654 mips*-dec-ultrix*)
1655 tentative_cc="cc -Wf,-XNg1000"
1656 host_makefile_frag="config/mh-decstation"
1657 ;;
1658 mips*-nec-sysv4*)
1659 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1660 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1661 host_makefile_frag="config/mh-necv4"
1662 ;;
1663 mips*-sgi-irix4*)
1664 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1665 # environment. Also bump switch table size so that cp-parse will
1666 # compile. Bump string length limit so linker builds.
1667 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1668 ;;
1669 mips*-*-sysv4*)
1670 host_makefile_frag="config/mh-sysv4"
1671 ;;
1672 mips*-*-sysv*)
1673 # This is for a MIPS running RISC/os 4.52C.
1674
1675 # This is needed for GDB, but needs to be in the top-level make because
1676 # if a library is compiled with the bsd headers and gets linked with the
1677 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1678 # a different size).
1679 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1680 # known except to select the sysv environment. Could we use /proc instead?
1681 # These "sysv environments" and "bsd environments" often end up being a pain.
1682 #
1683 # This is not part of CFLAGS because perhaps not all C compilers have this
1684 # option.
1685 tentative_cc="cc -systype sysv"
1686 ;;
1687 i370-ibm-opened*)
1688 tentative_cc="c89"
1689 ;;
ec11bdc6 1690 i[3456789]86-*-sysv5*)
a0da8069
NN
1691 host_makefile_frag="config/mh-sysv5"
1692 ;;
ec11bdc6 1693 i[3456789]86-*-dgux*)
a0da8069
NN
1694 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1695 host_makefile_frag="config/mh-dgux386"
1696 ;;
ec11bdc6 1697 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
1698 # The MetaWare compiler will generate a copyright message unless you
1699 # turn it off by adding the -Hnocopyr flag.
1700 tentative_cc="cc -Hnocopyr"
1701 ;;
ec11bdc6 1702 i[3456789]86-ncr-sysv4*)
a0da8069
NN
1703 # for an NCR 3000 (i486/SVR4) system.
1704 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1705 # This compiler not only emits obnoxious copyright messages every time
1706 # you run it, but it chokes and dies on a whole bunch of GNU source
1707 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1708 tentative_cc="/usr/ccs/ATT/cc"
1709 host_makefile_frag="config/mh-ncr3000"
1710 ;;
ec11bdc6 1711 i[3456789]86-*-sco3.2v5*)
a0da8069 1712 ;;
ec11bdc6 1713 i[3456789]86-*-sco*)
a0da8069
NN
1714 # The native C compiler botches some simple uses of const. Unfortunately,
1715 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1716 tentative_cc="cc -Dconst="
1717 host_makefile_frag="config/mh-sco"
1718 ;;
ec11bdc6 1719 i[3456789]86-*-udk*)
a0da8069
NN
1720 host_makefile_frag="config/mh-sysv5"
1721 ;;
ec11bdc6 1722 i[3456789]86-*-solaris2*)
a0da8069
NN
1723 host_makefile_frag="config/mh-sysv4"
1724 ;;
ec11bdc6 1725 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
1726 host_makefile_frag="config/mh-djgpp"
1727 ;;
1728 *-cygwin*)
1729 host_makefile_frag="config/mh-cygwin"
1730 ;;
1731 *-mingw32*)
a0da8069
NN
1732 ;;
1733 *-interix*)
1734 host_makefile_frag="config/mh-interix"
1735 ;;
1736 vax-*-ultrix2*)
1737 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1738 tentative_cc=gcc
1739 ;;
1740 *-*-solaris2*)
1741 host_makefile_frag="config/mh-solaris"
1742 ;;
1743 m68k-sun-sunos*)
1744 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1745 # without overflowing the jump tables (-J says to use a 32 bit table)
1746 tentative_cc="cc -J"
1747 ;;
1748 *-hp-hpux*)
1749 tentative_cc="cc -Wp,-H256000"
1750 ;;
1751 *-*-hiux*)
1752 tentative_cc="cc -Wp,-H256000"
1753 ;;
1754 rs6000-*-lynxos*)
1755 # /bin/cc is less than useful for our purposes. Always use GCC
1756 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1757 host_makefile_frag="config/mh-lynxrs6k"
1758 ;;
0df3d27f
PB
1759 powerpc-*-darwin*)
1760 host_makefile_frag="config/mh-ppc-darwin"
1761 ;;
a0da8069
NN
1762 *-*-lynxos*)
1763 # /bin/cc is less than useful for our purposes. Always use GCC
1764 tentative_cc="/bin/gcc"
1765 ;;
1766 *-*-sysv4*)
1767 host_makefile_frag="config/mh-sysv4"
1768 ;;
fe69863c
DD
1769 # This is placed last to prevent interfering with the cases above.
1770 i[3456789]86-*-*)
1771 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1772 host_makefile_frag="config/mh-x86omitfp"
1773 ;;
a0da8069
NN
1774esac
1775fi
1776
9e07f89d
NN
1777# If we aren't going to be using gcc, see if we can extract a definition
1778# of CC from the fragment.
1779# Actually, use the 'pre-extracted' version above.
1780if test -z "${CC}" && test "${build}" = "${host}" ; then
1781 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1782 found=
1783 for dir in $PATH; do
1784 test -z "$dir" && dir=.
1785 if test -f $dir/gcc; then
1786 found=yes
1787 break
1788 fi
1789 done
1790 IFS="$save_ifs"
1791 if test -z "${found}" && test -n "${tentative_cc}" ; then
1792 CC=$tentative_cc
1793 fi
1794fi
1795
1796if test "${build}" != "${host}" ; then
1797 # If we are doing a Canadian Cross, in which the host and build systems
1798 # are not the same, we set reasonable default values for the tools.
1799
9e07f89d
NN
1800 CC=${CC-${host_alias}-gcc}
1801 CFLAGS=${CFLAGS-"-g -O2"}
1802 CXX=${CXX-${host_alias}-c++}
1803 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1804 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
9e07f89d
NN
1805 BUILD_PREFIX=${build_alias}-
1806 BUILD_PREFIX_1=${build_alias}-
9e07f89d
NN
1807
1808else
1809 # Set reasonable default values for some tools even if not Canadian.
1810 # Of course, these are different reasonable default values, originally
1811 # specified directly in the Makefile.
1812 # We don't export, so that autoconf can do its job.
1813 # Note that all these settings are above the fragment inclusion point
1814 # in Makefile.in, so can still be overridden by fragments.
1815 # This is all going to change when we autoconfiscate...
1816
9e07f89d 1817 CC_FOR_BUILD="\$(CC)"
9e07f89d
NN
1818 BUILD_PREFIX=
1819 BUILD_PREFIX_1=loser-
9e07f89d 1820
6a9cf61e 1821 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 1822set dummy gcc; ac_word=$2
cac3d6c4 1823echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bd70a46f 1824echo "configure:1825: checking for $ac_word" >&5
cac3d6c4
CM
1825if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
9e07f89d
NN
1827else
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1830else
cac3d6c4
CM
1831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1832 ac_dummy="$PATH"
1833 for ac_dir in $ac_dummy; do
1834 test -z "$ac_dir" && ac_dir=.
1835 if test -f $ac_dir/$ac_word; then
1836 ac_cv_prog_CC="gcc"
1837 break
1838 fi
1839 done
1840 IFS="$ac_save_ifs"
9e07f89d
NN
1841fi
1842fi
cac3d6c4 1843CC="$ac_cv_prog_CC"
9e07f89d 1844if test -n "$CC"; then
cac3d6c4 1845 echo "$ac_t""$CC" 1>&6
9e07f89d 1846else
cac3d6c4 1847 echo "$ac_t""no" 1>&6
9e07f89d
NN
1848fi
1849
1850if test -z "$CC"; then
1851 # Extract the first word of "cc", so it can be a program name with args.
1852set dummy cc; ac_word=$2
cac3d6c4 1853echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bd70a46f 1854echo "configure:1855: checking for $ac_word" >&5
cac3d6c4
CM
1855if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
9e07f89d
NN
1857else
1858 if test -n "$CC"; then
1859 ac_cv_prog_CC="$CC" # Let the user override the test.
1860else
cac3d6c4 1861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9e07f89d 1862 ac_prog_rejected=no
cac3d6c4
CM
1863 ac_dummy="$PATH"
1864 for ac_dir in $ac_dummy; do
1865 test -z "$ac_dir" && ac_dir=.
1866 if test -f $ac_dir/$ac_word; then
1867 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1868 ac_prog_rejected=yes
1869 continue
1870 fi
1871 ac_cv_prog_CC="cc"
1872 break
1873 fi
1874 done
1875 IFS="$ac_save_ifs"
9e07f89d
NN
1876if test $ac_prog_rejected = yes; then
1877 # We found a bogon in the path, so make sure we never use it.
1878 set dummy $ac_cv_prog_CC
1879 shift
cac3d6c4 1880 if test $# -gt 0; then
9e07f89d
NN
1881 # We chose a different compiler from the bogus one.
1882 # However, it has the same basename, so the bogon will be chosen
1883 # first if we set CC to just the basename; use the full file name.
1884 shift
cac3d6c4
CM
1885 set dummy "$ac_dir/$ac_word" "$@"
1886 shift
1887 ac_cv_prog_CC="$@"
9e07f89d
NN
1888 fi
1889fi
1890fi
1891fi
cac3d6c4 1892CC="$ac_cv_prog_CC"
9e07f89d 1893if test -n "$CC"; then
cac3d6c4 1894 echo "$ac_t""$CC" 1>&6
9e07f89d 1895else
cac3d6c4 1896 echo "$ac_t""no" 1>&6
9e07f89d
NN
1897fi
1898
cac3d6c4
CM
1899 if test -z "$CC"; then
1900 case "`uname -s`" in
1901 *win32* | *WIN32*)
1902 # Extract the first word of "cl", so it can be a program name with args.
1903set dummy cl; ac_word=$2
1904echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bd70a46f 1905echo "configure:1906: checking for $ac_word" >&5
cac3d6c4
CM
1906if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
9e07f89d
NN
1908else
1909 if test -n "$CC"; then
1910 ac_cv_prog_CC="$CC" # Let the user override the test.
1911else
cac3d6c4
CM
1912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1913 ac_dummy="$PATH"
1914 for ac_dir in $ac_dummy; do
1915 test -z "$ac_dir" && ac_dir=.
1916 if test -f $ac_dir/$ac_word; then
1917 ac_cv_prog_CC="cl"
1918 break
1919 fi
1920 done
1921 IFS="$ac_save_ifs"
9e07f89d
NN
1922fi
1923fi
cac3d6c4 1924CC="$ac_cv_prog_CC"
9e07f89d 1925if test -n "$CC"; then
cac3d6c4 1926 echo "$ac_t""$CC" 1>&6
9e07f89d 1927else
cac3d6c4 1928 echo "$ac_t""no" 1>&6
9e07f89d 1929fi
cac3d6c4
CM
1930 ;;
1931 esac
376a0e54 1932 fi
cac3d6c4 1933 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9e07f89d
NN
1934fi
1935
cac3d6c4 1936echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
bd70a46f 1937echo "configure:1938: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9e07f89d 1938
cac3d6c4
CM
1939ac_ext=c
1940# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1941ac_cpp='$CPP $CPPFLAGS'
1942ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1943ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1944cross_compiling=$ac_cv_prog_cc_cross
1945
1946cat > conftest.$ac_ext << EOF
1947
bd70a46f 1948#line 1949 "configure"
cac3d6c4
CM
1949#include "confdefs.h"
1950
1951main(){return(0);}
1952EOF
bd70a46f 1953if { (eval echo configure:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
cac3d6c4
CM
1954 ac_cv_prog_cc_works=yes
1955 # If we can't run a trivial program, we are probably using a cross compiler.
1956 if (./conftest; exit) 2>/dev/null; then
1957 ac_cv_prog_cc_cross=no
376a0e54 1958 else
cac3d6c4 1959 ac_cv_prog_cc_cross=yes
376a0e54 1960 fi
cac3d6c4
CM
1961else
1962 echo "configure: failed program was:" >&5
1963 cat conftest.$ac_ext >&5
1964 ac_cv_prog_cc_works=no
9e07f89d 1965fi
cac3d6c4
CM
1966rm -fr conftest*
1967ac_ext=c
1968# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1969ac_cpp='$CPP $CPPFLAGS'
1970ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1971ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1972cross_compiling=$ac_cv_prog_cc_cross
1973
1974echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1975if test $ac_cv_prog_cc_works = no; then
1976 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1977fi
1978echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
bd70a46f 1979echo "configure:1980: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
cac3d6c4
CM
1980echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1981cross_compiling=$ac_cv_prog_cc_cross
1982
1983echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
bd70a46f 1984echo "configure:1985: checking whether we are using GNU C" >&5
cac3d6c4
CM
1985if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6
1987else
1988 cat > conftest.c <<EOF
1989#ifdef __GNUC__
1990 yes;
1991#endif
1992EOF
bd70a46f 1993if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
cac3d6c4 1994 ac_cv_prog_gcc=yes
376a0e54 1995else
cac3d6c4
CM
1996 ac_cv_prog_gcc=no
1997fi
1998fi
1999
2000echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2001
2002if test $ac_cv_prog_gcc = yes; then
2003 GCC=yes
9e07f89d 2004else
cac3d6c4
CM
2005 GCC=
2006fi
376a0e54 2007
cac3d6c4
CM
2008ac_test_CFLAGS="${CFLAGS+set}"
2009ac_save_CFLAGS="$CFLAGS"
2010CFLAGS=
2011echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
bd70a46f 2012echo "configure:2013: checking whether ${CC-cc} accepts -g" >&5
cac3d6c4
CM
2013if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2015else
2016 echo 'void f(){}' > conftest.c
2017if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9e07f89d
NN
2018 ac_cv_prog_cc_g=yes
2019else
cac3d6c4 2020 ac_cv_prog_cc_g=no
9e07f89d 2021fi
cac3d6c4
CM
2022rm -f conftest*
2023
376a0e54 2024fi
cac3d6c4
CM
2025
2026echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9e07f89d 2027if test "$ac_test_CFLAGS" = set; then
cac3d6c4 2028 CFLAGS="$ac_save_CFLAGS"
9e07f89d
NN
2029elif test $ac_cv_prog_cc_g = yes; then
2030 if test "$GCC" = yes; then
2031 CFLAGS="-g -O2"
2032 else
2033 CFLAGS="-g"
2034 fi
2035else
2036 if test "$GCC" = yes; then
2037 CFLAGS="-O2"
2038 else
2039 CFLAGS=
2040 fi
2041fi
2042
2043
6a9cf61e
PB
2044 # We must set the default linker to the linker used by gcc for the correct
2045 # operation of libtool. If LD is not defined and we are using gcc, try to
2046 # set the LD default to the ld used by gcc.
2047 if test -z "$LD"; then
2048 if test "$GCC" = yes; then
2049 case $build in
2050 *-*-mingw*)
2051 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2052 *)
2053 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2054 esac
2055 case $gcc_prog_ld in
2056 # Accept absolute paths.
2057 [\\/]* | [A-Za-z]:[\\/]*)
2058 LD="$gcc_prog_ld" ;;
2059 esac
2060 fi
2061 fi
2062
2063 CXX=${CXX-"c++"}
2064 CFLAGS=${CFLAGS-"-g"}
2065 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2066fi
2067
cac3d6c4
CM
2068if test $host != $build; then
2069 ac_tool_prefix=${host_alias}-
2070else
2071 ac_tool_prefix=
2072fi
6a9cf61e
PB
2073
2074
9e07f89d 2075
cac3d6c4 2076# Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
9e07f89d 2077set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
cac3d6c4 2078echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bd70a46f 2079echo "configure:2080: checking for $ac_word" >&5
cac3d6c4
CM
2080if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2081 echo $ac_n "(cached) $ac_c" 1>&6
9e07f89d
NN
2082else
2083 if test -n "$GNATBIND"; then
2084 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2085else
cac3d6c4
CM
2086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2087 ac_dummy="$PATH"
2088 for ac_dir in $ac_dummy; do
2089 test -z "$ac_dir" && ac_dir=.
2090 if test -f $ac_dir/$ac_word; then
2091 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2092 break
2093 fi
2094 done
2095 IFS="$ac_save_ifs"
9e07f89d
NN
2096fi
2097fi
cac3d6c4 2098GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d 2099if test -n "$GNATBIND"; then
cac3d6c4 2100 echo "$ac_t""$GNATBIND" 1>&6
9e07f89d 2101else
cac3d6c4 2102 echo "$ac_t""no" 1>&6
9e07f89d
NN
2103fi
2104
cac3d6c4 2105
9e07f89d 2106if test -z "$ac_cv_prog_GNATBIND"; then
cac3d6c4 2107if test -n "$ac_tool_prefix"; then
9e07f89d
NN
2108 # Extract the first word of "gnatbind", so it can be a program name with args.
2109set dummy gnatbind; ac_word=$2
cac3d6c4 2110echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bd70a46f 2111echo "configure:2112: checking for $ac_word" >&5
cac3d6c4
CM
2112if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
9e07f89d 2114else
cac3d6c4
CM
2115 if test -n "$GNATBIND"; then
2116 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 2117else
cac3d6c4
CM
2118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2119 ac_dummy="$PATH"
2120 for ac_dir in $ac_dummy; do
2121 test -z "$ac_dir" && ac_dir=.
2122 if test -f $ac_dir/$ac_word; then
2123 ac_cv_prog_GNATBIND="gnatbind"
2124 break
2125 fi
2126 done
2127 IFS="$ac_save_ifs"
2128 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
9e07f89d
NN
2129fi
2130fi
cac3d6c4
CM
2131GNATBIND="$ac_cv_prog_GNATBIND"
2132if test -n "$GNATBIND"; then
2133 echo "$ac_t""$GNATBIND" 1>&6
9e07f89d 2134else
cac3d6c4 2135 echo "$ac_t""no" 1>&6
9e07f89d
NN
2136fi
2137
2138else
cac3d6c4
CM
2139 GNATBIND="no"
2140fi
9e07f89d
NN
2141fi
2142
cac3d6c4 2143echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
bd70a46f 2144echo "configure:2145: checking whether compiler driver understands Ada" >&5
cac3d6c4
CM
2145if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
9e07f89d
NN
2147else
2148 cat >conftest.adb <<EOF
2149procedure conftest is begin null; end conftest;
2150EOF
2151acx_cv_cc_gcc_supports_ada=no
2152# There is a bug in old released versions of GCC which causes the
2153# driver to exit successfully when the appropriate language module
2154# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2155# Therefore we must check for the error message as well as an
2156# unsuccessful exit.
b8908782
DD
2157# Other compilers, like HP Tru64 UNIX cc, exit successfully when
2158# given a .adb file, but produce no object file. So we must check
2159# if an object file was really produced to guard against this.
9e07f89d 2160errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 2161if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 2162 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
2163fi
2164rm -f conftest.*
2165fi
cac3d6c4
CM
2166
2167echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
9e07f89d 2168
b8908782 2169if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
2170 have_gnat=yes
2171else
2172 have_gnat=no
2173fi
2174
cac3d6c4 2175echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
bd70a46f 2176echo "configure:2177: checking how to compare bootstrapped objects" >&5
cac3d6c4
CM
2177if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
b8908782
DD
2179else
2180 echo abfoo >t1
2181 echo cdfoo >t2
2182 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
2183 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2184 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2185 :
2186 else
2187 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2188 fi
2189 fi
b8908782
DD
2190 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2191 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 2192 :
b8908782
DD
2193 else
2194 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2195 fi
2196 fi
2197 rm t1 t2
2198
2199fi
cac3d6c4
CM
2200
2201echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
b8908782
DD
2202do_compare="$gcc_cv_prog_cmp_skip"
2203
2204
9e07f89d 2205
11b04d1f 2206# Check for GMP and MPFR
4b1cb4fe
DD
2207gmplibs=
2208gmpinc=
2209have_gmp=yes
11b04d1f
DD
2210# Specify a location for mpfr
2211# check for this first so it ends up on the link line before gmp.
2212# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2213if test "${with_mpfr_dir+set}" = set; then
2214 withval="$with_mpfr_dir"
cac3d6c4
CM
2215 :
2216fi
11b04d1f
DD
2217
2218
2219if test "x$with_mpfr_dir" != x; then
c10e9ba7 2220 gmpinc="-I$with_mpfr_dir"
11b04d1f
DD
2221 gmplibs="$with_mpfr_dir/libmpfr.a"
2222else
2223 gmplibs="-lmpfr"
2224fi
2225
2226# Check whether --with-mpfr or --without-mpfr was given.
2227if test "${with_mpfr+set}" = set; then
2228 withval="$with_mpfr"
cac3d6c4
CM
2229 :
2230fi
11b04d1f
DD
2231
2232
2233if test "x$with_mpfr" != x; then
2234 gmplibs="-L$with_mpfr/lib $gmplibs"
2235 gmpinc="-I$with_mpfr/include"
2236fi
2237
4b1cb4fe
DD
2238# Specify a location for gmp
2239# Check whether --with-gmp-dir or --without-gmp-dir was given.
2240if test "${with_gmp_dir+set}" = set; then
2241 withval="$with_gmp_dir"
cac3d6c4
CM
2242 :
2243fi
4b1cb4fe
DD
2244
2245
11b04d1f
DD
2246if test "x$with_gmp_dir" != x; then
2247 gmpinc="$gmpinc -I$with_gmp_dir"
4b1cb4fe 2248 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
11b04d1f 2249 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
4b1cb4fe 2250 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
11b04d1f 2251 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
4b1cb4fe
DD
2252 fi
2253 # One of the later tests will catch the error if neither library is present.
11b04d1f
DD
2254else
2255 gmplibs="$gmplibs -lgmp"
4b1cb4fe
DD
2256fi
2257
2258# Check whether --with-gmp or --without-gmp was given.
2259if test "${with_gmp+set}" = set; then
2260 withval="$with_gmp"
cac3d6c4
CM
2261 :
2262fi
4b1cb4fe
DD
2263
2264
11b04d1f
DD
2265if test "x$with_gmp" != x; then
2266 gmplibs="-L$with_gmp/lib $gmplibs"
2267 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe
DD
2268fi
2269
2270saved_CFLAGS="$CFLAGS"
2271CFLAGS="$CFLAGS $gmpinc"
2272# Check GMP actually works
cac3d6c4 2273echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
bd70a46f 2274echo "configure:2275: checking for correct version of gmp.h" >&5
cac3d6c4 2275cat > conftest.$ac_ext <<EOF
bd70a46f 2276#line 2277 "configure"
cac3d6c4 2277#include "confdefs.h"
4b1cb4fe 2278#include "gmp.h"
cac3d6c4 2279int main() {
4b1cb4fe
DD
2280
2281#if __GNU_MP_VERSION < 3
2282choke me
2283#endif
2284
cac3d6c4
CM
2285; return 0; }
2286EOF
bd70a46f 2287if { (eval echo configure:2288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cac3d6c4
CM
2288 rm -rf conftest*
2289 echo "$ac_t""yes" 1>&6
2290else
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2293 rm -rf conftest*
2294 echo "$ac_t""no" 1>&6; have_gmp=no
2295fi
2296rm -f conftest*
4b1cb4fe
DD
2297
2298if test x"$have_gmp" = xyes; then
cac3d6c4 2299 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
bd70a46f 2300echo "configure:2301: checking for MPFR" >&5
4b1cb4fe
DD
2301
2302 saved_LIBS="$LIBS"
2303 LIBS="$LIBS $gmplibs"
cac3d6c4 2304 cat > conftest.$ac_ext <<EOF
bd70a46f 2305#line 2306 "configure"
cac3d6c4 2306#include "confdefs.h"
4b1cb4fe 2307#include <gmp.h>
11b04d1f 2308#include <mpfr.h>
cac3d6c4 2309int main() {
11b04d1f 2310mpfr_t n; mpfr_init(n);
cac3d6c4
CM
2311; return 0; }
2312EOF
bd70a46f 2313if { (eval echo configure:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
cac3d6c4
CM
2314 rm -rf conftest*
2315 echo "$ac_t""yes" 1>&6
2316else
2317 echo "configure: failed program was:" >&5
2318 cat conftest.$ac_ext >&5
2319 rm -rf conftest*
2320 echo "$ac_t""no" 1>&6; have_gmp=no
2321fi
2322rm -f conftest*
4b1cb4fe
DD
2323 LIBS="$saved_LIBS"
2324 CFLAGS="$saved_CFLAGS"
2325fi
2326
11b04d1f 2327# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
2328
2329
2330
947f426e 2331# By default, C is the only stage 1 language.
1d39f329
NN
2332stage1_languages=c
2333
2334
9e07f89d
NN
2335# Figure out what language subdirectories are present.
2336# Look if the user specified --enable-languages="..."; if not, use
2337# the environment variable $LANGUAGES if defined. $LANGUAGES might
2338# go away some day.
2339# NB: embedded tabs in this IF block -- do not untabify
2340if test -d ${srcdir}/gcc; then
2341 if test x"${enable_languages+set}" != xset; then
2342 if test x"${LANGUAGES+set}" = xset; then
2343 enable_languages="${LANGUAGES}"
2344 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2345 else
2346 enable_languages=all
2347 fi
2348 else
2349 if test x"${enable_languages}" = x ||
2350 test x"${enable_languages}" = xyes;
2351 then
2352 echo configure.in: --enable-languages needs at least one language argument 1>&2
2353 exit 1
2354 fi
2355 fi
2356 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2357
096f7d00
DE
2358 # 'f95' is the old name for the 'fortran' language. We issue a warning
2359 # and make the substitution.
2360 case ,${enable_languages}, in
2361 *,f95,*)
2362 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2363 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2364 ;;
2365 esac
2366
9e07f89d
NN
2367 # First scan to see if an enabled language requires some other language.
2368 # We assume that a given config-lang.in will list all the language
2369 # front ends it requires, even if some are required indirectly.
2370 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2371 case ${lang_frag} in
2372 ..) ;;
2373 # The odd quoting in the next line works around
2374 # an apparent bug in bash 1.12 on linux.
2375 ${srcdir}/gcc/[*]/config-lang.in) ;;
2376 *)
2377 # From the config-lang.in, get $language, $lang_requires
2378 language=
2379 lang_requires=
2380 . ${lang_frag}
2381 for other in ${lang_requires} ; do
2382 case ,${enable_languages}, in
2383 *,$other,*) ;;
2384 *,all,*) ;;
2385 *,$language,*)
2386 echo " \`$other' language required by \`$language'; enabling" 1>&2
2387 enable_languages="${enable_languages},${other}"
2388 ;;
2389 esac
2390 done
2391 ;;
2392 esac
2393 done
2394
2395 new_enable_languages=c
2396 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9cb3fa6f 2397 potential_languages=c
9e07f89d
NN
2398
2399 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2400 case ${lang_frag} in
2401 ..) ;;
2402 # The odd quoting in the next line works around
2403 # an apparent bug in bash 1.12 on linux.
2404 ${srcdir}/gcc/[*]/config-lang.in) ;;
2405 *)
cac3d6c4 2406 # From the config-lang.in, get $language, $target_libs,
1d39f329 2407 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
2408 language=
2409 target_libs=
2410 lang_dirs=
1d39f329 2411 boot_language=
9e07f89d 2412 build_by_default=
9cb3fa6f 2413 need_gmp=
9e07f89d 2414 . ${lang_frag}
9cb3fa6f 2415 potential_languages="${potential_languages},${language}"
9e07f89d
NN
2416 # This is quite sensitive to the ordering of the case statement arms.
2417 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2418 *::*:*)
2419 echo "${lang_frag} doesn't set \$language." 1>&2
2420 exit 1
9cb3fa6f 2421 ;;
9e07f89d
NN
2422 *:ada:no:*)
2423 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2424 add_this_lang=no
2425 ;;
2426 *,${language},*:*:*:*)
2427 # Language was explicitly selected; include it.
2428 add_this_lang=yes
2429 ;;
2430 *,all,*:*:*:no)
2431 # 'all' was selected, but this is not a default language
9cb3fa6f 2432 # so do not include it.
9e07f89d 2433 add_this_lang=no
9cb3fa6f 2434 ;;
9e07f89d
NN
2435 *,all,*:*:*:*)
2436 # 'all' was selected and this is a default language; include it.
2437 add_this_lang=yes
2438 ;;
2439 *)
2440 add_this_lang=no
2441 ;;
2442 esac
4b1cb4fe 2443
9cb3fa6f
PB
2444 # Disable languages that need GMP if it isn't available.
2445 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2446 *,${language},*:no:yes)
2447 # Specifically requested language; tell them.
cac3d6c4 2448 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
9cb3fa6f
PB
2449 ;;
2450 *:no:yes)
2451 # Silently disable.
2452 add_this_lang=no
2453 ;;
2454 esac
59f7ec45
HPN
2455
2456 # Disable a language that is unsupported by the target.
2457 case " $unsupported_languages " in
2458 *" $language "*)
2459 add_this_lang=no
2460 ;;
2461 esac
2462
4b1cb4fe 2463 case $add_this_lang in
9e07f89d
NN
2464 no)
2465 # Remove language-dependent dirs.
1d39f329
NN
2466 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2467 ;;
9e07f89d
NN
2468 *)
2469 new_enable_languages="$new_enable_languages,$language"
1d39f329
NN
2470 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2471 case ${boot_language} in
2472 yes)
4fa63067
NN
2473 # Add to (comma-separated) list of stage 1 languages.
2474 stage1_languages="${stage1_languages},${language}"
1d39f329
NN
2475 ;;
2476 esac
2477 ;;
9e07f89d
NN
2478 esac
2479 ;;
2480 esac
2481 done
2482
4b0ac75d 2483 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9e07f89d 2484 if test "x$missing_languages" != x; then
cac3d6c4 2485 { echo "configure: error:
27258dd4 2486The following requested languages could not be built: ${missing_languages}
cac3d6c4 2487Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
9e07f89d
NN
2488 fi
2489
2490 if test "x$new_enable_languages" != "x$enable_languages"; then
2491 echo The following languages will be built: ${new_enable_languages}
2492 fi
2493 enable_languages="$new_enable_languages"
2e70b094 2494 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
9e07f89d
NN
2495fi
2496
caeba88f
AL
2497# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2498# $build_configdirs and $target_configdirs.
9e07f89d
NN
2499# If we have the source for $noconfigdirs entries, add them to $notsupp.
2500
2501notsupp=""
2502for dir in . $skipdirs $noconfigdirs ; do
caeba88f 2503 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
2504 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2505 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2506 if test -r $srcdir/$dirname/configure ; then
2507 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2508 true
2509 else
2510 notsupp="$notsupp $dir"
2511 fi
2512 fi
2513 fi
caeba88f
AL
2514 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2515 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2516 if test -r $srcdir/$dirname/configure ; then
2517 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2518 true
2519 else
2520 notsupp="$notsupp $dir"
2521 fi
2522 fi
2523 fi
9e07f89d
NN
2524 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2525 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2526 if test -r $srcdir/$dirname/configure ; then
2527 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2528 true
2529 else
2530 notsupp="$notsupp $dir"
2531 fi
2532 fi
2533 fi
2534done
2535
2536# Sometimes the tools are distributed with libiberty but with no other
2537# libraries. In that case, we don't want to build target-libiberty.
2538if test -n "${target_configdirs}" ; then
2539 others=
2540 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2541 if test "$i" != "libiberty" ; then
2542 if test -r $srcdir/$i/configure ; then
2543 others=yes;
2544 break;
2545 fi
2546 fi
2547 done
2548 if test -z "${others}" ; then
2549 target_configdirs=
2550 fi
2551fi
2552
2553# Quietly strip out all directories which aren't configurable in this tree.
2554# This relies on all configurable subdirectories being autoconfiscated, which
2555# is now the case.
6a9cf61e
PB
2556build_configdirs_all="$build_configdirs"
2557build_configdirs=
2558for i in ${build_configdirs_all} ; do
cac3d6c4 2559 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
2560 if test -f ${srcdir}/$j/configure ; then
2561 build_configdirs="${build_configdirs} $i"
2562 fi
2563done
2564
9e07f89d
NN
2565configdirs_all="$configdirs"
2566configdirs=
2567for i in ${configdirs_all} ; do
2568 if test -f ${srcdir}/$i/configure ; then
2569 configdirs="${configdirs} $i"
2570 fi
2571done
6a9cf61e 2572
9e07f89d
NN
2573target_configdirs_all="$target_configdirs"
2574target_configdirs=
2575for i in ${target_configdirs_all} ; do
cac3d6c4 2576 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
2577 if test -f ${srcdir}/$j/configure ; then
2578 target_configdirs="${target_configdirs} $i"
2579 fi
2580done
2581
2582# Produce a warning message for the subdirs we can't configure.
2583# This isn't especially interesting in the Cygnus tree, but in the individual
2584# FSF releases, it's important to let people know when their machine isn't
2585# supported by the one or two programs in a package.
2586
2587if test -n "${notsupp}" && test -z "${norecursion}" ; then
2588 # If $appdirs is non-empty, at least one of those directories must still
2589 # be configured, or we error out. (E.g., if the gas release supports a
2590 # specified target in some subdirs but not the gas subdir, we shouldn't
2591 # pretend that all is well.)
2592 if test -n "$appdirs" ; then
2593 for dir in $appdirs ; do
2594 if test -r $dir/Makefile.in ; then
2595 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2596 appdirs=""
2597 break
2598 fi
6a9cf61e 2599 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
2600 appdirs=""
2601 break
2602 fi
2603 fi
2604 done
2605 if test -n "$appdirs" ; then
2606 echo "*** This configuration is not supported by this package." 1>&2
2607 exit 1
2608 fi
2609 fi
2610 # Okay, some application will build, or we don't care to check. Still
2611 # notify of subdirs not getting built.
2612 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2613 echo " ${notsupp}" 1>&2
2614 echo " (Any other directories should still work fine.)" 1>&2
2615fi
2616
2617case "$host" in
2618 *msdosdjgpp*)
2619 enable_gdbtk=no ;;
2620esac
2621
2622copy_dirs=
2623
a19b6204
MM
2624# Check whether --with-build-sysroot or --without-build-sysroot was given.
2625if test "${with_build_sysroot+set}" = set; then
2626 withval="$with_build_sysroot"
2627 if test x"$withval" != x ; then
2628 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2629 fi
2630else
2631 SYSROOT_CFLAGS_FOR_TARGET=
cac3d6c4
CM
2632fi
2633
a19b6204
MM
2634
2635
9e07f89d
NN
2636# Handle --with-headers=XXX. If the value is not "yes", the contents of
2637# the named directory are copied to $(tooldir)/sys-include.
2638if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2639 if test x${is_cross_compiler} = xno ; then
2640 echo 1>&2 '***' --with-headers is only supported when cross compiling
2641 exit 1
2642 fi
2643 if test x"${with_headers}" != xyes ; then
2644 case "${exec_prefixoption}" in
2645 "") x=${prefix} ;;
2646 *) x=${exec_prefix} ;;
2647 esac
2648 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2649 fi
2650fi
2651
2652# Handle --with-libs=XXX. If the value is not "yes", the contents of
2653# the name directories are copied to $(tooldir)/lib. Multiple directories
2654# are permitted.
2655if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2656 if test x${is_cross_compiler} = xno ; then
2657 echo 1>&2 '***' --with-libs is only supported when cross compiling
2658 exit 1
2659 fi
2660 if test x"${with_libs}" != xyes ; then
2661 # Copy the libraries in reverse order, so that files in the first named
2662 # library override files in subsequent libraries.
2663 case "${exec_prefixoption}" in
2664 "") x=${prefix} ;;
2665 *) x=${exec_prefix} ;;
2666 esac
2667 for l in ${with_libs}; do
2668 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2669 done
2670 fi
2671fi
2672
2673# Handle ${copy_dirs}
2674set fnord ${copy_dirs}
2675shift
2676while test $# != 0 ; do
2677 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2678 :
2679 else
2680 echo Copying $1 to $2
2681
2682 # Use the install script to create the directory and all required
2683 # parent directories.
2684 if test -d $2 ; then
2685 :
2686 else
2687 echo >config.temp
2688 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2689 fi
2690
2691 # Copy the directory, assuming we have tar.
2692 # FIXME: Should we use B in the second tar? Not all systems support it.
2693 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2694
2695 # It is the responsibility of the user to correctly adjust all
2696 # symlinks. If somebody can figure out how to handle them correctly
2697 # here, feel free to add the code.
2698
2699 echo $1 > $2/COPIED
2700 fi
2701 shift; shift
2702done
2703
a0da8069
NN
2704extra_arflags_for_target=
2705extra_nmflags_for_target=
2706extra_ranlibflags_for_target=
2707target_makefile_frag=/dev/null
2708case "${target}" in
2a3124ca 2709 *-*-netware*)
a0da8069
NN
2710 target_makefile_frag="config/mt-netware"
2711 ;;
3d6dfe0f
NN
2712 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2713 target_makefile_frag="config/mt-gnu"
a0da8069
NN
2714 ;;
2715 *-*-aix4.[3456789]* | *-*-aix[56789].*)
cac3d6c4 2716 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
2717 # commands to handle both 32-bit and 64-bit objects. These flags are
2718 # harmless if we're using GNU nm or ar.
2719 extra_arflags_for_target=" -X32_64"
2720 extra_nmflags_for_target=" -B -X32_64"
2721 ;;
2722 *-*-darwin*)
2723 # ranlib from Darwin requires the -c flag to look at common symbols.
2724 extra_ranlibflags_for_target=" -c"
2725 ;;
2726 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2727 target_makefile_frag="config/mt-wince"
2728 ;;
2729esac
2730
2731alphaieee_frag=/dev/null
2732case $target in
2733 alpha*-*-*)
2734 # This just makes sure to use the -mieee option to build target libs.
2735 # This should probably be set individually by each library.
2736 alphaieee_frag="config/mt-alphaieee"
2737 ;;
2738esac
2739
2740# If --enable-target-optspace always use -Os instead of -O2 to build
2741# the target libraries, similarly if it is not specified, use -Os
2742# on selected platforms.
2743ospace_frag=/dev/null
2744case "${enable_target_optspace}:${target}" in
2745 yes:*)
2746 ospace_frag="config/mt-ospace"
2747 ;;
2748 :d30v-*)
2749 ospace_frag="config/mt-d30v"
2750 ;;
2751 :m32r-* | :d10v-* | :fr30-*)
2752 ospace_frag="config/mt-ospace"
2753 ;;
2754 no:* | :*)
2755 ;;
2756 *)
2757 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2758 ;;
2759esac
2760
2761# Set with_gnu_as and with_gnu_ld as appropriate.
2762#
2763# This is done by determining whether or not the appropriate directory
2764# is available, and by checking whether or not specific configurations
2765# have requested that this magic not happen.
cac3d6c4
CM
2766#
2767# The command line options always override the explicit settings in
a0da8069
NN
2768# configure.in, and the settings in configure.in override this magic.
2769#
cac3d6c4 2770# If the default for a toolchain is to use GNU as and ld, and you don't
a0da8069
NN
2771# want to do that, then you should use the --without-gnu-as and
2772# --without-gnu-ld options for the configure script.
2773
2774if test x${use_gnu_as} = x &&
2775 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2776 with_gnu_as=yes
2777 extra_host_args="$extra_host_args --with-gnu-as"
2778fi
2779
2780if test x${use_gnu_ld} = x &&
2781 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2782 with_gnu_ld=yes
2783 extra_host_args="$extra_host_args --with-gnu-ld"
2784fi
2785
2786# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2787# can detect this case.
2788
2789if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2790 with_newlib=yes
2791 extra_host_args="$extra_host_args --with-newlib"
2792fi
2793
a0da8069
NN
2794# Default to using --with-stabs for certain targets.
2795if test x${with_stabs} = x ; then
2796 case "${target}" in
e31d1ea3 2797 mips*-*-irix[56]*)
a0da8069
NN
2798 ;;
2799 mips*-*-* | alpha*-*-osf*)
2800 with_stabs=yes;
2801 extra_host_args="${extra_host_args} --with-stabs"
2802 ;;
2803 esac
2804fi
2805
2806# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2807# them automatically.
2808case "${host}" in
cac3d6c4 2809 hppa*64*-*-hpux11*)
a0da8069
NN
2810 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2811 ;;
2812esac
2813
a0da8069
NN
2814# Some systems (e.g., one of the i386-aix systems the gas testers are
2815# using) don't handle "\$" correctly, so don't use it here.
61fa5f72 2816tooldir='${exec_prefix}'/${target_alias}
a0da8069
NN
2817build_tooldir=${tooldir}
2818
a0da8069
NN
2819# Create a .gdbinit file which runs the one in srcdir
2820# and tells GDB to look there for source files.
2821
2822if test -r ${srcdir}/.gdbinit ; then
2823 case ${srcdir} in
2824 .) ;;
2825 *) cat > ./.gdbinit <<EOF
2826# ${NO_EDIT}
2827dir ${srcdir}
2828dir .
2829source ${srcdir}/.gdbinit
2830EOF
2831 ;;
2832 esac
2833fi
2834
a0da8069
NN
2835# Make sure that the compiler is able to generate an executable. If it
2836# can't, we are probably in trouble. We don't care whether we can run the
2837# executable--we might be using a cross compiler--we only care whether it
2838# can be created. At this point the main configure script has set CC.
2839we_are_ok=no
2840echo "int main () { return 0; }" > conftest.c
2841${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2842if test $? = 0 ; then
2843 if test -s conftest || test -s conftest.exe ; then
2844 we_are_ok=yes
2845 fi
cac3d6c4 2846fi
a0da8069
NN
2847case $we_are_ok in
2848 no)
2849 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2850 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2851 rm -f conftest*
2852 exit 1
2853 ;;
2854esac
2855rm -f conftest*
2856
2857# The Solaris /usr/ucb/cc compiler does not appear to work.
2858case "${host}" in
2859 sparc-sun-solaris2*)
2860 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2861 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2862 could_use=
2863 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2864 if test -d /opt/cygnus/bin ; then
2865 if test "$could_use" = "" ; then
2866 could_use="/opt/cygnus/bin"
2867 else
2868 could_use="$could_use or /opt/cygnus/bin"
2869 fi
2870 fi
2871 if test "$could_use" = "" ; then
2872 echo "Warning: compilation may fail because you're using"
2873 echo "/usr/ucb/cc. You should change your PATH or CC "
2874 echo "variable and rerun configure."
2875 else
2876 echo "Warning: compilation may fail because you're using"
2877 echo "/usr/ucb/cc, when you should use the C compiler from"
2878 echo "$could_use. You should change your"
2879 echo "PATH or CC variable and rerun configure."
2880 fi
2881 fi
2882 ;;
2883esac
2884
a0da8069
NN
2885case "${host}" in
2886 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 2887 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
2888 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2889esac
2890
2891# Record target_configdirs and the configure arguments for target and
2892# build configuration in Makefile.
2893target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 2894build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 2895
a0da8069
NN
2896# Determine whether gdb needs tk/tcl or not.
2897# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2898# and in that case we want gdb to be built without tk. Ugh!
2899# In fact I believe gdb is the *only* package directly dependent on tk,
2900# so we should be able to put the 'maybe's in unconditionally and
2901# leave out the maybe dependencies when enable_gdbtk is false. I'm not
2902# 100% sure that that's safe though.
c180f501 2903
675c6968 2904gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
2905case "$enable_gdbtk" in
2906 no)
2907 GDB_TK="" ;;
c180f501
AC
2908 yes)
2909 GDB_TK="${gdb_tk}" ;;
a0da8069 2910 *)
c180f501
AC
2911 # Only add the dependency on gdbtk when GDBtk is part of the gdb
2912 # distro. Eventually someone will fix this and move Insight, nee
2913 # gdbtk to a separate directory.
2914 if test -d ${srcdir}/gdb/gdbtk ; then
2915 GDB_TK="${gdb_tk}"
2916 else
2917 GDB_TK=""
2918 fi
2919 ;;
a0da8069 2920esac
907be67c
DJ
2921CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
2922INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 2923
6bd3dfaa 2924# Strip out unwanted targets.
dd12c3a8
NN
2925
2926# While at that, we remove Makefiles if we were started for recursive
2927# configuration, so that the top-level Makefile reconfigures them,
2928# like we used to do when configure itself was recursive.
dd12c3a8 2929
6bd3dfaa
PB
2930# Loop over modules. $extrasub must be used with care, limiting as
2931# much as possible the usage of range addresses. That's because autoconf
2932# splits the sed script to overcome limits in the number of commands,
2933# and relying on carefully-timed sed passes may turn out to be very hard
2934# to maintain later. In this particular case, you just have to be careful
2935# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 2936
319cab08
PB
2937# Check whether --enable-bootstrap or --disable-bootstrap was given.
2938if test "${enable_bootstrap+set}" = set; then
2939 enableval="$enable_bootstrap"
cac3d6c4 2940 :
319cab08 2941else
9cb3fa6f 2942 enable_bootstrap=default
cac3d6c4
CM
2943fi
2944
319cab08 2945
9cb3fa6f
PB
2946# Issue errors and warnings for invalid/strange bootstrap combinations.
2947case "$configdirs" in
2948 *gcc*) have_compiler=yes ;;
2949 *) have_compiler=no ;;
2950esac
2951
2952case "$have_compiler:$host:$target:$enable_bootstrap" in
2953 *:*:*:no) ;;
2954
2955 # Default behavior. (We'll) enable bootstrap if we have a compiler
2956 # and we are in a native configuration.
2957 yes:$build:$build:default)
2958 # This will become 'yes'
2959 enable_bootstrap=no ;;
2960
2961 *:*:*:default)
2962 enable_bootstrap=no ;;
2963
2964 # We have a compiler and we are in a native configuration, bootstrap is ok
2965 yes:$build:$build:yes | yes:$build:$build:lean)
2966 ;;
2967
2968 # Other configurations, but we have a compiler. Assume the user knows
2969 # what he's doing.
2970 yes:*:*:yes | yes:*:*:lean)
cac3d6c4 2971 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
9cb3fa6f
PB
2972 ;;
2973
2974 # No compiler: if they passed --enable-bootstrap explicitly, fail
2975 no:*:*:yes | no:*:*:lean)
cac3d6c4 2976 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
9cb3fa6f
PB
2977
2978 # Fail if wrong command line
2979 *)
cac3d6c4 2980 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
9cb3fa6f
PB
2981 ;;
2982esac
2983
2984# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
2985case "$enable_bootstrap" in
2986 yes)
9cb3fa6f 2987 bootstrap_lean='#'
9cb3fa6f
PB
2988 bootstrap_suffix=bootstrap ;;
2989 lean)
2990 bootstrap_lean=''
498d4a71 2991 bootstrap_suffix=bootstrap ;;
319cab08 2992 no)
498d4a71 2993 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
2994esac
2995
2996
6a9cf61e 2997for module in ${build_configdirs} ; do
498d4a71
CF
2998 if test -z "${no_recursion}" \
2999 && test -f ${build_subdir}/${module}/Makefile; then
3000 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3001 rm -f ${build_subdir}/${module}/Makefile
3002 fi
3003 extrasub="$extrasub
3004/^@if build-$module\$/d
3005/^@endif build-$module\$/d
3006/^@if build-$module-$bootstrap_suffix\$/d
3007/^@endif build-$module-$bootstrap_suffix\$/d"
3008done
3009for module in ${configdirs} ; do
3010 if test -z "${no_recursion}" \
3011 && test -f ${module}/Makefile; then
3012 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3013 rm -f ${module}/Makefile
3014 fi
3015 extrasub="$extrasub
3016/^@if $module\$/d
3017/^@endif $module\$/d
3018/^@if $module-$bootstrap_suffix\$/d
3019/^@endif $module-$bootstrap_suffix\$/d"
3020done
3021for module in ${target_configdirs} ; do
3022 if test -z "${no_recursion}" \
3023 && test -f ${target_subdir}/${module}/Makefile; then
3024 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3025 rm -f ${target_subdir}/${module}/Makefile
3026 fi
3027 extrasub="$extrasub
3028/^@if target-$module\$/d
3029/^@endif target-$module\$/d
3030/^@if target-$module-$bootstrap_suffix\$/d
3031/^@endif target-$module-$bootstrap_suffix\$/d"
3032done
3033
6bd3dfaa
PB
3034extrasub="$extrasub
3035/^@if /,/^@endif /d"
a0da8069
NN
3036
3037# Create the serialization dependencies. This uses a temporary file.
3038
e6bfb94a
AO
3039# Check whether --enable-serial-configure or --disable-serial-configure was given.
3040if test "${enable_serial_configure+set}" = set; then
3041 enableval="$enable_serial_configure"
cac3d6c4
CM
3042 :
3043fi
e6bfb94a
AO
3044
3045
1047cb91
DD
3046case ${enable_serial_configure} in
3047 yes)
3048 enable_serial_build_configure=yes
3049 enable_serial_host_configure=yes
3050 enable_serial_target_configure=yes
3051 ;;
3052esac
3053
a0da8069
NN
3054# These force 'configure's to be done one at a time, to avoid problems
3055# with contention over a shared config.cache.
3056rm -f serdep.tmp
e6bfb94a 3057echo '# serdep.tmp' > serdep.tmp
a0da8069 3058olditem=
1047cb91 3059test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
3060for item in ${build_configdirs} ; do
3061 case ${olditem} in
3062 "") ;;
e6bfb94a 3063 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
3064 esac
3065 olditem=${item}
3066done
3067olditem=
1047cb91 3068test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
3069for item in ${configdirs} ; do
3070 case ${olditem} in
3071 "") ;;
e6bfb94a 3072 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
3073 esac
3074 olditem=${item}
3075done
3076olditem=
1047cb91 3077test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
3078for item in ${target_configdirs} ; do
3079 case ${olditem} in
3080 "") ;;
e6bfb94a 3081 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
3082 esac
3083 olditem=${item}
3084done
3085serialization_dependencies=serdep.tmp
3086
3087
e6bfb94a
AO
3088# Base args. Strip norecursion, cache-file, srcdir, host, build,
3089# target and nonopt. These are the ones we might not want to pass
f27d4f92
DJ
3090# down to subconfigures. Also strip program-prefix, program-suffix,
3091# and program-transform-name, so that we can pass down a consistent
3092# program-transform-name. If autoconf has put single quotes around
3093# any of these arguments (because they contain shell metacharacters)
3094# then this will fail; in practice this only happens for
3095# --program-transform-name, so be sure to override --program-transform-name
3096# at the end of the argument list.
3097# These will be expanded by make, so quote '$'.
d2cc0e0d 3098cat <<\EOF_SED > conftestsed
54752a6b
NN
3099s/ --no[^ ]*/ /g
3100s/ --c[a-z-]*[= ][^ ]*//g
3101s/ --sr[a-z-]*[= ][^ ]*//g
3102s/ --ho[a-z-]*[= ][^ ]*//g
3103s/ --bu[a-z-]*[= ][^ ]*//g
3104s/ --t[a-z-]*[= ][^ ]*//g
3105s/ --program-[pst][a-z-]*[= ][^ ]*//g
3106s/ -cache-file[= ][^ ]*//g
3107s/ -srcdir[= ][^ ]*//g
3108s/ -host[= ][^ ]*//g
3109s/ -build[= ][^ ]*//g
3110s/ -target[= ][^ ]*//g
3111s/ -program-prefix[= ][^ ]*//g
3112s/ -program-suffix[= ][^ ]*//g
3113s/ -program-transform-name[= ][^ ]*//g
d2cc0e0d
GK
3114s/ [^' -][^ ]* / /
3115s/^ *//;s/ *$//
8ff944f6
DJ
3116s,\$,$$,g
3117EOF_SED
3118sed -f conftestsed <<EOF_SED > conftestsed.out
cac3d6c4 3119 ${ac_configure_args}
d2cc0e0d 3120EOF_SED
8ff944f6
DJ
3121baseargs=`cat conftestsed.out`
3122rm -f conftestsed conftestsed.out
a0da8069 3123
f27d4f92
DJ
3124# Add in --program-transform-name, after --program-prefix and
3125# --program-suffix have been applied to it. Autoconf has already
3126# doubled dollar signs and backslashes in program_transform_name; we want
3127# the backslashes un-doubled, and then the entire thing wrapped in single
cac3d6c4 3128# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
3129# Also, because we want to override the logic in subdir configure scripts to
3130# choose program_transform_name, replace any s,x,x, with s,y,y,.
3131sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3132${program_transform_name}
3133EOF_SED
3134gcc_transform_name=`cat conftestsed.out`
3135rm -f conftestsed.out
3136baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3137
a0da8069
NN
3138# For the build-side libraries, we just need to pretend we're native,
3139# and not use the same cache file. Multilibs are neither needed nor
3140# desired.
69e57115 3141build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
a0da8069
NN
3142
3143# For host modules, accept cache file option, or specification as blank.
3144case "${cache_file}" in
3145"") # empty
3146 cache_file_option="" ;;
3147/* | [A-Za-z]:[\\/]* ) # absolute path
3148 cache_file_option="--cache-file=${cache_file}" ;;
3149*) # relative path
3150 cache_file_option="--cache-file=../${cache_file}" ;;
3151esac
3152
82252c06
NN
3153# Host dirs don't like to share a cache file either, horribly enough.
3154# This seems to be due to autoconf 2.5x stupidity.
bb5dca17 3155host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
a0da8069
NN
3156
3157target_configargs=${baseargs}
3158
3159# Passing a --with-cross-host argument lets the target libraries know
3160# whether they are being built with a cross-compiler or being built
3161# native. However, it would be better to use other mechanisms to make the
3162# sorts of decisions they want to make on this basis. Please consider
3163# this option to be deprecated. FIXME.
3164if test x${is_cross_compiler} = xyes ; then
3165 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3166fi
3167
3168# Default to --enable-multilib.
3169if test x${enable_multilib} = x ; then
3170 target_configargs="--enable-multilib ${target_configargs}"
3171fi
3172
3173# Pass --with-newlib if appropriate. Note that target_configdirs has
3174# changed from the earlier setting of with_newlib.
3175if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3176 target_configargs="--with-newlib ${target_configargs}"
3177fi
3178
95036d20
NN
3179# Different target subdirs use different values of certain variables
3180# (notably CXX). Worse, multilibs use *lots* of different values.
3181# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3182# it doesn't automatically accept command-line overrides of them.
3183# This means it's not safe for target subdirs to share a cache file,
3184# which is disgusting, but there you have it. Hopefully this can be
3185# fixed in future. It's still worthwhile to use a cache file for each
3186# directory. I think.
3187
ae380b45
MS
3188# Pass the appropriate --build, --host, --target and --cache-file arguments.
3189# We need to pass --target, as newer autoconf's requires consistency
3190# for target_alias and gcc doesn't manage it consistently.
3191target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
a0da8069 3192
a0da8069
NN
3193FLAGS_FOR_TARGET=
3194case " $target_configdirs " in
3195 *" newlib "*)
3196 case " $target_configargs " in
3197 *" --with-newlib "*)
3198 case "$target" in
3199 *-cygwin*)
564b43e5 3200 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
3201 esac
3202
3203 # If we're not building GCC, don't discard standard headers.
3204 if test -d ${srcdir}/gcc; then
3205 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3206
3207 if test "${build}" != "${host}"; then
3208 # On Canadian crosses, CC_FOR_TARGET will have already been set
3209 # by `configure', so we won't have an opportunity to add -Bgcc/
3210 # to it. This is right: we don't want to search that directory
3211 # for binaries, but we want the header files in there, so add
3212 # them explicitly.
b00612cc 3213 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
3214
3215 # Someone might think of using the pre-installed headers on
3216 # Canadian crosses, in case the installed compiler is not fully
3217 # compatible with the compiler being built. In this case, it
3218 # would be better to flag an error than risking having
3219 # incompatible object files being constructed. We can't
3220 # guarantee that an error will be flagged, but let's hope the
3221 # compiler will do it, when presented with incompatible header
3222 # files.
3223 fi
3224 fi
3225
3226 case "${target}-${is_cross_compiler}" in
ec11bdc6 3227 i[3456789]86-*-linux*-no)
a0da8069
NN
3228 # Here host == target, so we don't need to build gcc,
3229 # so we don't want to discard standard headers.
3230 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3231 ;;
3232 *)
3233 # If we're building newlib, use its generic headers last, but search
3234 # for any libc-related directories first (so make it the last -B
3235 # switch).
3236 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3237 ;;
3238 esac
3239 ;;
3240 esac
3241 ;;
3242esac
3243
5fbad20a
DD
3244# Allow the user to override the flags for
3245# our build compiler if desired.
3246CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3247
a0da8069
NN
3248# On Canadian crosses, we'll be searching the right directories for
3249# the previously-installed cross compiler, so don't bother to add
3250# flags for directories within the install tree of the compiler
3251# being built; programs in there won't even run.
3252if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3253 # Search for pre-installed headers if nothing else fits.
bba45b8b 3254 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
3255fi
3256
3257if test "x${use_gnu_ld}" = x &&
3258 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3259 # Arrange for us to find uninstalled linker scripts.
b00612cc 3260 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
3261fi
3262
a0da8069 3263# Makefile fragments.
3e707e94
PB
3264for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3265do
3266 eval fragval=\$$frag
3267 if test $fragval != /dev/null; then
3268 eval $frag=${srcdir}/$fragval
3269 fi
3270done
a0da8069
NN
3271
3272
3273
3274
3275
3276# Miscellanea: directories, flags, etc.
3277
3278
3279
3280
3281
3282
3283
907be67c
DJ
3284
3285
6a9cf61e 3286# Build module lists & subconfigure args.
a0da8069
NN
3287
3288
3289
be01d343
PB
3290# Host module lists & subconfigure args.
3291
3292
3293
3294# Target module lists & subconfigure args.
3295
3296
3297
3298# Build tools.
3299
3300
3301
3302# Generate default definitions for YACC, M4, LEX and other programs that run
3303# on the build machine. These are used if the Makefile can't locate these
3304# programs in objdir.
3305MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3306
3307for ac_prog in 'bison -y' byacc yacc
3308do
3309# Extract the first word of "$ac_prog", so it can be a program name with args.
3310set dummy $ac_prog; ac_word=$2
3311echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3312echo "configure:3313: checking for $ac_word" >&5
3313if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3314 echo $ac_n "(cached) $ac_c" 1>&6
3315else
3316 if test -n "$YACC"; then
3317 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3318else
3319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3320 ac_dummy="$PATH"
3321 for ac_dir in $ac_dummy; do
3322 test -z "$ac_dir" && ac_dir=.
3323 if test -f $ac_dir/$ac_word; then
3324 ac_cv_prog_YACC="$ac_prog"
3325 break
3326 fi
3327 done
3328 IFS="$ac_save_ifs"
3329fi
3330fi
3331YACC="$ac_cv_prog_YACC"
3332if test -n "$YACC"; then
3333 echo "$ac_t""$YACC" 1>&6
3334else
3335 echo "$ac_t""no" 1>&6
3336fi
3337
3338test -n "$YACC" && break
3339done
3340test -n "$YACC" || YACC="$MISSING bison -y"
3341
3342case " $build_configdirs " in
3343 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3344 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3345esac
3346
3347for ac_prog in bison
3348do
3349# Extract the first word of "$ac_prog", so it can be a program name with args.
3350set dummy $ac_prog; ac_word=$2
3351echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3352echo "configure:3353: checking for $ac_word" >&5
3353if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3355else
3356 if test -n "$BISON"; then
3357 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3358else
3359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3360 ac_dummy="$PATH"
3361 for ac_dir in $ac_dummy; do
3362 test -z "$ac_dir" && ac_dir=.
3363 if test -f $ac_dir/$ac_word; then
3364 ac_cv_prog_BISON="$ac_prog"
3365 break
3366 fi
3367 done
3368 IFS="$ac_save_ifs"
3369fi
3370fi
3371BISON="$ac_cv_prog_BISON"
3372if test -n "$BISON"; then
3373 echo "$ac_t""$BISON" 1>&6
3374else
3375 echo "$ac_t""no" 1>&6
3376fi
3377
3378test -n "$BISON" && break
3379done
3380test -n "$BISON" || BISON="$MISSING bison"
3381
3382case " $build_configdirs " in
3383 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3384esac
3385
3386for ac_prog in gm4 gnum4 m4
3387do
3388# Extract the first word of "$ac_prog", so it can be a program name with args.
3389set dummy $ac_prog; ac_word=$2
3390echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3391echo "configure:3392: checking for $ac_word" >&5
3392if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3394else
3395 if test -n "$M4"; then
3396 ac_cv_prog_M4="$M4" # Let the user override the test.
3397else
3398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3399 ac_dummy="$PATH"
3400 for ac_dir in $ac_dummy; do
3401 test -z "$ac_dir" && ac_dir=.
3402 if test -f $ac_dir/$ac_word; then
3403 ac_cv_prog_M4="$ac_prog"
3404 break
3405 fi
3406 done
3407 IFS="$ac_save_ifs"
3408fi
3409fi
3410M4="$ac_cv_prog_M4"
3411if test -n "$M4"; then
3412 echo "$ac_t""$M4" 1>&6
3413else
3414 echo "$ac_t""no" 1>&6
3415fi
3416
3417test -n "$M4" && break
3418done
3419test -n "$M4" || M4="$MISSING m4"
3420
3421case " $build_configdirs " in
3422 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3423esac
3424
3425for ac_prog in flex lex
3426do
3427# Extract the first word of "$ac_prog", so it can be a program name with args.
3428set dummy $ac_prog; ac_word=$2
3429echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3430echo "configure:3431: checking for $ac_word" >&5
3431if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3432 echo $ac_n "(cached) $ac_c" 1>&6
3433else
3434 if test -n "$LEX"; then
3435 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3436else
3437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3438 ac_dummy="$PATH"
3439 for ac_dir in $ac_dummy; do
3440 test -z "$ac_dir" && ac_dir=.
3441 if test -f $ac_dir/$ac_word; then
3442 ac_cv_prog_LEX="$ac_prog"
3443 break
3444 fi
3445 done
3446 IFS="$ac_save_ifs"
3447fi
3448fi
3449LEX="$ac_cv_prog_LEX"
3450if test -n "$LEX"; then
3451 echo "$ac_t""$LEX" 1>&6
3452else
3453 echo "$ac_t""no" 1>&6
3454fi
3455
3456test -n "$LEX" && break
3457done
3458test -n "$LEX" || LEX="$MISSING flex"
3459
3460case " $build_configdirs " in
3461 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3462 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3463esac
3464
3465for ac_prog in flex
3466do
3467# Extract the first word of "$ac_prog", so it can be a program name with args.
3468set dummy $ac_prog; ac_word=$2
3469echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3470echo "configure:3471: checking for $ac_word" >&5
3471if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3473else
3474 if test -n "$FLEX"; then
3475 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3476else
3477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3478 ac_dummy="$PATH"
3479 for ac_dir in $ac_dummy; do
3480 test -z "$ac_dir" && ac_dir=.
3481 if test -f $ac_dir/$ac_word; then
3482 ac_cv_prog_FLEX="$ac_prog"
3483 break
3484 fi
3485 done
3486 IFS="$ac_save_ifs"
3487fi
3488fi
3489FLEX="$ac_cv_prog_FLEX"
3490if test -n "$FLEX"; then
3491 echo "$ac_t""$FLEX" 1>&6
3492else
3493 echo "$ac_t""no" 1>&6
3494fi
3495
3496test -n "$FLEX" && break
3497done
3498test -n "$FLEX" || FLEX="$MISSING flex"
3499
3500case " $build_configdirs " in
3501 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3502esac
3503
3504for ac_prog in makeinfo
3505do
3506# Extract the first word of "$ac_prog", so it can be a program name with args.
3507set dummy $ac_prog; ac_word=$2
3508echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3509echo "configure:3510: checking for $ac_word" >&5
3510if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3512else
3513 if test -n "$MAKEINFO"; then
3514 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3515else
3516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3517 ac_dummy="$PATH"
3518 for ac_dir in $ac_dummy; do
3519 test -z "$ac_dir" && ac_dir=.
3520 if test -f $ac_dir/$ac_word; then
3521 ac_cv_prog_MAKEINFO="$ac_prog"
3522 break
3523 fi
3524 done
3525 IFS="$ac_save_ifs"
3526fi
3527fi
3528MAKEINFO="$ac_cv_prog_MAKEINFO"
3529if test -n "$MAKEINFO"; then
3530 echo "$ac_t""$MAKEINFO" 1>&6
3531else
3532 echo "$ac_t""no" 1>&6
3533fi
3534
3535test -n "$MAKEINFO" && break
3536done
3537test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3538
3539case " $build_configdirs " in
3540 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3541 *)
3542
3543 # For an installed makeinfo, we require it to be from texinfo 4.2 or
3544 # higher, else we use the "missing" dummy.
3545 if ${MAKEINFO} --version \
3546 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])' >/dev/null 2>&1; then
3547 :
3548 else
3549 MAKEINFO="$MISSING makeinfo"
3550 fi
3551 ;;
3552
3553esac
a0da8069 3554
be01d343 3555# FIXME: expect and dejagnu may become build tools?
a0da8069 3556
be01d343
PB
3557for ac_prog in expect
3558do
3559# Extract the first word of "$ac_prog", so it can be a program name with args.
3560set dummy $ac_prog; ac_word=$2
3561echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3562echo "configure:3563: checking for $ac_word" >&5
3563if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3565else
3566 if test -n "$EXPECT"; then
3567 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3568else
3569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3570 ac_dummy="$PATH"
3571 for ac_dir in $ac_dummy; do
3572 test -z "$ac_dir" && ac_dir=.
3573 if test -f $ac_dir/$ac_word; then
3574 ac_cv_prog_EXPECT="$ac_prog"
3575 break
3576 fi
3577 done
3578 IFS="$ac_save_ifs"
3579fi
3580fi
3581EXPECT="$ac_cv_prog_EXPECT"
3582if test -n "$EXPECT"; then
3583 echo "$ac_t""$EXPECT" 1>&6
3584else
3585 echo "$ac_t""no" 1>&6
3586fi
a0da8069 3587
be01d343
PB
3588test -n "$EXPECT" && break
3589done
3590test -n "$EXPECT" || EXPECT="expect"
a0da8069 3591
be01d343
PB
3592case " $configdirs " in
3593 *" expect "*)
3594 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3595 ;;
3596esac
a0da8069 3597
be01d343
PB
3598for ac_prog in runtest
3599do
3600# Extract the first word of "$ac_prog", so it can be a program name with args.
3601set dummy $ac_prog; ac_word=$2
3602echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3603echo "configure:3604: checking for $ac_word" >&5
3604if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3606else
3607 if test -n "$RUNTEST"; then
3608 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3609else
3610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3611 ac_dummy="$PATH"
3612 for ac_dir in $ac_dummy; do
3613 test -z "$ac_dir" && ac_dir=.
3614 if test -f $ac_dir/$ac_word; then
3615 ac_cv_prog_RUNTEST="$ac_prog"
3616 break
3617 fi
3618 done
3619 IFS="$ac_save_ifs"
3620fi
3621fi
3622RUNTEST="$ac_cv_prog_RUNTEST"
3623if test -n "$RUNTEST"; then
3624 echo "$ac_t""$RUNTEST" 1>&6
3625else
3626 echo "$ac_t""no" 1>&6
3627fi
a0da8069 3628
be01d343
PB
3629test -n "$RUNTEST" && break
3630done
3631test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 3632
be01d343
PB
3633case " $configdirs " in
3634 *" dejagnu "*)
3635 test $host = $build && RUNTEST='$$r/$(HOST_SUBDIR)/dejagnu/runtest'
3636 ;;
3637esac
a0da8069
NN
3638
3639
a0da8069 3640# Host tools.
859789af
AC
3641ncn_tool_prefix=
3642test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3643ncn_target_tool_prefix=
3644test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3645
05cbd757
PB
3646 for ncn_progname in ar; do
3647 if test -n "$ncn_tool_prefix"; then
3648 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3649set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 3650echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 3651echo "configure:3652: checking for $ac_word" >&5
cac3d6c4
CM
3652if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
3654else
3655 if test -n "$AR"; then
3656 ac_cv_prog_AR="$AR" # Let the user override the test.
3657else
cac3d6c4
CM
3658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3659 ac_dummy="$PATH"
3660 for ac_dir in $ac_dummy; do
3661 test -z "$ac_dir" && ac_dir=.
3662 if test -f $ac_dir/$ac_word; then
3663 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3664 break
3665 fi
3666 done
3667 IFS="$ac_save_ifs"
859789af
AC
3668fi
3669fi
cac3d6c4 3670AR="$ac_cv_prog_AR"
859789af 3671if test -n "$AR"; then
cac3d6c4 3672 echo "$ac_t""$AR" 1>&6
859789af 3673else
cac3d6c4 3674 echo "$ac_t""no" 1>&6
859789af
AC
3675fi
3676
05cbd757
PB
3677 fi
3678 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3680set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 3681echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 3682echo "configure:3683: checking for $ac_word" >&5
cac3d6c4
CM
3683if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3684 echo $ac_n "(cached) $ac_c" 1>&6
859789af 3685else
05cbd757
PB
3686 if test -n "$AR"; then
3687 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 3688else
cac3d6c4
CM
3689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3690 ac_dummy="$PATH"
3691 for ac_dir in $ac_dummy; do
3692 test -z "$ac_dir" && ac_dir=.
3693 if test -f $ac_dir/$ac_word; then
3694 ac_cv_prog_AR="${ncn_progname}"
3695 break
3696 fi
3697 done
3698 IFS="$ac_save_ifs"
859789af
AC
3699fi
3700fi
cac3d6c4 3701AR="$ac_cv_prog_AR"
05cbd757 3702if test -n "$AR"; then
cac3d6c4 3703 echo "$ac_t""$AR" 1>&6
859789af 3704else
cac3d6c4 3705 echo "$ac_t""no" 1>&6
859789af 3706fi
cac3d6c4 3707
05cbd757
PB
3708 fi
3709 test -n "$ac_cv_prog_AR" && break
3710done
3711
3712if test -z "$ac_cv_prog_AR" ; then
3713 set dummy ar
3714 if test $build = $host ; then
3715 AR="$2"
859789af 3716 else
05cbd757 3717 AR="${ncn_tool_prefix}$2"
859789af 3718 fi
859789af
AC
3719fi
3720
05cbd757
PB
3721 for ncn_progname in as; do
3722 if test -n "$ncn_tool_prefix"; then
3723 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3724set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 3725echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 3726echo "configure:3727: checking for $ac_word" >&5
cac3d6c4
CM
3727if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
3729else
3730 if test -n "$AS"; then
3731 ac_cv_prog_AS="$AS" # Let the user override the test.
3732else
cac3d6c4
CM
3733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3734 ac_dummy="$PATH"
3735 for ac_dir in $ac_dummy; do
3736 test -z "$ac_dir" && ac_dir=.
3737 if test -f $ac_dir/$ac_word; then
3738 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3739 break
3740 fi
3741 done
3742 IFS="$ac_save_ifs"
859789af
AC
3743fi
3744fi
cac3d6c4 3745AS="$ac_cv_prog_AS"
859789af 3746if test -n "$AS"; then
cac3d6c4 3747 echo "$ac_t""$AS" 1>&6
859789af 3748else
cac3d6c4 3749 echo "$ac_t""no" 1>&6
859789af
AC
3750fi
3751
05cbd757
PB
3752 fi
3753 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3755set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 3756echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 3757echo "configure:3758: checking for $ac_word" >&5
cac3d6c4
CM
3758if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
859789af 3760else
05cbd757
PB
3761 if test -n "$AS"; then
3762 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 3763else
cac3d6c4
CM
3764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3765 ac_dummy="$PATH"
3766 for ac_dir in $ac_dummy; do
3767 test -z "$ac_dir" && ac_dir=.
3768 if test -f $ac_dir/$ac_word; then
3769 ac_cv_prog_AS="${ncn_progname}"
3770 break
3771 fi
3772 done
3773 IFS="$ac_save_ifs"
859789af
AC
3774fi
3775fi
cac3d6c4 3776AS="$ac_cv_prog_AS"
05cbd757 3777if test -n "$AS"; then
cac3d6c4 3778 echo "$ac_t""$AS" 1>&6
859789af 3779else
cac3d6c4 3780 echo "$ac_t""no" 1>&6
859789af 3781fi
cac3d6c4 3782
05cbd757
PB
3783 fi
3784 test -n "$ac_cv_prog_AS" && break
3785done
3786
3787if test -z "$ac_cv_prog_AS" ; then
3788 set dummy as
3789 if test $build = $host ; then
3790 AS="$2"
859789af 3791 else
05cbd757 3792 AS="${ncn_tool_prefix}$2"
859789af 3793 fi
859789af
AC
3794fi
3795
05cbd757
PB
3796 for ncn_progname in dlltool; do
3797 if test -n "$ncn_tool_prefix"; then
3798 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3799set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 3800echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 3801echo "configure:3802: checking for $ac_word" >&5
cac3d6c4
CM
3802if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
3804else
3805 if test -n "$DLLTOOL"; then
3806 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3807else
cac3d6c4
CM
3808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3809 ac_dummy="$PATH"
3810 for ac_dir in $ac_dummy; do
3811 test -z "$ac_dir" && ac_dir=.
3812 if test -f $ac_dir/$ac_word; then
3813 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3814 break
3815 fi
3816 done
3817 IFS="$ac_save_ifs"
859789af
AC
3818fi
3819fi
cac3d6c4 3820DLLTOOL="$ac_cv_prog_DLLTOOL"
859789af 3821if test -n "$DLLTOOL"; then
cac3d6c4 3822 echo "$ac_t""$DLLTOOL" 1>&6
859789af 3823else
cac3d6c4 3824 echo "$ac_t""no" 1>&6
859789af
AC
3825fi
3826
05cbd757
PB
3827 fi
3828 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3830set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 3831echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 3832echo "configure:3833: checking for $ac_word" >&5
cac3d6c4
CM
3833if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
859789af 3835else
05cbd757
PB
3836 if test -n "$DLLTOOL"; then
3837 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 3838else
cac3d6c4
CM
3839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3840 ac_dummy="$PATH"
3841 for ac_dir in $ac_dummy; do
3842 test -z "$ac_dir" && ac_dir=.
3843 if test -f $ac_dir/$ac_word; then
3844 ac_cv_prog_DLLTOOL="${ncn_progname}"
3845 break
3846 fi
3847 done
3848 IFS="$ac_save_ifs"
859789af
AC
3849fi
3850fi
cac3d6c4 3851DLLTOOL="$ac_cv_prog_DLLTOOL"
05cbd757 3852if test -n "$DLLTOOL"; then
cac3d6c4 3853 echo "$ac_t""$DLLTOOL" 1>&6
859789af 3854else
cac3d6c4 3855 echo "$ac_t""no" 1>&6
859789af 3856fi
cac3d6c4 3857
05cbd757
PB
3858 fi
3859 test -n "$ac_cv_prog_DLLTOOL" && break
3860done
3861
3862if test -z "$ac_cv_prog_DLLTOOL" ; then
3863 set dummy dlltool
3864 if test $build = $host ; then
3865 DLLTOOL="$2"
859789af 3866 else
05cbd757 3867 DLLTOOL="${ncn_tool_prefix}$2"
859789af 3868 fi
859789af
AC
3869fi
3870
05cbd757
PB
3871 for ncn_progname in ld; do
3872 if test -n "$ncn_tool_prefix"; then
3873 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3874set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 3875echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 3876echo "configure:3877: checking for $ac_word" >&5
cac3d6c4
CM
3877if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3878 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
3879else
3880 if test -n "$LD"; then
3881 ac_cv_prog_LD="$LD" # Let the user override the test.
3882else
cac3d6c4
CM
3883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3884 ac_dummy="$PATH"
3885 for ac_dir in $ac_dummy; do
3886 test -z "$ac_dir" && ac_dir=.
3887 if test -f $ac_dir/$ac_word; then
3888 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3889 break
3890 fi
3891 done
3892 IFS="$ac_save_ifs"
859789af
AC
3893fi
3894fi
cac3d6c4 3895LD="$ac_cv_prog_LD"
859789af 3896if test -n "$LD"; then
cac3d6c4 3897 echo "$ac_t""$LD" 1>&6
859789af 3898else
cac3d6c4 3899 echo "$ac_t""no" 1>&6
859789af
AC
3900fi
3901
05cbd757
PB
3902 fi
3903 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
3904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3905set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 3906echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 3907echo "configure:3908: checking for $ac_word" >&5
cac3d6c4
CM
3908if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3909 echo $ac_n "(cached) $ac_c" 1>&6
859789af 3910else
05cbd757
PB
3911 if test -n "$LD"; then
3912 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 3913else
cac3d6c4
CM
3914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3915 ac_dummy="$PATH"
3916 for ac_dir in $ac_dummy; do
3917 test -z "$ac_dir" && ac_dir=.
3918 if test -f $ac_dir/$ac_word; then
3919 ac_cv_prog_LD="${ncn_progname}"
3920 break
3921 fi
3922 done
3923 IFS="$ac_save_ifs"
859789af
AC
3924fi
3925fi
cac3d6c4 3926LD="$ac_cv_prog_LD"
05cbd757 3927if test -n "$LD"; then
cac3d6c4 3928 echo "$ac_t""$LD" 1>&6
859789af 3929else
cac3d6c4 3930 echo "$ac_t""no" 1>&6
859789af 3931fi
cac3d6c4 3932
05cbd757
PB
3933 fi
3934 test -n "$ac_cv_prog_LD" && break
3935done
3936
3937if test -z "$ac_cv_prog_LD" ; then
3938 set dummy ld
3939 if test $build = $host ; then
3940 LD="$2"
859789af 3941 else
05cbd757 3942 LD="${ncn_tool_prefix}$2"
859789af 3943 fi
859789af
AC
3944fi
3945
be01d343
PB
3946 for ncn_progname in lipo; do
3947 if test -n "$ncn_tool_prefix"; then
3948 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3949set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3950echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3951echo "configure:3952: checking for $ac_word" >&5
3952if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3954else
3955 if test -n "$LIPO"; then
3956 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
3957else
3958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3959 ac_dummy="$PATH"
3960 for ac_dir in $ac_dummy; do
3961 test -z "$ac_dir" && ac_dir=.
3962 if test -f $ac_dir/$ac_word; then
3963 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
3964 break
3965 fi
3966 done
3967 IFS="$ac_save_ifs"
3968fi
3969fi
3970LIPO="$ac_cv_prog_LIPO"
3971if test -n "$LIPO"; then
3972 echo "$ac_t""$LIPO" 1>&6
3973else
3974 echo "$ac_t""no" 1>&6
3975fi
3976
3977 fi
3978 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
3979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3980set dummy ${ncn_progname}; ac_word=$2
3981echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3982echo "configure:3983: checking for $ac_word" >&5
3983if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
3984 echo $ac_n "(cached) $ac_c" 1>&6
3985else
3986 if test -n "$LIPO"; then
3987 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
3988else
3989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3990 ac_dummy="$PATH"
3991 for ac_dir in $ac_dummy; do
3992 test -z "$ac_dir" && ac_dir=.
3993 if test -f $ac_dir/$ac_word; then
3994 ac_cv_prog_LIPO="${ncn_progname}"
3995 break
3996 fi
3997 done
3998 IFS="$ac_save_ifs"
3999fi
4000fi
4001LIPO="$ac_cv_prog_LIPO"
4002if test -n "$LIPO"; then
4003 echo "$ac_t""$LIPO" 1>&6
4004else
4005 echo "$ac_t""no" 1>&6
4006fi
4007
4008 fi
4009 test -n "$ac_cv_prog_LIPO" && break
4010done
4011
4012if test -z "$ac_cv_prog_LIPO" ; then
4013 set dummy lipo
4014 if test $build = $host ; then
4015 LIPO="$2"
4016 else
4017 LIPO="${ncn_tool_prefix}$2"
4018 fi
4019fi
4020
05cbd757
PB
4021 for ncn_progname in nm; do
4022 if test -n "$ncn_tool_prefix"; then
4023 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4024set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4025echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4026echo "configure:4027: checking for $ac_word" >&5
cac3d6c4
CM
4027if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
4029else
4030 if test -n "$NM"; then
4031 ac_cv_prog_NM="$NM" # Let the user override the test.
4032else
cac3d6c4
CM
4033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4034 ac_dummy="$PATH"
4035 for ac_dir in $ac_dummy; do
4036 test -z "$ac_dir" && ac_dir=.
4037 if test -f $ac_dir/$ac_word; then
4038 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4039 break
4040 fi
4041 done
4042 IFS="$ac_save_ifs"
859789af
AC
4043fi
4044fi
cac3d6c4 4045NM="$ac_cv_prog_NM"
859789af 4046if test -n "$NM"; then
cac3d6c4 4047 echo "$ac_t""$NM" 1>&6
859789af 4048else
cac3d6c4 4049 echo "$ac_t""no" 1>&6
859789af
AC
4050fi
4051
05cbd757
PB
4052 fi
4053 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4054 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4055set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4056echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4057echo "configure:4058: checking for $ac_word" >&5
cac3d6c4
CM
4058if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4059 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4060else
05cbd757
PB
4061 if test -n "$NM"; then
4062 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 4063else
cac3d6c4
CM
4064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4065 ac_dummy="$PATH"
4066 for ac_dir in $ac_dummy; do
4067 test -z "$ac_dir" && ac_dir=.
4068 if test -f $ac_dir/$ac_word; then
4069 ac_cv_prog_NM="${ncn_progname}"
4070 break
4071 fi
4072 done
4073 IFS="$ac_save_ifs"
859789af
AC
4074fi
4075fi
cac3d6c4 4076NM="$ac_cv_prog_NM"
05cbd757 4077if test -n "$NM"; then
cac3d6c4 4078 echo "$ac_t""$NM" 1>&6
859789af 4079else
cac3d6c4 4080 echo "$ac_t""no" 1>&6
859789af 4081fi
cac3d6c4 4082
05cbd757
PB
4083 fi
4084 test -n "$ac_cv_prog_NM" && break
4085done
4086
4087if test -z "$ac_cv_prog_NM" ; then
4088 set dummy nm
4089 if test $build = $host ; then
4090 NM="$2"
859789af 4091 else
05cbd757 4092 NM="${ncn_tool_prefix}$2"
859789af 4093 fi
859789af
AC
4094fi
4095
05cbd757
PB
4096 for ncn_progname in ranlib; do
4097 if test -n "$ncn_tool_prefix"; then
4098 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4099set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4100echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4101echo "configure:4102: checking for $ac_word" >&5
cac3d6c4
CM
4102if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4103 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
4104else
4105 if test -n "$RANLIB"; then
4106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4107else
cac3d6c4
CM
4108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4109 ac_dummy="$PATH"
4110 for ac_dir in $ac_dummy; do
4111 test -z "$ac_dir" && ac_dir=.
4112 if test -f $ac_dir/$ac_word; then
4113 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4114 break
4115 fi
4116 done
4117 IFS="$ac_save_ifs"
859789af
AC
4118fi
4119fi
cac3d6c4 4120RANLIB="$ac_cv_prog_RANLIB"
859789af 4121if test -n "$RANLIB"; then
cac3d6c4 4122 echo "$ac_t""$RANLIB" 1>&6
859789af 4123else
cac3d6c4 4124 echo "$ac_t""no" 1>&6
859789af
AC
4125fi
4126
05cbd757
PB
4127 fi
4128 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4130set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4131echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4132echo "configure:4133: checking for $ac_word" >&5
cac3d6c4
CM
4133if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4135else
05cbd757
PB
4136 if test -n "$RANLIB"; then
4137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 4138else
cac3d6c4
CM
4139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4140 ac_dummy="$PATH"
4141 for ac_dir in $ac_dummy; do
4142 test -z "$ac_dir" && ac_dir=.
4143 if test -f $ac_dir/$ac_word; then
4144 ac_cv_prog_RANLIB="${ncn_progname}"
4145 break
4146 fi
4147 done
4148 IFS="$ac_save_ifs"
859789af
AC
4149fi
4150fi
cac3d6c4 4151RANLIB="$ac_cv_prog_RANLIB"
05cbd757 4152if test -n "$RANLIB"; then
cac3d6c4 4153 echo "$ac_t""$RANLIB" 1>&6
859789af 4154else
cac3d6c4 4155 echo "$ac_t""no" 1>&6
859789af 4156fi
cac3d6c4 4157
859789af 4158 fi
05cbd757
PB
4159 test -n "$ac_cv_prog_RANLIB" && break
4160done
4161
4162if test -z "$ac_cv_prog_RANLIB" ; then
4163 RANLIB=":"
859789af
AC
4164fi
4165
be01d343
PB
4166 for ncn_progname in strip; do
4167 if test -n "$ncn_tool_prefix"; then
4168 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4169set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4170echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4171echo "configure:4172: checking for $ac_word" >&5
4172if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4173 echo $ac_n "(cached) $ac_c" 1>&6
4174else
4175 if test -n "$STRIP"; then
4176 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4177else
4178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4179 ac_dummy="$PATH"
4180 for ac_dir in $ac_dummy; do
4181 test -z "$ac_dir" && ac_dir=.
4182 if test -f $ac_dir/$ac_word; then
4183 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4184 break
4185 fi
4186 done
4187 IFS="$ac_save_ifs"
4188fi
4189fi
4190STRIP="$ac_cv_prog_STRIP"
4191if test -n "$STRIP"; then
4192 echo "$ac_t""$STRIP" 1>&6
4193else
4194 echo "$ac_t""no" 1>&6
4195fi
4196
4197 fi
4198 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4200set dummy ${ncn_progname}; ac_word=$2
4201echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4202echo "configure:4203: checking for $ac_word" >&5
4203if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4205else
4206 if test -n "$STRIP"; then
4207 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4208else
4209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4210 ac_dummy="$PATH"
4211 for ac_dir in $ac_dummy; do
4212 test -z "$ac_dir" && ac_dir=.
4213 if test -f $ac_dir/$ac_word; then
4214 ac_cv_prog_STRIP="${ncn_progname}"
4215 break
4216 fi
4217 done
4218 IFS="$ac_save_ifs"
4219fi
4220fi
4221STRIP="$ac_cv_prog_STRIP"
4222if test -n "$STRIP"; then
4223 echo "$ac_t""$STRIP" 1>&6
4224else
4225 echo "$ac_t""no" 1>&6
4226fi
4227
4228 fi
4229 test -n "$ac_cv_prog_STRIP" && break
4230done
4231
4232if test -z "$ac_cv_prog_STRIP" ; then
4233 STRIP=":"
4234fi
4235
05cbd757
PB
4236 for ncn_progname in windres; do
4237 if test -n "$ncn_tool_prefix"; then
4238 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4239set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4240echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4241echo "configure:4242: checking for $ac_word" >&5
cac3d6c4
CM
4242if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
4244else
4245 if test -n "$WINDRES"; then
4246 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4247else
cac3d6c4
CM
4248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4249 ac_dummy="$PATH"
4250 for ac_dir in $ac_dummy; do
4251 test -z "$ac_dir" && ac_dir=.
4252 if test -f $ac_dir/$ac_word; then
4253 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4254 break
4255 fi
4256 done
4257 IFS="$ac_save_ifs"
859789af
AC
4258fi
4259fi
cac3d6c4 4260WINDRES="$ac_cv_prog_WINDRES"
859789af 4261if test -n "$WINDRES"; then
cac3d6c4 4262 echo "$ac_t""$WINDRES" 1>&6
859789af 4263else
cac3d6c4 4264 echo "$ac_t""no" 1>&6
859789af
AC
4265fi
4266
05cbd757
PB
4267 fi
4268 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4270set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4271echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4272echo "configure:4273: checking for $ac_word" >&5
cac3d6c4
CM
4273if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4274 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4275else
05cbd757
PB
4276 if test -n "$WINDRES"; then
4277 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 4278else
cac3d6c4
CM
4279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4280 ac_dummy="$PATH"
4281 for ac_dir in $ac_dummy; do
4282 test -z "$ac_dir" && ac_dir=.
4283 if test -f $ac_dir/$ac_word; then
4284 ac_cv_prog_WINDRES="${ncn_progname}"
4285 break
4286 fi
4287 done
4288 IFS="$ac_save_ifs"
859789af
AC
4289fi
4290fi
cac3d6c4 4291WINDRES="$ac_cv_prog_WINDRES"
05cbd757 4292if test -n "$WINDRES"; then
cac3d6c4 4293 echo "$ac_t""$WINDRES" 1>&6
859789af 4294else
cac3d6c4 4295 echo "$ac_t""no" 1>&6
859789af 4296fi
cac3d6c4 4297
05cbd757
PB
4298 fi
4299 test -n "$ac_cv_prog_WINDRES" && break
4300done
4301
4302if test -z "$ac_cv_prog_WINDRES" ; then
4303 set dummy windres
4304 if test $build = $host ; then
4305 WINDRES="$2"
859789af 4306 else
05cbd757 4307 WINDRES="${ncn_tool_prefix}$2"
859789af 4308 fi
859789af
AC
4309fi
4310
05cbd757
PB
4311 for ncn_progname in objcopy; do
4312 if test -n "$ncn_tool_prefix"; then
4313 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4314set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4315echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4316echo "configure:4317: checking for $ac_word" >&5
cac3d6c4
CM
4317if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
4319else
4320 if test -n "$OBJCOPY"; then
4321 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4322else
cac3d6c4
CM
4323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4324 ac_dummy="$PATH"
4325 for ac_dir in $ac_dummy; do
4326 test -z "$ac_dir" && ac_dir=.
4327 if test -f $ac_dir/$ac_word; then
4328 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4329 break
4330 fi
4331 done
4332 IFS="$ac_save_ifs"
859789af
AC
4333fi
4334fi
cac3d6c4 4335OBJCOPY="$ac_cv_prog_OBJCOPY"
859789af 4336if test -n "$OBJCOPY"; then
cac3d6c4 4337 echo "$ac_t""$OBJCOPY" 1>&6
859789af 4338else
cac3d6c4 4339 echo "$ac_t""no" 1>&6
859789af
AC
4340fi
4341
05cbd757
PB
4342 fi
4343 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4345set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4346echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4347echo "configure:4348: checking for $ac_word" >&5
cac3d6c4
CM
4348if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4350else
05cbd757
PB
4351 if test -n "$OBJCOPY"; then
4352 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 4353else
cac3d6c4
CM
4354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4355 ac_dummy="$PATH"
4356 for ac_dir in $ac_dummy; do
4357 test -z "$ac_dir" && ac_dir=.
4358 if test -f $ac_dir/$ac_word; then
4359 ac_cv_prog_OBJCOPY="${ncn_progname}"
4360 break
4361 fi
4362 done
4363 IFS="$ac_save_ifs"
859789af
AC
4364fi
4365fi
cac3d6c4 4366OBJCOPY="$ac_cv_prog_OBJCOPY"
05cbd757 4367if test -n "$OBJCOPY"; then
cac3d6c4 4368 echo "$ac_t""$OBJCOPY" 1>&6
859789af 4369else
cac3d6c4 4370 echo "$ac_t""no" 1>&6
859789af 4371fi
cac3d6c4 4372
05cbd757
PB
4373 fi
4374 test -n "$ac_cv_prog_OBJCOPY" && break
4375done
4376
4377if test -z "$ac_cv_prog_OBJCOPY" ; then
4378 set dummy objcopy
4379 if test $build = $host ; then
4380 OBJCOPY="$2"
859789af 4381 else
05cbd757 4382 OBJCOPY="${ncn_tool_prefix}$2"
859789af 4383 fi
859789af
AC
4384fi
4385
05cbd757
PB
4386 for ncn_progname in objdump; do
4387 if test -n "$ncn_tool_prefix"; then
4388 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4389set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4390echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4391echo "configure:4392: checking for $ac_word" >&5
cac3d6c4
CM
4392if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4393 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
4394else
4395 if test -n "$OBJDUMP"; then
4396 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4397else
cac3d6c4
CM
4398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4399 ac_dummy="$PATH"
4400 for ac_dir in $ac_dummy; do
4401 test -z "$ac_dir" && ac_dir=.
4402 if test -f $ac_dir/$ac_word; then
4403 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4404 break
4405 fi
4406 done
4407 IFS="$ac_save_ifs"
859789af
AC
4408fi
4409fi
cac3d6c4 4410OBJDUMP="$ac_cv_prog_OBJDUMP"
859789af 4411if test -n "$OBJDUMP"; then
cac3d6c4 4412 echo "$ac_t""$OBJDUMP" 1>&6
859789af 4413else
cac3d6c4 4414 echo "$ac_t""no" 1>&6
859789af
AC
4415fi
4416
05cbd757
PB
4417 fi
4418 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4420set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4421echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4422echo "configure:4423: checking for $ac_word" >&5
cac3d6c4
CM
4423if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4425else
05cbd757
PB
4426 if test -n "$OBJDUMP"; then
4427 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 4428else
cac3d6c4
CM
4429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4430 ac_dummy="$PATH"
4431 for ac_dir in $ac_dummy; do
4432 test -z "$ac_dir" && ac_dir=.
4433 if test -f $ac_dir/$ac_word; then
4434 ac_cv_prog_OBJDUMP="${ncn_progname}"
4435 break
4436 fi
4437 done
4438 IFS="$ac_save_ifs"
859789af
AC
4439fi
4440fi
cac3d6c4 4441OBJDUMP="$ac_cv_prog_OBJDUMP"
05cbd757 4442if test -n "$OBJDUMP"; then
cac3d6c4 4443 echo "$ac_t""$OBJDUMP" 1>&6
859789af 4444else
cac3d6c4 4445 echo "$ac_t""no" 1>&6
859789af 4446fi
cac3d6c4 4447
05cbd757
PB
4448 fi
4449 test -n "$ac_cv_prog_OBJDUMP" && break
4450done
4451
4452if test -z "$ac_cv_prog_OBJDUMP" ; then
4453 set dummy objdump
4454 if test $build = $host ; then
4455 OBJDUMP="$2"
859789af 4456 else
05cbd757 4457 OBJDUMP="${ncn_tool_prefix}$2"
859789af 4458 fi
859789af
AC
4459fi
4460
a0da8069
NN
4461
4462
4463
4464
4465
4466
be01d343 4467# Target tools.
05cbd757
PB
4468 for ncn_progname in ar; do
4469 if test -n "$ncn_target_tool_prefix"; then
4470 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4471set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4472echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4473echo "configure:4474: checking for $ac_word" >&5
cac3d6c4
CM
4474if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4475 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4476else
55db4b87
PB
4477 if test -n "$AR_FOR_TARGET"; then
4478 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
859789af 4479else
cac3d6c4
CM
4480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4481 ac_dummy="$PATH"
4482 for ac_dir in $ac_dummy; do
4483 test -z "$ac_dir" && ac_dir=.
4484 if test -f $ac_dir/$ac_word; then
4485 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4486 break
4487 fi
4488 done
4489 IFS="$ac_save_ifs"
859789af
AC
4490fi
4491fi
cac3d6c4 4492AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
55db4b87 4493if test -n "$AR_FOR_TARGET"; then
cac3d6c4 4494 echo "$ac_t""$AR_FOR_TARGET" 1>&6
859789af 4495else
cac3d6c4 4496 echo "$ac_t""no" 1>&6
859789af
AC
4497fi
4498
05cbd757
PB
4499 fi
4500 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
4501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4502set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4503echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4504echo "configure:4505: checking for $ac_word" >&5
cac3d6c4
CM
4505if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4506 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4507else
05cbd757
PB
4508 if test -n "$AR_FOR_TARGET"; then
4509 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
859789af 4510else
cac3d6c4
CM
4511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4512 ac_dummy="$PATH"
4513 for ac_dir in $ac_dummy; do
4514 test -z "$ac_dir" && ac_dir=.
4515 if test -f $ac_dir/$ac_word; then
4516 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
4517 break
4518 fi
4519 done
4520 IFS="$ac_save_ifs"
859789af
AC
4521fi
4522fi
cac3d6c4 4523AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
05cbd757 4524if test -n "$AR_FOR_TARGET"; then
cac3d6c4 4525 echo "$ac_t""$AR_FOR_TARGET" 1>&6
859789af 4526else
cac3d6c4 4527 echo "$ac_t""no" 1>&6
859789af 4528fi
cac3d6c4 4529
05cbd757
PB
4530 fi
4531 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
4532done
4533
4534if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
4535 set dummy ar
4536 if test $build = $target ; then
4537 AR_FOR_TARGET="$2"
859789af 4538 else
05cbd757 4539 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 4540 fi
859789af
AC
4541fi
4542
05cbd757
PB
4543 for ncn_progname in as; do
4544 if test -n "$ncn_target_tool_prefix"; then
4545 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4546set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4547echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4548echo "configure:4549: checking for $ac_word" >&5
cac3d6c4
CM
4549if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
4550 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4551else
55db4b87
PB
4552 if test -n "$AS_FOR_TARGET"; then
4553 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
859789af 4554else
cac3d6c4
CM
4555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4556 ac_dummy="$PATH"
4557 for ac_dir in $ac_dummy; do
4558 test -z "$ac_dir" && ac_dir=.
4559 if test -f $ac_dir/$ac_word; then
4560 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4561 break
4562 fi
4563 done
4564 IFS="$ac_save_ifs"
859789af
AC
4565fi
4566fi
cac3d6c4 4567AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
55db4b87 4568if test -n "$AS_FOR_TARGET"; then
cac3d6c4 4569 echo "$ac_t""$AS_FOR_TARGET" 1>&6
859789af 4570else
cac3d6c4 4571 echo "$ac_t""no" 1>&6
859789af
AC
4572fi
4573
05cbd757
PB
4574 fi
4575 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
4576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4577set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4578echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4579echo "configure:4580: checking for $ac_word" >&5
cac3d6c4
CM
4580if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4582else
05cbd757
PB
4583 if test -n "$AS_FOR_TARGET"; then
4584 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
859789af 4585else
cac3d6c4
CM
4586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4587 ac_dummy="$PATH"
4588 for ac_dir in $ac_dummy; do
4589 test -z "$ac_dir" && ac_dir=.
4590 if test -f $ac_dir/$ac_word; then
4591 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
4592 break
4593 fi
4594 done
4595 IFS="$ac_save_ifs"
859789af
AC
4596fi
4597fi
cac3d6c4 4598AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
05cbd757 4599if test -n "$AS_FOR_TARGET"; then
cac3d6c4 4600 echo "$ac_t""$AS_FOR_TARGET" 1>&6
859789af 4601else
cac3d6c4 4602 echo "$ac_t""no" 1>&6
859789af 4603fi
cac3d6c4 4604
05cbd757
PB
4605 fi
4606 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
4607done
4608
4609if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
4610 set dummy as
4611 if test $build = $target ; then
4612 AS_FOR_TARGET="$2"
859789af 4613 else
05cbd757 4614 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 4615 fi
55db4b87
PB
4616fi
4617
05cbd757
PB
4618 for ncn_progname in cc gcc; do
4619 if test -n "$ncn_target_tool_prefix"; then
4620 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4621set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4622echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4623echo "configure:4624: checking for $ac_word" >&5
cac3d6c4
CM
4624if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87
PB
4626else
4627 if test -n "$CC_FOR_TARGET"; then
4628 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4629else
cac3d6c4
CM
4630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4631 ac_dummy="$PATH"
4632 for ac_dir in $ac_dummy; do
4633 test -z "$ac_dir" && ac_dir=.
4634 if test -f $ac_dir/$ac_word; then
4635 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4636 break
4637 fi
4638 done
4639 IFS="$ac_save_ifs"
55db4b87
PB
4640fi
4641fi
cac3d6c4 4642CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87 4643if test -n "$CC_FOR_TARGET"; then
cac3d6c4 4644 echo "$ac_t""$CC_FOR_TARGET" 1>&6
55db4b87 4645else
cac3d6c4 4646 echo "$ac_t""no" 1>&6
55db4b87
PB
4647fi
4648
05cbd757
PB
4649 fi
4650 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4652set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4653echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4654echo "configure:4655: checking for $ac_word" >&5
cac3d6c4
CM
4655if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4656 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87 4657else
05cbd757
PB
4658 if test -n "$CC_FOR_TARGET"; then
4659 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 4660else
cac3d6c4
CM
4661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4662 ac_dummy="$PATH"
4663 for ac_dir in $ac_dummy; do
4664 test -z "$ac_dir" && ac_dir=.
4665 if test -f $ac_dir/$ac_word; then
4666 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4667 break
4668 fi
4669 done
4670 IFS="$ac_save_ifs"
55db4b87
PB
4671fi
4672fi
cac3d6c4 4673CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
05cbd757 4674if test -n "$CC_FOR_TARGET"; then
cac3d6c4 4675 echo "$ac_t""$CC_FOR_TARGET" 1>&6
55db4b87 4676else
cac3d6c4 4677 echo "$ac_t""no" 1>&6
55db4b87 4678fi
cac3d6c4 4679
05cbd757
PB
4680 fi
4681 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4682done
4683
4684if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4685 set dummy cc gcc
4686 if test $build = $target ; then
4687 CC_FOR_TARGET="$2"
55db4b87 4688 else
05cbd757 4689 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 4690 fi
55db4b87
PB
4691fi
4692
05cbd757
PB
4693 for ncn_progname in c++ g++ cxx gxx; do
4694 if test -n "$ncn_target_tool_prefix"; then
4695 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4696set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4697echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4698echo "configure:4699: checking for $ac_word" >&5
cac3d6c4
CM
4699if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87
PB
4701else
4702 if test -n "$CXX_FOR_TARGET"; then
4703 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4704else
cac3d6c4
CM
4705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4706 ac_dummy="$PATH"
4707 for ac_dir in $ac_dummy; do
4708 test -z "$ac_dir" && ac_dir=.
4709 if test -f $ac_dir/$ac_word; then
4710 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4711 break
4712 fi
4713 done
4714 IFS="$ac_save_ifs"
55db4b87
PB
4715fi
4716fi
cac3d6c4 4717CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
55db4b87 4718if test -n "$CXX_FOR_TARGET"; then
cac3d6c4 4719 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
55db4b87 4720else
cac3d6c4 4721 echo "$ac_t""no" 1>&6
55db4b87
PB
4722fi
4723
05cbd757
PB
4724 fi
4725 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4727set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4728echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4729echo "configure:4730: checking for $ac_word" >&5
cac3d6c4
CM
4730if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4731 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87 4732else
05cbd757
PB
4733 if test -n "$CXX_FOR_TARGET"; then
4734 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 4735else
cac3d6c4
CM
4736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4737 ac_dummy="$PATH"
4738 for ac_dir in $ac_dummy; do
4739 test -z "$ac_dir" && ac_dir=.
4740 if test -f $ac_dir/$ac_word; then
4741 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4742 break
4743 fi
4744 done
4745 IFS="$ac_save_ifs"
55db4b87
PB
4746fi
4747fi
cac3d6c4 4748CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
05cbd757 4749if test -n "$CXX_FOR_TARGET"; then
cac3d6c4 4750 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
55db4b87 4751else
cac3d6c4 4752 echo "$ac_t""no" 1>&6
55db4b87 4753fi
cac3d6c4 4754
05cbd757
PB
4755 fi
4756 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4757done
4758
4759if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4760 set dummy c++ g++ cxx gxx
4761 if test $build = $target ; then
4762 CXX_FOR_TARGET="$2"
55db4b87 4763 else
05cbd757 4764 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 4765 fi
859789af
AC
4766fi
4767
05cbd757
PB
4768 for ncn_progname in dlltool; do
4769 if test -n "$ncn_target_tool_prefix"; then
4770 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4771set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4772echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4773echo "configure:4774: checking for $ac_word" >&5
cac3d6c4
CM
4774if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4775 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4776else
55db4b87
PB
4777 if test -n "$DLLTOOL_FOR_TARGET"; then
4778 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
859789af 4779else
cac3d6c4
CM
4780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4781 ac_dummy="$PATH"
4782 for ac_dir in $ac_dummy; do
4783 test -z "$ac_dir" && ac_dir=.
4784 if test -f $ac_dir/$ac_word; then
4785 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4786 break
4787 fi
4788 done
4789 IFS="$ac_save_ifs"
859789af
AC
4790fi
4791fi
cac3d6c4 4792DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
55db4b87 4793if test -n "$DLLTOOL_FOR_TARGET"; then
cac3d6c4 4794 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
859789af 4795else
cac3d6c4 4796 echo "$ac_t""no" 1>&6
859789af
AC
4797fi
4798
05cbd757
PB
4799 fi
4800 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
4801 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4802set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4803echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4804echo "configure:4805: checking for $ac_word" >&5
cac3d6c4
CM
4805if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4806 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4807else
05cbd757
PB
4808 if test -n "$DLLTOOL_FOR_TARGET"; then
4809 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
859789af 4810else
cac3d6c4
CM
4811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4812 ac_dummy="$PATH"
4813 for ac_dir in $ac_dummy; do
4814 test -z "$ac_dir" && ac_dir=.
4815 if test -f $ac_dir/$ac_word; then
4816 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
4817 break
4818 fi
4819 done
4820 IFS="$ac_save_ifs"
859789af
AC
4821fi
4822fi
cac3d6c4 4823DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
05cbd757 4824if test -n "$DLLTOOL_FOR_TARGET"; then
cac3d6c4 4825 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
859789af 4826else
cac3d6c4 4827 echo "$ac_t""no" 1>&6
859789af 4828fi
cac3d6c4 4829
05cbd757
PB
4830 fi
4831 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
4832done
4833
4834if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
4835 set dummy dlltool
4836 if test $build = $target ; then
4837 DLLTOOL_FOR_TARGET="$2"
859789af 4838 else
05cbd757 4839 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 4840 fi
55db4b87
PB
4841fi
4842
05cbd757
PB
4843 for ncn_progname in gcc; do
4844 if test -n "$ncn_target_tool_prefix"; then
4845 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4846set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4847echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4848echo "configure:4849: checking for $ac_word" >&5
cac3d6c4
CM
4849if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4850 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87
PB
4851else
4852 if test -n "$GCC_FOR_TARGET"; then
4853 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4854else
cac3d6c4
CM
4855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4856 ac_dummy="$PATH"
4857 for ac_dir in $ac_dummy; do
4858 test -z "$ac_dir" && ac_dir=.
4859 if test -f $ac_dir/$ac_word; then
4860 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4861 break
4862 fi
4863 done
4864 IFS="$ac_save_ifs"
55db4b87
PB
4865fi
4866fi
cac3d6c4 4867GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87 4868if test -n "$GCC_FOR_TARGET"; then
cac3d6c4 4869 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
55db4b87 4870else
cac3d6c4 4871 echo "$ac_t""no" 1>&6
55db4b87
PB
4872fi
4873
05cbd757
PB
4874 fi
4875 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4877set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4878echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4879echo "configure:4880: checking for $ac_word" >&5
cac3d6c4
CM
4880if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4881 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87 4882else
05cbd757
PB
4883 if test -n "$GCC_FOR_TARGET"; then
4884 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 4885else
cac3d6c4
CM
4886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4887 ac_dummy="$PATH"
4888 for ac_dir in $ac_dummy; do
4889 test -z "$ac_dir" && ac_dir=.
4890 if test -f $ac_dir/$ac_word; then
4891 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4892 break
4893 fi
4894 done
4895 IFS="$ac_save_ifs"
55db4b87
PB
4896fi
4897fi
cac3d6c4 4898GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
05cbd757 4899if test -n "$GCC_FOR_TARGET"; then
cac3d6c4 4900 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
55db4b87 4901else
cac3d6c4 4902 echo "$ac_t""no" 1>&6
55db4b87 4903fi
cac3d6c4 4904
55db4b87 4905 fi
05cbd757
PB
4906 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4907done
4908
4909if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4910 GCC_FOR_TARGET="${CC_FOR_TARGET}"
55db4b87
PB
4911fi
4912
05cbd757
PB
4913 for ncn_progname in gcj; do
4914 if test -n "$ncn_target_tool_prefix"; then
4915 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4916set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4917echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4918echo "configure:4919: checking for $ac_word" >&5
cac3d6c4
CM
4919if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4920 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87
PB
4921else
4922 if test -n "$GCJ_FOR_TARGET"; then
4923 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4924else
cac3d6c4
CM
4925 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4926 ac_dummy="$PATH"
4927 for ac_dir in $ac_dummy; do
4928 test -z "$ac_dir" && ac_dir=.
4929 if test -f $ac_dir/$ac_word; then
4930 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4931 break
4932 fi
4933 done
4934 IFS="$ac_save_ifs"
55db4b87
PB
4935fi
4936fi
cac3d6c4 4937GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
55db4b87 4938if test -n "$GCJ_FOR_TARGET"; then
cac3d6c4 4939 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
55db4b87 4940else
cac3d6c4 4941 echo "$ac_t""no" 1>&6
55db4b87
PB
4942fi
4943
05cbd757
PB
4944 fi
4945 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4947set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4948echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4949echo "configure:4950: checking for $ac_word" >&5
cac3d6c4
CM
4950if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4951 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87 4952else
05cbd757
PB
4953 if test -n "$GCJ_FOR_TARGET"; then
4954 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
55db4b87 4955else
cac3d6c4
CM
4956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4957 ac_dummy="$PATH"
4958 for ac_dir in $ac_dummy; do
4959 test -z "$ac_dir" && ac_dir=.
4960 if test -f $ac_dir/$ac_word; then
4961 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4962 break
4963 fi
4964 done
4965 IFS="$ac_save_ifs"
55db4b87
PB
4966fi
4967fi
cac3d6c4 4968GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
05cbd757 4969if test -n "$GCJ_FOR_TARGET"; then
cac3d6c4 4970 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
55db4b87 4971else
cac3d6c4 4972 echo "$ac_t""no" 1>&6
55db4b87 4973fi
cac3d6c4 4974
05cbd757
PB
4975 fi
4976 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4977done
4978
4979if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4980 set dummy gcj
4981 if test $build = $target ; then
4982 GCJ_FOR_TARGET="$2"
55db4b87 4983 else
05cbd757 4984 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 4985 fi
55db4b87
PB
4986fi
4987
05cbd757
PB
4988 for ncn_progname in gfortran; do
4989 if test -n "$ncn_target_tool_prefix"; then
4990 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4991set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4992echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 4993echo "configure:4994: checking for $ac_word" >&5
cac3d6c4
CM
4994if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4995 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87
PB
4996else
4997 if test -n "$GFORTRAN_FOR_TARGET"; then
4998 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4999else
cac3d6c4
CM
5000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5001 ac_dummy="$PATH"
5002 for ac_dir in $ac_dummy; do
5003 test -z "$ac_dir" && ac_dir=.
5004 if test -f $ac_dir/$ac_word; then
5005 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5006 break
5007 fi
5008 done
5009 IFS="$ac_save_ifs"
55db4b87
PB
5010fi
5011fi
cac3d6c4 5012GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
55db4b87 5013if test -n "$GFORTRAN_FOR_TARGET"; then
cac3d6c4 5014 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
55db4b87 5015else
cac3d6c4 5016 echo "$ac_t""no" 1>&6
55db4b87
PB
5017fi
5018
05cbd757
PB
5019 fi
5020 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
5021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5022set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 5023echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 5024echo "configure:5025: checking for $ac_word" >&5
cac3d6c4
CM
5025if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5026 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87 5027else
05cbd757
PB
5028 if test -n "$GFORTRAN_FOR_TARGET"; then
5029 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 5030else
cac3d6c4
CM
5031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5032 ac_dummy="$PATH"
5033 for ac_dir in $ac_dummy; do
5034 test -z "$ac_dir" && ac_dir=.
5035 if test -f $ac_dir/$ac_word; then
5036 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5037 break
5038 fi
5039 done
5040 IFS="$ac_save_ifs"
55db4b87
PB
5041fi
5042fi
cac3d6c4 5043GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
05cbd757 5044if test -n "$GFORTRAN_FOR_TARGET"; then
cac3d6c4 5045 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
55db4b87 5046else
cac3d6c4 5047 echo "$ac_t""no" 1>&6
55db4b87 5048fi
cac3d6c4 5049
05cbd757
PB
5050 fi
5051 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5052done
5053
5054if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5055 set dummy gfortran
5056 if test $build = $target ; then
5057 GFORTRAN_FOR_TARGET="$2"
55db4b87 5058 else
05cbd757 5059 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 5060 fi
859789af
AC
5061fi
5062
05cbd757
PB
5063 for ncn_progname in ld; do
5064 if test -n "$ncn_target_tool_prefix"; then
5065 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5066set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 5067echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 5068echo "configure:5069: checking for $ac_word" >&5
cac3d6c4
CM
5069if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
859789af 5071else
55db4b87
PB
5072 if test -n "$LD_FOR_TARGET"; then
5073 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
859789af 5074else
cac3d6c4
CM
5075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5076 ac_dummy="$PATH"
5077 for ac_dir in $ac_dummy; do
5078 test -z "$ac_dir" && ac_dir=.
5079 if test -f $ac_dir/$ac_word; then
5080 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5081 break
5082 fi
5083 done
5084 IFS="$ac_save_ifs"
859789af
AC
5085fi
5086fi
cac3d6c4 5087LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
55db4b87 5088if test -n "$LD_FOR_TARGET"; then
cac3d6c4 5089 echo "$ac_t""$LD_FOR_TARGET" 1>&6
859789af 5090else
cac3d6c4 5091 echo "$ac_t""no" 1>&6
859789af
AC
5092fi
5093
05cbd757
PB
5094 fi
5095 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5097set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 5098echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 5099echo "configure:5100: checking for $ac_word" >&5
cac3d6c4
CM
5100if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5101 echo $ac_n "(cached) $ac_c" 1>&6
859789af 5102else
05cbd757
PB
5103 if test -n "$LD_FOR_TARGET"; then
5104 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
859789af 5105else
cac3d6c4
CM
5106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5107 ac_dummy="$PATH"
5108 for ac_dir in $ac_dummy; do
5109 test -z "$ac_dir" && ac_dir=.
5110 if test -f $ac_dir/$ac_word; then
5111 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5112 break
5113 fi
5114 done
5115 IFS="$ac_save_ifs"
859789af
AC
5116fi
5117fi
cac3d6c4 5118LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
05cbd757 5119if test -n "$LD_FOR_TARGET"; then
cac3d6c4 5120 echo "$ac_t""$LD_FOR_TARGET" 1>&6
859789af 5121else
cac3d6c4 5122 echo "$ac_t""no" 1>&6
859789af 5123fi
cac3d6c4 5124
05cbd757
PB
5125 fi
5126 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5127done
5128
5129if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5130 set dummy ld
5131 if test $build = $target ; then
5132 LD_FOR_TARGET="$2"
859789af 5133 else
05cbd757 5134 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 5135 fi
859789af
AC
5136fi
5137
7e0f7140 5138 for ncn_progname in lipo; do
05cbd757
PB
5139 if test -n "$ncn_target_tool_prefix"; then
5140 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5141set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 5142echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 5143echo "configure:5144: checking for $ac_word" >&5
cac3d6c4
CM
5144if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5145 echo $ac_n "(cached) $ac_c" 1>&6
7e0f7140
GK
5146else
5147 if test -n "$LIPO_FOR_TARGET"; then
5148 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5149else
cac3d6c4
CM
5150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5151 ac_dummy="$PATH"
5152 for ac_dir in $ac_dummy; do
5153 test -z "$ac_dir" && ac_dir=.
5154 if test -f $ac_dir/$ac_word; then
5155 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5156 break
5157 fi
5158 done
5159 IFS="$ac_save_ifs"
7e0f7140
GK
5160fi
5161fi
cac3d6c4 5162LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
7e0f7140 5163if test -n "$LIPO_FOR_TARGET"; then
cac3d6c4 5164 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
7e0f7140 5165else
cac3d6c4 5166 echo "$ac_t""no" 1>&6
7e0f7140
GK
5167fi
5168
5169 fi
5170 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5172set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 5173echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 5174echo "configure:5175: checking for $ac_word" >&5
cac3d6c4
CM
5175if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5176 echo $ac_n "(cached) $ac_c" 1>&6
7e0f7140
GK
5177else
5178 if test -n "$LIPO_FOR_TARGET"; then
cac3d6c4
CM
5179 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5180else
5181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5182 ac_dummy="$PATH"
5183 for ac_dir in $ac_dummy; do
5184 test -z "$ac_dir" && ac_dir=.
5185 if test -f $ac_dir/$ac_word; then
5186 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5187 break
5188 fi
5189 done
5190 IFS="$ac_save_ifs"
7e0f7140
GK
5191fi
5192fi
cac3d6c4 5193LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
7e0f7140 5194if test -n "$LIPO_FOR_TARGET"; then
cac3d6c4 5195 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
7e0f7140 5196else
cac3d6c4 5197 echo "$ac_t""no" 1>&6
7e0f7140 5198fi
cac3d6c4 5199
7e0f7140
GK
5200 fi
5201 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5202done
5203
5204if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5205 set dummy lipo
5206 if test $build = $target ; then
5207 LIPO_FOR_TARGET="$2"
5208 else
5209 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
5210 fi
5211fi
5212
5213 for ncn_progname in nm; do
5214 if test -n "$ncn_target_tool_prefix"; then
5215 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5216set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 5217echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 5218echo "configure:5219: checking for $ac_word" >&5
cac3d6c4
CM
5219if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5220 echo $ac_n "(cached) $ac_c" 1>&6
859789af 5221else
55db4b87
PB
5222 if test -n "$NM_FOR_TARGET"; then
5223 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 5224else
cac3d6c4
CM
5225 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5226 ac_dummy="$PATH"
5227 for ac_dir in $ac_dummy; do
5228 test -z "$ac_dir" && ac_dir=.
5229 if test -f $ac_dir/$ac_word; then
5230 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5231 break
5232 fi
5233 done
5234 IFS="$ac_save_ifs"
859789af
AC
5235fi
5236fi
cac3d6c4 5237NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
55db4b87 5238if test -n "$NM_FOR_TARGET"; then
cac3d6c4 5239 echo "$ac_t""$NM_FOR_TARGET" 1>&6
859789af 5240else
cac3d6c4 5241 echo "$ac_t""no" 1>&6
859789af
AC
5242fi
5243
05cbd757
PB
5244 fi
5245 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
5246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5247set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 5248echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 5249echo "configure:5250: checking for $ac_word" >&5
cac3d6c4
CM
5250if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5251 echo $ac_n "(cached) $ac_c" 1>&6
859789af 5252else
05cbd757
PB
5253 if test -n "$NM_FOR_TARGET"; then
5254 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 5255else
cac3d6c4
CM
5256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5257 ac_dummy="$PATH"
5258 for ac_dir in $ac_dummy; do
5259 test -z "$ac_dir" && ac_dir=.
5260 if test -f $ac_dir/$ac_word; then
5261 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5262 break
5263 fi
5264 done
5265 IFS="$ac_save_ifs"
859789af
AC
5266fi
5267fi
cac3d6c4 5268NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
05cbd757 5269if test -n "$NM_FOR_TARGET"; then
cac3d6c4 5270 echo "$ac_t""$NM_FOR_TARGET" 1>&6
859789af 5271else
cac3d6c4 5272 echo "$ac_t""no" 1>&6
859789af 5273fi
cac3d6c4 5274
05cbd757
PB
5275 fi
5276 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
5277done
5278
5279if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
5280 set dummy nm
5281 if test $build = $target ; then
5282 NM_FOR_TARGET="$2"
859789af 5283 else
05cbd757 5284 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 5285 fi
859789af
AC
5286fi
5287
5ae72758 5288 for ncn_progname in objdump; do
05cbd757
PB
5289 if test -n "$ncn_target_tool_prefix"; then
5290 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5291set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 5292echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 5293echo "configure:5294: checking for $ac_word" >&5
5ae72758
DJ
5294if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5295 echo $ac_n "(cached) $ac_c" 1>&6
5296else
5297 if test -n "$OBJDUMP_FOR_TARGET"; then
5298 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5299else
5300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5301 ac_dummy="$PATH"
5302 for ac_dir in $ac_dummy; do
5303 test -z "$ac_dir" && ac_dir=.
5304 if test -f $ac_dir/$ac_word; then
5305 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5306 break
5307 fi
5308 done
5309 IFS="$ac_save_ifs"
5310fi
5311fi
5312OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5313if test -n "$OBJDUMP_FOR_TARGET"; then
5314 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5315else
5316 echo "$ac_t""no" 1>&6
5317fi
5318
5319 fi
5320 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
5321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5322set dummy ${ncn_progname}; ac_word=$2
5323echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 5324echo "configure:5325: checking for $ac_word" >&5
5ae72758
DJ
5325if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5326 echo $ac_n "(cached) $ac_c" 1>&6
5327else
5328 if test -n "$OBJDUMP_FOR_TARGET"; then
5329 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5330else
5331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5332 ac_dummy="$PATH"
5333 for ac_dir in $ac_dummy; do
5334 test -z "$ac_dir" && ac_dir=.
5335 if test -f $ac_dir/$ac_word; then
5336 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5337 break
5338 fi
5339 done
5340 IFS="$ac_save_ifs"
5341fi
5342fi
5343OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5344if test -n "$OBJDUMP_FOR_TARGET"; then
5345 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5346else
5347 echo "$ac_t""no" 1>&6
5348fi
5349
5350 fi
5351 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
5352done
5353
5354if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
5355 set dummy objdump
5356 if test $build = $target ; then
5357 OBJDUMP_FOR_TARGET="$2"
5358 else
5359 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5360 fi
5361fi
5362
5363 for ncn_progname in ranlib; do
5364 if test -n "$ncn_target_tool_prefix"; then
5365 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5366set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5367echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 5368echo "configure:5369: checking for $ac_word" >&5
cac3d6c4
CM
5369if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
859789af 5371else
55db4b87
PB
5372 if test -n "$RANLIB_FOR_TARGET"; then
5373 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 5374else
cac3d6c4
CM
5375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5376 ac_dummy="$PATH"
5377 for ac_dir in $ac_dummy; do
5378 test -z "$ac_dir" && ac_dir=.
5379 if test -f $ac_dir/$ac_word; then
5380 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5381 break
5382 fi
5383 done
5384 IFS="$ac_save_ifs"
859789af
AC
5385fi
5386fi
cac3d6c4 5387RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
55db4b87 5388if test -n "$RANLIB_FOR_TARGET"; then
cac3d6c4 5389 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
859789af 5390else
cac3d6c4 5391 echo "$ac_t""no" 1>&6
859789af
AC
5392fi
5393
05cbd757
PB
5394 fi
5395 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
5396 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5397set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 5398echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 5399echo "configure:5400: checking for $ac_word" >&5
cac3d6c4
CM
5400if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5401 echo $ac_n "(cached) $ac_c" 1>&6
859789af 5402else
05cbd757
PB
5403 if test -n "$RANLIB_FOR_TARGET"; then
5404 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 5405else
cac3d6c4
CM
5406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5407 ac_dummy="$PATH"
5408 for ac_dir in $ac_dummy; do
5409 test -z "$ac_dir" && ac_dir=.
5410 if test -f $ac_dir/$ac_word; then
5411 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5412 break
5413 fi
5414 done
5415 IFS="$ac_save_ifs"
859789af
AC
5416fi
5417fi
cac3d6c4 5418RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
05cbd757 5419if test -n "$RANLIB_FOR_TARGET"; then
cac3d6c4 5420 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
859789af 5421else
cac3d6c4 5422 echo "$ac_t""no" 1>&6
859789af 5423fi
cac3d6c4 5424
859789af 5425 fi
05cbd757
PB
5426 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
5427done
5428
5429if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
5430 RANLIB_FOR_TARGET=":"
859789af
AC
5431fi
5432
7e0f7140
GK
5433 for ncn_progname in strip; do
5434 if test -n "$ncn_target_tool_prefix"; then
5435 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5436set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 5437echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 5438echo "configure:5439: checking for $ac_word" >&5
cac3d6c4
CM
5439if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5440 echo $ac_n "(cached) $ac_c" 1>&6
7e0f7140
GK
5441else
5442 if test -n "$STRIP_FOR_TARGET"; then
5443 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5444else
cac3d6c4
CM
5445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5446 ac_dummy="$PATH"
5447 for ac_dir in $ac_dummy; do
5448 test -z "$ac_dir" && ac_dir=.
5449 if test -f $ac_dir/$ac_word; then
5450 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5451 break
5452 fi
5453 done
5454 IFS="$ac_save_ifs"
7e0f7140
GK
5455fi
5456fi
cac3d6c4 5457STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140 5458if test -n "$STRIP_FOR_TARGET"; then
cac3d6c4 5459 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
7e0f7140 5460else
cac3d6c4 5461 echo "$ac_t""no" 1>&6
7e0f7140
GK
5462fi
5463
5464 fi
5465 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
5466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5467set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 5468echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 5469echo "configure:5470: checking for $ac_word" >&5
cac3d6c4
CM
5470if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5471 echo $ac_n "(cached) $ac_c" 1>&6
7e0f7140
GK
5472else
5473 if test -n "$STRIP_FOR_TARGET"; then
5474 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5475else
cac3d6c4
CM
5476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5477 ac_dummy="$PATH"
5478 for ac_dir in $ac_dummy; do
5479 test -z "$ac_dir" && ac_dir=.
5480 if test -f $ac_dir/$ac_word; then
5481 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5482 break
5483 fi
5484 done
5485 IFS="$ac_save_ifs"
7e0f7140
GK
5486fi
5487fi
cac3d6c4 5488STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140 5489if test -n "$STRIP_FOR_TARGET"; then
cac3d6c4 5490 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
7e0f7140 5491else
cac3d6c4 5492 echo "$ac_t""no" 1>&6
7e0f7140 5493fi
cac3d6c4 5494
7e0f7140
GK
5495 fi
5496 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
5497done
5498
5499if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
5500 set dummy strip
5501 if test $build = $target ; then
5502 STRIP_FOR_TARGET="$2"
5503 else
5504 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5505 fi
5506fi
5507
05cbd757
PB
5508 for ncn_progname in windres; do
5509 if test -n "$ncn_target_tool_prefix"; then
5510 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5511set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 5512echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 5513echo "configure:5514: checking for $ac_word" >&5
cac3d6c4
CM
5514if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5515 echo $ac_n "(cached) $ac_c" 1>&6
859789af 5516else
55db4b87
PB
5517 if test -n "$WINDRES_FOR_TARGET"; then
5518 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 5519else
cac3d6c4
CM
5520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5521 ac_dummy="$PATH"
5522 for ac_dir in $ac_dummy; do
5523 test -z "$ac_dir" && ac_dir=.
5524 if test -f $ac_dir/$ac_word; then
5525 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5526 break
5527 fi
5528 done
5529 IFS="$ac_save_ifs"
859789af
AC
5530fi
5531fi
cac3d6c4 5532WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
55db4b87 5533if test -n "$WINDRES_FOR_TARGET"; then
cac3d6c4 5534 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
859789af 5535else
cac3d6c4 5536 echo "$ac_t""no" 1>&6
859789af
AC
5537fi
5538
05cbd757
PB
5539 fi
5540 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
5541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5542set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 5543echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be01d343 5544echo "configure:5545: checking for $ac_word" >&5
cac3d6c4
CM
5545if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5546 echo $ac_n "(cached) $ac_c" 1>&6
859789af 5547else
05cbd757
PB
5548 if test -n "$WINDRES_FOR_TARGET"; then
5549 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 5550else
cac3d6c4
CM
5551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5552 ac_dummy="$PATH"
5553 for ac_dir in $ac_dummy; do
5554 test -z "$ac_dir" && ac_dir=.
5555 if test -f $ac_dir/$ac_word; then
5556 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5557 break
5558 fi
5559 done
5560 IFS="$ac_save_ifs"
859789af
AC
5561fi
5562fi
cac3d6c4 5563WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
05cbd757 5564if test -n "$WINDRES_FOR_TARGET"; then
cac3d6c4 5565 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
859789af 5566else
cac3d6c4 5567 echo "$ac_t""no" 1>&6
859789af 5568fi
cac3d6c4 5569
05cbd757
PB
5570 fi
5571 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
5572done
5573
5574if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
5575 set dummy windres
5576 if test $build = $target ; then
5577 WINDRES_FOR_TARGET="$2"
859789af 5578 else
05cbd757 5579 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 5580 fi
859789af
AC
5581fi
5582
852e5f18 5583
be01d343
PB
5584RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
5585
5586echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
5587echo "configure:5588: checking where to find the target ar" >&5
5588if test "x${build}" != "x${host}" ; then
5589 # Canadian cross, just use what we found
5590 echo "$ac_t""pre-installed" 1>&6
5591else
5592 ok=yes
5593 case " ${configdirs} " in
5594 *" binutils "*) ;;
5595 *) ok=no ;;
5596 esac
5597
5598 if test $ok = yes; then
5599 # An in-tree tool is available and we can use it
5600 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5601 echo "$ac_t""just compiled" 1>&6
5602 elif test "x$target" = "x$host"; then
5603 # We can use an host tool
5604 AR_FOR_TARGET='$(AR)'
5605 echo "$ac_t""host tool" 1>&6
5606 else
5607 # We need a cross tool
5608 echo "$ac_t""pre-installed" 1>&6
5609 fi
5610fi
5611echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
5612echo "configure:5613: checking where to find the target as" >&5
5613if test "x${build}" != "x${host}" ; then
5614 # Canadian cross, just use what we found
5615 echo "$ac_t""pre-installed" 1>&6
5616else
5617 ok=yes
5618 case " ${configdirs} " in
5619 *" gas "*) ;;
5620 *) ok=no ;;
5621 esac
5622
5623 if test $ok = yes; then
5624 # An in-tree tool is available and we can use it
5625 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5626 echo "$ac_t""just compiled" 1>&6
5627 elif test "x$target" = "x$host"; then
5628 # We can use an host tool
5629 AS_FOR_TARGET='$(AS)'
5630 echo "$ac_t""host tool" 1>&6
5631 else
5632 # We need a cross tool
5633 echo "$ac_t""pre-installed" 1>&6
5634 fi
5635fi
5636echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
5637echo "configure:5638: checking where to find the target cc" >&5
5638if test "x${build}" != "x${host}" ; then
5639 # Canadian cross, just use what we found
5640 echo "$ac_t""pre-installed" 1>&6
5641else
5642 ok=yes
5643 case " ${configdirs} " in
5644 *" gcc "*) ;;
5645 *) ok=no ;;
5646 esac
5647
5648 if test $ok = yes; then
5649 # An in-tree tool is available and we can use it
5650 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5651 echo "$ac_t""just compiled" 1>&6
5652 elif test "x$target" = "x$host"; then
5653 # We can use an host tool
5654 CC_FOR_TARGET='$(CC)'
5655 echo "$ac_t""host tool" 1>&6
5656 else
5657 # We need a cross tool
5658 echo "$ac_t""pre-installed" 1>&6
5659 fi
5660fi
5661echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
5662echo "configure:5663: checking where to find the target c++" >&5
5663if test "x${build}" != "x${host}" ; then
5664 # Canadian cross, just use what we found
5665 echo "$ac_t""pre-installed" 1>&6
5666else
5667 ok=yes
5668 case " ${configdirs} " in
5669 *" gcc "*) ;;
5670 *) ok=no ;;
5671 esac
5672 case ,${enable_languages}, in
5673 *,c++,*) ;;
5674 *) ok=no ;;
5675 esac
5676 if test $ok = yes; then
5677 # An in-tree tool is available and we can use it
5678 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'
5679 echo "$ac_t""just compiled" 1>&6
5680 elif test "x$target" = "x$host"; then
5681 # We can use an host tool
5682 CXX_FOR_TARGET='$(CXX)'
5683 echo "$ac_t""host tool" 1>&6
5684 else
5685 # We need a cross tool
5686 echo "$ac_t""pre-installed" 1>&6
5687 fi
5688fi
5689echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
5690echo "configure:5691: checking where to find the target c++ for libstdc++" >&5
5691if test "x${build}" != "x${host}" ; then
5692 # Canadian cross, just use what we found
5693 echo "$ac_t""pre-installed" 1>&6
5694else
5695 ok=yes
5696 case " ${configdirs} " in
5697 *" gcc "*) ;;
5698 *) ok=no ;;
5699 esac
5700 case ,${enable_languages}, in
5701 *,c++,*) ;;
5702 *) ok=no ;;
5703 esac
5704 if test $ok = yes; then
5705 # An in-tree tool is available and we can use it
5706 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'
5707 echo "$ac_t""just compiled" 1>&6
5708 elif test "x$target" = "x$host"; then
5709 # We can use an host tool
5710 RAW_CXX_FOR_TARGET='$(CXX)'
5711 echo "$ac_t""host tool" 1>&6
5712 else
5713 # We need a cross tool
5714 echo "$ac_t""pre-installed" 1>&6
5715 fi
5716fi
5717echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
5718echo "configure:5719: checking where to find the target dlltool" >&5
5719if test "x${build}" != "x${host}" ; then
5720 # Canadian cross, just use what we found
5721 echo "$ac_t""pre-installed" 1>&6
5722else
5723 ok=yes
5724 case " ${configdirs} " in
5725 *" binutils "*) ;;
5726 *) ok=no ;;
5727 esac
5728
5729 if test $ok = yes; then
5730 # An in-tree tool is available and we can use it
5731 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5732 echo "$ac_t""just compiled" 1>&6
5733 elif test "x$target" = "x$host"; then
5734 # We can use an host tool
5735 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5736 echo "$ac_t""host tool" 1>&6
5737 else
5738 # We need a cross tool
5739 echo "$ac_t""pre-installed" 1>&6
5740 fi
5741fi
5742echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
5743echo "configure:5744: checking where to find the target gcc" >&5
5744if test "x${build}" != "x${host}" ; then
5745 # Canadian cross, just use what we found
5746 echo "$ac_t""pre-installed" 1>&6
5747else
5748 ok=yes
5749 case " ${configdirs} " in
5750 *" gcc "*) ;;
5751 *) ok=no ;;
5752 esac
5753
5754 if test $ok = yes; then
5755 # An in-tree tool is available and we can use it
5756 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5757 echo "$ac_t""just compiled" 1>&6
5758 elif test "x$target" = "x$host"; then
5759 # We can use an host tool
5760 GCC_FOR_TARGET='$()'
5761 echo "$ac_t""host tool" 1>&6
5762 else
5763 # We need a cross tool
5764 echo "$ac_t""pre-installed" 1>&6
5765 fi
5766fi
5767echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
5768echo "configure:5769: checking where to find the target gcj" >&5
5769if test "x${build}" != "x${host}" ; then
5770 # Canadian cross, just use what we found
5771 echo "$ac_t""pre-installed" 1>&6
5772else
5773 ok=yes
5774 case " ${configdirs} " in
5775 *" gcc "*) ;;
5776 *) ok=no ;;
5777 esac
5778 case ,${enable_languages}, in
5779 *,java,*) ;;
5780 *) ok=no ;;
5781 esac
5782 if test $ok = yes; then
5783 # An in-tree tool is available and we can use it
5784 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5785 echo "$ac_t""just compiled" 1>&6
5786 elif test "x$target" = "x$host"; then
5787 # We can use an host tool
5788 GCJ_FOR_TARGET='$(GCJ)'
5789 echo "$ac_t""host tool" 1>&6
5790 else
5791 # We need a cross tool
5792 echo "$ac_t""pre-installed" 1>&6
5793 fi
5794fi
5795echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
5796echo "configure:5797: checking where to find the target gfortran" >&5
5797if test "x${build}" != "x${host}" ; then
5798 # Canadian cross, just use what we found
5799 echo "$ac_t""pre-installed" 1>&6
5800else
5801 ok=yes
5802 case " ${configdirs} " in
5803 *" gcc "*) ;;
5804 *) ok=no ;;
5805 esac
5806 case ,${enable_languages}, in
5807 *,fortran,*) ;;
5808 *) ok=no ;;
5809 esac
5810 if test $ok = yes; then
5811 # An in-tree tool is available and we can use it
5812 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5813 echo "$ac_t""just compiled" 1>&6
5814 elif test "x$target" = "x$host"; then
5815 # We can use an host tool
5816 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5817 echo "$ac_t""host tool" 1>&6
5818 else
5819 # We need a cross tool
5820 echo "$ac_t""pre-installed" 1>&6
5821 fi
5822fi
5823echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
5824echo "configure:5825: checking where to find the target ld" >&5
5825if test "x${build}" != "x${host}" ; then
5826 # Canadian cross, just use what we found
5827 echo "$ac_t""pre-installed" 1>&6
5828else
5829 ok=yes
5830 case " ${configdirs} " in
5831 *" ld "*) ;;
5832 *) ok=no ;;
5833 esac
5834
5835 if test $ok = yes; then
5836 # An in-tree tool is available and we can use it
5837 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5838 echo "$ac_t""just compiled" 1>&6
5839 elif test "x$target" = "x$host"; then
5840 # We can use an host tool
5841 LD_FOR_TARGET='$(LD)'
5842 echo "$ac_t""host tool" 1>&6
5843 else
5844 # We need a cross tool
5845 echo "$ac_t""pre-installed" 1>&6
5846 fi
5847fi
5848echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
5849echo "configure:5850: checking where to find the target lipo" >&5
5850if test "x${build}" != "x${host}" ; then
5851 # Canadian cross, just use what we found
5852 echo "$ac_t""pre-installed" 1>&6
5853else
5854 if test "x$target" = "x$host"; then
5855 # We can use an host tool
5856 LIPO_FOR_TARGET='$(LIPO)'
5857 echo "$ac_t""host tool" 1>&6
5858 else
5859 # We need a cross tool
5860 echo "$ac_t""pre-installed" 1>&6
5861 fi
5862fi
5863echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
5864echo "configure:5865: checking where to find the target nm" >&5
5865if test "x${build}" != "x${host}" ; then
5866 # Canadian cross, just use what we found
5867 echo "$ac_t""pre-installed" 1>&6
5868else
5869 ok=yes
5870 case " ${configdirs} " in
5871 *" binutils "*) ;;
5872 *) ok=no ;;
5873 esac
5874
5875 if test $ok = yes; then
5876 # An in-tree tool is available and we can use it
5877 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5878 echo "$ac_t""just compiled" 1>&6
5879 elif test "x$target" = "x$host"; then
5880 # We can use an host tool
5881 NM_FOR_TARGET='$(NM)'
5882 echo "$ac_t""host tool" 1>&6
5883 else
5884 # We need a cross tool
5885 echo "$ac_t""pre-installed" 1>&6
5886 fi
5887fi
5888echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
5889echo "configure:5890: checking where to find the target objdump" >&5
5890if test "x${build}" != "x${host}" ; then
5891 # Canadian cross, just use what we found
5892 echo "$ac_t""pre-installed" 1>&6
5893else
5894 ok=yes
5895 case " ${configdirs} " in
5896 *" binutils "*) ;;
5897 *) ok=no ;;
5898 esac
5899
5900 if test $ok = yes; then
5901 # An in-tree tool is available and we can use it
5902 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5903 echo "$ac_t""just compiled" 1>&6
5904 elif test "x$target" = "x$host"; then
5905 # We can use an host tool
5906 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5907 echo "$ac_t""host tool" 1>&6
5908 else
5909 # We need a cross tool
5910 echo "$ac_t""pre-installed" 1>&6
5911 fi
5912fi
5913echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
5914echo "configure:5915: checking where to find the target ranlib" >&5
5915if test "x${build}" != "x${host}" ; then
5916 # Canadian cross, just use what we found
5917 echo "$ac_t""pre-installed" 1>&6
5918else
5919 ok=yes
5920 case " ${configdirs} " in
5921 *" binutils "*) ;;
5922 *) ok=no ;;
5923 esac
5924
5925 if test $ok = yes; then
5926 # An in-tree tool is available and we can use it
5927 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5928 echo "$ac_t""just compiled" 1>&6
5929 elif test "x$target" = "x$host"; then
5930 # We can use an host tool
5931 RANLIB_FOR_TARGET='$(RANLIB)'
5932 echo "$ac_t""host tool" 1>&6
5933 else
5934 # We need a cross tool
5935 echo "$ac_t""pre-installed" 1>&6
5936 fi
5937fi
5938echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
5939echo "configure:5940: checking where to find the target strip" >&5
5940if test "x${build}" != "x${host}" ; then
5941 # Canadian cross, just use what we found
5942 echo "$ac_t""pre-installed" 1>&6
5943else
5944 ok=yes
5945 case " ${configdirs} " in
5946 *" binutils "*) ;;
5947 *) ok=no ;;
5948 esac
5949
5950 if test $ok = yes; then
5951 # An in-tree tool is available and we can use it
5952 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
5953 echo "$ac_t""just compiled" 1>&6
5954 elif test "x$target" = "x$host"; then
5955 # We can use an host tool
5956 STRIP_FOR_TARGET='$(STRIP)'
5957 echo "$ac_t""host tool" 1>&6
5958 else
5959 # We need a cross tool
5960 echo "$ac_t""pre-installed" 1>&6
5961 fi
5962fi
5963echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
5964echo "configure:5965: checking where to find the target windres" >&5
5965if test "x${build}" != "x${host}" ; then
5966 # Canadian cross, just use what we found
5967 echo "$ac_t""pre-installed" 1>&6
5968else
5969 ok=yes
5970 case " ${configdirs} " in
5971 *" binutils "*) ;;
5972 *) ok=no ;;
5973 esac
5974
5975 if test $ok = yes; then
5976 # An in-tree tool is available and we can use it
5977 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5978 echo "$ac_t""just compiled" 1>&6
5979 elif test "x$target" = "x$host"; then
5980 # We can use an host tool
5981 WINDRES_FOR_TARGET='$(WINDRES)'
5982 echo "$ac_t""host tool" 1>&6
5983 else
5984 # We need a cross tool
5985 echo "$ac_t""pre-installed" 1>&6
5986 fi
a0da8069 5987fi
54752a6b
NN
5988
5989
5990
be01d343 5991
a0da8069
NN
5992# Certain tools may need extra flags.
5993AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
5994RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
5995NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
5996
be01d343
PB
5997# When building target libraries, except in a Canadian cross, we use
5998# the same toolchain as the compiler we just built.
5999COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
6000COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
6001COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
6002if test $host = $build; then
6003 case " $configdirs " in
6004 *" gcc "*)
6005 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
6006 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
6007 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
6008 ;;
6009 esac
6010fi
6011
6012
6013
6014
6015
cac3d6c4 6016echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
be01d343 6017echo "configure:6018: checking whether to enable maintainer-specific portions of Makefiles" >&5
3d5e36ae
AO
6018# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6019if test "${enable_maintainer_mode+set}" = set; then
6020 enableval="$enable_maintainer_mode"
6021 USE_MAINTAINER_MODE=$enableval
6022else
6023 USE_MAINTAINER_MODE=no
cac3d6c4
CM
6024fi
6025
6026echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3d5e36ae
AO
6027
6028
6029if test "$USE_MAINTAINER_MODE" = yes; then
6030 MAINTAINER_MODE_TRUE=
6031 MAINTAINER_MODE_FALSE='#'
6032else
6033 MAINTAINER_MODE_TRUE='#'
6034 MAINTAINER_MODE_FALSE=
cac3d6c4 6035fi
3d5e36ae
AO
6036MAINT=$MAINTAINER_MODE_TRUE
6037
1d39f329
NN
6038# ---------------------
6039# GCC bootstrap support
6040# ---------------------
6041
6042# Stage specific cflags for build.
6043stage1_cflags="-g"
6044case $build in
6045 vax-*-*)
6046 case ${GCC} in
6047 yes) stage1_cflags="-g -Wa,-J" ;;
6048 *) stage1_cflags="-g -J" ;;
6049 esac ;;
6050 powerpc-*-darwin*)
6051 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6052 # sources; use -no-cpp-precomp to get to GNU cpp.
6053 # Apple's GCC has bugs in designated initializer handling, so disable
6054 # that too.
6055 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6056 ;;
6057esac
6058
6059
dfdffa2c 6060# It makes debugging easier if we create as symlinks the stage directories
9cb3fa6f 6061# gcc for stageN-gcc and stagePREV-gcc for stage(N-1). In case this is not
dfdffa2c 6062# possible, however, we can resort to mv.
cac3d6c4 6063echo $ac_n "checking if symbolic links between directories work""... $ac_c" 1>&6
be01d343 6064echo "configure:6065: checking if symbolic links between directories work" >&5
cac3d6c4
CM
6065if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
6066 echo $ac_n "(cached) $ac_c" 1>&6
dfdffa2c
PB
6067else
6068 if test "${LN_S}" = "ln -s" \
6069 && mkdir confdir.s1 \
6070 && ln -s confdir.s1 confdir.s2 \
6071 && echo timestamp1 > confdir.s1/conftest.1 \
6072 && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \
6073 && echo timestamp2 > confdir.s2/conftest.2 \
6074 && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \
6075 && rm -f confdir.s2; then
6076 gcc_cv_prog_ln_s_dir=yes
6077else
b00612cc 6078 gcc_cv_prog_ln_s_dir=no
dfdffa2c
PB
6079fi
6080rm -rf confdir.s1 confdir.s2
6081fi
cac3d6c4
CM
6082
6083echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6
dfdffa2c
PB
6084
6085case ${gcc_cv_prog_ln_s_dir} in
6086 yes)
6087 CREATE_LINK_TO_DIR='ln -s $$1 $$2'
6088 UNDO_LINK_TO_DIR='rm -f $$1' ;;
6089 *)
6090 CREATE_LINK_TO_DIR='mv $$1 $$2'
6091 UNDO_LINK_TO_DIR='mv $$1 $$2' ;;
6092esac
6093
6094
6095
1d39f329
NN
6096# Enable -Werror in bootstrap stage2 and later.
6097# Change the default to "no" on release branches.
6098# Check whether --enable-werror or --disable-werror was given.
6099if test "${enable_werror+set}" = set; then
6100 enableval="$enable_werror"
cac3d6c4 6101 :
1d39f329
NN
6102else
6103 enable_werror=yes
cac3d6c4
CM
6104fi
6105
1a6f2dc7
NN
6106case ${enable_werror} in
6107 yes) stage2_werror_flag="--enable-werror-always" ;;
6108 *) stage2_werror_flag="" ;;
1d39f329
NN
6109esac
6110
6111
cac3d6c4
CM
6112trap '' 1 2 15
6113cat > confcache <<\EOF
a0da8069
NN
6114# This file is a shell script that caches the results of configure
6115# tests run on this system so they can be shared between configure
cac3d6c4
CM
6116# scripts and configure runs. It is not useful on other systems.
6117# If it contains results you don't want to keep, you may remove or edit it.
a0da8069 6118#
cac3d6c4
CM
6119# By default, configure uses ./config.cache as the cache file,
6120# creating it if it does not exist already. You can give configure
6121# the --cache-file=FILE option to use a different cache file; that is
6122# what configure does when it calls configure scripts in
6123# subdirectories, so they share the cache.
6124# Giving --cache-file=/dev/null disables caching, for debugging configure.
6125# config.status only pays attention to the cache file if you give it the
6126# --recheck option to rerun configure.
a0da8069 6127#
cac3d6c4 6128EOF
a0da8069
NN
6129# The following way of writing the cache mishandles newlines in values,
6130# but we know of no workaround that is simple, portable, and efficient.
6131# So, don't put newlines in cache variables' values.
6132# Ultrix sh set writes to stderr and can't be redirected directly,
6133# and sets the high bit in the cache file unless we assign to the vars.
cac3d6c4
CM
6134(set) 2>&1 |
6135 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6136 *ac_space=\ *)
6137 # `set' does not quote correctly, so add quotes (double-quote substitution
6138 # turns \\\\ into \\, and sed turns \\ into \).
6139 sed -n \
6140 -e "s/'/'\\\\''/g" \
6141 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6142 ;;
6143 *)
6144 # `set' quotes correctly as required by POSIX, so do not add quotes.
6145 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6146 ;;
6147 esac >> confcache
6148if cmp -s $cache_file confcache; then
6149 :
6150else
a0da8069 6151 if test -w $cache_file; then
cac3d6c4
CM
6152 echo "updating cache $cache_file"
6153 cat confcache > $cache_file
a0da8069
NN
6154 else
6155 echo "not updating unwritable cache $cache_file"
6156 fi
852e5f18 6157fi
a0da8069 6158rm -f confcache
852e5f18 6159
cac3d6c4
CM
6160trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6161
a0da8069
NN
6162test "x$prefix" = xNONE && prefix=$ac_default_prefix
6163# Let make expand exec_prefix.
6164test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 6165
cac3d6c4
CM
6166# Any assignment to VPATH causes Sun make to only execute
6167# the first set of double-colon rules, so remove it if not needed.
6168# If there is a colon in the path, we need to keep it.
a0da8069 6169if test "x$srcdir" = x.; then
cac3d6c4 6170 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
a0da8069 6171fi
252b5132 6172
cac3d6c4
CM
6173trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6174
a0da8069
NN
6175# Transform confdefs.h into DEFS.
6176# Protect against shell expansion while executing Makefile rules.
6177# Protect against Makefile macro expansion.
cac3d6c4
CM
6178cat > conftest.defs <<\EOF
6179s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
6180s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
6181s%\[%\\&%g
6182s%\]%\\&%g
6183s%\$%$$%g
6184EOF
6185DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
6186rm -f conftest.defs
852e5f18 6187
376a0e54 6188
cac3d6c4 6189# Without the "./", some shells look in PATH for config.status.
376a0e54 6190: ${CONFIG_STATUS=./config.status}
cac3d6c4
CM
6191
6192echo creating $CONFIG_STATUS
6193rm -f $CONFIG_STATUS
6194cat > $CONFIG_STATUS <<EOF
6195#! /bin/sh
6196# Generated automatically by configure.
a0da8069 6197# Run this file to recreate the current configuration.
cac3d6c4
CM
6198# This directory was configured as follows,
6199# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6200#
6201# $0 $ac_configure_args
6202#
a0da8069 6203# Compiler output produced by configure, useful for debugging
cac3d6c4 6204# configure, is in ./config.log if it exists.
376a0e54 6205
cac3d6c4
CM
6206ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6207for ac_option
a0da8069 6208do
cac3d6c4 6209 case "\$ac_option" in
a0da8069 6210 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
cac3d6c4
CM
6211 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6212 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6213 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6214 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6215 exit 0 ;;
6216 -help | --help | --hel | --he | --h)
6217 echo "\$ac_cs_usage"; exit 0 ;;
6218 *) echo "\$ac_cs_usage"; exit 1 ;;
376a0e54
CM
6219 esac
6220done
6221
cac3d6c4
CM
6222ac_given_srcdir=$srcdir
6223ac_given_INSTALL="$INSTALL"
376a0e54 6224
cac3d6c4
CM
6225trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6226EOF
6227cat >> $CONFIG_STATUS <<EOF
376a0e54 6228
cac3d6c4
CM
6229# Protect against being on the right side of a sed subst in config.status.
6230sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6231 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6232$ac_vpsub
6233$extrasub
6234s%@SHELL@%$SHELL%g
6235s%@CFLAGS@%$CFLAGS%g
6236s%@CPPFLAGS@%$CPPFLAGS%g
6237s%@CXXFLAGS@%$CXXFLAGS%g
6238s%@FFLAGS@%$FFLAGS%g
6239s%@DEFS@%$DEFS%g
6240s%@LDFLAGS@%$LDFLAGS%g
6241s%@LIBS@%$LIBS%g
6242s%@exec_prefix@%$exec_prefix%g
6243s%@prefix@%$prefix%g
6244s%@program_transform_name@%$program_transform_name%g
6245s%@bindir@%$bindir%g
6246s%@sbindir@%$sbindir%g
6247s%@libexecdir@%$libexecdir%g
6248s%@datadir@%$datadir%g
6249s%@sysconfdir@%$sysconfdir%g
6250s%@sharedstatedir@%$sharedstatedir%g
6251s%@localstatedir@%$localstatedir%g
6252s%@libdir@%$libdir%g
6253s%@includedir@%$includedir%g
6254s%@oldincludedir@%$oldincludedir%g
6255s%@infodir@%$infodir%g
6256s%@mandir@%$mandir%g
6257s%@host@%$host%g
6258s%@host_alias@%$host_alias%g
6259s%@host_cpu@%$host_cpu%g
6260s%@host_vendor@%$host_vendor%g
6261s%@host_os@%$host_os%g
6262s%@target@%$target%g
6263s%@target_alias@%$target_alias%g
6264s%@target_cpu@%$target_cpu%g
6265s%@target_vendor@%$target_vendor%g
6266s%@target_os@%$target_os%g
6267s%@build@%$build%g
6268s%@build_alias@%$build_alias%g
6269s%@build_cpu@%$build_cpu%g
6270s%@build_vendor@%$build_vendor%g
6271s%@build_os@%$build_os%g
6272s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6273s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6274s%@INSTALL_DATA@%$INSTALL_DATA%g
6275s%@LN@%$LN%g
6276s%@LN_S@%$LN_S%g
6277s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
6278s%@build_subdir@%$build_subdir%g
6279s%@host_subdir@%$host_subdir%g
6280s%@target_subdir@%$target_subdir%g
6281s%@CC@%$CC%g
6282s%@GNATBIND@%$GNATBIND%g
6283s%@do_compare@%$do_compare%g
6284s%@gmplibs@%$gmplibs%g
6285s%@gmpinc@%$gmpinc%g
6286s%@stage1_languages@%$stage1_languages%g
6287s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
cac3d6c4 6288s%@bootstrap_lean@%$bootstrap_lean%g
a0da8069 6289/@serialization_dependencies@/r $serialization_dependencies
cac3d6c4 6290s%@serialization_dependencies@%%g
a0da8069 6291/@host_makefile_frag@/r $host_makefile_frag
cac3d6c4 6292s%@host_makefile_frag@%%g
a0da8069 6293/@target_makefile_frag@/r $target_makefile_frag
cac3d6c4 6294s%@target_makefile_frag@%%g
a0da8069 6295/@alphaieee_frag@/r $alphaieee_frag
cac3d6c4 6296s%@alphaieee_frag@%%g
a0da8069 6297/@ospace_frag@/r $ospace_frag
cac3d6c4
CM
6298s%@ospace_frag@%%g
6299s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
6300s%@BUILD_PREFIX@%$BUILD_PREFIX%g
6301s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
6302s%@tooldir@%$tooldir%g
6303s%@build_tooldir@%$build_tooldir%g
907be67c 6304s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
cac3d6c4 6305s%@GDB_TK@%$GDB_TK%g
907be67c 6306s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
cac3d6c4
CM
6307s%@build_configargs@%$build_configargs%g
6308s%@build_configdirs@%$build_configdirs%g
6309s%@host_configargs@%$host_configargs%g
6310s%@configdirs@%$configdirs%g
6311s%@target_configargs@%$target_configargs%g
6312s%@target_configdirs@%$target_configdirs%g
6313s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
6314s%@config_shell@%$config_shell%g
be01d343
PB
6315s%@YACC@%$YACC%g
6316s%@BISON@%$BISON%g
6317s%@M4@%$M4%g
6318s%@LEX@%$LEX%g
6319s%@FLEX@%$FLEX%g
6320s%@MAKEINFO@%$MAKEINFO%g
6321s%@EXPECT@%$EXPECT%g
6322s%@RUNTEST@%$RUNTEST%g
cac3d6c4
CM
6323s%@AR@%$AR%g
6324s%@AS@%$AS%g
6325s%@DLLTOOL@%$DLLTOOL%g
6326s%@LD@%$LD%g
be01d343 6327s%@LIPO@%$LIPO%g
cac3d6c4
CM
6328s%@NM@%$NM%g
6329s%@RANLIB@%$RANLIB%g
be01d343 6330s%@STRIP@%$STRIP%g
cac3d6c4
CM
6331s%@WINDRES@%$WINDRES%g
6332s%@OBJCOPY@%$OBJCOPY%g
6333s%@OBJDUMP@%$OBJDUMP%g
6334s%@CXX@%$CXX%g
6335s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
6336s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
6337s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
6338s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
6339s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
6340s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
6341s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
6342s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
6343s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
6344s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
6345s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
6346s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
5ae72758 6347s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
cac3d6c4
CM
6348s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
6349s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
6350s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
cac3d6c4
CM
6351s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
6352s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
be01d343
PB
6353s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
6354s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
6355s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
cac3d6c4
CM
6356s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6357s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6358s%@MAINT@%$MAINT%g
6359s%@stage1_cflags@%$stage1_cflags%g
6360s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g
6361s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g
6362s%@stage2_werror_flag@%$stage2_werror_flag%g
6363
a0da8069 6364CEOF
cac3d6c4 6365EOF
252b5132 6366
cac3d6c4
CM
6367cat >> $CONFIG_STATUS <<\EOF
6368
6369# Split the substitutions into bite-sized pieces for seds with
6370# small command number limits, like on Digital OSF/1 and HP-UX.
6371ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6372ac_file=1 # Number of current file.
6373ac_beg=1 # First line for current file.
6374ac_end=$ac_max_sed_cmds # Line after last line for current file.
6375ac_more_lines=:
6376ac_sed_cmds=""
6377while $ac_more_lines; do
6378 if test $ac_beg -gt 1; then
6379 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6380 else
6381 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6382 fi
6383 if test ! -s conftest.s$ac_file; then
6384 ac_more_lines=false
6385 rm -f conftest.s$ac_file
6386 else
6387 if test -z "$ac_sed_cmds"; then
6388 ac_sed_cmds="sed -f conftest.s$ac_file"
a0da8069 6389 else
cac3d6c4 6390 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
a0da8069 6391 fi
cac3d6c4
CM
6392 ac_file=`expr $ac_file + 1`
6393 ac_beg=$ac_end
6394 ac_end=`expr $ac_end + $ac_max_sed_cmds`
852e5f18 6395 fi
cac3d6c4
CM
6396done
6397if test -z "$ac_sed_cmds"; then
6398 ac_sed_cmds=cat
6399fi
6400EOF
6401
6402cat >> $CONFIG_STATUS <<EOF
252b5132 6403
cac3d6c4
CM
6404CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
6405EOF
6406cat >> $CONFIG_STATUS <<\EOF
6407for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
a0da8069 6408 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
cac3d6c4
CM
6409 case "$ac_file" in
6410 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6411 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6412 *) ac_file_in="${ac_file}.in" ;;
a0da8069 6413 esac
252b5132 6414
cac3d6c4 6415 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
376a0e54 6416
cac3d6c4
CM
6417 # Remove last slash and all that follows it. Not all systems have dirname.
6418 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6419 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6420 # The file is in a subdirectory.
6421 test ! -d "$ac_dir" && mkdir "$ac_dir"
6422 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6423 # A "../" for each directory in $ac_dir_suffix.
6424 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6425 else
6426 ac_dir_suffix= ac_dots=
6427 fi
252b5132 6428
cac3d6c4
CM
6429 case "$ac_given_srcdir" in
6430 .) srcdir=.
6431 if test -z "$ac_dots"; then top_srcdir=.
6432 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6433 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
a0da8069 6434 *) # Relative path.
cac3d6c4
CM
6435 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6436 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6437 esac
252b5132 6438
cac3d6c4
CM
6439 case "$ac_given_INSTALL" in
6440 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6441 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6442 esac
252b5132 6443
cac3d6c4
CM
6444 echo creating "$ac_file"
6445 rm -f "$ac_file"
6446 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6447 case "$ac_file" in
6448 *Makefile*) ac_comsub="1i\\
6449# $configure_input" ;;
6450 *) ac_comsub= ;;
a0da8069 6451 esac
252b5132 6452
cac3d6c4
CM
6453 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6454 sed -e "$ac_comsub
6455s%@configure_input@%$configure_input%g
6456s%@srcdir@%$srcdir%g
6457s%@top_srcdir@%$top_srcdir%g
6458s%@INSTALL@%$INSTALL%g
6459" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6460fi; done
6461rm -f conftest.s*
c148b4cb 6462
cac3d6c4
CM
6463EOF
6464cat >> $CONFIG_STATUS <<EOF
c148b4cb 6465
cac3d6c4
CM
6466EOF
6467cat >> $CONFIG_STATUS <<\EOF
c148b4cb 6468
cac3d6c4
CM
6469exit 0
6470EOF
c148b4cb 6471chmod +x $CONFIG_STATUS
cac3d6c4
CM
6472rm -fr confdefs* $ac_clean_files
6473test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
c148b4cb 6474
This page took 0.704373 seconds and 4 git commands to generate.