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