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