PR c++/25895
[official-gcc.git] / configure
blob32e4e9c026ee4bf7ec4061f9c80ab163f8056e96
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 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
39 ac_help="$ac_help
40 --enable-werror enable -Werror in bootstrap stage2 and later"
42 # Initialize some variables set by options.
43 # The variables have the same names as the options, with
44 # dashes changed to underlines.
45 build=NONE
46 cache_file=./config.cache
47 exec_prefix=NONE
48 host=NONE
49 no_create=
50 nonopt=NONE
51 no_recursion=
52 prefix=NONE
53 program_prefix=NONE
54 program_suffix=NONE
55 program_transform_name=s,x,x,
56 silent=
57 site=
58 srcdir=
59 target=NONE
60 verbose=
61 x_includes=NONE
62 x_libraries=NONE
63 bindir='${exec_prefix}/bin'
64 sbindir='${exec_prefix}/sbin'
65 libexecdir='${exec_prefix}/libexec'
66 datadir='${prefix}/share'
67 sysconfdir='${prefix}/etc'
68 sharedstatedir='${prefix}/com'
69 localstatedir='${prefix}/var'
70 libdir='${exec_prefix}/lib'
71 includedir='${prefix}/include'
72 oldincludedir='/usr/include'
73 infodir='${prefix}/info'
74 mandir='${prefix}/man'
76 # Initialize some other variables.
77 subdirs=
78 MFLAGS= MAKEFLAGS=
79 SHELL=${CONFIG_SHELL-/bin/sh}
80 # Maximum number of lines to put in a shell here document.
81 ac_max_here_lines=12
83 ac_prev=
84 for ac_option
87 # If the previous option needs an argument, assign it.
88 if test -n "$ac_prev"; then
89 eval "$ac_prev=\$ac_option"
90 ac_prev=
91 continue
94 case "$ac_option" in
95 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 *) ac_optarg= ;;
97 esac
99 # Accept the important Cygnus configure options, so we can diagnose typos.
101 case "$ac_option" in
103 -bindir | --bindir | --bindi | --bind | --bin | --bi)
104 ac_prev=bindir ;;
105 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
106 bindir="$ac_optarg" ;;
108 -build | --build | --buil | --bui | --bu)
109 ac_prev=build ;;
110 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
111 build="$ac_optarg" ;;
113 -cache-file | --cache-file | --cache-fil | --cache-fi \
114 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
115 ac_prev=cache_file ;;
116 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
117 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
118 cache_file="$ac_optarg" ;;
120 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
121 ac_prev=datadir ;;
122 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
123 | --da=*)
124 datadir="$ac_optarg" ;;
126 -disable-* | --disable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}=no" ;;
135 -enable-* | --enable-*)
136 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
142 case "$ac_option" in
143 *=*) ;;
144 *) ac_optarg=yes ;;
145 esac
146 eval "enable_${ac_feature}='$ac_optarg'" ;;
148 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
149 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
150 | --exec | --exe | --ex)
151 ac_prev=exec_prefix ;;
152 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
153 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
154 | --exec=* | --exe=* | --ex=*)
155 exec_prefix="$ac_optarg" ;;
157 -gas | --gas | --ga | --g)
158 # Obsolete; use --with-gas.
159 with_gas=yes ;;
161 -help | --help | --hel | --he)
162 # Omit some internal or obsolete options to make the list less imposing.
163 # This message is too long to be a string in the A/UX 3.1 sh.
164 cat << EOF
165 Usage: configure [options] [host]
166 Options: [defaults in brackets after descriptions]
167 Configuration:
168 --cache-file=FILE cache test results in FILE
169 --help print this message
170 --no-create do not create output files
171 --quiet, --silent do not print \`checking...' messages
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
175 [$ac_default_prefix]
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
177 [same as prefix]
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
182 [PREFIX/share]
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
185 [PREFIX/com]
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
198 cat << EOF
199 Host type:
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
214 exit 0 ;;
216 -host | --host | --hos | --ho)
217 ac_prev=host ;;
218 -host=* | --host=* | --hos=* | --ho=*)
219 host="$ac_optarg" ;;
221 -includedir | --includedir | --includedi | --included | --include \
222 | --includ | --inclu | --incl | --inc)
223 ac_prev=includedir ;;
224 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
225 | --includ=* | --inclu=* | --incl=* | --inc=*)
226 includedir="$ac_optarg" ;;
228 -infodir | --infodir | --infodi | --infod | --info | --inf)
229 ac_prev=infodir ;;
230 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
231 infodir="$ac_optarg" ;;
233 -libdir | --libdir | --libdi | --libd)
234 ac_prev=libdir ;;
235 -libdir=* | --libdir=* | --libdi=* | --libd=*)
236 libdir="$ac_optarg" ;;
238 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
239 | --libexe | --libex | --libe)
240 ac_prev=libexecdir ;;
241 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
242 | --libexe=* | --libex=* | --libe=*)
243 libexecdir="$ac_optarg" ;;
245 -localstatedir | --localstatedir | --localstatedi | --localstated \
246 | --localstate | --localstat | --localsta | --localst \
247 | --locals | --local | --loca | --loc | --lo)
248 ac_prev=localstatedir ;;
249 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
250 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
251 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
252 localstatedir="$ac_optarg" ;;
254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
255 ac_prev=mandir ;;
256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
257 mandir="$ac_optarg" ;;
259 -nfp | --nfp | --nf)
260 # Obsolete; use --without-fp.
261 with_fp=no ;;
263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
264 | --no-cr | --no-c)
265 no_create=yes ;;
267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
269 no_recursion=yes ;;
271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
273 | --oldin | --oldi | --old | --ol | --o)
274 ac_prev=oldincludedir ;;
275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
278 oldincludedir="$ac_optarg" ;;
280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
281 ac_prev=prefix ;;
282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
283 prefix="$ac_optarg" ;;
285 -program-prefix | --program-prefix | --program-prefi | --program-pref \
286 | --program-pre | --program-pr | --program-p)
287 ac_prev=program_prefix ;;
288 -program-prefix=* | --program-prefix=* | --program-prefi=* \
289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
290 program_prefix="$ac_optarg" ;;
292 -program-suffix | --program-suffix | --program-suffi | --program-suff \
293 | --program-suf | --program-su | --program-s)
294 ac_prev=program_suffix ;;
295 -program-suffix=* | --program-suffix=* | --program-suffi=* \
296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
297 program_suffix="$ac_optarg" ;;
299 -program-transform-name | --program-transform-name \
300 | --program-transform-nam | --program-transform-na \
301 | --program-transform-n | --program-transform- \
302 | --program-transform | --program-transfor \
303 | --program-transfo | --program-transf \
304 | --program-trans | --program-tran \
305 | --progr-tra | --program-tr | --program-t)
306 ac_prev=program_transform_name ;;
307 -program-transform-name=* | --program-transform-name=* \
308 | --program-transform-nam=* | --program-transform-na=* \
309 | --program-transform-n=* | --program-transform-=* \
310 | --program-transform=* | --program-transfor=* \
311 | --program-transfo=* | --program-transf=* \
312 | --program-trans=* | --program-tran=* \
313 | --progr-tra=* | --program-tr=* | --program-t=*)
314 program_transform_name="$ac_optarg" ;;
316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
317 | -silent | --silent | --silen | --sile | --sil)
318 silent=yes ;;
320 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
321 ac_prev=sbindir ;;
322 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
323 | --sbi=* | --sb=*)
324 sbindir="$ac_optarg" ;;
326 -sharedstatedir | --sharedstatedir | --sharedstatedi \
327 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
328 | --sharedst | --shareds | --shared | --share | --shar \
329 | --sha | --sh)
330 ac_prev=sharedstatedir ;;
331 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
332 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
333 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
334 | --sha=* | --sh=*)
335 sharedstatedir="$ac_optarg" ;;
337 -site | --site | --sit)
338 ac_prev=site ;;
339 -site=* | --site=* | --sit=*)
340 site="$ac_optarg" ;;
342 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
343 ac_prev=srcdir ;;
344 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
345 srcdir="$ac_optarg" ;;
347 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
348 | --syscon | --sysco | --sysc | --sys | --sy)
349 ac_prev=sysconfdir ;;
350 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
351 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
352 sysconfdir="$ac_optarg" ;;
354 -target | --target | --targe | --targ | --tar | --ta | --t)
355 ac_prev=target ;;
356 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
357 target="$ac_optarg" ;;
359 -v | -verbose | --verbose | --verbos | --verbo | --verb)
360 verbose=yes ;;
362 -version | --version | --versio | --versi | --vers)
363 echo "configure generated by autoconf version 2.13"
364 exit 0 ;;
366 -with-* | --with-*)
367 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 case "$ac_option" in
374 *=*) ;;
375 *) ac_optarg=yes ;;
376 esac
377 eval "with_${ac_package}='$ac_optarg'" ;;
379 -without-* | --without-*)
380 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}=no" ;;
388 --x)
389 # Obsolete; use --with-x.
390 with_x=yes ;;
392 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
393 | --x-incl | --x-inc | --x-in | --x-i)
394 ac_prev=x_includes ;;
395 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
396 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
397 x_includes="$ac_optarg" ;;
399 -x-libraries | --x-libraries | --x-librarie | --x-librari \
400 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
401 ac_prev=x_libraries ;;
402 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
403 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
404 x_libraries="$ac_optarg" ;;
406 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
410 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
411 echo "configure: warning: $ac_option: invalid host type" 1>&2
413 if test "x$nonopt" != xNONE; then
414 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 nonopt="$ac_option"
419 esac
420 done
422 if test -n "$ac_prev"; then
423 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428 # File descriptor usage:
429 # 0 standard input
430 # 1 file creation
431 # 2 errors and warnings
432 # 3 some systems may open it to /dev/tty
433 # 4 used on the Kubota Titan
434 # 6 checking for... messages and results
435 # 5 compiler messages saved in config.log
436 if test "$silent" = yes; then
437 exec 6>/dev/null
438 else
439 exec 6>&1
441 exec 5>./config.log
443 echo "\
444 This file contains any messages produced by compilers while
445 running configure, to aid debugging if configure makes a mistake.
446 " 1>&5
448 # Strip out --no-create and --no-recursion so they do not pile up.
449 # Also quote any args containing shell metacharacters.
450 ac_configure_args=
451 for ac_arg
453 case "$ac_arg" in
454 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
455 | --no-cr | --no-c) ;;
456 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
457 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
458 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
459 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
460 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
461 esac
462 done
464 # NLS nuisances.
465 # Only set these to C if already set. These must not be set unconditionally
466 # because not all systems understand e.g. LANG=C (notably SCO).
467 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
468 # Non-C LC_CTYPE values break the ctype check.
469 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
470 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
471 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
472 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
475 rm -rf conftest* confdefs.h
476 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 echo > confdefs.h
479 # A filename unique to this package, relative to the directory that
480 # configure is in, which we can look for to find out if srcdir is correct.
481 ac_unique_file=move-if-change
483 # Find the source files, if location was not specified.
484 if test -z "$srcdir"; then
485 ac_srcdir_defaulted=yes
486 # Try the directory containing this script, then its parent.
487 ac_prog=$0
488 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
489 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
490 srcdir=$ac_confdir
491 if test ! -r $srcdir/$ac_unique_file; then
492 srcdir=..
494 else
495 ac_srcdir_defaulted=no
497 if test ! -r $srcdir/$ac_unique_file; then
498 if test "$ac_srcdir_defaulted" = yes; then
499 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
500 else
501 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506 # Prefer explicitly selected file to automatically selected ones.
507 if test -z "$CONFIG_SITE"; then
508 if test "x$prefix" != xNONE; then
509 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
510 else
511 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514 for ac_site_file in $CONFIG_SITE; do
515 if test -r "$ac_site_file"; then
516 echo "loading site script $ac_site_file"
517 . "$ac_site_file"
519 done
521 if test -r "$cache_file"; then
522 echo "loading cache $cache_file"
523 . $cache_file
524 else
525 echo "creating cache $cache_file"
526 > $cache_file
529 ac_ext=c
530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531 ac_cpp='$CPP $CPPFLAGS'
532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534 cross_compiling=$ac_cv_prog_cc_cross
536 ac_exeext=
537 ac_objext=o
538 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
539 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
540 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
541 ac_n= ac_c='
542 ' ac_t=' '
543 else
544 ac_n=-n ac_c= ac_t=
546 else
547 ac_n= ac_c='\c' ac_t=
552 ac_aux_dir=
553 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
554 if test -f $ac_dir/install-sh; then
555 ac_aux_dir=$ac_dir
556 ac_install_sh="$ac_aux_dir/install-sh -c"
557 break
558 elif test -f $ac_dir/install.sh; then
559 ac_aux_dir=$ac_dir
560 ac_install_sh="$ac_aux_dir/install.sh -c"
561 break
563 done
564 if test -z "$ac_aux_dir"; then
565 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
567 ac_config_guess=$ac_aux_dir/config.guess
568 ac_config_sub=$ac_aux_dir/config.sub
569 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
572 # Do some error checking and defaulting for the host and target type.
573 # The inputs are:
574 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
576 # The rules are:
577 # 1. You are not allowed to specify --host, --target, and nonopt at the
578 # same time.
579 # 2. Host defaults to nonopt.
580 # 3. If nonopt is not specified, then host defaults to the current host,
581 # as determined by config.guess.
582 # 4. Target and build default to nonopt.
583 # 5. If nonopt is not specified, then target and build default to host.
585 # The aliases save the names the user supplied, while $host etc.
586 # will get canonicalized.
587 case $host---$target---$nonopt in
588 NONE---*---* | *---NONE---* | *---*---NONE) ;;
589 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
590 esac
593 # Make sure we can run config.sub.
594 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
595 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
598 echo $ac_n "checking host system type""... $ac_c" 1>&6
599 echo "configure:600: checking host system type" >&5
601 host_alias=$host
602 case "$host_alias" in
603 NONE)
604 case $nonopt in
605 NONE)
606 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
607 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
608 fi ;;
609 *) host_alias=$nonopt ;;
610 esac ;;
611 esac
613 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
614 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
615 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
616 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
617 echo "$ac_t""$host" 1>&6
619 echo $ac_n "checking target system type""... $ac_c" 1>&6
620 echo "configure:621: checking target system type" >&5
622 target_alias=$target
623 case "$target_alias" in
624 NONE)
625 case $nonopt in
626 NONE) target_alias=$host_alias ;;
627 *) target_alias=$nonopt ;;
628 esac ;;
629 esac
631 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
632 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
633 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
634 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
635 echo "$ac_t""$target" 1>&6
637 echo $ac_n "checking build system type""... $ac_c" 1>&6
638 echo "configure:639: checking build system type" >&5
640 build_alias=$build
641 case "$build_alias" in
642 NONE)
643 case $nonopt in
644 NONE) build_alias=$host_alias ;;
645 *) build_alias=$nonopt ;;
646 esac ;;
647 esac
649 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
650 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
651 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
652 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
653 echo "$ac_t""$build" 1>&6
655 test "$host_alias" != "$target_alias" &&
656 test "$program_prefix$program_suffix$program_transform_name" = \
657 NONENONEs,x,x, &&
658 program_prefix=${target_alias}-
660 if test "$program_transform_name" = s,x,x,; then
661 program_transform_name=
662 else
663 # Double any \ or $. echo might interpret backslashes.
664 cat <<\EOF_SED > conftestsed
665 s,\\,\\\\,g; s,\$,$$,g
666 EOF_SED
667 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
668 rm -f conftestsed
670 test "$program_prefix" != NONE &&
671 program_transform_name="s,^,${program_prefix},; $program_transform_name"
672 # Use a double $ so make ignores it.
673 test "$program_suffix" != NONE &&
674 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
676 # sed with no file args requires a program.
677 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
680 # Get 'install' or 'install-sh' and its variants.
681 # Find a good install program. We prefer a C program (faster),
682 # so one script is as good as another. But avoid the broken or
683 # incompatible versions:
684 # SysV /etc/install, /usr/sbin/install
685 # SunOS /usr/etc/install
686 # IRIX /sbin/install
687 # AIX /bin/install
688 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
689 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
690 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
691 # ./install, which can be erroneously created by make from ./install.sh.
692 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
693 echo "configure:694: checking for a BSD compatible install" >&5
694 if test -z "$INSTALL"; then
695 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
697 else
698 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
699 for ac_dir in $PATH; do
700 # Account for people who put trailing slashes in PATH elements.
701 case "$ac_dir/" in
702 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
704 # OSF1 and SCO ODT 3.0 have their own names for install.
705 # Don't use installbsd from OSF since it installs stuff as root
706 # by default.
707 for ac_prog in ginstall scoinst install; do
708 if test -f $ac_dir/$ac_prog; then
709 if test $ac_prog = install &&
710 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
711 # AIX install. It has an incompatible calling convention.
713 else
714 ac_cv_path_install="$ac_dir/$ac_prog -c"
715 break 2
718 done
720 esac
721 done
722 IFS="$ac_save_IFS"
725 if test "${ac_cv_path_install+set}" = set; then
726 INSTALL="$ac_cv_path_install"
727 else
728 # As a last resort, use the slow shell script. We don't cache a
729 # path for INSTALL within a source directory, because that will
730 # break other packages using the cache if that directory is
731 # removed, or if the path is relative.
732 INSTALL="$ac_install_sh"
735 echo "$ac_t""$INSTALL" 1>&6
737 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
738 # It thinks the first close brace ends the variable substitution.
739 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
741 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
743 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
745 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
746 echo "configure:747: checking whether ln works" >&5
747 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
748 echo $ac_n "(cached) $ac_c" 1>&6
749 else
750 rm -f conftestdata_t
751 echo >conftestdata_f
752 if ln conftestdata_f conftestdata_t 2>/dev/null
753 then
754 acx_cv_prog_LN=ln
755 else
756 acx_cv_prog_LN=no
758 rm -f conftestdata_f conftestdata_t
761 if test $acx_cv_prog_LN = no; then
762 LN="cp"
763 echo "$ac_t""no, using $LN" 1>&6
764 else
765 LN="$acx_cv_prog_LN"
766 echo "$ac_t""yes" 1>&6
769 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
770 echo "configure:771: checking whether ln -s works" >&5
771 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
772 echo $ac_n "(cached) $ac_c" 1>&6
773 else
774 rm -f conftestdata
775 if ln -s X conftestdata 2>/dev/null
776 then
777 rm -f conftestdata
778 ac_cv_prog_LN_S="ln -s"
779 else
780 ac_cv_prog_LN_S=ln
783 LN_S="$ac_cv_prog_LN_S"
784 if test "$ac_cv_prog_LN_S" = "ln -s"; then
785 echo "$ac_t""yes" 1>&6
786 else
787 echo "$ac_t""no" 1>&6
791 ### we might need to use some other shell than /bin/sh for running subshells
792 ### If we are on Windows, search for the shell. This will permit people
793 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
794 ### without also having to set CONFIG_SHELL. This code will work when
795 ### using bash, which sets OSTYPE.
796 case "${OSTYPE}" in
797 *win32*)
798 if test x${CONFIG_SHELL} = x ; then
799 if test ! -f /bin/sh ; then
800 if test x${SHELL} != x && test -f ${SHELL} ; then
801 CONFIG_SHELL=${SHELL}
802 export CONFIG_SHELL
803 else
804 for prog in sh sh.exe bash bash.exe; do
805 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
806 for dir in $PATH; do
807 test -z "$dir" && dir=.
808 if test -f $dir/$prog; then
809 CONFIG_SHELL=$dir/$prog
810 export CONFIG_SHELL
811 break
813 done
814 IFS="$save_ifs"
815 test -n "${CONFIG_SHELL}" && break
816 done
821 esac
823 config_shell=${CONFIG_SHELL-/bin/sh}
825 progname=$0
826 # if PWD already has a value, it is probably wrong.
827 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
829 # Export original configure arguments for use by sub-configures. These
830 # will be expanded by make, so quote '$'.
831 tmp="$progname $@"
832 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
833 $tmp
834 EOF_SED
835 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
836 rm -f conftestsed.out
839 moveifchange=${srcdir}/move-if-change
841 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
843 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
844 # a relative path.
845 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
846 INSTALL="${srcpwd}/install-sh -c"
849 # Set srcdir to "." if that's what it is.
850 # This is important for multilib support.
851 pwd=`${PWDCMD-pwd}`
852 if test "${pwd}" = "${srcpwd}" ; then
853 srcdir=.
856 topsrcdir=$srcpwd
858 extra_host_args=
860 ### To add a new directory to the tree, first choose whether it is a target
861 ### or a host dependent tool. Then put it into the appropriate list
862 ### (library or tools, host or target), doing a dependency sort.
864 # Subdirs will be configured in the order listed in build_configdirs,
865 # configdirs, or target_configdirs; see the serialization section below.
867 # Dependency sorting is only needed when *configuration* must be done in
868 # a particular order. In all cases a dependency should be specified in
869 # the Makefile, whether or not it's implicitly specified here.
871 # Double entries in build_configdirs, configdirs, or target_configdirs may
872 # cause circular dependencies and break everything horribly.
874 # these library is used by various programs built for the build
875 # environment
877 build_libs="build-libiberty"
879 # these tools are built for the build environment
880 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
882 # these libraries are used by various programs built for the host environment
884 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
886 # these tools are built for the host environment
887 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
888 # know that we are building the simulator.
889 # binutils, gas and ld appear in that order because it makes sense to run
890 # "make check" in that particular order.
891 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"
893 # libgcj represents the runtime libraries only used by gcj.
894 libgcj="target-libffi \
895 target-boehm-gc \
896 target-zlib \
897 target-qthreads \
898 target-libjava"
900 # these libraries are built for the target environment, and are built after
901 # the host libraries and the host tools (which may be a cross compiler)
903 target_libraries="target-libiberty \
904 target-libgloss \
905 target-newlib \
906 target-libstdc++-v3 \
907 target-libmudflap \
908 target-libssp \
909 target-libgfortran \
910 ${libgcj} \
911 target-libobjc \
912 target-libada \
913 target-libgomp"
915 # these tools are built using the target libraries, and are intended to
916 # run only in the target environment
918 # note: any program that *uses* libraries that are in the "target_libraries"
919 # list belongs in this list. those programs are also very likely
920 # candidates for the "native_only" list which follows
922 target_tools="target-examples target-groff target-gperf target-rda"
924 ################################################################################
926 ## All tools belong in one of the four categories, and are assigned above
927 ## We assign ${configdirs} this way to remove all embedded newlines. This
928 ## is important because configure will choke if they ever get through.
929 ## ${configdirs} is directories we build using the host tools.
930 ## ${target_configdirs} is directories we build using the target tools.
931 configdirs=`echo ${host_libs} ${host_tools}`
932 target_configdirs=`echo ${target_libraries} ${target_tools}`
933 build_configdirs=`echo ${build_libs} ${build_tools}`
935 ################################################################################
937 srcname="gnu development package"
939 # This gets set non-empty for some net releases of packages.
940 appdirs=""
942 # Define is_cross_compiler to save on calls to 'test'.
943 is_cross_compiler=
944 if test x"${host}" = x"${target}" ; then
945 is_cross_compiler=no
946 else
947 is_cross_compiler=yes
950 # Find the build and target subdir names.
951 case ${build_alias} in
952 "") build_noncanonical=${build} ;;
953 *) build_noncanonical=${build_alias} ;;
954 esac
956 case ${host_alias} in
957 "") host_noncanonical=${build_noncanonical} ;;
958 *) host_noncanonical=${host_alias} ;;
959 esac
961 case ${target_alias} in
962 "") target_noncanonical=${host_noncanonical} ;;
963 *) target_noncanonical=${target_alias} ;;
964 esac
966 # Prefix 'build-' so this never conflicts with target_subdir.
967 build_subdir="build-${build_noncanonical}"
968 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
969 if ( test $srcdir = . && test -d gcc ) \
970 || test -d $srcdir/../host-${host_noncanonical}; then
971 host_subdir="host-${host_noncanonical}"
972 else
973 host_subdir=.
975 # No prefix.
976 target_subdir=${target_noncanonical}
979 # Skipdirs are removed silently.
980 skipdirs=
981 # Noconfigdirs are removed loudly.
982 noconfigdirs=""
984 use_gnu_ld=
985 # Make sure we don't let GNU ld be added if we didn't want it.
986 if test x$with_gnu_ld = xno ; then
987 use_gnu_ld=no
988 noconfigdirs="$noconfigdirs ld"
991 use_gnu_as=
992 # Make sure we don't let GNU as be added if we didn't want it.
993 if test x$with_gnu_as = xno ; then
994 use_gnu_as=no
995 noconfigdirs="$noconfigdirs gas"
998 # some tools are so dependent upon X11 that if we're not building with X,
999 # it's not even worth trying to configure, much less build, that tool.
1001 case ${with_x} in
1002 yes | "") ;; # the default value for this tree is that X11 is available
1004 skipdirs="${skipdirs} tk itcl libgui"
1005 # We won't be able to build gdbtk without X.
1006 enable_gdbtk=no
1008 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1009 esac
1011 # Some tools are only suitable for building in a "native" situation.
1012 # Remove these if host!=target.
1013 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"
1015 # Similarly, some are only suitable for cross toolchains.
1016 # Remove these if host=target.
1017 cross_only="target-libgloss target-newlib target-opcodes"
1019 case $is_cross_compiler in
1020 no) skipdirs="${skipdirs} ${cross_only}" ;;
1021 yes) skipdirs="${skipdirs} ${native_only}" ;;
1022 esac
1024 # If both --with-headers and --with-libs are specified, default to
1025 # --without-newlib.
1026 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1027 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1028 if test x"${with_newlib}" = x ; then
1029 with_newlib=no
1033 # Recognize --with-newlib/--without-newlib.
1034 case ${with_newlib} in
1035 no) skipdirs="${skipdirs} target-newlib" ;;
1036 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1037 esac
1039 # Configure extra directories which are host specific
1041 case "${host}" in
1042 *-cygwin*)
1043 configdirs="$configdirs libtermcap" ;;
1044 esac
1046 # A target can indicate whether a language isn't supported for some reason.
1047 # Only spaces may be used in this macro; not newlines or tabs.
1048 unsupported_languages=
1050 # Remove more programs from consideration, based on the host or
1051 # target this usually means that a port of the program doesn't
1052 # exist yet.
1054 case "${host}" in
1055 hppa*64*-*-*)
1056 noconfigdirs="$noconfigdirs byacc"
1058 i[3456789]86-*-vsta)
1059 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1061 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1062 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1064 i[3456789]86-*-mingw32*)
1065 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1066 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1068 i[3456789]86-*-beos*)
1069 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1071 *-*-cygwin*)
1072 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1074 *-*-netbsd*)
1075 noconfigdirs="$noconfigdirs rcs"
1077 ppc*-*-pe)
1078 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1080 powerpc-*-beos*)
1081 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1083 esac
1086 # Check whether --enable-libada or --disable-libada was given.
1087 if test "${enable_libada+set}" = set; then
1088 enableval="$enable_libada"
1089 ENABLE_LIBADA=$enableval
1090 else
1091 ENABLE_LIBADA=yes
1094 if test "${ENABLE_LIBADA}" != "yes" ; then
1095 noconfigdirs="$noconfigdirs target-libada"
1096 noconfigdirs="$noconfigdirs gnattools"
1099 # Check whether --enable-libssp or --disable-libssp was given.
1100 if test "${enable_libssp+set}" = set; then
1101 enableval="$enable_libssp"
1102 ENABLE_LIBSSP=$enableval
1103 else
1104 ENABLE_LIBSSP=yes
1107 if test "${ENABLE_LIBSSP}" != "yes" ; then
1108 noconfigdirs="$noconfigdirs target-libssp"
1111 # Save it here so that, even in case of --enable-libgcj, if the Java
1112 # front-end isn't enabled, we still get libgcj disabled.
1113 libgcj_saved=$libgcj
1114 case $enable_libgcj in
1115 yes)
1116 # If we reset it here, it won't get added to noconfigdirs in the
1117 # target-specific build rules, so it will be forcibly enabled
1118 # (unless the Java language itself isn't enabled).
1119 libgcj=
1122 # Make sure we get it printed in the list of not supported target libs.
1123 noconfigdirs="$noconfigdirs ${libgcj}"
1125 esac
1128 # Allow --disable-libmudflap to exclude target-libmudflap
1129 case $enable_libmudflap in
1130 yes)
1133 noconfigdirs="$noconfigdirs target-libmudflap"
1136 case "${target}" in
1137 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1138 # Enable libmudflap by default in GNU and friends.
1140 *-*-freebsd*)
1141 # Enable libmudflap by default in FreeBSD.
1144 # Disable it by default everywhere else.
1145 noconfigdirs="$noconfigdirs target-libmudflap"
1147 esac
1148 esac
1150 # Allow --disable-libgomp to exclude target-libgomp
1151 case $enable_libgomp in
1152 yes)
1155 noconfigdirs="$noconfigdirs target-libgomp"
1158 # Enable libgomp by default on hosted POSIX systems.
1159 case "${target}" in
1160 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1162 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1164 *-*-solaris2* | *-*-sysv4* | *-*-irix* | *-*-osf* | *-*-hpux*)
1166 *-*-darwin*)
1169 noconfigdirs="$noconfigdirs target-libgomp"
1171 esac
1172 esac
1175 case "${target}" in
1176 *-*-chorusos)
1177 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1179 powerpc-*-darwin*)
1180 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1181 noconfigdirs="$noconfigdirs sim target-rda"
1183 *-*-darwin*)
1184 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1185 noconfigdirs="$noconfigdirs sim target-rda"
1186 noconfigdirs="$noconfigdirs ${libgcj}"
1188 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1189 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1191 *-*-freebsd*)
1192 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1193 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1194 && test -f /usr/local/include/gmp.h; then
1195 with_gmp=/usr/local
1198 # Skip some stuff that's unsupported on some FreeBSD configurations.
1199 case "${target}" in
1200 i*86-*-*) ;;
1201 alpha*-*-*) ;;
1203 noconfigdirs="$noconfigdirs ${libgcj}"
1205 esac
1207 *-*-kaos*)
1208 # Remove unsupported stuff on all kaOS configurations.
1209 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1210 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1211 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1212 noconfigdirs="$noconfigdirs target-libgloss"
1214 *-*-netbsd*)
1215 # Skip some stuff on all NetBSD configurations.
1216 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1218 # Skip some stuff that's unsupported on some NetBSD configurations.
1219 case "${target}" in
1220 i*86-*-netbsdelf*) ;;
1221 arm*-*-netbsdelf*) ;;
1223 noconfigdirs="$noconfigdirs ${libgcj}"
1225 esac
1227 *-*-netware*)
1228 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1230 *-*-rtems*)
1231 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1233 # The tpf target doesn't support gdb yet.
1234 *-*-tpf*)
1235 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1237 *-*-uclinux*)
1238 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1240 *-*-vxworks*)
1241 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1243 m32c-*-*)
1244 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1246 alpha*-dec-osf*)
1247 # ld works, but does not support shared libraries.
1248 # newlib is not 64 bit ready. I'm not sure about fileutils.
1249 # gas doesn't generate exception information.
1250 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1252 alpha*-*-*vms*)
1253 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1255 alpha*-*-linux*)
1256 # newlib is not 64 bit ready
1257 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1259 alpha*-*-*)
1260 # newlib is not 64 bit ready
1261 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1263 am33_2.0-*-linux*)
1264 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1266 sh-*-linux*)
1267 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1269 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1270 noconfigdirs="$noconfigdirs ${libgcj}"
1271 noconfigdirs="$noconfigdirs target-examples"
1272 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1273 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1274 noconfigdirs="$noconfigdirs expect dejagnu"
1275 # the C++ libraries don't build on top of CE's C libraries
1276 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1277 noconfigdirs="$noconfigdirs target-newlib"
1278 case "${host}" in
1279 *-*-cygwin*) ;; # keep gdb and readline
1280 *) noconfigdirs="$noconfigdirs gdb readline"
1282 esac
1284 arc-*-*)
1285 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1287 arm-semi-aof )
1289 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1290 noconfigdirs="$noconfigdirs ${libgcj}"
1292 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1293 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1295 arm*-*-linux-gnueabi)
1296 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1297 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1299 arm*-*-symbianelf*)
1300 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1302 arm-*-pe*)
1303 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1305 thumb-*-coff)
1306 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1308 thumb-*-elf)
1309 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1311 thumb-*-pe)
1312 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1314 arm-*-riscix*)
1315 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1317 avr-*-*)
1318 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1320 bfin-*-*)
1321 noconfigdirs="$noconfigdirs target-libgloss gdb"
1322 if test x${is_cross_compiler} != xno ; then
1323 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1326 c4x-*-* | tic4x-*-*)
1327 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1329 c54x*-*-* | tic54x-*-*)
1330 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1332 cris-*-* | crisv32-*-*)
1333 unsupported_languages="$unsupported_languages java"
1334 case "${target}" in
1335 *-*-aout)
1336 unsupported_languages="$unsupported_languages fortran"
1337 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
1338 *-*-elf)
1339 unsupported_languages="$unsupported_languages fortran"
1340 noconfigdirs="$noconfigdirs target-boehm-gc";;
1341 *-*-linux*)
1342 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
1344 unsupported_languages="$unsupported_languages fortran"
1345 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1346 esac
1348 crx-*-*)
1349 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1351 d10v-*-*)
1352 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1354 d30v-*-*)
1355 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1357 fr30-*-elf*)
1358 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1360 frv-*-*)
1361 noconfigdirs="$noconfigdirs ${libgcj}"
1363 h8300*-*-*)
1364 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1366 h8500-*-*)
1367 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1369 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1371 hppa*64*-*-linux* | parisc*64*-*-linux*)
1372 # In this case, it's because the hppa64-linux target is for
1373 # the kernel only at this point and has no libc, and thus no
1374 # headers, crt*.o, etc., all of which are needed by these.
1375 noconfigdirs="$noconfigdirs target-zlib"
1377 parisc*-*-linux* | hppa*-*-linux*)
1379 hppa*-*-*elf* | \
1380 hppa*-*-lites* | \
1381 hppa*-*-openbsd* | \
1382 hppa*64*-*-*)
1383 noconfigdirs="$noconfigdirs ${libgcj}"
1385 hppa*-*-*)
1386 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1387 # build on HP-UX 10.20.
1388 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1390 i960-*-*)
1391 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1393 ia64*-*-elf*)
1394 # No gdb support yet.
1395 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1397 ia64*-**-hpux*)
1398 # No gdb or ld support yet.
1399 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1401 i370-*-opened*)
1403 i[3456789]86-*-coff | i[3456789]86-*-elf)
1404 noconfigdirs="$noconfigdirs ${libgcj}"
1406 i[3456789]86-*-linux*)
1407 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1408 # not build java stuff by default.
1409 case "${target}" in
1410 *-*-*libc1*)
1411 noconfigdirs="$noconfigdirs ${libgcj}";;
1412 esac
1414 # This section makes it possible to build newlib natively on linux.
1415 # If we are using a cross compiler then don't configure newlib.
1416 if test x${is_cross_compiler} != xno ; then
1417 noconfigdirs="$noconfigdirs target-newlib"
1419 noconfigdirs="$noconfigdirs target-libgloss"
1420 # If we are not using a cross compiler, do configure newlib.
1421 # Note however, that newlib will only be configured in this situation
1422 # if the --with-newlib option has been given, because otherwise
1423 # 'target-newlib' will appear in skipdirs.
1425 i[3456789]86-*-mingw32*)
1426 target_configdirs="$target_configdirs target-mingw"
1427 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1429 # Can't build gdb for mingw32 if not native.
1430 case "${host}" in
1431 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1432 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1434 esac
1436 *-*-cygwin*)
1437 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1438 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1439 # always build newlib if winsup directory is present.
1440 if test -d "$srcdir/winsup"; then
1441 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1442 elif test -d "$srcdir/newlib"; then
1443 echo "Warning: winsup is missing so newlib can't be built."
1446 # Can't build gdb for Cygwin if not native.
1447 case "${host}" in
1448 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1449 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1451 esac
1453 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1454 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1456 i[3456789]86-*-pe)
1457 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1459 i[3456789]86-*-sco3.2v5*)
1460 # The linker does not yet know about weak symbols in COFF,
1461 # and is not configured to handle mixed ELF and COFF.
1462 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1464 i[3456789]86-*-sco*)
1465 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1467 i[3456789]86-*-solaris2*)
1468 noconfigdirs="$noconfigdirs target-libgloss"
1470 i[3456789]86-*-sysv4*)
1471 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1473 i[3456789]86-*-beos*)
1474 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1476 m32r-*-*)
1477 noconfigdirs="$noconfigdirs ${libgcj}"
1479 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1480 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1482 m68k-*-elf*)
1483 noconfigdirs="$noconfigdirs ${libgcj}"
1485 m68k-*-coff*)
1486 noconfigdirs="$noconfigdirs ${libgcj}"
1488 mcore-*-pe*)
1489 # The EPOC C++ environment does not support exceptions or rtti,
1490 # and so building libstdc++-v3 tends not to always work.
1491 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1493 mmix-*-*)
1494 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1495 unsupported_languages="$unsupported_languages fortran java"
1497 mn10200-*-*)
1498 noconfigdirs="$noconfigdirs ${libgcj}"
1500 mn10300-*-*)
1501 noconfigdirs="$noconfigdirs ${libgcj}"
1503 mt-*-*)
1504 noconfigdirs="$noconfigdirs sim"
1506 powerpc-*-aix*)
1507 # copied from rs6000-*-* entry
1508 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1510 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1511 target_configdirs="$target_configdirs target-winsup"
1512 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1513 # always build newlib.
1514 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1516 # This is temporary until we can link against shared libraries
1517 powerpcle-*-solaris*)
1518 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1520 powerpc-*-beos*)
1521 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1523 powerpc-*-eabi)
1524 noconfigdirs="$noconfigdirs ${libgcj}"
1526 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1528 rs6000-*-lynxos*)
1529 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1531 rs6000-*-aix*)
1532 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1534 rs6000-*-*)
1535 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1537 m68k-apollo-*)
1538 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1540 mips*-*-irix5*)
1541 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1543 mips*-*-irix6*)
1544 # Linking libjava exceeds command-line length limits on at least
1545 # IRIX 6.2, but not on IRIX 6.5.
1546 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1547 # <oldham@codesourcery.com>
1548 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1550 mips*-dec-bsd*)
1551 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1553 mips*-*-bsd*)
1554 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1556 mipstx39-*-*)
1557 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1559 mips64*-*-linux*)
1560 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1562 mips*-*-linux*)
1563 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1565 mips*-*-*)
1566 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1568 romp-*-*)
1569 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1571 sh-*-* | sh64-*-*)
1572 case "${host}" in
1573 i[3456789]86-*-vsta) ;; # don't add gprof back in
1574 i[3456789]86-*-go32*) ;; # don't add gprof back in
1575 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1576 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1577 esac
1578 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1580 sparc-*-elf*)
1581 noconfigdirs="$noconfigdirs ${libgcj}"
1583 sparc64-*-elf*)
1584 noconfigdirs="$noconfigdirs ${libgcj}"
1586 sparclite-*-*)
1587 noconfigdirs="$noconfigdirs ${libgcj}"
1589 sparc-*-sunos4*)
1590 noconfigdirs="$noconfigdirs ${libgcj}"
1591 if test x${is_cross_compiler} != xno ; then
1592 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1593 else
1594 use_gnu_ld=no
1597 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1598 noconfigdirs="$noconfigdirs ${libgcj}"
1600 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1602 v810-*-*)
1603 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1605 v850-*-*)
1606 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1608 v850e-*-*)
1609 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1611 v850ea-*-*)
1612 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1614 vax-*-vms)
1615 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1617 vax-*-*)
1618 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1620 xtensa-*-*)
1621 noconfigdirs="$noconfigdirs ${libgcj}"
1623 ip2k-*-*)
1624 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1626 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1627 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1629 *-*-lynxos*)
1630 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1632 *-*-*)
1633 noconfigdirs="$noconfigdirs ${libgcj}"
1635 esac
1637 # If we aren't building newlib, then don't build libgloss, since libgloss
1638 # depends upon some newlib header files.
1639 case "${noconfigdirs}" in
1640 *target-libgloss*) ;;
1641 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1642 esac
1644 # Work in distributions that contain no compiler tools, like Autoconf.
1645 tentative_cc=""
1646 host_makefile_frag=/dev/null
1647 if test -d ${srcdir}/config ; then
1648 case "${host}" in
1649 m68k-hp-hpux*)
1650 # Avoid "too much defining" errors from HPUX compiler.
1651 tentative_cc="cc -Wp,-H256000"
1652 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1653 # If it's HP/UX ar, this should be harmless.
1654 RANLIB="ar ts"
1656 m68k-apollo-sysv*)
1657 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1659 m68k-apollo-bsd*)
1660 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1661 # chokes on bfd, the compiler won't let you assign integers to enums, and
1662 # other problems. Defining CC to gcc is a questionable way to say "don't use
1663 # the apollo compiler" (the preferred version of GCC could be called cc,
1664 # or whatever), but I'm not sure leaving CC as cc is any better...
1665 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1666 # Used to have BISON=yacc.
1667 tentative_cc=gcc
1669 m88k-dg-dgux*)
1670 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1672 m88k-harris-cxux*)
1673 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1674 tentative_cc="cc -Xa"
1675 host_makefile_frag="config/mh-cxux"
1677 m88k-motorola-sysv*)
1679 mips*-dec-ultrix*)
1680 tentative_cc="cc -Wf,-XNg1000"
1681 host_makefile_frag="config/mh-decstation"
1683 mips*-nec-sysv4*)
1684 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1685 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1686 host_makefile_frag="config/mh-necv4"
1688 mips*-sgi-irix4*)
1689 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1690 # environment. Also bump switch table size so that cp-parse will
1691 # compile. Bump string length limit so linker builds.
1692 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1694 mips*-*-sysv4*)
1695 host_makefile_frag="config/mh-sysv4"
1697 mips*-*-sysv*)
1698 # This is for a MIPS running RISC/os 4.52C.
1700 # This is needed for GDB, but needs to be in the top-level make because
1701 # if a library is compiled with the bsd headers and gets linked with the
1702 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1703 # a different size).
1704 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1705 # known except to select the sysv environment. Could we use /proc instead?
1706 # These "sysv environments" and "bsd environments" often end up being a pain.
1708 # This is not part of CFLAGS because perhaps not all C compilers have this
1709 # option.
1710 tentative_cc="cc -systype sysv"
1712 i370-ibm-opened*)
1713 tentative_cc="c89"
1715 i[3456789]86-*-sysv5*)
1716 host_makefile_frag="config/mh-sysv5"
1718 i[3456789]86-*-dgux*)
1719 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1720 host_makefile_frag="config/mh-dgux386"
1722 i[3456789]86-ncr-sysv4.3*)
1723 # The MetaWare compiler will generate a copyright message unless you
1724 # turn it off by adding the -Hnocopyr flag.
1725 tentative_cc="cc -Hnocopyr"
1727 i[3456789]86-ncr-sysv4*)
1728 # for an NCR 3000 (i486/SVR4) system.
1729 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1730 # This compiler not only emits obnoxious copyright messages every time
1731 # you run it, but it chokes and dies on a whole bunch of GNU source
1732 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1733 tentative_cc="/usr/ccs/ATT/cc"
1734 host_makefile_frag="config/mh-ncr3000"
1736 i[3456789]86-*-sco3.2v5*)
1738 i[3456789]86-*-sco*)
1739 # The native C compiler botches some simple uses of const. Unfortunately,
1740 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1741 tentative_cc="cc -Dconst="
1742 host_makefile_frag="config/mh-sco"
1744 i[3456789]86-*-udk*)
1745 host_makefile_frag="config/mh-sysv5"
1747 i[3456789]86-*-solaris2*)
1748 host_makefile_frag="config/mh-sysv4"
1750 i[3456789]86-*-msdosdjgpp*)
1751 host_makefile_frag="config/mh-djgpp"
1753 *-cygwin*)
1754 host_makefile_frag="config/mh-cygwin"
1756 *-mingw32*)
1758 *-interix*)
1759 host_makefile_frag="config/mh-interix"
1761 vax-*-ultrix2*)
1762 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1763 tentative_cc=gcc
1765 *-*-solaris2*)
1766 host_makefile_frag="config/mh-solaris"
1768 m68k-sun-sunos*)
1769 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1770 # without overflowing the jump tables (-J says to use a 32 bit table)
1771 tentative_cc="cc -J"
1773 *-hp-hpux*)
1774 tentative_cc="cc -Wp,-H256000"
1776 *-*-hiux*)
1777 tentative_cc="cc -Wp,-H256000"
1779 rs6000-*-lynxos*)
1780 # /bin/cc is less than useful for our purposes. Always use GCC
1781 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1782 host_makefile_frag="config/mh-lynxrs6k"
1784 powerpc-*-darwin*)
1785 host_makefile_frag="config/mh-ppc-darwin"
1787 powerpc-*-aix*)
1788 host_makefile_frag="config/mh-ppc-aix"
1790 rs6000-*-aix*)
1791 host_makefile_frag="config/mh-ppc-aix"
1793 *-*-lynxos*)
1794 # /bin/cc is less than useful for our purposes. Always use GCC
1795 tentative_cc="/bin/gcc"
1797 *-*-sysv4*)
1798 host_makefile_frag="config/mh-sysv4"
1800 # This is placed last to prevent interfering with the cases above.
1801 i[3456789]86-*-*)
1802 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1803 host_makefile_frag="config/mh-x86omitfp"
1805 esac
1808 # If we aren't going to be using gcc, see if we can extract a definition
1809 # of CC from the fragment.
1810 # Actually, use the 'pre-extracted' version above.
1811 if test -z "${CC}" && test "${build}" = "${host}" ; then
1812 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1813 found=
1814 for dir in $PATH; do
1815 test -z "$dir" && dir=.
1816 if test -f $dir/gcc; then
1817 found=yes
1818 break
1820 done
1821 IFS="$save_ifs"
1822 if test -z "${found}" && test -n "${tentative_cc}" ; then
1823 CC=$tentative_cc
1827 if test "${build}" != "${host}" ; then
1828 # If we are doing a Canadian Cross, in which the host and build systems
1829 # are not the same, we set reasonable default values for the tools.
1831 CC=${CC-${host_alias}-gcc}
1832 CFLAGS=${CFLAGS-"-g -O2"}
1833 CXX=${CXX-${host_alias}-c++}
1834 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1835 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1836 BUILD_PREFIX=${build_alias}-
1837 BUILD_PREFIX_1=${build_alias}-
1839 else
1840 # Set reasonable default values for some tools even if not Canadian.
1841 # Of course, these are different reasonable default values, originally
1842 # specified directly in the Makefile.
1843 # We don't export, so that autoconf can do its job.
1844 # Note that all these settings are above the fragment inclusion point
1845 # in Makefile.in, so can still be overridden by fragments.
1846 # This is all going to change when we autoconfiscate...
1848 CC_FOR_BUILD="\$(CC)"
1849 BUILD_PREFIX=
1850 BUILD_PREFIX_1=loser-
1852 # Extract the first word of "gcc", so it can be a program name with args.
1853 set dummy gcc; ac_word=$2
1854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1855 echo "configure:1856: checking for $ac_word" >&5
1856 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1858 else
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1861 else
1862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1863 ac_dummy="$PATH"
1864 for ac_dir in $ac_dummy; do
1865 test -z "$ac_dir" && ac_dir=.
1866 if test -f $ac_dir/$ac_word; then
1867 ac_cv_prog_CC="gcc"
1868 break
1870 done
1871 IFS="$ac_save_ifs"
1874 CC="$ac_cv_prog_CC"
1875 if test -n "$CC"; then
1876 echo "$ac_t""$CC" 1>&6
1877 else
1878 echo "$ac_t""no" 1>&6
1881 if test -z "$CC"; then
1882 # Extract the first word of "cc", so it can be a program name with args.
1883 set dummy cc; ac_word=$2
1884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1885 echo "configure:1886: checking for $ac_word" >&5
1886 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1888 else
1889 if test -n "$CC"; then
1890 ac_cv_prog_CC="$CC" # Let the user override the test.
1891 else
1892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1893 ac_prog_rejected=no
1894 ac_dummy="$PATH"
1895 for ac_dir in $ac_dummy; do
1896 test -z "$ac_dir" && ac_dir=.
1897 if test -f $ac_dir/$ac_word; then
1898 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1899 ac_prog_rejected=yes
1900 continue
1902 ac_cv_prog_CC="cc"
1903 break
1905 done
1906 IFS="$ac_save_ifs"
1907 if test $ac_prog_rejected = yes; then
1908 # We found a bogon in the path, so make sure we never use it.
1909 set dummy $ac_cv_prog_CC
1910 shift
1911 if test $# -gt 0; then
1912 # We chose a different compiler from the bogus one.
1913 # However, it has the same basename, so the bogon will be chosen
1914 # first if we set CC to just the basename; use the full file name.
1915 shift
1916 set dummy "$ac_dir/$ac_word" "$@"
1917 shift
1918 ac_cv_prog_CC="$@"
1923 CC="$ac_cv_prog_CC"
1924 if test -n "$CC"; then
1925 echo "$ac_t""$CC" 1>&6
1926 else
1927 echo "$ac_t""no" 1>&6
1930 if test -z "$CC"; then
1931 case "`uname -s`" in
1932 *win32* | *WIN32*)
1933 # Extract the first word of "cl", so it can be a program name with args.
1934 set dummy cl; ac_word=$2
1935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1936 echo "configure:1937: checking for $ac_word" >&5
1937 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1939 else
1940 if test -n "$CC"; then
1941 ac_cv_prog_CC="$CC" # Let the user override the test.
1942 else
1943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1944 ac_dummy="$PATH"
1945 for ac_dir in $ac_dummy; do
1946 test -z "$ac_dir" && ac_dir=.
1947 if test -f $ac_dir/$ac_word; then
1948 ac_cv_prog_CC="cl"
1949 break
1951 done
1952 IFS="$ac_save_ifs"
1955 CC="$ac_cv_prog_CC"
1956 if test -n "$CC"; then
1957 echo "$ac_t""$CC" 1>&6
1958 else
1959 echo "$ac_t""no" 1>&6
1962 esac
1964 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1967 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1968 echo "configure:1969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1970 ac_ext=c
1971 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1972 ac_cpp='$CPP $CPPFLAGS'
1973 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1974 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1975 cross_compiling=$ac_cv_prog_cc_cross
1977 cat > conftest.$ac_ext << EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1982 main(){return(0);}
1984 if { (eval echo configure:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1985 ac_cv_prog_cc_works=yes
1986 # If we can't run a trivial program, we are probably using a cross compiler.
1987 if (./conftest; exit) 2>/dev/null; then
1988 ac_cv_prog_cc_cross=no
1989 else
1990 ac_cv_prog_cc_cross=yes
1992 else
1993 echo "configure: failed program was:" >&5
1994 cat conftest.$ac_ext >&5
1995 ac_cv_prog_cc_works=no
1997 rm -fr conftest*
1998 ac_ext=c
1999 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2000 ac_cpp='$CPP $CPPFLAGS'
2001 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2002 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2003 cross_compiling=$ac_cv_prog_cc_cross
2005 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2006 if test $ac_cv_prog_cc_works = no; then
2007 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2009 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2010 echo "configure:2011: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2011 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2012 cross_compiling=$ac_cv_prog_cc_cross
2014 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2015 echo "configure:2016: checking whether we are using GNU C" >&5
2016 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2018 else
2019 cat > conftest.c <<EOF
2020 #ifdef __GNUC__
2021 yes;
2022 #endif
2024 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2025 ac_cv_prog_gcc=yes
2026 else
2027 ac_cv_prog_gcc=no
2031 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2033 if test $ac_cv_prog_gcc = yes; then
2034 GCC=yes
2035 else
2036 GCC=
2039 ac_test_CFLAGS="${CFLAGS+set}"
2040 ac_save_CFLAGS="$CFLAGS"
2041 CFLAGS=
2042 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2043 echo "configure:2044: checking whether ${CC-cc} accepts -g" >&5
2044 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2046 else
2047 echo 'void f(){}' > conftest.c
2048 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2049 ac_cv_prog_cc_g=yes
2050 else
2051 ac_cv_prog_cc_g=no
2053 rm -f conftest*
2057 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2058 if test "$ac_test_CFLAGS" = set; then
2059 CFLAGS="$ac_save_CFLAGS"
2060 elif test $ac_cv_prog_cc_g = yes; then
2061 if test "$GCC" = yes; then
2062 CFLAGS="-g -O2"
2063 else
2064 CFLAGS="-g"
2066 else
2067 if test "$GCC" = yes; then
2068 CFLAGS="-O2"
2069 else
2070 CFLAGS=
2075 # We must set the default linker to the linker used by gcc for the correct
2076 # operation of libtool. If LD is not defined and we are using gcc, try to
2077 # set the LD default to the ld used by gcc.
2078 if test -z "$LD"; then
2079 if test "$GCC" = yes; then
2080 case $build in
2081 *-*-mingw*)
2082 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2084 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2085 esac
2086 case $gcc_prog_ld in
2087 # Accept absolute paths.
2088 [\\/]* | [A-Za-z]:[\\/]*)
2089 LD="$gcc_prog_ld" ;;
2090 esac
2094 CXX=${CXX-"c++"}
2095 CFLAGS=${CFLAGS-"-g"}
2096 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2099 if test $host != $build; then
2100 ac_tool_prefix=${host_alias}-
2101 else
2102 ac_tool_prefix=
2107 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2108 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2110 echo "configure:2111: checking for $ac_word" >&5
2111 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2113 else
2114 if test -n "$GNATBIND"; then
2115 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2116 else
2117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2118 ac_dummy="$PATH"
2119 for ac_dir in $ac_dummy; do
2120 test -z "$ac_dir" && ac_dir=.
2121 if test -f $ac_dir/$ac_word; then
2122 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2123 break
2125 done
2126 IFS="$ac_save_ifs"
2129 GNATBIND="$ac_cv_prog_GNATBIND"
2130 if test -n "$GNATBIND"; then
2131 echo "$ac_t""$GNATBIND" 1>&6
2132 else
2133 echo "$ac_t""no" 1>&6
2137 if test -z "$ac_cv_prog_GNATBIND"; then
2138 if test -n "$ac_tool_prefix"; then
2139 # Extract the first word of "gnatbind", so it can be a program name with args.
2140 set dummy gnatbind; ac_word=$2
2141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2142 echo "configure:2143: checking for $ac_word" >&5
2143 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2145 else
2146 if test -n "$GNATBIND"; then
2147 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2148 else
2149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2150 ac_dummy="$PATH"
2151 for ac_dir in $ac_dummy; do
2152 test -z "$ac_dir" && ac_dir=.
2153 if test -f $ac_dir/$ac_word; then
2154 ac_cv_prog_GNATBIND="gnatbind"
2155 break
2157 done
2158 IFS="$ac_save_ifs"
2159 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2162 GNATBIND="$ac_cv_prog_GNATBIND"
2163 if test -n "$GNATBIND"; then
2164 echo "$ac_t""$GNATBIND" 1>&6
2165 else
2166 echo "$ac_t""no" 1>&6
2169 else
2170 GNATBIND="no"
2174 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2175 echo "configure:2176: checking whether compiler driver understands Ada" >&5
2176 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2178 else
2179 cat >conftest.adb <<EOF
2180 procedure conftest is begin null; end conftest;
2182 acx_cv_cc_gcc_supports_ada=no
2183 # There is a bug in old released versions of GCC which causes the
2184 # driver to exit successfully when the appropriate language module
2185 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2186 # Therefore we must check for the error message as well as an
2187 # unsuccessful exit.
2188 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2189 # given a .adb file, but produce no object file. So we must check
2190 # if an object file was really produced to guard against this.
2191 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2192 if test x"$errors" = x && test -f conftest.$ac_objext; then
2193 acx_cv_cc_gcc_supports_ada=yes
2195 rm -f conftest.*
2198 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2200 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2201 have_gnat=yes
2202 else
2203 have_gnat=no
2206 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2207 echo "configure:2208: checking how to compare bootstrapped objects" >&5
2208 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6
2210 else
2211 echo abfoo >t1
2212 echo cdfoo >t2
2213 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2214 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2215 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2217 else
2218 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2221 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2222 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2224 else
2225 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2228 rm t1 t2
2232 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2233 do_compare="$gcc_cv_prog_cmp_skip"
2237 # Check for GMP and MPFR
2238 gmplibs=
2239 gmpinc=
2240 have_gmp=yes
2241 # Specify a location for mpfr
2242 # check for this first so it ends up on the link line before gmp.
2243 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2244 if test "${with_mpfr_dir+set}" = set; then
2245 withval="$with_mpfr_dir"
2250 if test "x$with_mpfr_dir" != x; then
2251 gmpinc="-I$with_mpfr_dir"
2252 gmplibs="$with_mpfr_dir/libmpfr.a"
2253 else
2254 gmplibs="-lmpfr"
2257 # Check whether --with-mpfr or --without-mpfr was given.
2258 if test "${with_mpfr+set}" = set; then
2259 withval="$with_mpfr"
2264 if test "x$with_mpfr" != x; then
2265 gmplibs="-L$with_mpfr/lib $gmplibs"
2266 gmpinc="-I$with_mpfr/include"
2269 # Specify a location for gmp
2270 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2271 if test "${with_gmp_dir+set}" = set; then
2272 withval="$with_gmp_dir"
2277 if test "x$with_gmp_dir" != x; then
2278 gmpinc="$gmpinc -I$with_gmp_dir"
2279 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2280 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2281 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2282 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2284 # One of the later tests will catch the error if neither library is present.
2285 else
2286 gmplibs="$gmplibs -lgmp"
2289 # Check whether --with-gmp or --without-gmp was given.
2290 if test "${with_gmp+set}" = set; then
2291 withval="$with_gmp"
2296 if test "x$with_gmp" != x; then
2297 gmplibs="-L$with_gmp/lib $gmplibs"
2298 gmpinc="-I$with_gmp/include $gmpinc"
2301 saved_CFLAGS="$CFLAGS"
2302 CFLAGS="$CFLAGS $gmpinc"
2303 # Check GMP actually works
2304 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2305 echo "configure:2306: checking for correct version of gmp.h" >&5
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2309 #include "gmp.h"
2310 int main() {
2312 #if __GNU_MP_VERSION < 3
2313 choke me
2314 #endif
2316 ; return 0; }
2318 if { (eval echo configure:2319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2319 rm -rf conftest*
2320 echo "$ac_t""yes" 1>&6
2321 else
2322 echo "configure: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2324 rm -rf conftest*
2325 echo "$ac_t""no" 1>&6; have_gmp=no
2327 rm -f conftest*
2329 if test x"$have_gmp" = xyes; then
2330 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2331 echo "configure:2332: checking for MPFR" >&5
2333 saved_LIBS="$LIBS"
2334 LIBS="$LIBS $gmplibs"
2335 cat > conftest.$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2338 #include <gmp.h>
2339 #include <mpfr.h>
2340 int main() {
2341 mpfr_t n; mpfr_init(n);
2342 ; return 0; }
2344 if { (eval echo configure:2345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2345 rm -rf conftest*
2346 echo "$ac_t""yes" 1>&6
2347 else
2348 echo "configure: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2350 rm -rf conftest*
2351 echo "$ac_t""no" 1>&6; have_gmp=no
2353 rm -f conftest*
2354 LIBS="$saved_LIBS"
2355 CFLAGS="$saved_CFLAGS"
2358 # Flags needed for both GMP and/or MPFR
2362 # By default, C is the only stage 1 language.
2363 stage1_languages=c
2366 # Figure out what language subdirectories are present.
2367 # Look if the user specified --enable-languages="..."; if not, use
2368 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2369 # go away some day.
2370 # NB: embedded tabs in this IF block -- do not untabify
2371 if test -d ${srcdir}/gcc; then
2372 if test x"${enable_languages+set}" != xset; then
2373 if test x"${LANGUAGES+set}" = xset; then
2374 enable_languages="${LANGUAGES}"
2375 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2376 else
2377 enable_languages=all
2379 else
2380 if test x"${enable_languages}" = x ||
2381 test x"${enable_languages}" = xyes;
2382 then
2383 echo configure.in: --enable-languages needs at least one language argument 1>&2
2384 exit 1
2387 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2389 # 'f95' is the old name for the 'fortran' language. We issue a warning
2390 # and make the substitution.
2391 case ,${enable_languages}, in
2392 *,f95,*)
2393 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2394 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2396 esac
2398 # First scan to see if an enabled language requires some other language.
2399 # We assume that a given config-lang.in will list all the language
2400 # front ends it requires, even if some are required indirectly.
2401 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2402 case ${lang_frag} in
2403 ..) ;;
2404 # The odd quoting in the next line works around
2405 # an apparent bug in bash 1.12 on linux.
2406 ${srcdir}/gcc/[*]/config-lang.in) ;;
2408 # From the config-lang.in, get $language, $lang_requires
2409 language=
2410 lang_requires=
2411 . ${lang_frag}
2412 for other in ${lang_requires} ; do
2413 case ,${enable_languages}, in
2414 *,$other,*) ;;
2415 *,all,*) ;;
2416 *,$language,*)
2417 echo " \`$other' language required by \`$language'; enabling" 1>&2
2418 enable_languages="${enable_languages},${other}"
2420 esac
2421 done
2423 esac
2424 done
2426 new_enable_languages=c
2427 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2428 potential_languages=c
2430 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2431 case ${lang_frag} in
2432 ..) ;;
2433 # The odd quoting in the next line works around
2434 # an apparent bug in bash 1.12 on linux.
2435 ${srcdir}/gcc/[*]/config-lang.in) ;;
2437 # From the config-lang.in, get $language, $target_libs,
2438 # $lang_dirs, $boot_language, and $build_by_default
2439 language=
2440 target_libs=
2441 lang_dirs=
2442 boot_language=
2443 build_by_default=
2444 need_gmp=
2445 . ${lang_frag}
2446 potential_languages="${potential_languages},${language}"
2447 # This is quite sensitive to the ordering of the case statement arms.
2448 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2449 *::*:*)
2450 echo "${lang_frag} doesn't set \$language." 1>&2
2451 exit 1
2453 *:ada:no:*)
2454 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2455 add_this_lang=no
2457 *,${language},*:*:*:*)
2458 # Language was explicitly selected; include it.
2459 add_this_lang=yes
2461 *,all,*:*:*:no)
2462 # 'all' was selected, but this is not a default language
2463 # so do not include it.
2464 add_this_lang=no
2466 *,all,*:*:*:*)
2467 # 'all' was selected and this is a default language; include it.
2468 add_this_lang=yes
2471 add_this_lang=no
2473 esac
2475 # Disable languages that need GMP if it isn't available.
2476 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2477 *,${language},*:no:yes)
2478 # Specifically requested language; tell them.
2479 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2481 *:no:yes)
2482 # Silently disable.
2483 add_this_lang=no
2485 esac
2487 # Disable a language that is unsupported by the target.
2488 case " $unsupported_languages " in
2489 *" $language "*)
2490 add_this_lang=no
2492 esac
2494 case $add_this_lang in
2496 # Remove language-dependent dirs.
2497 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2500 new_enable_languages="$new_enable_languages,$language"
2501 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2502 case ${boot_language} in
2503 yes)
2504 # Add to (comma-separated) list of stage 1 languages.
2505 stage1_languages="${stage1_languages},${language}"
2507 esac
2509 esac
2511 esac
2512 done
2514 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2515 if test "x$missing_languages" != x; then
2516 { echo "configure: error:
2517 The following requested languages could not be built: ${missing_languages}
2518 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2521 if test "x$new_enable_languages" != "x$enable_languages"; then
2522 echo The following languages will be built: ${new_enable_languages}
2524 enable_languages="$new_enable_languages"
2525 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2528 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2529 # $build_configdirs and $target_configdirs.
2530 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2532 notsupp=""
2533 for dir in . $skipdirs $noconfigdirs ; do
2534 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2535 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2536 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2537 if test -r $srcdir/$dirname/configure ; then
2538 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2539 true
2540 else
2541 notsupp="$notsupp $dir"
2545 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2546 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2547 if test -r $srcdir/$dirname/configure ; then
2548 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2549 true
2550 else
2551 notsupp="$notsupp $dir"
2555 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2556 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2557 if test -r $srcdir/$dirname/configure ; then
2558 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2559 true
2560 else
2561 notsupp="$notsupp $dir"
2565 done
2567 # Sometimes the tools are distributed with libiberty but with no other
2568 # libraries. In that case, we don't want to build target-libiberty.
2569 if test -n "${target_configdirs}" ; then
2570 others=
2571 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2572 if test "$i" != "libiberty" ; then
2573 if test -r $srcdir/$i/configure ; then
2574 others=yes;
2575 break;
2578 done
2579 if test -z "${others}" ; then
2580 target_configdirs=
2584 # Quietly strip out all directories which aren't configurable in this tree.
2585 # This relies on all configurable subdirectories being autoconfiscated, which
2586 # is now the case.
2587 build_configdirs_all="$build_configdirs"
2588 build_configdirs=
2589 for i in ${build_configdirs_all} ; do
2590 j=`echo $i | sed -e s/build-//g`
2591 if test -f ${srcdir}/$j/configure ; then
2592 build_configdirs="${build_configdirs} $i"
2594 done
2596 configdirs_all="$configdirs"
2597 configdirs=
2598 for i in ${configdirs_all} ; do
2599 if test -f ${srcdir}/$i/configure ; then
2600 configdirs="${configdirs} $i"
2602 done
2604 target_configdirs_all="$target_configdirs"
2605 target_configdirs=
2606 for i in ${target_configdirs_all} ; do
2607 j=`echo $i | sed -e s/target-//g`
2608 if test -f ${srcdir}/$j/configure ; then
2609 target_configdirs="${target_configdirs} $i"
2611 done
2613 # Produce a warning message for the subdirs we can't configure.
2614 # This isn't especially interesting in the Cygnus tree, but in the individual
2615 # FSF releases, it's important to let people know when their machine isn't
2616 # supported by the one or two programs in a package.
2618 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2619 # If $appdirs is non-empty, at least one of those directories must still
2620 # be configured, or we error out. (E.g., if the gas release supports a
2621 # specified target in some subdirs but not the gas subdir, we shouldn't
2622 # pretend that all is well.)
2623 if test -n "$appdirs" ; then
2624 for dir in $appdirs ; do
2625 if test -r $dir/Makefile.in ; then
2626 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2627 appdirs=""
2628 break
2630 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2631 appdirs=""
2632 break
2635 done
2636 if test -n "$appdirs" ; then
2637 echo "*** This configuration is not supported by this package." 1>&2
2638 exit 1
2641 # Okay, some application will build, or we don't care to check. Still
2642 # notify of subdirs not getting built.
2643 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2644 echo " ${notsupp}" 1>&2
2645 echo " (Any other directories should still work fine.)" 1>&2
2648 case "$host" in
2649 *msdosdjgpp*)
2650 enable_gdbtk=no ;;
2651 esac
2653 copy_dirs=
2655 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2656 if test "${with_build_sysroot+set}" = set; then
2657 withval="$with_build_sysroot"
2658 if test x"$withval" != x ; then
2659 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2661 else
2662 SYSROOT_CFLAGS_FOR_TARGET=
2667 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2668 # the named directory are copied to $(tooldir)/sys-include.
2669 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2670 if test x${is_cross_compiler} = xno ; then
2671 echo 1>&2 '***' --with-headers is only supported when cross compiling
2672 exit 1
2674 if test x"${with_headers}" != xyes ; then
2675 case "${exec_prefixoption}" in
2676 "") x=${prefix} ;;
2677 *) x=${exec_prefix} ;;
2678 esac
2679 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2683 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2684 # the name directories are copied to $(tooldir)/lib. Multiple directories
2685 # are permitted.
2686 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2687 if test x${is_cross_compiler} = xno ; then
2688 echo 1>&2 '***' --with-libs is only supported when cross compiling
2689 exit 1
2691 if test x"${with_libs}" != xyes ; then
2692 # Copy the libraries in reverse order, so that files in the first named
2693 # library override files in subsequent libraries.
2694 case "${exec_prefixoption}" in
2695 "") x=${prefix} ;;
2696 *) x=${exec_prefix} ;;
2697 esac
2698 for l in ${with_libs}; do
2699 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2700 done
2704 # Handle ${copy_dirs}
2705 set fnord ${copy_dirs}
2706 shift
2707 while test $# != 0 ; do
2708 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2710 else
2711 echo Copying $1 to $2
2713 # Use the install script to create the directory and all required
2714 # parent directories.
2715 if test -d $2 ; then
2717 else
2718 echo >config.temp
2719 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2722 # Copy the directory, assuming we have tar.
2723 # FIXME: Should we use B in the second tar? Not all systems support it.
2724 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2726 # It is the responsibility of the user to correctly adjust all
2727 # symlinks. If somebody can figure out how to handle them correctly
2728 # here, feel free to add the code.
2730 echo $1 > $2/COPIED
2732 shift; shift
2733 done
2735 extra_arflags_for_target=
2736 extra_nmflags_for_target=
2737 extra_ranlibflags_for_target=
2738 target_makefile_frag=/dev/null
2739 case "${target}" in
2740 *-*-netware*)
2741 target_makefile_frag="config/mt-netware"
2743 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2744 target_makefile_frag="config/mt-gnu"
2746 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2747 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2748 # commands to handle both 32-bit and 64-bit objects. These flags are
2749 # harmless if we're using GNU nm or ar.
2750 extra_arflags_for_target=" -X32_64"
2751 extra_nmflags_for_target=" -B -X32_64"
2753 *-*-darwin*)
2754 # ranlib from Darwin requires the -c flag to look at common symbols.
2755 extra_ranlibflags_for_target=" -c"
2757 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2758 target_makefile_frag="config/mt-wince"
2760 esac
2762 alphaieee_frag=/dev/null
2763 case $target in
2764 alpha*-*-*)
2765 # This just makes sure to use the -mieee option to build target libs.
2766 # This should probably be set individually by each library.
2767 alphaieee_frag="config/mt-alphaieee"
2769 esac
2771 # If --enable-target-optspace always use -Os instead of -O2 to build
2772 # the target libraries, similarly if it is not specified, use -Os
2773 # on selected platforms.
2774 ospace_frag=/dev/null
2775 case "${enable_target_optspace}:${target}" in
2776 yes:*)
2777 ospace_frag="config/mt-ospace"
2779 :d30v-*)
2780 ospace_frag="config/mt-d30v"
2782 :m32r-* | :d10v-* | :fr30-*)
2783 ospace_frag="config/mt-ospace"
2785 no:* | :*)
2788 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2790 esac
2792 # Set with_gnu_as and with_gnu_ld as appropriate.
2794 # This is done by determining whether or not the appropriate directory
2795 # is available, and by checking whether or not specific configurations
2796 # have requested that this magic not happen.
2798 # The command line options always override the explicit settings in
2799 # configure.in, and the settings in configure.in override this magic.
2801 # If the default for a toolchain is to use GNU as and ld, and you don't
2802 # want to do that, then you should use the --without-gnu-as and
2803 # --without-gnu-ld options for the configure script.
2805 if test x${use_gnu_as} = x &&
2806 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2807 with_gnu_as=yes
2808 extra_host_args="$extra_host_args --with-gnu-as"
2811 if test x${use_gnu_ld} = x &&
2812 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2813 with_gnu_ld=yes
2814 extra_host_args="$extra_host_args --with-gnu-ld"
2817 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2818 # can detect this case.
2820 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2821 with_newlib=yes
2822 extra_host_args="$extra_host_args --with-newlib"
2825 # Default to using --with-stabs for certain targets.
2826 if test x${with_stabs} = x ; then
2827 case "${target}" in
2828 mips*-*-irix[56]*)
2830 mips*-*-* | alpha*-*-osf*)
2831 with_stabs=yes;
2832 extra_host_args="${extra_host_args} --with-stabs"
2834 esac
2837 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2838 # them automatically.
2839 case "${host}" in
2840 hppa*64*-*-hpux11*)
2841 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2843 esac
2845 # Some systems (e.g., one of the i386-aix systems the gas testers are
2846 # using) don't handle "\$" correctly, so don't use it here.
2847 tooldir='${exec_prefix}'/${target_alias}
2848 build_tooldir=${tooldir}
2850 # Create a .gdbinit file which runs the one in srcdir
2851 # and tells GDB to look there for source files.
2853 if test -r ${srcdir}/.gdbinit ; then
2854 case ${srcdir} in
2855 .) ;;
2856 *) cat > ./.gdbinit <<EOF
2857 # ${NO_EDIT}
2858 dir ${srcdir}
2859 dir .
2860 source ${srcdir}/.gdbinit
2863 esac
2866 # Make sure that the compiler is able to generate an executable. If it
2867 # can't, we are probably in trouble. We don't care whether we can run the
2868 # executable--we might be using a cross compiler--we only care whether it
2869 # can be created. At this point the main configure script has set CC.
2870 we_are_ok=no
2871 echo "int main () { return 0; }" > conftest.c
2872 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2873 if test $? = 0 ; then
2874 if test -s conftest || test -s conftest.exe ; then
2875 we_are_ok=yes
2878 case $we_are_ok in
2880 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2881 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2882 rm -f conftest*
2883 exit 1
2885 esac
2886 rm -f conftest*
2888 # The Solaris /usr/ucb/cc compiler does not appear to work.
2889 case "${host}" in
2890 sparc-sun-solaris2*)
2891 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2892 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2893 could_use=
2894 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2895 if test -d /opt/cygnus/bin ; then
2896 if test "$could_use" = "" ; then
2897 could_use="/opt/cygnus/bin"
2898 else
2899 could_use="$could_use or /opt/cygnus/bin"
2902 if test "$could_use" = "" ; then
2903 echo "Warning: compilation may fail because you're using"
2904 echo "/usr/ucb/cc. You should change your PATH or CC "
2905 echo "variable and rerun configure."
2906 else
2907 echo "Warning: compilation may fail because you're using"
2908 echo "/usr/ucb/cc, when you should use the C compiler from"
2909 echo "$could_use. You should change your"
2910 echo "PATH or CC variable and rerun configure."
2914 esac
2916 case "${host}" in
2917 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2918 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
2919 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2920 esac
2922 # Record target_configdirs and the configure arguments for target and
2923 # build configuration in Makefile.
2924 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2925 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
2927 # Determine whether gdb needs tk/tcl or not.
2928 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2929 # and in that case we want gdb to be built without tk. Ugh!
2930 # In fact I believe gdb is the *only* package directly dependent on tk,
2931 # so we should be able to put the 'maybe's in unconditionally and
2932 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2933 # 100% sure that that's safe though.
2935 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
2936 case "$enable_gdbtk" in
2938 GDB_TK="" ;;
2939 yes)
2940 GDB_TK="${gdb_tk}" ;;
2942 # Only add the dependency on gdbtk when GDBtk is part of the gdb
2943 # distro. Eventually someone will fix this and move Insight, nee
2944 # gdbtk to a separate directory.
2945 if test -d ${srcdir}/gdb/gdbtk ; then
2946 GDB_TK="${gdb_tk}"
2947 else
2948 GDB_TK=""
2951 esac
2952 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
2953 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
2955 # Strip out unwanted targets.
2957 # While at that, we remove Makefiles if we were started for recursive
2958 # configuration, so that the top-level Makefile reconfigures them,
2959 # like we used to do when configure itself was recursive.
2961 # Loop over modules. $extrasub must be used with care, limiting as
2962 # much as possible the usage of range addresses. That's because autoconf
2963 # splits the sed script to overcome limits in the number of commands,
2964 # and relying on carefully-timed sed passes may turn out to be very hard
2965 # to maintain later. In this particular case, you just have to be careful
2966 # not to nest @if/@endif pairs, because configure will not warn you at all.
2968 # Check whether --enable-bootstrap or --disable-bootstrap was given.
2969 if test "${enable_bootstrap+set}" = set; then
2970 enableval="$enable_bootstrap"
2972 else
2973 enable_bootstrap=default
2977 # Issue errors and warnings for invalid/strange bootstrap combinations.
2978 case "$configdirs" in
2979 *gcc*) have_compiler=yes ;;
2980 *) have_compiler=no ;;
2981 esac
2983 case "$have_compiler:$host:$target:$enable_bootstrap" in
2984 *:*:*:no) ;;
2986 # Default behavior. Enable bootstrap if we have a compiler
2987 # and we are in a native configuration.
2988 yes:$build:$build:default)
2989 enable_bootstrap=yes ;;
2991 *:*:*:default)
2992 enable_bootstrap=no ;;
2994 # We have a compiler and we are in a native configuration, bootstrap is ok
2995 yes:$build:$build:yes)
2998 # Other configurations, but we have a compiler. Assume the user knows
2999 # what he's doing.
3000 yes:*:*:yes)
3001 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3004 # No compiler: if they passed --enable-bootstrap explicitly, fail
3005 no:*:*:yes)
3006 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3008 # Fail if wrong command line
3010 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3012 esac
3014 # Adjust the toplevel makefile according to whether bootstrap was selected.
3015 case "$enable_bootstrap" in
3016 yes)
3017 bootstrap_suffix=bootstrap ;;
3019 bootstrap_suffix=no-bootstrap ;;
3020 esac
3022 for module in ${build_configdirs} ; do
3023 if test -z "${no_recursion}" \
3024 && test -f ${build_subdir}/${module}/Makefile; then
3025 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3026 rm -f ${build_subdir}/${module}/Makefile
3028 extrasub="$extrasub
3029 /^@if build-$module\$/d
3030 /^@endif build-$module\$/d
3031 /^@if build-$module-$bootstrap_suffix\$/d
3032 /^@endif build-$module-$bootstrap_suffix\$/d"
3033 done
3034 for module in ${configdirs} ; do
3035 if test -z "${no_recursion}"; then
3036 for file in stage*-${module}/Makefile ${module}/Makefile; do
3037 if test -f ${file}; then
3038 echo 1>&2 "*** removing ${file} to force reconfigure"
3039 rm -f ${file}
3041 done
3043 extrasub="$extrasub
3044 /^@if $module\$/d
3045 /^@endif $module\$/d
3046 /^@if $module-$bootstrap_suffix\$/d
3047 /^@endif $module-$bootstrap_suffix\$/d"
3048 done
3049 for module in ${target_configdirs} ; do
3050 if test -z "${no_recursion}" \
3051 && test -f ${target_subdir}/${module}/Makefile; then
3052 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3053 rm -f ${target_subdir}/${module}/Makefile
3055 extrasub="$extrasub
3056 /^@if target-$module\$/d
3057 /^@endif target-$module\$/d
3058 /^@if target-$module-$bootstrap_suffix\$/d
3059 /^@endif target-$module-$bootstrap_suffix\$/d"
3060 done
3062 extrasub="$extrasub
3063 /^@if /,/^@endif /d"
3065 # Create the serialization dependencies. This uses a temporary file.
3067 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3068 if test "${enable_serial_configure+set}" = set; then
3069 enableval="$enable_serial_configure"
3074 case ${enable_serial_configure} in
3075 yes)
3076 enable_serial_build_configure=yes
3077 enable_serial_host_configure=yes
3078 enable_serial_target_configure=yes
3080 esac
3082 # These force 'configure's to be done one at a time, to avoid problems
3083 # with contention over a shared config.cache.
3084 rm -f serdep.tmp
3085 echo '# serdep.tmp' > serdep.tmp
3086 olditem=
3087 test "x${enable_serial_build_configure}" = xyes &&
3088 for item in ${build_configdirs} ; do
3089 case ${olditem} in
3090 "") ;;
3091 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3092 esac
3093 olditem=${item}
3094 done
3095 olditem=
3096 test "x${enable_serial_host_configure}" = xyes &&
3097 for item in ${configdirs} ; do
3098 case ${olditem} in
3099 "") ;;
3100 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3101 esac
3102 olditem=${item}
3103 done
3104 olditem=
3105 test "x${enable_serial_target_configure}" = xyes &&
3106 for item in ${target_configdirs} ; do
3107 case ${olditem} in
3108 "") ;;
3109 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3110 esac
3111 olditem=${item}
3112 done
3113 serialization_dependencies=serdep.tmp
3116 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3117 # target and nonopt. These are the ones we might not want to pass
3118 # down to subconfigures. Also strip program-prefix, program-suffix,
3119 # and program-transform-name, so that we can pass down a consistent
3120 # program-transform-name. If autoconf has put single quotes around
3121 # any of these arguments (because they contain shell metacharacters)
3122 # then this will fail; in practice this only happens for
3123 # --program-transform-name, so be sure to override --program-transform-name
3124 # at the end of the argument list.
3125 # These will be expanded by make, so quote '$'.
3126 cat <<\EOF_SED > conftestsed
3127 s/ --no[^ ]*/ /g
3128 s/ --c[a-z-]*[= ][^ ]*//g
3129 s/ --sr[a-z-]*[= ][^ ]*//g
3130 s/ --ho[a-z-]*[= ][^ ]*//g
3131 s/ --bu[a-z-]*[= ][^ ]*//g
3132 s/ --t[a-z-]*[= ][^ ]*//g
3133 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3134 s/ -cache-file[= ][^ ]*//g
3135 s/ -srcdir[= ][^ ]*//g
3136 s/ -host[= ][^ ]*//g
3137 s/ -build[= ][^ ]*//g
3138 s/ -target[= ][^ ]*//g
3139 s/ -program-prefix[= ][^ ]*//g
3140 s/ -program-suffix[= ][^ ]*//g
3141 s/ -program-transform-name[= ][^ ]*//g
3142 s/ [^' -][^ ]* / /
3143 s/^ *//;s/ *$//
3144 s,\$,$$,g
3145 EOF_SED
3146 sed -f conftestsed <<EOF_SED > conftestsed.out
3147 ${ac_configure_args}
3148 EOF_SED
3149 baseargs=`cat conftestsed.out`
3150 rm -f conftestsed conftestsed.out
3152 # Add in --program-transform-name, after --program-prefix and
3153 # --program-suffix have been applied to it. Autoconf has already
3154 # doubled dollar signs and backslashes in program_transform_name; we want
3155 # the backslashes un-doubled, and then the entire thing wrapped in single
3156 # quotes, because this will be expanded first by make and then by the shell.
3157 # Also, because we want to override the logic in subdir configure scripts to
3158 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3159 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3160 ${program_transform_name}
3161 EOF_SED
3162 gcc_transform_name=`cat conftestsed.out`
3163 rm -f conftestsed.out
3164 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3166 # For the build-side libraries, we just need to pretend we're native,
3167 # and not use the same cache file. Multilibs are neither needed nor
3168 # desired.
3169 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3171 # For host modules, accept cache file option, or specification as blank.
3172 case "${cache_file}" in
3173 "") # empty
3174 cache_file_option="" ;;
3175 /* | [A-Za-z]:[\\/]* ) # absolute path
3176 cache_file_option="--cache-file=${cache_file}" ;;
3177 *) # relative path
3178 cache_file_option="--cache-file=../${cache_file}" ;;
3179 esac
3181 # Host dirs don't like to share a cache file either, horribly enough.
3182 # This seems to be due to autoconf 2.5x stupidity.
3183 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3185 target_configargs=${baseargs}
3187 # Passing a --with-cross-host argument lets the target libraries know
3188 # whether they are being built with a cross-compiler or being built
3189 # native. However, it would be better to use other mechanisms to make the
3190 # sorts of decisions they want to make on this basis. Please consider
3191 # this option to be deprecated. FIXME.
3192 if test x${is_cross_compiler} = xyes ; then
3193 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3196 # Default to --enable-multilib.
3197 if test x${enable_multilib} = x ; then
3198 target_configargs="--enable-multilib ${target_configargs}"
3201 # Pass --with-newlib if appropriate. Note that target_configdirs has
3202 # changed from the earlier setting of with_newlib.
3203 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3204 target_configargs="--with-newlib ${target_configargs}"
3207 # Different target subdirs use different values of certain variables
3208 # (notably CXX). Worse, multilibs use *lots* of different values.
3209 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3210 # it doesn't automatically accept command-line overrides of them.
3211 # This means it's not safe for target subdirs to share a cache file,
3212 # which is disgusting, but there you have it. Hopefully this can be
3213 # fixed in future. It's still worthwhile to use a cache file for each
3214 # directory. I think.
3216 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3217 # We need to pass --target, as newer autoconf's requires consistency
3218 # for target_alias and gcc doesn't manage it consistently.
3219 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3221 FLAGS_FOR_TARGET=
3222 case " $target_configdirs " in
3223 *" newlib "*)
3224 case " $target_configargs " in
3225 *" --with-newlib "*)
3226 case "$target" in
3227 *-cygwin*)
3228 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' ;;
3229 esac
3231 # If we're not building GCC, don't discard standard headers.
3232 if test -d ${srcdir}/gcc; then
3233 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3235 if test "${build}" != "${host}"; then
3236 # On Canadian crosses, CC_FOR_TARGET will have already been set
3237 # by `configure', so we won't have an opportunity to add -Bgcc/
3238 # to it. This is right: we don't want to search that directory
3239 # for binaries, but we want the header files in there, so add
3240 # them explicitly.
3241 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3243 # Someone might think of using the pre-installed headers on
3244 # Canadian crosses, in case the installed compiler is not fully
3245 # compatible with the compiler being built. In this case, it
3246 # would be better to flag an error than risking having
3247 # incompatible object files being constructed. We can't
3248 # guarantee that an error will be flagged, but let's hope the
3249 # compiler will do it, when presented with incompatible header
3250 # files.
3254 case "${target}-${is_cross_compiler}" in
3255 i[3456789]86-*-linux*-no)
3256 # Here host == target, so we don't need to build gcc,
3257 # so we don't want to discard standard headers.
3258 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3261 # If we're building newlib, use its generic headers last, but search
3262 # for any libc-related directories first (so make it the last -B
3263 # switch).
3264 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3266 esac
3268 esac
3270 esac
3272 # Allow the user to override the flags for
3273 # our build compiler if desired.
3274 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3276 # On Canadian crosses, we'll be searching the right directories for
3277 # the previously-installed cross compiler, so don't bother to add
3278 # flags for directories within the install tree of the compiler
3279 # being built; programs in there won't even run.
3280 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3281 # Search for pre-installed headers if nothing else fits.
3282 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3285 if test "x${use_gnu_ld}" = x &&
3286 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3287 # Arrange for us to find uninstalled linker scripts.
3288 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3291 # Makefile fragments.
3292 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3294 eval fragval=\$$frag
3295 if test $fragval != /dev/null; then
3296 eval $frag=${srcdir}/$fragval
3298 done
3304 # Miscellanea: directories, flags, etc.
3314 # Build module lists & subconfigure args.
3318 # Host module lists & subconfigure args.
3322 # Target module lists & subconfigure args.
3326 # Build tools.
3330 # Generate default definitions for YACC, M4, LEX and other programs that run
3331 # on the build machine. These are used if the Makefile can't locate these
3332 # programs in objdir.
3333 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3335 for ac_prog in 'bison -y' byacc yacc
3337 # Extract the first word of "$ac_prog", so it can be a program name with args.
3338 set dummy $ac_prog; ac_word=$2
3339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3340 echo "configure:3341: checking for $ac_word" >&5
3341 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3343 else
3344 if test -n "$YACC"; then
3345 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3346 else
3347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3348 ac_dummy="$PATH"
3349 for ac_dir in $ac_dummy; do
3350 test -z "$ac_dir" && ac_dir=.
3351 if test -f $ac_dir/$ac_word; then
3352 ac_cv_prog_YACC="$ac_prog"
3353 break
3355 done
3356 IFS="$ac_save_ifs"
3359 YACC="$ac_cv_prog_YACC"
3360 if test -n "$YACC"; then
3361 echo "$ac_t""$YACC" 1>&6
3362 else
3363 echo "$ac_t""no" 1>&6
3366 test -n "$YACC" && break
3367 done
3368 test -n "$YACC" || YACC="$MISSING bison -y"
3370 case " $build_configdirs " in
3371 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3372 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3373 esac
3375 for ac_prog in bison
3377 # Extract the first word of "$ac_prog", so it can be a program name with args.
3378 set dummy $ac_prog; ac_word=$2
3379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3380 echo "configure:3381: checking for $ac_word" >&5
3381 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3383 else
3384 if test -n "$BISON"; then
3385 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3386 else
3387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3388 ac_dummy="$PATH"
3389 for ac_dir in $ac_dummy; do
3390 test -z "$ac_dir" && ac_dir=.
3391 if test -f $ac_dir/$ac_word; then
3392 ac_cv_prog_BISON="$ac_prog"
3393 break
3395 done
3396 IFS="$ac_save_ifs"
3399 BISON="$ac_cv_prog_BISON"
3400 if test -n "$BISON"; then
3401 echo "$ac_t""$BISON" 1>&6
3402 else
3403 echo "$ac_t""no" 1>&6
3406 test -n "$BISON" && break
3407 done
3408 test -n "$BISON" || BISON="$MISSING bison"
3410 case " $build_configdirs " in
3411 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3412 esac
3414 for ac_prog in gm4 gnum4 m4
3416 # Extract the first word of "$ac_prog", so it can be a program name with args.
3417 set dummy $ac_prog; ac_word=$2
3418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3419 echo "configure:3420: checking for $ac_word" >&5
3420 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3421 echo $ac_n "(cached) $ac_c" 1>&6
3422 else
3423 if test -n "$M4"; then
3424 ac_cv_prog_M4="$M4" # Let the user override the test.
3425 else
3426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3427 ac_dummy="$PATH"
3428 for ac_dir in $ac_dummy; do
3429 test -z "$ac_dir" && ac_dir=.
3430 if test -f $ac_dir/$ac_word; then
3431 ac_cv_prog_M4="$ac_prog"
3432 break
3434 done
3435 IFS="$ac_save_ifs"
3438 M4="$ac_cv_prog_M4"
3439 if test -n "$M4"; then
3440 echo "$ac_t""$M4" 1>&6
3441 else
3442 echo "$ac_t""no" 1>&6
3445 test -n "$M4" && break
3446 done
3447 test -n "$M4" || M4="$MISSING m4"
3449 case " $build_configdirs " in
3450 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3451 esac
3453 for ac_prog in flex lex
3455 # Extract the first word of "$ac_prog", so it can be a program name with args.
3456 set dummy $ac_prog; ac_word=$2
3457 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3458 echo "configure:3459: checking for $ac_word" >&5
3459 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3461 else
3462 if test -n "$LEX"; then
3463 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3464 else
3465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3466 ac_dummy="$PATH"
3467 for ac_dir in $ac_dummy; do
3468 test -z "$ac_dir" && ac_dir=.
3469 if test -f $ac_dir/$ac_word; then
3470 ac_cv_prog_LEX="$ac_prog"
3471 break
3473 done
3474 IFS="$ac_save_ifs"
3477 LEX="$ac_cv_prog_LEX"
3478 if test -n "$LEX"; then
3479 echo "$ac_t""$LEX" 1>&6
3480 else
3481 echo "$ac_t""no" 1>&6
3484 test -n "$LEX" && break
3485 done
3486 test -n "$LEX" || LEX="$MISSING flex"
3488 case " $build_configdirs " in
3489 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3490 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3491 esac
3493 for ac_prog in flex
3495 # Extract the first word of "$ac_prog", so it can be a program name with args.
3496 set dummy $ac_prog; ac_word=$2
3497 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3498 echo "configure:3499: checking for $ac_word" >&5
3499 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3500 echo $ac_n "(cached) $ac_c" 1>&6
3501 else
3502 if test -n "$FLEX"; then
3503 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3504 else
3505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3506 ac_dummy="$PATH"
3507 for ac_dir in $ac_dummy; do
3508 test -z "$ac_dir" && ac_dir=.
3509 if test -f $ac_dir/$ac_word; then
3510 ac_cv_prog_FLEX="$ac_prog"
3511 break
3513 done
3514 IFS="$ac_save_ifs"
3517 FLEX="$ac_cv_prog_FLEX"
3518 if test -n "$FLEX"; then
3519 echo "$ac_t""$FLEX" 1>&6
3520 else
3521 echo "$ac_t""no" 1>&6
3524 test -n "$FLEX" && break
3525 done
3526 test -n "$FLEX" || FLEX="$MISSING flex"
3528 case " $build_configdirs " in
3529 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3530 esac
3532 for ac_prog in makeinfo
3534 # Extract the first word of "$ac_prog", so it can be a program name with args.
3535 set dummy $ac_prog; ac_word=$2
3536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3537 echo "configure:3538: checking for $ac_word" >&5
3538 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3540 else
3541 if test -n "$MAKEINFO"; then
3542 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3543 else
3544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3545 ac_dummy="$PATH"
3546 for ac_dir in $ac_dummy; do
3547 test -z "$ac_dir" && ac_dir=.
3548 if test -f $ac_dir/$ac_word; then
3549 ac_cv_prog_MAKEINFO="$ac_prog"
3550 break
3552 done
3553 IFS="$ac_save_ifs"
3556 MAKEINFO="$ac_cv_prog_MAKEINFO"
3557 if test -n "$MAKEINFO"; then
3558 echo "$ac_t""$MAKEINFO" 1>&6
3559 else
3560 echo "$ac_t""no" 1>&6
3563 test -n "$MAKEINFO" && break
3564 done
3565 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3567 case " $build_configdirs " in
3568 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3571 # For an installed makeinfo, we require it to be from texinfo 4.2 or
3572 # higher, else we use the "missing" dummy.
3573 if ${MAKEINFO} --version \
3574 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])' >/dev/null 2>&1; then
3576 else
3577 MAKEINFO="$MISSING makeinfo"
3581 esac
3583 # FIXME: expect and dejagnu may become build tools?
3585 for ac_prog in expect
3587 # Extract the first word of "$ac_prog", so it can be a program name with args.
3588 set dummy $ac_prog; ac_word=$2
3589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3590 echo "configure:3591: checking for $ac_word" >&5
3591 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3592 echo $ac_n "(cached) $ac_c" 1>&6
3593 else
3594 if test -n "$EXPECT"; then
3595 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3596 else
3597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3598 ac_dummy="$PATH"
3599 for ac_dir in $ac_dummy; do
3600 test -z "$ac_dir" && ac_dir=.
3601 if test -f $ac_dir/$ac_word; then
3602 ac_cv_prog_EXPECT="$ac_prog"
3603 break
3605 done
3606 IFS="$ac_save_ifs"
3609 EXPECT="$ac_cv_prog_EXPECT"
3610 if test -n "$EXPECT"; then
3611 echo "$ac_t""$EXPECT" 1>&6
3612 else
3613 echo "$ac_t""no" 1>&6
3616 test -n "$EXPECT" && break
3617 done
3618 test -n "$EXPECT" || EXPECT="expect"
3620 case " $configdirs " in
3621 *" expect "*)
3622 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3624 esac
3626 for ac_prog in runtest
3628 # Extract the first word of "$ac_prog", so it can be a program name with args.
3629 set dummy $ac_prog; ac_word=$2
3630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3631 echo "configure:3632: checking for $ac_word" >&5
3632 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3633 echo $ac_n "(cached) $ac_c" 1>&6
3634 else
3635 if test -n "$RUNTEST"; then
3636 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3637 else
3638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3639 ac_dummy="$PATH"
3640 for ac_dir in $ac_dummy; do
3641 test -z "$ac_dir" && ac_dir=.
3642 if test -f $ac_dir/$ac_word; then
3643 ac_cv_prog_RUNTEST="$ac_prog"
3644 break
3646 done
3647 IFS="$ac_save_ifs"
3650 RUNTEST="$ac_cv_prog_RUNTEST"
3651 if test -n "$RUNTEST"; then
3652 echo "$ac_t""$RUNTEST" 1>&6
3653 else
3654 echo "$ac_t""no" 1>&6
3657 test -n "$RUNTEST" && break
3658 done
3659 test -n "$RUNTEST" || RUNTEST="runtest"
3661 case " $configdirs " in
3662 *" dejagnu "*)
3663 test $host = $build && RUNTEST='$$r/$(HOST_SUBDIR)/dejagnu/runtest'
3665 esac
3668 # Host tools.
3669 ncn_tool_prefix=
3670 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3671 ncn_target_tool_prefix=
3672 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3674 for ncn_progname in ar; do
3675 if test -n "$ncn_tool_prefix"; then
3676 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3677 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3679 echo "configure:3680: checking for $ac_word" >&5
3680 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3681 echo $ac_n "(cached) $ac_c" 1>&6
3682 else
3683 if test -n "$AR"; then
3684 ac_cv_prog_AR="$AR" # Let the user override the test.
3685 else
3686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3687 ac_dummy="$PATH"
3688 for ac_dir in $ac_dummy; do
3689 test -z "$ac_dir" && ac_dir=.
3690 if test -f $ac_dir/$ac_word; then
3691 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3692 break
3694 done
3695 IFS="$ac_save_ifs"
3698 AR="$ac_cv_prog_AR"
3699 if test -n "$AR"; then
3700 echo "$ac_t""$AR" 1>&6
3701 else
3702 echo "$ac_t""no" 1>&6
3706 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3708 set dummy ${ncn_progname}; ac_word=$2
3709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3710 echo "configure:3711: checking for $ac_word" >&5
3711 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3712 echo $ac_n "(cached) $ac_c" 1>&6
3713 else
3714 if test -n "$AR"; then
3715 ac_cv_prog_AR="$AR" # Let the user override the test.
3716 else
3717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3718 ac_dummy="$PATH"
3719 for ac_dir in $ac_dummy; do
3720 test -z "$ac_dir" && ac_dir=.
3721 if test -f $ac_dir/$ac_word; then
3722 ac_cv_prog_AR="${ncn_progname}"
3723 break
3725 done
3726 IFS="$ac_save_ifs"
3729 AR="$ac_cv_prog_AR"
3730 if test -n "$AR"; then
3731 echo "$ac_t""$AR" 1>&6
3732 else
3733 echo "$ac_t""no" 1>&6
3737 test -n "$ac_cv_prog_AR" && break
3738 done
3740 if test -z "$ac_cv_prog_AR" ; then
3741 set dummy ar
3742 if test $build = $host ; then
3743 AR="$2"
3744 else
3745 AR="${ncn_tool_prefix}$2"
3749 for ncn_progname in as; do
3750 if test -n "$ncn_tool_prefix"; then
3751 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3752 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3754 echo "configure:3755: checking for $ac_word" >&5
3755 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3757 else
3758 if test -n "$AS"; then
3759 ac_cv_prog_AS="$AS" # Let the user override the test.
3760 else
3761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3762 ac_dummy="$PATH"
3763 for ac_dir in $ac_dummy; do
3764 test -z "$ac_dir" && ac_dir=.
3765 if test -f $ac_dir/$ac_word; then
3766 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3767 break
3769 done
3770 IFS="$ac_save_ifs"
3773 AS="$ac_cv_prog_AS"
3774 if test -n "$AS"; then
3775 echo "$ac_t""$AS" 1>&6
3776 else
3777 echo "$ac_t""no" 1>&6
3781 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3783 set dummy ${ncn_progname}; ac_word=$2
3784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3785 echo "configure:3786: checking for $ac_word" >&5
3786 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3787 echo $ac_n "(cached) $ac_c" 1>&6
3788 else
3789 if test -n "$AS"; then
3790 ac_cv_prog_AS="$AS" # Let the user override the test.
3791 else
3792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3793 ac_dummy="$PATH"
3794 for ac_dir in $ac_dummy; do
3795 test -z "$ac_dir" && ac_dir=.
3796 if test -f $ac_dir/$ac_word; then
3797 ac_cv_prog_AS="${ncn_progname}"
3798 break
3800 done
3801 IFS="$ac_save_ifs"
3804 AS="$ac_cv_prog_AS"
3805 if test -n "$AS"; then
3806 echo "$ac_t""$AS" 1>&6
3807 else
3808 echo "$ac_t""no" 1>&6
3812 test -n "$ac_cv_prog_AS" && break
3813 done
3815 if test -z "$ac_cv_prog_AS" ; then
3816 set dummy as
3817 if test $build = $host ; then
3818 AS="$2"
3819 else
3820 AS="${ncn_tool_prefix}$2"
3824 for ncn_progname in dlltool; do
3825 if test -n "$ncn_tool_prefix"; then
3826 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3827 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3829 echo "configure:3830: checking for $ac_word" >&5
3830 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3832 else
3833 if test -n "$DLLTOOL"; then
3834 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3835 else
3836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3837 ac_dummy="$PATH"
3838 for ac_dir in $ac_dummy; do
3839 test -z "$ac_dir" && ac_dir=.
3840 if test -f $ac_dir/$ac_word; then
3841 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3842 break
3844 done
3845 IFS="$ac_save_ifs"
3848 DLLTOOL="$ac_cv_prog_DLLTOOL"
3849 if test -n "$DLLTOOL"; then
3850 echo "$ac_t""$DLLTOOL" 1>&6
3851 else
3852 echo "$ac_t""no" 1>&6
3856 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3858 set dummy ${ncn_progname}; ac_word=$2
3859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3860 echo "configure:3861: checking for $ac_word" >&5
3861 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3862 echo $ac_n "(cached) $ac_c" 1>&6
3863 else
3864 if test -n "$DLLTOOL"; then
3865 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3866 else
3867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3868 ac_dummy="$PATH"
3869 for ac_dir in $ac_dummy; do
3870 test -z "$ac_dir" && ac_dir=.
3871 if test -f $ac_dir/$ac_word; then
3872 ac_cv_prog_DLLTOOL="${ncn_progname}"
3873 break
3875 done
3876 IFS="$ac_save_ifs"
3879 DLLTOOL="$ac_cv_prog_DLLTOOL"
3880 if test -n "$DLLTOOL"; then
3881 echo "$ac_t""$DLLTOOL" 1>&6
3882 else
3883 echo "$ac_t""no" 1>&6
3887 test -n "$ac_cv_prog_DLLTOOL" && break
3888 done
3890 if test -z "$ac_cv_prog_DLLTOOL" ; then
3891 set dummy dlltool
3892 if test $build = $host ; then
3893 DLLTOOL="$2"
3894 else
3895 DLLTOOL="${ncn_tool_prefix}$2"
3899 for ncn_progname in ld; do
3900 if test -n "$ncn_tool_prefix"; then
3901 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3902 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3904 echo "configure:3905: checking for $ac_word" >&5
3905 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3907 else
3908 if test -n "$LD"; then
3909 ac_cv_prog_LD="$LD" # Let the user override the test.
3910 else
3911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3912 ac_dummy="$PATH"
3913 for ac_dir in $ac_dummy; do
3914 test -z "$ac_dir" && ac_dir=.
3915 if test -f $ac_dir/$ac_word; then
3916 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3917 break
3919 done
3920 IFS="$ac_save_ifs"
3923 LD="$ac_cv_prog_LD"
3924 if test -n "$LD"; then
3925 echo "$ac_t""$LD" 1>&6
3926 else
3927 echo "$ac_t""no" 1>&6
3931 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
3932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3933 set dummy ${ncn_progname}; ac_word=$2
3934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3935 echo "configure:3936: checking for $ac_word" >&5
3936 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3937 echo $ac_n "(cached) $ac_c" 1>&6
3938 else
3939 if test -n "$LD"; then
3940 ac_cv_prog_LD="$LD" # Let the user override the test.
3941 else
3942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3943 ac_dummy="$PATH"
3944 for ac_dir in $ac_dummy; do
3945 test -z "$ac_dir" && ac_dir=.
3946 if test -f $ac_dir/$ac_word; then
3947 ac_cv_prog_LD="${ncn_progname}"
3948 break
3950 done
3951 IFS="$ac_save_ifs"
3954 LD="$ac_cv_prog_LD"
3955 if test -n "$LD"; then
3956 echo "$ac_t""$LD" 1>&6
3957 else
3958 echo "$ac_t""no" 1>&6
3962 test -n "$ac_cv_prog_LD" && break
3963 done
3965 if test -z "$ac_cv_prog_LD" ; then
3966 set dummy ld
3967 if test $build = $host ; then
3968 LD="$2"
3969 else
3970 LD="${ncn_tool_prefix}$2"
3974 for ncn_progname in lipo; do
3975 if test -n "$ncn_tool_prefix"; then
3976 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3977 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3979 echo "configure:3980: checking for $ac_word" >&5
3980 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
3981 echo $ac_n "(cached) $ac_c" 1>&6
3982 else
3983 if test -n "$LIPO"; then
3984 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
3985 else
3986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3987 ac_dummy="$PATH"
3988 for ac_dir in $ac_dummy; do
3989 test -z "$ac_dir" && ac_dir=.
3990 if test -f $ac_dir/$ac_word; then
3991 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
3992 break
3994 done
3995 IFS="$ac_save_ifs"
3998 LIPO="$ac_cv_prog_LIPO"
3999 if test -n "$LIPO"; then
4000 echo "$ac_t""$LIPO" 1>&6
4001 else
4002 echo "$ac_t""no" 1>&6
4006 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4008 set dummy ${ncn_progname}; ac_word=$2
4009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4010 echo "configure:4011: checking for $ac_word" >&5
4011 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4012 echo $ac_n "(cached) $ac_c" 1>&6
4013 else
4014 if test -n "$LIPO"; then
4015 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4016 else
4017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4018 ac_dummy="$PATH"
4019 for ac_dir in $ac_dummy; do
4020 test -z "$ac_dir" && ac_dir=.
4021 if test -f $ac_dir/$ac_word; then
4022 ac_cv_prog_LIPO="${ncn_progname}"
4023 break
4025 done
4026 IFS="$ac_save_ifs"
4029 LIPO="$ac_cv_prog_LIPO"
4030 if test -n "$LIPO"; then
4031 echo "$ac_t""$LIPO" 1>&6
4032 else
4033 echo "$ac_t""no" 1>&6
4037 test -n "$ac_cv_prog_LIPO" && break
4038 done
4040 if test -z "$ac_cv_prog_LIPO" ; then
4041 set dummy lipo
4042 if test $build = $host ; then
4043 LIPO="$2"
4044 else
4045 LIPO="${ncn_tool_prefix}$2"
4049 for ncn_progname in nm; do
4050 if test -n "$ncn_tool_prefix"; then
4051 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4052 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4054 echo "configure:4055: checking for $ac_word" >&5
4055 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4057 else
4058 if test -n "$NM"; then
4059 ac_cv_prog_NM="$NM" # Let the user override the test.
4060 else
4061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4062 ac_dummy="$PATH"
4063 for ac_dir in $ac_dummy; do
4064 test -z "$ac_dir" && ac_dir=.
4065 if test -f $ac_dir/$ac_word; then
4066 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4067 break
4069 done
4070 IFS="$ac_save_ifs"
4073 NM="$ac_cv_prog_NM"
4074 if test -n "$NM"; then
4075 echo "$ac_t""$NM" 1>&6
4076 else
4077 echo "$ac_t""no" 1>&6
4081 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4083 set dummy ${ncn_progname}; ac_word=$2
4084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4085 echo "configure:4086: checking for $ac_word" >&5
4086 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4088 else
4089 if test -n "$NM"; then
4090 ac_cv_prog_NM="$NM" # Let the user override the test.
4091 else
4092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4093 ac_dummy="$PATH"
4094 for ac_dir in $ac_dummy; do
4095 test -z "$ac_dir" && ac_dir=.
4096 if test -f $ac_dir/$ac_word; then
4097 ac_cv_prog_NM="${ncn_progname}"
4098 break
4100 done
4101 IFS="$ac_save_ifs"
4104 NM="$ac_cv_prog_NM"
4105 if test -n "$NM"; then
4106 echo "$ac_t""$NM" 1>&6
4107 else
4108 echo "$ac_t""no" 1>&6
4112 test -n "$ac_cv_prog_NM" && break
4113 done
4115 if test -z "$ac_cv_prog_NM" ; then
4116 set dummy nm
4117 if test $build = $host ; then
4118 NM="$2"
4119 else
4120 NM="${ncn_tool_prefix}$2"
4124 for ncn_progname in ranlib; do
4125 if test -n "$ncn_tool_prefix"; then
4126 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4127 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4129 echo "configure:4130: checking for $ac_word" >&5
4130 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4132 else
4133 if test -n "$RANLIB"; then
4134 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4135 else
4136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4137 ac_dummy="$PATH"
4138 for ac_dir in $ac_dummy; do
4139 test -z "$ac_dir" && ac_dir=.
4140 if test -f $ac_dir/$ac_word; then
4141 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4142 break
4144 done
4145 IFS="$ac_save_ifs"
4148 RANLIB="$ac_cv_prog_RANLIB"
4149 if test -n "$RANLIB"; then
4150 echo "$ac_t""$RANLIB" 1>&6
4151 else
4152 echo "$ac_t""no" 1>&6
4156 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4158 set dummy ${ncn_progname}; ac_word=$2
4159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4160 echo "configure:4161: checking for $ac_word" >&5
4161 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4163 else
4164 if test -n "$RANLIB"; then
4165 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4166 else
4167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4168 ac_dummy="$PATH"
4169 for ac_dir in $ac_dummy; do
4170 test -z "$ac_dir" && ac_dir=.
4171 if test -f $ac_dir/$ac_word; then
4172 ac_cv_prog_RANLIB="${ncn_progname}"
4173 break
4175 done
4176 IFS="$ac_save_ifs"
4179 RANLIB="$ac_cv_prog_RANLIB"
4180 if test -n "$RANLIB"; then
4181 echo "$ac_t""$RANLIB" 1>&6
4182 else
4183 echo "$ac_t""no" 1>&6
4187 test -n "$ac_cv_prog_RANLIB" && break
4188 done
4190 if test -z "$ac_cv_prog_RANLIB" ; then
4191 RANLIB=":"
4194 for ncn_progname in strip; do
4195 if test -n "$ncn_tool_prefix"; then
4196 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4197 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4199 echo "configure:4200: checking for $ac_word" >&5
4200 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4202 else
4203 if test -n "$STRIP"; then
4204 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4205 else
4206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4207 ac_dummy="$PATH"
4208 for ac_dir in $ac_dummy; do
4209 test -z "$ac_dir" && ac_dir=.
4210 if test -f $ac_dir/$ac_word; then
4211 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4212 break
4214 done
4215 IFS="$ac_save_ifs"
4218 STRIP="$ac_cv_prog_STRIP"
4219 if test -n "$STRIP"; then
4220 echo "$ac_t""$STRIP" 1>&6
4221 else
4222 echo "$ac_t""no" 1>&6
4226 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4227 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4228 set dummy ${ncn_progname}; ac_word=$2
4229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4230 echo "configure:4231: checking for $ac_word" >&5
4231 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4233 else
4234 if test -n "$STRIP"; then
4235 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4236 else
4237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4238 ac_dummy="$PATH"
4239 for ac_dir in $ac_dummy; do
4240 test -z "$ac_dir" && ac_dir=.
4241 if test -f $ac_dir/$ac_word; then
4242 ac_cv_prog_STRIP="${ncn_progname}"
4243 break
4245 done
4246 IFS="$ac_save_ifs"
4249 STRIP="$ac_cv_prog_STRIP"
4250 if test -n "$STRIP"; then
4251 echo "$ac_t""$STRIP" 1>&6
4252 else
4253 echo "$ac_t""no" 1>&6
4257 test -n "$ac_cv_prog_STRIP" && break
4258 done
4260 if test -z "$ac_cv_prog_STRIP" ; then
4261 STRIP=":"
4264 for ncn_progname in windres; do
4265 if test -n "$ncn_tool_prefix"; then
4266 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4267 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4268 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4269 echo "configure:4270: checking for $ac_word" >&5
4270 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4271 echo $ac_n "(cached) $ac_c" 1>&6
4272 else
4273 if test -n "$WINDRES"; then
4274 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4275 else
4276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4277 ac_dummy="$PATH"
4278 for ac_dir in $ac_dummy; do
4279 test -z "$ac_dir" && ac_dir=.
4280 if test -f $ac_dir/$ac_word; then
4281 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4282 break
4284 done
4285 IFS="$ac_save_ifs"
4288 WINDRES="$ac_cv_prog_WINDRES"
4289 if test -n "$WINDRES"; then
4290 echo "$ac_t""$WINDRES" 1>&6
4291 else
4292 echo "$ac_t""no" 1>&6
4296 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4297 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4298 set dummy ${ncn_progname}; ac_word=$2
4299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4300 echo "configure:4301: checking for $ac_word" >&5
4301 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4302 echo $ac_n "(cached) $ac_c" 1>&6
4303 else
4304 if test -n "$WINDRES"; then
4305 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4306 else
4307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4308 ac_dummy="$PATH"
4309 for ac_dir in $ac_dummy; do
4310 test -z "$ac_dir" && ac_dir=.
4311 if test -f $ac_dir/$ac_word; then
4312 ac_cv_prog_WINDRES="${ncn_progname}"
4313 break
4315 done
4316 IFS="$ac_save_ifs"
4319 WINDRES="$ac_cv_prog_WINDRES"
4320 if test -n "$WINDRES"; then
4321 echo "$ac_t""$WINDRES" 1>&6
4322 else
4323 echo "$ac_t""no" 1>&6
4327 test -n "$ac_cv_prog_WINDRES" && break
4328 done
4330 if test -z "$ac_cv_prog_WINDRES" ; then
4331 set dummy windres
4332 if test $build = $host ; then
4333 WINDRES="$2"
4334 else
4335 WINDRES="${ncn_tool_prefix}$2"
4339 for ncn_progname in objcopy; do
4340 if test -n "$ncn_tool_prefix"; then
4341 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4342 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4344 echo "configure:4345: checking for $ac_word" >&5
4345 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4346 echo $ac_n "(cached) $ac_c" 1>&6
4347 else
4348 if test -n "$OBJCOPY"; then
4349 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4350 else
4351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4352 ac_dummy="$PATH"
4353 for ac_dir in $ac_dummy; do
4354 test -z "$ac_dir" && ac_dir=.
4355 if test -f $ac_dir/$ac_word; then
4356 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4357 break
4359 done
4360 IFS="$ac_save_ifs"
4363 OBJCOPY="$ac_cv_prog_OBJCOPY"
4364 if test -n "$OBJCOPY"; then
4365 echo "$ac_t""$OBJCOPY" 1>&6
4366 else
4367 echo "$ac_t""no" 1>&6
4371 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4373 set dummy ${ncn_progname}; ac_word=$2
4374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4375 echo "configure:4376: checking for $ac_word" >&5
4376 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4377 echo $ac_n "(cached) $ac_c" 1>&6
4378 else
4379 if test -n "$OBJCOPY"; then
4380 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4381 else
4382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4383 ac_dummy="$PATH"
4384 for ac_dir in $ac_dummy; do
4385 test -z "$ac_dir" && ac_dir=.
4386 if test -f $ac_dir/$ac_word; then
4387 ac_cv_prog_OBJCOPY="${ncn_progname}"
4388 break
4390 done
4391 IFS="$ac_save_ifs"
4394 OBJCOPY="$ac_cv_prog_OBJCOPY"
4395 if test -n "$OBJCOPY"; then
4396 echo "$ac_t""$OBJCOPY" 1>&6
4397 else
4398 echo "$ac_t""no" 1>&6
4402 test -n "$ac_cv_prog_OBJCOPY" && break
4403 done
4405 if test -z "$ac_cv_prog_OBJCOPY" ; then
4406 set dummy objcopy
4407 if test $build = $host ; then
4408 OBJCOPY="$2"
4409 else
4410 OBJCOPY="${ncn_tool_prefix}$2"
4414 for ncn_progname in objdump; do
4415 if test -n "$ncn_tool_prefix"; then
4416 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4417 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4419 echo "configure:4420: checking for $ac_word" >&5
4420 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4421 echo $ac_n "(cached) $ac_c" 1>&6
4422 else
4423 if test -n "$OBJDUMP"; then
4424 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4425 else
4426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4427 ac_dummy="$PATH"
4428 for ac_dir in $ac_dummy; do
4429 test -z "$ac_dir" && ac_dir=.
4430 if test -f $ac_dir/$ac_word; then
4431 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4432 break
4434 done
4435 IFS="$ac_save_ifs"
4438 OBJDUMP="$ac_cv_prog_OBJDUMP"
4439 if test -n "$OBJDUMP"; then
4440 echo "$ac_t""$OBJDUMP" 1>&6
4441 else
4442 echo "$ac_t""no" 1>&6
4446 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4448 set dummy ${ncn_progname}; ac_word=$2
4449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4450 echo "configure:4451: checking for $ac_word" >&5
4451 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4452 echo $ac_n "(cached) $ac_c" 1>&6
4453 else
4454 if test -n "$OBJDUMP"; then
4455 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4456 else
4457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4458 ac_dummy="$PATH"
4459 for ac_dir in $ac_dummy; do
4460 test -z "$ac_dir" && ac_dir=.
4461 if test -f $ac_dir/$ac_word; then
4462 ac_cv_prog_OBJDUMP="${ncn_progname}"
4463 break
4465 done
4466 IFS="$ac_save_ifs"
4469 OBJDUMP="$ac_cv_prog_OBJDUMP"
4470 if test -n "$OBJDUMP"; then
4471 echo "$ac_t""$OBJDUMP" 1>&6
4472 else
4473 echo "$ac_t""no" 1>&6
4477 test -n "$ac_cv_prog_OBJDUMP" && break
4478 done
4480 if test -z "$ac_cv_prog_OBJDUMP" ; then
4481 set dummy objdump
4482 if test $build = $host ; then
4483 OBJDUMP="$2"
4484 else
4485 OBJDUMP="${ncn_tool_prefix}$2"
4495 # Target tools.
4496 for ncn_progname in ar; do
4497 if test -n "$ncn_target_tool_prefix"; then
4498 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4499 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4500 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4501 echo "configure:4502: checking for $ac_word" >&5
4502 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4503 echo $ac_n "(cached) $ac_c" 1>&6
4504 else
4505 if test -n "$AR_FOR_TARGET"; then
4506 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4507 else
4508 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4509 ac_dummy="$PATH"
4510 for ac_dir in $ac_dummy; do
4511 test -z "$ac_dir" && ac_dir=.
4512 if test -f $ac_dir/$ac_word; then
4513 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4514 break
4516 done
4517 IFS="$ac_save_ifs"
4520 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
4521 if test -n "$AR_FOR_TARGET"; then
4522 echo "$ac_t""$AR_FOR_TARGET" 1>&6
4523 else
4524 echo "$ac_t""no" 1>&6
4528 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
4529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4530 set dummy ${ncn_progname}; ac_word=$2
4531 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4532 echo "configure:4533: checking for $ac_word" >&5
4533 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4535 else
4536 if test -n "$AR_FOR_TARGET"; then
4537 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4538 else
4539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4540 ac_dummy="$PATH"
4541 for ac_dir in $ac_dummy; do
4542 test -z "$ac_dir" && ac_dir=.
4543 if test -f $ac_dir/$ac_word; then
4544 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
4545 break
4547 done
4548 IFS="$ac_save_ifs"
4551 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
4552 if test -n "$AR_FOR_TARGET"; then
4553 echo "$ac_t""$AR_FOR_TARGET" 1>&6
4554 else
4555 echo "$ac_t""no" 1>&6
4559 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
4560 done
4562 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
4563 set dummy ar
4564 if test $build = $target ; then
4565 AR_FOR_TARGET="$2"
4566 else
4567 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
4571 for ncn_progname in as; do
4572 if test -n "$ncn_target_tool_prefix"; then
4573 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4574 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4576 echo "configure:4577: checking for $ac_word" >&5
4577 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
4578 echo $ac_n "(cached) $ac_c" 1>&6
4579 else
4580 if test -n "$AS_FOR_TARGET"; then
4581 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4582 else
4583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4584 ac_dummy="$PATH"
4585 for ac_dir in $ac_dummy; do
4586 test -z "$ac_dir" && ac_dir=.
4587 if test -f $ac_dir/$ac_word; then
4588 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4589 break
4591 done
4592 IFS="$ac_save_ifs"
4595 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4596 if test -n "$AS_FOR_TARGET"; then
4597 echo "$ac_t""$AS_FOR_TARGET" 1>&6
4598 else
4599 echo "$ac_t""no" 1>&6
4603 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
4604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4605 set dummy ${ncn_progname}; ac_word=$2
4606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4607 echo "configure:4608: checking for $ac_word" >&5
4608 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
4609 echo $ac_n "(cached) $ac_c" 1>&6
4610 else
4611 if test -n "$AS_FOR_TARGET"; then
4612 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4613 else
4614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4615 ac_dummy="$PATH"
4616 for ac_dir in $ac_dummy; do
4617 test -z "$ac_dir" && ac_dir=.
4618 if test -f $ac_dir/$ac_word; then
4619 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
4620 break
4622 done
4623 IFS="$ac_save_ifs"
4626 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4627 if test -n "$AS_FOR_TARGET"; then
4628 echo "$ac_t""$AS_FOR_TARGET" 1>&6
4629 else
4630 echo "$ac_t""no" 1>&6
4634 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
4635 done
4637 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
4638 set dummy as
4639 if test $build = $target ; then
4640 AS_FOR_TARGET="$2"
4641 else
4642 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4646 for ncn_progname in cc gcc; do
4647 if test -n "$ncn_target_tool_prefix"; then
4648 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4649 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4651 echo "configure:4652: checking for $ac_word" >&5
4652 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4653 echo $ac_n "(cached) $ac_c" 1>&6
4654 else
4655 if test -n "$CC_FOR_TARGET"; then
4656 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4657 else
4658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4659 ac_dummy="$PATH"
4660 for ac_dir in $ac_dummy; do
4661 test -z "$ac_dir" && ac_dir=.
4662 if test -f $ac_dir/$ac_word; then
4663 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4664 break
4666 done
4667 IFS="$ac_save_ifs"
4670 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4671 if test -n "$CC_FOR_TARGET"; then
4672 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4673 else
4674 echo "$ac_t""no" 1>&6
4678 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4680 set dummy ${ncn_progname}; ac_word=$2
4681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4682 echo "configure:4683: checking for $ac_word" >&5
4683 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4685 else
4686 if test -n "$CC_FOR_TARGET"; then
4687 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4688 else
4689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4690 ac_dummy="$PATH"
4691 for ac_dir in $ac_dummy; do
4692 test -z "$ac_dir" && ac_dir=.
4693 if test -f $ac_dir/$ac_word; then
4694 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4695 break
4697 done
4698 IFS="$ac_save_ifs"
4701 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4702 if test -n "$CC_FOR_TARGET"; then
4703 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4704 else
4705 echo "$ac_t""no" 1>&6
4709 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4710 done
4712 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4713 set dummy cc gcc
4714 if test $build = $target ; then
4715 CC_FOR_TARGET="$2"
4716 else
4717 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4721 for ncn_progname in c++ g++ cxx gxx; do
4722 if test -n "$ncn_target_tool_prefix"; then
4723 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4724 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4726 echo "configure:4727: checking for $ac_word" >&5
4727 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4728 echo $ac_n "(cached) $ac_c" 1>&6
4729 else
4730 if test -n "$CXX_FOR_TARGET"; then
4731 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4732 else
4733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4734 ac_dummy="$PATH"
4735 for ac_dir in $ac_dummy; do
4736 test -z "$ac_dir" && ac_dir=.
4737 if test -f $ac_dir/$ac_word; then
4738 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4739 break
4741 done
4742 IFS="$ac_save_ifs"
4745 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4746 if test -n "$CXX_FOR_TARGET"; then
4747 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4748 else
4749 echo "$ac_t""no" 1>&6
4753 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4755 set dummy ${ncn_progname}; ac_word=$2
4756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4757 echo "configure:4758: checking for $ac_word" >&5
4758 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4759 echo $ac_n "(cached) $ac_c" 1>&6
4760 else
4761 if test -n "$CXX_FOR_TARGET"; then
4762 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4763 else
4764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4765 ac_dummy="$PATH"
4766 for ac_dir in $ac_dummy; do
4767 test -z "$ac_dir" && ac_dir=.
4768 if test -f $ac_dir/$ac_word; then
4769 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4770 break
4772 done
4773 IFS="$ac_save_ifs"
4776 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4777 if test -n "$CXX_FOR_TARGET"; then
4778 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4779 else
4780 echo "$ac_t""no" 1>&6
4784 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4785 done
4787 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4788 set dummy c++ g++ cxx gxx
4789 if test $build = $target ; then
4790 CXX_FOR_TARGET="$2"
4791 else
4792 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4796 for ncn_progname in dlltool; do
4797 if test -n "$ncn_target_tool_prefix"; then
4798 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4799 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4801 echo "configure:4802: checking for $ac_word" >&5
4802 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4803 echo $ac_n "(cached) $ac_c" 1>&6
4804 else
4805 if test -n "$DLLTOOL_FOR_TARGET"; then
4806 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4807 else
4808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4809 ac_dummy="$PATH"
4810 for ac_dir in $ac_dummy; do
4811 test -z "$ac_dir" && ac_dir=.
4812 if test -f $ac_dir/$ac_word; then
4813 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4814 break
4816 done
4817 IFS="$ac_save_ifs"
4820 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4821 if test -n "$DLLTOOL_FOR_TARGET"; then
4822 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4823 else
4824 echo "$ac_t""no" 1>&6
4828 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
4829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4830 set dummy ${ncn_progname}; ac_word=$2
4831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4832 echo "configure:4833: checking for $ac_word" >&5
4833 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4834 echo $ac_n "(cached) $ac_c" 1>&6
4835 else
4836 if test -n "$DLLTOOL_FOR_TARGET"; then
4837 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4838 else
4839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4840 ac_dummy="$PATH"
4841 for ac_dir in $ac_dummy; do
4842 test -z "$ac_dir" && ac_dir=.
4843 if test -f $ac_dir/$ac_word; then
4844 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
4845 break
4847 done
4848 IFS="$ac_save_ifs"
4851 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4852 if test -n "$DLLTOOL_FOR_TARGET"; then
4853 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4854 else
4855 echo "$ac_t""no" 1>&6
4859 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
4860 done
4862 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
4863 set dummy dlltool
4864 if test $build = $target ; then
4865 DLLTOOL_FOR_TARGET="$2"
4866 else
4867 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
4871 for ncn_progname in gcc; do
4872 if test -n "$ncn_target_tool_prefix"; then
4873 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4874 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4875 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4876 echo "configure:4877: checking for $ac_word" >&5
4877 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4878 echo $ac_n "(cached) $ac_c" 1>&6
4879 else
4880 if test -n "$GCC_FOR_TARGET"; then
4881 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4882 else
4883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4884 ac_dummy="$PATH"
4885 for ac_dir in $ac_dummy; do
4886 test -z "$ac_dir" && ac_dir=.
4887 if test -f $ac_dir/$ac_word; then
4888 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4889 break
4891 done
4892 IFS="$ac_save_ifs"
4895 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4896 if test -n "$GCC_FOR_TARGET"; then
4897 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4898 else
4899 echo "$ac_t""no" 1>&6
4903 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4905 set dummy ${ncn_progname}; ac_word=$2
4906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4907 echo "configure:4908: checking for $ac_word" >&5
4908 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4910 else
4911 if test -n "$GCC_FOR_TARGET"; then
4912 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4913 else
4914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4915 ac_dummy="$PATH"
4916 for ac_dir in $ac_dummy; do
4917 test -z "$ac_dir" && ac_dir=.
4918 if test -f $ac_dir/$ac_word; then
4919 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4920 break
4922 done
4923 IFS="$ac_save_ifs"
4926 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4927 if test -n "$GCC_FOR_TARGET"; then
4928 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4929 else
4930 echo "$ac_t""no" 1>&6
4934 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4935 done
4937 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4938 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4941 for ncn_progname in gcj; do
4942 if test -n "$ncn_target_tool_prefix"; then
4943 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4944 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4946 echo "configure:4947: checking for $ac_word" >&5
4947 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4948 echo $ac_n "(cached) $ac_c" 1>&6
4949 else
4950 if test -n "$GCJ_FOR_TARGET"; then
4951 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4952 else
4953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4954 ac_dummy="$PATH"
4955 for ac_dir in $ac_dummy; do
4956 test -z "$ac_dir" && ac_dir=.
4957 if test -f $ac_dir/$ac_word; then
4958 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4959 break
4961 done
4962 IFS="$ac_save_ifs"
4965 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4966 if test -n "$GCJ_FOR_TARGET"; then
4967 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4968 else
4969 echo "$ac_t""no" 1>&6
4973 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4975 set dummy ${ncn_progname}; ac_word=$2
4976 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4977 echo "configure:4978: checking for $ac_word" >&5
4978 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4979 echo $ac_n "(cached) $ac_c" 1>&6
4980 else
4981 if test -n "$GCJ_FOR_TARGET"; then
4982 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4983 else
4984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4985 ac_dummy="$PATH"
4986 for ac_dir in $ac_dummy; do
4987 test -z "$ac_dir" && ac_dir=.
4988 if test -f $ac_dir/$ac_word; then
4989 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4990 break
4992 done
4993 IFS="$ac_save_ifs"
4996 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4997 if test -n "$GCJ_FOR_TARGET"; then
4998 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4999 else
5000 echo "$ac_t""no" 1>&6
5004 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
5005 done
5007 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
5008 set dummy gcj
5009 if test $build = $target ; then
5010 GCJ_FOR_TARGET="$2"
5011 else
5012 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
5016 for ncn_progname in gfortran; do
5017 if test -n "$ncn_target_tool_prefix"; then
5018 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5019 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5021 echo "configure:5022: checking for $ac_word" >&5
5022 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5023 echo $ac_n "(cached) $ac_c" 1>&6
5024 else
5025 if test -n "$GFORTRAN_FOR_TARGET"; then
5026 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5027 else
5028 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5029 ac_dummy="$PATH"
5030 for ac_dir in $ac_dummy; do
5031 test -z "$ac_dir" && ac_dir=.
5032 if test -f $ac_dir/$ac_word; then
5033 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5034 break
5036 done
5037 IFS="$ac_save_ifs"
5040 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5041 if test -n "$GFORTRAN_FOR_TARGET"; then
5042 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5043 else
5044 echo "$ac_t""no" 1>&6
5048 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
5049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5050 set dummy ${ncn_progname}; ac_word=$2
5051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5052 echo "configure:5053: checking for $ac_word" >&5
5053 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5054 echo $ac_n "(cached) $ac_c" 1>&6
5055 else
5056 if test -n "$GFORTRAN_FOR_TARGET"; then
5057 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5058 else
5059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5060 ac_dummy="$PATH"
5061 for ac_dir in $ac_dummy; do
5062 test -z "$ac_dir" && ac_dir=.
5063 if test -f $ac_dir/$ac_word; then
5064 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5065 break
5067 done
5068 IFS="$ac_save_ifs"
5071 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5072 if test -n "$GFORTRAN_FOR_TARGET"; then
5073 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5074 else
5075 echo "$ac_t""no" 1>&6
5079 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5080 done
5082 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5083 set dummy gfortran
5084 if test $build = $target ; then
5085 GFORTRAN_FOR_TARGET="$2"
5086 else
5087 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5091 for ncn_progname in ld; do
5092 if test -n "$ncn_target_tool_prefix"; then
5093 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5094 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5096 echo "configure:5097: checking for $ac_word" >&5
5097 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5099 else
5100 if test -n "$LD_FOR_TARGET"; then
5101 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5102 else
5103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5104 ac_dummy="$PATH"
5105 for ac_dir in $ac_dummy; do
5106 test -z "$ac_dir" && ac_dir=.
5107 if test -f $ac_dir/$ac_word; then
5108 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5109 break
5111 done
5112 IFS="$ac_save_ifs"
5115 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5116 if test -n "$LD_FOR_TARGET"; then
5117 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5118 else
5119 echo "$ac_t""no" 1>&6
5123 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5125 set dummy ${ncn_progname}; ac_word=$2
5126 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5127 echo "configure:5128: checking for $ac_word" >&5
5128 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5129 echo $ac_n "(cached) $ac_c" 1>&6
5130 else
5131 if test -n "$LD_FOR_TARGET"; then
5132 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5133 else
5134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5135 ac_dummy="$PATH"
5136 for ac_dir in $ac_dummy; do
5137 test -z "$ac_dir" && ac_dir=.
5138 if test -f $ac_dir/$ac_word; then
5139 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5140 break
5142 done
5143 IFS="$ac_save_ifs"
5146 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5147 if test -n "$LD_FOR_TARGET"; then
5148 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5149 else
5150 echo "$ac_t""no" 1>&6
5154 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5155 done
5157 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5158 set dummy ld
5159 if test $build = $target ; then
5160 LD_FOR_TARGET="$2"
5161 else
5162 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
5166 for ncn_progname in lipo; do
5167 if test -n "$ncn_target_tool_prefix"; then
5168 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5169 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5171 echo "configure:5172: checking for $ac_word" >&5
5172 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5173 echo $ac_n "(cached) $ac_c" 1>&6
5174 else
5175 if test -n "$LIPO_FOR_TARGET"; then
5176 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5177 else
5178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5179 ac_dummy="$PATH"
5180 for ac_dir in $ac_dummy; do
5181 test -z "$ac_dir" && ac_dir=.
5182 if test -f $ac_dir/$ac_word; then
5183 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5184 break
5186 done
5187 IFS="$ac_save_ifs"
5190 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5191 if test -n "$LIPO_FOR_TARGET"; then
5192 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5193 else
5194 echo "$ac_t""no" 1>&6
5198 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5200 set dummy ${ncn_progname}; ac_word=$2
5201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5202 echo "configure:5203: checking for $ac_word" >&5
5203 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5204 echo $ac_n "(cached) $ac_c" 1>&6
5205 else
5206 if test -n "$LIPO_FOR_TARGET"; then
5207 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5208 else
5209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5210 ac_dummy="$PATH"
5211 for ac_dir in $ac_dummy; do
5212 test -z "$ac_dir" && ac_dir=.
5213 if test -f $ac_dir/$ac_word; then
5214 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5215 break
5217 done
5218 IFS="$ac_save_ifs"
5221 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5222 if test -n "$LIPO_FOR_TARGET"; then
5223 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5224 else
5225 echo "$ac_t""no" 1>&6
5229 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5230 done
5232 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5233 set dummy lipo
5234 if test $build = $target ; then
5235 LIPO_FOR_TARGET="$2"
5236 else
5237 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
5241 for ncn_progname in nm; do
5242 if test -n "$ncn_target_tool_prefix"; then
5243 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5244 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5246 echo "configure:5247: checking for $ac_word" >&5
5247 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5248 echo $ac_n "(cached) $ac_c" 1>&6
5249 else
5250 if test -n "$NM_FOR_TARGET"; then
5251 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5252 else
5253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5254 ac_dummy="$PATH"
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_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5259 break
5261 done
5262 IFS="$ac_save_ifs"
5265 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5266 if test -n "$NM_FOR_TARGET"; then
5267 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5268 else
5269 echo "$ac_t""no" 1>&6
5273 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
5274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5275 set dummy ${ncn_progname}; ac_word=$2
5276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5277 echo "configure:5278: checking for $ac_word" >&5
5278 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5279 echo $ac_n "(cached) $ac_c" 1>&6
5280 else
5281 if test -n "$NM_FOR_TARGET"; then
5282 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5283 else
5284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5285 ac_dummy="$PATH"
5286 for ac_dir in $ac_dummy; do
5287 test -z "$ac_dir" && ac_dir=.
5288 if test -f $ac_dir/$ac_word; then
5289 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5290 break
5292 done
5293 IFS="$ac_save_ifs"
5296 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5297 if test -n "$NM_FOR_TARGET"; then
5298 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5299 else
5300 echo "$ac_t""no" 1>&6
5304 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
5305 done
5307 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
5308 set dummy nm
5309 if test $build = $target ; then
5310 NM_FOR_TARGET="$2"
5311 else
5312 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
5316 for ncn_progname in objdump; do
5317 if test -n "$ncn_target_tool_prefix"; then
5318 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5319 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5321 echo "configure:5322: checking for $ac_word" >&5
5322 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5323 echo $ac_n "(cached) $ac_c" 1>&6
5324 else
5325 if test -n "$OBJDUMP_FOR_TARGET"; then
5326 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5327 else
5328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5329 ac_dummy="$PATH"
5330 for ac_dir in $ac_dummy; do
5331 test -z "$ac_dir" && ac_dir=.
5332 if test -f $ac_dir/$ac_word; then
5333 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5334 break
5336 done
5337 IFS="$ac_save_ifs"
5340 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5341 if test -n "$OBJDUMP_FOR_TARGET"; then
5342 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5343 else
5344 echo "$ac_t""no" 1>&6
5348 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
5349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5350 set dummy ${ncn_progname}; ac_word=$2
5351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5352 echo "configure:5353: checking for $ac_word" >&5
5353 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5354 echo $ac_n "(cached) $ac_c" 1>&6
5355 else
5356 if test -n "$OBJDUMP_FOR_TARGET"; then
5357 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5358 else
5359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5360 ac_dummy="$PATH"
5361 for ac_dir in $ac_dummy; do
5362 test -z "$ac_dir" && ac_dir=.
5363 if test -f $ac_dir/$ac_word; then
5364 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5365 break
5367 done
5368 IFS="$ac_save_ifs"
5371 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5372 if test -n "$OBJDUMP_FOR_TARGET"; then
5373 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5374 else
5375 echo "$ac_t""no" 1>&6
5379 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
5380 done
5382 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
5383 set dummy objdump
5384 if test $build = $target ; then
5385 OBJDUMP_FOR_TARGET="$2"
5386 else
5387 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5391 for ncn_progname in ranlib; do
5392 if test -n "$ncn_target_tool_prefix"; then
5393 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5394 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5396 echo "configure:5397: checking for $ac_word" >&5
5397 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5398 echo $ac_n "(cached) $ac_c" 1>&6
5399 else
5400 if test -n "$RANLIB_FOR_TARGET"; then
5401 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
5402 else
5403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5404 ac_dummy="$PATH"
5405 for ac_dir in $ac_dummy; do
5406 test -z "$ac_dir" && ac_dir=.
5407 if test -f $ac_dir/$ac_word; then
5408 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5409 break
5411 done
5412 IFS="$ac_save_ifs"
5415 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
5416 if test -n "$RANLIB_FOR_TARGET"; then
5417 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
5418 else
5419 echo "$ac_t""no" 1>&6
5423 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
5424 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5425 set dummy ${ncn_progname}; ac_word=$2
5426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5427 echo "configure:5428: checking for $ac_word" >&5
5428 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5429 echo $ac_n "(cached) $ac_c" 1>&6
5430 else
5431 if test -n "$RANLIB_FOR_TARGET"; then
5432 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
5433 else
5434 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5435 ac_dummy="$PATH"
5436 for ac_dir in $ac_dummy; do
5437 test -z "$ac_dir" && ac_dir=.
5438 if test -f $ac_dir/$ac_word; then
5439 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5440 break
5442 done
5443 IFS="$ac_save_ifs"
5446 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
5447 if test -n "$RANLIB_FOR_TARGET"; then
5448 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
5449 else
5450 echo "$ac_t""no" 1>&6
5454 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
5455 done
5457 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
5458 RANLIB_FOR_TARGET=":"
5461 for ncn_progname in strip; do
5462 if test -n "$ncn_target_tool_prefix"; then
5463 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5464 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5465 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5466 echo "configure:5467: checking for $ac_word" >&5
5467 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5468 echo $ac_n "(cached) $ac_c" 1>&6
5469 else
5470 if test -n "$STRIP_FOR_TARGET"; then
5471 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5472 else
5473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5474 ac_dummy="$PATH"
5475 for ac_dir in $ac_dummy; do
5476 test -z "$ac_dir" && ac_dir=.
5477 if test -f $ac_dir/$ac_word; then
5478 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5479 break
5481 done
5482 IFS="$ac_save_ifs"
5485 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
5486 if test -n "$STRIP_FOR_TARGET"; then
5487 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
5488 else
5489 echo "$ac_t""no" 1>&6
5493 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
5494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5495 set dummy ${ncn_progname}; ac_word=$2
5496 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5497 echo "configure:5498: checking for $ac_word" >&5
5498 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5499 echo $ac_n "(cached) $ac_c" 1>&6
5500 else
5501 if test -n "$STRIP_FOR_TARGET"; then
5502 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5503 else
5504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5505 ac_dummy="$PATH"
5506 for ac_dir in $ac_dummy; do
5507 test -z "$ac_dir" && ac_dir=.
5508 if test -f $ac_dir/$ac_word; then
5509 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5510 break
5512 done
5513 IFS="$ac_save_ifs"
5516 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
5517 if test -n "$STRIP_FOR_TARGET"; then
5518 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
5519 else
5520 echo "$ac_t""no" 1>&6
5524 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
5525 done
5527 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
5528 set dummy strip
5529 if test $build = $target ; then
5530 STRIP_FOR_TARGET="$2"
5531 else
5532 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5536 for ncn_progname in windres; do
5537 if test -n "$ncn_target_tool_prefix"; then
5538 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5539 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5540 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5541 echo "configure:5542: checking for $ac_word" >&5
5542 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5543 echo $ac_n "(cached) $ac_c" 1>&6
5544 else
5545 if test -n "$WINDRES_FOR_TARGET"; then
5546 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
5547 else
5548 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5549 ac_dummy="$PATH"
5550 for ac_dir in $ac_dummy; do
5551 test -z "$ac_dir" && ac_dir=.
5552 if test -f $ac_dir/$ac_word; then
5553 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5554 break
5556 done
5557 IFS="$ac_save_ifs"
5560 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
5561 if test -n "$WINDRES_FOR_TARGET"; then
5562 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
5563 else
5564 echo "$ac_t""no" 1>&6
5568 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
5569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5570 set dummy ${ncn_progname}; ac_word=$2
5571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5572 echo "configure:5573: checking for $ac_word" >&5
5573 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5574 echo $ac_n "(cached) $ac_c" 1>&6
5575 else
5576 if test -n "$WINDRES_FOR_TARGET"; then
5577 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
5578 else
5579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5580 ac_dummy="$PATH"
5581 for ac_dir in $ac_dummy; do
5582 test -z "$ac_dir" && ac_dir=.
5583 if test -f $ac_dir/$ac_word; then
5584 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5585 break
5587 done
5588 IFS="$ac_save_ifs"
5591 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
5592 if test -n "$WINDRES_FOR_TARGET"; then
5593 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
5594 else
5595 echo "$ac_t""no" 1>&6
5599 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
5600 done
5602 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
5603 set dummy windres
5604 if test $build = $target ; then
5605 WINDRES_FOR_TARGET="$2"
5606 else
5607 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
5612 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
5614 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
5615 echo "configure:5616: checking where to find the target ar" >&5
5616 if test "x${build}" != "x${host}" ; then
5617 # Canadian cross, just use what we found
5618 echo "$ac_t""pre-installed" 1>&6
5619 else
5620 ok=yes
5621 case " ${configdirs} " in
5622 *" binutils "*) ;;
5623 *) ok=no ;;
5624 esac
5626 if test $ok = yes; then
5627 # An in-tree tool is available and we can use it
5628 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5629 echo "$ac_t""just compiled" 1>&6
5630 elif test "x$target" = "x$host"; then
5631 # We can use an host tool
5632 AR_FOR_TARGET='$(AR)'
5633 echo "$ac_t""host tool" 1>&6
5634 else
5635 # We need a cross tool
5636 echo "$ac_t""pre-installed" 1>&6
5639 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
5640 echo "configure:5641: checking where to find the target as" >&5
5641 if test "x${build}" != "x${host}" ; then
5642 # Canadian cross, just use what we found
5643 echo "$ac_t""pre-installed" 1>&6
5644 else
5645 ok=yes
5646 case " ${configdirs} " in
5647 *" gas "*) ;;
5648 *) ok=no ;;
5649 esac
5651 if test $ok = yes; then
5652 # An in-tree tool is available and we can use it
5653 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5654 echo "$ac_t""just compiled" 1>&6
5655 elif test "x$target" = "x$host"; then
5656 # We can use an host tool
5657 AS_FOR_TARGET='$(AS)'
5658 echo "$ac_t""host tool" 1>&6
5659 else
5660 # We need a cross tool
5661 echo "$ac_t""pre-installed" 1>&6
5664 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
5665 echo "configure:5666: checking where to find the target cc" >&5
5666 if test "x${build}" != "x${host}" ; then
5667 # Canadian cross, just use what we found
5668 echo "$ac_t""pre-installed" 1>&6
5669 else
5670 ok=yes
5671 case " ${configdirs} " in
5672 *" gcc "*) ;;
5673 *) ok=no ;;
5674 esac
5676 if test $ok = yes; then
5677 # An in-tree tool is available and we can use it
5678 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5679 echo "$ac_t""just compiled" 1>&6
5680 elif test "x$target" = "x$host"; then
5681 # We can use an host tool
5682 CC_FOR_TARGET='$(CC)'
5683 echo "$ac_t""host tool" 1>&6
5684 else
5685 # We need a cross tool
5686 echo "$ac_t""pre-installed" 1>&6
5689 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
5690 echo "configure:5691: checking where to find the target c++" >&5
5691 if test "x${build}" != "x${host}" ; then
5692 # Canadian cross, just use what we found
5693 echo "$ac_t""pre-installed" 1>&6
5694 else
5695 ok=yes
5696 case " ${configdirs} " in
5697 *" gcc "*) ;;
5698 *) ok=no ;;
5699 esac
5700 case ,${enable_languages}, in
5701 *,c++,*) ;;
5702 *) ok=no ;;
5703 esac
5704 if test $ok = yes; then
5705 # An in-tree tool is available and we can use it
5706 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'
5707 echo "$ac_t""just compiled" 1>&6
5708 elif test "x$target" = "x$host"; then
5709 # We can use an host tool
5710 CXX_FOR_TARGET='$(CXX)'
5711 echo "$ac_t""host tool" 1>&6
5712 else
5713 # We need a cross tool
5714 echo "$ac_t""pre-installed" 1>&6
5717 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
5718 echo "configure:5719: checking where to find the target c++ for libstdc++" >&5
5719 if test "x${build}" != "x${host}" ; then
5720 # Canadian cross, just use what we found
5721 echo "$ac_t""pre-installed" 1>&6
5722 else
5723 ok=yes
5724 case " ${configdirs} " in
5725 *" gcc "*) ;;
5726 *) ok=no ;;
5727 esac
5728 case ,${enable_languages}, in
5729 *,c++,*) ;;
5730 *) ok=no ;;
5731 esac
5732 if test $ok = yes; then
5733 # An in-tree tool is available and we can use it
5734 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'
5735 echo "$ac_t""just compiled" 1>&6
5736 elif test "x$target" = "x$host"; then
5737 # We can use an host tool
5738 RAW_CXX_FOR_TARGET='$(CXX)'
5739 echo "$ac_t""host tool" 1>&6
5740 else
5741 # We need a cross tool
5742 echo "$ac_t""pre-installed" 1>&6
5745 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
5746 echo "configure:5747: checking where to find the target dlltool" >&5
5747 if test "x${build}" != "x${host}" ; then
5748 # Canadian cross, just use what we found
5749 echo "$ac_t""pre-installed" 1>&6
5750 else
5751 ok=yes
5752 case " ${configdirs} " in
5753 *" binutils "*) ;;
5754 *) ok=no ;;
5755 esac
5757 if test $ok = yes; then
5758 # An in-tree tool is available and we can use it
5759 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5760 echo "$ac_t""just compiled" 1>&6
5761 elif test "x$target" = "x$host"; then
5762 # We can use an host tool
5763 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5764 echo "$ac_t""host tool" 1>&6
5765 else
5766 # We need a cross tool
5767 echo "$ac_t""pre-installed" 1>&6
5770 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
5771 echo "configure:5772: checking where to find the target gcc" >&5
5772 if test "x${build}" != "x${host}" ; then
5773 # Canadian cross, just use what we found
5774 echo "$ac_t""pre-installed" 1>&6
5775 else
5776 ok=yes
5777 case " ${configdirs} " in
5778 *" gcc "*) ;;
5779 *) ok=no ;;
5780 esac
5782 if test $ok = yes; then
5783 # An in-tree tool is available and we can use it
5784 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5785 echo "$ac_t""just compiled" 1>&6
5786 elif test "x$target" = "x$host"; then
5787 # We can use an host tool
5788 GCC_FOR_TARGET='$()'
5789 echo "$ac_t""host tool" 1>&6
5790 else
5791 # We need a cross tool
5792 echo "$ac_t""pre-installed" 1>&6
5795 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
5796 echo "configure:5797: checking where to find the target gcj" >&5
5797 if test "x${build}" != "x${host}" ; then
5798 # Canadian cross, just use what we found
5799 echo "$ac_t""pre-installed" 1>&6
5800 else
5801 ok=yes
5802 case " ${configdirs} " in
5803 *" gcc "*) ;;
5804 *) ok=no ;;
5805 esac
5806 case ,${enable_languages}, in
5807 *,java,*) ;;
5808 *) ok=no ;;
5809 esac
5810 if test $ok = yes; then
5811 # An in-tree tool is available and we can use it
5812 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5813 echo "$ac_t""just compiled" 1>&6
5814 elif test "x$target" = "x$host"; then
5815 # We can use an host tool
5816 GCJ_FOR_TARGET='$(GCJ)'
5817 echo "$ac_t""host tool" 1>&6
5818 else
5819 # We need a cross tool
5820 echo "$ac_t""pre-installed" 1>&6
5823 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
5824 echo "configure:5825: checking where to find the target gfortran" >&5
5825 if test "x${build}" != "x${host}" ; then
5826 # Canadian cross, just use what we found
5827 echo "$ac_t""pre-installed" 1>&6
5828 else
5829 ok=yes
5830 case " ${configdirs} " in
5831 *" gcc "*) ;;
5832 *) ok=no ;;
5833 esac
5834 case ,${enable_languages}, in
5835 *,fortran,*) ;;
5836 *) ok=no ;;
5837 esac
5838 if test $ok = yes; then
5839 # An in-tree tool is available and we can use it
5840 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5841 echo "$ac_t""just compiled" 1>&6
5842 elif test "x$target" = "x$host"; then
5843 # We can use an host tool
5844 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5845 echo "$ac_t""host tool" 1>&6
5846 else
5847 # We need a cross tool
5848 echo "$ac_t""pre-installed" 1>&6
5851 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
5852 echo "configure:5853: checking where to find the target ld" >&5
5853 if test "x${build}" != "x${host}" ; then
5854 # Canadian cross, just use what we found
5855 echo "$ac_t""pre-installed" 1>&6
5856 else
5857 ok=yes
5858 case " ${configdirs} " in
5859 *" ld "*) ;;
5860 *) ok=no ;;
5861 esac
5863 if test $ok = yes; then
5864 # An in-tree tool is available and we can use it
5865 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5866 echo "$ac_t""just compiled" 1>&6
5867 elif test "x$target" = "x$host"; then
5868 # We can use an host tool
5869 LD_FOR_TARGET='$(LD)'
5870 echo "$ac_t""host tool" 1>&6
5871 else
5872 # We need a cross tool
5873 echo "$ac_t""pre-installed" 1>&6
5876 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
5877 echo "configure:5878: checking where to find the target lipo" >&5
5878 if test "x${build}" != "x${host}" ; then
5879 # Canadian cross, just use what we found
5880 echo "$ac_t""pre-installed" 1>&6
5881 else
5882 if test "x$target" = "x$host"; then
5883 # We can use an host tool
5884 LIPO_FOR_TARGET='$(LIPO)'
5885 echo "$ac_t""host tool" 1>&6
5886 else
5887 # We need a cross tool
5888 echo "$ac_t""pre-installed" 1>&6
5891 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
5892 echo "configure:5893: checking where to find the target nm" >&5
5893 if test "x${build}" != "x${host}" ; then
5894 # Canadian cross, just use what we found
5895 echo "$ac_t""pre-installed" 1>&6
5896 else
5897 ok=yes
5898 case " ${configdirs} " in
5899 *" binutils "*) ;;
5900 *) ok=no ;;
5901 esac
5903 if test $ok = yes; then
5904 # An in-tree tool is available and we can use it
5905 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5906 echo "$ac_t""just compiled" 1>&6
5907 elif test "x$target" = "x$host"; then
5908 # We can use an host tool
5909 NM_FOR_TARGET='$(NM)'
5910 echo "$ac_t""host tool" 1>&6
5911 else
5912 # We need a cross tool
5913 echo "$ac_t""pre-installed" 1>&6
5916 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
5917 echo "configure:5918: checking where to find the target objdump" >&5
5918 if test "x${build}" != "x${host}" ; then
5919 # Canadian cross, just use what we found
5920 echo "$ac_t""pre-installed" 1>&6
5921 else
5922 ok=yes
5923 case " ${configdirs} " in
5924 *" binutils "*) ;;
5925 *) ok=no ;;
5926 esac
5928 if test $ok = yes; then
5929 # An in-tree tool is available and we can use it
5930 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5931 echo "$ac_t""just compiled" 1>&6
5932 elif test "x$target" = "x$host"; then
5933 # We can use an host tool
5934 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5935 echo "$ac_t""host tool" 1>&6
5936 else
5937 # We need a cross tool
5938 echo "$ac_t""pre-installed" 1>&6
5941 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
5942 echo "configure:5943: checking where to find the target ranlib" >&5
5943 if test "x${build}" != "x${host}" ; then
5944 # Canadian cross, just use what we found
5945 echo "$ac_t""pre-installed" 1>&6
5946 else
5947 ok=yes
5948 case " ${configdirs} " in
5949 *" binutils "*) ;;
5950 *) ok=no ;;
5951 esac
5953 if test $ok = yes; then
5954 # An in-tree tool is available and we can use it
5955 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5956 echo "$ac_t""just compiled" 1>&6
5957 elif test "x$target" = "x$host"; then
5958 # We can use an host tool
5959 RANLIB_FOR_TARGET='$(RANLIB)'
5960 echo "$ac_t""host tool" 1>&6
5961 else
5962 # We need a cross tool
5963 echo "$ac_t""pre-installed" 1>&6
5966 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
5967 echo "configure:5968: checking where to find the target strip" >&5
5968 if test "x${build}" != "x${host}" ; then
5969 # Canadian cross, just use what we found
5970 echo "$ac_t""pre-installed" 1>&6
5971 else
5972 ok=yes
5973 case " ${configdirs} " in
5974 *" binutils "*) ;;
5975 *) ok=no ;;
5976 esac
5978 if test $ok = yes; then
5979 # An in-tree tool is available and we can use it
5980 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
5981 echo "$ac_t""just compiled" 1>&6
5982 elif test "x$target" = "x$host"; then
5983 # We can use an host tool
5984 STRIP_FOR_TARGET='$(STRIP)'
5985 echo "$ac_t""host tool" 1>&6
5986 else
5987 # We need a cross tool
5988 echo "$ac_t""pre-installed" 1>&6
5991 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
5992 echo "configure:5993: checking where to find the target windres" >&5
5993 if test "x${build}" != "x${host}" ; then
5994 # Canadian cross, just use what we found
5995 echo "$ac_t""pre-installed" 1>&6
5996 else
5997 ok=yes
5998 case " ${configdirs} " in
5999 *" binutils "*) ;;
6000 *) ok=no ;;
6001 esac
6003 if test $ok = yes; then
6004 # An in-tree tool is available and we can use it
6005 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
6006 echo "$ac_t""just compiled" 1>&6
6007 elif test "x$target" = "x$host"; then
6008 # We can use an host tool
6009 WINDRES_FOR_TARGET='$(WINDRES)'
6010 echo "$ac_t""host tool" 1>&6
6011 else
6012 # We need a cross tool
6013 echo "$ac_t""pre-installed" 1>&6
6020 # Certain tools may need extra flags.
6021 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
6022 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
6023 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
6025 # When building target libraries, except in a Canadian cross, we use
6026 # the same toolchain as the compiler we just built.
6027 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
6028 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
6029 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
6030 if test $host = $build; then
6031 case " $configdirs " in
6032 *" gcc "*)
6033 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
6034 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
6035 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
6037 esac
6044 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
6045 echo "configure:6046: checking whether to enable maintainer-specific portions of Makefiles" >&5
6046 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6047 if test "${enable_maintainer_mode+set}" = set; then
6048 enableval="$enable_maintainer_mode"
6049 USE_MAINTAINER_MODE=$enableval
6050 else
6051 USE_MAINTAINER_MODE=no
6054 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
6057 if test "$USE_MAINTAINER_MODE" = yes; then
6058 MAINTAINER_MODE_TRUE=
6059 MAINTAINER_MODE_FALSE='#'
6060 else
6061 MAINTAINER_MODE_TRUE='#'
6062 MAINTAINER_MODE_FALSE=
6064 MAINT=$MAINTAINER_MODE_TRUE
6066 # ---------------------
6067 # GCC bootstrap support
6068 # ---------------------
6070 # Stage specific cflags for build.
6071 stage1_cflags="-g"
6072 case $build in
6073 vax-*-*)
6074 case ${GCC} in
6075 yes) stage1_cflags="-g -Wa,-J" ;;
6076 *) stage1_cflags="-g -J" ;;
6077 esac ;;
6078 powerpc-*-darwin*)
6079 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6080 # sources; use -no-cpp-precomp to get to GNU cpp.
6081 # Apple's GCC has bugs in designated initializer handling, so disable
6082 # that too.
6083 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6085 esac
6088 # Enable -Werror in bootstrap stage2 and later.
6089 # Change the default to "no" on release branches.
6090 # Check whether --enable-werror or --disable-werror was given.
6091 if test "${enable_werror+set}" = set; then
6092 enableval="$enable_werror"
6094 else
6095 enable_werror=yes
6098 case ${enable_werror} in
6099 yes) stage2_werror_flag="--enable-werror-always" ;;
6100 *) stage2_werror_flag="" ;;
6101 esac
6104 trap '' 1 2 15
6105 cat > confcache <<\EOF
6106 # This file is a shell script that caches the results of configure
6107 # tests run on this system so they can be shared between configure
6108 # scripts and configure runs. It is not useful on other systems.
6109 # If it contains results you don't want to keep, you may remove or edit it.
6111 # By default, configure uses ./config.cache as the cache file,
6112 # creating it if it does not exist already. You can give configure
6113 # the --cache-file=FILE option to use a different cache file; that is
6114 # what configure does when it calls configure scripts in
6115 # subdirectories, so they share the cache.
6116 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6117 # config.status only pays attention to the cache file if you give it the
6118 # --recheck option to rerun configure.
6121 # The following way of writing the cache mishandles newlines in values,
6122 # but we know of no workaround that is simple, portable, and efficient.
6123 # So, don't put newlines in cache variables' values.
6124 # Ultrix sh set writes to stderr and can't be redirected directly,
6125 # and sets the high bit in the cache file unless we assign to the vars.
6126 (set) 2>&1 |
6127 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6128 *ac_space=\ *)
6129 # `set' does not quote correctly, so add quotes (double-quote substitution
6130 # turns \\\\ into \\, and sed turns \\ into \).
6131 sed -n \
6132 -e "s/'/'\\\\''/g" \
6133 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6136 # `set' quotes correctly as required by POSIX, so do not add quotes.
6137 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6139 esac >> confcache
6140 if cmp -s $cache_file confcache; then
6142 else
6143 if test -w $cache_file; then
6144 echo "updating cache $cache_file"
6145 cat confcache > $cache_file
6146 else
6147 echo "not updating unwritable cache $cache_file"
6150 rm -f confcache
6152 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6154 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6155 # Let make expand exec_prefix.
6156 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6158 # Any assignment to VPATH causes Sun make to only execute
6159 # the first set of double-colon rules, so remove it if not needed.
6160 # If there is a colon in the path, we need to keep it.
6161 if test "x$srcdir" = x.; then
6162 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6165 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6167 # Transform confdefs.h into DEFS.
6168 # Protect against shell expansion while executing Makefile rules.
6169 # Protect against Makefile macro expansion.
6171 # If the first sed substitution is executed (which looks for macros that
6172 # take arguments), then we branch to the quote section. Otherwise,
6173 # look for a macro that doesn't take arguments.
6174 cat >confdef2opt.sed <<\_ACEOF
6175 t clear
6176 : clear
6177 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
6178 t quote
6179 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
6180 t quote
6182 : quote
6183 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
6184 s,\[,\\&,g
6185 s,\],\\&,g
6186 s,\$,$$,g
6188 _ACEOF
6189 # We use echo to avoid assuming a particular line-breaking character.
6190 # The extra dot is to prevent the shell from consuming trailing
6191 # line-breaks from the sub-command output. A line-break within
6192 # single-quotes doesn't work because, if this script is created in a
6193 # platform that uses two characters for line-breaks (e.g., DOS), tr
6194 # would break.
6195 ac_LF_and_DOT=`echo; echo .`
6196 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6197 rm -f confdef2opt.sed
6200 # Without the "./", some shells look in PATH for config.status.
6201 : ${CONFIG_STATUS=./config.status}
6203 echo creating $CONFIG_STATUS
6204 rm -f $CONFIG_STATUS
6205 cat > $CONFIG_STATUS <<EOF
6206 #! /bin/sh
6207 # Generated automatically by configure.
6208 # Run this file to recreate the current configuration.
6209 # This directory was configured as follows,
6210 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6212 # $0 $ac_configure_args
6214 # Compiler output produced by configure, useful for debugging
6215 # configure, is in ./config.log if it exists.
6217 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6218 for ac_option
6220 case "\$ac_option" in
6221 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6222 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6223 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6224 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6225 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6226 exit 0 ;;
6227 -help | --help | --hel | --he | --h)
6228 echo "\$ac_cs_usage"; exit 0 ;;
6229 *) echo "\$ac_cs_usage"; exit 1 ;;
6230 esac
6231 done
6233 ac_given_srcdir=$srcdir
6234 ac_given_INSTALL="$INSTALL"
6236 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6238 cat >> $CONFIG_STATUS <<EOF
6240 # Protect against being on the right side of a sed subst in config.status.
6241 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6242 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6243 $ac_vpsub
6244 $extrasub
6245 s%@SHELL@%$SHELL%g
6246 s%@CFLAGS@%$CFLAGS%g
6247 s%@CPPFLAGS@%$CPPFLAGS%g
6248 s%@CXXFLAGS@%$CXXFLAGS%g
6249 s%@FFLAGS@%$FFLAGS%g
6250 s%@DEFS@%$DEFS%g
6251 s%@LDFLAGS@%$LDFLAGS%g
6252 s%@LIBS@%$LIBS%g
6253 s%@exec_prefix@%$exec_prefix%g
6254 s%@prefix@%$prefix%g
6255 s%@program_transform_name@%$program_transform_name%g
6256 s%@bindir@%$bindir%g
6257 s%@sbindir@%$sbindir%g
6258 s%@libexecdir@%$libexecdir%g
6259 s%@datadir@%$datadir%g
6260 s%@sysconfdir@%$sysconfdir%g
6261 s%@sharedstatedir@%$sharedstatedir%g
6262 s%@localstatedir@%$localstatedir%g
6263 s%@libdir@%$libdir%g
6264 s%@includedir@%$includedir%g
6265 s%@oldincludedir@%$oldincludedir%g
6266 s%@infodir@%$infodir%g
6267 s%@mandir@%$mandir%g
6268 s%@host@%$host%g
6269 s%@host_alias@%$host_alias%g
6270 s%@host_cpu@%$host_cpu%g
6271 s%@host_vendor@%$host_vendor%g
6272 s%@host_os@%$host_os%g
6273 s%@target@%$target%g
6274 s%@target_alias@%$target_alias%g
6275 s%@target_cpu@%$target_cpu%g
6276 s%@target_vendor@%$target_vendor%g
6277 s%@target_os@%$target_os%g
6278 s%@build@%$build%g
6279 s%@build_alias@%$build_alias%g
6280 s%@build_cpu@%$build_cpu%g
6281 s%@build_vendor@%$build_vendor%g
6282 s%@build_os@%$build_os%g
6283 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6284 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6285 s%@INSTALL_DATA@%$INSTALL_DATA%g
6286 s%@LN@%$LN%g
6287 s%@LN_S@%$LN_S%g
6288 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
6289 s%@build_subdir@%$build_subdir%g
6290 s%@host_subdir@%$host_subdir%g
6291 s%@target_subdir@%$target_subdir%g
6292 s%@CC@%$CC%g
6293 s%@GNATBIND@%$GNATBIND%g
6294 s%@do_compare@%$do_compare%g
6295 s%@gmplibs@%$gmplibs%g
6296 s%@gmpinc@%$gmpinc%g
6297 s%@stage1_languages@%$stage1_languages%g
6298 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
6299 /@serialization_dependencies@/r $serialization_dependencies
6300 s%@serialization_dependencies@%%g
6301 /@host_makefile_frag@/r $host_makefile_frag
6302 s%@host_makefile_frag@%%g
6303 /@target_makefile_frag@/r $target_makefile_frag
6304 s%@target_makefile_frag@%%g
6305 /@alphaieee_frag@/r $alphaieee_frag
6306 s%@alphaieee_frag@%%g
6307 /@ospace_frag@/r $ospace_frag
6308 s%@ospace_frag@%%g
6309 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
6310 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
6311 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
6312 s%@tooldir@%$tooldir%g
6313 s%@build_tooldir@%$build_tooldir%g
6314 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
6315 s%@GDB_TK@%$GDB_TK%g
6316 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
6317 s%@build_configargs@%$build_configargs%g
6318 s%@build_configdirs@%$build_configdirs%g
6319 s%@host_configargs@%$host_configargs%g
6320 s%@configdirs@%$configdirs%g
6321 s%@target_configargs@%$target_configargs%g
6322 s%@target_configdirs@%$target_configdirs%g
6323 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
6324 s%@config_shell@%$config_shell%g
6325 s%@YACC@%$YACC%g
6326 s%@BISON@%$BISON%g
6327 s%@M4@%$M4%g
6328 s%@LEX@%$LEX%g
6329 s%@FLEX@%$FLEX%g
6330 s%@MAKEINFO@%$MAKEINFO%g
6331 s%@EXPECT@%$EXPECT%g
6332 s%@RUNTEST@%$RUNTEST%g
6333 s%@AR@%$AR%g
6334 s%@AS@%$AS%g
6335 s%@DLLTOOL@%$DLLTOOL%g
6336 s%@LD@%$LD%g
6337 s%@LIPO@%$LIPO%g
6338 s%@NM@%$NM%g
6339 s%@RANLIB@%$RANLIB%g
6340 s%@STRIP@%$STRIP%g
6341 s%@WINDRES@%$WINDRES%g
6342 s%@OBJCOPY@%$OBJCOPY%g
6343 s%@OBJDUMP@%$OBJDUMP%g
6344 s%@CXX@%$CXX%g
6345 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
6346 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
6347 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
6348 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
6349 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
6350 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
6351 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
6352 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
6353 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
6354 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
6355 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
6356 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
6357 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
6358 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
6359 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
6360 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
6361 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
6362 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
6363 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
6364 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
6365 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
6366 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6367 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6368 s%@MAINT@%$MAINT%g
6369 s%@stage1_cflags@%$stage1_cflags%g
6370 s%@stage2_werror_flag@%$stage2_werror_flag%g
6372 CEOF
6375 cat >> $CONFIG_STATUS <<\EOF
6377 # Split the substitutions into bite-sized pieces for seds with
6378 # small command number limits, like on Digital OSF/1 and HP-UX.
6379 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6380 ac_file=1 # Number of current file.
6381 ac_beg=1 # First line for current file.
6382 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6383 ac_more_lines=:
6384 ac_sed_cmds=""
6385 while $ac_more_lines; do
6386 if test $ac_beg -gt 1; then
6387 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6388 else
6389 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6391 if test ! -s conftest.s$ac_file; then
6392 ac_more_lines=false
6393 rm -f conftest.s$ac_file
6394 else
6395 if test -z "$ac_sed_cmds"; then
6396 ac_sed_cmds="sed -f conftest.s$ac_file"
6397 else
6398 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6400 ac_file=`expr $ac_file + 1`
6401 ac_beg=$ac_end
6402 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6404 done
6405 if test -z "$ac_sed_cmds"; then
6406 ac_sed_cmds=cat
6410 cat >> $CONFIG_STATUS <<EOF
6412 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
6414 cat >> $CONFIG_STATUS <<\EOF
6415 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6416 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6417 case "$ac_file" in
6418 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6419 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6420 *) ac_file_in="${ac_file}.in" ;;
6421 esac
6423 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6425 # Remove last slash and all that follows it. Not all systems have dirname.
6426 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6427 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6428 # The file is in a subdirectory.
6429 test ! -d "$ac_dir" && mkdir "$ac_dir"
6430 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6431 # A "../" for each directory in $ac_dir_suffix.
6432 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6433 else
6434 ac_dir_suffix= ac_dots=
6437 case "$ac_given_srcdir" in
6438 .) srcdir=.
6439 if test -z "$ac_dots"; then top_srcdir=.
6440 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6441 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6442 *) # Relative path.
6443 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6444 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6445 esac
6447 case "$ac_given_INSTALL" in
6448 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6449 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6450 esac
6452 echo creating "$ac_file"
6453 rm -f "$ac_file"
6454 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6455 case "$ac_file" in
6456 *Makefile*) ac_comsub="1i\\
6457 # $configure_input" ;;
6458 *) ac_comsub= ;;
6459 esac
6461 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6462 sed -e "$ac_comsub
6463 s%@configure_input@%$configure_input%g
6464 s%@srcdir@%$srcdir%g
6465 s%@top_srcdir@%$top_srcdir%g
6466 s%@INSTALL@%$INSTALL%g
6467 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6468 fi; done
6469 rm -f conftest.s*
6472 cat >> $CONFIG_STATUS <<EOF
6475 cat >> $CONFIG_STATUS <<\EOF
6477 exit 0
6479 chmod +x $CONFIG_STATUS
6480 rm -fr confdefs* $ac_clean_files
6481 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1