*** empty log message ***
[deliverable/binutils-gdb.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
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[=lean] Enable bootstrapping [no]"
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"
41
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'
75
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
82
83 ac_prev=
84 for ac_option
85 do
86
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
92 fi
93
94 case "$ac_option" in
95 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 *) ac_optarg= ;;
97 esac
98
99 # Accept the important Cygnus configure options, so we can diagnose typos.
100
101 case "$ac_option" in
102
103 -bindir | --bindir | --bindi | --bind | --bin | --bi)
104 ac_prev=bindir ;;
105 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
106 bindir="$ac_optarg" ;;
107
108 -build | --build | --buil | --bui | --bu)
109 ac_prev=build ;;
110 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
111 build="$ac_optarg" ;;
112
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" ;;
119
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" ;;
125
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; }
131 fi
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}=no" ;;
134
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; }
140 fi
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'" ;;
147
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" ;;
156
157 -gas | --gas | --ga | --g)
158 # Obsolete; use --with-gas.
159 with_gas=yes ;;
160
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
197 EOF
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
210 EOF
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
213 fi
214 exit 0 ;;
215
216 -host | --host | --hos | --ho)
217 ac_prev=host ;;
218 -host=* | --host=* | --hos=* | --ho=*)
219 host="$ac_optarg" ;;
220
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" ;;
227
228 -infodir | --infodir | --infodi | --infod | --info | --inf)
229 ac_prev=infodir ;;
230 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
231 infodir="$ac_optarg" ;;
232
233 -libdir | --libdir | --libdi | --libd)
234 ac_prev=libdir ;;
235 -libdir=* | --libdir=* | --libdi=* | --libd=*)
236 libdir="$ac_optarg" ;;
237
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" ;;
244
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" ;;
253
254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
255 ac_prev=mandir ;;
256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
257 mandir="$ac_optarg" ;;
258
259 -nfp | --nfp | --nf)
260 # Obsolete; use --without-fp.
261 with_fp=no ;;
262
263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
264 | --no-cr | --no-c)
265 no_create=yes ;;
266
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 ;;
270
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" ;;
279
280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
281 ac_prev=prefix ;;
282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
283 prefix="$ac_optarg" ;;
284
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" ;;
291
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" ;;
298
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" ;;
315
316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
317 | -silent | --silent | --silen | --sile | --sil)
318 silent=yes ;;
319
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" ;;
325
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" ;;
336
337 -site | --site | --sit)
338 ac_prev=site ;;
339 -site=* | --site=* | --sit=*)
340 site="$ac_optarg" ;;
341
342 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
343 ac_prev=srcdir ;;
344 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
345 srcdir="$ac_optarg" ;;
346
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" ;;
353
354 -target | --target | --targe | --targ | --tar | --ta | --t)
355 ac_prev=target ;;
356 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
357 target="$ac_optarg" ;;
358
359 -v | -verbose | --verbose | --verbos | --verbo | --verb)
360 verbose=yes ;;
361
362 -version | --version | --versio | --versi | --vers)
363 echo "configure generated by autoconf version 2.13"
364 exit 0 ;;
365
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; }
371 fi
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'" ;;
378
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; }
384 fi
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}=no" ;;
387
388 --x)
389 # Obsolete; use --with-x.
390 with_x=yes ;;
391
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" ;;
398
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" ;;
405
406 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 ;;
408
409 *)
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
412 fi
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; }
415 fi
416 nonopt="$ac_option"
417 ;;
418
419 esac
420 done
421
422 if test -n "$ac_prev"; then
423 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 fi
425
426 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
427
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
440 fi
441 exec 5>./config.log
442
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
447
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
452 do
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
463
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
473
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
478
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
482
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=..
493 fi
494 else
495 ac_srcdir_defaulted=no
496 fi
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; }
502 fi
503 fi
504 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
505
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"
512 fi
513 fi
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"
518 fi
519 done
520
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
527 fi
528
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
535
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=
545 fi
546 else
547 ac_n= ac_c='\c' ac_t=
548 fi
549
550
551
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
562 fi
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; }
566 fi
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.
570
571
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
575 #
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.
584
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
591
592
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; }
596 fi
597
598 echo $ac_n "checking host system type""... $ac_c" 1>&6
599 echo "configure:600: checking host system type" >&5
600
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
612
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
618
619 echo $ac_n "checking target system type""... $ac_c" 1>&6
620 echo "configure:621: checking target system type" >&5
621
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
630
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
636
637 echo $ac_n "checking build system type""... $ac_c" 1>&6
638 echo "configure:639: checking build system type" >&5
639
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
648
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
654
655 test "$host_alias" != "$target_alias" &&
656 test "$program_prefix$program_suffix$program_transform_name" = \
657 NONENONEs,x,x, &&
658 program_prefix=${target_alias}-
659
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
669 fi
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"
675
676 # sed with no file args requires a program.
677 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
678
679
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/*) ;;
703 *)
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.
712 :
713 else
714 ac_cv_path_install="$ac_dir/$ac_prog -c"
715 break 2
716 fi
717 fi
718 done
719 ;;
720 esac
721 done
722 IFS="$ac_save_IFS"
723
724 fi
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"
733 fi
734 fi
735 echo "$ac_t""$INSTALL" 1>&6
736
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}'
740
741 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
742
743 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
744
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
757 fi
758 rm -f conftestdata_f conftestdata_t
759
760 fi
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
767 fi
768
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
781 fi
782 fi
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
788 fi
789
790
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
812 fi
813 done
814 IFS="$save_ifs"
815 test -n "${CONFIG_SHELL}" && break
816 done
817 fi
818 fi
819 fi
820 ;;
821 esac
822
823 config_shell=${CONFIG_SHELL-/bin/sh}
824
825 progname=$0
826 # if PWD already has a value, it is probably wrong.
827 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
828
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
837
838
839 moveifchange=${srcdir}/move-if-change
840
841 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
842
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"
847 fi
848
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=.
854 fi
855
856 topsrcdir=$srcpwd
857
858 extra_host_args=
859
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.
863
864 # Subdirs will be configured in the order listed in build_configdirs,
865 # configdirs, or target_configdirs; see the serialization section below.
866
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.
870
871 # Double entries in build_configdirs, configdirs, or target_configdirs may
872 # cause circular dependencies and break everything horribly.
873
874 # these library is used by various programs built for the build
875 # environment
876 #
877 build_libs="build-libiberty"
878
879 # these tools are built for the build environment
880 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
881
882 # these libraries are used by various programs built for the host environment
883 #
884 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
885
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"
892
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"
899
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)
902 #
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
914 # these tools are built using the target libraries, and are intended to
915 # run only in the target environment
916 #
917 # note: any program that *uses* libraries that are in the "target_libraries"
918 # list belongs in this list. those programs are also very likely
919 # candidates for the "native_only" list which follows
920 #
921 target_tools="target-examples target-groff target-gperf target-rda"
922
923 ################################################################################
924
925 ## All tools belong in one of the four categories, and are assigned above
926 ## We assign ${configdirs} this way to remove all embedded newlines. This
927 ## is important because configure will choke if they ever get through.
928 ## ${configdirs} is directories we build using the host tools.
929 ## ${target_configdirs} is directories we build using the target tools.
930 configdirs=`echo ${host_libs} ${host_tools}`
931 target_configdirs=`echo ${target_libraries} ${target_tools}`
932 build_configdirs=`echo ${build_libs} ${build_tools}`
933
934 ################################################################################
935
936 srcname="gnu development package"
937
938 # This gets set non-empty for some net releases of packages.
939 appdirs=""
940
941 # Define is_cross_compiler to save on calls to 'test'.
942 is_cross_compiler=
943 if test x"${host}" = x"${target}" ; then
944 is_cross_compiler=no
945 else
946 is_cross_compiler=yes
947 fi
948
949 # Find the build and target subdir names.
950 case ${build_alias} in
951 "") build_noncanonical=${build} ;;
952 *) build_noncanonical=${build_alias} ;;
953 esac
954
955 case ${host_alias} in
956 "") host_noncanonical=${build_noncanonical} ;;
957 *) host_noncanonical=${host_alias} ;;
958 esac
959
960 case ${target_alias} in
961 "") target_noncanonical=${host_noncanonical} ;;
962 *) target_noncanonical=${target_alias} ;;
963 esac
964
965 # Prefix 'build-' so this never conflicts with target_subdir.
966 build_subdir="build-${build_noncanonical}"
967 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
968 if ( test $srcdir = . && test -d gcc ) \
969 || test -d $srcdir/../host-${host_noncanonical}; then
970 host_subdir="host-${host_noncanonical}"
971 else
972 host_subdir=.
973 fi
974 # No prefix.
975 target_subdir=${target_noncanonical}
976
977
978 # Skipdirs are removed silently.
979 skipdirs=
980 # Noconfigdirs are removed loudly.
981 noconfigdirs=""
982
983 use_gnu_ld=
984 # Make sure we don't let GNU ld be added if we didn't want it.
985 if test x$with_gnu_ld = xno ; then
986 use_gnu_ld=no
987 noconfigdirs="$noconfigdirs ld"
988 fi
989
990 use_gnu_as=
991 # Make sure we don't let GNU as be added if we didn't want it.
992 if test x$with_gnu_as = xno ; then
993 use_gnu_as=no
994 noconfigdirs="$noconfigdirs gas"
995 fi
996
997 # some tools are so dependent upon X11 that if we're not building with X,
998 # it's not even worth trying to configure, much less build, that tool.
999
1000 case ${with_x} in
1001 yes | "") ;; # the default value for this tree is that X11 is available
1002 no)
1003 skipdirs="${skipdirs} tk itcl libgui"
1004 # We won't be able to build gdbtk without X.
1005 enable_gdbtk=no
1006 ;;
1007 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1008 esac
1009
1010 # Some tools are only suitable for building in a "native" situation.
1011 # Remove these if host!=target.
1012 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"
1013
1014 # Similarly, some are only suitable for cross toolchains.
1015 # Remove these if host=target.
1016 cross_only="target-libgloss target-newlib target-opcodes"
1017
1018 case $is_cross_compiler in
1019 no) skipdirs="${skipdirs} ${cross_only}" ;;
1020 yes) skipdirs="${skipdirs} ${native_only}" ;;
1021 esac
1022
1023 # If both --with-headers and --with-libs are specified, default to
1024 # --without-newlib.
1025 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1026 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1027 if test x"${with_newlib}" = x ; then
1028 with_newlib=no
1029 fi
1030 fi
1031
1032 # Recognize --with-newlib/--without-newlib.
1033 case ${with_newlib} in
1034 no) skipdirs="${skipdirs} target-newlib" ;;
1035 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1036 esac
1037
1038 # Configure extra directories which are host specific
1039
1040 case "${host}" in
1041 *-cygwin*)
1042 configdirs="$configdirs libtermcap" ;;
1043 esac
1044
1045 # A target can indicate whether a language isn't supported for some reason.
1046 # Only spaces may be used in this macro; not newlines or tabs.
1047 unsupported_languages=
1048
1049 # Remove more programs from consideration, based on the host or
1050 # target this usually means that a port of the program doesn't
1051 # exist yet.
1052
1053 case "${host}" in
1054 hppa*64*-*-*)
1055 noconfigdirs="$noconfigdirs byacc"
1056 ;;
1057 i[3456789]86-*-vsta)
1058 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1059 ;;
1060 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1061 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1062 ;;
1063 i[3456789]86-*-mingw32*)
1064 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1065 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1066 ;;
1067 i[3456789]86-*-beos*)
1068 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1069 ;;
1070 *-*-cygwin*)
1071 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1072 ;;
1073 *-*-netbsd*)
1074 noconfigdirs="$noconfigdirs rcs"
1075 ;;
1076 ppc*-*-pe)
1077 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1078 ;;
1079 powerpc-*-beos*)
1080 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1081 ;;
1082 esac
1083
1084
1085 # Check whether --enable-libada or --disable-libada was given.
1086 if test "${enable_libada+set}" = set; then
1087 enableval="$enable_libada"
1088 ENABLE_LIBADA=$enableval
1089 else
1090 ENABLE_LIBADA=yes
1091 fi
1092
1093 if test "${ENABLE_LIBADA}" != "yes" ; then
1094 noconfigdirs="$noconfigdirs target-libada"
1095 noconfigdirs="$noconfigdirs gnattools"
1096 fi
1097
1098 # Check whether --enable-libssp or --disable-libssp was given.
1099 if test "${enable_libssp+set}" = set; then
1100 enableval="$enable_libssp"
1101 ENABLE_LIBSSP=$enableval
1102 else
1103 ENABLE_LIBSSP=yes
1104 fi
1105
1106 if test "${ENABLE_LIBSSP}" != "yes" ; then
1107 noconfigdirs="$noconfigdirs target-libssp"
1108 fi
1109
1110 # Save it here so that, even in case of --enable-libgcj, if the Java
1111 # front-end isn't enabled, we still get libgcj disabled.
1112 libgcj_saved=$libgcj
1113 case $enable_libgcj in
1114 yes)
1115 # If we reset it here, it won't get added to noconfigdirs in the
1116 # target-specific build rules, so it will be forcibly enabled
1117 # (unless the Java language itself isn't enabled).
1118 libgcj=
1119 ;;
1120 no)
1121 # Make sure we get it printed in the list of not supported target libs.
1122 noconfigdirs="$noconfigdirs ${libgcj}"
1123 ;;
1124 esac
1125
1126
1127 # Allow --disable-libmudflap to exclude target-libmudflap
1128 case $enable_libmudflap in
1129 yes)
1130 ;;
1131 no)
1132 noconfigdirs="$noconfigdirs target-libmudflap"
1133 ;;
1134 "")
1135 case "${target}" in
1136 *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
1137 # Enable libmudflap by default in GNU and friends.
1138 ;;
1139 *-*-freebsd*)
1140 # Enable libmudflap by default in FreeBSD.
1141 ;;
1142 *)
1143 # Disable it by default everywhere else.
1144 noconfigdirs="$noconfigdirs target-libmudflap"
1145 ;;
1146 esac
1147 esac
1148
1149
1150 case "${target}" in
1151 *-*-chorusos)
1152 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1153 ;;
1154 powerpc-*-darwin*)
1155 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1156 noconfigdirs="$noconfigdirs sim target-rda"
1157 ;;
1158 *-*-darwin*)
1159 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1160 noconfigdirs="$noconfigdirs sim target-rda"
1161 noconfigdirs="$noconfigdirs ${libgcj}"
1162 ;;
1163 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1164 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1165 ;;
1166 *-*-freebsd*)
1167 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1168 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1169 && test -f /usr/local/include/gmp.h; then
1170 with_gmp=/usr/local
1171 fi
1172
1173 # Skip some stuff that's unsupported on some FreeBSD configurations.
1174 case "${target}" in
1175 i*86-*-*) ;;
1176 alpha*-*-*) ;;
1177 *)
1178 noconfigdirs="$noconfigdirs ${libgcj}"
1179 ;;
1180 esac
1181 ;;
1182 *-*-kaos*)
1183 # Remove unsupported stuff on all kaOS configurations.
1184 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1185 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1186 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1187 noconfigdirs="$noconfigdirs target-libgloss"
1188 ;;
1189 *-*-netbsd*)
1190 # Skip some stuff on all NetBSD configurations.
1191 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1192
1193 # Skip some stuff that's unsupported on some NetBSD configurations.
1194 case "${target}" in
1195 i*86-*-netbsdelf*) ;;
1196 arm*-*-netbsdelf*) ;;
1197 *)
1198 noconfigdirs="$noconfigdirs ${libgcj}"
1199 ;;
1200 esac
1201 ;;
1202 *-*-netware*)
1203 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1204 ;;
1205 *-*-rtems*)
1206 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1207 ;;
1208 # The tpf target doesn't support gdb yet.
1209 *-*-tpf*)
1210 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1211 ;;
1212 *-*-uclinux*)
1213 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1214 ;;
1215 *-*-vxworks*)
1216 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1217 ;;
1218 m32c-*-*)
1219 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1220 ;;
1221 alpha*-dec-osf*)
1222 # ld works, but does not support shared libraries.
1223 # newlib is not 64 bit ready. I'm not sure about fileutils.
1224 # gas doesn't generate exception information.
1225 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1226 ;;
1227 alpha*-*-*vms*)
1228 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1229 ;;
1230 alpha*-*-linux*)
1231 # newlib is not 64 bit ready
1232 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1233 ;;
1234 alpha*-*-*)
1235 # newlib is not 64 bit ready
1236 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1237 ;;
1238 am33_2.0-*-linux*)
1239 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1240 ;;
1241 sh-*-linux*)
1242 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1243 ;;
1244 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1245 noconfigdirs="$noconfigdirs ${libgcj}"
1246 noconfigdirs="$noconfigdirs target-examples"
1247 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1248 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1249 noconfigdirs="$noconfigdirs expect dejagnu"
1250 # the C++ libraries don't build on top of CE's C libraries
1251 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1252 noconfigdirs="$noconfigdirs target-newlib"
1253 case "${host}" in
1254 *-*-cygwin*) ;; # keep gdb and readline
1255 *) noconfigdirs="$noconfigdirs gdb readline"
1256 ;;
1257 esac
1258 ;;
1259 arc-*-*)
1260 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1261 ;;
1262 arm-semi-aof )
1263 ;;
1264 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1265 noconfigdirs="$noconfigdirs ${libgcj}"
1266 ;;
1267 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1268 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1269 ;;
1270 arm*-*-linux-gnueabi)
1271 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1272 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1273 ;;
1274 arm*-*-symbianelf*)
1275 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1276 ;;
1277 arm-*-pe*)
1278 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1279 ;;
1280 thumb-*-coff)
1281 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1282 ;;
1283 thumb-*-elf)
1284 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1285 ;;
1286 thumb-*-pe)
1287 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1288 ;;
1289 arm-*-riscix*)
1290 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1291 ;;
1292 avr-*-*)
1293 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1294 ;;
1295 bfin-*-*)
1296 noconfigdirs="$noconfigdirs target-libgloss gdb"
1297 if test x${is_cross_compiler} != xno ; then
1298 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1299 fi
1300 ;;
1301 c4x-*-* | tic4x-*-*)
1302 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1303 ;;
1304 c54x*-*-* | tic54x-*-*)
1305 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1306 ;;
1307 cris-*-* | crisv32-*-*)
1308 unsupported_languages="$unsupported_languages java"
1309 case "${target}" in
1310 *-*-aout)
1311 unsupported_languages="$unsupported_languages fortran"
1312 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
1313 *-*-elf)
1314 unsupported_languages="$unsupported_languages fortran"
1315 noconfigdirs="$noconfigdirs target-boehm-gc";;
1316 *-*-linux*)
1317 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
1318 *)
1319 unsupported_languages="$unsupported_languages fortran"
1320 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1321 esac
1322 ;;
1323 crx-*-*)
1324 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1325 ;;
1326 d10v-*-*)
1327 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1328 ;;
1329 d30v-*-*)
1330 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1331 ;;
1332 fr30-*-elf*)
1333 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1334 ;;
1335 frv-*-*)
1336 noconfigdirs="$noconfigdirs ${libgcj}"
1337 ;;
1338 h8300*-*-*)
1339 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1340 ;;
1341 h8500-*-*)
1342 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1343 ;;
1344 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1345 ;;
1346 hppa*64*-*-linux* | parisc*64*-*-linux*)
1347 # In this case, it's because the hppa64-linux target is for
1348 # the kernel only at this point and has no libc, and thus no
1349 # headers, crt*.o, etc., all of which are needed by these.
1350 noconfigdirs="$noconfigdirs target-zlib"
1351 ;;
1352 parisc*-*-linux* | hppa*-*-linux*)
1353 ;;
1354 hppa*-*-*elf* | \
1355 hppa*-*-lites* | \
1356 hppa*-*-openbsd* | \
1357 hppa*64*-*-*)
1358 noconfigdirs="$noconfigdirs ${libgcj}"
1359 ;;
1360 hppa*-*-*)
1361 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1362 # build on HP-UX 10.20.
1363 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1364 ;;
1365 i960-*-*)
1366 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1367 ;;
1368 ia64*-*-elf*)
1369 # No gdb support yet.
1370 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1371 ;;
1372 ia64*-**-hpux*)
1373 # No gdb or ld support yet.
1374 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1375 ;;
1376 i370-*-opened*)
1377 ;;
1378 i[3456789]86-*-coff | i[3456789]86-*-elf)
1379 noconfigdirs="$noconfigdirs ${libgcj}"
1380 ;;
1381 i[3456789]86-*-linux*)
1382 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1383 # not build java stuff by default.
1384 case "${target}" in
1385 *-*-*libc1*)
1386 noconfigdirs="$noconfigdirs ${libgcj}";;
1387 esac
1388
1389 # This section makes it possible to build newlib natively on linux.
1390 # If we are using a cross compiler then don't configure newlib.
1391 if test x${is_cross_compiler} != xno ; then
1392 noconfigdirs="$noconfigdirs target-newlib"
1393 fi
1394 noconfigdirs="$noconfigdirs target-libgloss"
1395 # If we are not using a cross compiler, do configure newlib.
1396 # Note however, that newlib will only be configured in this situation
1397 # if the --with-newlib option has been given, because otherwise
1398 # 'target-newlib' will appear in skipdirs.
1399 ;;
1400 i[3456789]86-*-mingw32*)
1401 target_configdirs="$target_configdirs target-mingw"
1402 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1403
1404 # Can't build gdb for mingw32 if not native.
1405 case "${host}" in
1406 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1407 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1408 ;;
1409 esac
1410 ;;
1411 *-*-cygwin*)
1412 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1413 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1414 # always build newlib if winsup directory is present.
1415 if test -d "$srcdir/winsup"; then
1416 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1417 elif test -d "$srcdir/newlib"; then
1418 echo "Warning: winsup is missing so newlib can't be built."
1419 fi
1420
1421 # Can't build gdb for Cygwin if not native.
1422 case "${host}" in
1423 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1424 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1425 ;;
1426 esac
1427 ;;
1428 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1429 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1430 ;;
1431 i[3456789]86-*-pe)
1432 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1433 ;;
1434 i[3456789]86-*-sco3.2v5*)
1435 # The linker does not yet know about weak symbols in COFF,
1436 # and is not configured to handle mixed ELF and COFF.
1437 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1438 ;;
1439 i[3456789]86-*-sco*)
1440 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1441 ;;
1442 i[3456789]86-*-solaris2*)
1443 noconfigdirs="$noconfigdirs target-libgloss"
1444 ;;
1445 i[3456789]86-*-sysv4*)
1446 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1447 ;;
1448 i[3456789]86-*-beos*)
1449 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1450 ;;
1451 i[3456789]86-*-rdos*)
1452 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1453 ;;
1454 m32r-*-*)
1455 noconfigdirs="$noconfigdirs ${libgcj}"
1456 ;;
1457 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1458 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1459 ;;
1460 m68k-*-elf*)
1461 noconfigdirs="$noconfigdirs ${libgcj}"
1462 ;;
1463 m68k-*-coff*)
1464 noconfigdirs="$noconfigdirs ${libgcj}"
1465 ;;
1466 mcore-*-pe*)
1467 # The EPOC C++ environment does not support exceptions or rtti,
1468 # and so building libstdc++-v3 tends not to always work.
1469 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1470 ;;
1471 mmix-*-*)
1472 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1473 unsupported_languages="$unsupported_languages fortran java"
1474 ;;
1475 mn10200-*-*)
1476 noconfigdirs="$noconfigdirs ${libgcj}"
1477 ;;
1478 mn10300-*-*)
1479 noconfigdirs="$noconfigdirs ${libgcj}"
1480 ;;
1481 mt-*-*)
1482 noconfigdirs="$noconfigdirs sim"
1483 ;;
1484 powerpc-*-aix*)
1485 # copied from rs6000-*-* entry
1486 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1487 ;;
1488 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1489 target_configdirs="$target_configdirs target-winsup"
1490 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1491 # always build newlib.
1492 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1493 ;;
1494 # This is temporary until we can link against shared libraries
1495 powerpcle-*-solaris*)
1496 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1497 ;;
1498 powerpc-*-beos*)
1499 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1500 ;;
1501 powerpc-*-eabi)
1502 noconfigdirs="$noconfigdirs ${libgcj}"
1503 ;;
1504 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1505 ;;
1506 rs6000-*-lynxos*)
1507 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1508 ;;
1509 rs6000-*-aix*)
1510 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1511 ;;
1512 rs6000-*-*)
1513 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1514 ;;
1515 m68k-apollo-*)
1516 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1517 ;;
1518 mips*-*-irix5*)
1519 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1520 ;;
1521 mips*-*-irix6*)
1522 # Linking libjava exceeds command-line length limits on at least
1523 # IRIX 6.2, but not on IRIX 6.5.
1524 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1525 # <oldham@codesourcery.com>
1526 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1527 ;;
1528 mips*-dec-bsd*)
1529 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1530 ;;
1531 mips*-*-bsd*)
1532 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1533 ;;
1534 mipstx39-*-*)
1535 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1536 ;;
1537 mips64*-*-linux*)
1538 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1539 ;;
1540 mips*-*-linux*)
1541 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1542 ;;
1543 mips*-*-*)
1544 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1545 ;;
1546 romp-*-*)
1547 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1548 ;;
1549 sh-*-* | sh64-*-*)
1550 case "${host}" in
1551 i[3456789]86-*-vsta) ;; # don't add gprof back in
1552 i[3456789]86-*-go32*) ;; # don't add gprof back in
1553 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1554 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1555 esac
1556 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1557 ;;
1558 sparc-*-elf*)
1559 noconfigdirs="$noconfigdirs ${libgcj}"
1560 ;;
1561 sparc64-*-elf*)
1562 noconfigdirs="$noconfigdirs ${libgcj}"
1563 ;;
1564 sparclite-*-*)
1565 noconfigdirs="$noconfigdirs ${libgcj}"
1566 ;;
1567 sparc-*-sunos4*)
1568 noconfigdirs="$noconfigdirs ${libgcj}"
1569 if test x${is_cross_compiler} != xno ; then
1570 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1571 else
1572 use_gnu_ld=no
1573 fi
1574 ;;
1575 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1576 noconfigdirs="$noconfigdirs ${libgcj}"
1577 ;;
1578 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1579 ;;
1580 v810-*-*)
1581 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1582 ;;
1583 v850-*-*)
1584 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1585 ;;
1586 v850e-*-*)
1587 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1588 ;;
1589 v850ea-*-*)
1590 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1591 ;;
1592 vax-*-vms)
1593 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1594 ;;
1595 vax-*-*)
1596 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1597 ;;
1598 xtensa-*-*)
1599 noconfigdirs="$noconfigdirs ${libgcj}"
1600 ;;
1601 ip2k-*-*)
1602 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1603 ;;
1604 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1605 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1606 ;;
1607 *-*-lynxos*)
1608 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1609 ;;
1610 *-*-*)
1611 noconfigdirs="$noconfigdirs ${libgcj}"
1612 ;;
1613 esac
1614
1615 # If we aren't building newlib, then don't build libgloss, since libgloss
1616 # depends upon some newlib header files.
1617 case "${noconfigdirs}" in
1618 *target-libgloss*) ;;
1619 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1620 esac
1621
1622 # Work in distributions that contain no compiler tools, like Autoconf.
1623 tentative_cc=""
1624 host_makefile_frag=/dev/null
1625 if test -d ${srcdir}/config ; then
1626 case "${host}" in
1627 m68k-hp-hpux*)
1628 # Avoid "too much defining" errors from HPUX compiler.
1629 tentative_cc="cc -Wp,-H256000"
1630 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1631 # If it's HP/UX ar, this should be harmless.
1632 RANLIB="ar ts"
1633 ;;
1634 m68k-apollo-sysv*)
1635 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1636 ;;
1637 m68k-apollo-bsd*)
1638 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1639 # chokes on bfd, the compiler won't let you assign integers to enums, and
1640 # other problems. Defining CC to gcc is a questionable way to say "don't use
1641 # the apollo compiler" (the preferred version of GCC could be called cc,
1642 # or whatever), but I'm not sure leaving CC as cc is any better...
1643 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1644 # Used to have BISON=yacc.
1645 tentative_cc=gcc
1646 ;;
1647 m88k-dg-dgux*)
1648 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1649 ;;
1650 m88k-harris-cxux*)
1651 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1652 tentative_cc="cc -Xa"
1653 host_makefile_frag="config/mh-cxux"
1654 ;;
1655 m88k-motorola-sysv*)
1656 ;;
1657 mips*-dec-ultrix*)
1658 tentative_cc="cc -Wf,-XNg1000"
1659 host_makefile_frag="config/mh-decstation"
1660 ;;
1661 mips*-nec-sysv4*)
1662 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1663 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1664 host_makefile_frag="config/mh-necv4"
1665 ;;
1666 mips*-sgi-irix4*)
1667 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1668 # environment. Also bump switch table size so that cp-parse will
1669 # compile. Bump string length limit so linker builds.
1670 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1671 ;;
1672 mips*-*-sysv4*)
1673 host_makefile_frag="config/mh-sysv4"
1674 ;;
1675 mips*-*-sysv*)
1676 # This is for a MIPS running RISC/os 4.52C.
1677
1678 # This is needed for GDB, but needs to be in the top-level make because
1679 # if a library is compiled with the bsd headers and gets linked with the
1680 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1681 # a different size).
1682 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1683 # known except to select the sysv environment. Could we use /proc instead?
1684 # These "sysv environments" and "bsd environments" often end up being a pain.
1685 #
1686 # This is not part of CFLAGS because perhaps not all C compilers have this
1687 # option.
1688 tentative_cc="cc -systype sysv"
1689 ;;
1690 i370-ibm-opened*)
1691 tentative_cc="c89"
1692 ;;
1693 i[3456789]86-*-sysv5*)
1694 host_makefile_frag="config/mh-sysv5"
1695 ;;
1696 i[3456789]86-*-dgux*)
1697 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1698 host_makefile_frag="config/mh-dgux386"
1699 ;;
1700 i[3456789]86-ncr-sysv4.3*)
1701 # The MetaWare compiler will generate a copyright message unless you
1702 # turn it off by adding the -Hnocopyr flag.
1703 tentative_cc="cc -Hnocopyr"
1704 ;;
1705 i[3456789]86-ncr-sysv4*)
1706 # for an NCR 3000 (i486/SVR4) system.
1707 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1708 # This compiler not only emits obnoxious copyright messages every time
1709 # you run it, but it chokes and dies on a whole bunch of GNU source
1710 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1711 tentative_cc="/usr/ccs/ATT/cc"
1712 host_makefile_frag="config/mh-ncr3000"
1713 ;;
1714 i[3456789]86-*-sco3.2v5*)
1715 ;;
1716 i[3456789]86-*-sco*)
1717 # The native C compiler botches some simple uses of const. Unfortunately,
1718 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1719 tentative_cc="cc -Dconst="
1720 host_makefile_frag="config/mh-sco"
1721 ;;
1722 i[3456789]86-*-udk*)
1723 host_makefile_frag="config/mh-sysv5"
1724 ;;
1725 i[3456789]86-*-solaris2*)
1726 host_makefile_frag="config/mh-sysv4"
1727 ;;
1728 i[3456789]86-*-msdosdjgpp*)
1729 host_makefile_frag="config/mh-djgpp"
1730 ;;
1731 *-cygwin*)
1732 host_makefile_frag="config/mh-cygwin"
1733 ;;
1734 *-mingw32*)
1735 ;;
1736 *-interix*)
1737 host_makefile_frag="config/mh-interix"
1738 ;;
1739 vax-*-ultrix2*)
1740 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1741 tentative_cc=gcc
1742 ;;
1743 *-*-solaris2*)
1744 host_makefile_frag="config/mh-solaris"
1745 ;;
1746 m68k-sun-sunos*)
1747 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1748 # without overflowing the jump tables (-J says to use a 32 bit table)
1749 tentative_cc="cc -J"
1750 ;;
1751 *-hp-hpux*)
1752 tentative_cc="cc -Wp,-H256000"
1753 ;;
1754 *-*-hiux*)
1755 tentative_cc="cc -Wp,-H256000"
1756 ;;
1757 rs6000-*-lynxos*)
1758 # /bin/cc is less than useful for our purposes. Always use GCC
1759 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1760 host_makefile_frag="config/mh-lynxrs6k"
1761 ;;
1762 powerpc-*-darwin*)
1763 host_makefile_frag="config/mh-ppc-darwin"
1764 ;;
1765 powerpc-*-aix*)
1766 host_makefile_frag="config/mh-ppc-aix"
1767 ;;
1768 rs6000-*-aix*)
1769 host_makefile_frag="config/mh-ppc-aix"
1770 ;;
1771 *-*-lynxos*)
1772 # /bin/cc is less than useful for our purposes. Always use GCC
1773 tentative_cc="/bin/gcc"
1774 ;;
1775 *-*-sysv4*)
1776 host_makefile_frag="config/mh-sysv4"
1777 ;;
1778 # This is placed last to prevent interfering with the cases above.
1779 i[3456789]86-*-*)
1780 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1781 host_makefile_frag="config/mh-x86omitfp"
1782 ;;
1783 esac
1784 fi
1785
1786 # If we aren't going to be using gcc, see if we can extract a definition
1787 # of CC from the fragment.
1788 # Actually, use the 'pre-extracted' version above.
1789 if test -z "${CC}" && test "${build}" = "${host}" ; then
1790 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1791 found=
1792 for dir in $PATH; do
1793 test -z "$dir" && dir=.
1794 if test -f $dir/gcc; then
1795 found=yes
1796 break
1797 fi
1798 done
1799 IFS="$save_ifs"
1800 if test -z "${found}" && test -n "${tentative_cc}" ; then
1801 CC=$tentative_cc
1802 fi
1803 fi
1804
1805 if test "${build}" != "${host}" ; then
1806 # If we are doing a Canadian Cross, in which the host and build systems
1807 # are not the same, we set reasonable default values for the tools.
1808
1809 CC=${CC-${host_alias}-gcc}
1810 CFLAGS=${CFLAGS-"-g -O2"}
1811 CXX=${CXX-${host_alias}-c++}
1812 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1813 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1814 BUILD_PREFIX=${build_alias}-
1815 BUILD_PREFIX_1=${build_alias}-
1816
1817 else
1818 # Set reasonable default values for some tools even if not Canadian.
1819 # Of course, these are different reasonable default values, originally
1820 # specified directly in the Makefile.
1821 # We don't export, so that autoconf can do its job.
1822 # Note that all these settings are above the fragment inclusion point
1823 # in Makefile.in, so can still be overridden by fragments.
1824 # This is all going to change when we autoconfiscate...
1825
1826 CC_FOR_BUILD="\$(CC)"
1827 BUILD_PREFIX=
1828 BUILD_PREFIX_1=loser-
1829
1830 # Extract the first word of "gcc", so it can be a program name with args.
1831 set dummy gcc; ac_word=$2
1832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1833 echo "configure:1834: checking for $ac_word" >&5
1834 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1836 else
1837 if test -n "$CC"; then
1838 ac_cv_prog_CC="$CC" # Let the user override the test.
1839 else
1840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1841 ac_dummy="$PATH"
1842 for ac_dir in $ac_dummy; do
1843 test -z "$ac_dir" && ac_dir=.
1844 if test -f $ac_dir/$ac_word; then
1845 ac_cv_prog_CC="gcc"
1846 break
1847 fi
1848 done
1849 IFS="$ac_save_ifs"
1850 fi
1851 fi
1852 CC="$ac_cv_prog_CC"
1853 if test -n "$CC"; then
1854 echo "$ac_t""$CC" 1>&6
1855 else
1856 echo "$ac_t""no" 1>&6
1857 fi
1858
1859 if test -z "$CC"; then
1860 # Extract the first word of "cc", so it can be a program name with args.
1861 set dummy cc; ac_word=$2
1862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1863 echo "configure:1864: checking for $ac_word" >&5
1864 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1866 else
1867 if test -n "$CC"; then
1868 ac_cv_prog_CC="$CC" # Let the user override the test.
1869 else
1870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1871 ac_prog_rejected=no
1872 ac_dummy="$PATH"
1873 for ac_dir in $ac_dummy; do
1874 test -z "$ac_dir" && ac_dir=.
1875 if test -f $ac_dir/$ac_word; then
1876 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1877 ac_prog_rejected=yes
1878 continue
1879 fi
1880 ac_cv_prog_CC="cc"
1881 break
1882 fi
1883 done
1884 IFS="$ac_save_ifs"
1885 if test $ac_prog_rejected = yes; then
1886 # We found a bogon in the path, so make sure we never use it.
1887 set dummy $ac_cv_prog_CC
1888 shift
1889 if test $# -gt 0; then
1890 # We chose a different compiler from the bogus one.
1891 # However, it has the same basename, so the bogon will be chosen
1892 # first if we set CC to just the basename; use the full file name.
1893 shift
1894 set dummy "$ac_dir/$ac_word" "$@"
1895 shift
1896 ac_cv_prog_CC="$@"
1897 fi
1898 fi
1899 fi
1900 fi
1901 CC="$ac_cv_prog_CC"
1902 if test -n "$CC"; then
1903 echo "$ac_t""$CC" 1>&6
1904 else
1905 echo "$ac_t""no" 1>&6
1906 fi
1907
1908 if test -z "$CC"; then
1909 case "`uname -s`" in
1910 *win32* | *WIN32*)
1911 # Extract the first word of "cl", so it can be a program name with args.
1912 set dummy cl; ac_word=$2
1913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1914 echo "configure:1915: checking for $ac_word" >&5
1915 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1916 echo $ac_n "(cached) $ac_c" 1>&6
1917 else
1918 if test -n "$CC"; then
1919 ac_cv_prog_CC="$CC" # Let the user override the test.
1920 else
1921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1922 ac_dummy="$PATH"
1923 for ac_dir in $ac_dummy; do
1924 test -z "$ac_dir" && ac_dir=.
1925 if test -f $ac_dir/$ac_word; then
1926 ac_cv_prog_CC="cl"
1927 break
1928 fi
1929 done
1930 IFS="$ac_save_ifs"
1931 fi
1932 fi
1933 CC="$ac_cv_prog_CC"
1934 if test -n "$CC"; then
1935 echo "$ac_t""$CC" 1>&6
1936 else
1937 echo "$ac_t""no" 1>&6
1938 fi
1939 ;;
1940 esac
1941 fi
1942 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1943 fi
1944
1945 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1946 echo "configure:1947: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1947
1948 ac_ext=c
1949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1950 ac_cpp='$CPP $CPPFLAGS'
1951 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1952 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1953 cross_compiling=$ac_cv_prog_cc_cross
1954
1955 cat > conftest.$ac_ext << EOF
1956
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1959
1960 main(){return(0);}
1961 EOF
1962 if { (eval echo configure:1963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1963 ac_cv_prog_cc_works=yes
1964 # If we can't run a trivial program, we are probably using a cross compiler.
1965 if (./conftest; exit) 2>/dev/null; then
1966 ac_cv_prog_cc_cross=no
1967 else
1968 ac_cv_prog_cc_cross=yes
1969 fi
1970 else
1971 echo "configure: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1973 ac_cv_prog_cc_works=no
1974 fi
1975 rm -fr conftest*
1976 ac_ext=c
1977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1978 ac_cpp='$CPP $CPPFLAGS'
1979 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1980 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1981 cross_compiling=$ac_cv_prog_cc_cross
1982
1983 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1984 if test $ac_cv_prog_cc_works = no; then
1985 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1986 fi
1987 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1988 echo "configure:1989: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1989 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1990 cross_compiling=$ac_cv_prog_cc_cross
1991
1992 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1993 echo "configure:1994: checking whether we are using GNU C" >&5
1994 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1996 else
1997 cat > conftest.c <<EOF
1998 #ifdef __GNUC__
1999 yes;
2000 #endif
2001 EOF
2002 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2003 ac_cv_prog_gcc=yes
2004 else
2005 ac_cv_prog_gcc=no
2006 fi
2007 fi
2008
2009 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2010
2011 if test $ac_cv_prog_gcc = yes; then
2012 GCC=yes
2013 else
2014 GCC=
2015 fi
2016
2017 ac_test_CFLAGS="${CFLAGS+set}"
2018 ac_save_CFLAGS="$CFLAGS"
2019 CFLAGS=
2020 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2021 echo "configure:2022: checking whether ${CC-cc} accepts -g" >&5
2022 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2024 else
2025 echo 'void f(){}' > conftest.c
2026 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2027 ac_cv_prog_cc_g=yes
2028 else
2029 ac_cv_prog_cc_g=no
2030 fi
2031 rm -f conftest*
2032
2033 fi
2034
2035 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2036 if test "$ac_test_CFLAGS" = set; then
2037 CFLAGS="$ac_save_CFLAGS"
2038 elif test $ac_cv_prog_cc_g = yes; then
2039 if test "$GCC" = yes; then
2040 CFLAGS="-g -O2"
2041 else
2042 CFLAGS="-g"
2043 fi
2044 else
2045 if test "$GCC" = yes; then
2046 CFLAGS="-O2"
2047 else
2048 CFLAGS=
2049 fi
2050 fi
2051
2052
2053 # We must set the default linker to the linker used by gcc for the correct
2054 # operation of libtool. If LD is not defined and we are using gcc, try to
2055 # set the LD default to the ld used by gcc.
2056 if test -z "$LD"; then
2057 if test "$GCC" = yes; then
2058 case $build in
2059 *-*-mingw*)
2060 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2061 *)
2062 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2063 esac
2064 case $gcc_prog_ld in
2065 # Accept absolute paths.
2066 [\\/]* | [A-Za-z]:[\\/]*)
2067 LD="$gcc_prog_ld" ;;
2068 esac
2069 fi
2070 fi
2071
2072 CXX=${CXX-"c++"}
2073 CFLAGS=${CFLAGS-"-g"}
2074 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2075 fi
2076
2077 if test $host != $build; then
2078 ac_tool_prefix=${host_alias}-
2079 else
2080 ac_tool_prefix=
2081 fi
2082
2083
2084
2085 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2086 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2088 echo "configure:2089: checking for $ac_word" >&5
2089 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2091 else
2092 if test -n "$GNATBIND"; then
2093 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2094 else
2095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2096 ac_dummy="$PATH"
2097 for ac_dir in $ac_dummy; do
2098 test -z "$ac_dir" && ac_dir=.
2099 if test -f $ac_dir/$ac_word; then
2100 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2101 break
2102 fi
2103 done
2104 IFS="$ac_save_ifs"
2105 fi
2106 fi
2107 GNATBIND="$ac_cv_prog_GNATBIND"
2108 if test -n "$GNATBIND"; then
2109 echo "$ac_t""$GNATBIND" 1>&6
2110 else
2111 echo "$ac_t""no" 1>&6
2112 fi
2113
2114
2115 if test -z "$ac_cv_prog_GNATBIND"; then
2116 if test -n "$ac_tool_prefix"; then
2117 # Extract the first word of "gnatbind", so it can be a program name with args.
2118 set dummy gnatbind; ac_word=$2
2119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_word" >&5
2121 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2123 else
2124 if test -n "$GNATBIND"; then
2125 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2126 else
2127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2128 ac_dummy="$PATH"
2129 for ac_dir in $ac_dummy; do
2130 test -z "$ac_dir" && ac_dir=.
2131 if test -f $ac_dir/$ac_word; then
2132 ac_cv_prog_GNATBIND="gnatbind"
2133 break
2134 fi
2135 done
2136 IFS="$ac_save_ifs"
2137 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2138 fi
2139 fi
2140 GNATBIND="$ac_cv_prog_GNATBIND"
2141 if test -n "$GNATBIND"; then
2142 echo "$ac_t""$GNATBIND" 1>&6
2143 else
2144 echo "$ac_t""no" 1>&6
2145 fi
2146
2147 else
2148 GNATBIND="no"
2149 fi
2150 fi
2151
2152 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2153 echo "configure:2154: checking whether compiler driver understands Ada" >&5
2154 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2156 else
2157 cat >conftest.adb <<EOF
2158 procedure conftest is begin null; end conftest;
2159 EOF
2160 acx_cv_cc_gcc_supports_ada=no
2161 # There is a bug in old released versions of GCC which causes the
2162 # driver to exit successfully when the appropriate language module
2163 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2164 # Therefore we must check for the error message as well as an
2165 # unsuccessful exit.
2166 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2167 # given a .adb file, but produce no object file. So we must check
2168 # if an object file was really produced to guard against this.
2169 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2170 if test x"$errors" = x && test -f conftest.$ac_objext; then
2171 acx_cv_cc_gcc_supports_ada=yes
2172 fi
2173 rm -f conftest.*
2174 fi
2175
2176 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2177
2178 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2179 have_gnat=yes
2180 else
2181 have_gnat=no
2182 fi
2183
2184 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2185 echo "configure:2186: checking how to compare bootstrapped objects" >&5
2186 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6
2188 else
2189 echo abfoo >t1
2190 echo cdfoo >t2
2191 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2192 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2193 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2194 :
2195 else
2196 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2197 fi
2198 fi
2199 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2200 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2201 :
2202 else
2203 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2204 fi
2205 fi
2206 rm t1 t2
2207
2208 fi
2209
2210 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2211 do_compare="$gcc_cv_prog_cmp_skip"
2212
2213
2214
2215 # Check for GMP and MPFR
2216 gmplibs=
2217 gmpinc=
2218 have_gmp=yes
2219 # Specify a location for mpfr
2220 # check for this first so it ends up on the link line before gmp.
2221 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2222 if test "${with_mpfr_dir+set}" = set; then
2223 withval="$with_mpfr_dir"
2224 :
2225 fi
2226
2227
2228 if test "x$with_mpfr_dir" != x; then
2229 gmpinc="-I$with_mpfr_dir"
2230 gmplibs="$with_mpfr_dir/libmpfr.a"
2231 else
2232 gmplibs="-lmpfr"
2233 fi
2234
2235 # Check whether --with-mpfr or --without-mpfr was given.
2236 if test "${with_mpfr+set}" = set; then
2237 withval="$with_mpfr"
2238 :
2239 fi
2240
2241
2242 if test "x$with_mpfr" != x; then
2243 gmplibs="-L$with_mpfr/lib $gmplibs"
2244 gmpinc="-I$with_mpfr/include"
2245 fi
2246
2247 # Specify a location for gmp
2248 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2249 if test "${with_gmp_dir+set}" = set; then
2250 withval="$with_gmp_dir"
2251 :
2252 fi
2253
2254
2255 if test "x$with_gmp_dir" != x; then
2256 gmpinc="$gmpinc -I$with_gmp_dir"
2257 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2258 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2259 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2260 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2261 fi
2262 # One of the later tests will catch the error if neither library is present.
2263 else
2264 gmplibs="$gmplibs -lgmp"
2265 fi
2266
2267 # Check whether --with-gmp or --without-gmp was given.
2268 if test "${with_gmp+set}" = set; then
2269 withval="$with_gmp"
2270 :
2271 fi
2272
2273
2274 if test "x$with_gmp" != x; then
2275 gmplibs="-L$with_gmp/lib $gmplibs"
2276 gmpinc="-I$with_gmp/include $gmpinc"
2277 fi
2278
2279 saved_CFLAGS="$CFLAGS"
2280 CFLAGS="$CFLAGS $gmpinc"
2281 # Check GMP actually works
2282 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2283 echo "configure:2284: checking for correct version of gmp.h" >&5
2284 cat > conftest.$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2287 #include "gmp.h"
2288 int main() {
2289
2290 #if __GNU_MP_VERSION < 3
2291 choke me
2292 #endif
2293
2294 ; return 0; }
2295 EOF
2296 if { (eval echo configure:2297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2297 rm -rf conftest*
2298 echo "$ac_t""yes" 1>&6
2299 else
2300 echo "configure: failed program was:" >&5
2301 cat conftest.$ac_ext >&5
2302 rm -rf conftest*
2303 echo "$ac_t""no" 1>&6; have_gmp=no
2304 fi
2305 rm -f conftest*
2306
2307 if test x"$have_gmp" = xyes; then
2308 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2309 echo "configure:2310: checking for MPFR" >&5
2310
2311 saved_LIBS="$LIBS"
2312 LIBS="$LIBS $gmplibs"
2313 cat > conftest.$ac_ext <<EOF
2314 #line 2315 "configure"
2315 #include "confdefs.h"
2316 #include <gmp.h>
2317 #include <mpfr.h>
2318 int main() {
2319 mpfr_t n; mpfr_init(n);
2320 ; return 0; }
2321 EOF
2322 if { (eval echo configure:2323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2323 rm -rf conftest*
2324 echo "$ac_t""yes" 1>&6
2325 else
2326 echo "configure: failed program was:" >&5
2327 cat conftest.$ac_ext >&5
2328 rm -rf conftest*
2329 echo "$ac_t""no" 1>&6; have_gmp=no
2330 fi
2331 rm -f conftest*
2332 LIBS="$saved_LIBS"
2333 CFLAGS="$saved_CFLAGS"
2334 fi
2335
2336 # Flags needed for both GMP and/or MPFR
2337
2338
2339
2340 # By default, C is the only stage 1 language.
2341 stage1_languages=c
2342
2343
2344 # Figure out what language subdirectories are present.
2345 # Look if the user specified --enable-languages="..."; if not, use
2346 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2347 # go away some day.
2348 # NB: embedded tabs in this IF block -- do not untabify
2349 if test -d ${srcdir}/gcc; then
2350 if test x"${enable_languages+set}" != xset; then
2351 if test x"${LANGUAGES+set}" = xset; then
2352 enable_languages="${LANGUAGES}"
2353 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2354 else
2355 enable_languages=all
2356 fi
2357 else
2358 if test x"${enable_languages}" = x ||
2359 test x"${enable_languages}" = xyes;
2360 then
2361 echo configure.in: --enable-languages needs at least one language argument 1>&2
2362 exit 1
2363 fi
2364 fi
2365 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2366
2367 # 'f95' is the old name for the 'fortran' language. We issue a warning
2368 # and make the substitution.
2369 case ,${enable_languages}, in
2370 *,f95,*)
2371 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2372 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2373 ;;
2374 esac
2375
2376 # First scan to see if an enabled language requires some other language.
2377 # We assume that a given config-lang.in will list all the language
2378 # front ends it requires, even if some are required indirectly.
2379 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2380 case ${lang_frag} in
2381 ..) ;;
2382 # The odd quoting in the next line works around
2383 # an apparent bug in bash 1.12 on linux.
2384 ${srcdir}/gcc/[*]/config-lang.in) ;;
2385 *)
2386 # From the config-lang.in, get $language, $lang_requires
2387 language=
2388 lang_requires=
2389 . ${lang_frag}
2390 for other in ${lang_requires} ; do
2391 case ,${enable_languages}, in
2392 *,$other,*) ;;
2393 *,all,*) ;;
2394 *,$language,*)
2395 echo " \`$other' language required by \`$language'; enabling" 1>&2
2396 enable_languages="${enable_languages},${other}"
2397 ;;
2398 esac
2399 done
2400 ;;
2401 esac
2402 done
2403
2404 new_enable_languages=c
2405 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2406 potential_languages=c
2407
2408 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2409 case ${lang_frag} in
2410 ..) ;;
2411 # The odd quoting in the next line works around
2412 # an apparent bug in bash 1.12 on linux.
2413 ${srcdir}/gcc/[*]/config-lang.in) ;;
2414 *)
2415 # From the config-lang.in, get $language, $target_libs,
2416 # $lang_dirs, $boot_language, and $build_by_default
2417 language=
2418 target_libs=
2419 lang_dirs=
2420 boot_language=
2421 build_by_default=
2422 need_gmp=
2423 . ${lang_frag}
2424 potential_languages="${potential_languages},${language}"
2425 # This is quite sensitive to the ordering of the case statement arms.
2426 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2427 *::*:*)
2428 echo "${lang_frag} doesn't set \$language." 1>&2
2429 exit 1
2430 ;;
2431 *:ada:no:*)
2432 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2433 add_this_lang=no
2434 ;;
2435 *,${language},*:*:*:*)
2436 # Language was explicitly selected; include it.
2437 add_this_lang=yes
2438 ;;
2439 *,all,*:*:*:no)
2440 # 'all' was selected, but this is not a default language
2441 # so do not include it.
2442 add_this_lang=no
2443 ;;
2444 *,all,*:*:*:*)
2445 # 'all' was selected and this is a default language; include it.
2446 add_this_lang=yes
2447 ;;
2448 *)
2449 add_this_lang=no
2450 ;;
2451 esac
2452
2453 # Disable languages that need GMP if it isn't available.
2454 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2455 *,${language},*:no:yes)
2456 # Specifically requested language; tell them.
2457 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2458 ;;
2459 *:no:yes)
2460 # Silently disable.
2461 add_this_lang=no
2462 ;;
2463 esac
2464
2465 # Disable a language that is unsupported by the target.
2466 case " $unsupported_languages " in
2467 *" $language "*)
2468 add_this_lang=no
2469 ;;
2470 esac
2471
2472 case $add_this_lang in
2473 no)
2474 # Remove language-dependent dirs.
2475 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2476 ;;
2477 *)
2478 new_enable_languages="$new_enable_languages,$language"
2479 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2480 case ${boot_language} in
2481 yes)
2482 # Add to (comma-separated) list of stage 1 languages.
2483 stage1_languages="${stage1_languages},${language}"
2484 ;;
2485 esac
2486 ;;
2487 esac
2488 ;;
2489 esac
2490 done
2491
2492 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2493 if test "x$missing_languages" != x; then
2494 { echo "configure: error:
2495 The following requested languages could not be built: ${missing_languages}
2496 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2497 fi
2498
2499 if test "x$new_enable_languages" != "x$enable_languages"; then
2500 echo The following languages will be built: ${new_enable_languages}
2501 fi
2502 enable_languages="$new_enable_languages"
2503 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2504 fi
2505
2506 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2507 # $build_configdirs and $target_configdirs.
2508 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2509
2510 notsupp=""
2511 for dir in . $skipdirs $noconfigdirs ; do
2512 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2513 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2514 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2515 if test -r $srcdir/$dirname/configure ; then
2516 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2517 true
2518 else
2519 notsupp="$notsupp $dir"
2520 fi
2521 fi
2522 fi
2523 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2524 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2525 if test -r $srcdir/$dirname/configure ; then
2526 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2527 true
2528 else
2529 notsupp="$notsupp $dir"
2530 fi
2531 fi
2532 fi
2533 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2534 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2535 if test -r $srcdir/$dirname/configure ; then
2536 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2537 true
2538 else
2539 notsupp="$notsupp $dir"
2540 fi
2541 fi
2542 fi
2543 done
2544
2545 # Sometimes the tools are distributed with libiberty but with no other
2546 # libraries. In that case, we don't want to build target-libiberty.
2547 if test -n "${target_configdirs}" ; then
2548 others=
2549 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2550 if test "$i" != "libiberty" ; then
2551 if test -r $srcdir/$i/configure ; then
2552 others=yes;
2553 break;
2554 fi
2555 fi
2556 done
2557 if test -z "${others}" ; then
2558 target_configdirs=
2559 fi
2560 fi
2561
2562 # Quietly strip out all directories which aren't configurable in this tree.
2563 # This relies on all configurable subdirectories being autoconfiscated, which
2564 # is now the case.
2565 build_configdirs_all="$build_configdirs"
2566 build_configdirs=
2567 for i in ${build_configdirs_all} ; do
2568 j=`echo $i | sed -e s/build-//g`
2569 if test -f ${srcdir}/$j/configure ; then
2570 build_configdirs="${build_configdirs} $i"
2571 fi
2572 done
2573
2574 configdirs_all="$configdirs"
2575 configdirs=
2576 for i in ${configdirs_all} ; do
2577 if test -f ${srcdir}/$i/configure ; then
2578 configdirs="${configdirs} $i"
2579 fi
2580 done
2581
2582 target_configdirs_all="$target_configdirs"
2583 target_configdirs=
2584 for i in ${target_configdirs_all} ; do
2585 j=`echo $i | sed -e s/target-//g`
2586 if test -f ${srcdir}/$j/configure ; then
2587 target_configdirs="${target_configdirs} $i"
2588 fi
2589 done
2590
2591 # Produce a warning message for the subdirs we can't configure.
2592 # This isn't especially interesting in the Cygnus tree, but in the individual
2593 # FSF releases, it's important to let people know when their machine isn't
2594 # supported by the one or two programs in a package.
2595
2596 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2597 # If $appdirs is non-empty, at least one of those directories must still
2598 # be configured, or we error out. (E.g., if the gas release supports a
2599 # specified target in some subdirs but not the gas subdir, we shouldn't
2600 # pretend that all is well.)
2601 if test -n "$appdirs" ; then
2602 for dir in $appdirs ; do
2603 if test -r $dir/Makefile.in ; then
2604 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2605 appdirs=""
2606 break
2607 fi
2608 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2609 appdirs=""
2610 break
2611 fi
2612 fi
2613 done
2614 if test -n "$appdirs" ; then
2615 echo "*** This configuration is not supported by this package." 1>&2
2616 exit 1
2617 fi
2618 fi
2619 # Okay, some application will build, or we don't care to check. Still
2620 # notify of subdirs not getting built.
2621 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2622 echo " ${notsupp}" 1>&2
2623 echo " (Any other directories should still work fine.)" 1>&2
2624 fi
2625
2626 case "$host" in
2627 *msdosdjgpp*)
2628 enable_gdbtk=no ;;
2629 esac
2630
2631 copy_dirs=
2632
2633 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2634 if test "${with_build_sysroot+set}" = set; then
2635 withval="$with_build_sysroot"
2636 if test x"$withval" != x ; then
2637 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2638 fi
2639 else
2640 SYSROOT_CFLAGS_FOR_TARGET=
2641 fi
2642
2643
2644
2645 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2646 # the named directory are copied to $(tooldir)/sys-include.
2647 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2648 if test x${is_cross_compiler} = xno ; then
2649 echo 1>&2 '***' --with-headers is only supported when cross compiling
2650 exit 1
2651 fi
2652 if test x"${with_headers}" != xyes ; then
2653 case "${exec_prefixoption}" in
2654 "") x=${prefix} ;;
2655 *) x=${exec_prefix} ;;
2656 esac
2657 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2658 fi
2659 fi
2660
2661 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2662 # the name directories are copied to $(tooldir)/lib. Multiple directories
2663 # are permitted.
2664 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2665 if test x${is_cross_compiler} = xno ; then
2666 echo 1>&2 '***' --with-libs is only supported when cross compiling
2667 exit 1
2668 fi
2669 if test x"${with_libs}" != xyes ; then
2670 # Copy the libraries in reverse order, so that files in the first named
2671 # library override files in subsequent libraries.
2672 case "${exec_prefixoption}" in
2673 "") x=${prefix} ;;
2674 *) x=${exec_prefix} ;;
2675 esac
2676 for l in ${with_libs}; do
2677 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2678 done
2679 fi
2680 fi
2681
2682 # Handle ${copy_dirs}
2683 set fnord ${copy_dirs}
2684 shift
2685 while test $# != 0 ; do
2686 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2687 :
2688 else
2689 echo Copying $1 to $2
2690
2691 # Use the install script to create the directory and all required
2692 # parent directories.
2693 if test -d $2 ; then
2694 :
2695 else
2696 echo >config.temp
2697 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2698 fi
2699
2700 # Copy the directory, assuming we have tar.
2701 # FIXME: Should we use B in the second tar? Not all systems support it.
2702 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2703
2704 # It is the responsibility of the user to correctly adjust all
2705 # symlinks. If somebody can figure out how to handle them correctly
2706 # here, feel free to add the code.
2707
2708 echo $1 > $2/COPIED
2709 fi
2710 shift; shift
2711 done
2712
2713 extra_arflags_for_target=
2714 extra_nmflags_for_target=
2715 extra_ranlibflags_for_target=
2716 target_makefile_frag=/dev/null
2717 case "${target}" in
2718 *-*-netware*)
2719 target_makefile_frag="config/mt-netware"
2720 ;;
2721 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2722 target_makefile_frag="config/mt-gnu"
2723 ;;
2724 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2725 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2726 # commands to handle both 32-bit and 64-bit objects. These flags are
2727 # harmless if we're using GNU nm or ar.
2728 extra_arflags_for_target=" -X32_64"
2729 extra_nmflags_for_target=" -B -X32_64"
2730 ;;
2731 *-*-darwin*)
2732 # ranlib from Darwin requires the -c flag to look at common symbols.
2733 extra_ranlibflags_for_target=" -c"
2734 ;;
2735 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2736 target_makefile_frag="config/mt-wince"
2737 ;;
2738 esac
2739
2740 alphaieee_frag=/dev/null
2741 case $target in
2742 alpha*-*-*)
2743 # This just makes sure to use the -mieee option to build target libs.
2744 # This should probably be set individually by each library.
2745 alphaieee_frag="config/mt-alphaieee"
2746 ;;
2747 esac
2748
2749 # If --enable-target-optspace always use -Os instead of -O2 to build
2750 # the target libraries, similarly if it is not specified, use -Os
2751 # on selected platforms.
2752 ospace_frag=/dev/null
2753 case "${enable_target_optspace}:${target}" in
2754 yes:*)
2755 ospace_frag="config/mt-ospace"
2756 ;;
2757 :d30v-*)
2758 ospace_frag="config/mt-d30v"
2759 ;;
2760 :m32r-* | :d10v-* | :fr30-*)
2761 ospace_frag="config/mt-ospace"
2762 ;;
2763 no:* | :*)
2764 ;;
2765 *)
2766 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2767 ;;
2768 esac
2769
2770 # Set with_gnu_as and with_gnu_ld as appropriate.
2771 #
2772 # This is done by determining whether or not the appropriate directory
2773 # is available, and by checking whether or not specific configurations
2774 # have requested that this magic not happen.
2775 #
2776 # The command line options always override the explicit settings in
2777 # configure.in, and the settings in configure.in override this magic.
2778 #
2779 # If the default for a toolchain is to use GNU as and ld, and you don't
2780 # want to do that, then you should use the --without-gnu-as and
2781 # --without-gnu-ld options for the configure script.
2782
2783 if test x${use_gnu_as} = x &&
2784 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2785 with_gnu_as=yes
2786 extra_host_args="$extra_host_args --with-gnu-as"
2787 fi
2788
2789 if test x${use_gnu_ld} = x &&
2790 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2791 with_gnu_ld=yes
2792 extra_host_args="$extra_host_args --with-gnu-ld"
2793 fi
2794
2795 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2796 # can detect this case.
2797
2798 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2799 with_newlib=yes
2800 extra_host_args="$extra_host_args --with-newlib"
2801 fi
2802
2803 # Default to using --with-stabs for certain targets.
2804 if test x${with_stabs} = x ; then
2805 case "${target}" in
2806 mips*-*-irix[56]*)
2807 ;;
2808 mips*-*-* | alpha*-*-osf*)
2809 with_stabs=yes;
2810 extra_host_args="${extra_host_args} --with-stabs"
2811 ;;
2812 esac
2813 fi
2814
2815 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2816 # them automatically.
2817 case "${host}" in
2818 hppa*64*-*-hpux11*)
2819 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2820 ;;
2821 esac
2822
2823 # Some systems (e.g., one of the i386-aix systems the gas testers are
2824 # using) don't handle "\$" correctly, so don't use it here.
2825 tooldir='${exec_prefix}'/${target_alias}
2826 build_tooldir=${tooldir}
2827
2828 # Create a .gdbinit file which runs the one in srcdir
2829 # and tells GDB to look there for source files.
2830
2831 if test -r ${srcdir}/.gdbinit ; then
2832 case ${srcdir} in
2833 .) ;;
2834 *) cat > ./.gdbinit <<EOF
2835 # ${NO_EDIT}
2836 dir ${srcdir}
2837 dir .
2838 source ${srcdir}/.gdbinit
2839 EOF
2840 ;;
2841 esac
2842 fi
2843
2844 # Make sure that the compiler is able to generate an executable. If it
2845 # can't, we are probably in trouble. We don't care whether we can run the
2846 # executable--we might be using a cross compiler--we only care whether it
2847 # can be created. At this point the main configure script has set CC.
2848 we_are_ok=no
2849 echo "int main () { return 0; }" > conftest.c
2850 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2851 if test $? = 0 ; then
2852 if test -s conftest || test -s conftest.exe ; then
2853 we_are_ok=yes
2854 fi
2855 fi
2856 case $we_are_ok in
2857 no)
2858 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2859 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2860 rm -f conftest*
2861 exit 1
2862 ;;
2863 esac
2864 rm -f conftest*
2865
2866 # The Solaris /usr/ucb/cc compiler does not appear to work.
2867 case "${host}" in
2868 sparc-sun-solaris2*)
2869 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2870 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2871 could_use=
2872 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2873 if test -d /opt/cygnus/bin ; then
2874 if test "$could_use" = "" ; then
2875 could_use="/opt/cygnus/bin"
2876 else
2877 could_use="$could_use or /opt/cygnus/bin"
2878 fi
2879 fi
2880 if test "$could_use" = "" ; then
2881 echo "Warning: compilation may fail because you're using"
2882 echo "/usr/ucb/cc. You should change your PATH or CC "
2883 echo "variable and rerun configure."
2884 else
2885 echo "Warning: compilation may fail because you're using"
2886 echo "/usr/ucb/cc, when you should use the C compiler from"
2887 echo "$could_use. You should change your"
2888 echo "PATH or CC variable and rerun configure."
2889 fi
2890 fi
2891 ;;
2892 esac
2893
2894 case "${host}" in
2895 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2896 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
2897 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2898 esac
2899
2900 # Record target_configdirs and the configure arguments for target and
2901 # build configuration in Makefile.
2902 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2903 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
2904
2905 # Determine whether gdb needs tk/tcl or not.
2906 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2907 # and in that case we want gdb to be built without tk. Ugh!
2908 # In fact I believe gdb is the *only* package directly dependent on tk,
2909 # so we should be able to put the 'maybe's in unconditionally and
2910 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2911 # 100% sure that that's safe though.
2912
2913 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
2914 case "$enable_gdbtk" in
2915 no)
2916 GDB_TK="" ;;
2917 yes)
2918 GDB_TK="${gdb_tk}" ;;
2919 *)
2920 # Only add the dependency on gdbtk when GDBtk is part of the gdb
2921 # distro. Eventually someone will fix this and move Insight, nee
2922 # gdbtk to a separate directory.
2923 if test -d ${srcdir}/gdb/gdbtk ; then
2924 GDB_TK="${gdb_tk}"
2925 else
2926 GDB_TK=""
2927 fi
2928 ;;
2929 esac
2930 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
2931 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
2932
2933 # Strip out unwanted targets.
2934
2935 # While at that, we remove Makefiles if we were started for recursive
2936 # configuration, so that the top-level Makefile reconfigures them,
2937 # like we used to do when configure itself was recursive.
2938
2939 # Loop over modules. $extrasub must be used with care, limiting as
2940 # much as possible the usage of range addresses. That's because autoconf
2941 # splits the sed script to overcome limits in the number of commands,
2942 # and relying on carefully-timed sed passes may turn out to be very hard
2943 # to maintain later. In this particular case, you just have to be careful
2944 # not to nest @if/@endif pairs, because configure will not warn you at all.
2945
2946 # Check whether --enable-bootstrap or --disable-bootstrap was given.
2947 if test "${enable_bootstrap+set}" = set; then
2948 enableval="$enable_bootstrap"
2949 :
2950 else
2951 enable_bootstrap=default
2952 fi
2953
2954
2955 # Issue errors and warnings for invalid/strange bootstrap combinations.
2956 case "$configdirs" in
2957 *gcc*) have_compiler=yes ;;
2958 *) have_compiler=no ;;
2959 esac
2960
2961 case "$have_compiler:$host:$target:$enable_bootstrap" in
2962 *:*:*:no) ;;
2963
2964 # Default behavior. Enable bootstrap if we have a compiler
2965 # and we are in a native configuration.
2966 yes:$build:$build:default)
2967 enable_bootstrap=yes ;;
2968
2969 *:*:*:default)
2970 enable_bootstrap=no ;;
2971
2972 # We have a compiler and we are in a native configuration, bootstrap is ok
2973 yes:$build:$build:yes | yes:$build:$build:lean)
2974 ;;
2975
2976 # Other configurations, but we have a compiler. Assume the user knows
2977 # what he's doing.
2978 yes:*:*:yes | yes:*:*:lean)
2979 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
2980 ;;
2981
2982 # No compiler: if they passed --enable-bootstrap explicitly, fail
2983 no:*:*:yes | no:*:*:lean)
2984 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
2985
2986 # Fail if wrong command line
2987 *)
2988 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
2989 ;;
2990 esac
2991
2992 # Adjust the toplevel makefile according to whether bootstrap was selected.
2993 case "$enable_bootstrap" in
2994 yes)
2995 bootstrap_lean='#'
2996 bootstrap_suffix=bootstrap ;;
2997 lean)
2998 bootstrap_lean=''
2999 bootstrap_suffix=bootstrap ;;
3000 no)
3001 bootstrap_suffix=no-bootstrap ;;
3002 esac
3003
3004
3005 for module in ${build_configdirs} ; do
3006 if test -z "${no_recursion}" \
3007 && test -f ${build_subdir}/${module}/Makefile; then
3008 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3009 rm -f ${build_subdir}/${module}/Makefile
3010 fi
3011 extrasub="$extrasub
3012 /^@if build-$module\$/d
3013 /^@endif build-$module\$/d
3014 /^@if build-$module-$bootstrap_suffix\$/d
3015 /^@endif build-$module-$bootstrap_suffix\$/d"
3016 done
3017 for module in ${configdirs} ; do
3018 if test -z "${no_recursion}" \
3019 && test -f ${module}/Makefile; then
3020 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3021 rm -f ${module}/Makefile
3022 fi
3023 extrasub="$extrasub
3024 /^@if $module\$/d
3025 /^@endif $module\$/d
3026 /^@if $module-$bootstrap_suffix\$/d
3027 /^@endif $module-$bootstrap_suffix\$/d"
3028 done
3029 for module in ${target_configdirs} ; do
3030 if test -z "${no_recursion}" \
3031 && test -f ${target_subdir}/${module}/Makefile; then
3032 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3033 rm -f ${target_subdir}/${module}/Makefile
3034 fi
3035 extrasub="$extrasub
3036 /^@if target-$module\$/d
3037 /^@endif target-$module\$/d
3038 /^@if target-$module-$bootstrap_suffix\$/d
3039 /^@endif target-$module-$bootstrap_suffix\$/d"
3040 done
3041
3042 extrasub="$extrasub
3043 /^@if /,/^@endif /d"
3044
3045 # Create the serialization dependencies. This uses a temporary file.
3046
3047 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3048 if test "${enable_serial_configure+set}" = set; then
3049 enableval="$enable_serial_configure"
3050 :
3051 fi
3052
3053
3054 case ${enable_serial_configure} in
3055 yes)
3056 enable_serial_build_configure=yes
3057 enable_serial_host_configure=yes
3058 enable_serial_target_configure=yes
3059 ;;
3060 esac
3061
3062 # These force 'configure's to be done one at a time, to avoid problems
3063 # with contention over a shared config.cache.
3064 rm -f serdep.tmp
3065 echo '# serdep.tmp' > serdep.tmp
3066 olditem=
3067 test "x${enable_serial_build_configure}" = xyes &&
3068 for item in ${build_configdirs} ; do
3069 case ${olditem} in
3070 "") ;;
3071 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3072 esac
3073 olditem=${item}
3074 done
3075 olditem=
3076 test "x${enable_serial_host_configure}" = xyes &&
3077 for item in ${configdirs} ; do
3078 case ${olditem} in
3079 "") ;;
3080 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3081 esac
3082 olditem=${item}
3083 done
3084 olditem=
3085 test "x${enable_serial_target_configure}" = xyes &&
3086 for item in ${target_configdirs} ; do
3087 case ${olditem} in
3088 "") ;;
3089 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3090 esac
3091 olditem=${item}
3092 done
3093 serialization_dependencies=serdep.tmp
3094
3095
3096 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3097 # target and nonopt. These are the ones we might not want to pass
3098 # down to subconfigures. Also strip program-prefix, program-suffix,
3099 # and program-transform-name, so that we can pass down a consistent
3100 # program-transform-name. If autoconf has put single quotes around
3101 # any of these arguments (because they contain shell metacharacters)
3102 # then this will fail; in practice this only happens for
3103 # --program-transform-name, so be sure to override --program-transform-name
3104 # at the end of the argument list.
3105 # These will be expanded by make, so quote '$'.
3106 cat <<\EOF_SED > conftestsed
3107 s/ --no[^ ]*/ /g
3108 s/ --c[a-z-]*[= ][^ ]*//g
3109 s/ --sr[a-z-]*[= ][^ ]*//g
3110 s/ --ho[a-z-]*[= ][^ ]*//g
3111 s/ --bu[a-z-]*[= ][^ ]*//g
3112 s/ --t[a-z-]*[= ][^ ]*//g
3113 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3114 s/ -cache-file[= ][^ ]*//g
3115 s/ -srcdir[= ][^ ]*//g
3116 s/ -host[= ][^ ]*//g
3117 s/ -build[= ][^ ]*//g
3118 s/ -target[= ][^ ]*//g
3119 s/ -program-prefix[= ][^ ]*//g
3120 s/ -program-suffix[= ][^ ]*//g
3121 s/ -program-transform-name[= ][^ ]*//g
3122 s/ [^' -][^ ]* / /
3123 s/^ *//;s/ *$//
3124 s,\$,$$,g
3125 EOF_SED
3126 sed -f conftestsed <<EOF_SED > conftestsed.out
3127 ${ac_configure_args}
3128 EOF_SED
3129 baseargs=`cat conftestsed.out`
3130 rm -f conftestsed conftestsed.out
3131
3132 # Add in --program-transform-name, after --program-prefix and
3133 # --program-suffix have been applied to it. Autoconf has already
3134 # doubled dollar signs and backslashes in program_transform_name; we want
3135 # the backslashes un-doubled, and then the entire thing wrapped in single
3136 # quotes, because this will be expanded first by make and then by the shell.
3137 # Also, because we want to override the logic in subdir configure scripts to
3138 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3139 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3140 ${program_transform_name}
3141 EOF_SED
3142 gcc_transform_name=`cat conftestsed.out`
3143 rm -f conftestsed.out
3144 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3145
3146 # For the build-side libraries, we just need to pretend we're native,
3147 # and not use the same cache file. Multilibs are neither needed nor
3148 # desired.
3149 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3150
3151 # For host modules, accept cache file option, or specification as blank.
3152 case "${cache_file}" in
3153 "") # empty
3154 cache_file_option="" ;;
3155 /* | [A-Za-z]:[\\/]* ) # absolute path
3156 cache_file_option="--cache-file=${cache_file}" ;;
3157 *) # relative path
3158 cache_file_option="--cache-file=../${cache_file}" ;;
3159 esac
3160
3161 # Host dirs don't like to share a cache file either, horribly enough.
3162 # This seems to be due to autoconf 2.5x stupidity.
3163 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3164
3165 target_configargs=${baseargs}
3166
3167 # Passing a --with-cross-host argument lets the target libraries know
3168 # whether they are being built with a cross-compiler or being built
3169 # native. However, it would be better to use other mechanisms to make the
3170 # sorts of decisions they want to make on this basis. Please consider
3171 # this option to be deprecated. FIXME.
3172 if test x${is_cross_compiler} = xyes ; then
3173 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3174 fi
3175
3176 # Default to --enable-multilib.
3177 if test x${enable_multilib} = x ; then
3178 target_configargs="--enable-multilib ${target_configargs}"
3179 fi
3180
3181 # Pass --with-newlib if appropriate. Note that target_configdirs has
3182 # changed from the earlier setting of with_newlib.
3183 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3184 target_configargs="--with-newlib ${target_configargs}"
3185 fi
3186
3187 # Different target subdirs use different values of certain variables
3188 # (notably CXX). Worse, multilibs use *lots* of different values.
3189 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3190 # it doesn't automatically accept command-line overrides of them.
3191 # This means it's not safe for target subdirs to share a cache file,
3192 # which is disgusting, but there you have it. Hopefully this can be
3193 # fixed in future. It's still worthwhile to use a cache file for each
3194 # directory. I think.
3195
3196 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3197 # We need to pass --target, as newer autoconf's requires consistency
3198 # for target_alias and gcc doesn't manage it consistently.
3199 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3200
3201 FLAGS_FOR_TARGET=
3202 case " $target_configdirs " in
3203 *" newlib "*)
3204 case " $target_configargs " in
3205 *" --with-newlib "*)
3206 case "$target" in
3207 *-cygwin*)
3208 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' ;;
3209 esac
3210
3211 # If we're not building GCC, don't discard standard headers.
3212 if test -d ${srcdir}/gcc; then
3213 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3214
3215 if test "${build}" != "${host}"; then
3216 # On Canadian crosses, CC_FOR_TARGET will have already been set
3217 # by `configure', so we won't have an opportunity to add -Bgcc/
3218 # to it. This is right: we don't want to search that directory
3219 # for binaries, but we want the header files in there, so add
3220 # them explicitly.
3221 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3222
3223 # Someone might think of using the pre-installed headers on
3224 # Canadian crosses, in case the installed compiler is not fully
3225 # compatible with the compiler being built. In this case, it
3226 # would be better to flag an error than risking having
3227 # incompatible object files being constructed. We can't
3228 # guarantee that an error will be flagged, but let's hope the
3229 # compiler will do it, when presented with incompatible header
3230 # files.
3231 fi
3232 fi
3233
3234 case "${target}-${is_cross_compiler}" in
3235 i[3456789]86-*-linux*-no)
3236 # Here host == target, so we don't need to build gcc,
3237 # so we don't want to discard standard headers.
3238 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3239 ;;
3240 *)
3241 # If we're building newlib, use its generic headers last, but search
3242 # for any libc-related directories first (so make it the last -B
3243 # switch).
3244 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3245 ;;
3246 esac
3247 ;;
3248 esac
3249 ;;
3250 esac
3251
3252 # Allow the user to override the flags for
3253 # our build compiler if desired.
3254 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3255
3256 # On Canadian crosses, we'll be searching the right directories for
3257 # the previously-installed cross compiler, so don't bother to add
3258 # flags for directories within the install tree of the compiler
3259 # being built; programs in there won't even run.
3260 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3261 # Search for pre-installed headers if nothing else fits.
3262 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3263 fi
3264
3265 if test "x${use_gnu_ld}" = x &&
3266 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3267 # Arrange for us to find uninstalled linker scripts.
3268 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3269 fi
3270
3271 # Makefile fragments.
3272 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3273 do
3274 eval fragval=\$$frag
3275 if test $fragval != /dev/null; then
3276 eval $frag=${srcdir}/$fragval
3277 fi
3278 done
3279
3280
3281
3282
3283
3284 # Miscellanea: directories, flags, etc.
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294 # Build module lists & subconfigure args.
3295
3296
3297
3298 # Host module lists & subconfigure args.
3299
3300
3301
3302 # Target module lists & subconfigure args.
3303
3304
3305
3306 # Build tools.
3307
3308
3309
3310 # Generate default definitions for YACC, M4, LEX and other programs that run
3311 # on the build machine. These are used if the Makefile can't locate these
3312 # programs in objdir.
3313 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3314
3315 for ac_prog in 'bison -y' byacc yacc
3316 do
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3320 echo "configure:3321: checking for $ac_word" >&5
3321 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3322 echo $ac_n "(cached) $ac_c" 1>&6
3323 else
3324 if test -n "$YACC"; then
3325 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3326 else
3327 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3328 ac_dummy="$PATH"
3329 for ac_dir in $ac_dummy; do
3330 test -z "$ac_dir" && ac_dir=.
3331 if test -f $ac_dir/$ac_word; then
3332 ac_cv_prog_YACC="$ac_prog"
3333 break
3334 fi
3335 done
3336 IFS="$ac_save_ifs"
3337 fi
3338 fi
3339 YACC="$ac_cv_prog_YACC"
3340 if test -n "$YACC"; then
3341 echo "$ac_t""$YACC" 1>&6
3342 else
3343 echo "$ac_t""no" 1>&6
3344 fi
3345
3346 test -n "$YACC" && break
3347 done
3348 test -n "$YACC" || YACC="$MISSING bison -y"
3349
3350 case " $build_configdirs " in
3351 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3352 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3353 esac
3354
3355 for ac_prog in bison
3356 do
3357 # Extract the first word of "$ac_prog", so it can be a program name with args.
3358 set dummy $ac_prog; ac_word=$2
3359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3360 echo "configure:3361: checking for $ac_word" >&5
3361 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3363 else
3364 if test -n "$BISON"; then
3365 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3366 else
3367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3368 ac_dummy="$PATH"
3369 for ac_dir in $ac_dummy; do
3370 test -z "$ac_dir" && ac_dir=.
3371 if test -f $ac_dir/$ac_word; then
3372 ac_cv_prog_BISON="$ac_prog"
3373 break
3374 fi
3375 done
3376 IFS="$ac_save_ifs"
3377 fi
3378 fi
3379 BISON="$ac_cv_prog_BISON"
3380 if test -n "$BISON"; then
3381 echo "$ac_t""$BISON" 1>&6
3382 else
3383 echo "$ac_t""no" 1>&6
3384 fi
3385
3386 test -n "$BISON" && break
3387 done
3388 test -n "$BISON" || BISON="$MISSING bison"
3389
3390 case " $build_configdirs " in
3391 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3392 esac
3393
3394 for ac_prog in gm4 gnum4 m4
3395 do
3396 # Extract the first word of "$ac_prog", so it can be a program name with args.
3397 set dummy $ac_prog; ac_word=$2
3398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3399 echo "configure:3400: checking for $ac_word" >&5
3400 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3402 else
3403 if test -n "$M4"; then
3404 ac_cv_prog_M4="$M4" # Let the user override the test.
3405 else
3406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3407 ac_dummy="$PATH"
3408 for ac_dir in $ac_dummy; do
3409 test -z "$ac_dir" && ac_dir=.
3410 if test -f $ac_dir/$ac_word; then
3411 ac_cv_prog_M4="$ac_prog"
3412 break
3413 fi
3414 done
3415 IFS="$ac_save_ifs"
3416 fi
3417 fi
3418 M4="$ac_cv_prog_M4"
3419 if test -n "$M4"; then
3420 echo "$ac_t""$M4" 1>&6
3421 else
3422 echo "$ac_t""no" 1>&6
3423 fi
3424
3425 test -n "$M4" && break
3426 done
3427 test -n "$M4" || M4="$MISSING m4"
3428
3429 case " $build_configdirs " in
3430 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3431 esac
3432
3433 for ac_prog in flex lex
3434 do
3435 # Extract the first word of "$ac_prog", so it can be a program name with args.
3436 set dummy $ac_prog; ac_word=$2
3437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3438 echo "configure:3439: checking for $ac_word" >&5
3439 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3441 else
3442 if test -n "$LEX"; then
3443 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3444 else
3445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3446 ac_dummy="$PATH"
3447 for ac_dir in $ac_dummy; do
3448 test -z "$ac_dir" && ac_dir=.
3449 if test -f $ac_dir/$ac_word; then
3450 ac_cv_prog_LEX="$ac_prog"
3451 break
3452 fi
3453 done
3454 IFS="$ac_save_ifs"
3455 fi
3456 fi
3457 LEX="$ac_cv_prog_LEX"
3458 if test -n "$LEX"; then
3459 echo "$ac_t""$LEX" 1>&6
3460 else
3461 echo "$ac_t""no" 1>&6
3462 fi
3463
3464 test -n "$LEX" && break
3465 done
3466 test -n "$LEX" || LEX="$MISSING flex"
3467
3468 case " $build_configdirs " in
3469 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3470 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3471 esac
3472
3473 for ac_prog in flex
3474 do
3475 # Extract the first word of "$ac_prog", so it can be a program name with args.
3476 set dummy $ac_prog; ac_word=$2
3477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3478 echo "configure:3479: checking for $ac_word" >&5
3479 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3481 else
3482 if test -n "$FLEX"; then
3483 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3484 else
3485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3486 ac_dummy="$PATH"
3487 for ac_dir in $ac_dummy; do
3488 test -z "$ac_dir" && ac_dir=.
3489 if test -f $ac_dir/$ac_word; then
3490 ac_cv_prog_FLEX="$ac_prog"
3491 break
3492 fi
3493 done
3494 IFS="$ac_save_ifs"
3495 fi
3496 fi
3497 FLEX="$ac_cv_prog_FLEX"
3498 if test -n "$FLEX"; then
3499 echo "$ac_t""$FLEX" 1>&6
3500 else
3501 echo "$ac_t""no" 1>&6
3502 fi
3503
3504 test -n "$FLEX" && break
3505 done
3506 test -n "$FLEX" || FLEX="$MISSING flex"
3507
3508 case " $build_configdirs " in
3509 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3510 esac
3511
3512 for ac_prog in makeinfo
3513 do
3514 # Extract the first word of "$ac_prog", so it can be a program name with args.
3515 set dummy $ac_prog; ac_word=$2
3516 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3517 echo "configure:3518: checking for $ac_word" >&5
3518 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3519 echo $ac_n "(cached) $ac_c" 1>&6
3520 else
3521 if test -n "$MAKEINFO"; then
3522 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3523 else
3524 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3525 ac_dummy="$PATH"
3526 for ac_dir in $ac_dummy; do
3527 test -z "$ac_dir" && ac_dir=.
3528 if test -f $ac_dir/$ac_word; then
3529 ac_cv_prog_MAKEINFO="$ac_prog"
3530 break
3531 fi
3532 done
3533 IFS="$ac_save_ifs"
3534 fi
3535 fi
3536 MAKEINFO="$ac_cv_prog_MAKEINFO"
3537 if test -n "$MAKEINFO"; then
3538 echo "$ac_t""$MAKEINFO" 1>&6
3539 else
3540 echo "$ac_t""no" 1>&6
3541 fi
3542
3543 test -n "$MAKEINFO" && break
3544 done
3545 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3546
3547 case " $build_configdirs " in
3548 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3549 *)
3550
3551 # For an installed makeinfo, we require it to be from texinfo 4.2 or
3552 # higher, else we use the "missing" dummy.
3553 if ${MAKEINFO} --version \
3554 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])' >/dev/null 2>&1; then
3555 :
3556 else
3557 MAKEINFO="$MISSING makeinfo"
3558 fi
3559 ;;
3560
3561 esac
3562
3563 # FIXME: expect and dejagnu may become build tools?
3564
3565 for ac_prog in expect
3566 do
3567 # Extract the first word of "$ac_prog", so it can be a program name with args.
3568 set dummy $ac_prog; ac_word=$2
3569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3570 echo "configure:3571: checking for $ac_word" >&5
3571 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3572 echo $ac_n "(cached) $ac_c" 1>&6
3573 else
3574 if test -n "$EXPECT"; then
3575 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3576 else
3577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3578 ac_dummy="$PATH"
3579 for ac_dir in $ac_dummy; do
3580 test -z "$ac_dir" && ac_dir=.
3581 if test -f $ac_dir/$ac_word; then
3582 ac_cv_prog_EXPECT="$ac_prog"
3583 break
3584 fi
3585 done
3586 IFS="$ac_save_ifs"
3587 fi
3588 fi
3589 EXPECT="$ac_cv_prog_EXPECT"
3590 if test -n "$EXPECT"; then
3591 echo "$ac_t""$EXPECT" 1>&6
3592 else
3593 echo "$ac_t""no" 1>&6
3594 fi
3595
3596 test -n "$EXPECT" && break
3597 done
3598 test -n "$EXPECT" || EXPECT="expect"
3599
3600 case " $configdirs " in
3601 *" expect "*)
3602 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3603 ;;
3604 esac
3605
3606 for ac_prog in runtest
3607 do
3608 # Extract the first word of "$ac_prog", so it can be a program name with args.
3609 set dummy $ac_prog; ac_word=$2
3610 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3611 echo "configure:3612: checking for $ac_word" >&5
3612 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3613 echo $ac_n "(cached) $ac_c" 1>&6
3614 else
3615 if test -n "$RUNTEST"; then
3616 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3617 else
3618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3619 ac_dummy="$PATH"
3620 for ac_dir in $ac_dummy; do
3621 test -z "$ac_dir" && ac_dir=.
3622 if test -f $ac_dir/$ac_word; then
3623 ac_cv_prog_RUNTEST="$ac_prog"
3624 break
3625 fi
3626 done
3627 IFS="$ac_save_ifs"
3628 fi
3629 fi
3630 RUNTEST="$ac_cv_prog_RUNTEST"
3631 if test -n "$RUNTEST"; then
3632 echo "$ac_t""$RUNTEST" 1>&6
3633 else
3634 echo "$ac_t""no" 1>&6
3635 fi
3636
3637 test -n "$RUNTEST" && break
3638 done
3639 test -n "$RUNTEST" || RUNTEST="runtest"
3640
3641 case " $configdirs " in
3642 *" dejagnu "*)
3643 test $host = $build && RUNTEST='$$r/$(HOST_SUBDIR)/dejagnu/runtest'
3644 ;;
3645 esac
3646
3647
3648 # Host tools.
3649 ncn_tool_prefix=
3650 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3651 ncn_target_tool_prefix=
3652 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3653
3654 for ncn_progname in ar; do
3655 if test -n "$ncn_tool_prefix"; then
3656 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3657 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3659 echo "configure:3660: checking for $ac_word" >&5
3660 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3662 else
3663 if test -n "$AR"; then
3664 ac_cv_prog_AR="$AR" # Let the user override the test.
3665 else
3666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3667 ac_dummy="$PATH"
3668 for ac_dir in $ac_dummy; do
3669 test -z "$ac_dir" && ac_dir=.
3670 if test -f $ac_dir/$ac_word; then
3671 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3672 break
3673 fi
3674 done
3675 IFS="$ac_save_ifs"
3676 fi
3677 fi
3678 AR="$ac_cv_prog_AR"
3679 if test -n "$AR"; then
3680 echo "$ac_t""$AR" 1>&6
3681 else
3682 echo "$ac_t""no" 1>&6
3683 fi
3684
3685 fi
3686 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3687 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3688 set dummy ${ncn_progname}; ac_word=$2
3689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3690 echo "configure:3691: checking for $ac_word" >&5
3691 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3693 else
3694 if test -n "$AR"; then
3695 ac_cv_prog_AR="$AR" # Let the user override the test.
3696 else
3697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3698 ac_dummy="$PATH"
3699 for ac_dir in $ac_dummy; do
3700 test -z "$ac_dir" && ac_dir=.
3701 if test -f $ac_dir/$ac_word; then
3702 ac_cv_prog_AR="${ncn_progname}"
3703 break
3704 fi
3705 done
3706 IFS="$ac_save_ifs"
3707 fi
3708 fi
3709 AR="$ac_cv_prog_AR"
3710 if test -n "$AR"; then
3711 echo "$ac_t""$AR" 1>&6
3712 else
3713 echo "$ac_t""no" 1>&6
3714 fi
3715
3716 fi
3717 test -n "$ac_cv_prog_AR" && break
3718 done
3719
3720 if test -z "$ac_cv_prog_AR" ; then
3721 set dummy ar
3722 if test $build = $host ; then
3723 AR="$2"
3724 else
3725 AR="${ncn_tool_prefix}$2"
3726 fi
3727 fi
3728
3729 for ncn_progname in as; do
3730 if test -n "$ncn_tool_prefix"; then
3731 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3732 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3734 echo "configure:3735: checking for $ac_word" >&5
3735 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3736 echo $ac_n "(cached) $ac_c" 1>&6
3737 else
3738 if test -n "$AS"; then
3739 ac_cv_prog_AS="$AS" # Let the user override the test.
3740 else
3741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3742 ac_dummy="$PATH"
3743 for ac_dir in $ac_dummy; do
3744 test -z "$ac_dir" && ac_dir=.
3745 if test -f $ac_dir/$ac_word; then
3746 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3747 break
3748 fi
3749 done
3750 IFS="$ac_save_ifs"
3751 fi
3752 fi
3753 AS="$ac_cv_prog_AS"
3754 if test -n "$AS"; then
3755 echo "$ac_t""$AS" 1>&6
3756 else
3757 echo "$ac_t""no" 1>&6
3758 fi
3759
3760 fi
3761 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3763 set dummy ${ncn_progname}; ac_word=$2
3764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3765 echo "configure:3766: checking for $ac_word" >&5
3766 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3768 else
3769 if test -n "$AS"; then
3770 ac_cv_prog_AS="$AS" # Let the user override the test.
3771 else
3772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3773 ac_dummy="$PATH"
3774 for ac_dir in $ac_dummy; do
3775 test -z "$ac_dir" && ac_dir=.
3776 if test -f $ac_dir/$ac_word; then
3777 ac_cv_prog_AS="${ncn_progname}"
3778 break
3779 fi
3780 done
3781 IFS="$ac_save_ifs"
3782 fi
3783 fi
3784 AS="$ac_cv_prog_AS"
3785 if test -n "$AS"; then
3786 echo "$ac_t""$AS" 1>&6
3787 else
3788 echo "$ac_t""no" 1>&6
3789 fi
3790
3791 fi
3792 test -n "$ac_cv_prog_AS" && break
3793 done
3794
3795 if test -z "$ac_cv_prog_AS" ; then
3796 set dummy as
3797 if test $build = $host ; then
3798 AS="$2"
3799 else
3800 AS="${ncn_tool_prefix}$2"
3801 fi
3802 fi
3803
3804 for ncn_progname in dlltool; do
3805 if test -n "$ncn_tool_prefix"; then
3806 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3807 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3809 echo "configure:3810: checking for $ac_word" >&5
3810 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3812 else
3813 if test -n "$DLLTOOL"; then
3814 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3815 else
3816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3817 ac_dummy="$PATH"
3818 for ac_dir in $ac_dummy; do
3819 test -z "$ac_dir" && ac_dir=.
3820 if test -f $ac_dir/$ac_word; then
3821 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3822 break
3823 fi
3824 done
3825 IFS="$ac_save_ifs"
3826 fi
3827 fi
3828 DLLTOOL="$ac_cv_prog_DLLTOOL"
3829 if test -n "$DLLTOOL"; then
3830 echo "$ac_t""$DLLTOOL" 1>&6
3831 else
3832 echo "$ac_t""no" 1>&6
3833 fi
3834
3835 fi
3836 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3837 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3838 set dummy ${ncn_progname}; ac_word=$2
3839 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3840 echo "configure:3841: checking for $ac_word" >&5
3841 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3842 echo $ac_n "(cached) $ac_c" 1>&6
3843 else
3844 if test -n "$DLLTOOL"; then
3845 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3846 else
3847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3848 ac_dummy="$PATH"
3849 for ac_dir in $ac_dummy; do
3850 test -z "$ac_dir" && ac_dir=.
3851 if test -f $ac_dir/$ac_word; then
3852 ac_cv_prog_DLLTOOL="${ncn_progname}"
3853 break
3854 fi
3855 done
3856 IFS="$ac_save_ifs"
3857 fi
3858 fi
3859 DLLTOOL="$ac_cv_prog_DLLTOOL"
3860 if test -n "$DLLTOOL"; then
3861 echo "$ac_t""$DLLTOOL" 1>&6
3862 else
3863 echo "$ac_t""no" 1>&6
3864 fi
3865
3866 fi
3867 test -n "$ac_cv_prog_DLLTOOL" && break
3868 done
3869
3870 if test -z "$ac_cv_prog_DLLTOOL" ; then
3871 set dummy dlltool
3872 if test $build = $host ; then
3873 DLLTOOL="$2"
3874 else
3875 DLLTOOL="${ncn_tool_prefix}$2"
3876 fi
3877 fi
3878
3879 for ncn_progname in ld; do
3880 if test -n "$ncn_tool_prefix"; then
3881 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3882 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3884 echo "configure:3885: checking for $ac_word" >&5
3885 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3887 else
3888 if test -n "$LD"; then
3889 ac_cv_prog_LD="$LD" # Let the user override the test.
3890 else
3891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3892 ac_dummy="$PATH"
3893 for ac_dir in $ac_dummy; do
3894 test -z "$ac_dir" && ac_dir=.
3895 if test -f $ac_dir/$ac_word; then
3896 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3897 break
3898 fi
3899 done
3900 IFS="$ac_save_ifs"
3901 fi
3902 fi
3903 LD="$ac_cv_prog_LD"
3904 if test -n "$LD"; then
3905 echo "$ac_t""$LD" 1>&6
3906 else
3907 echo "$ac_t""no" 1>&6
3908 fi
3909
3910 fi
3911 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
3912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3913 set dummy ${ncn_progname}; ac_word=$2
3914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3915 echo "configure:3916: checking for $ac_word" >&5
3916 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3917 echo $ac_n "(cached) $ac_c" 1>&6
3918 else
3919 if test -n "$LD"; then
3920 ac_cv_prog_LD="$LD" # Let the user override the test.
3921 else
3922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3923 ac_dummy="$PATH"
3924 for ac_dir in $ac_dummy; do
3925 test -z "$ac_dir" && ac_dir=.
3926 if test -f $ac_dir/$ac_word; then
3927 ac_cv_prog_LD="${ncn_progname}"
3928 break
3929 fi
3930 done
3931 IFS="$ac_save_ifs"
3932 fi
3933 fi
3934 LD="$ac_cv_prog_LD"
3935 if test -n "$LD"; then
3936 echo "$ac_t""$LD" 1>&6
3937 else
3938 echo "$ac_t""no" 1>&6
3939 fi
3940
3941 fi
3942 test -n "$ac_cv_prog_LD" && break
3943 done
3944
3945 if test -z "$ac_cv_prog_LD" ; then
3946 set dummy ld
3947 if test $build = $host ; then
3948 LD="$2"
3949 else
3950 LD="${ncn_tool_prefix}$2"
3951 fi
3952 fi
3953
3954 for ncn_progname in lipo; do
3955 if test -n "$ncn_tool_prefix"; then
3956 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3957 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3959 echo "configure:3960: checking for $ac_word" >&5
3960 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
3961 echo $ac_n "(cached) $ac_c" 1>&6
3962 else
3963 if test -n "$LIPO"; then
3964 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
3965 else
3966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3967 ac_dummy="$PATH"
3968 for ac_dir in $ac_dummy; do
3969 test -z "$ac_dir" && ac_dir=.
3970 if test -f $ac_dir/$ac_word; then
3971 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
3972 break
3973 fi
3974 done
3975 IFS="$ac_save_ifs"
3976 fi
3977 fi
3978 LIPO="$ac_cv_prog_LIPO"
3979 if test -n "$LIPO"; then
3980 echo "$ac_t""$LIPO" 1>&6
3981 else
3982 echo "$ac_t""no" 1>&6
3983 fi
3984
3985 fi
3986 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
3987 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3988 set dummy ${ncn_progname}; ac_word=$2
3989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3990 echo "configure:3991: checking for $ac_word" >&5
3991 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
3992 echo $ac_n "(cached) $ac_c" 1>&6
3993 else
3994 if test -n "$LIPO"; then
3995 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
3996 else
3997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3998 ac_dummy="$PATH"
3999 for ac_dir in $ac_dummy; do
4000 test -z "$ac_dir" && ac_dir=.
4001 if test -f $ac_dir/$ac_word; then
4002 ac_cv_prog_LIPO="${ncn_progname}"
4003 break
4004 fi
4005 done
4006 IFS="$ac_save_ifs"
4007 fi
4008 fi
4009 LIPO="$ac_cv_prog_LIPO"
4010 if test -n "$LIPO"; then
4011 echo "$ac_t""$LIPO" 1>&6
4012 else
4013 echo "$ac_t""no" 1>&6
4014 fi
4015
4016 fi
4017 test -n "$ac_cv_prog_LIPO" && break
4018 done
4019
4020 if test -z "$ac_cv_prog_LIPO" ; then
4021 set dummy lipo
4022 if test $build = $host ; then
4023 LIPO="$2"
4024 else
4025 LIPO="${ncn_tool_prefix}$2"
4026 fi
4027 fi
4028
4029 for ncn_progname in nm; do
4030 if test -n "$ncn_tool_prefix"; then
4031 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4032 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4034 echo "configure:4035: checking for $ac_word" >&5
4035 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4036 echo $ac_n "(cached) $ac_c" 1>&6
4037 else
4038 if test -n "$NM"; then
4039 ac_cv_prog_NM="$NM" # Let the user override the test.
4040 else
4041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4042 ac_dummy="$PATH"
4043 for ac_dir in $ac_dummy; do
4044 test -z "$ac_dir" && ac_dir=.
4045 if test -f $ac_dir/$ac_word; then
4046 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4047 break
4048 fi
4049 done
4050 IFS="$ac_save_ifs"
4051 fi
4052 fi
4053 NM="$ac_cv_prog_NM"
4054 if test -n "$NM"; then
4055 echo "$ac_t""$NM" 1>&6
4056 else
4057 echo "$ac_t""no" 1>&6
4058 fi
4059
4060 fi
4061 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4063 set dummy ${ncn_progname}; ac_word=$2
4064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4065 echo "configure:4066: checking for $ac_word" >&5
4066 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4068 else
4069 if test -n "$NM"; then
4070 ac_cv_prog_NM="$NM" # Let the user override the test.
4071 else
4072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4073 ac_dummy="$PATH"
4074 for ac_dir in $ac_dummy; do
4075 test -z "$ac_dir" && ac_dir=.
4076 if test -f $ac_dir/$ac_word; then
4077 ac_cv_prog_NM="${ncn_progname}"
4078 break
4079 fi
4080 done
4081 IFS="$ac_save_ifs"
4082 fi
4083 fi
4084 NM="$ac_cv_prog_NM"
4085 if test -n "$NM"; then
4086 echo "$ac_t""$NM" 1>&6
4087 else
4088 echo "$ac_t""no" 1>&6
4089 fi
4090
4091 fi
4092 test -n "$ac_cv_prog_NM" && break
4093 done
4094
4095 if test -z "$ac_cv_prog_NM" ; then
4096 set dummy nm
4097 if test $build = $host ; then
4098 NM="$2"
4099 else
4100 NM="${ncn_tool_prefix}$2"
4101 fi
4102 fi
4103
4104 for ncn_progname in ranlib; do
4105 if test -n "$ncn_tool_prefix"; then
4106 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4107 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4109 echo "configure:4110: checking for $ac_word" >&5
4110 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4111 echo $ac_n "(cached) $ac_c" 1>&6
4112 else
4113 if test -n "$RANLIB"; then
4114 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4115 else
4116 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4117 ac_dummy="$PATH"
4118 for ac_dir in $ac_dummy; do
4119 test -z "$ac_dir" && ac_dir=.
4120 if test -f $ac_dir/$ac_word; then
4121 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4122 break
4123 fi
4124 done
4125 IFS="$ac_save_ifs"
4126 fi
4127 fi
4128 RANLIB="$ac_cv_prog_RANLIB"
4129 if test -n "$RANLIB"; then
4130 echo "$ac_t""$RANLIB" 1>&6
4131 else
4132 echo "$ac_t""no" 1>&6
4133 fi
4134
4135 fi
4136 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4138 set dummy ${ncn_progname}; ac_word=$2
4139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4140 echo "configure:4141: checking for $ac_word" >&5
4141 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4142 echo $ac_n "(cached) $ac_c" 1>&6
4143 else
4144 if test -n "$RANLIB"; then
4145 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4146 else
4147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4148 ac_dummy="$PATH"
4149 for ac_dir in $ac_dummy; do
4150 test -z "$ac_dir" && ac_dir=.
4151 if test -f $ac_dir/$ac_word; then
4152 ac_cv_prog_RANLIB="${ncn_progname}"
4153 break
4154 fi
4155 done
4156 IFS="$ac_save_ifs"
4157 fi
4158 fi
4159 RANLIB="$ac_cv_prog_RANLIB"
4160 if test -n "$RANLIB"; then
4161 echo "$ac_t""$RANLIB" 1>&6
4162 else
4163 echo "$ac_t""no" 1>&6
4164 fi
4165
4166 fi
4167 test -n "$ac_cv_prog_RANLIB" && break
4168 done
4169
4170 if test -z "$ac_cv_prog_RANLIB" ; then
4171 RANLIB=":"
4172 fi
4173
4174 for ncn_progname in strip; do
4175 if test -n "$ncn_tool_prefix"; then
4176 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4177 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4178 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4179 echo "configure:4180: checking for $ac_word" >&5
4180 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4181 echo $ac_n "(cached) $ac_c" 1>&6
4182 else
4183 if test -n "$STRIP"; then
4184 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4185 else
4186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4187 ac_dummy="$PATH"
4188 for ac_dir in $ac_dummy; do
4189 test -z "$ac_dir" && ac_dir=.
4190 if test -f $ac_dir/$ac_word; then
4191 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4192 break
4193 fi
4194 done
4195 IFS="$ac_save_ifs"
4196 fi
4197 fi
4198 STRIP="$ac_cv_prog_STRIP"
4199 if test -n "$STRIP"; then
4200 echo "$ac_t""$STRIP" 1>&6
4201 else
4202 echo "$ac_t""no" 1>&6
4203 fi
4204
4205 fi
4206 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4208 set dummy ${ncn_progname}; ac_word=$2
4209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4210 echo "configure:4211: checking for $ac_word" >&5
4211 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4213 else
4214 if test -n "$STRIP"; then
4215 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4216 else
4217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4218 ac_dummy="$PATH"
4219 for ac_dir in $ac_dummy; do
4220 test -z "$ac_dir" && ac_dir=.
4221 if test -f $ac_dir/$ac_word; then
4222 ac_cv_prog_STRIP="${ncn_progname}"
4223 break
4224 fi
4225 done
4226 IFS="$ac_save_ifs"
4227 fi
4228 fi
4229 STRIP="$ac_cv_prog_STRIP"
4230 if test -n "$STRIP"; then
4231 echo "$ac_t""$STRIP" 1>&6
4232 else
4233 echo "$ac_t""no" 1>&6
4234 fi
4235
4236 fi
4237 test -n "$ac_cv_prog_STRIP" && break
4238 done
4239
4240 if test -z "$ac_cv_prog_STRIP" ; then
4241 STRIP=":"
4242 fi
4243
4244 for ncn_progname in windres; do
4245 if test -n "$ncn_tool_prefix"; then
4246 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4247 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4249 echo "configure:4250: checking for $ac_word" >&5
4250 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4251 echo $ac_n "(cached) $ac_c" 1>&6
4252 else
4253 if test -n "$WINDRES"; then
4254 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4255 else
4256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4257 ac_dummy="$PATH"
4258 for ac_dir in $ac_dummy; do
4259 test -z "$ac_dir" && ac_dir=.
4260 if test -f $ac_dir/$ac_word; then
4261 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4262 break
4263 fi
4264 done
4265 IFS="$ac_save_ifs"
4266 fi
4267 fi
4268 WINDRES="$ac_cv_prog_WINDRES"
4269 if test -n "$WINDRES"; then
4270 echo "$ac_t""$WINDRES" 1>&6
4271 else
4272 echo "$ac_t""no" 1>&6
4273 fi
4274
4275 fi
4276 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4278 set dummy ${ncn_progname}; ac_word=$2
4279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4280 echo "configure:4281: checking for $ac_word" >&5
4281 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4282 echo $ac_n "(cached) $ac_c" 1>&6
4283 else
4284 if test -n "$WINDRES"; then
4285 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4286 else
4287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4288 ac_dummy="$PATH"
4289 for ac_dir in $ac_dummy; do
4290 test -z "$ac_dir" && ac_dir=.
4291 if test -f $ac_dir/$ac_word; then
4292 ac_cv_prog_WINDRES="${ncn_progname}"
4293 break
4294 fi
4295 done
4296 IFS="$ac_save_ifs"
4297 fi
4298 fi
4299 WINDRES="$ac_cv_prog_WINDRES"
4300 if test -n "$WINDRES"; then
4301 echo "$ac_t""$WINDRES" 1>&6
4302 else
4303 echo "$ac_t""no" 1>&6
4304 fi
4305
4306 fi
4307 test -n "$ac_cv_prog_WINDRES" && break
4308 done
4309
4310 if test -z "$ac_cv_prog_WINDRES" ; then
4311 set dummy windres
4312 if test $build = $host ; then
4313 WINDRES="$2"
4314 else
4315 WINDRES="${ncn_tool_prefix}$2"
4316 fi
4317 fi
4318
4319 for ncn_progname in objcopy; do
4320 if test -n "$ncn_tool_prefix"; then
4321 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4322 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4324 echo "configure:4325: checking for $ac_word" >&5
4325 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4327 else
4328 if test -n "$OBJCOPY"; then
4329 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4330 else
4331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4332 ac_dummy="$PATH"
4333 for ac_dir in $ac_dummy; do
4334 test -z "$ac_dir" && ac_dir=.
4335 if test -f $ac_dir/$ac_word; then
4336 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4337 break
4338 fi
4339 done
4340 IFS="$ac_save_ifs"
4341 fi
4342 fi
4343 OBJCOPY="$ac_cv_prog_OBJCOPY"
4344 if test -n "$OBJCOPY"; then
4345 echo "$ac_t""$OBJCOPY" 1>&6
4346 else
4347 echo "$ac_t""no" 1>&6
4348 fi
4349
4350 fi
4351 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4353 set dummy ${ncn_progname}; ac_word=$2
4354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4355 echo "configure:4356: checking for $ac_word" >&5
4356 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4358 else
4359 if test -n "$OBJCOPY"; then
4360 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4361 else
4362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4363 ac_dummy="$PATH"
4364 for ac_dir in $ac_dummy; do
4365 test -z "$ac_dir" && ac_dir=.
4366 if test -f $ac_dir/$ac_word; then
4367 ac_cv_prog_OBJCOPY="${ncn_progname}"
4368 break
4369 fi
4370 done
4371 IFS="$ac_save_ifs"
4372 fi
4373 fi
4374 OBJCOPY="$ac_cv_prog_OBJCOPY"
4375 if test -n "$OBJCOPY"; then
4376 echo "$ac_t""$OBJCOPY" 1>&6
4377 else
4378 echo "$ac_t""no" 1>&6
4379 fi
4380
4381 fi
4382 test -n "$ac_cv_prog_OBJCOPY" && break
4383 done
4384
4385 if test -z "$ac_cv_prog_OBJCOPY" ; then
4386 set dummy objcopy
4387 if test $build = $host ; then
4388 OBJCOPY="$2"
4389 else
4390 OBJCOPY="${ncn_tool_prefix}$2"
4391 fi
4392 fi
4393
4394 for ncn_progname in objdump; do
4395 if test -n "$ncn_tool_prefix"; then
4396 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4397 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4399 echo "configure:4400: checking for $ac_word" >&5
4400 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4401 echo $ac_n "(cached) $ac_c" 1>&6
4402 else
4403 if test -n "$OBJDUMP"; then
4404 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4405 else
4406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4407 ac_dummy="$PATH"
4408 for ac_dir in $ac_dummy; do
4409 test -z "$ac_dir" && ac_dir=.
4410 if test -f $ac_dir/$ac_word; then
4411 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4412 break
4413 fi
4414 done
4415 IFS="$ac_save_ifs"
4416 fi
4417 fi
4418 OBJDUMP="$ac_cv_prog_OBJDUMP"
4419 if test -n "$OBJDUMP"; then
4420 echo "$ac_t""$OBJDUMP" 1>&6
4421 else
4422 echo "$ac_t""no" 1>&6
4423 fi
4424
4425 fi
4426 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4428 set dummy ${ncn_progname}; ac_word=$2
4429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4430 echo "configure:4431: checking for $ac_word" >&5
4431 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4432 echo $ac_n "(cached) $ac_c" 1>&6
4433 else
4434 if test -n "$OBJDUMP"; then
4435 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4436 else
4437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4438 ac_dummy="$PATH"
4439 for ac_dir in $ac_dummy; do
4440 test -z "$ac_dir" && ac_dir=.
4441 if test -f $ac_dir/$ac_word; then
4442 ac_cv_prog_OBJDUMP="${ncn_progname}"
4443 break
4444 fi
4445 done
4446 IFS="$ac_save_ifs"
4447 fi
4448 fi
4449 OBJDUMP="$ac_cv_prog_OBJDUMP"
4450 if test -n "$OBJDUMP"; then
4451 echo "$ac_t""$OBJDUMP" 1>&6
4452 else
4453 echo "$ac_t""no" 1>&6
4454 fi
4455
4456 fi
4457 test -n "$ac_cv_prog_OBJDUMP" && break
4458 done
4459
4460 if test -z "$ac_cv_prog_OBJDUMP" ; then
4461 set dummy objdump
4462 if test $build = $host ; then
4463 OBJDUMP="$2"
4464 else
4465 OBJDUMP="${ncn_tool_prefix}$2"
4466 fi
4467 fi
4468
4469
4470
4471
4472
4473
4474
4475 # Target tools.
4476 for ncn_progname in ar; do
4477 if test -n "$ncn_target_tool_prefix"; then
4478 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4479 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4480 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4481 echo "configure:4482: checking for $ac_word" >&5
4482 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4484 else
4485 if test -n "$AR_FOR_TARGET"; then
4486 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4487 else
4488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4489 ac_dummy="$PATH"
4490 for ac_dir in $ac_dummy; do
4491 test -z "$ac_dir" && ac_dir=.
4492 if test -f $ac_dir/$ac_word; then
4493 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4494 break
4495 fi
4496 done
4497 IFS="$ac_save_ifs"
4498 fi
4499 fi
4500 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
4501 if test -n "$AR_FOR_TARGET"; then
4502 echo "$ac_t""$AR_FOR_TARGET" 1>&6
4503 else
4504 echo "$ac_t""no" 1>&6
4505 fi
4506
4507 fi
4508 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
4509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4510 set dummy ${ncn_progname}; ac_word=$2
4511 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4512 echo "configure:4513: checking for $ac_word" >&5
4513 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4514 echo $ac_n "(cached) $ac_c" 1>&6
4515 else
4516 if test -n "$AR_FOR_TARGET"; then
4517 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4518 else
4519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4520 ac_dummy="$PATH"
4521 for ac_dir in $ac_dummy; do
4522 test -z "$ac_dir" && ac_dir=.
4523 if test -f $ac_dir/$ac_word; then
4524 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
4525 break
4526 fi
4527 done
4528 IFS="$ac_save_ifs"
4529 fi
4530 fi
4531 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
4532 if test -n "$AR_FOR_TARGET"; then
4533 echo "$ac_t""$AR_FOR_TARGET" 1>&6
4534 else
4535 echo "$ac_t""no" 1>&6
4536 fi
4537
4538 fi
4539 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
4540 done
4541
4542 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
4543 set dummy ar
4544 if test $build = $target ; then
4545 AR_FOR_TARGET="$2"
4546 else
4547 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
4548 fi
4549 fi
4550
4551 for ncn_progname in as; do
4552 if test -n "$ncn_target_tool_prefix"; then
4553 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4554 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4556 echo "configure:4557: checking for $ac_word" >&5
4557 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
4558 echo $ac_n "(cached) $ac_c" 1>&6
4559 else
4560 if test -n "$AS_FOR_TARGET"; then
4561 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4562 else
4563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4564 ac_dummy="$PATH"
4565 for ac_dir in $ac_dummy; do
4566 test -z "$ac_dir" && ac_dir=.
4567 if test -f $ac_dir/$ac_word; then
4568 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4569 break
4570 fi
4571 done
4572 IFS="$ac_save_ifs"
4573 fi
4574 fi
4575 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4576 if test -n "$AS_FOR_TARGET"; then
4577 echo "$ac_t""$AS_FOR_TARGET" 1>&6
4578 else
4579 echo "$ac_t""no" 1>&6
4580 fi
4581
4582 fi
4583 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
4584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4585 set dummy ${ncn_progname}; ac_word=$2
4586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4587 echo "configure:4588: checking for $ac_word" >&5
4588 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
4589 echo $ac_n "(cached) $ac_c" 1>&6
4590 else
4591 if test -n "$AS_FOR_TARGET"; then
4592 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4593 else
4594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4595 ac_dummy="$PATH"
4596 for ac_dir in $ac_dummy; do
4597 test -z "$ac_dir" && ac_dir=.
4598 if test -f $ac_dir/$ac_word; then
4599 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
4600 break
4601 fi
4602 done
4603 IFS="$ac_save_ifs"
4604 fi
4605 fi
4606 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4607 if test -n "$AS_FOR_TARGET"; then
4608 echo "$ac_t""$AS_FOR_TARGET" 1>&6
4609 else
4610 echo "$ac_t""no" 1>&6
4611 fi
4612
4613 fi
4614 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
4615 done
4616
4617 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
4618 set dummy as
4619 if test $build = $target ; then
4620 AS_FOR_TARGET="$2"
4621 else
4622 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4623 fi
4624 fi
4625
4626 for ncn_progname in cc gcc; do
4627 if test -n "$ncn_target_tool_prefix"; then
4628 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4629 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4631 echo "configure:4632: checking for $ac_word" >&5
4632 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4633 echo $ac_n "(cached) $ac_c" 1>&6
4634 else
4635 if test -n "$CC_FOR_TARGET"; then
4636 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4637 else
4638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4639 ac_dummy="$PATH"
4640 for ac_dir in $ac_dummy; do
4641 test -z "$ac_dir" && ac_dir=.
4642 if test -f $ac_dir/$ac_word; then
4643 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4644 break
4645 fi
4646 done
4647 IFS="$ac_save_ifs"
4648 fi
4649 fi
4650 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4651 if test -n "$CC_FOR_TARGET"; then
4652 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4653 else
4654 echo "$ac_t""no" 1>&6
4655 fi
4656
4657 fi
4658 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4660 set dummy ${ncn_progname}; ac_word=$2
4661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4662 echo "configure:4663: checking for $ac_word" >&5
4663 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4664 echo $ac_n "(cached) $ac_c" 1>&6
4665 else
4666 if test -n "$CC_FOR_TARGET"; then
4667 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4668 else
4669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4670 ac_dummy="$PATH"
4671 for ac_dir in $ac_dummy; do
4672 test -z "$ac_dir" && ac_dir=.
4673 if test -f $ac_dir/$ac_word; then
4674 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4675 break
4676 fi
4677 done
4678 IFS="$ac_save_ifs"
4679 fi
4680 fi
4681 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4682 if test -n "$CC_FOR_TARGET"; then
4683 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4684 else
4685 echo "$ac_t""no" 1>&6
4686 fi
4687
4688 fi
4689 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4690 done
4691
4692 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4693 set dummy cc gcc
4694 if test $build = $target ; then
4695 CC_FOR_TARGET="$2"
4696 else
4697 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4698 fi
4699 fi
4700
4701 for ncn_progname in c++ g++ cxx gxx; do
4702 if test -n "$ncn_target_tool_prefix"; then
4703 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4704 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4706 echo "configure:4707: checking for $ac_word" >&5
4707 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4708 echo $ac_n "(cached) $ac_c" 1>&6
4709 else
4710 if test -n "$CXX_FOR_TARGET"; then
4711 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4712 else
4713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4714 ac_dummy="$PATH"
4715 for ac_dir in $ac_dummy; do
4716 test -z "$ac_dir" && ac_dir=.
4717 if test -f $ac_dir/$ac_word; then
4718 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4719 break
4720 fi
4721 done
4722 IFS="$ac_save_ifs"
4723 fi
4724 fi
4725 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4726 if test -n "$CXX_FOR_TARGET"; then
4727 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4728 else
4729 echo "$ac_t""no" 1>&6
4730 fi
4731
4732 fi
4733 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4735 set dummy ${ncn_progname}; ac_word=$2
4736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4737 echo "configure:4738: checking for $ac_word" >&5
4738 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4739 echo $ac_n "(cached) $ac_c" 1>&6
4740 else
4741 if test -n "$CXX_FOR_TARGET"; then
4742 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4743 else
4744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4745 ac_dummy="$PATH"
4746 for ac_dir in $ac_dummy; do
4747 test -z "$ac_dir" && ac_dir=.
4748 if test -f $ac_dir/$ac_word; then
4749 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4750 break
4751 fi
4752 done
4753 IFS="$ac_save_ifs"
4754 fi
4755 fi
4756 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4757 if test -n "$CXX_FOR_TARGET"; then
4758 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4759 else
4760 echo "$ac_t""no" 1>&6
4761 fi
4762
4763 fi
4764 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4765 done
4766
4767 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4768 set dummy c++ g++ cxx gxx
4769 if test $build = $target ; then
4770 CXX_FOR_TARGET="$2"
4771 else
4772 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4773 fi
4774 fi
4775
4776 for ncn_progname in dlltool; do
4777 if test -n "$ncn_target_tool_prefix"; then
4778 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4779 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4781 echo "configure:4782: checking for $ac_word" >&5
4782 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4783 echo $ac_n "(cached) $ac_c" 1>&6
4784 else
4785 if test -n "$DLLTOOL_FOR_TARGET"; then
4786 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4787 else
4788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4789 ac_dummy="$PATH"
4790 for ac_dir in $ac_dummy; do
4791 test -z "$ac_dir" && ac_dir=.
4792 if test -f $ac_dir/$ac_word; then
4793 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4794 break
4795 fi
4796 done
4797 IFS="$ac_save_ifs"
4798 fi
4799 fi
4800 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4801 if test -n "$DLLTOOL_FOR_TARGET"; then
4802 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4803 else
4804 echo "$ac_t""no" 1>&6
4805 fi
4806
4807 fi
4808 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
4809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4810 set dummy ${ncn_progname}; ac_word=$2
4811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4812 echo "configure:4813: checking for $ac_word" >&5
4813 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4815 else
4816 if test -n "$DLLTOOL_FOR_TARGET"; then
4817 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4818 else
4819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4820 ac_dummy="$PATH"
4821 for ac_dir in $ac_dummy; do
4822 test -z "$ac_dir" && ac_dir=.
4823 if test -f $ac_dir/$ac_word; then
4824 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
4825 break
4826 fi
4827 done
4828 IFS="$ac_save_ifs"
4829 fi
4830 fi
4831 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4832 if test -n "$DLLTOOL_FOR_TARGET"; then
4833 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4834 else
4835 echo "$ac_t""no" 1>&6
4836 fi
4837
4838 fi
4839 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
4840 done
4841
4842 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
4843 set dummy dlltool
4844 if test $build = $target ; then
4845 DLLTOOL_FOR_TARGET="$2"
4846 else
4847 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
4848 fi
4849 fi
4850
4851 for ncn_progname in gcc; do
4852 if test -n "$ncn_target_tool_prefix"; then
4853 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4854 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4856 echo "configure:4857: checking for $ac_word" >&5
4857 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4858 echo $ac_n "(cached) $ac_c" 1>&6
4859 else
4860 if test -n "$GCC_FOR_TARGET"; then
4861 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4862 else
4863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4864 ac_dummy="$PATH"
4865 for ac_dir in $ac_dummy; do
4866 test -z "$ac_dir" && ac_dir=.
4867 if test -f $ac_dir/$ac_word; then
4868 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4869 break
4870 fi
4871 done
4872 IFS="$ac_save_ifs"
4873 fi
4874 fi
4875 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4876 if test -n "$GCC_FOR_TARGET"; then
4877 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4878 else
4879 echo "$ac_t""no" 1>&6
4880 fi
4881
4882 fi
4883 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4885 set dummy ${ncn_progname}; ac_word=$2
4886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4887 echo "configure:4888: checking for $ac_word" >&5
4888 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4889 echo $ac_n "(cached) $ac_c" 1>&6
4890 else
4891 if test -n "$GCC_FOR_TARGET"; then
4892 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4893 else
4894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4895 ac_dummy="$PATH"
4896 for ac_dir in $ac_dummy; do
4897 test -z "$ac_dir" && ac_dir=.
4898 if test -f $ac_dir/$ac_word; then
4899 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4900 break
4901 fi
4902 done
4903 IFS="$ac_save_ifs"
4904 fi
4905 fi
4906 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4907 if test -n "$GCC_FOR_TARGET"; then
4908 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4909 else
4910 echo "$ac_t""no" 1>&6
4911 fi
4912
4913 fi
4914 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4915 done
4916
4917 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4918 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4919 fi
4920
4921 for ncn_progname in gcj; do
4922 if test -n "$ncn_target_tool_prefix"; then
4923 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4924 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4926 echo "configure:4927: checking for $ac_word" >&5
4927 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4928 echo $ac_n "(cached) $ac_c" 1>&6
4929 else
4930 if test -n "$GCJ_FOR_TARGET"; then
4931 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4932 else
4933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4934 ac_dummy="$PATH"
4935 for ac_dir in $ac_dummy; do
4936 test -z "$ac_dir" && ac_dir=.
4937 if test -f $ac_dir/$ac_word; then
4938 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4939 break
4940 fi
4941 done
4942 IFS="$ac_save_ifs"
4943 fi
4944 fi
4945 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4946 if test -n "$GCJ_FOR_TARGET"; then
4947 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4948 else
4949 echo "$ac_t""no" 1>&6
4950 fi
4951
4952 fi
4953 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4955 set dummy ${ncn_progname}; ac_word=$2
4956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4957 echo "configure:4958: checking for $ac_word" >&5
4958 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4959 echo $ac_n "(cached) $ac_c" 1>&6
4960 else
4961 if test -n "$GCJ_FOR_TARGET"; then
4962 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4963 else
4964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4965 ac_dummy="$PATH"
4966 for ac_dir in $ac_dummy; do
4967 test -z "$ac_dir" && ac_dir=.
4968 if test -f $ac_dir/$ac_word; then
4969 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4970 break
4971 fi
4972 done
4973 IFS="$ac_save_ifs"
4974 fi
4975 fi
4976 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4977 if test -n "$GCJ_FOR_TARGET"; then
4978 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4979 else
4980 echo "$ac_t""no" 1>&6
4981 fi
4982
4983 fi
4984 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4985 done
4986
4987 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4988 set dummy gcj
4989 if test $build = $target ; then
4990 GCJ_FOR_TARGET="$2"
4991 else
4992 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4993 fi
4994 fi
4995
4996 for ncn_progname in gfortran; do
4997 if test -n "$ncn_target_tool_prefix"; then
4998 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4999 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5000 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5001 echo "configure:5002: checking for $ac_word" >&5
5002 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5003 echo $ac_n "(cached) $ac_c" 1>&6
5004 else
5005 if test -n "$GFORTRAN_FOR_TARGET"; then
5006 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5007 else
5008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5009 ac_dummy="$PATH"
5010 for ac_dir in $ac_dummy; do
5011 test -z "$ac_dir" && ac_dir=.
5012 if test -f $ac_dir/$ac_word; then
5013 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5014 break
5015 fi
5016 done
5017 IFS="$ac_save_ifs"
5018 fi
5019 fi
5020 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5021 if test -n "$GFORTRAN_FOR_TARGET"; then
5022 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5023 else
5024 echo "$ac_t""no" 1>&6
5025 fi
5026
5027 fi
5028 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
5029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5030 set dummy ${ncn_progname}; ac_word=$2
5031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5032 echo "configure:5033: checking for $ac_word" >&5
5033 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5034 echo $ac_n "(cached) $ac_c" 1>&6
5035 else
5036 if test -n "$GFORTRAN_FOR_TARGET"; then
5037 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5038 else
5039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5040 ac_dummy="$PATH"
5041 for ac_dir in $ac_dummy; do
5042 test -z "$ac_dir" && ac_dir=.
5043 if test -f $ac_dir/$ac_word; then
5044 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5045 break
5046 fi
5047 done
5048 IFS="$ac_save_ifs"
5049 fi
5050 fi
5051 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5052 if test -n "$GFORTRAN_FOR_TARGET"; then
5053 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5054 else
5055 echo "$ac_t""no" 1>&6
5056 fi
5057
5058 fi
5059 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5060 done
5061
5062 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5063 set dummy gfortran
5064 if test $build = $target ; then
5065 GFORTRAN_FOR_TARGET="$2"
5066 else
5067 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5068 fi
5069 fi
5070
5071 for ncn_progname in ld; do
5072 if test -n "$ncn_target_tool_prefix"; then
5073 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5074 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5076 echo "configure:5077: checking for $ac_word" >&5
5077 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5078 echo $ac_n "(cached) $ac_c" 1>&6
5079 else
5080 if test -n "$LD_FOR_TARGET"; then
5081 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5082 else
5083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5084 ac_dummy="$PATH"
5085 for ac_dir in $ac_dummy; do
5086 test -z "$ac_dir" && ac_dir=.
5087 if test -f $ac_dir/$ac_word; then
5088 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5089 break
5090 fi
5091 done
5092 IFS="$ac_save_ifs"
5093 fi
5094 fi
5095 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5096 if test -n "$LD_FOR_TARGET"; then
5097 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5098 else
5099 echo "$ac_t""no" 1>&6
5100 fi
5101
5102 fi
5103 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5104 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5105 set dummy ${ncn_progname}; ac_word=$2
5106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5107 echo "configure:5108: checking for $ac_word" >&5
5108 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5109 echo $ac_n "(cached) $ac_c" 1>&6
5110 else
5111 if test -n "$LD_FOR_TARGET"; then
5112 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5113 else
5114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5115 ac_dummy="$PATH"
5116 for ac_dir in $ac_dummy; do
5117 test -z "$ac_dir" && ac_dir=.
5118 if test -f $ac_dir/$ac_word; then
5119 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5120 break
5121 fi
5122 done
5123 IFS="$ac_save_ifs"
5124 fi
5125 fi
5126 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5127 if test -n "$LD_FOR_TARGET"; then
5128 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5129 else
5130 echo "$ac_t""no" 1>&6
5131 fi
5132
5133 fi
5134 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5135 done
5136
5137 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5138 set dummy ld
5139 if test $build = $target ; then
5140 LD_FOR_TARGET="$2"
5141 else
5142 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
5143 fi
5144 fi
5145
5146 for ncn_progname in lipo; do
5147 if test -n "$ncn_target_tool_prefix"; then
5148 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5149 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5151 echo "configure:5152: checking for $ac_word" >&5
5152 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5153 echo $ac_n "(cached) $ac_c" 1>&6
5154 else
5155 if test -n "$LIPO_FOR_TARGET"; then
5156 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5157 else
5158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5159 ac_dummy="$PATH"
5160 for ac_dir in $ac_dummy; do
5161 test -z "$ac_dir" && ac_dir=.
5162 if test -f $ac_dir/$ac_word; then
5163 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5164 break
5165 fi
5166 done
5167 IFS="$ac_save_ifs"
5168 fi
5169 fi
5170 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5171 if test -n "$LIPO_FOR_TARGET"; then
5172 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5173 else
5174 echo "$ac_t""no" 1>&6
5175 fi
5176
5177 fi
5178 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5180 set dummy ${ncn_progname}; ac_word=$2
5181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5182 echo "configure:5183: checking for $ac_word" >&5
5183 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5184 echo $ac_n "(cached) $ac_c" 1>&6
5185 else
5186 if test -n "$LIPO_FOR_TARGET"; then
5187 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5188 else
5189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5190 ac_dummy="$PATH"
5191 for ac_dir in $ac_dummy; do
5192 test -z "$ac_dir" && ac_dir=.
5193 if test -f $ac_dir/$ac_word; then
5194 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5195 break
5196 fi
5197 done
5198 IFS="$ac_save_ifs"
5199 fi
5200 fi
5201 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5202 if test -n "$LIPO_FOR_TARGET"; then
5203 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5204 else
5205 echo "$ac_t""no" 1>&6
5206 fi
5207
5208 fi
5209 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5210 done
5211
5212 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5213 set dummy lipo
5214 if test $build = $target ; then
5215 LIPO_FOR_TARGET="$2"
5216 else
5217 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
5218 fi
5219 fi
5220
5221 for ncn_progname in nm; do
5222 if test -n "$ncn_target_tool_prefix"; then
5223 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5224 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5226 echo "configure:5227: checking for $ac_word" >&5
5227 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5228 echo $ac_n "(cached) $ac_c" 1>&6
5229 else
5230 if test -n "$NM_FOR_TARGET"; then
5231 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5232 else
5233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5234 ac_dummy="$PATH"
5235 for ac_dir in $ac_dummy; do
5236 test -z "$ac_dir" && ac_dir=.
5237 if test -f $ac_dir/$ac_word; then
5238 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5239 break
5240 fi
5241 done
5242 IFS="$ac_save_ifs"
5243 fi
5244 fi
5245 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5246 if test -n "$NM_FOR_TARGET"; then
5247 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5248 else
5249 echo "$ac_t""no" 1>&6
5250 fi
5251
5252 fi
5253 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
5254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5255 set dummy ${ncn_progname}; ac_word=$2
5256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5257 echo "configure:5258: checking for $ac_word" >&5
5258 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5260 else
5261 if test -n "$NM_FOR_TARGET"; then
5262 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5263 else
5264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5265 ac_dummy="$PATH"
5266 for ac_dir in $ac_dummy; do
5267 test -z "$ac_dir" && ac_dir=.
5268 if test -f $ac_dir/$ac_word; then
5269 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5270 break
5271 fi
5272 done
5273 IFS="$ac_save_ifs"
5274 fi
5275 fi
5276 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5277 if test -n "$NM_FOR_TARGET"; then
5278 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5279 else
5280 echo "$ac_t""no" 1>&6
5281 fi
5282
5283 fi
5284 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
5285 done
5286
5287 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
5288 set dummy nm
5289 if test $build = $target ; then
5290 NM_FOR_TARGET="$2"
5291 else
5292 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
5293 fi
5294 fi
5295
5296 for ncn_progname in objdump; do
5297 if test -n "$ncn_target_tool_prefix"; then
5298 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5299 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5301 echo "configure:5302: checking for $ac_word" >&5
5302 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5303 echo $ac_n "(cached) $ac_c" 1>&6
5304 else
5305 if test -n "$OBJDUMP_FOR_TARGET"; then
5306 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5307 else
5308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5309 ac_dummy="$PATH"
5310 for ac_dir in $ac_dummy; do
5311 test -z "$ac_dir" && ac_dir=.
5312 if test -f $ac_dir/$ac_word; then
5313 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5314 break
5315 fi
5316 done
5317 IFS="$ac_save_ifs"
5318 fi
5319 fi
5320 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5321 if test -n "$OBJDUMP_FOR_TARGET"; then
5322 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5323 else
5324 echo "$ac_t""no" 1>&6
5325 fi
5326
5327 fi
5328 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
5329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5330 set dummy ${ncn_progname}; ac_word=$2
5331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5332 echo "configure:5333: checking for $ac_word" >&5
5333 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5334 echo $ac_n "(cached) $ac_c" 1>&6
5335 else
5336 if test -n "$OBJDUMP_FOR_TARGET"; then
5337 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5338 else
5339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5340 ac_dummy="$PATH"
5341 for ac_dir in $ac_dummy; do
5342 test -z "$ac_dir" && ac_dir=.
5343 if test -f $ac_dir/$ac_word; then
5344 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5345 break
5346 fi
5347 done
5348 IFS="$ac_save_ifs"
5349 fi
5350 fi
5351 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5352 if test -n "$OBJDUMP_FOR_TARGET"; then
5353 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5354 else
5355 echo "$ac_t""no" 1>&6
5356 fi
5357
5358 fi
5359 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
5360 done
5361
5362 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
5363 set dummy objdump
5364 if test $build = $target ; then
5365 OBJDUMP_FOR_TARGET="$2"
5366 else
5367 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5368 fi
5369 fi
5370
5371 for ncn_progname in ranlib; do
5372 if test -n "$ncn_target_tool_prefix"; then
5373 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5374 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5376 echo "configure:5377: checking for $ac_word" >&5
5377 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5378 echo $ac_n "(cached) $ac_c" 1>&6
5379 else
5380 if test -n "$RANLIB_FOR_TARGET"; then
5381 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
5382 else
5383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5384 ac_dummy="$PATH"
5385 for ac_dir in $ac_dummy; do
5386 test -z "$ac_dir" && ac_dir=.
5387 if test -f $ac_dir/$ac_word; then
5388 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5389 break
5390 fi
5391 done
5392 IFS="$ac_save_ifs"
5393 fi
5394 fi
5395 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
5396 if test -n "$RANLIB_FOR_TARGET"; then
5397 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
5398 else
5399 echo "$ac_t""no" 1>&6
5400 fi
5401
5402 fi
5403 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
5404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5405 set dummy ${ncn_progname}; ac_word=$2
5406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5407 echo "configure:5408: checking for $ac_word" >&5
5408 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5409 echo $ac_n "(cached) $ac_c" 1>&6
5410 else
5411 if test -n "$RANLIB_FOR_TARGET"; then
5412 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
5413 else
5414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5415 ac_dummy="$PATH"
5416 for ac_dir in $ac_dummy; do
5417 test -z "$ac_dir" && ac_dir=.
5418 if test -f $ac_dir/$ac_word; then
5419 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5420 break
5421 fi
5422 done
5423 IFS="$ac_save_ifs"
5424 fi
5425 fi
5426 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
5427 if test -n "$RANLIB_FOR_TARGET"; then
5428 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
5429 else
5430 echo "$ac_t""no" 1>&6
5431 fi
5432
5433 fi
5434 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
5435 done
5436
5437 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
5438 RANLIB_FOR_TARGET=":"
5439 fi
5440
5441 for ncn_progname in strip; do
5442 if test -n "$ncn_target_tool_prefix"; then
5443 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5444 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5445 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5446 echo "configure:5447: checking for $ac_word" >&5
5447 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5448 echo $ac_n "(cached) $ac_c" 1>&6
5449 else
5450 if test -n "$STRIP_FOR_TARGET"; then
5451 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5452 else
5453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5454 ac_dummy="$PATH"
5455 for ac_dir in $ac_dummy; do
5456 test -z "$ac_dir" && ac_dir=.
5457 if test -f $ac_dir/$ac_word; then
5458 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5459 break
5460 fi
5461 done
5462 IFS="$ac_save_ifs"
5463 fi
5464 fi
5465 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
5466 if test -n "$STRIP_FOR_TARGET"; then
5467 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
5468 else
5469 echo "$ac_t""no" 1>&6
5470 fi
5471
5472 fi
5473 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
5474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5475 set dummy ${ncn_progname}; ac_word=$2
5476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5477 echo "configure:5478: checking for $ac_word" >&5
5478 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5479 echo $ac_n "(cached) $ac_c" 1>&6
5480 else
5481 if test -n "$STRIP_FOR_TARGET"; then
5482 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5483 else
5484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5485 ac_dummy="$PATH"
5486 for ac_dir in $ac_dummy; do
5487 test -z "$ac_dir" && ac_dir=.
5488 if test -f $ac_dir/$ac_word; then
5489 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5490 break
5491 fi
5492 done
5493 IFS="$ac_save_ifs"
5494 fi
5495 fi
5496 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
5497 if test -n "$STRIP_FOR_TARGET"; then
5498 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
5499 else
5500 echo "$ac_t""no" 1>&6
5501 fi
5502
5503 fi
5504 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
5505 done
5506
5507 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
5508 set dummy strip
5509 if test $build = $target ; then
5510 STRIP_FOR_TARGET="$2"
5511 else
5512 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5513 fi
5514 fi
5515
5516 for ncn_progname in windres; do
5517 if test -n "$ncn_target_tool_prefix"; then
5518 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5519 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5521 echo "configure:5522: checking for $ac_word" >&5
5522 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5523 echo $ac_n "(cached) $ac_c" 1>&6
5524 else
5525 if test -n "$WINDRES_FOR_TARGET"; then
5526 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
5527 else
5528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5529 ac_dummy="$PATH"
5530 for ac_dir in $ac_dummy; do
5531 test -z "$ac_dir" && ac_dir=.
5532 if test -f $ac_dir/$ac_word; then
5533 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5534 break
5535 fi
5536 done
5537 IFS="$ac_save_ifs"
5538 fi
5539 fi
5540 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
5541 if test -n "$WINDRES_FOR_TARGET"; then
5542 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
5543 else
5544 echo "$ac_t""no" 1>&6
5545 fi
5546
5547 fi
5548 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
5549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5550 set dummy ${ncn_progname}; ac_word=$2
5551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5552 echo "configure:5553: checking for $ac_word" >&5
5553 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5554 echo $ac_n "(cached) $ac_c" 1>&6
5555 else
5556 if test -n "$WINDRES_FOR_TARGET"; then
5557 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
5558 else
5559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5560 ac_dummy="$PATH"
5561 for ac_dir in $ac_dummy; do
5562 test -z "$ac_dir" && ac_dir=.
5563 if test -f $ac_dir/$ac_word; then
5564 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5565 break
5566 fi
5567 done
5568 IFS="$ac_save_ifs"
5569 fi
5570 fi
5571 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
5572 if test -n "$WINDRES_FOR_TARGET"; then
5573 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
5574 else
5575 echo "$ac_t""no" 1>&6
5576 fi
5577
5578 fi
5579 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
5580 done
5581
5582 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
5583 set dummy windres
5584 if test $build = $target ; then
5585 WINDRES_FOR_TARGET="$2"
5586 else
5587 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
5588 fi
5589 fi
5590
5591
5592 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
5593
5594 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
5595 echo "configure:5596: checking where to find the target ar" >&5
5596 if test "x${build}" != "x${host}" ; then
5597 # Canadian cross, just use what we found
5598 echo "$ac_t""pre-installed" 1>&6
5599 else
5600 ok=yes
5601 case " ${configdirs} " in
5602 *" binutils "*) ;;
5603 *) ok=no ;;
5604 esac
5605
5606 if test $ok = yes; then
5607 # An in-tree tool is available and we can use it
5608 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5609 echo "$ac_t""just compiled" 1>&6
5610 elif test "x$target" = "x$host"; then
5611 # We can use an host tool
5612 AR_FOR_TARGET='$(AR)'
5613 echo "$ac_t""host tool" 1>&6
5614 else
5615 # We need a cross tool
5616 echo "$ac_t""pre-installed" 1>&6
5617 fi
5618 fi
5619 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
5620 echo "configure:5621: checking where to find the target as" >&5
5621 if test "x${build}" != "x${host}" ; then
5622 # Canadian cross, just use what we found
5623 echo "$ac_t""pre-installed" 1>&6
5624 else
5625 ok=yes
5626 case " ${configdirs} " in
5627 *" gas "*) ;;
5628 *) ok=no ;;
5629 esac
5630
5631 if test $ok = yes; then
5632 # An in-tree tool is available and we can use it
5633 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5634 echo "$ac_t""just compiled" 1>&6
5635 elif test "x$target" = "x$host"; then
5636 # We can use an host tool
5637 AS_FOR_TARGET='$(AS)'
5638 echo "$ac_t""host tool" 1>&6
5639 else
5640 # We need a cross tool
5641 echo "$ac_t""pre-installed" 1>&6
5642 fi
5643 fi
5644 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
5645 echo "configure:5646: checking where to find the target cc" >&5
5646 if test "x${build}" != "x${host}" ; then
5647 # Canadian cross, just use what we found
5648 echo "$ac_t""pre-installed" 1>&6
5649 else
5650 ok=yes
5651 case " ${configdirs} " in
5652 *" gcc "*) ;;
5653 *) ok=no ;;
5654 esac
5655
5656 if test $ok = yes; then
5657 # An in-tree tool is available and we can use it
5658 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5659 echo "$ac_t""just compiled" 1>&6
5660 elif test "x$target" = "x$host"; then
5661 # We can use an host tool
5662 CC_FOR_TARGET='$(CC)'
5663 echo "$ac_t""host tool" 1>&6
5664 else
5665 # We need a cross tool
5666 echo "$ac_t""pre-installed" 1>&6
5667 fi
5668 fi
5669 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
5670 echo "configure:5671: checking where to find the target c++" >&5
5671 if test "x${build}" != "x${host}" ; then
5672 # Canadian cross, just use what we found
5673 echo "$ac_t""pre-installed" 1>&6
5674 else
5675 ok=yes
5676 case " ${configdirs} " in
5677 *" gcc "*) ;;
5678 *) ok=no ;;
5679 esac
5680 case ,${enable_languages}, in
5681 *,c++,*) ;;
5682 *) ok=no ;;
5683 esac
5684 if test $ok = yes; then
5685 # An in-tree tool is available and we can use it
5686 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'
5687 echo "$ac_t""just compiled" 1>&6
5688 elif test "x$target" = "x$host"; then
5689 # We can use an host tool
5690 CXX_FOR_TARGET='$(CXX)'
5691 echo "$ac_t""host tool" 1>&6
5692 else
5693 # We need a cross tool
5694 echo "$ac_t""pre-installed" 1>&6
5695 fi
5696 fi
5697 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
5698 echo "configure:5699: checking where to find the target c++ for libstdc++" >&5
5699 if test "x${build}" != "x${host}" ; then
5700 # Canadian cross, just use what we found
5701 echo "$ac_t""pre-installed" 1>&6
5702 else
5703 ok=yes
5704 case " ${configdirs} " in
5705 *" gcc "*) ;;
5706 *) ok=no ;;
5707 esac
5708 case ,${enable_languages}, in
5709 *,c++,*) ;;
5710 *) ok=no ;;
5711 esac
5712 if test $ok = yes; then
5713 # An in-tree tool is available and we can use it
5714 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'
5715 echo "$ac_t""just compiled" 1>&6
5716 elif test "x$target" = "x$host"; then
5717 # We can use an host tool
5718 RAW_CXX_FOR_TARGET='$(CXX)'
5719 echo "$ac_t""host tool" 1>&6
5720 else
5721 # We need a cross tool
5722 echo "$ac_t""pre-installed" 1>&6
5723 fi
5724 fi
5725 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
5726 echo "configure:5727: checking where to find the target dlltool" >&5
5727 if test "x${build}" != "x${host}" ; then
5728 # Canadian cross, just use what we found
5729 echo "$ac_t""pre-installed" 1>&6
5730 else
5731 ok=yes
5732 case " ${configdirs} " in
5733 *" binutils "*) ;;
5734 *) ok=no ;;
5735 esac
5736
5737 if test $ok = yes; then
5738 # An in-tree tool is available and we can use it
5739 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5740 echo "$ac_t""just compiled" 1>&6
5741 elif test "x$target" = "x$host"; then
5742 # We can use an host tool
5743 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5744 echo "$ac_t""host tool" 1>&6
5745 else
5746 # We need a cross tool
5747 echo "$ac_t""pre-installed" 1>&6
5748 fi
5749 fi
5750 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
5751 echo "configure:5752: checking where to find the target gcc" >&5
5752 if test "x${build}" != "x${host}" ; then
5753 # Canadian cross, just use what we found
5754 echo "$ac_t""pre-installed" 1>&6
5755 else
5756 ok=yes
5757 case " ${configdirs} " in
5758 *" gcc "*) ;;
5759 *) ok=no ;;
5760 esac
5761
5762 if test $ok = yes; then
5763 # An in-tree tool is available and we can use it
5764 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5765 echo "$ac_t""just compiled" 1>&6
5766 elif test "x$target" = "x$host"; then
5767 # We can use an host tool
5768 GCC_FOR_TARGET='$()'
5769 echo "$ac_t""host tool" 1>&6
5770 else
5771 # We need a cross tool
5772 echo "$ac_t""pre-installed" 1>&6
5773 fi
5774 fi
5775 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
5776 echo "configure:5777: checking where to find the target gcj" >&5
5777 if test "x${build}" != "x${host}" ; then
5778 # Canadian cross, just use what we found
5779 echo "$ac_t""pre-installed" 1>&6
5780 else
5781 ok=yes
5782 case " ${configdirs} " in
5783 *" gcc "*) ;;
5784 *) ok=no ;;
5785 esac
5786 case ,${enable_languages}, in
5787 *,java,*) ;;
5788 *) ok=no ;;
5789 esac
5790 if test $ok = yes; then
5791 # An in-tree tool is available and we can use it
5792 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5793 echo "$ac_t""just compiled" 1>&6
5794 elif test "x$target" = "x$host"; then
5795 # We can use an host tool
5796 GCJ_FOR_TARGET='$(GCJ)'
5797 echo "$ac_t""host tool" 1>&6
5798 else
5799 # We need a cross tool
5800 echo "$ac_t""pre-installed" 1>&6
5801 fi
5802 fi
5803 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
5804 echo "configure:5805: checking where to find the target gfortran" >&5
5805 if test "x${build}" != "x${host}" ; then
5806 # Canadian cross, just use what we found
5807 echo "$ac_t""pre-installed" 1>&6
5808 else
5809 ok=yes
5810 case " ${configdirs} " in
5811 *" gcc "*) ;;
5812 *) ok=no ;;
5813 esac
5814 case ,${enable_languages}, in
5815 *,fortran,*) ;;
5816 *) ok=no ;;
5817 esac
5818 if test $ok = yes; then
5819 # An in-tree tool is available and we can use it
5820 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5821 echo "$ac_t""just compiled" 1>&6
5822 elif test "x$target" = "x$host"; then
5823 # We can use an host tool
5824 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5825 echo "$ac_t""host tool" 1>&6
5826 else
5827 # We need a cross tool
5828 echo "$ac_t""pre-installed" 1>&6
5829 fi
5830 fi
5831 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
5832 echo "configure:5833: checking where to find the target ld" >&5
5833 if test "x${build}" != "x${host}" ; then
5834 # Canadian cross, just use what we found
5835 echo "$ac_t""pre-installed" 1>&6
5836 else
5837 ok=yes
5838 case " ${configdirs} " in
5839 *" ld "*) ;;
5840 *) ok=no ;;
5841 esac
5842
5843 if test $ok = yes; then
5844 # An in-tree tool is available and we can use it
5845 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5846 echo "$ac_t""just compiled" 1>&6
5847 elif test "x$target" = "x$host"; then
5848 # We can use an host tool
5849 LD_FOR_TARGET='$(LD)'
5850 echo "$ac_t""host tool" 1>&6
5851 else
5852 # We need a cross tool
5853 echo "$ac_t""pre-installed" 1>&6
5854 fi
5855 fi
5856 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
5857 echo "configure:5858: checking where to find the target lipo" >&5
5858 if test "x${build}" != "x${host}" ; then
5859 # Canadian cross, just use what we found
5860 echo "$ac_t""pre-installed" 1>&6
5861 else
5862 if test "x$target" = "x$host"; then
5863 # We can use an host tool
5864 LIPO_FOR_TARGET='$(LIPO)'
5865 echo "$ac_t""host tool" 1>&6
5866 else
5867 # We need a cross tool
5868 echo "$ac_t""pre-installed" 1>&6
5869 fi
5870 fi
5871 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
5872 echo "configure:5873: checking where to find the target nm" >&5
5873 if test "x${build}" != "x${host}" ; then
5874 # Canadian cross, just use what we found
5875 echo "$ac_t""pre-installed" 1>&6
5876 else
5877 ok=yes
5878 case " ${configdirs} " in
5879 *" binutils "*) ;;
5880 *) ok=no ;;
5881 esac
5882
5883 if test $ok = yes; then
5884 # An in-tree tool is available and we can use it
5885 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5886 echo "$ac_t""just compiled" 1>&6
5887 elif test "x$target" = "x$host"; then
5888 # We can use an host tool
5889 NM_FOR_TARGET='$(NM)'
5890 echo "$ac_t""host tool" 1>&6
5891 else
5892 # We need a cross tool
5893 echo "$ac_t""pre-installed" 1>&6
5894 fi
5895 fi
5896 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
5897 echo "configure:5898: checking where to find the target objdump" >&5
5898 if test "x${build}" != "x${host}" ; then
5899 # Canadian cross, just use what we found
5900 echo "$ac_t""pre-installed" 1>&6
5901 else
5902 ok=yes
5903 case " ${configdirs} " in
5904 *" binutils "*) ;;
5905 *) ok=no ;;
5906 esac
5907
5908 if test $ok = yes; then
5909 # An in-tree tool is available and we can use it
5910 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5911 echo "$ac_t""just compiled" 1>&6
5912 elif test "x$target" = "x$host"; then
5913 # We can use an host tool
5914 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5915 echo "$ac_t""host tool" 1>&6
5916 else
5917 # We need a cross tool
5918 echo "$ac_t""pre-installed" 1>&6
5919 fi
5920 fi
5921 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
5922 echo "configure:5923: checking where to find the target ranlib" >&5
5923 if test "x${build}" != "x${host}" ; then
5924 # Canadian cross, just use what we found
5925 echo "$ac_t""pre-installed" 1>&6
5926 else
5927 ok=yes
5928 case " ${configdirs} " in
5929 *" binutils "*) ;;
5930 *) ok=no ;;
5931 esac
5932
5933 if test $ok = yes; then
5934 # An in-tree tool is available and we can use it
5935 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5936 echo "$ac_t""just compiled" 1>&6
5937 elif test "x$target" = "x$host"; then
5938 # We can use an host tool
5939 RANLIB_FOR_TARGET='$(RANLIB)'
5940 echo "$ac_t""host tool" 1>&6
5941 else
5942 # We need a cross tool
5943 echo "$ac_t""pre-installed" 1>&6
5944 fi
5945 fi
5946 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
5947 echo "configure:5948: checking where to find the target strip" >&5
5948 if test "x${build}" != "x${host}" ; then
5949 # Canadian cross, just use what we found
5950 echo "$ac_t""pre-installed" 1>&6
5951 else
5952 ok=yes
5953 case " ${configdirs} " in
5954 *" binutils "*) ;;
5955 *) ok=no ;;
5956 esac
5957
5958 if test $ok = yes; then
5959 # An in-tree tool is available and we can use it
5960 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
5961 echo "$ac_t""just compiled" 1>&6
5962 elif test "x$target" = "x$host"; then
5963 # We can use an host tool
5964 STRIP_FOR_TARGET='$(STRIP)'
5965 echo "$ac_t""host tool" 1>&6
5966 else
5967 # We need a cross tool
5968 echo "$ac_t""pre-installed" 1>&6
5969 fi
5970 fi
5971 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
5972 echo "configure:5973: checking where to find the target windres" >&5
5973 if test "x${build}" != "x${host}" ; then
5974 # Canadian cross, just use what we found
5975 echo "$ac_t""pre-installed" 1>&6
5976 else
5977 ok=yes
5978 case " ${configdirs} " in
5979 *" binutils "*) ;;
5980 *) ok=no ;;
5981 esac
5982
5983 if test $ok = yes; then
5984 # An in-tree tool is available and we can use it
5985 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5986 echo "$ac_t""just compiled" 1>&6
5987 elif test "x$target" = "x$host"; then
5988 # We can use an host tool
5989 WINDRES_FOR_TARGET='$(WINDRES)'
5990 echo "$ac_t""host tool" 1>&6
5991 else
5992 # We need a cross tool
5993 echo "$ac_t""pre-installed" 1>&6
5994 fi
5995 fi
5996
5997
5998
5999
6000 # Certain tools may need extra flags.
6001 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
6002 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
6003 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
6004
6005 # When building target libraries, except in a Canadian cross, we use
6006 # the same toolchain as the compiler we just built.
6007 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
6008 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
6009 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
6010 if test $host = $build; then
6011 case " $configdirs " in
6012 *" gcc "*)
6013 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
6014 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
6015 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
6016 ;;
6017 esac
6018 fi
6019
6020
6021
6022
6023
6024 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
6025 echo "configure:6026: checking whether to enable maintainer-specific portions of Makefiles" >&5
6026 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6027 if test "${enable_maintainer_mode+set}" = set; then
6028 enableval="$enable_maintainer_mode"
6029 USE_MAINTAINER_MODE=$enableval
6030 else
6031 USE_MAINTAINER_MODE=no
6032 fi
6033
6034 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
6035
6036
6037 if test "$USE_MAINTAINER_MODE" = yes; then
6038 MAINTAINER_MODE_TRUE=
6039 MAINTAINER_MODE_FALSE='#'
6040 else
6041 MAINTAINER_MODE_TRUE='#'
6042 MAINTAINER_MODE_FALSE=
6043 fi
6044 MAINT=$MAINTAINER_MODE_TRUE
6045
6046 # ---------------------
6047 # GCC bootstrap support
6048 # ---------------------
6049
6050 # Stage specific cflags for build.
6051 stage1_cflags="-g"
6052 case $build in
6053 vax-*-*)
6054 case ${GCC} in
6055 yes) stage1_cflags="-g -Wa,-J" ;;
6056 *) stage1_cflags="-g -J" ;;
6057 esac ;;
6058 powerpc-*-darwin*)
6059 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6060 # sources; use -no-cpp-precomp to get to GNU cpp.
6061 # Apple's GCC has bugs in designated initializer handling, so disable
6062 # that too.
6063 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6064 ;;
6065 esac
6066
6067
6068 # It makes debugging easier if we create as symlinks the stage directories
6069 # gcc for stageN-gcc and stagePREV-gcc for stage(N-1). In case this is not
6070 # possible, however, we can resort to mv.
6071 echo $ac_n "checking if symbolic links between directories work""... $ac_c" 1>&6
6072 echo "configure:6073: checking if symbolic links between directories work" >&5
6073 if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
6074 echo $ac_n "(cached) $ac_c" 1>&6
6075 else
6076 if test "${LN_S}" = "ln -s" \
6077 && mkdir confdir.s1 \
6078 && ln -s confdir.s1 confdir.s2 \
6079 && echo timestamp1 > confdir.s1/conftest.1 \
6080 && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \
6081 && echo timestamp2 > confdir.s2/conftest.2 \
6082 && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \
6083 && rm -f confdir.s2; then
6084 gcc_cv_prog_ln_s_dir=yes
6085 else
6086 gcc_cv_prog_ln_s_dir=no
6087 fi
6088 rm -rf confdir.s1 confdir.s2
6089 fi
6090
6091 echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6
6092
6093 case ${gcc_cv_prog_ln_s_dir} in
6094 yes)
6095 CREATE_LINK_TO_DIR='ln -s $$1 $$2'
6096 UNDO_LINK_TO_DIR='rm -f $$1' ;;
6097 *)
6098 CREATE_LINK_TO_DIR='mv $$1 $$2'
6099 UNDO_LINK_TO_DIR='mv $$1 $$2' ;;
6100 esac
6101
6102
6103
6104 # Enable -Werror in bootstrap stage2 and later.
6105 # Change the default to "no" on release branches.
6106 # Check whether --enable-werror or --disable-werror was given.
6107 if test "${enable_werror+set}" = set; then
6108 enableval="$enable_werror"
6109 :
6110 else
6111 enable_werror=yes
6112 fi
6113
6114 case ${enable_werror} in
6115 yes) stage2_werror_flag="--enable-werror-always" ;;
6116 *) stage2_werror_flag="" ;;
6117 esac
6118
6119
6120 trap '' 1 2 15
6121 cat > confcache <<\EOF
6122 # This file is a shell script that caches the results of configure
6123 # tests run on this system so they can be shared between configure
6124 # scripts and configure runs. It is not useful on other systems.
6125 # If it contains results you don't want to keep, you may remove or edit it.
6126 #
6127 # By default, configure uses ./config.cache as the cache file,
6128 # creating it if it does not exist already. You can give configure
6129 # the --cache-file=FILE option to use a different cache file; that is
6130 # what configure does when it calls configure scripts in
6131 # subdirectories, so they share the cache.
6132 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6133 # config.status only pays attention to the cache file if you give it the
6134 # --recheck option to rerun configure.
6135 #
6136 EOF
6137 # The following way of writing the cache mishandles newlines in values,
6138 # but we know of no workaround that is simple, portable, and efficient.
6139 # So, don't put newlines in cache variables' values.
6140 # Ultrix sh set writes to stderr and can't be redirected directly,
6141 # and sets the high bit in the cache file unless we assign to the vars.
6142 (set) 2>&1 |
6143 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6144 *ac_space=\ *)
6145 # `set' does not quote correctly, so add quotes (double-quote substitution
6146 # turns \\\\ into \\, and sed turns \\ into \).
6147 sed -n \
6148 -e "s/'/'\\\\''/g" \
6149 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6150 ;;
6151 *)
6152 # `set' quotes correctly as required by POSIX, so do not add quotes.
6153 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6154 ;;
6155 esac >> confcache
6156 if cmp -s $cache_file confcache; then
6157 :
6158 else
6159 if test -w $cache_file; then
6160 echo "updating cache $cache_file"
6161 cat confcache > $cache_file
6162 else
6163 echo "not updating unwritable cache $cache_file"
6164 fi
6165 fi
6166 rm -f confcache
6167
6168 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6169
6170 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6171 # Let make expand exec_prefix.
6172 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6173
6174 # Any assignment to VPATH causes Sun make to only execute
6175 # the first set of double-colon rules, so remove it if not needed.
6176 # If there is a colon in the path, we need to keep it.
6177 if test "x$srcdir" = x.; then
6178 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6179 fi
6180
6181 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6182
6183 # Transform confdefs.h into DEFS.
6184 # Protect against shell expansion while executing Makefile rules.
6185 # Protect against Makefile macro expansion.
6186 #
6187 # If the first sed substitution is executed (which looks for macros that
6188 # take arguments), then we branch to the quote section. Otherwise,
6189 # look for a macro that doesn't take arguments.
6190 cat >confdef2opt.sed <<\_ACEOF
6191 t clear
6192 : clear
6193 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
6194 t quote
6195 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
6196 t quote
6197 d
6198 : quote
6199 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
6200 s,\[,\\&,g
6201 s,\],\\&,g
6202 s,\$,$$,g
6203 p
6204 _ACEOF
6205 # We use echo to avoid assuming a particular line-breaking character.
6206 # The extra dot is to prevent the shell from consuming trailing
6207 # line-breaks from the sub-command output. A line-break within
6208 # single-quotes doesn't work because, if this script is created in a
6209 # platform that uses two characters for line-breaks (e.g., DOS), tr
6210 # would break.
6211 ac_LF_and_DOT=`echo; echo .`
6212 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6213 rm -f confdef2opt.sed
6214
6215
6216 # Without the "./", some shells look in PATH for config.status.
6217 : ${CONFIG_STATUS=./config.status}
6218
6219 echo creating $CONFIG_STATUS
6220 rm -f $CONFIG_STATUS
6221 cat > $CONFIG_STATUS <<EOF
6222 #! /bin/sh
6223 # Generated automatically by configure.
6224 # Run this file to recreate the current configuration.
6225 # This directory was configured as follows,
6226 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6227 #
6228 # $0 $ac_configure_args
6229 #
6230 # Compiler output produced by configure, useful for debugging
6231 # configure, is in ./config.log if it exists.
6232
6233 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6234 for ac_option
6235 do
6236 case "\$ac_option" in
6237 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6238 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6239 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6240 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6241 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6242 exit 0 ;;
6243 -help | --help | --hel | --he | --h)
6244 echo "\$ac_cs_usage"; exit 0 ;;
6245 *) echo "\$ac_cs_usage"; exit 1 ;;
6246 esac
6247 done
6248
6249 ac_given_srcdir=$srcdir
6250 ac_given_INSTALL="$INSTALL"
6251
6252 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6253 EOF
6254 cat >> $CONFIG_STATUS <<EOF
6255
6256 # Protect against being on the right side of a sed subst in config.status.
6257 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6258 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6259 $ac_vpsub
6260 $extrasub
6261 s%@SHELL@%$SHELL%g
6262 s%@CFLAGS@%$CFLAGS%g
6263 s%@CPPFLAGS@%$CPPFLAGS%g
6264 s%@CXXFLAGS@%$CXXFLAGS%g
6265 s%@FFLAGS@%$FFLAGS%g
6266 s%@DEFS@%$DEFS%g
6267 s%@LDFLAGS@%$LDFLAGS%g
6268 s%@LIBS@%$LIBS%g
6269 s%@exec_prefix@%$exec_prefix%g
6270 s%@prefix@%$prefix%g
6271 s%@program_transform_name@%$program_transform_name%g
6272 s%@bindir@%$bindir%g
6273 s%@sbindir@%$sbindir%g
6274 s%@libexecdir@%$libexecdir%g
6275 s%@datadir@%$datadir%g
6276 s%@sysconfdir@%$sysconfdir%g
6277 s%@sharedstatedir@%$sharedstatedir%g
6278 s%@localstatedir@%$localstatedir%g
6279 s%@libdir@%$libdir%g
6280 s%@includedir@%$includedir%g
6281 s%@oldincludedir@%$oldincludedir%g
6282 s%@infodir@%$infodir%g
6283 s%@mandir@%$mandir%g
6284 s%@host@%$host%g
6285 s%@host_alias@%$host_alias%g
6286 s%@host_cpu@%$host_cpu%g
6287 s%@host_vendor@%$host_vendor%g
6288 s%@host_os@%$host_os%g
6289 s%@target@%$target%g
6290 s%@target_alias@%$target_alias%g
6291 s%@target_cpu@%$target_cpu%g
6292 s%@target_vendor@%$target_vendor%g
6293 s%@target_os@%$target_os%g
6294 s%@build@%$build%g
6295 s%@build_alias@%$build_alias%g
6296 s%@build_cpu@%$build_cpu%g
6297 s%@build_vendor@%$build_vendor%g
6298 s%@build_os@%$build_os%g
6299 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6300 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6301 s%@INSTALL_DATA@%$INSTALL_DATA%g
6302 s%@LN@%$LN%g
6303 s%@LN_S@%$LN_S%g
6304 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
6305 s%@build_subdir@%$build_subdir%g
6306 s%@host_subdir@%$host_subdir%g
6307 s%@target_subdir@%$target_subdir%g
6308 s%@CC@%$CC%g
6309 s%@GNATBIND@%$GNATBIND%g
6310 s%@do_compare@%$do_compare%g
6311 s%@gmplibs@%$gmplibs%g
6312 s%@gmpinc@%$gmpinc%g
6313 s%@stage1_languages@%$stage1_languages%g
6314 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
6315 s%@bootstrap_lean@%$bootstrap_lean%g
6316 /@serialization_dependencies@/r $serialization_dependencies
6317 s%@serialization_dependencies@%%g
6318 /@host_makefile_frag@/r $host_makefile_frag
6319 s%@host_makefile_frag@%%g
6320 /@target_makefile_frag@/r $target_makefile_frag
6321 s%@target_makefile_frag@%%g
6322 /@alphaieee_frag@/r $alphaieee_frag
6323 s%@alphaieee_frag@%%g
6324 /@ospace_frag@/r $ospace_frag
6325 s%@ospace_frag@%%g
6326 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
6327 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
6328 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
6329 s%@tooldir@%$tooldir%g
6330 s%@build_tooldir@%$build_tooldir%g
6331 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
6332 s%@GDB_TK@%$GDB_TK%g
6333 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
6334 s%@build_configargs@%$build_configargs%g
6335 s%@build_configdirs@%$build_configdirs%g
6336 s%@host_configargs@%$host_configargs%g
6337 s%@configdirs@%$configdirs%g
6338 s%@target_configargs@%$target_configargs%g
6339 s%@target_configdirs@%$target_configdirs%g
6340 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
6341 s%@config_shell@%$config_shell%g
6342 s%@YACC@%$YACC%g
6343 s%@BISON@%$BISON%g
6344 s%@M4@%$M4%g
6345 s%@LEX@%$LEX%g
6346 s%@FLEX@%$FLEX%g
6347 s%@MAKEINFO@%$MAKEINFO%g
6348 s%@EXPECT@%$EXPECT%g
6349 s%@RUNTEST@%$RUNTEST%g
6350 s%@AR@%$AR%g
6351 s%@AS@%$AS%g
6352 s%@DLLTOOL@%$DLLTOOL%g
6353 s%@LD@%$LD%g
6354 s%@LIPO@%$LIPO%g
6355 s%@NM@%$NM%g
6356 s%@RANLIB@%$RANLIB%g
6357 s%@STRIP@%$STRIP%g
6358 s%@WINDRES@%$WINDRES%g
6359 s%@OBJCOPY@%$OBJCOPY%g
6360 s%@OBJDUMP@%$OBJDUMP%g
6361 s%@CXX@%$CXX%g
6362 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
6363 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
6364 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
6365 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
6366 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
6367 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
6368 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
6369 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
6370 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
6371 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
6372 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
6373 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
6374 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
6375 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
6376 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
6377 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
6378 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
6379 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
6380 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
6381 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
6382 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
6383 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6384 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6385 s%@MAINT@%$MAINT%g
6386 s%@stage1_cflags@%$stage1_cflags%g
6387 s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g
6388 s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g
6389 s%@stage2_werror_flag@%$stage2_werror_flag%g
6390
6391 CEOF
6392 EOF
6393
6394 cat >> $CONFIG_STATUS <<\EOF
6395
6396 # Split the substitutions into bite-sized pieces for seds with
6397 # small command number limits, like on Digital OSF/1 and HP-UX.
6398 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6399 ac_file=1 # Number of current file.
6400 ac_beg=1 # First line for current file.
6401 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6402 ac_more_lines=:
6403 ac_sed_cmds=""
6404 while $ac_more_lines; do
6405 if test $ac_beg -gt 1; then
6406 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6407 else
6408 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6409 fi
6410 if test ! -s conftest.s$ac_file; then
6411 ac_more_lines=false
6412 rm -f conftest.s$ac_file
6413 else
6414 if test -z "$ac_sed_cmds"; then
6415 ac_sed_cmds="sed -f conftest.s$ac_file"
6416 else
6417 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6418 fi
6419 ac_file=`expr $ac_file + 1`
6420 ac_beg=$ac_end
6421 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6422 fi
6423 done
6424 if test -z "$ac_sed_cmds"; then
6425 ac_sed_cmds=cat
6426 fi
6427 EOF
6428
6429 cat >> $CONFIG_STATUS <<EOF
6430
6431 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
6432 EOF
6433 cat >> $CONFIG_STATUS <<\EOF
6434 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6435 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6436 case "$ac_file" in
6437 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6438 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6439 *) ac_file_in="${ac_file}.in" ;;
6440 esac
6441
6442 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6443
6444 # Remove last slash and all that follows it. Not all systems have dirname.
6445 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6446 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6447 # The file is in a subdirectory.
6448 test ! -d "$ac_dir" && mkdir "$ac_dir"
6449 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6450 # A "../" for each directory in $ac_dir_suffix.
6451 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6452 else
6453 ac_dir_suffix= ac_dots=
6454 fi
6455
6456 case "$ac_given_srcdir" in
6457 .) srcdir=.
6458 if test -z "$ac_dots"; then top_srcdir=.
6459 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6460 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6461 *) # Relative path.
6462 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6463 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6464 esac
6465
6466 case "$ac_given_INSTALL" in
6467 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6468 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6469 esac
6470
6471 echo creating "$ac_file"
6472 rm -f "$ac_file"
6473 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6474 case "$ac_file" in
6475 *Makefile*) ac_comsub="1i\\
6476 # $configure_input" ;;
6477 *) ac_comsub= ;;
6478 esac
6479
6480 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6481 sed -e "$ac_comsub
6482 s%@configure_input@%$configure_input%g
6483 s%@srcdir@%$srcdir%g
6484 s%@top_srcdir@%$top_srcdir%g
6485 s%@INSTALL@%$INSTALL%g
6486 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6487 fi; done
6488 rm -f conftest.s*
6489
6490 EOF
6491 cat >> $CONFIG_STATUS <<EOF
6492
6493 EOF
6494 cat >> $CONFIG_STATUS <<\EOF
6495
6496 exit 0
6497 EOF
6498 chmod +x $CONFIG_STATUS
6499 rm -fr confdefs* $ac_clean_files
6500 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6501
This page took 0.176235 seconds and 4 git commands to generate.