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