* doc/rtl.texi: Fix a typo.
[official-gcc.git] / configure
blob8ea820ae53ef192a0fc596e9dde6e24cd6850846
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*-hp-hpux11*)
1390 noconfigdirs="$noconfigdirs ld shellutils"
1392 hppa*-*-*)
1393 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1394 # build on HP-UX 10.20.
1395 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1397 i960-*-*)
1398 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1400 ia64*-*-elf*)
1401 # No gdb support yet.
1402 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1404 ia64*-**-hpux*)
1405 # No gdb or ld support yet.
1406 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1408 i370-*-opened*)
1410 i[3456789]86-*-coff | i[3456789]86-*-elf)
1411 noconfigdirs="$noconfigdirs ${libgcj}"
1413 i[3456789]86-*-linux*)
1414 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1415 # not build java stuff by default.
1416 case "${target}" in
1417 *-*-*libc1*)
1418 noconfigdirs="$noconfigdirs ${libgcj}";;
1419 esac
1421 # This section makes it possible to build newlib natively on linux.
1422 # If we are using a cross compiler then don't configure newlib.
1423 if test x${is_cross_compiler} != xno ; then
1424 noconfigdirs="$noconfigdirs target-newlib"
1426 noconfigdirs="$noconfigdirs target-libgloss"
1427 # If we are not using a cross compiler, do configure newlib.
1428 # Note however, that newlib will only be configured in this situation
1429 # if the --with-newlib option has been given, because otherwise
1430 # 'target-newlib' will appear in skipdirs.
1432 i[3456789]86-*-mingw32*)
1433 target_configdirs="$target_configdirs target-mingw"
1434 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1436 # Can't build gdb for mingw32 if not native.
1437 case "${host}" in
1438 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1439 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1441 esac
1443 *-*-cygwin*)
1444 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1445 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1446 # always build newlib if winsup directory is present.
1447 if test -d "$srcdir/winsup"; then
1448 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1449 elif test -d "$srcdir/newlib"; then
1450 echo "Warning: winsup is missing so newlib can't be built."
1453 # Can't build gdb for Cygwin if not native.
1454 case "${host}" in
1455 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1456 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1458 esac
1460 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1461 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1463 i[3456789]86-*-pe)
1464 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1466 i[3456789]86-*-sco3.2v5*)
1467 # The linker does not yet know about weak symbols in COFF,
1468 # and is not configured to handle mixed ELF and COFF.
1469 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1471 i[3456789]86-*-sco*)
1472 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1474 i[3456789]86-*-solaris2*)
1475 noconfigdirs="$noconfigdirs target-libgloss"
1477 i[3456789]86-*-sysv4*)
1478 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1480 i[3456789]86-*-beos*)
1481 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1483 i[3456789]86-*-rdos*)
1484 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1486 m32r-*-*)
1487 noconfigdirs="$noconfigdirs ${libgcj}"
1489 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1490 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1492 m68k-*-elf*)
1493 noconfigdirs="$noconfigdirs ${libgcj}"
1495 m68k-*-coff*)
1496 noconfigdirs="$noconfigdirs ${libgcj}"
1498 mcore-*-pe*)
1499 # The EPOC C++ environment does not support exceptions or rtti,
1500 # and so building libstdc++-v3 tends not to always work.
1501 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1503 mmix-*-*)
1504 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1505 unsupported_languages="$unsupported_languages fortran java"
1507 mn10200-*-*)
1508 noconfigdirs="$noconfigdirs ${libgcj}"
1510 mn10300-*-*)
1511 noconfigdirs="$noconfigdirs ${libgcj}"
1513 mt-*-*)
1514 noconfigdirs="$noconfigdirs sim"
1516 powerpc-*-aix*)
1517 # copied from rs6000-*-* entry
1518 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1520 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1521 target_configdirs="$target_configdirs target-winsup"
1522 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1523 # always build newlib.
1524 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1526 # This is temporary until we can link against shared libraries
1527 powerpcle-*-solaris*)
1528 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1530 powerpc-*-beos*)
1531 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1533 powerpc-*-eabi)
1534 noconfigdirs="$noconfigdirs ${libgcj}"
1536 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1538 rs6000-*-lynxos*)
1539 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1541 rs6000-*-aix*)
1542 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1544 rs6000-*-*)
1545 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1547 m68k-apollo-*)
1548 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1550 mips*-*-irix5*)
1551 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1553 mips*-*-irix6*)
1554 # Linking libjava exceeds command-line length limits on at least
1555 # IRIX 6.2, but not on IRIX 6.5.
1556 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1557 # <oldham@codesourcery.com>
1558 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1560 mips*-dec-bsd*)
1561 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1563 mips*-*-bsd*)
1564 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1566 mipstx39-*-*)
1567 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1569 mips64*-*-linux*)
1570 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1572 mips*-*-linux*)
1573 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1575 mips*-*-*)
1576 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1578 romp-*-*)
1579 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1581 sh-*-* | sh64-*-*)
1582 case "${host}" in
1583 i[3456789]86-*-vsta) ;; # don't add gprof back in
1584 i[3456789]86-*-go32*) ;; # don't add gprof back in
1585 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1586 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1587 esac
1588 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1590 sparc-*-elf*)
1591 noconfigdirs="$noconfigdirs ${libgcj}"
1593 sparc64-*-elf*)
1594 noconfigdirs="$noconfigdirs ${libgcj}"
1596 sparclite-*-*)
1597 noconfigdirs="$noconfigdirs ${libgcj}"
1599 sparc-*-sunos4*)
1600 noconfigdirs="$noconfigdirs ${libgcj}"
1601 if test x${is_cross_compiler} != xno ; then
1602 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1603 else
1604 use_gnu_ld=no
1607 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1608 noconfigdirs="$noconfigdirs ${libgcj}"
1610 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1612 v810-*-*)
1613 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1615 v850-*-*)
1616 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1618 v850e-*-*)
1619 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1621 v850ea-*-*)
1622 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1624 vax-*-vms)
1625 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1627 vax-*-*)
1628 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1630 xtensa-*-*)
1631 noconfigdirs="$noconfigdirs ${libgcj}"
1633 ip2k-*-*)
1634 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1636 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1639 *-*-lynxos*)
1640 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1642 *-*-*)
1643 noconfigdirs="$noconfigdirs ${libgcj}"
1645 esac
1647 # If we aren't building newlib, then don't build libgloss, since libgloss
1648 # depends upon some newlib header files.
1649 case "${noconfigdirs}" in
1650 *target-libgloss*) ;;
1651 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1652 esac
1654 # Work in distributions that contain no compiler tools, like Autoconf.
1655 tentative_cc=""
1656 host_makefile_frag=/dev/null
1657 if test -d ${srcdir}/config ; then
1658 case "${host}" in
1659 m68k-hp-hpux*)
1660 # Avoid "too much defining" errors from HPUX compiler.
1661 tentative_cc="cc -Wp,-H256000"
1662 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1663 # If it's HP/UX ar, this should be harmless.
1664 RANLIB="ar ts"
1666 m68k-apollo-sysv*)
1667 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1669 m68k-apollo-bsd*)
1670 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1671 # chokes on bfd, the compiler won't let you assign integers to enums, and
1672 # other problems. Defining CC to gcc is a questionable way to say "don't use
1673 # the apollo compiler" (the preferred version of GCC could be called cc,
1674 # or whatever), but I'm not sure leaving CC as cc is any better...
1675 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1676 # Used to have BISON=yacc.
1677 tentative_cc=gcc
1679 m88k-dg-dgux*)
1680 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1682 m88k-harris-cxux*)
1683 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1684 tentative_cc="cc -Xa"
1685 host_makefile_frag="config/mh-cxux"
1687 m88k-motorola-sysv*)
1689 mips*-dec-ultrix*)
1690 tentative_cc="cc -Wf,-XNg1000"
1691 host_makefile_frag="config/mh-decstation"
1693 mips*-nec-sysv4*)
1694 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1695 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1696 host_makefile_frag="config/mh-necv4"
1698 mips*-sgi-irix4*)
1699 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1700 # environment. Also bump switch table size so that cp-parse will
1701 # compile. Bump string length limit so linker builds.
1702 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1704 mips*-*-sysv4*)
1705 host_makefile_frag="config/mh-sysv4"
1707 mips*-*-sysv*)
1708 # This is for a MIPS running RISC/os 4.52C.
1710 # This is needed for GDB, but needs to be in the top-level make because
1711 # if a library is compiled with the bsd headers and gets linked with the
1712 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1713 # a different size).
1714 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1715 # known except to select the sysv environment. Could we use /proc instead?
1716 # These "sysv environments" and "bsd environments" often end up being a pain.
1718 # This is not part of CFLAGS because perhaps not all C compilers have this
1719 # option.
1720 tentative_cc="cc -systype sysv"
1722 i370-ibm-opened*)
1723 tentative_cc="c89"
1725 i[3456789]86-*-sysv5*)
1726 host_makefile_frag="config/mh-sysv5"
1728 i[3456789]86-*-dgux*)
1729 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1730 host_makefile_frag="config/mh-dgux386"
1732 i[3456789]86-ncr-sysv4.3*)
1733 # The MetaWare compiler will generate a copyright message unless you
1734 # turn it off by adding the -Hnocopyr flag.
1735 tentative_cc="cc -Hnocopyr"
1737 i[3456789]86-ncr-sysv4*)
1738 # for an NCR 3000 (i486/SVR4) system.
1739 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1740 # This compiler not only emits obnoxious copyright messages every time
1741 # you run it, but it chokes and dies on a whole bunch of GNU source
1742 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1743 tentative_cc="/usr/ccs/ATT/cc"
1744 host_makefile_frag="config/mh-ncr3000"
1746 i[3456789]86-*-sco3.2v5*)
1748 i[3456789]86-*-sco*)
1749 # The native C compiler botches some simple uses of const. Unfortunately,
1750 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1751 tentative_cc="cc -Dconst="
1752 host_makefile_frag="config/mh-sco"
1754 i[3456789]86-*-udk*)
1755 host_makefile_frag="config/mh-sysv5"
1757 i[3456789]86-*-solaris2*)
1758 host_makefile_frag="config/mh-sysv4"
1760 i[3456789]86-*-msdosdjgpp*)
1761 host_makefile_frag="config/mh-djgpp"
1763 *-cygwin*)
1764 host_makefile_frag="config/mh-cygwin"
1766 *-mingw32*)
1768 *-interix*)
1769 host_makefile_frag="config/mh-interix"
1771 vax-*-ultrix2*)
1772 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1773 tentative_cc=gcc
1775 *-*-solaris2*)
1776 host_makefile_frag="config/mh-solaris"
1778 m68k-sun-sunos*)
1779 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1780 # without overflowing the jump tables (-J says to use a 32 bit table)
1781 tentative_cc="cc -J"
1783 *-hp-hpux*)
1784 tentative_cc="cc -Wp,-H256000"
1786 *-*-hiux*)
1787 tentative_cc="cc -Wp,-H256000"
1789 rs6000-*-lynxos*)
1790 # /bin/cc is less than useful for our purposes. Always use GCC
1791 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1792 host_makefile_frag="config/mh-lynxrs6k"
1794 powerpc-*-darwin*)
1795 host_makefile_frag="config/mh-ppc-darwin"
1797 powerpc-*-aix*)
1798 host_makefile_frag="config/mh-ppc-aix"
1800 rs6000-*-aix*)
1801 host_makefile_frag="config/mh-ppc-aix"
1803 *-*-lynxos*)
1804 # /bin/cc is less than useful for our purposes. Always use GCC
1805 tentative_cc="/bin/gcc"
1807 *-*-sysv4*)
1808 host_makefile_frag="config/mh-sysv4"
1810 # This is placed last to prevent interfering with the cases above.
1811 i[3456789]86-*-*)
1812 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1813 host_makefile_frag="config/mh-x86omitfp"
1815 esac
1818 # If we aren't going to be using gcc, see if we can extract a definition
1819 # of CC from the fragment.
1820 # Actually, use the 'pre-extracted' version above.
1821 if test -z "${CC}" && test "${build}" = "${host}" ; then
1822 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1823 found=
1824 for dir in $PATH; do
1825 test -z "$dir" && dir=.
1826 if test -f $dir/gcc; then
1827 found=yes
1828 break
1830 done
1831 IFS="$save_ifs"
1832 if test -z "${found}" && test -n "${tentative_cc}" ; then
1833 CC=$tentative_cc
1837 if test "${build}" != "${host}" ; then
1838 # If we are doing a Canadian Cross, in which the host and build systems
1839 # are not the same, we set reasonable default values for the tools.
1841 CC=${CC-${host_alias}-gcc}
1842 CFLAGS=${CFLAGS-"-g -O2"}
1843 CXX=${CXX-${host_alias}-c++}
1844 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1845 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1847 else
1848 # Set reasonable default values for some tools even if not Canadian.
1849 # Of course, these are different reasonable default values, originally
1850 # specified directly in the Makefile.
1851 # We don't export, so that autoconf can do its job.
1852 # Note that all these settings are above the fragment inclusion point
1853 # in Makefile.in, so can still be overridden by fragments.
1854 # This is all going to change when we autoconfiscate...
1856 CC_FOR_BUILD="\$(CC)"
1857 # Extract the first word of "gcc", so it can be a program name with args.
1858 set dummy gcc; ac_word=$2
1859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1860 echo "configure:1861: checking for $ac_word" >&5
1861 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1863 else
1864 if test -n "$CC"; then
1865 ac_cv_prog_CC="$CC" # Let the user override the test.
1866 else
1867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1868 ac_dummy="$PATH"
1869 for ac_dir in $ac_dummy; do
1870 test -z "$ac_dir" && ac_dir=.
1871 if test -f $ac_dir/$ac_word; then
1872 ac_cv_prog_CC="gcc"
1873 break
1875 done
1876 IFS="$ac_save_ifs"
1879 CC="$ac_cv_prog_CC"
1880 if test -n "$CC"; then
1881 echo "$ac_t""$CC" 1>&6
1882 else
1883 echo "$ac_t""no" 1>&6
1886 if test -z "$CC"; then
1887 # Extract the first word of "cc", so it can be a program name with args.
1888 set dummy cc; ac_word=$2
1889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1890 echo "configure:1891: checking for $ac_word" >&5
1891 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&6
1893 else
1894 if test -n "$CC"; then
1895 ac_cv_prog_CC="$CC" # Let the user override the test.
1896 else
1897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1898 ac_prog_rejected=no
1899 ac_dummy="$PATH"
1900 for ac_dir in $ac_dummy; do
1901 test -z "$ac_dir" && ac_dir=.
1902 if test -f $ac_dir/$ac_word; then
1903 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1904 ac_prog_rejected=yes
1905 continue
1907 ac_cv_prog_CC="cc"
1908 break
1910 done
1911 IFS="$ac_save_ifs"
1912 if test $ac_prog_rejected = yes; then
1913 # We found a bogon in the path, so make sure we never use it.
1914 set dummy $ac_cv_prog_CC
1915 shift
1916 if test $# -gt 0; then
1917 # We chose a different compiler from the bogus one.
1918 # However, it has the same basename, so the bogon will be chosen
1919 # first if we set CC to just the basename; use the full file name.
1920 shift
1921 set dummy "$ac_dir/$ac_word" "$@"
1922 shift
1923 ac_cv_prog_CC="$@"
1928 CC="$ac_cv_prog_CC"
1929 if test -n "$CC"; then
1930 echo "$ac_t""$CC" 1>&6
1931 else
1932 echo "$ac_t""no" 1>&6
1935 if test -z "$CC"; then
1936 case "`uname -s`" in
1937 *win32* | *WIN32*)
1938 # Extract the first word of "cl", so it can be a program name with args.
1939 set dummy cl; ac_word=$2
1940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1941 echo "configure:1942: checking for $ac_word" >&5
1942 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1944 else
1945 if test -n "$CC"; then
1946 ac_cv_prog_CC="$CC" # Let the user override the test.
1947 else
1948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1949 ac_dummy="$PATH"
1950 for ac_dir in $ac_dummy; do
1951 test -z "$ac_dir" && ac_dir=.
1952 if test -f $ac_dir/$ac_word; then
1953 ac_cv_prog_CC="cl"
1954 break
1956 done
1957 IFS="$ac_save_ifs"
1960 CC="$ac_cv_prog_CC"
1961 if test -n "$CC"; then
1962 echo "$ac_t""$CC" 1>&6
1963 else
1964 echo "$ac_t""no" 1>&6
1967 esac
1969 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1972 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1973 echo "configure:1974: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1975 ac_ext=c
1976 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1979 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1980 cross_compiling=$ac_cv_prog_cc_cross
1982 cat > conftest.$ac_ext << EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1987 main(){return(0);}
1989 if { (eval echo configure:1990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1990 ac_cv_prog_cc_works=yes
1991 # If we can't run a trivial program, we are probably using a cross compiler.
1992 if (./conftest; exit) 2>/dev/null; then
1993 ac_cv_prog_cc_cross=no
1994 else
1995 ac_cv_prog_cc_cross=yes
1997 else
1998 echo "configure: failed program was:" >&5
1999 cat conftest.$ac_ext >&5
2000 ac_cv_prog_cc_works=no
2002 rm -fr conftest*
2003 ac_ext=c
2004 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2005 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2007 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2008 cross_compiling=$ac_cv_prog_cc_cross
2010 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2011 if test $ac_cv_prog_cc_works = no; then
2012 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2014 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2015 echo "configure:2016: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2016 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2017 cross_compiling=$ac_cv_prog_cc_cross
2019 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2020 echo "configure:2021: checking whether we are using GNU C" >&5
2021 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2023 else
2024 cat > conftest.c <<EOF
2025 #ifdef __GNUC__
2026 yes;
2027 #endif
2029 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2030 ac_cv_prog_gcc=yes
2031 else
2032 ac_cv_prog_gcc=no
2036 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2038 if test $ac_cv_prog_gcc = yes; then
2039 GCC=yes
2040 else
2041 GCC=
2044 ac_test_CFLAGS="${CFLAGS+set}"
2045 ac_save_CFLAGS="$CFLAGS"
2046 CFLAGS=
2047 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2048 echo "configure:2049: checking whether ${CC-cc} accepts -g" >&5
2049 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2051 else
2052 echo 'void f(){}' > conftest.c
2053 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2054 ac_cv_prog_cc_g=yes
2055 else
2056 ac_cv_prog_cc_g=no
2058 rm -f conftest*
2062 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2063 if test "$ac_test_CFLAGS" = set; then
2064 CFLAGS="$ac_save_CFLAGS"
2065 elif test $ac_cv_prog_cc_g = yes; then
2066 if test "$GCC" = yes; then
2067 CFLAGS="-g -O2"
2068 else
2069 CFLAGS="-g"
2071 else
2072 if test "$GCC" = yes; then
2073 CFLAGS="-O2"
2074 else
2075 CFLAGS=
2080 # We must set the default linker to the linker used by gcc for the correct
2081 # operation of libtool. If LD is not defined and we are using gcc, try to
2082 # set the LD default to the ld used by gcc.
2083 if test -z "$LD"; then
2084 if test "$GCC" = yes; then
2085 case $build in
2086 *-*-mingw*)
2087 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2089 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2090 esac
2091 case $gcc_prog_ld in
2092 # Accept absolute paths.
2093 [\\/]* | [A-Za-z]:[\\/]*)
2094 LD="$gcc_prog_ld" ;;
2095 esac
2099 CXX=${CXX-"c++"}
2100 CFLAGS=${CFLAGS-"-g"}
2101 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2104 if test $host != $build; then
2105 ac_tool_prefix=${host_alias}-
2106 else
2107 ac_tool_prefix=
2112 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2113 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2115 echo "configure:2116: checking for $ac_word" >&5
2116 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2118 else
2119 if test -n "$GNATBIND"; then
2120 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2121 else
2122 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2123 ac_dummy="$PATH"
2124 for ac_dir in $ac_dummy; do
2125 test -z "$ac_dir" && ac_dir=.
2126 if test -f $ac_dir/$ac_word; then
2127 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2128 break
2130 done
2131 IFS="$ac_save_ifs"
2134 GNATBIND="$ac_cv_prog_GNATBIND"
2135 if test -n "$GNATBIND"; then
2136 echo "$ac_t""$GNATBIND" 1>&6
2137 else
2138 echo "$ac_t""no" 1>&6
2142 if test -z "$ac_cv_prog_GNATBIND"; then
2143 if test -n "$ac_tool_prefix"; then
2144 # Extract the first word of "gnatbind", so it can be a program name with args.
2145 set dummy gnatbind; ac_word=$2
2146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2147 echo "configure:2148: checking for $ac_word" >&5
2148 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2150 else
2151 if test -n "$GNATBIND"; then
2152 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2153 else
2154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2155 ac_dummy="$PATH"
2156 for ac_dir in $ac_dummy; do
2157 test -z "$ac_dir" && ac_dir=.
2158 if test -f $ac_dir/$ac_word; then
2159 ac_cv_prog_GNATBIND="gnatbind"
2160 break
2162 done
2163 IFS="$ac_save_ifs"
2164 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2167 GNATBIND="$ac_cv_prog_GNATBIND"
2168 if test -n "$GNATBIND"; then
2169 echo "$ac_t""$GNATBIND" 1>&6
2170 else
2171 echo "$ac_t""no" 1>&6
2174 else
2175 GNATBIND="no"
2179 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2180 echo "configure:2181: checking whether compiler driver understands Ada" >&5
2181 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2183 else
2184 cat >conftest.adb <<EOF
2185 procedure conftest is begin null; end conftest;
2187 acx_cv_cc_gcc_supports_ada=no
2188 # There is a bug in old released versions of GCC which causes the
2189 # driver to exit successfully when the appropriate language module
2190 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2191 # Therefore we must check for the error message as well as an
2192 # unsuccessful exit.
2193 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2194 # given a .adb file, but produce no object file. So we must check
2195 # if an object file was really produced to guard against this.
2196 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2197 if test x"$errors" = x && test -f conftest.$ac_objext; then
2198 acx_cv_cc_gcc_supports_ada=yes
2200 rm -f conftest.*
2203 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2205 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2206 have_gnat=yes
2207 else
2208 have_gnat=no
2211 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2212 echo "configure:2213: checking how to compare bootstrapped objects" >&5
2213 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2215 else
2216 echo abfoo >t1
2217 echo cdfoo >t2
2218 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2219 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2220 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2222 else
2223 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2226 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2227 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2229 else
2230 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2233 rm t1 t2
2237 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2238 do_compare="$gcc_cv_prog_cmp_skip"
2242 # Check for GMP and MPFR
2243 gmplibs=
2244 gmpinc=
2245 have_gmp=yes
2246 # Specify a location for mpfr
2247 # check for this first so it ends up on the link line before gmp.
2248 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2249 if test "${with_mpfr_dir+set}" = set; then
2250 withval="$with_mpfr_dir"
2255 if test "x$with_mpfr_dir" != x; then
2256 gmpinc="-I$with_mpfr_dir"
2257 gmplibs="$with_mpfr_dir/libmpfr.a"
2258 else
2259 gmplibs="-lmpfr"
2262 # Check whether --with-mpfr or --without-mpfr was given.
2263 if test "${with_mpfr+set}" = set; then
2264 withval="$with_mpfr"
2269 if test "x$with_mpfr" != x; then
2270 gmplibs="-L$with_mpfr/lib $gmplibs"
2271 gmpinc="-I$with_mpfr/include"
2274 # Specify a location for gmp
2275 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2276 if test "${with_gmp_dir+set}" = set; then
2277 withval="$with_gmp_dir"
2282 if test "x$with_gmp_dir" != x; then
2283 gmpinc="$gmpinc -I$with_gmp_dir"
2284 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2285 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2286 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2287 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2289 # One of the later tests will catch the error if neither library is present.
2290 else
2291 gmplibs="$gmplibs -lgmp"
2294 # Check whether --with-gmp or --without-gmp was given.
2295 if test "${with_gmp+set}" = set; then
2296 withval="$with_gmp"
2301 if test "x$with_gmp" != x; then
2302 gmplibs="-L$with_gmp/lib $gmplibs"
2303 gmpinc="-I$with_gmp/include $gmpinc"
2306 saved_CFLAGS="$CFLAGS"
2307 CFLAGS="$CFLAGS $gmpinc"
2308 # Check GMP actually works
2309 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2310 echo "configure:2311: checking for correct version of gmp.h" >&5
2311 cat > conftest.$ac_ext <<EOF
2312 #line 2313 "configure"
2313 #include "confdefs.h"
2314 #include "gmp.h"
2315 int main() {
2317 #if __GNU_MP_VERSION < 3
2318 choke me
2319 #endif
2321 ; return 0; }
2323 if { (eval echo configure:2324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2324 rm -rf conftest*
2325 echo "$ac_t""yes" 1>&6
2326 else
2327 echo "configure: failed program was:" >&5
2328 cat conftest.$ac_ext >&5
2329 rm -rf conftest*
2330 echo "$ac_t""no" 1>&6; have_gmp=no
2332 rm -f conftest*
2334 if test x"$have_gmp" = xyes; then
2335 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2336 echo "configure:2337: checking for MPFR" >&5
2338 saved_LIBS="$LIBS"
2339 LIBS="$LIBS $gmplibs"
2340 cat > conftest.$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2343 #include <gmp.h>
2344 #include <mpfr.h>
2345 int main() {
2346 mpfr_t n; mpfr_init(n);
2347 ; return 0; }
2349 if { (eval echo configure:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2350 rm -rf conftest*
2351 echo "$ac_t""yes" 1>&6
2352 else
2353 echo "configure: failed program was:" >&5
2354 cat conftest.$ac_ext >&5
2355 rm -rf conftest*
2356 echo "$ac_t""no" 1>&6; have_gmp=no
2358 rm -f conftest*
2359 LIBS="$saved_LIBS"
2361 CFLAGS="$saved_CFLAGS"
2363 # Flags needed for both GMP and/or MPFR
2367 # By default, C is the only stage 1 language.
2368 stage1_languages=c
2371 # Figure out what language subdirectories are present.
2372 # Look if the user specified --enable-languages="..."; if not, use
2373 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2374 # go away some day.
2375 # NB: embedded tabs in this IF block -- do not untabify
2376 if test -d ${srcdir}/gcc; then
2377 if test x"${enable_languages+set}" != xset; then
2378 if test x"${LANGUAGES+set}" = xset; then
2379 enable_languages="${LANGUAGES}"
2380 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2381 else
2382 enable_languages=all
2384 else
2385 if test x"${enable_languages}" = x ||
2386 test x"${enable_languages}" = xyes;
2387 then
2388 echo configure.in: --enable-languages needs at least one language argument 1>&2
2389 exit 1
2392 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2394 # 'f95' is the old name for the 'fortran' language. We issue a warning
2395 # and make the substitution.
2396 case ,${enable_languages}, in
2397 *,f95,*)
2398 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2399 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2401 esac
2403 # First scan to see if an enabled language requires some other language.
2404 # We assume that a given config-lang.in will list all the language
2405 # front ends it requires, even if some are required indirectly.
2406 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2407 case ${lang_frag} in
2408 ..) ;;
2409 # The odd quoting in the next line works around
2410 # an apparent bug in bash 1.12 on linux.
2411 ${srcdir}/gcc/[*]/config-lang.in) ;;
2413 # From the config-lang.in, get $language, $lang_requires
2414 language=
2415 lang_requires=
2416 . ${lang_frag}
2417 for other in ${lang_requires} ; do
2418 case ,${enable_languages}, in
2419 *,$other,*) ;;
2420 *,all,*) ;;
2421 *,$language,*)
2422 echo " \`$other' language required by \`$language'; enabling" 1>&2
2423 enable_languages="${enable_languages},${other}"
2425 esac
2426 done
2428 esac
2429 done
2431 new_enable_languages=c
2432 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2433 potential_languages=c
2435 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2436 case ${lang_frag} in
2437 ..) ;;
2438 # The odd quoting in the next line works around
2439 # an apparent bug in bash 1.12 on linux.
2440 ${srcdir}/gcc/[*]/config-lang.in) ;;
2442 # From the config-lang.in, get $language, $target_libs,
2443 # $lang_dirs, $boot_language, and $build_by_default
2444 language=
2445 target_libs=
2446 lang_dirs=
2447 boot_language=
2448 build_by_default=
2449 need_gmp=
2450 . ${lang_frag}
2451 potential_languages="${potential_languages},${language}"
2452 # This is quite sensitive to the ordering of the case statement arms.
2453 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2454 *::*:*)
2455 echo "${lang_frag} doesn't set \$language." 1>&2
2456 exit 1
2458 *:ada:no:*)
2459 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2460 add_this_lang=no
2462 *,${language},*:*:*:*)
2463 # Language was explicitly selected; include it.
2464 add_this_lang=yes
2466 *,all,*:*:*:no)
2467 # 'all' was selected, but this is not a default language
2468 # so do not include it.
2469 add_this_lang=no
2471 *,all,*:*:*:*)
2472 # 'all' was selected and this is a default language; include it.
2473 add_this_lang=yes
2476 add_this_lang=no
2478 esac
2480 # Disable languages that need GMP if it isn't available.
2481 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2482 *,${language},*:no:yes)
2483 # Specifically requested language; tell them.
2484 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2486 *:no:yes)
2487 # Silently disable.
2488 add_this_lang=no
2490 esac
2492 # Disable a language that is unsupported by the target.
2493 case " $unsupported_languages " in
2494 *" $language "*)
2495 add_this_lang=no
2497 esac
2499 case $add_this_lang in
2501 # Remove language-dependent dirs.
2502 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2505 new_enable_languages="$new_enable_languages,$language"
2506 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2507 case ${boot_language} in
2508 yes)
2509 # Add to (comma-separated) list of stage 1 languages.
2510 stage1_languages="${stage1_languages},${language}"
2512 esac
2514 esac
2516 esac
2517 done
2519 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2520 if test "x$missing_languages" != x; then
2521 { echo "configure: error:
2522 The following requested languages could not be built: ${missing_languages}
2523 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2526 if test "x$new_enable_languages" != "x$enable_languages"; then
2527 echo The following languages will be built: ${new_enable_languages}
2529 enable_languages="$new_enable_languages"
2530 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2533 # Handle --disable-<component> generically.
2534 for dir in $configdirs $build_configdirs $target_configdirs ; do
2535 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2536 if eval test x\${enable_${dirname}} "=" xno ; then
2537 noconfigdirs="$noconfigdirs $dir"
2539 done
2541 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2542 # $build_configdirs and $target_configdirs.
2543 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2545 notsupp=""
2546 for dir in . $skipdirs $noconfigdirs ; do
2547 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2548 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2549 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2550 if test -r $srcdir/$dirname/configure ; then
2551 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2552 true
2553 else
2554 notsupp="$notsupp $dir"
2558 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2559 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2560 if test -r $srcdir/$dirname/configure ; then
2561 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2562 true
2563 else
2564 notsupp="$notsupp $dir"
2568 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2569 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2570 if test -r $srcdir/$dirname/configure ; then
2571 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2572 true
2573 else
2574 notsupp="$notsupp $dir"
2578 done
2580 # Sometimes the tools are distributed with libiberty but with no other
2581 # libraries. In that case, we don't want to build target-libiberty.
2582 if test -n "${target_configdirs}" ; then
2583 others=
2584 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2585 if test "$i" != "libiberty" ; then
2586 if test -r $srcdir/$i/configure ; then
2587 others=yes;
2588 break;
2591 done
2592 if test -z "${others}" ; then
2593 target_configdirs=
2597 # Quietly strip out all directories which aren't configurable in this tree.
2598 # This relies on all configurable subdirectories being autoconfiscated, which
2599 # is now the case.
2600 build_configdirs_all="$build_configdirs"
2601 build_configdirs=
2602 for i in ${build_configdirs_all} ; do
2603 j=`echo $i | sed -e s/build-//g`
2604 if test -f ${srcdir}/$j/configure ; then
2605 build_configdirs="${build_configdirs} $i"
2607 done
2609 configdirs_all="$configdirs"
2610 configdirs=
2611 for i in ${configdirs_all} ; do
2612 if test -f ${srcdir}/$i/configure ; then
2613 configdirs="${configdirs} $i"
2615 done
2617 target_configdirs_all="$target_configdirs"
2618 target_configdirs=
2619 for i in ${target_configdirs_all} ; do
2620 j=`echo $i | sed -e s/target-//g`
2621 if test -f ${srcdir}/$j/configure ; then
2622 target_configdirs="${target_configdirs} $i"
2624 done
2626 # Produce a warning message for the subdirs we can't configure.
2627 # This isn't especially interesting in the Cygnus tree, but in the individual
2628 # FSF releases, it's important to let people know when their machine isn't
2629 # supported by the one or two programs in a package.
2631 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2632 # If $appdirs is non-empty, at least one of those directories must still
2633 # be configured, or we error out. (E.g., if the gas release supports a
2634 # specified target in some subdirs but not the gas subdir, we shouldn't
2635 # pretend that all is well.)
2636 if test -n "$appdirs" ; then
2637 for dir in $appdirs ; do
2638 if test -r $dir/Makefile.in ; then
2639 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2640 appdirs=""
2641 break
2643 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2644 appdirs=""
2645 break
2648 done
2649 if test -n "$appdirs" ; then
2650 echo "*** This configuration is not supported by this package." 1>&2
2651 exit 1
2654 # Okay, some application will build, or we don't care to check. Still
2655 # notify of subdirs not getting built.
2656 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2657 echo " ${notsupp}" 1>&2
2658 echo " (Any other directories should still work fine.)" 1>&2
2661 case "$host" in
2662 *msdosdjgpp*)
2663 enable_gdbtk=no ;;
2664 esac
2666 copy_dirs=
2668 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2669 if test "${with_build_sysroot+set}" = set; then
2670 withval="$with_build_sysroot"
2671 if test x"$withval" != x ; then
2672 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2674 else
2675 SYSROOT_CFLAGS_FOR_TARGET=
2680 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2681 # the named directory are copied to $(tooldir)/sys-include.
2682 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2683 if test x${is_cross_compiler} = xno ; then
2684 echo 1>&2 '***' --with-headers is only supported when cross compiling
2685 exit 1
2687 if test x"${with_headers}" != xyes ; then
2688 case "${exec_prefixoption}" in
2689 "") x=${prefix} ;;
2690 *) x=${exec_prefix} ;;
2691 esac
2692 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2696 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2697 # the name directories are copied to $(tooldir)/lib. Multiple directories
2698 # are permitted.
2699 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2700 if test x${is_cross_compiler} = xno ; then
2701 echo 1>&2 '***' --with-libs is only supported when cross compiling
2702 exit 1
2704 if test x"${with_libs}" != xyes ; then
2705 # Copy the libraries in reverse order, so that files in the first named
2706 # library override files in subsequent libraries.
2707 case "${exec_prefixoption}" in
2708 "") x=${prefix} ;;
2709 *) x=${exec_prefix} ;;
2710 esac
2711 for l in ${with_libs}; do
2712 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2713 done
2717 # Set with_gnu_as and with_gnu_ld as appropriate.
2719 # This is done by determining whether or not the appropriate directory
2720 # is available, and by checking whether or not specific configurations
2721 # have requested that this magic not happen.
2723 # The command line options always override the explicit settings in
2724 # configure.in, and the settings in configure.in override this magic.
2726 # If the default for a toolchain is to use GNU as and ld, and you don't
2727 # want to do that, then you should use the --without-gnu-as and
2728 # --without-gnu-ld options for the configure script.
2730 if test x${use_gnu_as} = x &&
2731 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2732 with_gnu_as=yes
2733 extra_host_args="$extra_host_args --with-gnu-as"
2736 if test x${use_gnu_ld} = x &&
2737 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2738 with_gnu_ld=yes
2739 extra_host_args="$extra_host_args --with-gnu-ld"
2742 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2743 # can detect this case.
2745 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2746 with_newlib=yes
2747 extra_host_args="$extra_host_args --with-newlib"
2750 # Handle ${copy_dirs}
2751 set fnord ${copy_dirs}
2752 shift
2753 while test $# != 0 ; do
2754 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2756 else
2757 echo Copying $1 to $2
2759 # Use the install script to create the directory and all required
2760 # parent directories.
2761 if test -d $2 ; then
2763 else
2764 echo >config.temp
2765 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2768 # Copy the directory, assuming we have tar.
2769 # FIXME: Should we use B in the second tar? Not all systems support it.
2770 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2772 # It is the responsibility of the user to correctly adjust all
2773 # symlinks. If somebody can figure out how to handle them correctly
2774 # here, feel free to add the code.
2776 echo $1 > $2/COPIED
2778 shift; shift
2779 done
2781 # Determine a target-dependent exec_prefix that the installed
2782 # gcc will search in. Keep this list sorted by triplet, with
2783 # the *-*-osname triplets last.
2784 md_exec_prefix=
2785 case "${target}" in
2786 alpha*-*-*vms*)
2787 md_exec_prefix=/gnu/lib/gcc-lib
2789 i3456786-pc-msdosdjgpp*)
2790 md_exec_prefix=/dev/env/DJDIR/bin
2792 i3456786-*-sco3.2v5*)
2793 if test $with_gnu_as = yes; then
2794 md_exec_prefix=/usr/gnu/bin
2795 else
2796 md_exec_prefix=/usr/ccs/bin/elf
2800 mn10300-*-* | \
2801 powerpc-*-chorusos* | \
2802 powerpc*-*-eabi* | \
2803 powerpc*-*-sysv* | \
2804 powerpc*-*-kaos* | \
2805 s390x-ibm-tpf*)
2806 md_exec_prefix=/usr/ccs/bin
2808 sparc64-*-elf*)
2810 v850*-*-*)
2811 md_exec_prefix=/usr/ccs/bin
2813 xtensa-*-elf*)
2816 *-*-beos* | \
2817 *-*-elf* | \
2818 *-*-hpux* | \
2819 *-*-netware* | \
2820 *-*-nto-qnx* | \
2821 *-*-rtems* | \
2822 *-*-solaris2* | \
2823 *-*-sysv45* | \
2824 *-*-vxworks* | \
2825 *-wrs-windiss)
2826 md_exec_prefix=/usr/ccs/bin
2828 esac
2830 extra_arflags_for_target=
2831 extra_nmflags_for_target=
2832 extra_ranlibflags_for_target=
2833 target_makefile_frag=/dev/null
2834 case "${target}" in
2835 *-*-netware*)
2836 target_makefile_frag="config/mt-netware"
2838 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2839 target_makefile_frag="config/mt-gnu"
2841 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2842 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2843 # commands to handle both 32-bit and 64-bit objects. These flags are
2844 # harmless if we're using GNU nm or ar.
2845 extra_arflags_for_target=" -X32_64"
2846 extra_nmflags_for_target=" -B -X32_64"
2848 *-*-darwin*)
2849 # ranlib from Darwin requires the -c flag to look at common symbols.
2850 extra_ranlibflags_for_target=" -c"
2852 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2853 target_makefile_frag="config/mt-wince"
2855 esac
2857 alphaieee_frag=/dev/null
2858 case $target in
2859 alpha*-*-*)
2860 # This just makes sure to use the -mieee option to build target libs.
2861 # This should probably be set individually by each library.
2862 alphaieee_frag="config/mt-alphaieee"
2864 esac
2866 # If --enable-target-optspace always use -Os instead of -O2 to build
2867 # the target libraries, similarly if it is not specified, use -Os
2868 # on selected platforms.
2869 ospace_frag=/dev/null
2870 case "${enable_target_optspace}:${target}" in
2871 yes:*)
2872 ospace_frag="config/mt-ospace"
2874 :d30v-*)
2875 ospace_frag="config/mt-d30v"
2877 :m32r-* | :d10v-* | :fr30-*)
2878 ospace_frag="config/mt-ospace"
2880 no:* | :*)
2883 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2885 esac
2887 # Default to using --with-stabs for certain targets.
2888 if test x${with_stabs} = x ; then
2889 case "${target}" in
2890 mips*-*-irix[56]*)
2892 mips*-*-* | alpha*-*-osf*)
2893 with_stabs=yes;
2894 extra_host_args="${extra_host_args} --with-stabs"
2896 esac
2899 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2900 # them automatically.
2901 case "${host}" in
2902 hppa*64*-*-hpux11*)
2903 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2905 esac
2907 # Some systems (e.g., one of the i386-aix systems the gas testers are
2908 # using) don't handle "\$" correctly, so don't use it here.
2909 tooldir='${exec_prefix}'/${target_alias}
2910 build_tooldir=${tooldir}
2912 # Create a .gdbinit file which runs the one in srcdir
2913 # and tells GDB to look there for source files.
2915 if test -r ${srcdir}/.gdbinit ; then
2916 case ${srcdir} in
2917 .) ;;
2918 *) cat > ./.gdbinit <<EOF
2919 # ${NO_EDIT}
2920 dir ${srcdir}
2921 dir .
2922 source ${srcdir}/.gdbinit
2925 esac
2928 # Make sure that the compiler is able to generate an executable. If it
2929 # can't, we are probably in trouble. We don't care whether we can run the
2930 # executable--we might be using a cross compiler--we only care whether it
2931 # can be created. At this point the main configure script has set CC.
2932 we_are_ok=no
2933 echo "int main () { return 0; }" > conftest.c
2934 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2935 if test $? = 0 ; then
2936 if test -s conftest || test -s conftest.exe ; then
2937 we_are_ok=yes
2940 case $we_are_ok in
2942 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2943 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2944 rm -f conftest*
2945 exit 1
2947 esac
2948 rm -f conftest*
2950 # The Solaris /usr/ucb/cc compiler does not appear to work.
2951 case "${host}" in
2952 sparc-sun-solaris2*)
2953 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2954 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2955 could_use=
2956 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2957 if test -d /opt/cygnus/bin ; then
2958 if test "$could_use" = "" ; then
2959 could_use="/opt/cygnus/bin"
2960 else
2961 could_use="$could_use or /opt/cygnus/bin"
2964 if test "$could_use" = "" ; then
2965 echo "Warning: compilation may fail because you're using"
2966 echo "/usr/ucb/cc. You should change your PATH or CC "
2967 echo "variable and rerun configure."
2968 else
2969 echo "Warning: compilation may fail because you're using"
2970 echo "/usr/ucb/cc, when you should use the C compiler from"
2971 echo "$could_use. You should change your"
2972 echo "PATH or CC variable and rerun configure."
2976 esac
2978 case "${host}" in
2979 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2980 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
2981 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2982 esac
2984 # Record target_configdirs and the configure arguments for target and
2985 # build configuration in Makefile.
2986 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2987 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
2989 # Determine whether gdb needs tk/tcl or not.
2990 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2991 # and in that case we want gdb to be built without tk. Ugh!
2992 # In fact I believe gdb is the *only* package directly dependent on tk,
2993 # so we should be able to put the 'maybe's in unconditionally and
2994 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2995 # 100% sure that that's safe though.
2997 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
2998 case "$enable_gdbtk" in
3000 GDB_TK="" ;;
3001 yes)
3002 GDB_TK="${gdb_tk}" ;;
3004 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3005 # distro. Eventually someone will fix this and move Insight, nee
3006 # gdbtk to a separate directory.
3007 if test -d ${srcdir}/gdb/gdbtk ; then
3008 GDB_TK="${gdb_tk}"
3009 else
3010 GDB_TK=""
3013 esac
3014 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3015 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3017 # Strip out unwanted targets.
3019 # While at that, we remove Makefiles if we were started for recursive
3020 # configuration, so that the top-level Makefile reconfigures them,
3021 # like we used to do when configure itself was recursive.
3023 # Loop over modules. $extrasub must be used with care, limiting as
3024 # much as possible the usage of range addresses. That's because autoconf
3025 # splits the sed script to overcome limits in the number of commands,
3026 # and relying on carefully-timed sed passes may turn out to be very hard
3027 # to maintain later. In this particular case, you just have to be careful
3028 # not to nest @if/@endif pairs, because configure will not warn you at all.
3030 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3031 if test "${enable_bootstrap+set}" = set; then
3032 enableval="$enable_bootstrap"
3034 else
3035 enable_bootstrap=default
3039 # Issue errors and warnings for invalid/strange bootstrap combinations.
3040 case "$configdirs" in
3041 *gcc*) have_compiler=yes ;;
3042 *) have_compiler=no ;;
3043 esac
3045 case "$have_compiler:$host:$target:$enable_bootstrap" in
3046 *:*:*:no) ;;
3048 # Default behavior. Enable bootstrap if we have a compiler
3049 # and we are in a native configuration.
3050 yes:$build:$build:default)
3051 enable_bootstrap=yes ;;
3053 *:*:*:default)
3054 enable_bootstrap=no ;;
3056 # We have a compiler and we are in a native configuration, bootstrap is ok
3057 yes:$build:$build:yes)
3060 # Other configurations, but we have a compiler. Assume the user knows
3061 # what he's doing.
3062 yes:*:*:yes)
3063 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3066 # No compiler: if they passed --enable-bootstrap explicitly, fail
3067 no:*:*:yes)
3068 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3070 # Fail if wrong command line
3072 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3074 esac
3076 # Adjust the toplevel makefile according to whether bootstrap was selected.
3077 case "$enable_bootstrap" in
3078 yes)
3079 bootstrap_suffix=bootstrap ;;
3081 bootstrap_suffix=no-bootstrap ;;
3082 esac
3084 for module in ${build_configdirs} ; do
3085 if test -z "${no_recursion}" \
3086 && test -f ${build_subdir}/${module}/Makefile; then
3087 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3088 rm -f ${build_subdir}/${module}/Makefile
3090 extrasub="$extrasub
3091 /^@if build-$module\$/d
3092 /^@endif build-$module\$/d
3093 /^@if build-$module-$bootstrap_suffix\$/d
3094 /^@endif build-$module-$bootstrap_suffix\$/d"
3095 done
3096 for module in ${configdirs} ; do
3097 if test -z "${no_recursion}"; then
3098 for file in stage*-${module}/Makefile ${module}/Makefile; do
3099 if test -f ${file}; then
3100 echo 1>&2 "*** removing ${file} to force reconfigure"
3101 rm -f ${file}
3103 done
3105 extrasub="$extrasub
3106 /^@if $module\$/d
3107 /^@endif $module\$/d
3108 /^@if $module-$bootstrap_suffix\$/d
3109 /^@endif $module-$bootstrap_suffix\$/d"
3110 done
3111 for module in ${target_configdirs} ; do
3112 if test -z "${no_recursion}" \
3113 && test -f ${target_subdir}/${module}/Makefile; then
3114 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3115 rm -f ${target_subdir}/${module}/Makefile
3117 extrasub="$extrasub
3118 /^@if target-$module\$/d
3119 /^@endif target-$module\$/d
3120 /^@if target-$module-$bootstrap_suffix\$/d
3121 /^@endif target-$module-$bootstrap_suffix\$/d"
3122 done
3124 extrasub="$extrasub
3125 /^@if /,/^@endif /d"
3127 # Create the serialization dependencies. This uses a temporary file.
3129 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3130 if test "${enable_serial_configure+set}" = set; then
3131 enableval="$enable_serial_configure"
3136 case ${enable_serial_configure} in
3137 yes)
3138 enable_serial_build_configure=yes
3139 enable_serial_host_configure=yes
3140 enable_serial_target_configure=yes
3142 esac
3144 # These force 'configure's to be done one at a time, to avoid problems
3145 # with contention over a shared config.cache.
3146 rm -f serdep.tmp
3147 echo '# serdep.tmp' > serdep.tmp
3148 olditem=
3149 test "x${enable_serial_build_configure}" = xyes &&
3150 for item in ${build_configdirs} ; do
3151 case ${olditem} in
3152 "") ;;
3153 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3154 esac
3155 olditem=${item}
3156 done
3157 olditem=
3158 test "x${enable_serial_host_configure}" = xyes &&
3159 for item in ${configdirs} ; do
3160 case ${olditem} in
3161 "") ;;
3162 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3163 esac
3164 olditem=${item}
3165 done
3166 olditem=
3167 test "x${enable_serial_target_configure}" = xyes &&
3168 for item in ${target_configdirs} ; do
3169 case ${olditem} in
3170 "") ;;
3171 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3172 esac
3173 olditem=${item}
3174 done
3175 serialization_dependencies=serdep.tmp
3178 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3179 # target and nonopt. These are the ones we might not want to pass
3180 # down to subconfigures. Also strip program-prefix, program-suffix,
3181 # and program-transform-name, so that we can pass down a consistent
3182 # program-transform-name. If autoconf has put single quotes around
3183 # any of these arguments (because they contain shell metacharacters)
3184 # then this will fail; in practice this only happens for
3185 # --program-transform-name, so be sure to override --program-transform-name
3186 # at the end of the argument list.
3187 # These will be expanded by make, so quote '$'.
3188 cat <<\EOF_SED > conftestsed
3189 s/ --no[^ ]*/ /g
3190 s/ --c[a-z-]*[= ][^ ]*//g
3191 s/ --sr[a-z-]*[= ][^ ]*//g
3192 s/ --ho[a-z-]*[= ][^ ]*//g
3193 s/ --bu[a-z-]*[= ][^ ]*//g
3194 s/ --t[a-z-]*[= ][^ ]*//g
3195 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3196 s/ -cache-file[= ][^ ]*//g
3197 s/ -srcdir[= ][^ ]*//g
3198 s/ -host[= ][^ ]*//g
3199 s/ -build[= ][^ ]*//g
3200 s/ -target[= ][^ ]*//g
3201 s/ -program-prefix[= ][^ ]*//g
3202 s/ -program-suffix[= ][^ ]*//g
3203 s/ -program-transform-name[= ][^ ]*//g
3204 s/ [^' -][^ ]* / /
3205 s/^ *//;s/ *$//
3206 s,\$,$$,g
3207 EOF_SED
3208 sed -f conftestsed <<EOF_SED > conftestsed.out
3209 ${ac_configure_args}
3210 EOF_SED
3211 baseargs=`cat conftestsed.out`
3212 rm -f conftestsed conftestsed.out
3214 # Add in --program-transform-name, after --program-prefix and
3215 # --program-suffix have been applied to it. Autoconf has already
3216 # doubled dollar signs and backslashes in program_transform_name; we want
3217 # the backslashes un-doubled, and then the entire thing wrapped in single
3218 # quotes, because this will be expanded first by make and then by the shell.
3219 # Also, because we want to override the logic in subdir configure scripts to
3220 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3221 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3222 ${program_transform_name}
3223 EOF_SED
3224 gcc_transform_name=`cat conftestsed.out`
3225 rm -f conftestsed.out
3226 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3228 # For the build-side libraries, we just need to pretend we're native,
3229 # and not use the same cache file. Multilibs are neither needed nor
3230 # desired.
3231 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3233 # For host modules, accept cache file option, or specification as blank.
3234 case "${cache_file}" in
3235 "") # empty
3236 cache_file_option="" ;;
3237 /* | [A-Za-z]:[\\/]* ) # absolute path
3238 cache_file_option="--cache-file=${cache_file}" ;;
3239 *) # relative path
3240 cache_file_option="--cache-file=../${cache_file}" ;;
3241 esac
3243 # Host dirs don't like to share a cache file either, horribly enough.
3244 # This seems to be due to autoconf 2.5x stupidity.
3245 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3247 target_configargs=${baseargs}
3249 # Passing a --with-cross-host argument lets the target libraries know
3250 # whether they are being built with a cross-compiler or being built
3251 # native. However, it would be better to use other mechanisms to make the
3252 # sorts of decisions they want to make on this basis. Please consider
3253 # this option to be deprecated. FIXME.
3254 if test x${is_cross_compiler} = xyes ; then
3255 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3258 # Default to --enable-multilib.
3259 if test x${enable_multilib} = x ; then
3260 target_configargs="--enable-multilib ${target_configargs}"
3263 # Pass --with-newlib if appropriate. Note that target_configdirs has
3264 # changed from the earlier setting of with_newlib.
3265 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3266 target_configargs="--with-newlib ${target_configargs}"
3269 # Different target subdirs use different values of certain variables
3270 # (notably CXX). Worse, multilibs use *lots* of different values.
3271 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3272 # it doesn't automatically accept command-line overrides of them.
3273 # This means it's not safe for target subdirs to share a cache file,
3274 # which is disgusting, but there you have it. Hopefully this can be
3275 # fixed in future. It's still worthwhile to use a cache file for each
3276 # directory. I think.
3278 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3279 # We need to pass --target, as newer autoconf's requires consistency
3280 # for target_alias and gcc doesn't manage it consistently.
3281 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3283 FLAGS_FOR_TARGET=
3284 case " $target_configdirs " in
3285 *" newlib "*)
3286 case " $target_configargs " in
3287 *" --with-newlib "*)
3288 case "$target" in
3289 *-cygwin*)
3290 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
3291 esac
3293 # If we're not building GCC, don't discard standard headers.
3294 if test -d ${srcdir}/gcc; then
3295 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3297 if test "${build}" != "${host}"; then
3298 # On Canadian crosses, CC_FOR_TARGET will have already been set
3299 # by `configure', so we won't have an opportunity to add -Bgcc/
3300 # to it. This is right: we don't want to search that directory
3301 # for binaries, but we want the header files in there, so add
3302 # them explicitly.
3303 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3305 # Someone might think of using the pre-installed headers on
3306 # Canadian crosses, in case the installed compiler is not fully
3307 # compatible with the compiler being built. In this case, it
3308 # would be better to flag an error than risking having
3309 # incompatible object files being constructed. We can't
3310 # guarantee that an error will be flagged, but let's hope the
3311 # compiler will do it, when presented with incompatible header
3312 # files.
3316 case "${target}-${is_cross_compiler}" in
3317 i[3456789]86-*-linux*-no)
3318 # Here host == target, so we don't need to build gcc,
3319 # so we don't want to discard standard headers.
3320 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3323 # If we're building newlib, use its generic headers last, but search
3324 # for any libc-related directories first (so make it the last -B
3325 # switch).
3326 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3328 esac
3330 esac
3332 esac
3334 # Allow the user to override the flags for
3335 # our build compiler if desired.
3336 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3338 # On Canadian crosses, we'll be searching the right directories for
3339 # the previously-installed cross compiler, so don't bother to add
3340 # flags for directories within the install tree of the compiler
3341 # being built; programs in there won't even run.
3342 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3343 # Search for pre-installed headers if nothing else fits.
3344 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3347 if test "x${use_gnu_ld}" = x &&
3348 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3349 # Arrange for us to find uninstalled linker scripts.
3350 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3353 # Search for other target-specific linker scripts and such.
3354 case "${target}" in
3355 m32c-*-* )
3356 if test -d ${srcdir}/libgloss/m32c; then
3357 # This is for crt0.o
3358 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3359 # This is for r8c.ld
3360 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3361 # This is for libnosys.a
3362 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3365 esac
3367 # Makefile fragments.
3368 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3370 eval fragval=\$$frag
3371 if test $fragval != /dev/null; then
3372 eval $frag=${srcdir}/$fragval
3374 done
3380 # Miscellanea: directories, flags, etc.
3388 # Build module lists & subconfigure args.
3392 # Host module lists & subconfigure args.
3396 # Target module lists & subconfigure args.
3400 # Build tools.
3404 # Generate default definitions for YACC, M4, LEX and other programs that run
3405 # on the build machine. These are used if the Makefile can't locate these
3406 # programs in objdir.
3407 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3409 for ac_prog in 'bison -y' byacc yacc
3411 # Extract the first word of "$ac_prog", so it can be a program name with args.
3412 set dummy $ac_prog; ac_word=$2
3413 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3414 echo "configure:3415: checking for $ac_word" >&5
3415 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3417 else
3418 if test -n "$YACC"; then
3419 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3420 else
3421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3422 ac_dummy="$PATH"
3423 for ac_dir in $ac_dummy; do
3424 test -z "$ac_dir" && ac_dir=.
3425 if test -f $ac_dir/$ac_word; then
3426 ac_cv_prog_YACC="$ac_prog"
3427 break
3429 done
3430 IFS="$ac_save_ifs"
3433 YACC="$ac_cv_prog_YACC"
3434 if test -n "$YACC"; then
3435 echo "$ac_t""$YACC" 1>&6
3436 else
3437 echo "$ac_t""no" 1>&6
3440 test -n "$YACC" && break
3441 done
3442 test -n "$YACC" || YACC="$MISSING bison -y"
3444 case " $build_configdirs " in
3445 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3446 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3447 esac
3449 for ac_prog in bison
3451 # Extract the first word of "$ac_prog", so it can be a program name with args.
3452 set dummy $ac_prog; ac_word=$2
3453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3454 echo "configure:3455: checking for $ac_word" >&5
3455 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3456 echo $ac_n "(cached) $ac_c" 1>&6
3457 else
3458 if test -n "$BISON"; then
3459 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3460 else
3461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3462 ac_dummy="$PATH"
3463 for ac_dir in $ac_dummy; do
3464 test -z "$ac_dir" && ac_dir=.
3465 if test -f $ac_dir/$ac_word; then
3466 ac_cv_prog_BISON="$ac_prog"
3467 break
3469 done
3470 IFS="$ac_save_ifs"
3473 BISON="$ac_cv_prog_BISON"
3474 if test -n "$BISON"; then
3475 echo "$ac_t""$BISON" 1>&6
3476 else
3477 echo "$ac_t""no" 1>&6
3480 test -n "$BISON" && break
3481 done
3482 test -n "$BISON" || BISON="$MISSING bison"
3484 case " $build_configdirs " in
3485 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3486 esac
3488 for ac_prog in gm4 gnum4 m4
3490 # Extract the first word of "$ac_prog", so it can be a program name with args.
3491 set dummy $ac_prog; ac_word=$2
3492 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3493 echo "configure:3494: checking for $ac_word" >&5
3494 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3496 else
3497 if test -n "$M4"; then
3498 ac_cv_prog_M4="$M4" # Let the user override the test.
3499 else
3500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3501 ac_dummy="$PATH"
3502 for ac_dir in $ac_dummy; do
3503 test -z "$ac_dir" && ac_dir=.
3504 if test -f $ac_dir/$ac_word; then
3505 ac_cv_prog_M4="$ac_prog"
3506 break
3508 done
3509 IFS="$ac_save_ifs"
3512 M4="$ac_cv_prog_M4"
3513 if test -n "$M4"; then
3514 echo "$ac_t""$M4" 1>&6
3515 else
3516 echo "$ac_t""no" 1>&6
3519 test -n "$M4" && break
3520 done
3521 test -n "$M4" || M4="$MISSING m4"
3523 case " $build_configdirs " in
3524 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3525 esac
3527 for ac_prog in flex lex
3529 # Extract the first word of "$ac_prog", so it can be a program name with args.
3530 set dummy $ac_prog; ac_word=$2
3531 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3532 echo "configure:3533: checking for $ac_word" >&5
3533 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3535 else
3536 if test -n "$LEX"; then
3537 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3538 else
3539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3540 ac_dummy="$PATH"
3541 for ac_dir in $ac_dummy; do
3542 test -z "$ac_dir" && ac_dir=.
3543 if test -f $ac_dir/$ac_word; then
3544 ac_cv_prog_LEX="$ac_prog"
3545 break
3547 done
3548 IFS="$ac_save_ifs"
3551 LEX="$ac_cv_prog_LEX"
3552 if test -n "$LEX"; then
3553 echo "$ac_t""$LEX" 1>&6
3554 else
3555 echo "$ac_t""no" 1>&6
3558 test -n "$LEX" && break
3559 done
3560 test -n "$LEX" || LEX="$MISSING flex"
3562 case " $build_configdirs " in
3563 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3564 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3565 esac
3567 for ac_prog in flex
3569 # Extract the first word of "$ac_prog", so it can be a program name with args.
3570 set dummy $ac_prog; ac_word=$2
3571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3572 echo "configure:3573: checking for $ac_word" >&5
3573 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3574 echo $ac_n "(cached) $ac_c" 1>&6
3575 else
3576 if test -n "$FLEX"; then
3577 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3578 else
3579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3580 ac_dummy="$PATH"
3581 for ac_dir in $ac_dummy; do
3582 test -z "$ac_dir" && ac_dir=.
3583 if test -f $ac_dir/$ac_word; then
3584 ac_cv_prog_FLEX="$ac_prog"
3585 break
3587 done
3588 IFS="$ac_save_ifs"
3591 FLEX="$ac_cv_prog_FLEX"
3592 if test -n "$FLEX"; then
3593 echo "$ac_t""$FLEX" 1>&6
3594 else
3595 echo "$ac_t""no" 1>&6
3598 test -n "$FLEX" && break
3599 done
3600 test -n "$FLEX" || FLEX="$MISSING flex"
3602 case " $build_configdirs " in
3603 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3604 esac
3606 for ac_prog in makeinfo
3608 # Extract the first word of "$ac_prog", so it can be a program name with args.
3609 set dummy $ac_prog; ac_word=$2
3610 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3611 echo "configure:3612: checking for $ac_word" >&5
3612 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3613 echo $ac_n "(cached) $ac_c" 1>&6
3614 else
3615 if test -n "$MAKEINFO"; then
3616 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3617 else
3618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3619 ac_dummy="$PATH"
3620 for ac_dir in $ac_dummy; do
3621 test -z "$ac_dir" && ac_dir=.
3622 if test -f $ac_dir/$ac_word; then
3623 ac_cv_prog_MAKEINFO="$ac_prog"
3624 break
3626 done
3627 IFS="$ac_save_ifs"
3630 MAKEINFO="$ac_cv_prog_MAKEINFO"
3631 if test -n "$MAKEINFO"; then
3632 echo "$ac_t""$MAKEINFO" 1>&6
3633 else
3634 echo "$ac_t""no" 1>&6
3637 test -n "$MAKEINFO" && break
3638 done
3639 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3641 case " $build_configdirs " in
3642 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3645 # For an installed makeinfo, we require it to be from texinfo 4.4 or
3646 # higher, else we use the "missing" dummy.
3647 if ${MAKEINFO} --version \
3648 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
3650 else
3651 MAKEINFO="$MISSING makeinfo"
3655 esac
3657 # FIXME: expect and dejagnu may become build tools?
3659 for ac_prog in expect
3661 # Extract the first word of "$ac_prog", so it can be a program name with args.
3662 set dummy $ac_prog; ac_word=$2
3663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3664 echo "configure:3665: checking for $ac_word" >&5
3665 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3667 else
3668 if test -n "$EXPECT"; then
3669 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3670 else
3671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3672 ac_dummy="$PATH"
3673 for ac_dir in $ac_dummy; do
3674 test -z "$ac_dir" && ac_dir=.
3675 if test -f $ac_dir/$ac_word; then
3676 ac_cv_prog_EXPECT="$ac_prog"
3677 break
3679 done
3680 IFS="$ac_save_ifs"
3683 EXPECT="$ac_cv_prog_EXPECT"
3684 if test -n "$EXPECT"; then
3685 echo "$ac_t""$EXPECT" 1>&6
3686 else
3687 echo "$ac_t""no" 1>&6
3690 test -n "$EXPECT" && break
3691 done
3692 test -n "$EXPECT" || EXPECT="expect"
3694 case " $configdirs " in
3695 *" expect "*)
3696 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3698 esac
3700 for ac_prog in runtest
3702 # Extract the first word of "$ac_prog", so it can be a program name with args.
3703 set dummy $ac_prog; ac_word=$2
3704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3705 echo "configure:3706: checking for $ac_word" >&5
3706 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3707 echo $ac_n "(cached) $ac_c" 1>&6
3708 else
3709 if test -n "$RUNTEST"; then
3710 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3711 else
3712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3713 ac_dummy="$PATH"
3714 for ac_dir in $ac_dummy; do
3715 test -z "$ac_dir" && ac_dir=.
3716 if test -f $ac_dir/$ac_word; then
3717 ac_cv_prog_RUNTEST="$ac_prog"
3718 break
3720 done
3721 IFS="$ac_save_ifs"
3724 RUNTEST="$ac_cv_prog_RUNTEST"
3725 if test -n "$RUNTEST"; then
3726 echo "$ac_t""$RUNTEST" 1>&6
3727 else
3728 echo "$ac_t""no" 1>&6
3731 test -n "$RUNTEST" && break
3732 done
3733 test -n "$RUNTEST" || RUNTEST="runtest"
3735 case " $configdirs " in
3736 *" dejagnu "*)
3737 test $host = $build && RUNTEST='$$r/$(HOST_SUBDIR)/dejagnu/runtest'
3739 esac
3742 # Host tools.
3743 ncn_tool_prefix=
3744 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3745 ncn_target_tool_prefix=
3746 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3748 for ncn_progname in ar; do
3749 if test -n "$ncn_tool_prefix"; then
3750 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3751 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3753 echo "configure:3754: checking for $ac_word" >&5
3754 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3755 echo $ac_n "(cached) $ac_c" 1>&6
3756 else
3757 if test -n "$AR"; then
3758 ac_cv_prog_AR="$AR" # Let the user override the test.
3759 else
3760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3761 ac_dummy="$PATH"
3762 for ac_dir in $ac_dummy; do
3763 test -z "$ac_dir" && ac_dir=.
3764 if test -f $ac_dir/$ac_word; then
3765 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3766 break
3768 done
3769 IFS="$ac_save_ifs"
3772 AR="$ac_cv_prog_AR"
3773 if test -n "$AR"; then
3774 echo "$ac_t""$AR" 1>&6
3775 else
3776 echo "$ac_t""no" 1>&6
3780 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3782 set dummy ${ncn_progname}; ac_word=$2
3783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3784 echo "configure:3785: checking for $ac_word" >&5
3785 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3787 else
3788 if test -n "$AR"; then
3789 ac_cv_prog_AR="$AR" # Let the user override the test.
3790 else
3791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3792 ac_dummy="$PATH"
3793 for ac_dir in $ac_dummy; do
3794 test -z "$ac_dir" && ac_dir=.
3795 if test -f $ac_dir/$ac_word; then
3796 ac_cv_prog_AR="${ncn_progname}"
3797 break
3799 done
3800 IFS="$ac_save_ifs"
3803 AR="$ac_cv_prog_AR"
3804 if test -n "$AR"; then
3805 echo "$ac_t""$AR" 1>&6
3806 else
3807 echo "$ac_t""no" 1>&6
3811 test -n "$ac_cv_prog_AR" && break
3812 done
3814 if test -z "$ac_cv_prog_AR" ; then
3815 set dummy ar
3816 if test $build = $host ; then
3817 AR="$2"
3818 else
3819 AR="${ncn_tool_prefix}$2"
3823 for ncn_progname in as; do
3824 if test -n "$ncn_tool_prefix"; then
3825 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3826 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3828 echo "configure:3829: checking for $ac_word" >&5
3829 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3830 echo $ac_n "(cached) $ac_c" 1>&6
3831 else
3832 if test -n "$AS"; then
3833 ac_cv_prog_AS="$AS" # Let the user override the test.
3834 else
3835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3836 ac_dummy="$PATH"
3837 for ac_dir in $ac_dummy; do
3838 test -z "$ac_dir" && ac_dir=.
3839 if test -f $ac_dir/$ac_word; then
3840 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3841 break
3843 done
3844 IFS="$ac_save_ifs"
3847 AS="$ac_cv_prog_AS"
3848 if test -n "$AS"; then
3849 echo "$ac_t""$AS" 1>&6
3850 else
3851 echo "$ac_t""no" 1>&6
3855 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3857 set dummy ${ncn_progname}; ac_word=$2
3858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3859 echo "configure:3860: checking for $ac_word" >&5
3860 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3862 else
3863 if test -n "$AS"; then
3864 ac_cv_prog_AS="$AS" # Let the user override the test.
3865 else
3866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3867 ac_dummy="$PATH"
3868 for ac_dir in $ac_dummy; do
3869 test -z "$ac_dir" && ac_dir=.
3870 if test -f $ac_dir/$ac_word; then
3871 ac_cv_prog_AS="${ncn_progname}"
3872 break
3874 done
3875 IFS="$ac_save_ifs"
3878 AS="$ac_cv_prog_AS"
3879 if test -n "$AS"; then
3880 echo "$ac_t""$AS" 1>&6
3881 else
3882 echo "$ac_t""no" 1>&6
3886 test -n "$ac_cv_prog_AS" && break
3887 done
3889 if test -z "$ac_cv_prog_AS" ; then
3890 set dummy as
3891 if test $build = $host ; then
3892 AS="$2"
3893 else
3894 AS="${ncn_tool_prefix}$2"
3898 for ncn_progname in dlltool; do
3899 if test -n "$ncn_tool_prefix"; then
3900 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3901 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3903 echo "configure:3904: checking for $ac_word" >&5
3904 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3906 else
3907 if test -n "$DLLTOOL"; then
3908 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3909 else
3910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3911 ac_dummy="$PATH"
3912 for ac_dir in $ac_dummy; do
3913 test -z "$ac_dir" && ac_dir=.
3914 if test -f $ac_dir/$ac_word; then
3915 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3916 break
3918 done
3919 IFS="$ac_save_ifs"
3922 DLLTOOL="$ac_cv_prog_DLLTOOL"
3923 if test -n "$DLLTOOL"; then
3924 echo "$ac_t""$DLLTOOL" 1>&6
3925 else
3926 echo "$ac_t""no" 1>&6
3930 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3932 set dummy ${ncn_progname}; ac_word=$2
3933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3934 echo "configure:3935: checking for $ac_word" >&5
3935 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3937 else
3938 if test -n "$DLLTOOL"; then
3939 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3940 else
3941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3942 ac_dummy="$PATH"
3943 for ac_dir in $ac_dummy; do
3944 test -z "$ac_dir" && ac_dir=.
3945 if test -f $ac_dir/$ac_word; then
3946 ac_cv_prog_DLLTOOL="${ncn_progname}"
3947 break
3949 done
3950 IFS="$ac_save_ifs"
3953 DLLTOOL="$ac_cv_prog_DLLTOOL"
3954 if test -n "$DLLTOOL"; then
3955 echo "$ac_t""$DLLTOOL" 1>&6
3956 else
3957 echo "$ac_t""no" 1>&6
3961 test -n "$ac_cv_prog_DLLTOOL" && break
3962 done
3964 if test -z "$ac_cv_prog_DLLTOOL" ; then
3965 set dummy dlltool
3966 if test $build = $host ; then
3967 DLLTOOL="$2"
3968 else
3969 DLLTOOL="${ncn_tool_prefix}$2"
3973 for ncn_progname in ld; do
3974 if test -n "$ncn_tool_prefix"; then
3975 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3976 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3978 echo "configure:3979: checking for $ac_word" >&5
3979 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3980 echo $ac_n "(cached) $ac_c" 1>&6
3981 else
3982 if test -n "$LD"; then
3983 ac_cv_prog_LD="$LD" # Let the user override the test.
3984 else
3985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3986 ac_dummy="$PATH"
3987 for ac_dir in $ac_dummy; do
3988 test -z "$ac_dir" && ac_dir=.
3989 if test -f $ac_dir/$ac_word; then
3990 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3991 break
3993 done
3994 IFS="$ac_save_ifs"
3997 LD="$ac_cv_prog_LD"
3998 if test -n "$LD"; then
3999 echo "$ac_t""$LD" 1>&6
4000 else
4001 echo "$ac_t""no" 1>&6
4005 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4007 set dummy ${ncn_progname}; ac_word=$2
4008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4009 echo "configure:4010: checking for $ac_word" >&5
4010 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4011 echo $ac_n "(cached) $ac_c" 1>&6
4012 else
4013 if test -n "$LD"; then
4014 ac_cv_prog_LD="$LD" # Let the user override the test.
4015 else
4016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4017 ac_dummy="$PATH"
4018 for ac_dir in $ac_dummy; do
4019 test -z "$ac_dir" && ac_dir=.
4020 if test -f $ac_dir/$ac_word; then
4021 ac_cv_prog_LD="${ncn_progname}"
4022 break
4024 done
4025 IFS="$ac_save_ifs"
4028 LD="$ac_cv_prog_LD"
4029 if test -n "$LD"; then
4030 echo "$ac_t""$LD" 1>&6
4031 else
4032 echo "$ac_t""no" 1>&6
4036 test -n "$ac_cv_prog_LD" && break
4037 done
4039 if test -z "$ac_cv_prog_LD" ; then
4040 set dummy ld
4041 if test $build = $host ; then
4042 LD="$2"
4043 else
4044 LD="${ncn_tool_prefix}$2"
4048 for ncn_progname in lipo; do
4049 if test -n "$ncn_tool_prefix"; then
4050 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4051 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4053 echo "configure:4054: checking for $ac_word" >&5
4054 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4055 echo $ac_n "(cached) $ac_c" 1>&6
4056 else
4057 if test -n "$LIPO"; then
4058 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4059 else
4060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4061 ac_dummy="$PATH"
4062 for ac_dir in $ac_dummy; do
4063 test -z "$ac_dir" && ac_dir=.
4064 if test -f $ac_dir/$ac_word; then
4065 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4066 break
4068 done
4069 IFS="$ac_save_ifs"
4072 LIPO="$ac_cv_prog_LIPO"
4073 if test -n "$LIPO"; then
4074 echo "$ac_t""$LIPO" 1>&6
4075 else
4076 echo "$ac_t""no" 1>&6
4080 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4082 set dummy ${ncn_progname}; ac_word=$2
4083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4084 echo "configure:4085: checking for $ac_word" >&5
4085 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4087 else
4088 if test -n "$LIPO"; then
4089 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4090 else
4091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4092 ac_dummy="$PATH"
4093 for ac_dir in $ac_dummy; do
4094 test -z "$ac_dir" && ac_dir=.
4095 if test -f $ac_dir/$ac_word; then
4096 ac_cv_prog_LIPO="${ncn_progname}"
4097 break
4099 done
4100 IFS="$ac_save_ifs"
4103 LIPO="$ac_cv_prog_LIPO"
4104 if test -n "$LIPO"; then
4105 echo "$ac_t""$LIPO" 1>&6
4106 else
4107 echo "$ac_t""no" 1>&6
4111 test -n "$ac_cv_prog_LIPO" && break
4112 done
4114 if test -z "$ac_cv_prog_LIPO" ; then
4115 set dummy lipo
4116 if test $build = $host ; then
4117 LIPO="$2"
4118 else
4119 LIPO="${ncn_tool_prefix}$2"
4123 for ncn_progname in nm; do
4124 if test -n "$ncn_tool_prefix"; then
4125 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4126 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4128 echo "configure:4129: checking for $ac_word" >&5
4129 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4131 else
4132 if test -n "$NM"; then
4133 ac_cv_prog_NM="$NM" # Let the user override the test.
4134 else
4135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4136 ac_dummy="$PATH"
4137 for ac_dir in $ac_dummy; do
4138 test -z "$ac_dir" && ac_dir=.
4139 if test -f $ac_dir/$ac_word; then
4140 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4141 break
4143 done
4144 IFS="$ac_save_ifs"
4147 NM="$ac_cv_prog_NM"
4148 if test -n "$NM"; then
4149 echo "$ac_t""$NM" 1>&6
4150 else
4151 echo "$ac_t""no" 1>&6
4155 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4157 set dummy ${ncn_progname}; ac_word=$2
4158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4159 echo "configure:4160: checking for $ac_word" >&5
4160 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4161 echo $ac_n "(cached) $ac_c" 1>&6
4162 else
4163 if test -n "$NM"; then
4164 ac_cv_prog_NM="$NM" # Let the user override the test.
4165 else
4166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4167 ac_dummy="$PATH"
4168 for ac_dir in $ac_dummy; do
4169 test -z "$ac_dir" && ac_dir=.
4170 if test -f $ac_dir/$ac_word; then
4171 ac_cv_prog_NM="${ncn_progname}"
4172 break
4174 done
4175 IFS="$ac_save_ifs"
4178 NM="$ac_cv_prog_NM"
4179 if test -n "$NM"; then
4180 echo "$ac_t""$NM" 1>&6
4181 else
4182 echo "$ac_t""no" 1>&6
4186 test -n "$ac_cv_prog_NM" && break
4187 done
4189 if test -z "$ac_cv_prog_NM" ; then
4190 set dummy nm
4191 if test $build = $host ; then
4192 NM="$2"
4193 else
4194 NM="${ncn_tool_prefix}$2"
4198 for ncn_progname in ranlib; do
4199 if test -n "$ncn_tool_prefix"; then
4200 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4201 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4203 echo "configure:4204: checking for $ac_word" >&5
4204 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4205 echo $ac_n "(cached) $ac_c" 1>&6
4206 else
4207 if test -n "$RANLIB"; then
4208 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4209 else
4210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4211 ac_dummy="$PATH"
4212 for ac_dir in $ac_dummy; do
4213 test -z "$ac_dir" && ac_dir=.
4214 if test -f $ac_dir/$ac_word; then
4215 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4216 break
4218 done
4219 IFS="$ac_save_ifs"
4222 RANLIB="$ac_cv_prog_RANLIB"
4223 if test -n "$RANLIB"; then
4224 echo "$ac_t""$RANLIB" 1>&6
4225 else
4226 echo "$ac_t""no" 1>&6
4230 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4232 set dummy ${ncn_progname}; ac_word=$2
4233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4234 echo "configure:4235: checking for $ac_word" >&5
4235 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6
4237 else
4238 if test -n "$RANLIB"; then
4239 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4240 else
4241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4242 ac_dummy="$PATH"
4243 for ac_dir in $ac_dummy; do
4244 test -z "$ac_dir" && ac_dir=.
4245 if test -f $ac_dir/$ac_word; then
4246 ac_cv_prog_RANLIB="${ncn_progname}"
4247 break
4249 done
4250 IFS="$ac_save_ifs"
4253 RANLIB="$ac_cv_prog_RANLIB"
4254 if test -n "$RANLIB"; then
4255 echo "$ac_t""$RANLIB" 1>&6
4256 else
4257 echo "$ac_t""no" 1>&6
4261 test -n "$ac_cv_prog_RANLIB" && break
4262 done
4264 if test -z "$ac_cv_prog_RANLIB" ; then
4265 RANLIB=":"
4268 for ncn_progname in strip; do
4269 if test -n "$ncn_tool_prefix"; then
4270 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4271 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4273 echo "configure:4274: checking for $ac_word" >&5
4274 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4275 echo $ac_n "(cached) $ac_c" 1>&6
4276 else
4277 if test -n "$STRIP"; then
4278 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4279 else
4280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4281 ac_dummy="$PATH"
4282 for ac_dir in $ac_dummy; do
4283 test -z "$ac_dir" && ac_dir=.
4284 if test -f $ac_dir/$ac_word; then
4285 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4286 break
4288 done
4289 IFS="$ac_save_ifs"
4292 STRIP="$ac_cv_prog_STRIP"
4293 if test -n "$STRIP"; then
4294 echo "$ac_t""$STRIP" 1>&6
4295 else
4296 echo "$ac_t""no" 1>&6
4300 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4302 set dummy ${ncn_progname}; ac_word=$2
4303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4304 echo "configure:4305: checking for $ac_word" >&5
4305 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4307 else
4308 if test -n "$STRIP"; then
4309 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4310 else
4311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4312 ac_dummy="$PATH"
4313 for ac_dir in $ac_dummy; do
4314 test -z "$ac_dir" && ac_dir=.
4315 if test -f $ac_dir/$ac_word; then
4316 ac_cv_prog_STRIP="${ncn_progname}"
4317 break
4319 done
4320 IFS="$ac_save_ifs"
4323 STRIP="$ac_cv_prog_STRIP"
4324 if test -n "$STRIP"; then
4325 echo "$ac_t""$STRIP" 1>&6
4326 else
4327 echo "$ac_t""no" 1>&6
4331 test -n "$ac_cv_prog_STRIP" && break
4332 done
4334 if test -z "$ac_cv_prog_STRIP" ; then
4335 STRIP=":"
4338 for ncn_progname in windres; do
4339 if test -n "$ncn_tool_prefix"; then
4340 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4341 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4342 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4343 echo "configure:4344: checking for $ac_word" >&5
4344 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4345 echo $ac_n "(cached) $ac_c" 1>&6
4346 else
4347 if test -n "$WINDRES"; then
4348 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4349 else
4350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4351 ac_dummy="$PATH"
4352 for ac_dir in $ac_dummy; do
4353 test -z "$ac_dir" && ac_dir=.
4354 if test -f $ac_dir/$ac_word; then
4355 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4356 break
4358 done
4359 IFS="$ac_save_ifs"
4362 WINDRES="$ac_cv_prog_WINDRES"
4363 if test -n "$WINDRES"; then
4364 echo "$ac_t""$WINDRES" 1>&6
4365 else
4366 echo "$ac_t""no" 1>&6
4370 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4372 set dummy ${ncn_progname}; ac_word=$2
4373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4374 echo "configure:4375: checking for $ac_word" >&5
4375 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4376 echo $ac_n "(cached) $ac_c" 1>&6
4377 else
4378 if test -n "$WINDRES"; then
4379 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4380 else
4381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4382 ac_dummy="$PATH"
4383 for ac_dir in $ac_dummy; do
4384 test -z "$ac_dir" && ac_dir=.
4385 if test -f $ac_dir/$ac_word; then
4386 ac_cv_prog_WINDRES="${ncn_progname}"
4387 break
4389 done
4390 IFS="$ac_save_ifs"
4393 WINDRES="$ac_cv_prog_WINDRES"
4394 if test -n "$WINDRES"; then
4395 echo "$ac_t""$WINDRES" 1>&6
4396 else
4397 echo "$ac_t""no" 1>&6
4401 test -n "$ac_cv_prog_WINDRES" && break
4402 done
4404 if test -z "$ac_cv_prog_WINDRES" ; then
4405 set dummy windres
4406 if test $build = $host ; then
4407 WINDRES="$2"
4408 else
4409 WINDRES="${ncn_tool_prefix}$2"
4413 for ncn_progname in objcopy; do
4414 if test -n "$ncn_tool_prefix"; then
4415 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4416 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4418 echo "configure:4419: checking for $ac_word" >&5
4419 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4420 echo $ac_n "(cached) $ac_c" 1>&6
4421 else
4422 if test -n "$OBJCOPY"; then
4423 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4424 else
4425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4426 ac_dummy="$PATH"
4427 for ac_dir in $ac_dummy; do
4428 test -z "$ac_dir" && ac_dir=.
4429 if test -f $ac_dir/$ac_word; then
4430 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4431 break
4433 done
4434 IFS="$ac_save_ifs"
4437 OBJCOPY="$ac_cv_prog_OBJCOPY"
4438 if test -n "$OBJCOPY"; then
4439 echo "$ac_t""$OBJCOPY" 1>&6
4440 else
4441 echo "$ac_t""no" 1>&6
4445 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4447 set dummy ${ncn_progname}; ac_word=$2
4448 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4449 echo "configure:4450: checking for $ac_word" >&5
4450 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4452 else
4453 if test -n "$OBJCOPY"; then
4454 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4455 else
4456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4457 ac_dummy="$PATH"
4458 for ac_dir in $ac_dummy; do
4459 test -z "$ac_dir" && ac_dir=.
4460 if test -f $ac_dir/$ac_word; then
4461 ac_cv_prog_OBJCOPY="${ncn_progname}"
4462 break
4464 done
4465 IFS="$ac_save_ifs"
4468 OBJCOPY="$ac_cv_prog_OBJCOPY"
4469 if test -n "$OBJCOPY"; then
4470 echo "$ac_t""$OBJCOPY" 1>&6
4471 else
4472 echo "$ac_t""no" 1>&6
4476 test -n "$ac_cv_prog_OBJCOPY" && break
4477 done
4479 if test -z "$ac_cv_prog_OBJCOPY" ; then
4480 set dummy objcopy
4481 if test $build = $host ; then
4482 OBJCOPY="$2"
4483 else
4484 OBJCOPY="${ncn_tool_prefix}$2"
4488 for ncn_progname in objdump; do
4489 if test -n "$ncn_tool_prefix"; then
4490 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4491 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4492 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4493 echo "configure:4494: checking for $ac_word" >&5
4494 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4495 echo $ac_n "(cached) $ac_c" 1>&6
4496 else
4497 if test -n "$OBJDUMP"; then
4498 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4499 else
4500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4501 ac_dummy="$PATH"
4502 for ac_dir in $ac_dummy; do
4503 test -z "$ac_dir" && ac_dir=.
4504 if test -f $ac_dir/$ac_word; then
4505 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4506 break
4508 done
4509 IFS="$ac_save_ifs"
4512 OBJDUMP="$ac_cv_prog_OBJDUMP"
4513 if test -n "$OBJDUMP"; then
4514 echo "$ac_t""$OBJDUMP" 1>&6
4515 else
4516 echo "$ac_t""no" 1>&6
4520 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4522 set dummy ${ncn_progname}; ac_word=$2
4523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4524 echo "configure:4525: checking for $ac_word" >&5
4525 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4526 echo $ac_n "(cached) $ac_c" 1>&6
4527 else
4528 if test -n "$OBJDUMP"; then
4529 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4530 else
4531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4532 ac_dummy="$PATH"
4533 for ac_dir in $ac_dummy; do
4534 test -z "$ac_dir" && ac_dir=.
4535 if test -f $ac_dir/$ac_word; then
4536 ac_cv_prog_OBJDUMP="${ncn_progname}"
4537 break
4539 done
4540 IFS="$ac_save_ifs"
4543 OBJDUMP="$ac_cv_prog_OBJDUMP"
4544 if test -n "$OBJDUMP"; then
4545 echo "$ac_t""$OBJDUMP" 1>&6
4546 else
4547 echo "$ac_t""no" 1>&6
4551 test -n "$ac_cv_prog_OBJDUMP" && break
4552 done
4554 if test -z "$ac_cv_prog_OBJDUMP" ; then
4555 set dummy objdump
4556 if test $build = $host ; then
4557 OBJDUMP="$2"
4558 else
4559 OBJDUMP="${ncn_tool_prefix}$2"
4569 # Target tools.
4570 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4571 if test "${with_build_time_tools+set}" = set; then
4572 withval="$with_build_time_tools"
4573 case x"$withval" in
4574 x/*) ;;
4576 with_build_time_tools=
4577 echo "configure: warning: argument to --with-build-time-tools must be an absolute path" 1>&2
4579 esac
4580 else
4581 with_build_time_tools=
4585 if test -n "$with_build_time_tools"; then
4586 for ncn_progname in cc gcc; do
4587 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4588 echo "configure:4589: checking for ${ncn_progname} in $with_build_time_tools" >&5
4589 if test -x $with_build_time_tools/${ncn_progname}; then
4590 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4591 echo "$ac_t""yes" 1>&6
4592 break
4593 else
4594 echo "$ac_t""no" 1>&6
4596 done
4599 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4600 for ncn_progname in cc gcc; do
4601 if test -n "$ncn_target_tool_prefix"; then
4602 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4603 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4605 echo "configure:4606: checking for $ac_word" >&5
4606 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4607 echo $ac_n "(cached) $ac_c" 1>&6
4608 else
4609 if test -n "$CC_FOR_TARGET"; then
4610 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4611 else
4612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4613 ac_dummy="$PATH"
4614 for ac_dir in $ac_dummy; do
4615 test -z "$ac_dir" && ac_dir=.
4616 if test -f $ac_dir/$ac_word; then
4617 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4618 break
4620 done
4621 IFS="$ac_save_ifs"
4624 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4625 if test -n "$CC_FOR_TARGET"; then
4626 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4627 else
4628 echo "$ac_t""no" 1>&6
4632 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4634 set dummy ${ncn_progname}; ac_word=$2
4635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4636 echo "configure:4637: checking for $ac_word" >&5
4637 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4638 echo $ac_n "(cached) $ac_c" 1>&6
4639 else
4640 if test -n "$CC_FOR_TARGET"; then
4641 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4642 else
4643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4644 ac_dummy="$PATH"
4645 for ac_dir in $ac_dummy; do
4646 test -z "$ac_dir" && ac_dir=.
4647 if test -f $ac_dir/$ac_word; then
4648 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4649 break
4651 done
4652 IFS="$ac_save_ifs"
4655 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4656 if test -n "$CC_FOR_TARGET"; then
4657 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4658 else
4659 echo "$ac_t""no" 1>&6
4663 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4664 done
4667 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4668 set dummy cc gcc
4669 if test $build = $target ; then
4670 CC_FOR_TARGET="$2"
4671 else
4672 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4676 if test -n "$with_build_time_tools"; then
4677 for ncn_progname in c++ g++ cxx gxx; do
4678 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4679 echo "configure:4680: checking for ${ncn_progname} in $with_build_time_tools" >&5
4680 if test -x $with_build_time_tools/${ncn_progname}; then
4681 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4682 echo "$ac_t""yes" 1>&6
4683 break
4684 else
4685 echo "$ac_t""no" 1>&6
4687 done
4690 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4691 for ncn_progname in c++ g++ cxx gxx; do
4692 if test -n "$ncn_target_tool_prefix"; then
4693 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4694 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4696 echo "configure:4697: checking for $ac_word" >&5
4697 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4699 else
4700 if test -n "$CXX_FOR_TARGET"; then
4701 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4702 else
4703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4704 ac_dummy="$PATH"
4705 for ac_dir in $ac_dummy; do
4706 test -z "$ac_dir" && ac_dir=.
4707 if test -f $ac_dir/$ac_word; then
4708 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4709 break
4711 done
4712 IFS="$ac_save_ifs"
4715 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4716 if test -n "$CXX_FOR_TARGET"; then
4717 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4718 else
4719 echo "$ac_t""no" 1>&6
4723 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4725 set dummy ${ncn_progname}; ac_word=$2
4726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4727 echo "configure:4728: checking for $ac_word" >&5
4728 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4729 echo $ac_n "(cached) $ac_c" 1>&6
4730 else
4731 if test -n "$CXX_FOR_TARGET"; then
4732 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4733 else
4734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4735 ac_dummy="$PATH"
4736 for ac_dir in $ac_dummy; do
4737 test -z "$ac_dir" && ac_dir=.
4738 if test -f $ac_dir/$ac_word; then
4739 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4740 break
4742 done
4743 IFS="$ac_save_ifs"
4746 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4747 if test -n "$CXX_FOR_TARGET"; then
4748 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4749 else
4750 echo "$ac_t""no" 1>&6
4754 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4755 done
4758 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4759 set dummy c++ g++ cxx gxx
4760 if test $build = $target ; then
4761 CXX_FOR_TARGET="$2"
4762 else
4763 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4767 if test -n "$with_build_time_tools"; then
4768 for ncn_progname in gcc; do
4769 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4770 echo "configure:4771: checking for ${ncn_progname} in $with_build_time_tools" >&5
4771 if test -x $with_build_time_tools/${ncn_progname}; then
4772 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4773 echo "$ac_t""yes" 1>&6
4774 break
4775 else
4776 echo "$ac_t""no" 1>&6
4778 done
4781 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4782 for ncn_progname in gcc; do
4783 if test -n "$ncn_target_tool_prefix"; then
4784 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4785 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4787 echo "configure:4788: checking for $ac_word" >&5
4788 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4789 echo $ac_n "(cached) $ac_c" 1>&6
4790 else
4791 if test -n "$GCC_FOR_TARGET"; then
4792 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4793 else
4794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4795 ac_dummy="$PATH"
4796 for ac_dir in $ac_dummy; do
4797 test -z "$ac_dir" && ac_dir=.
4798 if test -f $ac_dir/$ac_word; then
4799 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4800 break
4802 done
4803 IFS="$ac_save_ifs"
4806 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4807 if test -n "$GCC_FOR_TARGET"; then
4808 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4809 else
4810 echo "$ac_t""no" 1>&6
4814 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4816 set dummy ${ncn_progname}; ac_word=$2
4817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4818 echo "configure:4819: checking for $ac_word" >&5
4819 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4821 else
4822 if test -n "$GCC_FOR_TARGET"; then
4823 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4824 else
4825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4826 ac_dummy="$PATH"
4827 for ac_dir in $ac_dummy; do
4828 test -z "$ac_dir" && ac_dir=.
4829 if test -f $ac_dir/$ac_word; then
4830 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4831 break
4833 done
4834 IFS="$ac_save_ifs"
4837 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4838 if test -n "$GCC_FOR_TARGET"; then
4839 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4840 else
4841 echo "$ac_t""no" 1>&6
4845 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4846 done
4849 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4850 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4853 if test -n "$with_build_time_tools"; then
4854 for ncn_progname in gcj; do
4855 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4856 echo "configure:4857: checking for ${ncn_progname} in $with_build_time_tools" >&5
4857 if test -x $with_build_time_tools/${ncn_progname}; then
4858 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4859 echo "$ac_t""yes" 1>&6
4860 break
4861 else
4862 echo "$ac_t""no" 1>&6
4864 done
4867 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4868 for ncn_progname in gcj; do
4869 if test -n "$ncn_target_tool_prefix"; then
4870 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4871 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4872 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4873 echo "configure:4874: checking for $ac_word" >&5
4874 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4876 else
4877 if test -n "$GCJ_FOR_TARGET"; then
4878 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4879 else
4880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4881 ac_dummy="$PATH"
4882 for ac_dir in $ac_dummy; do
4883 test -z "$ac_dir" && ac_dir=.
4884 if test -f $ac_dir/$ac_word; then
4885 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4886 break
4888 done
4889 IFS="$ac_save_ifs"
4892 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4893 if test -n "$GCJ_FOR_TARGET"; then
4894 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4895 else
4896 echo "$ac_t""no" 1>&6
4900 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4901 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4902 set dummy ${ncn_progname}; ac_word=$2
4903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4904 echo "configure:4905: checking for $ac_word" >&5
4905 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4906 echo $ac_n "(cached) $ac_c" 1>&6
4907 else
4908 if test -n "$GCJ_FOR_TARGET"; then
4909 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4910 else
4911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4912 ac_dummy="$PATH"
4913 for ac_dir in $ac_dummy; do
4914 test -z "$ac_dir" && ac_dir=.
4915 if test -f $ac_dir/$ac_word; then
4916 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4917 break
4919 done
4920 IFS="$ac_save_ifs"
4923 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4924 if test -n "$GCJ_FOR_TARGET"; then
4925 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4926 else
4927 echo "$ac_t""no" 1>&6
4931 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4932 done
4935 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4936 set dummy gcj
4937 if test $build = $target ; then
4938 GCJ_FOR_TARGET="$2"
4939 else
4940 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4944 if test -n "$with_build_time_tools"; then
4945 for ncn_progname in gfortran; do
4946 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4947 echo "configure:4948: checking for ${ncn_progname} in $with_build_time_tools" >&5
4948 if test -x $with_build_time_tools/${ncn_progname}; then
4949 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4950 echo "$ac_t""yes" 1>&6
4951 break
4952 else
4953 echo "$ac_t""no" 1>&6
4955 done
4958 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
4959 for ncn_progname in gfortran; do
4960 if test -n "$ncn_target_tool_prefix"; then
4961 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4962 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4964 echo "configure:4965: checking for $ac_word" >&5
4965 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4966 echo $ac_n "(cached) $ac_c" 1>&6
4967 else
4968 if test -n "$GFORTRAN_FOR_TARGET"; then
4969 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4970 else
4971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4972 ac_dummy="$PATH"
4973 for ac_dir in $ac_dummy; do
4974 test -z "$ac_dir" && ac_dir=.
4975 if test -f $ac_dir/$ac_word; then
4976 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4977 break
4979 done
4980 IFS="$ac_save_ifs"
4983 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4984 if test -n "$GFORTRAN_FOR_TARGET"; then
4985 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4986 else
4987 echo "$ac_t""no" 1>&6
4991 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
4992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4993 set dummy ${ncn_progname}; ac_word=$2
4994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4995 echo "configure:4996: checking for $ac_word" >&5
4996 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
4998 else
4999 if test -n "$GFORTRAN_FOR_TARGET"; then
5000 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5001 else
5002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5003 ac_dummy="$PATH"
5004 for ac_dir in $ac_dummy; do
5005 test -z "$ac_dir" && ac_dir=.
5006 if test -f $ac_dir/$ac_word; then
5007 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5008 break
5010 done
5011 IFS="$ac_save_ifs"
5014 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5015 if test -n "$GFORTRAN_FOR_TARGET"; then
5016 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5017 else
5018 echo "$ac_t""no" 1>&6
5022 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5023 done
5026 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5027 set dummy gfortran
5028 if test $build = $target ; then
5029 GFORTRAN_FOR_TARGET="$2"
5030 else
5031 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5037 # The user is always right.
5038 if test "${PATH_SEPARATOR+set}" != set; then
5039 echo "#! /bin/sh" >conf$$.sh
5040 echo "exit 0" >>conf$$.sh
5041 chmod +x conf$$.sh
5042 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5043 PATH_SEPARATOR=';'
5044 else
5045 PATH_SEPARATOR=:
5047 rm -f conf$$.sh
5052 if test "x$exec_prefix" = xNONE; then
5053 if test "x$prefix" = xNONE; then
5054 gcc_cv_tool_prefix=$ac_default_prefix
5055 else
5056 gcc_cv_tool_prefix=$prefix
5058 else
5059 gcc_cv_tool_prefix=$exec_prefix
5062 # If there is no compiler in the tree, use the PATH only. In any
5063 # case, if there is no compiler in the tree nobody should use
5064 # AS_FOR_TARGET and LD_FOR_TARGET.
5065 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5066 gcc_version=`cat $srcdir/gcc/BASE-VER`
5067 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5068 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5069 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5070 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5071 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5072 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5073 else
5074 gcc_cv_tool_dirs=
5077 if test x$build = x$target && test -n "$md_exec_prefix"; then
5078 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5083 cat > conftest.c << \EOF
5084 #ifdef __GNUC__
5085 gcc_yay;
5086 #endif
5088 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
5089 have_gcc_for_target=yes
5090 else
5091 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
5092 have_gcc_for_target=no
5094 rm conftest.c
5099 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5100 if test -n "$with_build_time_tools"; then
5101 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5102 echo "configure:5103: checking for ar in $with_build_time_tools" >&5
5103 if test -x $with_build_time_tools/ar; then
5104 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
5105 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5106 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5107 else
5108 echo "$ac_t""no" 1>&6
5110 elif test $build != $host && test $have_gcc_for_target = yes; then
5111 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
5112 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
5113 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5116 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5117 # Extract the first word of "ar", so it can be a program name with args.
5118 set dummy ar; ac_word=$2
5119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5120 echo "configure:5121: checking for $ac_word" >&5
5121 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5122 echo $ac_n "(cached) $ac_c" 1>&6
5123 else
5124 case "$AR_FOR_TARGET" in
5126 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
5128 ?:/*)
5129 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5133 ac_dummy="$gcc_cv_tool_dirs"
5134 for ac_dir in $ac_dummy; do
5135 test -z "$ac_dir" && ac_dir=.
5136 if test -f $ac_dir/$ac_word; then
5137 ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
5138 break
5140 done
5141 IFS="$ac_save_ifs"
5143 esac
5145 AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
5146 if test -n "$AR_FOR_TARGET"; then
5147 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5148 else
5149 echo "$ac_t""no" 1>&6
5153 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5154 if test -n "$with_build_time_tools"; then
5155 for ncn_progname in ar; do
5156 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5157 echo "configure:5158: checking for ${ncn_progname} in $with_build_time_tools" >&5
5158 if test -x $with_build_time_tools/${ncn_progname}; then
5159 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5160 echo "$ac_t""yes" 1>&6
5161 break
5162 else
5163 echo "$ac_t""no" 1>&6
5165 done
5168 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5169 for ncn_progname in ar; do
5170 if test -n "$ncn_target_tool_prefix"; then
5171 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5172 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5173 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5174 echo "configure:5175: checking for $ac_word" >&5
5175 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5176 echo $ac_n "(cached) $ac_c" 1>&6
5177 else
5178 if test -n "$AR_FOR_TARGET"; then
5179 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5180 else
5181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5182 ac_dummy="$PATH"
5183 for ac_dir in $ac_dummy; do
5184 test -z "$ac_dir" && ac_dir=.
5185 if test -f $ac_dir/$ac_word; then
5186 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5187 break
5189 done
5190 IFS="$ac_save_ifs"
5193 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5194 if test -n "$AR_FOR_TARGET"; then
5195 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5196 else
5197 echo "$ac_t""no" 1>&6
5201 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5203 set dummy ${ncn_progname}; ac_word=$2
5204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5205 echo "configure:5206: checking for $ac_word" >&5
5206 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5207 echo $ac_n "(cached) $ac_c" 1>&6
5208 else
5209 if test -n "$AR_FOR_TARGET"; then
5210 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5211 else
5212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5213 ac_dummy="$PATH"
5214 for ac_dir in $ac_dummy; do
5215 test -z "$ac_dir" && ac_dir=.
5216 if test -f $ac_dir/$ac_word; then
5217 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5218 break
5220 done
5221 IFS="$ac_save_ifs"
5224 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5225 if test -n "$AR_FOR_TARGET"; then
5226 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5227 else
5228 echo "$ac_t""no" 1>&6
5232 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5233 done
5236 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5237 set dummy ar
5238 if test $build = $target ; then
5239 AR_FOR_TARGET="$2"
5240 else
5241 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
5245 else
5246 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
5252 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5253 if test -n "$with_build_time_tools"; then
5254 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5255 echo "configure:5256: checking for as in $with_build_time_tools" >&5
5256 if test -x $with_build_time_tools/as; then
5257 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
5258 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5259 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5260 else
5261 echo "$ac_t""no" 1>&6
5263 elif test $build != $host && test $have_gcc_for_target = yes; then
5264 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
5265 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
5266 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5269 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5270 # Extract the first word of "as", so it can be a program name with args.
5271 set dummy as; ac_word=$2
5272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5273 echo "configure:5274: checking for $ac_word" >&5
5274 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5276 else
5277 case "$AS_FOR_TARGET" in
5279 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
5281 ?:/*)
5282 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5286 ac_dummy="$gcc_cv_tool_dirs"
5287 for ac_dir in $ac_dummy; do
5288 test -z "$ac_dir" && ac_dir=.
5289 if test -f $ac_dir/$ac_word; then
5290 ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
5291 break
5293 done
5294 IFS="$ac_save_ifs"
5296 esac
5298 AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
5299 if test -n "$AS_FOR_TARGET"; then
5300 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5301 else
5302 echo "$ac_t""no" 1>&6
5306 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5307 if test -n "$with_build_time_tools"; then
5308 for ncn_progname in as; do
5309 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5310 echo "configure:5311: checking for ${ncn_progname} in $with_build_time_tools" >&5
5311 if test -x $with_build_time_tools/${ncn_progname}; then
5312 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5313 echo "$ac_t""yes" 1>&6
5314 break
5315 else
5316 echo "$ac_t""no" 1>&6
5318 done
5321 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5322 for ncn_progname in as; do
5323 if test -n "$ncn_target_tool_prefix"; then
5324 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5325 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5327 echo "configure:5328: checking for $ac_word" >&5
5328 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5329 echo $ac_n "(cached) $ac_c" 1>&6
5330 else
5331 if test -n "$AS_FOR_TARGET"; then
5332 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5333 else
5334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5335 ac_dummy="$PATH"
5336 for ac_dir in $ac_dummy; do
5337 test -z "$ac_dir" && ac_dir=.
5338 if test -f $ac_dir/$ac_word; then
5339 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5340 break
5342 done
5343 IFS="$ac_save_ifs"
5346 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5347 if test -n "$AS_FOR_TARGET"; then
5348 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5349 else
5350 echo "$ac_t""no" 1>&6
5354 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5356 set dummy ${ncn_progname}; ac_word=$2
5357 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5358 echo "configure:5359: checking for $ac_word" >&5
5359 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5360 echo $ac_n "(cached) $ac_c" 1>&6
5361 else
5362 if test -n "$AS_FOR_TARGET"; then
5363 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5364 else
5365 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5366 ac_dummy="$PATH"
5367 for ac_dir in $ac_dummy; do
5368 test -z "$ac_dir" && ac_dir=.
5369 if test -f $ac_dir/$ac_word; then
5370 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5371 break
5373 done
5374 IFS="$ac_save_ifs"
5377 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5378 if test -n "$AS_FOR_TARGET"; then
5379 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5380 else
5381 echo "$ac_t""no" 1>&6
5385 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5386 done
5389 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5390 set dummy as
5391 if test $build = $target ; then
5392 AS_FOR_TARGET="$2"
5393 else
5394 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
5398 else
5399 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
5405 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5406 if test -n "$with_build_time_tools"; then
5407 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5408 echo "configure:5409: checking for dlltool in $with_build_time_tools" >&5
5409 if test -x $with_build_time_tools/dlltool; then
5410 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
5411 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5412 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5413 else
5414 echo "$ac_t""no" 1>&6
5416 elif test $build != $host && test $have_gcc_for_target = yes; then
5417 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5418 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
5419 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5422 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5423 # Extract the first word of "dlltool", so it can be a program name with args.
5424 set dummy dlltool; ac_word=$2
5425 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5426 echo "configure:5427: checking for $ac_word" >&5
5427 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5428 echo $ac_n "(cached) $ac_c" 1>&6
5429 else
5430 case "$DLLTOOL_FOR_TARGET" in
5432 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5434 ?:/*)
5435 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5439 ac_dummy="$gcc_cv_tool_dirs"
5440 for ac_dir in $ac_dummy; do
5441 test -z "$ac_dir" && ac_dir=.
5442 if test -f $ac_dir/$ac_word; then
5443 ac_cv_path_DLLTOOL_FOR_TARGET="$ac_dir/$ac_word"
5444 break
5446 done
5447 IFS="$ac_save_ifs"
5449 esac
5451 DLLTOOL_FOR_TARGET="$ac_cv_path_DLLTOOL_FOR_TARGET"
5452 if test -n "$DLLTOOL_FOR_TARGET"; then
5453 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5454 else
5455 echo "$ac_t""no" 1>&6
5459 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5460 if test -n "$with_build_time_tools"; then
5461 for ncn_progname in dlltool; do
5462 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5463 echo "configure:5464: checking for ${ncn_progname} in $with_build_time_tools" >&5
5464 if test -x $with_build_time_tools/${ncn_progname}; then
5465 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5466 echo "$ac_t""yes" 1>&6
5467 break
5468 else
5469 echo "$ac_t""no" 1>&6
5471 done
5474 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5475 for ncn_progname in dlltool; do
5476 if test -n "$ncn_target_tool_prefix"; then
5477 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5478 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5479 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5480 echo "configure:5481: checking for $ac_word" >&5
5481 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5482 echo $ac_n "(cached) $ac_c" 1>&6
5483 else
5484 if test -n "$DLLTOOL_FOR_TARGET"; then
5485 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5486 else
5487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5488 ac_dummy="$PATH"
5489 for ac_dir in $ac_dummy; do
5490 test -z "$ac_dir" && ac_dir=.
5491 if test -f $ac_dir/$ac_word; then
5492 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5493 break
5495 done
5496 IFS="$ac_save_ifs"
5499 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5500 if test -n "$DLLTOOL_FOR_TARGET"; then
5501 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5502 else
5503 echo "$ac_t""no" 1>&6
5507 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5509 set dummy ${ncn_progname}; ac_word=$2
5510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5511 echo "configure:5512: checking for $ac_word" >&5
5512 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5513 echo $ac_n "(cached) $ac_c" 1>&6
5514 else
5515 if test -n "$DLLTOOL_FOR_TARGET"; then
5516 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5517 else
5518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5519 ac_dummy="$PATH"
5520 for ac_dir in $ac_dummy; do
5521 test -z "$ac_dir" && ac_dir=.
5522 if test -f $ac_dir/$ac_word; then
5523 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5524 break
5526 done
5527 IFS="$ac_save_ifs"
5530 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5531 if test -n "$DLLTOOL_FOR_TARGET"; then
5532 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5533 else
5534 echo "$ac_t""no" 1>&6
5538 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5539 done
5542 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5543 set dummy dlltool
5544 if test $build = $target ; then
5545 DLLTOOL_FOR_TARGET="$2"
5546 else
5547 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
5551 else
5552 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
5558 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5559 if test -n "$with_build_time_tools"; then
5560 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5561 echo "configure:5562: checking for ld in $with_build_time_tools" >&5
5562 if test -x $with_build_time_tools/ld; then
5563 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
5564 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5565 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5566 else
5567 echo "$ac_t""no" 1>&6
5569 elif test $build != $host && test $have_gcc_for_target = yes; then
5570 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
5571 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
5572 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5575 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5576 # Extract the first word of "ld", so it can be a program name with args.
5577 set dummy ld; ac_word=$2
5578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5579 echo "configure:5580: checking for $ac_word" >&5
5580 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5581 echo $ac_n "(cached) $ac_c" 1>&6
5582 else
5583 case "$LD_FOR_TARGET" in
5585 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
5587 ?:/*)
5588 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5592 ac_dummy="$gcc_cv_tool_dirs"
5593 for ac_dir in $ac_dummy; do
5594 test -z "$ac_dir" && ac_dir=.
5595 if test -f $ac_dir/$ac_word; then
5596 ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
5597 break
5599 done
5600 IFS="$ac_save_ifs"
5602 esac
5604 LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
5605 if test -n "$LD_FOR_TARGET"; then
5606 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5607 else
5608 echo "$ac_t""no" 1>&6
5612 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5613 if test -n "$with_build_time_tools"; then
5614 for ncn_progname in ld; do
5615 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5616 echo "configure:5617: checking for ${ncn_progname} in $with_build_time_tools" >&5
5617 if test -x $with_build_time_tools/${ncn_progname}; then
5618 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5619 echo "$ac_t""yes" 1>&6
5620 break
5621 else
5622 echo "$ac_t""no" 1>&6
5624 done
5627 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5628 for ncn_progname in ld; do
5629 if test -n "$ncn_target_tool_prefix"; then
5630 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5631 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5633 echo "configure:5634: checking for $ac_word" >&5
5634 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5635 echo $ac_n "(cached) $ac_c" 1>&6
5636 else
5637 if test -n "$LD_FOR_TARGET"; then
5638 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5639 else
5640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5641 ac_dummy="$PATH"
5642 for ac_dir in $ac_dummy; do
5643 test -z "$ac_dir" && ac_dir=.
5644 if test -f $ac_dir/$ac_word; then
5645 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5646 break
5648 done
5649 IFS="$ac_save_ifs"
5652 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5653 if test -n "$LD_FOR_TARGET"; then
5654 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5655 else
5656 echo "$ac_t""no" 1>&6
5660 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5662 set dummy ${ncn_progname}; ac_word=$2
5663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5664 echo "configure:5665: checking for $ac_word" >&5
5665 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5666 echo $ac_n "(cached) $ac_c" 1>&6
5667 else
5668 if test -n "$LD_FOR_TARGET"; then
5669 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5670 else
5671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5672 ac_dummy="$PATH"
5673 for ac_dir in $ac_dummy; do
5674 test -z "$ac_dir" && ac_dir=.
5675 if test -f $ac_dir/$ac_word; then
5676 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5677 break
5679 done
5680 IFS="$ac_save_ifs"
5683 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5684 if test -n "$LD_FOR_TARGET"; then
5685 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5686 else
5687 echo "$ac_t""no" 1>&6
5691 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5692 done
5695 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5696 set dummy ld
5697 if test $build = $target ; then
5698 LD_FOR_TARGET="$2"
5699 else
5700 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
5704 else
5705 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
5711 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5712 if test -n "$with_build_time_tools"; then
5713 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5714 echo "configure:5715: checking for lipo in $with_build_time_tools" >&5
5715 if test -x $with_build_time_tools/lipo; then
5716 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
5717 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5718 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5719 else
5720 echo "$ac_t""no" 1>&6
5722 elif test $build != $host && test $have_gcc_for_target = yes; then
5723 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
5724 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
5725 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5728 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5729 # Extract the first word of "lipo", so it can be a program name with args.
5730 set dummy lipo; ac_word=$2
5731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5732 echo "configure:5733: checking for $ac_word" >&5
5733 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5734 echo $ac_n "(cached) $ac_c" 1>&6
5735 else
5736 case "$LIPO_FOR_TARGET" in
5738 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5740 ?:/*)
5741 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5745 ac_dummy="$gcc_cv_tool_dirs"
5746 for ac_dir in $ac_dummy; do
5747 test -z "$ac_dir" && ac_dir=.
5748 if test -f $ac_dir/$ac_word; then
5749 ac_cv_path_LIPO_FOR_TARGET="$ac_dir/$ac_word"
5750 break
5752 done
5753 IFS="$ac_save_ifs"
5755 esac
5757 LIPO_FOR_TARGET="$ac_cv_path_LIPO_FOR_TARGET"
5758 if test -n "$LIPO_FOR_TARGET"; then
5759 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5760 else
5761 echo "$ac_t""no" 1>&6
5765 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5766 if test -n "$with_build_time_tools"; then
5767 for ncn_progname in lipo; do
5768 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5769 echo "configure:5770: checking for ${ncn_progname} in $with_build_time_tools" >&5
5770 if test -x $with_build_time_tools/${ncn_progname}; then
5771 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5772 echo "$ac_t""yes" 1>&6
5773 break
5774 else
5775 echo "$ac_t""no" 1>&6
5777 done
5780 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5781 for ncn_progname in lipo; do
5782 if test -n "$ncn_target_tool_prefix"; then
5783 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5784 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5786 echo "configure:5787: checking for $ac_word" >&5
5787 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5788 echo $ac_n "(cached) $ac_c" 1>&6
5789 else
5790 if test -n "$LIPO_FOR_TARGET"; then
5791 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5792 else
5793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5794 ac_dummy="$PATH"
5795 for ac_dir in $ac_dummy; do
5796 test -z "$ac_dir" && ac_dir=.
5797 if test -f $ac_dir/$ac_word; then
5798 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5799 break
5801 done
5802 IFS="$ac_save_ifs"
5805 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5806 if test -n "$LIPO_FOR_TARGET"; then
5807 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5808 else
5809 echo "$ac_t""no" 1>&6
5813 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5815 set dummy ${ncn_progname}; ac_word=$2
5816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5817 echo "configure:5818: checking for $ac_word" >&5
5818 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5819 echo $ac_n "(cached) $ac_c" 1>&6
5820 else
5821 if test -n "$LIPO_FOR_TARGET"; then
5822 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5823 else
5824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5825 ac_dummy="$PATH"
5826 for ac_dir in $ac_dummy; do
5827 test -z "$ac_dir" && ac_dir=.
5828 if test -f $ac_dir/$ac_word; then
5829 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5830 break
5832 done
5833 IFS="$ac_save_ifs"
5836 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5837 if test -n "$LIPO_FOR_TARGET"; then
5838 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5839 else
5840 echo "$ac_t""no" 1>&6
5844 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5845 done
5848 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5849 set dummy lipo
5850 if test $build = $target ; then
5851 LIPO_FOR_TARGET="$2"
5852 else
5853 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
5857 else
5858 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
5864 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5865 if test -n "$with_build_time_tools"; then
5866 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
5867 echo "configure:5868: checking for nm in $with_build_time_tools" >&5
5868 if test -x $with_build_time_tools/nm; then
5869 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
5870 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5871 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5872 else
5873 echo "$ac_t""no" 1>&6
5875 elif test $build != $host && test $have_gcc_for_target = yes; then
5876 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
5877 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
5878 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5881 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5882 # Extract the first word of "nm", so it can be a program name with args.
5883 set dummy nm; ac_word=$2
5884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5885 echo "configure:5886: checking for $ac_word" >&5
5886 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5887 echo $ac_n "(cached) $ac_c" 1>&6
5888 else
5889 case "$NM_FOR_TARGET" in
5891 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
5893 ?:/*)
5894 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5898 ac_dummy="$gcc_cv_tool_dirs"
5899 for ac_dir in $ac_dummy; do
5900 test -z "$ac_dir" && ac_dir=.
5901 if test -f $ac_dir/$ac_word; then
5902 ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
5903 break
5905 done
5906 IFS="$ac_save_ifs"
5908 esac
5910 NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
5911 if test -n "$NM_FOR_TARGET"; then
5912 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5913 else
5914 echo "$ac_t""no" 1>&6
5918 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5919 if test -n "$with_build_time_tools"; then
5920 for ncn_progname in nm; do
5921 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5922 echo "configure:5923: checking for ${ncn_progname} in $with_build_time_tools" >&5
5923 if test -x $with_build_time_tools/${ncn_progname}; then
5924 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5925 echo "$ac_t""yes" 1>&6
5926 break
5927 else
5928 echo "$ac_t""no" 1>&6
5930 done
5933 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
5934 for ncn_progname in nm; do
5935 if test -n "$ncn_target_tool_prefix"; then
5936 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5937 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5939 echo "configure:5940: checking for $ac_word" >&5
5940 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5941 echo $ac_n "(cached) $ac_c" 1>&6
5942 else
5943 if test -n "$NM_FOR_TARGET"; then
5944 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5945 else
5946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5947 ac_dummy="$PATH"
5948 for ac_dir in $ac_dummy; do
5949 test -z "$ac_dir" && ac_dir=.
5950 if test -f $ac_dir/$ac_word; then
5951 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5952 break
5954 done
5955 IFS="$ac_save_ifs"
5958 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5959 if test -n "$NM_FOR_TARGET"; then
5960 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5961 else
5962 echo "$ac_t""no" 1>&6
5966 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
5967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5968 set dummy ${ncn_progname}; ac_word=$2
5969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5970 echo "configure:5971: checking for $ac_word" >&5
5971 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5972 echo $ac_n "(cached) $ac_c" 1>&6
5973 else
5974 if test -n "$NM_FOR_TARGET"; then
5975 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5976 else
5977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5978 ac_dummy="$PATH"
5979 for ac_dir in $ac_dummy; do
5980 test -z "$ac_dir" && ac_dir=.
5981 if test -f $ac_dir/$ac_word; then
5982 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5983 break
5985 done
5986 IFS="$ac_save_ifs"
5989 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5990 if test -n "$NM_FOR_TARGET"; then
5991 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5992 else
5993 echo "$ac_t""no" 1>&6
5997 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
5998 done
6001 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6002 set dummy nm
6003 if test $build = $target ; then
6004 NM_FOR_TARGET="$2"
6005 else
6006 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
6010 else
6011 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
6017 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6018 if test -n "$with_build_time_tools"; then
6019 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6020 echo "configure:6021: checking for objdump in $with_build_time_tools" >&5
6021 if test -x $with_build_time_tools/objdump; then
6022 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
6023 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6024 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6025 else
6026 echo "$ac_t""no" 1>&6
6028 elif test $build != $host && test $have_gcc_for_target = yes; then
6029 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
6030 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
6031 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6034 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6035 # Extract the first word of "objdump", so it can be a program name with args.
6036 set dummy objdump; ac_word=$2
6037 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6038 echo "configure:6039: checking for $ac_word" >&5
6039 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6040 echo $ac_n "(cached) $ac_c" 1>&6
6041 else
6042 case "$OBJDUMP_FOR_TARGET" in
6044 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6046 ?:/*)
6047 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6051 ac_dummy="$gcc_cv_tool_dirs"
6052 for ac_dir in $ac_dummy; do
6053 test -z "$ac_dir" && ac_dir=.
6054 if test -f $ac_dir/$ac_word; then
6055 ac_cv_path_OBJDUMP_FOR_TARGET="$ac_dir/$ac_word"
6056 break
6058 done
6059 IFS="$ac_save_ifs"
6061 esac
6063 OBJDUMP_FOR_TARGET="$ac_cv_path_OBJDUMP_FOR_TARGET"
6064 if test -n "$OBJDUMP_FOR_TARGET"; then
6065 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6066 else
6067 echo "$ac_t""no" 1>&6
6071 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6072 if test -n "$with_build_time_tools"; then
6073 for ncn_progname in objdump; do
6074 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6075 echo "configure:6076: checking for ${ncn_progname} in $with_build_time_tools" >&5
6076 if test -x $with_build_time_tools/${ncn_progname}; then
6077 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6078 echo "$ac_t""yes" 1>&6
6079 break
6080 else
6081 echo "$ac_t""no" 1>&6
6083 done
6086 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6087 for ncn_progname in objdump; do
6088 if test -n "$ncn_target_tool_prefix"; then
6089 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6090 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6092 echo "configure:6093: checking for $ac_word" >&5
6093 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6094 echo $ac_n "(cached) $ac_c" 1>&6
6095 else
6096 if test -n "$OBJDUMP_FOR_TARGET"; then
6097 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6098 else
6099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6100 ac_dummy="$PATH"
6101 for ac_dir in $ac_dummy; do
6102 test -z "$ac_dir" && ac_dir=.
6103 if test -f $ac_dir/$ac_word; then
6104 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6105 break
6107 done
6108 IFS="$ac_save_ifs"
6111 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6112 if test -n "$OBJDUMP_FOR_TARGET"; then
6113 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6114 else
6115 echo "$ac_t""no" 1>&6
6119 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6121 set dummy ${ncn_progname}; ac_word=$2
6122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6123 echo "configure:6124: checking for $ac_word" >&5
6124 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6125 echo $ac_n "(cached) $ac_c" 1>&6
6126 else
6127 if test -n "$OBJDUMP_FOR_TARGET"; then
6128 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6129 else
6130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6131 ac_dummy="$PATH"
6132 for ac_dir in $ac_dummy; do
6133 test -z "$ac_dir" && ac_dir=.
6134 if test -f $ac_dir/$ac_word; then
6135 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
6136 break
6138 done
6139 IFS="$ac_save_ifs"
6142 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6143 if test -n "$OBJDUMP_FOR_TARGET"; then
6144 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6145 else
6146 echo "$ac_t""no" 1>&6
6150 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6151 done
6154 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6155 set dummy objdump
6156 if test $build = $target ; then
6157 OBJDUMP_FOR_TARGET="$2"
6158 else
6159 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6163 else
6164 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
6170 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6171 if test -n "$with_build_time_tools"; then
6172 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6173 echo "configure:6174: checking for ranlib in $with_build_time_tools" >&5
6174 if test -x $with_build_time_tools/ranlib; then
6175 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
6176 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6177 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6178 else
6179 echo "$ac_t""no" 1>&6
6181 elif test $build != $host && test $have_gcc_for_target = yes; then
6182 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6183 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
6184 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6187 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6188 # Extract the first word of "ranlib", so it can be a program name with args.
6189 set dummy ranlib; ac_word=$2
6190 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6191 echo "configure:6192: checking for $ac_word" >&5
6192 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6193 echo $ac_n "(cached) $ac_c" 1>&6
6194 else
6195 case "$RANLIB_FOR_TARGET" in
6197 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6199 ?:/*)
6200 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6204 ac_dummy="$gcc_cv_tool_dirs"
6205 for ac_dir in $ac_dummy; do
6206 test -z "$ac_dir" && ac_dir=.
6207 if test -f $ac_dir/$ac_word; then
6208 ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
6209 break
6211 done
6212 IFS="$ac_save_ifs"
6214 esac
6216 RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
6217 if test -n "$RANLIB_FOR_TARGET"; then
6218 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6219 else
6220 echo "$ac_t""no" 1>&6
6224 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6225 if test -n "$with_build_time_tools"; then
6226 for ncn_progname in ranlib; do
6227 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6228 echo "configure:6229: checking for ${ncn_progname} in $with_build_time_tools" >&5
6229 if test -x $with_build_time_tools/${ncn_progname}; then
6230 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6231 echo "$ac_t""yes" 1>&6
6232 break
6233 else
6234 echo "$ac_t""no" 1>&6
6236 done
6239 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6240 for ncn_progname in ranlib; do
6241 if test -n "$ncn_target_tool_prefix"; then
6242 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6243 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6244 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6245 echo "configure:6246: checking for $ac_word" >&5
6246 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6247 echo $ac_n "(cached) $ac_c" 1>&6
6248 else
6249 if test -n "$RANLIB_FOR_TARGET"; then
6250 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6251 else
6252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6253 ac_dummy="$PATH"
6254 for ac_dir in $ac_dummy; do
6255 test -z "$ac_dir" && ac_dir=.
6256 if test -f $ac_dir/$ac_word; then
6257 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6258 break
6260 done
6261 IFS="$ac_save_ifs"
6264 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6265 if test -n "$RANLIB_FOR_TARGET"; then
6266 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6267 else
6268 echo "$ac_t""no" 1>&6
6272 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6274 set dummy ${ncn_progname}; ac_word=$2
6275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6276 echo "configure:6277: checking for $ac_word" >&5
6277 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6278 echo $ac_n "(cached) $ac_c" 1>&6
6279 else
6280 if test -n "$RANLIB_FOR_TARGET"; then
6281 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6282 else
6283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6284 ac_dummy="$PATH"
6285 for ac_dir in $ac_dummy; do
6286 test -z "$ac_dir" && ac_dir=.
6287 if test -f $ac_dir/$ac_word; then
6288 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
6289 break
6291 done
6292 IFS="$ac_save_ifs"
6295 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6296 if test -n "$RANLIB_FOR_TARGET"; then
6297 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6298 else
6299 echo "$ac_t""no" 1>&6
6303 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6304 done
6307 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6308 set dummy ranlib
6309 if test $build = $target ; then
6310 RANLIB_FOR_TARGET="$2"
6311 else
6312 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
6316 else
6317 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
6323 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6324 if test -n "$with_build_time_tools"; then
6325 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6326 echo "configure:6327: checking for strip in $with_build_time_tools" >&5
6327 if test -x $with_build_time_tools/strip; then
6328 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
6329 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6330 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6331 else
6332 echo "$ac_t""no" 1>&6
6334 elif test $build != $host && test $have_gcc_for_target = yes; then
6335 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
6336 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
6337 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6340 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6341 # Extract the first word of "strip", so it can be a program name with args.
6342 set dummy strip; ac_word=$2
6343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6344 echo "configure:6345: checking for $ac_word" >&5
6345 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6346 echo $ac_n "(cached) $ac_c" 1>&6
6347 else
6348 case "$STRIP_FOR_TARGET" in
6350 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6352 ?:/*)
6353 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6357 ac_dummy="$gcc_cv_tool_dirs"
6358 for ac_dir in $ac_dummy; do
6359 test -z "$ac_dir" && ac_dir=.
6360 if test -f $ac_dir/$ac_word; then
6361 ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
6362 break
6364 done
6365 IFS="$ac_save_ifs"
6367 esac
6369 STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
6370 if test -n "$STRIP_FOR_TARGET"; then
6371 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6372 else
6373 echo "$ac_t""no" 1>&6
6377 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6378 if test -n "$with_build_time_tools"; then
6379 for ncn_progname in strip; do
6380 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6381 echo "configure:6382: checking for ${ncn_progname} in $with_build_time_tools" >&5
6382 if test -x $with_build_time_tools/${ncn_progname}; then
6383 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6384 echo "$ac_t""yes" 1>&6
6385 break
6386 else
6387 echo "$ac_t""no" 1>&6
6389 done
6392 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6393 for ncn_progname in strip; do
6394 if test -n "$ncn_target_tool_prefix"; then
6395 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6396 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6398 echo "configure:6399: checking for $ac_word" >&5
6399 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6400 echo $ac_n "(cached) $ac_c" 1>&6
6401 else
6402 if test -n "$STRIP_FOR_TARGET"; then
6403 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6404 else
6405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6406 ac_dummy="$PATH"
6407 for ac_dir in $ac_dummy; do
6408 test -z "$ac_dir" && ac_dir=.
6409 if test -f $ac_dir/$ac_word; then
6410 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6411 break
6413 done
6414 IFS="$ac_save_ifs"
6417 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6418 if test -n "$STRIP_FOR_TARGET"; then
6419 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6420 else
6421 echo "$ac_t""no" 1>&6
6425 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6427 set dummy ${ncn_progname}; ac_word=$2
6428 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6429 echo "configure:6430: checking for $ac_word" >&5
6430 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6431 echo $ac_n "(cached) $ac_c" 1>&6
6432 else
6433 if test -n "$STRIP_FOR_TARGET"; then
6434 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6435 else
6436 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6437 ac_dummy="$PATH"
6438 for ac_dir in $ac_dummy; do
6439 test -z "$ac_dir" && ac_dir=.
6440 if test -f $ac_dir/$ac_word; then
6441 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
6442 break
6444 done
6445 IFS="$ac_save_ifs"
6448 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6449 if test -n "$STRIP_FOR_TARGET"; then
6450 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6451 else
6452 echo "$ac_t""no" 1>&6
6456 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6457 done
6460 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6461 set dummy strip
6462 if test $build = $target ; then
6463 STRIP_FOR_TARGET="$2"
6464 else
6465 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6469 else
6470 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
6476 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6477 if test -n "$with_build_time_tools"; then
6478 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6479 echo "configure:6480: checking for windres in $with_build_time_tools" >&5
6480 if test -x $with_build_time_tools/windres; then
6481 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
6482 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6483 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6484 else
6485 echo "$ac_t""no" 1>&6
6487 elif test $build != $host && test $have_gcc_for_target = yes; then
6488 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
6489 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
6490 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6493 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6494 # Extract the first word of "windres", so it can be a program name with args.
6495 set dummy windres; ac_word=$2
6496 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6497 echo "configure:6498: checking for $ac_word" >&5
6498 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6499 echo $ac_n "(cached) $ac_c" 1>&6
6500 else
6501 case "$WINDRES_FOR_TARGET" in
6503 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6505 ?:/*)
6506 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6509 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6510 ac_dummy="$gcc_cv_tool_dirs"
6511 for ac_dir in $ac_dummy; do
6512 test -z "$ac_dir" && ac_dir=.
6513 if test -f $ac_dir/$ac_word; then
6514 ac_cv_path_WINDRES_FOR_TARGET="$ac_dir/$ac_word"
6515 break
6517 done
6518 IFS="$ac_save_ifs"
6520 esac
6522 WINDRES_FOR_TARGET="$ac_cv_path_WINDRES_FOR_TARGET"
6523 if test -n "$WINDRES_FOR_TARGET"; then
6524 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6525 else
6526 echo "$ac_t""no" 1>&6
6530 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6531 if test -n "$with_build_time_tools"; then
6532 for ncn_progname in windres; do
6533 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6534 echo "configure:6535: checking for ${ncn_progname} in $with_build_time_tools" >&5
6535 if test -x $with_build_time_tools/${ncn_progname}; then
6536 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6537 echo "$ac_t""yes" 1>&6
6538 break
6539 else
6540 echo "$ac_t""no" 1>&6
6542 done
6545 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6546 for ncn_progname in windres; do
6547 if test -n "$ncn_target_tool_prefix"; then
6548 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6549 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6551 echo "configure:6552: checking for $ac_word" >&5
6552 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6553 echo $ac_n "(cached) $ac_c" 1>&6
6554 else
6555 if test -n "$WINDRES_FOR_TARGET"; then
6556 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6557 else
6558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6559 ac_dummy="$PATH"
6560 for ac_dir in $ac_dummy; do
6561 test -z "$ac_dir" && ac_dir=.
6562 if test -f $ac_dir/$ac_word; then
6563 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6564 break
6566 done
6567 IFS="$ac_save_ifs"
6570 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6571 if test -n "$WINDRES_FOR_TARGET"; then
6572 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6573 else
6574 echo "$ac_t""no" 1>&6
6578 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6580 set dummy ${ncn_progname}; ac_word=$2
6581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6582 echo "configure:6583: checking for $ac_word" >&5
6583 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6584 echo $ac_n "(cached) $ac_c" 1>&6
6585 else
6586 if test -n "$WINDRES_FOR_TARGET"; then
6587 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6588 else
6589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6590 ac_dummy="$PATH"
6591 for ac_dir in $ac_dummy; do
6592 test -z "$ac_dir" && ac_dir=.
6593 if test -f $ac_dir/$ac_word; then
6594 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
6595 break
6597 done
6598 IFS="$ac_save_ifs"
6601 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6602 if test -n "$WINDRES_FOR_TARGET"; then
6603 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6604 else
6605 echo "$ac_t""no" 1>&6
6609 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6610 done
6613 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6614 set dummy windres
6615 if test $build = $target ; then
6616 WINDRES_FOR_TARGET="$2"
6617 else
6618 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
6622 else
6623 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
6627 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
6629 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6630 echo "configure:6631: checking where to find the target ar" >&5
6631 if test "x${build}" != "x${host}" ; then
6632 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6633 # We already found the complete path
6634 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6635 else
6636 # Canadian cross, just use what we found
6637 echo "$ac_t""pre-installed" 1>&6
6639 else
6640 ok=yes
6641 case " ${configdirs} " in
6642 *" binutils "*) ;;
6643 *) ok=no ;;
6644 esac
6646 if test $ok = yes; then
6647 # An in-tree tool is available and we can use it
6648 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
6649 echo "$ac_t""just compiled" 1>&6
6650 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6651 # We already found the complete path
6652 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6653 elif test "x$target" = "x$host"; then
6654 # We can use an host tool
6655 AR_FOR_TARGET='$(AR)'
6656 echo "$ac_t""host tool" 1>&6
6657 else
6658 # We need a cross tool
6659 echo "$ac_t""pre-installed" 1>&6
6662 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6663 echo "configure:6664: checking where to find the target as" >&5
6664 if test "x${build}" != "x${host}" ; then
6665 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6666 # We already found the complete path
6667 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6668 else
6669 # Canadian cross, just use what we found
6670 echo "$ac_t""pre-installed" 1>&6
6672 else
6673 ok=yes
6674 case " ${configdirs} " in
6675 *" gas "*) ;;
6676 *) ok=no ;;
6677 esac
6679 if test $ok = yes; then
6680 # An in-tree tool is available and we can use it
6681 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
6682 echo "$ac_t""just compiled" 1>&6
6683 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6684 # We already found the complete path
6685 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6686 elif test "x$target" = "x$host"; then
6687 # We can use an host tool
6688 AS_FOR_TARGET='$(AS)'
6689 echo "$ac_t""host tool" 1>&6
6690 else
6691 # We need a cross tool
6692 echo "$ac_t""pre-installed" 1>&6
6695 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6696 echo "configure:6697: checking where to find the target cc" >&5
6697 if test "x${build}" != "x${host}" ; then
6698 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6699 # We already found the complete path
6700 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6701 else
6702 # Canadian cross, just use what we found
6703 echo "$ac_t""pre-installed" 1>&6
6705 else
6706 ok=yes
6707 case " ${configdirs} " in
6708 *" gcc "*) ;;
6709 *) ok=no ;;
6710 esac
6712 if test $ok = yes; then
6713 # An in-tree tool is available and we can use it
6714 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6715 echo "$ac_t""just compiled" 1>&6
6716 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6717 # We already found the complete path
6718 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6719 elif test "x$target" = "x$host"; then
6720 # We can use an host tool
6721 CC_FOR_TARGET='$(CC)'
6722 echo "$ac_t""host tool" 1>&6
6723 else
6724 # We need a cross tool
6725 echo "$ac_t""pre-installed" 1>&6
6728 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6729 echo "configure:6730: checking where to find the target c++" >&5
6730 if test "x${build}" != "x${host}" ; then
6731 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6732 # We already found the complete path
6733 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6734 else
6735 # Canadian cross, just use what we found
6736 echo "$ac_t""pre-installed" 1>&6
6738 else
6739 ok=yes
6740 case " ${configdirs} " in
6741 *" gcc "*) ;;
6742 *) ok=no ;;
6743 esac
6744 case ,${enable_languages}, in
6745 *,c++,*) ;;
6746 *) ok=no ;;
6747 esac
6748 if test $ok = yes; then
6749 # An in-tree tool is available and we can use it
6750 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'
6751 echo "$ac_t""just compiled" 1>&6
6752 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6753 # We already found the complete path
6754 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6755 elif test "x$target" = "x$host"; then
6756 # We can use an host tool
6757 CXX_FOR_TARGET='$(CXX)'
6758 echo "$ac_t""host tool" 1>&6
6759 else
6760 # We need a cross tool
6761 echo "$ac_t""pre-installed" 1>&6
6764 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6765 echo "configure:6766: checking where to find the target c++ for libstdc++" >&5
6766 if test "x${build}" != "x${host}" ; then
6767 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6768 # We already found the complete path
6769 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6770 else
6771 # Canadian cross, just use what we found
6772 echo "$ac_t""pre-installed" 1>&6
6774 else
6775 ok=yes
6776 case " ${configdirs} " in
6777 *" gcc "*) ;;
6778 *) ok=no ;;
6779 esac
6780 case ,${enable_languages}, in
6781 *,c++,*) ;;
6782 *) ok=no ;;
6783 esac
6784 if test $ok = yes; then
6785 # An in-tree tool is available and we can use it
6786 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'
6787 echo "$ac_t""just compiled" 1>&6
6788 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6789 # We already found the complete path
6790 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6791 elif test "x$target" = "x$host"; then
6792 # We can use an host tool
6793 RAW_CXX_FOR_TARGET='$(CXX)'
6794 echo "$ac_t""host tool" 1>&6
6795 else
6796 # We need a cross tool
6797 echo "$ac_t""pre-installed" 1>&6
6800 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6801 echo "configure:6802: checking where to find the target dlltool" >&5
6802 if test "x${build}" != "x${host}" ; then
6803 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6804 # We already found the complete path
6805 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6806 else
6807 # Canadian cross, just use what we found
6808 echo "$ac_t""pre-installed" 1>&6
6810 else
6811 ok=yes
6812 case " ${configdirs} " in
6813 *" binutils "*) ;;
6814 *) ok=no ;;
6815 esac
6817 if test $ok = yes; then
6818 # An in-tree tool is available and we can use it
6819 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6820 echo "$ac_t""just compiled" 1>&6
6821 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6822 # We already found the complete path
6823 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6824 elif test "x$target" = "x$host"; then
6825 # We can use an host tool
6826 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
6827 echo "$ac_t""host tool" 1>&6
6828 else
6829 # We need a cross tool
6830 echo "$ac_t""pre-installed" 1>&6
6833 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6834 echo "configure:6835: checking where to find the target gcc" >&5
6835 if test "x${build}" != "x${host}" ; then
6836 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6837 # We already found the complete path
6838 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6839 else
6840 # Canadian cross, just use what we found
6841 echo "$ac_t""pre-installed" 1>&6
6843 else
6844 ok=yes
6845 case " ${configdirs} " in
6846 *" gcc "*) ;;
6847 *) ok=no ;;
6848 esac
6850 if test $ok = yes; then
6851 # An in-tree tool is available and we can use it
6852 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6853 echo "$ac_t""just compiled" 1>&6
6854 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6855 # We already found the complete path
6856 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6857 elif test "x$target" = "x$host"; then
6858 # We can use an host tool
6859 GCC_FOR_TARGET='$()'
6860 echo "$ac_t""host tool" 1>&6
6861 else
6862 # We need a cross tool
6863 echo "$ac_t""pre-installed" 1>&6
6866 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6867 echo "configure:6868: checking where to find the target gcj" >&5
6868 if test "x${build}" != "x${host}" ; then
6869 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6870 # We already found the complete path
6871 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6872 else
6873 # Canadian cross, just use what we found
6874 echo "$ac_t""pre-installed" 1>&6
6876 else
6877 ok=yes
6878 case " ${configdirs} " in
6879 *" gcc "*) ;;
6880 *) ok=no ;;
6881 esac
6882 case ,${enable_languages}, in
6883 *,java,*) ;;
6884 *) ok=no ;;
6885 esac
6886 if test $ok = yes; then
6887 # An in-tree tool is available and we can use it
6888 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6889 echo "$ac_t""just compiled" 1>&6
6890 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6891 # We already found the complete path
6892 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6893 elif test "x$target" = "x$host"; then
6894 # We can use an host tool
6895 GCJ_FOR_TARGET='$(GCJ)'
6896 echo "$ac_t""host tool" 1>&6
6897 else
6898 # We need a cross tool
6899 echo "$ac_t""pre-installed" 1>&6
6902 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
6903 echo "configure:6904: checking where to find the target gfortran" >&5
6904 if test "x${build}" != "x${host}" ; then
6905 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6906 # We already found the complete path
6907 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6908 else
6909 # Canadian cross, just use what we found
6910 echo "$ac_t""pre-installed" 1>&6
6912 else
6913 ok=yes
6914 case " ${configdirs} " in
6915 *" gcc "*) ;;
6916 *) ok=no ;;
6917 esac
6918 case ,${enable_languages}, in
6919 *,fortran,*) ;;
6920 *) ok=no ;;
6921 esac
6922 if test $ok = yes; then
6923 # An in-tree tool is available and we can use it
6924 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
6925 echo "$ac_t""just compiled" 1>&6
6926 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6927 # We already found the complete path
6928 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6929 elif test "x$target" = "x$host"; then
6930 # We can use an host tool
6931 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
6932 echo "$ac_t""host tool" 1>&6
6933 else
6934 # We need a cross tool
6935 echo "$ac_t""pre-installed" 1>&6
6938 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
6939 echo "configure:6940: checking where to find the target ld" >&5
6940 if test "x${build}" != "x${host}" ; then
6941 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
6942 # We already found the complete path
6943 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6944 else
6945 # Canadian cross, just use what we found
6946 echo "$ac_t""pre-installed" 1>&6
6948 else
6949 ok=yes
6950 case " ${configdirs} " in
6951 *" ld "*) ;;
6952 *) ok=no ;;
6953 esac
6955 if test $ok = yes; then
6956 # An in-tree tool is available and we can use it
6957 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
6958 echo "$ac_t""just compiled" 1>&6
6959 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
6960 # We already found the complete path
6961 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6962 elif test "x$target" = "x$host"; then
6963 # We can use an host tool
6964 LD_FOR_TARGET='$(LD)'
6965 echo "$ac_t""host tool" 1>&6
6966 else
6967 # We need a cross tool
6968 echo "$ac_t""pre-installed" 1>&6
6971 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
6972 echo "configure:6973: checking where to find the target lipo" >&5
6973 if test "x${build}" != "x${host}" ; then
6974 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
6975 # We already found the complete path
6976 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6977 else
6978 # Canadian cross, just use what we found
6979 echo "$ac_t""pre-installed" 1>&6
6981 else
6982 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
6983 # We already found the complete path
6984 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6985 elif test "x$target" = "x$host"; then
6986 # We can use an host tool
6987 LIPO_FOR_TARGET='$(LIPO)'
6988 echo "$ac_t""host tool" 1>&6
6989 else
6990 # We need a cross tool
6991 echo "$ac_t""pre-installed" 1>&6
6994 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
6995 echo "configure:6996: checking where to find the target nm" >&5
6996 if test "x${build}" != "x${host}" ; then
6997 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
6998 # We already found the complete path
6999 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7000 else
7001 # Canadian cross, just use what we found
7002 echo "$ac_t""pre-installed" 1>&6
7004 else
7005 ok=yes
7006 case " ${configdirs} " in
7007 *" binutils "*) ;;
7008 *) ok=no ;;
7009 esac
7011 if test $ok = yes; then
7012 # An in-tree tool is available and we can use it
7013 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7014 echo "$ac_t""just compiled" 1>&6
7015 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7016 # We already found the complete path
7017 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7018 elif test "x$target" = "x$host"; then
7019 # We can use an host tool
7020 NM_FOR_TARGET='$(NM)'
7021 echo "$ac_t""host tool" 1>&6
7022 else
7023 # We need a cross tool
7024 echo "$ac_t""pre-installed" 1>&6
7027 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7028 echo "configure:7029: checking where to find the target objdump" >&5
7029 if test "x${build}" != "x${host}" ; then
7030 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7031 # We already found the complete path
7032 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7033 else
7034 # Canadian cross, just use what we found
7035 echo "$ac_t""pre-installed" 1>&6
7037 else
7038 ok=yes
7039 case " ${configdirs} " in
7040 *" binutils "*) ;;
7041 *) ok=no ;;
7042 esac
7044 if test $ok = yes; then
7045 # An in-tree tool is available and we can use it
7046 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
7047 echo "$ac_t""just compiled" 1>&6
7048 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7049 # We already found the complete path
7050 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7051 elif test "x$target" = "x$host"; then
7052 # We can use an host tool
7053 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
7054 echo "$ac_t""host tool" 1>&6
7055 else
7056 # We need a cross tool
7057 echo "$ac_t""pre-installed" 1>&6
7060 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7061 echo "configure:7062: checking where to find the target ranlib" >&5
7062 if test "x${build}" != "x${host}" ; then
7063 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7064 # We already found the complete path
7065 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7066 else
7067 # Canadian cross, just use what we found
7068 echo "$ac_t""pre-installed" 1>&6
7070 else
7071 ok=yes
7072 case " ${configdirs} " in
7073 *" binutils "*) ;;
7074 *) ok=no ;;
7075 esac
7077 if test $ok = yes; then
7078 # An in-tree tool is available and we can use it
7079 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7080 echo "$ac_t""just compiled" 1>&6
7081 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7082 # We already found the complete path
7083 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7084 elif test "x$target" = "x$host"; then
7085 # We can use an host tool
7086 RANLIB_FOR_TARGET='$(RANLIB)'
7087 echo "$ac_t""host tool" 1>&6
7088 else
7089 # We need a cross tool
7090 echo "$ac_t""pre-installed" 1>&6
7093 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7094 echo "configure:7095: checking where to find the target strip" >&5
7095 if test "x${build}" != "x${host}" ; then
7096 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7097 # We already found the complete path
7098 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7099 else
7100 # Canadian cross, just use what we found
7101 echo "$ac_t""pre-installed" 1>&6
7103 else
7104 ok=yes
7105 case " ${configdirs} " in
7106 *" binutils "*) ;;
7107 *) ok=no ;;
7108 esac
7110 if test $ok = yes; then
7111 # An in-tree tool is available and we can use it
7112 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
7113 echo "$ac_t""just compiled" 1>&6
7114 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7115 # We already found the complete path
7116 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7117 elif test "x$target" = "x$host"; then
7118 # We can use an host tool
7119 STRIP_FOR_TARGET='$(STRIP)'
7120 echo "$ac_t""host tool" 1>&6
7121 else
7122 # We need a cross tool
7123 echo "$ac_t""pre-installed" 1>&6
7126 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7127 echo "configure:7128: checking where to find the target windres" >&5
7128 if test "x${build}" != "x${host}" ; then
7129 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7130 # We already found the complete path
7131 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7132 else
7133 # Canadian cross, just use what we found
7134 echo "$ac_t""pre-installed" 1>&6
7136 else
7137 ok=yes
7138 case " ${configdirs} " in
7139 *" binutils "*) ;;
7140 *) ok=no ;;
7141 esac
7143 if test $ok = yes; then
7144 # An in-tree tool is available and we can use it
7145 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
7146 echo "$ac_t""just compiled" 1>&6
7147 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7148 # We already found the complete path
7149 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7150 elif test "x$target" = "x$host"; then
7151 # We can use an host tool
7152 WINDRES_FOR_TARGET='$(WINDRES)'
7153 echo "$ac_t""host tool" 1>&6
7154 else
7155 # We need a cross tool
7156 echo "$ac_t""pre-installed" 1>&6
7163 # Certain tools may need extra flags.
7164 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7165 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7166 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
7168 # When building target libraries, except in a Canadian cross, we use
7169 # the same toolchain as the compiler we just built.
7170 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
7171 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
7172 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
7173 if test $host = $build; then
7174 case " $configdirs " in
7175 *" gcc "*)
7176 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
7177 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7178 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7180 esac
7187 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7188 echo "configure:7189: checking whether to enable maintainer-specific portions of Makefiles" >&5
7189 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7190 if test "${enable_maintainer_mode+set}" = set; then
7191 enableval="$enable_maintainer_mode"
7192 USE_MAINTAINER_MODE=$enableval
7193 else
7194 USE_MAINTAINER_MODE=no
7197 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7200 if test "$USE_MAINTAINER_MODE" = yes; then
7201 MAINTAINER_MODE_TRUE=
7202 MAINTAINER_MODE_FALSE='#'
7203 else
7204 MAINTAINER_MODE_TRUE='#'
7205 MAINTAINER_MODE_FALSE=
7207 MAINT=$MAINTAINER_MODE_TRUE
7209 # ---------------------
7210 # GCC bootstrap support
7211 # ---------------------
7213 # Stage specific cflags for build.
7214 stage1_cflags="-g"
7215 case $build in
7216 vax-*-*)
7217 case ${GCC} in
7218 yes) stage1_cflags="-g -Wa,-J" ;;
7219 *) stage1_cflags="-g -J" ;;
7220 esac ;;
7221 powerpc-*-darwin*)
7222 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7223 # sources; use -no-cpp-precomp to get to GNU cpp.
7224 # Apple's GCC has bugs in designated initializer handling, so disable
7225 # that too.
7226 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7228 esac
7231 # Enable -Werror in bootstrap stage2 and later.
7232 # Change the default to "no" on release branches.
7233 # Check whether --enable-werror or --disable-werror was given.
7234 if test "${enable_werror+set}" = set; then
7235 enableval="$enable_werror"
7237 else
7238 enable_werror=yes
7241 case ${enable_werror} in
7242 yes) stage2_werror_flag="--enable-werror-always" ;;
7243 *) stage2_werror_flag="" ;;
7244 esac
7247 trap '' 1 2 15
7248 cat > confcache <<\EOF
7249 # This file is a shell script that caches the results of configure
7250 # tests run on this system so they can be shared between configure
7251 # scripts and configure runs. It is not useful on other systems.
7252 # If it contains results you don't want to keep, you may remove or edit it.
7254 # By default, configure uses ./config.cache as the cache file,
7255 # creating it if it does not exist already. You can give configure
7256 # the --cache-file=FILE option to use a different cache file; that is
7257 # what configure does when it calls configure scripts in
7258 # subdirectories, so they share the cache.
7259 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7260 # config.status only pays attention to the cache file if you give it the
7261 # --recheck option to rerun configure.
7264 # The following way of writing the cache mishandles newlines in values,
7265 # but we know of no workaround that is simple, portable, and efficient.
7266 # So, don't put newlines in cache variables' values.
7267 # Ultrix sh set writes to stderr and can't be redirected directly,
7268 # and sets the high bit in the cache file unless we assign to the vars.
7269 (set) 2>&1 |
7270 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7271 *ac_space=\ *)
7272 # `set' does not quote correctly, so add quotes (double-quote substitution
7273 # turns \\\\ into \\, and sed turns \\ into \).
7274 sed -n \
7275 -e "s/'/'\\\\''/g" \
7276 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7279 # `set' quotes correctly as required by POSIX, so do not add quotes.
7280 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7282 esac >> confcache
7283 if cmp -s $cache_file confcache; then
7285 else
7286 if test -w $cache_file; then
7287 echo "updating cache $cache_file"
7288 cat confcache > $cache_file
7289 else
7290 echo "not updating unwritable cache $cache_file"
7293 rm -f confcache
7295 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7297 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7298 # Let make expand exec_prefix.
7299 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7301 # Any assignment to VPATH causes Sun make to only execute
7302 # the first set of double-colon rules, so remove it if not needed.
7303 # If there is a colon in the path, we need to keep it.
7304 if test "x$srcdir" = x.; then
7305 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7308 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7310 # Transform confdefs.h into DEFS.
7311 # Protect against shell expansion while executing Makefile rules.
7312 # Protect against Makefile macro expansion.
7313 cat > conftest.defs <<\EOF
7314 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7315 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7316 s%\[%\\&%g
7317 s%\]%\\&%g
7318 s%\$%$$%g
7320 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
7321 rm -f conftest.defs
7324 # Without the "./", some shells look in PATH for config.status.
7325 : ${CONFIG_STATUS=./config.status}
7327 echo creating $CONFIG_STATUS
7328 rm -f $CONFIG_STATUS
7329 cat > $CONFIG_STATUS <<EOF
7330 #! /bin/sh
7331 # Generated automatically by configure.
7332 # Run this file to recreate the current configuration.
7333 # This directory was configured as follows,
7334 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7336 # $0 $ac_configure_args
7338 # Compiler output produced by configure, useful for debugging
7339 # configure, is in ./config.log if it exists.
7341 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7342 for ac_option
7344 case "\$ac_option" in
7345 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7346 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7347 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7348 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7349 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7350 exit 0 ;;
7351 -help | --help | --hel | --he | --h)
7352 echo "\$ac_cs_usage"; exit 0 ;;
7353 *) echo "\$ac_cs_usage"; exit 1 ;;
7354 esac
7355 done
7357 ac_given_srcdir=$srcdir
7358 ac_given_INSTALL="$INSTALL"
7360 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7362 cat >> $CONFIG_STATUS <<EOF
7364 # Protect against being on the right side of a sed subst in config.status.
7365 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7366 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7367 $ac_vpsub
7368 $extrasub
7369 s%@SHELL@%$SHELL%g
7370 s%@CFLAGS@%$CFLAGS%g
7371 s%@CPPFLAGS@%$CPPFLAGS%g
7372 s%@CXXFLAGS@%$CXXFLAGS%g
7373 s%@FFLAGS@%$FFLAGS%g
7374 s%@DEFS@%$DEFS%g
7375 s%@LDFLAGS@%$LDFLAGS%g
7376 s%@LIBS@%$LIBS%g
7377 s%@exec_prefix@%$exec_prefix%g
7378 s%@prefix@%$prefix%g
7379 s%@program_transform_name@%$program_transform_name%g
7380 s%@bindir@%$bindir%g
7381 s%@sbindir@%$sbindir%g
7382 s%@libexecdir@%$libexecdir%g
7383 s%@datadir@%$datadir%g
7384 s%@sysconfdir@%$sysconfdir%g
7385 s%@sharedstatedir@%$sharedstatedir%g
7386 s%@localstatedir@%$localstatedir%g
7387 s%@libdir@%$libdir%g
7388 s%@includedir@%$includedir%g
7389 s%@oldincludedir@%$oldincludedir%g
7390 s%@infodir@%$infodir%g
7391 s%@mandir@%$mandir%g
7392 s%@host@%$host%g
7393 s%@host_alias@%$host_alias%g
7394 s%@host_cpu@%$host_cpu%g
7395 s%@host_vendor@%$host_vendor%g
7396 s%@host_os@%$host_os%g
7397 s%@target@%$target%g
7398 s%@target_alias@%$target_alias%g
7399 s%@target_cpu@%$target_cpu%g
7400 s%@target_vendor@%$target_vendor%g
7401 s%@target_os@%$target_os%g
7402 s%@build@%$build%g
7403 s%@build_alias@%$build_alias%g
7404 s%@build_cpu@%$build_cpu%g
7405 s%@build_vendor@%$build_vendor%g
7406 s%@build_os@%$build_os%g
7407 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7408 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7409 s%@INSTALL_DATA@%$INSTALL_DATA%g
7410 s%@LN@%$LN%g
7411 s%@LN_S@%$LN_S%g
7412 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7413 s%@build_subdir@%$build_subdir%g
7414 s%@host_subdir@%$host_subdir%g
7415 s%@target_subdir@%$target_subdir%g
7416 s%@CC@%$CC%g
7417 s%@GNATBIND@%$GNATBIND%g
7418 s%@do_compare@%$do_compare%g
7419 s%@gmplibs@%$gmplibs%g
7420 s%@gmpinc@%$gmpinc%g
7421 s%@stage1_languages@%$stage1_languages%g
7422 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7423 /@serialization_dependencies@/r $serialization_dependencies
7424 s%@serialization_dependencies@%%g
7425 /@host_makefile_frag@/r $host_makefile_frag
7426 s%@host_makefile_frag@%%g
7427 /@target_makefile_frag@/r $target_makefile_frag
7428 s%@target_makefile_frag@%%g
7429 /@alphaieee_frag@/r $alphaieee_frag
7430 s%@alphaieee_frag@%%g
7431 /@ospace_frag@/r $ospace_frag
7432 s%@ospace_frag@%%g
7433 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7434 s%@tooldir@%$tooldir%g
7435 s%@build_tooldir@%$build_tooldir%g
7436 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7437 s%@GDB_TK@%$GDB_TK%g
7438 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7439 s%@build_configargs@%$build_configargs%g
7440 s%@build_configdirs@%$build_configdirs%g
7441 s%@host_configargs@%$host_configargs%g
7442 s%@configdirs@%$configdirs%g
7443 s%@target_configargs@%$target_configargs%g
7444 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7445 s%@config_shell@%$config_shell%g
7446 s%@YACC@%$YACC%g
7447 s%@BISON@%$BISON%g
7448 s%@M4@%$M4%g
7449 s%@LEX@%$LEX%g
7450 s%@FLEX@%$FLEX%g
7451 s%@MAKEINFO@%$MAKEINFO%g
7452 s%@EXPECT@%$EXPECT%g
7453 s%@RUNTEST@%$RUNTEST%g
7454 s%@AR@%$AR%g
7455 s%@AS@%$AS%g
7456 s%@DLLTOOL@%$DLLTOOL%g
7457 s%@LD@%$LD%g
7458 s%@LIPO@%$LIPO%g
7459 s%@NM@%$NM%g
7460 s%@RANLIB@%$RANLIB%g
7461 s%@STRIP@%$STRIP%g
7462 s%@WINDRES@%$WINDRES%g
7463 s%@OBJCOPY@%$OBJCOPY%g
7464 s%@OBJDUMP@%$OBJDUMP%g
7465 s%@CXX@%$CXX%g
7466 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7467 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7468 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7469 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7470 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7471 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7472 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7473 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7474 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7475 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7476 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7477 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7478 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7479 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7480 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7481 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7482 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7483 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7484 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7485 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7486 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7487 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7488 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7489 s%@MAINT@%$MAINT%g
7490 s%@stage1_cflags@%$stage1_cflags%g
7491 s%@stage2_werror_flag@%$stage2_werror_flag%g
7493 CEOF
7496 cat >> $CONFIG_STATUS <<\EOF
7498 # Split the substitutions into bite-sized pieces for seds with
7499 # small command number limits, like on Digital OSF/1 and HP-UX.
7500 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7501 ac_file=1 # Number of current file.
7502 ac_beg=1 # First line for current file.
7503 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7504 ac_more_lines=:
7505 ac_sed_cmds=""
7506 while $ac_more_lines; do
7507 if test $ac_beg -gt 1; then
7508 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7509 else
7510 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7512 if test ! -s conftest.s$ac_file; then
7513 ac_more_lines=false
7514 rm -f conftest.s$ac_file
7515 else
7516 if test -z "$ac_sed_cmds"; then
7517 ac_sed_cmds="sed -f conftest.s$ac_file"
7518 else
7519 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7521 ac_file=`expr $ac_file + 1`
7522 ac_beg=$ac_end
7523 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7525 done
7526 if test -z "$ac_sed_cmds"; then
7527 ac_sed_cmds=cat
7531 cat >> $CONFIG_STATUS <<EOF
7533 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7535 cat >> $CONFIG_STATUS <<\EOF
7536 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7537 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7538 case "$ac_file" in
7539 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7540 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7541 *) ac_file_in="${ac_file}.in" ;;
7542 esac
7544 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7546 # Remove last slash and all that follows it. Not all systems have dirname.
7547 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7548 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7549 # The file is in a subdirectory.
7550 test ! -d "$ac_dir" && mkdir "$ac_dir"
7551 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7552 # A "../" for each directory in $ac_dir_suffix.
7553 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7554 else
7555 ac_dir_suffix= ac_dots=
7558 case "$ac_given_srcdir" in
7559 .) srcdir=.
7560 if test -z "$ac_dots"; then top_srcdir=.
7561 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7562 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7563 *) # Relative path.
7564 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7565 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7566 esac
7568 case "$ac_given_INSTALL" in
7569 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7570 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7571 esac
7573 echo creating "$ac_file"
7574 rm -f "$ac_file"
7575 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7576 case "$ac_file" in
7577 *Makefile*) ac_comsub="1i\\
7578 # $configure_input" ;;
7579 *) ac_comsub= ;;
7580 esac
7582 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7583 sed -e "$ac_comsub
7584 s%@configure_input@%$configure_input%g
7585 s%@srcdir@%$srcdir%g
7586 s%@top_srcdir@%$top_srcdir%g
7587 s%@INSTALL@%$INSTALL%g
7588 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7589 fi; done
7590 rm -f conftest.s*
7593 cat >> $CONFIG_STATUS <<EOF
7596 cat >> $CONFIG_STATUS <<\EOF
7598 exit 0
7600 chmod +x $CONFIG_STATUS
7601 rm -fr confdefs* $ac_clean_files
7602 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1