Revise ChangeLog entry of previous commit to credit Richard Sandiford
[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-serial-[{host,target,build}-]configure
18 Force sequential configuration of
19 sub-packages for the host, target or build
20 machine, or all sub-packages"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
28 build=NONE
29 cache_file=./config.cache
30 exec_prefix=NONE
31 host=NONE
32 no_create=
33 nonopt=NONE
34 no_recursion=
35 prefix=NONE
36 program_prefix=NONE
37 program_suffix=NONE
38 program_transform_name=s,x,x,
39 silent=
40 site=
41 srcdir=
42 target=NONE
43 verbose=
44 x_includes=NONE
45 x_libraries=NONE
46 bindir='${exec_prefix}/bin'
47 sbindir='${exec_prefix}/sbin'
48 libexecdir='${exec_prefix}/libexec'
49 datadir='${prefix}/share'
50 sysconfdir='${prefix}/etc'
51 sharedstatedir='${prefix}/com'
52 localstatedir='${prefix}/var'
53 libdir='${exec_prefix}/lib'
54 includedir='${prefix}/include'
55 oldincludedir='/usr/include'
56 infodir='${prefix}/info'
57 mandir='${prefix}/man'
58
59 # Initialize some other variables.
60 subdirs=
61 MFLAGS= MAKEFLAGS=
62 SHELL=${CONFIG_SHELL-/bin/sh}
63 # Maximum number of lines to put in a shell here document.
64 ac_max_here_lines=12
65
66 ac_prev=
67 for ac_option
68 do
69
70 # If the previous option needs an argument, assign it.
71 if test -n "$ac_prev"; then
72 eval "$ac_prev=\$ac_option"
73 ac_prev=
74 continue
75 fi
76
77 case "$ac_option" in
78 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79 *) ac_optarg= ;;
80 esac
81
82 # Accept the important Cygnus configure options, so we can diagnose typos.
83
84 case "$ac_option" in
85
86 -bindir | --bindir | --bindi | --bind | --bin | --bi)
87 ac_prev=bindir ;;
88 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89 bindir="$ac_optarg" ;;
90
91 -build | --build | --buil | --bui | --bu)
92 ac_prev=build ;;
93 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
94 build="$ac_optarg" ;;
95
96 -cache-file | --cache-file | --cache-fil | --cache-fi \
97 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
98 ac_prev=cache_file ;;
99 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101 cache_file="$ac_optarg" ;;
102
103 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
104 ac_prev=datadir ;;
105 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
106 | --da=*)
107 datadir="$ac_optarg" ;;
108
109 -disable-* | --disable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 fi
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 eval "enable_${ac_feature}=no" ;;
117
118 -enable-* | --enable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 fi
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 case "$ac_option" in
126 *=*) ;;
127 *) ac_optarg=yes ;;
128 esac
129 eval "enable_${ac_feature}='$ac_optarg'" ;;
130
131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133 | --exec | --exe | --ex)
134 ac_prev=exec_prefix ;;
135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137 | --exec=* | --exe=* | --ex=*)
138 exec_prefix="$ac_optarg" ;;
139
140 -gas | --gas | --ga | --g)
141 # Obsolete; use --with-gas.
142 with_gas=yes ;;
143
144 -help | --help | --hel | --he)
145 # Omit some internal or obsolete options to make the list less imposing.
146 # This message is too long to be a string in the A/UX 3.1 sh.
147 cat << EOF
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
150 Configuration:
151 --cache-file=FILE cache test results in FILE
152 --help print this message
153 --no-create do not create output files
154 --quiet, --silent do not print \`checking...' messages
155 --version print the version of autoconf that created configure
156 Directory and file names:
157 --prefix=PREFIX install architecture-independent files in PREFIX
158 [$ac_default_prefix]
159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
160 [same as prefix]
161 --bindir=DIR user executables in DIR [EPREFIX/bin]
162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
164 --datadir=DIR read-only architecture-independent data in DIR
165 [PREFIX/share]
166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
167 --sharedstatedir=DIR modifiable architecture-independent data in DIR
168 [PREFIX/com]
169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
170 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
171 --includedir=DIR C header files in DIR [PREFIX/include]
172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
173 --infodir=DIR info documentation in DIR [PREFIX/info]
174 --mandir=DIR man documentation in DIR [PREFIX/man]
175 --srcdir=DIR find the sources in DIR [configure dir or ..]
176 --program-prefix=PREFIX prepend PREFIX to installed program names
177 --program-suffix=SUFFIX append SUFFIX to installed program names
178 --program-transform-name=PROGRAM
179 run sed PROGRAM on installed program names
180 EOF
181 cat << EOF
182 Host type:
183 --build=BUILD configure for building on BUILD [BUILD=HOST]
184 --host=HOST configure for HOST [guessed]
185 --target=TARGET configure for TARGET [TARGET=HOST]
186 Features and packages:
187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
191 --x-includes=DIR X include files are in DIR
192 --x-libraries=DIR X library files are in DIR
193 EOF
194 if test -n "$ac_help"; then
195 echo "--enable and --with options recognized:$ac_help"
196 fi
197 exit 0 ;;
198
199 -host | --host | --hos | --ho)
200 ac_prev=host ;;
201 -host=* | --host=* | --hos=* | --ho=*)
202 host="$ac_optarg" ;;
203
204 -includedir | --includedir | --includedi | --included | --include \
205 | --includ | --inclu | --incl | --inc)
206 ac_prev=includedir ;;
207 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
208 | --includ=* | --inclu=* | --incl=* | --inc=*)
209 includedir="$ac_optarg" ;;
210
211 -infodir | --infodir | --infodi | --infod | --info | --inf)
212 ac_prev=infodir ;;
213 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214 infodir="$ac_optarg" ;;
215
216 -libdir | --libdir | --libdi | --libd)
217 ac_prev=libdir ;;
218 -libdir=* | --libdir=* | --libdi=* | --libd=*)
219 libdir="$ac_optarg" ;;
220
221 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
222 | --libexe | --libex | --libe)
223 ac_prev=libexecdir ;;
224 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
225 | --libexe=* | --libex=* | --libe=*)
226 libexecdir="$ac_optarg" ;;
227
228 -localstatedir | --localstatedir | --localstatedi | --localstated \
229 | --localstate | --localstat | --localsta | --localst \
230 | --locals | --local | --loca | --loc | --lo)
231 ac_prev=localstatedir ;;
232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
233 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
234 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
235 localstatedir="$ac_optarg" ;;
236
237 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
238 ac_prev=mandir ;;
239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240 mandir="$ac_optarg" ;;
241
242 -nfp | --nfp | --nf)
243 # Obsolete; use --without-fp.
244 with_fp=no ;;
245
246 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
247 | --no-cr | --no-c)
248 no_create=yes ;;
249
250 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
252 no_recursion=yes ;;
253
254 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
255 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
256 | --oldin | --oldi | --old | --ol | --o)
257 ac_prev=oldincludedir ;;
258 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
259 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
260 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
261 oldincludedir="$ac_optarg" ;;
262
263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
264 ac_prev=prefix ;;
265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266 prefix="$ac_optarg" ;;
267
268 -program-prefix | --program-prefix | --program-prefi | --program-pref \
269 | --program-pre | --program-pr | --program-p)
270 ac_prev=program_prefix ;;
271 -program-prefix=* | --program-prefix=* | --program-prefi=* \
272 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
273 program_prefix="$ac_optarg" ;;
274
275 -program-suffix | --program-suffix | --program-suffi | --program-suff \
276 | --program-suf | --program-su | --program-s)
277 ac_prev=program_suffix ;;
278 -program-suffix=* | --program-suffix=* | --program-suffi=* \
279 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
280 program_suffix="$ac_optarg" ;;
281
282 -program-transform-name | --program-transform-name \
283 | --program-transform-nam | --program-transform-na \
284 | --program-transform-n | --program-transform- \
285 | --program-transform | --program-transfor \
286 | --program-transfo | --program-transf \
287 | --program-trans | --program-tran \
288 | --progr-tra | --program-tr | --program-t)
289 ac_prev=program_transform_name ;;
290 -program-transform-name=* | --program-transform-name=* \
291 | --program-transform-nam=* | --program-transform-na=* \
292 | --program-transform-n=* | --program-transform-=* \
293 | --program-transform=* | --program-transfor=* \
294 | --program-transfo=* | --program-transf=* \
295 | --program-trans=* | --program-tran=* \
296 | --progr-tra=* | --program-tr=* | --program-t=*)
297 program_transform_name="$ac_optarg" ;;
298
299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300 | -silent | --silent | --silen | --sile | --sil)
301 silent=yes ;;
302
303 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
304 ac_prev=sbindir ;;
305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
306 | --sbi=* | --sb=*)
307 sbindir="$ac_optarg" ;;
308
309 -sharedstatedir | --sharedstatedir | --sharedstatedi \
310 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311 | --sharedst | --shareds | --shared | --share | --shar \
312 | --sha | --sh)
313 ac_prev=sharedstatedir ;;
314 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
317 | --sha=* | --sh=*)
318 sharedstatedir="$ac_optarg" ;;
319
320 -site | --site | --sit)
321 ac_prev=site ;;
322 -site=* | --site=* | --sit=*)
323 site="$ac_optarg" ;;
324
325 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
326 ac_prev=srcdir ;;
327 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
328 srcdir="$ac_optarg" ;;
329
330 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
331 | --syscon | --sysco | --sysc | --sys | --sy)
332 ac_prev=sysconfdir ;;
333 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
334 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
335 sysconfdir="$ac_optarg" ;;
336
337 -target | --target | --targe | --targ | --tar | --ta | --t)
338 ac_prev=target ;;
339 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
340 target="$ac_optarg" ;;
341
342 -v | -verbose | --verbose | --verbos | --verbo | --verb)
343 verbose=yes ;;
344
345 -version | --version | --versio | --versi | --vers)
346 echo "configure generated by autoconf version 2.13"
347 exit 0 ;;
348
349 -with-* | --with-*)
350 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351 # Reject names that are not valid shell variable names.
352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
354 fi
355 ac_package=`echo $ac_package| sed 's/-/_/g'`
356 case "$ac_option" in
357 *=*) ;;
358 *) ac_optarg=yes ;;
359 esac
360 eval "with_${ac_package}='$ac_optarg'" ;;
361
362 -without-* | --without-*)
363 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 fi
368 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}=no" ;;
370
371 --x)
372 # Obsolete; use --with-x.
373 with_x=yes ;;
374
375 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
376 | --x-incl | --x-inc | --x-in | --x-i)
377 ac_prev=x_includes ;;
378 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
379 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
380 x_includes="$ac_optarg" ;;
381
382 -x-libraries | --x-libraries | --x-librarie | --x-librari \
383 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
384 ac_prev=x_libraries ;;
385 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
386 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
387 x_libraries="$ac_optarg" ;;
388
389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
390 ;;
391
392 *)
393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394 echo "configure: warning: $ac_option: invalid host type" 1>&2
395 fi
396 if test "x$nonopt" != xNONE; then
397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
398 fi
399 nonopt="$ac_option"
400 ;;
401
402 esac
403 done
404
405 if test -n "$ac_prev"; then
406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
407 fi
408
409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
410
411 # File descriptor usage:
412 # 0 standard input
413 # 1 file creation
414 # 2 errors and warnings
415 # 3 some systems may open it to /dev/tty
416 # 4 used on the Kubota Titan
417 # 6 checking for... messages and results
418 # 5 compiler messages saved in config.log
419 if test "$silent" = yes; then
420 exec 6>/dev/null
421 else
422 exec 6>&1
423 fi
424 exec 5>./config.log
425
426 echo "\
427 This file contains any messages produced by compilers while
428 running configure, to aid debugging if configure makes a mistake.
429 " 1>&5
430
431 # Strip out --no-create and --no-recursion so they do not pile up.
432 # Also quote any args containing shell metacharacters.
433 ac_configure_args=
434 for ac_arg
435 do
436 case "$ac_arg" in
437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
438 | --no-cr | --no-c) ;;
439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
443 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
444 esac
445 done
446
447 # NLS nuisances.
448 # Only set these to C if already set. These must not be set unconditionally
449 # because not all systems understand e.g. LANG=C (notably SCO).
450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451 # Non-C LC_CTYPE values break the ctype check.
452 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
453 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
455 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
456
457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
458 rm -rf conftest* confdefs.h
459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
460 echo > confdefs.h
461
462 # A filename unique to this package, relative to the directory that
463 # configure is in, which we can look for to find out if srcdir is correct.
464 ac_unique_file=move-if-change
465
466 # Find the source files, if location was not specified.
467 if test -z "$srcdir"; then
468 ac_srcdir_defaulted=yes
469 # Try the directory containing this script, then its parent.
470 ac_prog=$0
471 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
473 srcdir=$ac_confdir
474 if test ! -r $srcdir/$ac_unique_file; then
475 srcdir=..
476 fi
477 else
478 ac_srcdir_defaulted=no
479 fi
480 if test ! -r $srcdir/$ac_unique_file; then
481 if test "$ac_srcdir_defaulted" = yes; then
482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
483 else
484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
485 fi
486 fi
487 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488
489 # Prefer explicitly selected file to automatically selected ones.
490 if test -z "$CONFIG_SITE"; then
491 if test "x$prefix" != xNONE; then
492 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
493 else
494 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
495 fi
496 fi
497 for ac_site_file in $CONFIG_SITE; do
498 if test -r "$ac_site_file"; then
499 echo "loading site script $ac_site_file"
500 . "$ac_site_file"
501 fi
502 done
503
504 if test -r "$cache_file"; then
505 echo "loading cache $cache_file"
506 . $cache_file
507 else
508 echo "creating cache $cache_file"
509 > $cache_file
510 fi
511
512 ac_ext=c
513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514 ac_cpp='$CPP $CPPFLAGS'
515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517 cross_compiling=$ac_cv_prog_cc_cross
518
519 ac_exeext=
520 ac_objext=o
521 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
522 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
524 ac_n= ac_c='
525 ' ac_t=' '
526 else
527 ac_n=-n ac_c= ac_t=
528 fi
529 else
530 ac_n= ac_c='\c' ac_t=
531 fi
532
533
534
535 ac_aux_dir=
536 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
537 if test -f $ac_dir/install-sh; then
538 ac_aux_dir=$ac_dir
539 ac_install_sh="$ac_aux_dir/install-sh -c"
540 break
541 elif test -f $ac_dir/install.sh; then
542 ac_aux_dir=$ac_dir
543 ac_install_sh="$ac_aux_dir/install.sh -c"
544 break
545 fi
546 done
547 if test -z "$ac_aux_dir"; then
548 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
549 fi
550 ac_config_guess=$ac_aux_dir/config.guess
551 ac_config_sub=$ac_aux_dir/config.sub
552 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
553
554
555 # Do some error checking and defaulting for the host and target type.
556 # The inputs are:
557 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
558 #
559 # The rules are:
560 # 1. You are not allowed to specify --host, --target, and nonopt at the
561 # same time.
562 # 2. Host defaults to nonopt.
563 # 3. If nonopt is not specified, then host defaults to the current host,
564 # as determined by config.guess.
565 # 4. Target and build default to nonopt.
566 # 5. If nonopt is not specified, then target and build default to host.
567
568 # The aliases save the names the user supplied, while $host etc.
569 # will get canonicalized.
570 case $host---$target---$nonopt in
571 NONE---*---* | *---NONE---* | *---*---NONE) ;;
572 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
573 esac
574
575
576 # Make sure we can run config.sub.
577 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
578 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
579 fi
580
581 echo $ac_n "checking host system type""... $ac_c" 1>&6
582 echo "configure:583: checking host system type" >&5
583
584 host_alias=$host
585 case "$host_alias" in
586 NONE)
587 case $nonopt in
588 NONE)
589 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
590 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
591 fi ;;
592 *) host_alias=$nonopt ;;
593 esac ;;
594 esac
595
596 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
597 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
598 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
599 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
600 echo "$ac_t""$host" 1>&6
601
602 echo $ac_n "checking target system type""... $ac_c" 1>&6
603 echo "configure:604: checking target system type" >&5
604
605 target_alias=$target
606 case "$target_alias" in
607 NONE)
608 case $nonopt in
609 NONE) target_alias=$host_alias ;;
610 *) target_alias=$nonopt ;;
611 esac ;;
612 esac
613
614 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
615 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
616 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
617 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
618 echo "$ac_t""$target" 1>&6
619
620 echo $ac_n "checking build system type""... $ac_c" 1>&6
621 echo "configure:622: checking build system type" >&5
622
623 build_alias=$build
624 case "$build_alias" in
625 NONE)
626 case $nonopt in
627 NONE) build_alias=$host_alias ;;
628 *) build_alias=$nonopt ;;
629 esac ;;
630 esac
631
632 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
633 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
634 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
635 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
636 echo "$ac_t""$build" 1>&6
637
638 test "$host_alias" != "$target_alias" &&
639 test "$program_prefix$program_suffix$program_transform_name" = \
640 NONENONEs,x,x, &&
641 program_prefix=${target_alias}-
642
643 if test "$program_transform_name" = s,x,x,; then
644 program_transform_name=
645 else
646 # Double any \ or $. echo might interpret backslashes.
647 cat <<\EOF_SED > conftestsed
648 s,\\,\\\\,g; s,\$,$$,g
649 EOF_SED
650 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
651 rm -f conftestsed
652 fi
653 test "$program_prefix" != NONE &&
654 program_transform_name="s,^,${program_prefix},; $program_transform_name"
655 # Use a double $ so make ignores it.
656 test "$program_suffix" != NONE &&
657 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
658
659 # sed with no file args requires a program.
660 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
661
662
663 # Get 'install' or 'install-sh' and its variants.
664 # Find a good install program. We prefer a C program (faster),
665 # so one script is as good as another. But avoid the broken or
666 # incompatible versions:
667 # SysV /etc/install, /usr/sbin/install
668 # SunOS /usr/etc/install
669 # IRIX /sbin/install
670 # AIX /bin/install
671 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
672 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
673 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
674 # ./install, which can be erroneously created by make from ./install.sh.
675 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
676 echo "configure:677: checking for a BSD compatible install" >&5
677 if test -z "$INSTALL"; then
678 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
679 echo $ac_n "(cached) $ac_c" 1>&6
680 else
681 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
682 for ac_dir in $PATH; do
683 # Account for people who put trailing slashes in PATH elements.
684 case "$ac_dir/" in
685 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
686 *)
687 # OSF1 and SCO ODT 3.0 have their own names for install.
688 # Don't use installbsd from OSF since it installs stuff as root
689 # by default.
690 for ac_prog in ginstall scoinst install; do
691 if test -f $ac_dir/$ac_prog; then
692 if test $ac_prog = install &&
693 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
694 # AIX install. It has an incompatible calling convention.
695 :
696 else
697 ac_cv_path_install="$ac_dir/$ac_prog -c"
698 break 2
699 fi
700 fi
701 done
702 ;;
703 esac
704 done
705 IFS="$ac_save_IFS"
706
707 fi
708 if test "${ac_cv_path_install+set}" = set; then
709 INSTALL="$ac_cv_path_install"
710 else
711 # As a last resort, use the slow shell script. We don't cache a
712 # path for INSTALL within a source directory, because that will
713 # break other packages using the cache if that directory is
714 # removed, or if the path is relative.
715 INSTALL="$ac_install_sh"
716 fi
717 fi
718 echo "$ac_t""$INSTALL" 1>&6
719
720 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
721 # It thinks the first close brace ends the variable substitution.
722 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
723
724 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
725
726 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
727
728
729 # Autoconf M4 include file defining utility macros for complex Canadian
730 # cross builds.
731
732
733
734
735
736
737 ####
738 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
739 # or AC_INIT.
740 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
741
742 ####
743 # NCN_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
744 # Like AC_CHECK_TOOL, but tries a prefix of the target, not the host.
745 # Code is pretty much lifted from autoconf2.53.
746
747
748
749 ####
750 # NCN_STRICT_CHECK_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
751 # Like AC_CHECK_TOOL, but requires the prefix if build!=host.
752
753
754
755 ####
756 # NCN_STRICT_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
757 # Like NCN_CHECK_TARGET_TOOL, but requires the prefix if build!=target.
758
759
760 ###
761 # AC_PROG_CPP_WERROR
762 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
763 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
764 # For now, using this also overrides header checks to use only the
765 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
766 # bit harder from here).
767 # Eventually autoconf will default to checking headers with the compiler
768 # instead, and we'll have to do this differently.
769
770 # AC_PROG_CPP_WERROR
771
772 # Test for GNAT.
773 # We require the gnatbind program, and a compiler driver that
774 # understands Ada. We use the user's CC setting, already found.
775 #
776 # Sets the shell variable have_gnat to yes or no as appropriate, and
777 # substitutes GNATBIND.
778
779
780
781 ### we might need to use some other shell than /bin/sh for running subshells
782 ### If we are on Windows, search for the shell. This will permit people
783 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
784 ### without also having to set CONFIG_SHELL. This code will work when
785 ### using bash, which sets OSTYPE.
786 case "${OSTYPE}" in
787 *win32*)
788 if test x${CONFIG_SHELL} = x ; then
789 if test ! -f /bin/sh ; then
790 if test x${SHELL} != x && test -f ${SHELL} ; then
791 CONFIG_SHELL=${SHELL}
792 export CONFIG_SHELL
793 else
794 for prog in sh sh.exe bash bash.exe; do
795 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
796 for dir in $PATH; do
797 test -z "$dir" && dir=.
798 if test -f $dir/$prog; then
799 CONFIG_SHELL=$dir/$prog
800 export CONFIG_SHELL
801 break
802 fi
803 done
804 IFS="$save_ifs"
805 test -n "${CONFIG_SHELL}" && break
806 done
807 fi
808 fi
809 fi
810 ;;
811 esac
812
813 config_shell=${CONFIG_SHELL-/bin/sh}
814
815 progname=$0
816 # if PWD already has a value, it is probably wrong.
817 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
818
819 # Export original configure arguments for use by sub-configures. These
820 # will be expanded by make, so quote '$'.
821 tmp="$progname $@"
822 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
823 $tmp
824 EOF_SED
825 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
826 rm -f conftestsed.out
827
828
829 moveifchange=${srcdir}/move-if-change
830
831 # Set srcdir to "." if that's what it is.
832 # This is important for multilib support.
833 pwd=`${PWDCMD-pwd}`
834 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
835 if test "${pwd}" = "${srcpwd}" ; then
836 srcdir=.
837 fi
838
839 topsrcdir=$srcpwd
840
841 extra_host_args=
842 # Define the trigger file to make sure configure will re-run whenever
843 # the gcc version number changes.
844 if test "${with_gcc_version_trigger+set}" = set ; then
845 gcc_version_trigger="$with_gcc_version_trigger"
846 gcc_version=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
847 else
848 # If gcc's sources are available, define the trigger file.
849 if test -f ${topsrcdir}/gcc/version.c ; then
850 gcc_version_trigger=${topsrcdir}/gcc/version.c
851 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
852 case "$ac_configure_args" in
853 *--with-gcc-version-trigger=$gcc_version_trigger* )
854 ;;
855 * )
856 # Add to all subconfigure arguments: build, host, and target.
857 ac_configure_args="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger"
858 ;;
859 esac
860 fi
861 fi
862
863 ### To add a new directory to the tree, first choose whether it is a target
864 ### or a host dependent tool. Then put it into the appropriate list
865 ### (library or tools, host or target), doing a dependency sort.
866
867 # Subdirs will be configured in the order listed in build_configdirs,
868 # configdirs, or target_configdirs; see the serialization section below.
869
870 # Dependency sorting is only needed when *configuration* must be done in
871 # a particular order. In all cases a dependency should be specified in
872 # the Makefile, whether or not it's implicitly specified here.
873
874 # Double entries in build_configdirs, configdirs, or target_configdirs may
875 # cause circular dependencies and break everything horribly.
876
877 # these libraries are used by various programs built for the host environment
878 #
879 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib"
880
881 # these tools are built for the host environment
882 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
883 # know that we are building the simulator.
884 # binutils, gas and ld appear in that order because it makes sense to run
885 # "make check" in that particular order.
886 host_tools="texinfo byacc flex bison binutils gas ld 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"
887
888 # libgcj represents the runtime libraries only used by gcj.
889 libgcj="target-libffi \
890 target-boehm-gc \
891 target-zlib \
892 target-qthreads \
893 target-libjava"
894
895 # these libraries are built for the target environment, and are built after
896 # the host libraries and the host tools (which may be a cross compiler)
897 #
898 target_libraries="target-libiberty \
899 target-libgloss \
900 target-newlib \
901 target-libstdc++-v3 \
902 target-libf2c \
903 ${libgcj} \
904 target-libobjc \
905 target-libada"
906
907 # these tools are built using the target libraries, and are intended to
908 # run only in the target environment
909 #
910 # note: any program that *uses* libraries that are in the "target_libraries"
911 # list belongs in this list. those programs are also very likely
912 # candidates for the "native_only" list which follows
913 #
914 target_tools="target-examples target-groff target-gperf target-rda"
915
916 ################################################################################
917
918 ## All tools belong in one of the four categories, and are assigned above
919 ## We assign ${configdirs} this way to remove all embedded newlines. This
920 ## is important because configure will choke if they ever get through.
921 ## ${configdirs} is directories we build using the host tools.
922 ## ${target_configdirs} is directories we build using the target tools.
923 #
924 configdirs=`echo ${host_libs} ${host_tools}`
925 target_configdirs=`echo ${target_libraries} ${target_tools}`
926
927 # Only make build modules if build != host.
928 # This should be done more generally, but at the moment it doesn't matter.
929 if test ${host_alias} != ${build_alias} ; then
930 # This is the only build module.
931 build_modules=libiberty
932 else
933 build_modules=
934 fi
935
936
937 ################################################################################
938
939 srcname="gnu development package"
940
941 # This gets set non-empty for some net releases of packages.
942 appdirs=""
943
944 # Define is_cross_compiler to save on calls to 'test'.
945 is_cross_compiler=
946 if test x"${host}" = x"${target}" ; then
947 is_cross_compiler=no
948 else
949 is_cross_compiler=yes
950 fi
951
952 # Find the build and target subdir names.
953 case ${build_alias} in
954 "") build_noncanonical=${build} ;;
955 *) build_noncanonical=${build_alias} ;;
956 esac
957
958 case ${host_alias} in
959 "") host_noncanonical=${build_noncanonical} ;;
960 *) host_noncanonical=${host_alias} ;;
961 esac
962
963 case ${target_alias} in
964 "") target_noncanonical=${host_noncanonical} ;;
965 *) target_noncanonical=${target_alias} ;;
966 esac
967
968 # Prefix 'build-' so this never conflicts with target_subdir.
969 build_subdir="build-${build_noncanonical}"
970 # Not really a subdirectory, but here for completeness.
971 host_subdir=.
972 # No prefix.
973 target_subdir=${target_noncanonical}
974
975
976 # Skipdirs are removed silently.
977 skipdirs=
978 # Noconfigdirs are removed loudly.
979 noconfigdirs=""
980
981 use_gnu_ld=
982 # Make sure we don't let GNU ld be added if we didn't want it.
983 if test x$with_gnu_ld = xno ; then
984 use_gnu_ld=no
985 noconfigdirs="$noconfigdirs ld"
986 fi
987
988 use_gnu_as=
989 # Make sure we don't let GNU as be added if we didn't want it.
990 if test x$with_gnu_as = xno ; then
991 use_gnu_as=no
992 noconfigdirs="$noconfigdirs gas"
993 fi
994
995 # some tools are so dependent upon X11 that if we're not building with X,
996 # it's not even worth trying to configure, much less build, that tool.
997
998 case ${with_x} in
999 yes | "") ;; # the default value for this tree is that X11 is available
1000 no)
1001 skipdirs="${skipdirs} tk tix itcl libgui"
1002 # We won't be able to build gdbtk without X.
1003 enable_gdbtk=no
1004 ;;
1005 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1006 esac
1007
1008 # Some tools are only suitable for building in a "native" situation.
1009 # Remove these if host!=target.
1010 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"
1011
1012 # Similarly, some are only suitable for cross toolchains.
1013 # Remove these if host=target.
1014 cross_only="target-libgloss target-newlib target-opcodes"
1015
1016 case $is_cross_compiler in
1017 no) skipdirs="${skipdirs} ${cross_only}" ;;
1018 yes) skipdirs="${skipdirs} ${native_only}" ;;
1019 esac
1020
1021 # If both --with-headers and --with-libs are specified, default to
1022 # --without-newlib.
1023 if test x"${with_headers}" != x && test x"${with_headers} != xno \
1024 && test x"${with_libs}" != x && test x"${with_libs} != xno ; then
1025 if test x"${with_newlib}" = x ; then
1026 with_newlib=no
1027 fi
1028 fi
1029
1030 # Recognize --with-newlib/--without-newlib.
1031 case ${with_newlib} in
1032 no) skipdirs="${skipdirs} target-newlib" ;;
1033 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1034 esac
1035
1036 # Configure extra directories which are host specific
1037
1038 case "${host}" in
1039 *-cygwin*)
1040 configdirs="$configdirs libtermcap" ;;
1041 esac
1042
1043 # Remove more programs from consideration, based on the host or
1044 # target this usually means that a port of the program doesn't
1045 # exist yet.
1046
1047 case "${host}" in
1048 hppa*64*-*-*)
1049 noconfigdirs="$noconfigdirs byacc"
1050 ;;
1051 i[3456789]86-*-vsta)
1052 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix gnuserv gettext"
1053 ;;
1054 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1055 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl tix gnuserv libffi"
1056 ;;
1057 i[3456789]86-*-mingw32*)
1058 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix gnuserv"
1059 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1060 ;;
1061 i[3456789]86-*-beos*)
1062 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb"
1063 ;;
1064 *-*-cygwin*)
1065 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1066 ;;
1067 *-*-netbsd*)
1068 noconfigdirs="$noconfigdirs rcs"
1069 ;;
1070 ppc*-*-pe)
1071 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv"
1072 ;;
1073 powerpc-*-beos*)
1074 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline"
1075 ;;
1076 *-*-darwin*)
1077 noconfigdirs="$noconfigdirs tk itcl tix libgui"
1078 ;;
1079 esac
1080
1081 # Check whether --enable-libada or --disable-libada was given.
1082 if test "${enable_libada+set}" = set; then
1083 enableval="$enable_libada"
1084 ENABLE_LIBADA=$enableval
1085 else
1086 ENABLE_LIBADA=yes
1087 fi
1088
1089 if test "${ENABLE_LIBADA}" != "yes" ; then
1090 noconfigdirs="$noconfigdirs target-libada"
1091 fi
1092
1093 # Save it here so that, even in case of --enable-libgcj, if the Java
1094 # front-end isn't enabled, we still get libgcj disabled.
1095 libgcj_saved=$libgcj
1096 case $enable_libgcj in
1097 yes)
1098 # If we reset it here, it won't get added to noconfigdirs in the
1099 # target-specific build rules, so it will be forcibly enabled
1100 # (unless the Java language itself isn't enabled).
1101 libgcj=
1102 ;;
1103 no)
1104 # Make sure we get it printed in the list of not supported target libs.
1105 noconfigdirs="$noconfigdirs ${libgcj}"
1106 ;;
1107 esac
1108
1109 case "${target}" in
1110 *-*-chorusos)
1111 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1112 ;;
1113 powerpc-*-darwin*)
1114 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1115 noconfigdirs="$noconfigdirs target-libobjc"
1116 ;;
1117 *-*-darwin*)
1118 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1119 noconfigdirs="$noconfigdirs target-libobjc ${libgcj}"
1120 ;;
1121 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1122 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1123 ;;
1124 *-*-kaos*)
1125 # Remove unsupported stuff on all kaOS configurations.
1126 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-libf2c target-librx"
1127 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1128 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1129 noconfigdirs="$noconfigdirs target-libgloss"
1130 ;;
1131 *-*-netbsd*)
1132 # Skip some stuff on all NetBSD configurations.
1133 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1134
1135 # Skip some stuff that's unsupported on some NetBSD configurations.
1136 case "${target}" in
1137 i*86-*-netbsdelf*) ;;
1138 arm*-*-netbsdelf*) ;;
1139 *)
1140 noconfigdirs="$noconfigdirs ${libgcj}"
1141 ;;
1142 esac
1143 ;;
1144 *-*-netware)
1145 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}"
1146 ;;
1147 *-*-rtems*)
1148 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1149 case ${target} in
1150 h8300*-*-* | h8500-*-*)
1151 noconfigdirs="$noconfigdirs target-libf2c"
1152 ;;
1153 *) ;;
1154 esac
1155 ;;
1156 *-*-uclinux*)
1157 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1158 ;;
1159 *-*-vxworks*)
1160 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}"
1161 ;;
1162 alpha*-dec-osf*)
1163 # ld works, but does not support shared libraries.
1164 # newlib is not 64 bit ready. I'm not sure about fileutils.
1165 # gas doesn't generate exception information.
1166 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1167 ;;
1168 alpha*-*-*vms*)
1169 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1170 ;;
1171 alpha*-*-linux*)
1172 # newlib is not 64 bit ready
1173 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1174 ;;
1175 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
1176 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1177 ;;
1178 alpha*-*-*)
1179 # newlib is not 64 bit ready
1180 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1181 ;;
1182 am33_2.0-*-linux*)
1183 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1184 ;;
1185 sh-*-linux*)
1186 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1187 ;;
1188 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1189 noconfigdirs="$noconfigdirs ${libgcj}"
1190 noconfigdirs="$noconfigdirs target-examples"
1191 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1192 noconfigdirs="$noconfigdirs tcl tix tk itcl libgui sim"
1193 noconfigdirs="$noconfigdirs expect dejagnu"
1194 # the C++ libraries don't build on top of CE's C libraries
1195 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1196 noconfigdirs="$noconfigdirs target-newlib"
1197 case "${host}" in
1198 *-*-cygwin*) ;; # keep gdb and readline
1199 *) noconfigdirs="$noconfigdirs gdb readline"
1200 ;;
1201 esac
1202 ;;
1203 arc-*-*)
1204 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1205 ;;
1206 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1207 noconfigdirs="$noconfigdirs ${libgcj}"
1208 ;;
1209 arm-*-elf* | strongarm-*-elf* | xscale-*-elf*)
1210 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1211 ;;
1212 arm-*-pe*)
1213 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1214 ;;
1215 arm-*-oabi*)
1216 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1217 ;;
1218 thumb-*-coff)
1219 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1220 ;;
1221 thumb-*-elf)
1222 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1223 ;;
1224 thumb-*-oabi)
1225 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1226 ;;
1227 thumb-*-pe)
1228 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1229 ;;
1230 arm-*-riscix*)
1231 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1232 ;;
1233 avr-*-*)
1234 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1235 ;;
1236 c4x-*-* | tic4x-*-*)
1237 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1238 ;;
1239 c54x*-*-* | tic54x-*-*)
1240 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1241 ;;
1242 cris-*-*)
1243 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1244 ;;
1245 d10v-*-*)
1246 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1247 ;;
1248 d30v-*-*)
1249 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1250 ;;
1251 fr30-*-elf*)
1252 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1253 ;;
1254 frv-*-*)
1255 noconfigdirs="$noconfigdirs ${libgcj}"
1256 ;;
1257 h8300*-*-*)
1258 noconfigdirs="$noconfigdirs target-libgloss ${libgcj} target-libf2c"
1259 ;;
1260 h8500-*-*)
1261 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} target-libf2c"
1262 ;;
1263 hppa*64*-*-linux* | parisc*64*-*-linux*)
1264 # In this case, it's because the hppa64-linux target is for
1265 # the kernel only at this point and has no libc, and thus no
1266 # headers, crt*.o, etc., all of which are needed by these.
1267 noconfigdirs="$noconfigdirs target-zlib"
1268 ;;
1269 hppa*-*-*elf* | \
1270 parisc*-*-linux* | hppa*-*-linux* | \
1271 hppa*-*-lites* | \
1272 hppa*-*-openbsd* | \
1273 hppa*64*-*-*)
1274 noconfigdirs="$noconfigdirs ${libgcj}"
1275 # Do configure ld/binutils/gas for this case.
1276 ;;
1277 hppa*-*-*)
1278 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1279 # build on HP-UX 10.20.
1280 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1281 ;;
1282 i960-*-*)
1283 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1284 ;;
1285 ia64*-*-elf*)
1286 # No gdb support yet.
1287 noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb"
1288 ;;
1289 ia64*-**-hpux*)
1290 # No gdb or ld support yet.
1291 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
1292 ;;
1293 i[3456789]86-*-coff | i[3456789]86-*-elf)
1294 noconfigdirs="$noconfigdirs ${libgcj}"
1295 ;;
1296 i[3456789]86-*-freebsd* | i[3456789]86-*-kfreebsd*-gnu)
1297 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1298 ;;
1299 i[3456789]86-*-linux*)
1300 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1301 # not build java stuff by default.
1302 case "${target}" in
1303 *-*-*libc1*)
1304 noconfigdirs="$noconfigdirs ${libgcj}";;
1305 esac
1306
1307 # This section makes it possible to build newlib natively on linux.
1308 # If we are using a cross compiler then don't configure newlib.
1309 if test x${is_cross_compiler} != xno ; then
1310 noconfigdirs="$noconfigdirs target-newlib"
1311 fi
1312 noconfigdirs="$noconfigdirs target-libgloss"
1313 # If we are not using a cross compiler, do configure newlib.
1314 # Note however, that newlib will only be configured in this situation
1315 # if the --with-newlib option has been given, because otherwise
1316 # 'target-newlib' will appear in skipdirs.
1317 ;;
1318 i[3456789]86-*-mingw32*)
1319 target_configdirs="$target_configdirs target-mingw"
1320 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1321
1322 # Can't build gdb for mingw32 if not native.
1323 case "${host}" in
1324 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1325 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix gnuserv"
1326 ;;
1327 esac
1328 ;;
1329 *-*-cygwin*)
1330 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1331 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1332 # always build newlib.
1333 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1334
1335 # Can't build gdb for Cygwin if not native.
1336 case "${host}" in
1337 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1338 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix libgui gnuserv"
1339 ;;
1340 esac
1341 ;;
1342 i[3456789]86-*-pe)
1343 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1344 ;;
1345 i[3456789]86-*-sco3.2v5*)
1346 # The linker does not yet know about weak symbols in COFF,
1347 # and is not configured to handle mixed ELF and COFF.
1348 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1349 ;;
1350 i[3456789]86-*-sco*)
1351 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1352 ;;
1353 i[3456789]86-*-solaris2*)
1354 noconfigdirs="$noconfigdirs target-libgloss"
1355 ;;
1356 i[3456789]86-*-sysv4*)
1357 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1358 ;;
1359 i[3456789]86-*-beos*)
1360 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1361 ;;
1362 m32r-*-*)
1363 noconfigdirs="$noconfigdirs ${libgcj}"
1364 ;;
1365 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1366 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1367 ;;
1368 m68k-*-elf*)
1369 noconfigdirs="$noconfigdirs ${libgcj}"
1370 ;;
1371 m68k-*-coff*)
1372 noconfigdirs="$noconfigdirs ${libgcj}"
1373 ;;
1374 mcore-*-pe*)
1375 # The EPOC C++ environment does not support exceptions or rtti,
1376 # and so building libstdc++-v3 tends not to always work.
1377 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1378 ;;
1379 mmix-*-*)
1380 noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss"
1381 ;;
1382 mn10200-*-*)
1383 noconfigdirs="$noconfigdirs ${libgcj}"
1384 ;;
1385 mn10300-*-*)
1386 noconfigdirs="$noconfigdirs ${libgcj}"
1387 ;;
1388 powerpc-*-aix*)
1389 # copied from rs6000-*-* entry
1390 noconfigdirs="$noconfigdirs gprof target-libada target-libgloss ${libgcj}"
1391 ;;
1392 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1393 target_configdirs="$target_configdirs target-winsup"
1394 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix gnuserv ${libgcj}"
1395 # always build newlib.
1396 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1397 ;;
1398 # This is temporary until we can link against shared libraries
1399 powerpcle-*-solaris*)
1400 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl tix gnuserv ${libgcj}"
1401 ;;
1402 powerpc-*-beos*)
1403 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1404 ;;
1405 powerpc-*-eabi)
1406 noconfigdirs="$noconfigdirs ${libgcj}"
1407 ;;
1408 rs6000-*-lynxos*)
1409 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1410 ;;
1411 rs6000-*-aix*)
1412 noconfigdirs="$noconfigdirs gprof target-libada target-libgloss ${libgcj}"
1413 ;;
1414 rs6000-*-*)
1415 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1416 ;;
1417 m68k-apollo-*)
1418 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1419 ;;
1420 mips*-*-irix5*)
1421 # The GNU linker does not support shared libraries.
1422 noconfigdirs="$noconfigdirs ld gprof target-libgloss ${libgcj}"
1423 ;;
1424 mips*-*-irix6*)
1425 # Linking libjava exceeds command-line length limits on at least
1426 # IRIX 6.2, but not on IRIX 6.5.
1427 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1428 # <oldham@codesourcery.com>
1429 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1430 ;;
1431 mips*-dec-bsd*)
1432 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1433 ;;
1434 mips*-*-bsd*)
1435 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1436 ;;
1437 mipstx39-*-*)
1438 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1439 ;;
1440 mips64*-*-linux*)
1441 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1442 ;;
1443 mips*-*-linux*)
1444 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1445 ;;
1446 mips*-*-*)
1447 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1448 ;;
1449 romp-*-*)
1450 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1451 ;;
1452 sh-*-*)
1453 case "${host}" in
1454 i[3456789]86-*-vsta) ;; # don't add gprof back in
1455 i[3456789]86-*-go32*) ;; # don't add gprof back in
1456 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1457 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1458 esac
1459 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1460 ;;
1461 sh64-*-*)
1462 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1463 ;;
1464 sparc-*-elf*)
1465 noconfigdirs="$noconfigdirs ${libgcj}"
1466 ;;
1467 sparc64-*-elf*)
1468 noconfigdirs="$noconfigdirs ${libgcj}"
1469 ;;
1470 sparclite-*-*)
1471 noconfigdirs="$noconfigdirs ${libgcj}"
1472 ;;
1473 sparc-*-sunos4*)
1474 noconfigdirs="$noconfigdirs ${libgcj}"
1475 if test x${is_cross_compiler} != xno ; then
1476 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1477 else
1478 use_gnu_ld=no
1479 fi
1480 ;;
1481 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1482 ;;
1483 v810-*-*)
1484 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1485 ;;
1486 v850-*-*)
1487 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1488 ;;
1489 v850e-*-*)
1490 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1491 ;;
1492 v850ea-*-*)
1493 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1494 ;;
1495 vax-*-vms)
1496 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1497 ;;
1498 vax-*-*)
1499 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1500 ;;
1501 xtensa-*-*)
1502 noconfigdirs="$noconfigdirs ${libgcj}"
1503 ;;
1504 ip2k-*-*)
1505 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1506 ;;
1507 *-*-linux*)
1508 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1509 ;;
1510 *-*-lynxos*)
1511 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1512 ;;
1513 *-*-*)
1514 noconfigdirs="$noconfigdirs ${libgcj}"
1515 ;;
1516 esac
1517
1518 # If we aren't building newlib, then don't build libgloss, since libgloss
1519 # depends upon some newlib header files.
1520 case "${noconfigdirs}" in
1521 *target-libgloss*) ;;
1522 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1523 esac
1524
1525 # Work in distributions that contain no compiler tools, like Autoconf.
1526 tentative_cc=""
1527 host_makefile_frag=/dev/null
1528 if test -d ${srcdir}/config ; then
1529 case "${host}" in
1530 m68k-hp-hpux*)
1531 # Avoid "too much defining" errors from HPUX compiler.
1532 tentative_cc="cc -Wp,-H256000"
1533 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1534 # If it's HP/UX ar, this should be harmless.
1535 RANLIB="ar ts"
1536 ;;
1537 m68k-apollo-sysv*)
1538 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1539 ;;
1540 m68k-apollo-bsd*)
1541 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1542 # chokes on bfd, the compiler won't let you assign integers to enums, and
1543 # other problems. Defining CC to gcc is a questionable way to say "don't use
1544 # the apollo compiler" (the preferred version of GCC could be called cc,
1545 # or whatever), but I'm not sure leaving CC as cc is any better...
1546 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1547 # Used to have BISON=yacc.
1548 tentative_cc=gcc
1549 ;;
1550 m88k-dg-dgux*)
1551 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1552 ;;
1553 m88k-harris-cxux*)
1554 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1555 tentative_cc="cc -Xa"
1556 host_makefile_frag="config/mh-cxux"
1557 ;;
1558 m88k-motorola-sysv*)
1559 ;;
1560 mips*-dec-ultrix*)
1561 tentative_cc="cc -Wf,-XNg1000"
1562 host_makefile_frag="config/mh-decstation"
1563 ;;
1564 mips*-nec-sysv4*)
1565 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1566 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1567 host_makefile_frag="config/mh-necv4"
1568 ;;
1569 mips*-sgi-irix4*)
1570 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1571 # environment. Also bump switch table size so that cp-parse will
1572 # compile. Bump string length limit so linker builds.
1573 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1574 ;;
1575 mips*-*-sysv4*)
1576 host_makefile_frag="config/mh-sysv4"
1577 ;;
1578 mips*-*-sysv*)
1579 # This is for a MIPS running RISC/os 4.52C.
1580
1581 # This is needed for GDB, but needs to be in the top-level make because
1582 # if a library is compiled with the bsd headers and gets linked with the
1583 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1584 # a different size).
1585 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1586 # known except to select the sysv environment. Could we use /proc instead?
1587 # These "sysv environments" and "bsd environments" often end up being a pain.
1588 #
1589 # This is not part of CFLAGS because perhaps not all C compilers have this
1590 # option.
1591 tentative_cc="cc -systype sysv"
1592 ;;
1593 i370-ibm-opened*)
1594 tentative_cc="c89"
1595 ;;
1596 i[3456789]86-*-sysv5*)
1597 host_makefile_frag="config/mh-sysv5"
1598 ;;
1599 i[3456789]86-*-dgux*)
1600 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1601 host_makefile_frag="config/mh-dgux386"
1602 ;;
1603 i[3456789]86-ncr-sysv4.3*)
1604 # The MetaWare compiler will generate a copyright message unless you
1605 # turn it off by adding the -Hnocopyr flag.
1606 tentative_cc="cc -Hnocopyr"
1607 ;;
1608 i[3456789]86-ncr-sysv4*)
1609 # for an NCR 3000 (i486/SVR4) system.
1610 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1611 # This compiler not only emits obnoxious copyright messages every time
1612 # you run it, but it chokes and dies on a whole bunch of GNU source
1613 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1614 tentative_cc="/usr/ccs/ATT/cc"
1615 host_makefile_frag="config/mh-ncr3000"
1616 ;;
1617 i[3456789]86-*-sco3.2v5*)
1618 ;;
1619 i[3456789]86-*-sco*)
1620 # The native C compiler botches some simple uses of const. Unfortunately,
1621 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1622 tentative_cc="cc -Dconst="
1623 host_makefile_frag="config/mh-sco"
1624 ;;
1625 i[3456789]86-*-udk*)
1626 host_makefile_frag="config/mh-sysv5"
1627 ;;
1628 i[3456789]86-*-solaris2*)
1629 host_makefile_frag="config/mh-sysv4"
1630 ;;
1631 i[3456789]86-*-msdosdjgpp*)
1632 host_makefile_frag="config/mh-djgpp"
1633 ;;
1634 *-cygwin*)
1635 host_makefile_frag="config/mh-cygwin"
1636 ;;
1637 *-mingw32*)
1638 host_makefile_frag="config/mh-mingw32"
1639 ;;
1640 *-interix*)
1641 host_makefile_frag="config/mh-interix"
1642 ;;
1643 vax-*-ultrix2*)
1644 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1645 tentative_cc=gcc
1646 ;;
1647 *-*-solaris2*)
1648 host_makefile_frag="config/mh-solaris"
1649 ;;
1650 m68k-sun-sunos*)
1651 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1652 # without overflowing the jump tables (-J says to use a 32 bit table)
1653 tentative_cc="cc -J"
1654 ;;
1655 *-hp-hpux*)
1656 tentative_cc="cc -Wp,-H256000"
1657 ;;
1658 *-*-hiux*)
1659 tentative_cc="cc -Wp,-H256000"
1660 ;;
1661 rs6000-*-lynxos*)
1662 # /bin/cc is less than useful for our purposes. Always use GCC
1663 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1664 host_makefile_frag="config/mh-lynxrs6k"
1665 ;;
1666 *-*-lynxos*)
1667 # /bin/cc is less than useful for our purposes. Always use GCC
1668 tentative_cc="/bin/gcc"
1669 ;;
1670 *-*-sysv4*)
1671 host_makefile_frag="config/mh-sysv4"
1672 ;;
1673 esac
1674 fi
1675
1676 # If we aren't going to be using gcc, see if we can extract a definition
1677 # of CC from the fragment.
1678 # Actually, use the 'pre-extracted' version above.
1679 if test -z "${CC}" && test "${build}" = "${host}" ; then
1680 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1681 found=
1682 for dir in $PATH; do
1683 test -z "$dir" && dir=.
1684 if test -f $dir/gcc; then
1685 found=yes
1686 break
1687 fi
1688 done
1689 IFS="$save_ifs"
1690 if test -z "${found}" && test -n "${tentative_cc}" ; then
1691 CC=$tentative_cc
1692 fi
1693 fi
1694
1695 if test "${build}" != "${host}" ; then
1696 # If we are doing a Canadian Cross, in which the host and build systems
1697 # are not the same, we set reasonable default values for the tools.
1698
1699 BISON=${BISON-bison}
1700 CC=${CC-${host_alias}-gcc}
1701 CFLAGS=${CFLAGS-"-g -O2"}
1702 CXX=${CXX-${host_alias}-c++}
1703 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1704 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1705 CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc}
1706 CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++}
1707 GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj}
1708 GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
1709 BUILD_PREFIX=${build_alias}-
1710 BUILD_PREFIX_1=${build_alias}-
1711 MAKEINFO=${MAKEINFO-makeinfo}
1712
1713 if test -z "${YACC}" ; then
1714 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1715 for dir in $PATH; do
1716 test -z "$dir" && dir=.
1717 if test -f $dir/bison; then
1718 YACC="bison -y"
1719 break
1720 fi
1721 if test -f $dir/byacc; then
1722 YACC=byacc
1723 break
1724 fi
1725 if test -f $dir/yacc; then
1726 YACC=yacc
1727 break
1728 fi
1729 done
1730 IFS="$save_ifs"
1731 if test -z "${YACC}" ; then
1732 YACC="bison -y"
1733 fi
1734 fi
1735
1736 if test -z "${LEX}" ; then
1737 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1738 for dir in $PATH; do
1739 test -z "$dir" && dir=.
1740 if test -f $dir/flex; then
1741 LEX=flex
1742 break
1743 fi
1744 if test -f $dir/lex; then
1745 LEX=lex
1746 break
1747 fi
1748 done
1749 IFS="$save_ifs"
1750 LEX=${LEX-flex}
1751 fi
1752
1753 else
1754 # Set reasonable default values for some tools even if not Canadian.
1755 # Of course, these are different reasonable default values, originally
1756 # specified directly in the Makefile.
1757 # We don't export, so that autoconf can do its job.
1758 # Note that all these settings are above the fragment inclusion point
1759 # in Makefile.in, so can still be overridden by fragments.
1760 # This is all going to change when we autoconfiscate...
1761
1762 BISON="\$(USUAL_BISON)"
1763 CC_FOR_BUILD="\$(CC)"
1764 GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
1765 BUILD_PREFIX=
1766 BUILD_PREFIX_1=loser-
1767 MAKEINFO="\$(USUAL_MAKEINFO)"
1768 LEX="\$(USUAL_LEX)"
1769 YACC="\$(USUAL_YACC)"
1770
1771 # If CC is still not set, try to get gcc.
1772 cc_prog_is_gcc=
1773 if test -z "${CC}" ; then
1774 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1775 for dir in $PATH; do
1776 test -z "$dir" && dir=.
1777 if test -f $dir/gcc; then
1778 CC="gcc"
1779 cc_prog_is_gcc=yes
1780 echo 'void f(){}' > conftest.c
1781 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1782 CFLAGS=${CFLAGS-"-g -O2"}
1783 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1784 else
1785 CFLAGS=${CFLAGS-"-O2"}
1786 CXXFLAGS=${CXXFLAGS-"-O2"}
1787 fi
1788 rm -f conftest*
1789 break
1790 fi
1791 done
1792 IFS="$save_ifs"
1793 CC=${CC-cc}
1794 else
1795 # Determine if we are using gcc.
1796 cat > conftest.c <<EOF
1797 #ifdef __GNUC__
1798 yes;
1799 #endif
1800 EOF
1801 if ${CC} -E conftest.c | grep yes >/dev/null 2>&1; then
1802 cc_prog_is_gcc=yes
1803 fi
1804 rm -f conftest.c
1805 if test -z "${CFLAGS}"; then
1806 # Here CC is set but CFLAGS is not. Use a quick hack to use -O2 if CC
1807 # is set to a version of gcc.
1808 if test "$cc_prog_is_gcc" = yes; then
1809 echo 'void f(){}' > conftest.c
1810 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1811 CFLAGS=${CFLAGS-"-g -O2"}
1812 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1813 else
1814 CFLAGS=${CFLAGS-"-O2"}
1815 CXXFLAGS=${CXXFLAGS-"-O2"}
1816 fi
1817 rm -f conftest*
1818 fi
1819 fi
1820 fi
1821
1822 # We must set the default linker to the linker used by gcc for the correct
1823 # operation of libtool. If LD is not defined and we are using gcc, try to
1824 # set the LD default to the ld used by gcc.
1825 if test -z "$LD"; then
1826 if test "$cc_prog_is_gcc" = yes; then
1827 case $build in
1828 *-*-mingw*)
1829 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
1830 *)
1831 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
1832 esac
1833 case $gcc_prog_ld in
1834 # Accept absolute paths.
1835 [\\/]* | [A-Za-z]:[\\/]*)
1836 LD="$gcc_prog_ld" ;;
1837 esac
1838 fi
1839 fi
1840
1841 CXX=${CXX-"c++"}
1842 CFLAGS=${CFLAGS-"-g"}
1843 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1844 fi
1845
1846 if test $host != $build; then
1847 ac_tool_prefix=${host_alias}-
1848 else
1849 ac_tool_prefix=
1850 fi
1851
1852 # Extract the first word of "gcc", so it can be a program name with args.
1853 set dummy gcc; ac_word=$2
1854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1855 echo "configure:1856: checking for $ac_word" >&5
1856 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1858 else
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1861 else
1862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1863 ac_dummy="$PATH"
1864 for ac_dir in $ac_dummy; do
1865 test -z "$ac_dir" && ac_dir=.
1866 if test -f $ac_dir/$ac_word; then
1867 ac_cv_prog_CC="gcc"
1868 break
1869 fi
1870 done
1871 IFS="$ac_save_ifs"
1872 fi
1873 fi
1874 CC="$ac_cv_prog_CC"
1875 if test -n "$CC"; then
1876 echo "$ac_t""$CC" 1>&6
1877 else
1878 echo "$ac_t""no" 1>&6
1879 fi
1880
1881 if test -z "$CC"; then
1882 # Extract the first word of "cc", so it can be a program name with args.
1883 set dummy cc; ac_word=$2
1884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1885 echo "configure:1886: checking for $ac_word" >&5
1886 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1888 else
1889 if test -n "$CC"; then
1890 ac_cv_prog_CC="$CC" # Let the user override the test.
1891 else
1892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1893 ac_prog_rejected=no
1894 ac_dummy="$PATH"
1895 for ac_dir in $ac_dummy; do
1896 test -z "$ac_dir" && ac_dir=.
1897 if test -f $ac_dir/$ac_word; then
1898 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1899 ac_prog_rejected=yes
1900 continue
1901 fi
1902 ac_cv_prog_CC="cc"
1903 break
1904 fi
1905 done
1906 IFS="$ac_save_ifs"
1907 if test $ac_prog_rejected = yes; then
1908 # We found a bogon in the path, so make sure we never use it.
1909 set dummy $ac_cv_prog_CC
1910 shift
1911 if test $# -gt 0; then
1912 # We chose a different compiler from the bogus one.
1913 # However, it has the same basename, so the bogon will be chosen
1914 # first if we set CC to just the basename; use the full file name.
1915 shift
1916 set dummy "$ac_dir/$ac_word" "$@"
1917 shift
1918 ac_cv_prog_CC="$@"
1919 fi
1920 fi
1921 fi
1922 fi
1923 CC="$ac_cv_prog_CC"
1924 if test -n "$CC"; then
1925 echo "$ac_t""$CC" 1>&6
1926 else
1927 echo "$ac_t""no" 1>&6
1928 fi
1929
1930 if test -z "$CC"; then
1931 case "`uname -s`" in
1932 *win32* | *WIN32*)
1933 # Extract the first word of "cl", so it can be a program name with args.
1934 set dummy cl; ac_word=$2
1935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1936 echo "configure:1937: checking for $ac_word" >&5
1937 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1939 else
1940 if test -n "$CC"; then
1941 ac_cv_prog_CC="$CC" # Let the user override the test.
1942 else
1943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1944 ac_dummy="$PATH"
1945 for ac_dir in $ac_dummy; do
1946 test -z "$ac_dir" && ac_dir=.
1947 if test -f $ac_dir/$ac_word; then
1948 ac_cv_prog_CC="cl"
1949 break
1950 fi
1951 done
1952 IFS="$ac_save_ifs"
1953 fi
1954 fi
1955 CC="$ac_cv_prog_CC"
1956 if test -n "$CC"; then
1957 echo "$ac_t""$CC" 1>&6
1958 else
1959 echo "$ac_t""no" 1>&6
1960 fi
1961 ;;
1962 esac
1963 fi
1964 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1965 fi
1966
1967 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1968 echo "configure:1969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1969
1970 ac_ext=c
1971 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1972 ac_cpp='$CPP $CPPFLAGS'
1973 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1974 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1975 cross_compiling=$ac_cv_prog_cc_cross
1976
1977 cat > conftest.$ac_ext << EOF
1978
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1981
1982 main(){return(0);}
1983 EOF
1984 if { (eval echo configure:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1985 ac_cv_prog_cc_works=yes
1986 # If we can't run a trivial program, we are probably using a cross compiler.
1987 if (./conftest; exit) 2>/dev/null; then
1988 ac_cv_prog_cc_cross=no
1989 else
1990 ac_cv_prog_cc_cross=yes
1991 fi
1992 else
1993 echo "configure: failed program was:" >&5
1994 cat conftest.$ac_ext >&5
1995 ac_cv_prog_cc_works=no
1996 fi
1997 rm -fr conftest*
1998 ac_ext=c
1999 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2000 ac_cpp='$CPP $CPPFLAGS'
2001 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2002 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2003 cross_compiling=$ac_cv_prog_cc_cross
2004
2005 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2006 if test $ac_cv_prog_cc_works = no; then
2007 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2008 fi
2009 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2010 echo "configure:2011: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2011 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2012 cross_compiling=$ac_cv_prog_cc_cross
2013
2014 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2015 echo "configure:2016: checking whether we are using GNU C" >&5
2016 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2018 else
2019 cat > conftest.c <<EOF
2020 #ifdef __GNUC__
2021 yes;
2022 #endif
2023 EOF
2024 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2025 ac_cv_prog_gcc=yes
2026 else
2027 ac_cv_prog_gcc=no
2028 fi
2029 fi
2030
2031 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2032
2033 if test $ac_cv_prog_gcc = yes; then
2034 GCC=yes
2035 else
2036 GCC=
2037 fi
2038
2039 ac_test_CFLAGS="${CFLAGS+set}"
2040 ac_save_CFLAGS="$CFLAGS"
2041 CFLAGS=
2042 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2043 echo "configure:2044: checking whether ${CC-cc} accepts -g" >&5
2044 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2046 else
2047 echo 'void f(){}' > conftest.c
2048 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2049 ac_cv_prog_cc_g=yes
2050 else
2051 ac_cv_prog_cc_g=no
2052 fi
2053 rm -f conftest*
2054
2055 fi
2056
2057 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2058 if test "$ac_test_CFLAGS" = set; then
2059 CFLAGS="$ac_save_CFLAGS"
2060 elif test $ac_cv_prog_cc_g = yes; then
2061 if test "$GCC" = yes; then
2062 CFLAGS="-g -O2"
2063 else
2064 CFLAGS="-g"
2065 fi
2066 else
2067 if test "$GCC" = yes; then
2068 CFLAGS="-O2"
2069 else
2070 CFLAGS=
2071 fi
2072 fi
2073
2074
2075
2076 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2077 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2079 echo "configure:2080: checking for $ac_word" >&5
2080 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2081 echo $ac_n "(cached) $ac_c" 1>&6
2082 else
2083 if test -n "$GNATBIND"; then
2084 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2085 else
2086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2087 ac_dummy="$PATH"
2088 for ac_dir in $ac_dummy; do
2089 test -z "$ac_dir" && ac_dir=.
2090 if test -f $ac_dir/$ac_word; then
2091 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2092 break
2093 fi
2094 done
2095 IFS="$ac_save_ifs"
2096 fi
2097 fi
2098 GNATBIND="$ac_cv_prog_GNATBIND"
2099 if test -n "$GNATBIND"; then
2100 echo "$ac_t""$GNATBIND" 1>&6
2101 else
2102 echo "$ac_t""no" 1>&6
2103 fi
2104
2105
2106 if test -z "$ac_cv_prog_GNATBIND"; then
2107 if test -n "$ac_tool_prefix"; then
2108 # Extract the first word of "gnatbind", so it can be a program name with args.
2109 set dummy gnatbind; ac_word=$2
2110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2111 echo "configure:2112: checking for $ac_word" >&5
2112 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2114 else
2115 if test -n "$GNATBIND"; then
2116 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2117 else
2118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2119 ac_dummy="$PATH"
2120 for ac_dir in $ac_dummy; do
2121 test -z "$ac_dir" && ac_dir=.
2122 if test -f $ac_dir/$ac_word; then
2123 ac_cv_prog_GNATBIND="gnatbind"
2124 break
2125 fi
2126 done
2127 IFS="$ac_save_ifs"
2128 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2129 fi
2130 fi
2131 GNATBIND="$ac_cv_prog_GNATBIND"
2132 if test -n "$GNATBIND"; then
2133 echo "$ac_t""$GNATBIND" 1>&6
2134 else
2135 echo "$ac_t""no" 1>&6
2136 fi
2137
2138 else
2139 GNATBIND="no"
2140 fi
2141 fi
2142
2143 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2144 echo "configure:2145: checking whether compiler driver understands Ada" >&5
2145 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2147 else
2148 cat >conftest.adb <<EOF
2149 procedure conftest is begin null; end conftest;
2150 EOF
2151 acx_cv_cc_gcc_supports_ada=no
2152 # There is a bug in old released versions of GCC which causes the
2153 # driver to exit successfully when the appropriate language module
2154 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2155 # Therefore we must check for the error message as well as an
2156 # unsuccessful exit.
2157 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2158 if test x"$errors" = x; then
2159 acx_cv_cc_gcc_supports_ada=yes
2160 break
2161 fi
2162 rm -f conftest.*
2163 fi
2164
2165 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2166
2167 if test x$GNATBIND != xno && test x$acx_cv_gcc_supports_ada != xno; then
2168 have_gnat=yes
2169 else
2170 have_gnat=no
2171 fi
2172
2173
2174 # Figure out what language subdirectories are present.
2175 # Look if the user specified --enable-languages="..."; if not, use
2176 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2177 # go away some day.
2178 # NB: embedded tabs in this IF block -- do not untabify
2179 if test -d ${srcdir}/gcc; then
2180 if test x"${enable_languages+set}" != xset; then
2181 if test x"${LANGUAGES+set}" = xset; then
2182 enable_languages="${LANGUAGES}"
2183 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2184 else
2185 enable_languages=all
2186 fi
2187 else
2188 if test x"${enable_languages}" = x ||
2189 test x"${enable_languages}" = xyes;
2190 then
2191 echo configure.in: --enable-languages needs at least one language argument 1>&2
2192 exit 1
2193 fi
2194 fi
2195 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2196
2197 # First scan to see if an enabled language requires some other language.
2198 # We assume that a given config-lang.in will list all the language
2199 # front ends it requires, even if some are required indirectly.
2200 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2201 case ${lang_frag} in
2202 ..) ;;
2203 # The odd quoting in the next line works around
2204 # an apparent bug in bash 1.12 on linux.
2205 ${srcdir}/gcc/[*]/config-lang.in) ;;
2206 *)
2207 # From the config-lang.in, get $language, $lang_requires
2208 language=
2209 lang_requires=
2210 . ${lang_frag}
2211 for other in ${lang_requires} ; do
2212 case ,${enable_languages}, in
2213 *,$other,*) ;;
2214 *,all,*) ;;
2215 *,$language,*)
2216 echo " \`$other' language required by \`$language'; enabling" 1>&2
2217 enable_languages="${enable_languages},${other}"
2218 ;;
2219 esac
2220 done
2221 ;;
2222 esac
2223 done
2224
2225 new_enable_languages=c
2226 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2227
2228 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2229 case ${lang_frag} in
2230 ..) ;;
2231 # The odd quoting in the next line works around
2232 # an apparent bug in bash 1.12 on linux.
2233 ${srcdir}/gcc/[*]/config-lang.in) ;;
2234 *)
2235 # From the config-lang.in, get $language, $target_libs,
2236 # $lang_dirs, and $build_by_default
2237 language=
2238 target_libs=
2239 lang_dirs=
2240 build_by_default=
2241 . ${lang_frag}
2242 # This is quite sensitive to the ordering of the case statement arms.
2243 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2244 *::*:*)
2245 echo "${lang_frag} doesn't set \$language." 1>&2
2246 exit 1
2247 ;;
2248 *:ada:no:*)
2249 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2250 add_this_lang=no
2251 ;;
2252 *,${language},*:*:*:*)
2253 # Language was explicitly selected; include it.
2254 add_this_lang=yes
2255 ;;
2256 *,all,*:*:*:no)
2257 # 'all' was selected, but this is not a default language
2258 # so do not include it.
2259 add_this_lang=no
2260 ;;
2261 *,all,*:*:*:*)
2262 # 'all' was selected and this is a default language; include it.
2263 add_this_lang=yes
2264 ;;
2265 *)
2266 add_this_lang=no
2267 ;;
2268 esac
2269 case $add_this_lang in
2270 no)
2271 # Remove language-dependent dirs.
2272 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\" ;;
2273 *)
2274 new_enable_languages="$new_enable_languages,$language"
2275 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` ;;
2276 esac
2277 ;;
2278 esac
2279 done
2280
2281 missing_languages=`echo "$missing_languages" | sed -e s/^,// -e s/,\$//`
2282 if test "x$missing_languages" != x; then
2283 { echo "configure: error:
2284 The following requested languages were not found: ${missing_languages}" 1>&2; exit 1; }
2285 fi
2286
2287 if test "x$new_enable_languages" != "x$enable_languages"; then
2288 echo The following languages will be built: ${new_enable_languages}
2289 fi
2290 enable_languages="$new_enable_languages"
2291 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2292 fi
2293
2294 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
2295 # $target_configdirs.
2296 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2297
2298 notsupp=""
2299 for dir in . $skipdirs $noconfigdirs ; do
2300 dirname=`echo $dir | sed -e s/target-//g`
2301 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2302 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2303 if test -r $srcdir/$dirname/configure ; then
2304 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2305 true
2306 else
2307 notsupp="$notsupp $dir"
2308 fi
2309 fi
2310 fi
2311 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2312 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2313 if test -r $srcdir/$dirname/configure ; then
2314 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2315 true
2316 else
2317 notsupp="$notsupp $dir"
2318 fi
2319 fi
2320 fi
2321 done
2322
2323 # Sometimes the tools are distributed with libiberty but with no other
2324 # libraries. In that case, we don't want to build target-libiberty.
2325 if test -n "${target_configdirs}" ; then
2326 others=
2327 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2328 if test "$i" != "libiberty" ; then
2329 if test -r $srcdir/$i/configure ; then
2330 others=yes;
2331 break;
2332 fi
2333 fi
2334 done
2335 if test -z "${others}" ; then
2336 target_configdirs=
2337 fi
2338 fi
2339
2340 # Quietly strip out all directories which aren't configurable in this tree.
2341 # This relies on all configurable subdirectories being autoconfiscated, which
2342 # is now the case.
2343 configdirs_all="$configdirs"
2344 configdirs=
2345 for i in ${configdirs_all} ; do
2346 if test -f ${srcdir}/$i/configure ; then
2347 configdirs="${configdirs} $i"
2348 fi
2349 done
2350 target_configdirs_all="$target_configdirs"
2351 target_configdirs=
2352 for i in ${target_configdirs_all} ; do
2353 j=`echo $i | sed -e s/target-//g`
2354 if test -f ${srcdir}/$j/configure ; then
2355 target_configdirs="${target_configdirs} $i"
2356 fi
2357 done
2358
2359 # Produce a warning message for the subdirs we can't configure.
2360 # This isn't especially interesting in the Cygnus tree, but in the individual
2361 # FSF releases, it's important to let people know when their machine isn't
2362 # supported by the one or two programs in a package.
2363
2364 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2365 # If $appdirs is non-empty, at least one of those directories must still
2366 # be configured, or we error out. (E.g., if the gas release supports a
2367 # specified target in some subdirs but not the gas subdir, we shouldn't
2368 # pretend that all is well.)
2369 if test -n "$appdirs" ; then
2370 for dir in $appdirs ; do
2371 if test -r $dir/Makefile.in ; then
2372 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2373 appdirs=""
2374 break
2375 fi
2376 if echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2377 appdirs=""
2378 break
2379 fi
2380 fi
2381 done
2382 if test -n "$appdirs" ; then
2383 echo "*** This configuration is not supported by this package." 1>&2
2384 exit 1
2385 fi
2386 fi
2387 # Okay, some application will build, or we don't care to check. Still
2388 # notify of subdirs not getting built.
2389 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2390 echo " ${notsupp}" 1>&2
2391 echo " (Any other directories should still work fine.)" 1>&2
2392 fi
2393
2394 case "$host" in
2395 *msdosdjgpp*)
2396 enable_gdbtk=no ;;
2397 esac
2398
2399 copy_dirs=
2400
2401 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2402 # the named directory are copied to $(tooldir)/sys-include.
2403 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2404 if test x${is_cross_compiler} = xno ; then
2405 echo 1>&2 '***' --with-headers is only supported when cross compiling
2406 exit 1
2407 fi
2408 if test x"${with_headers}" != xyes ; then
2409 case "${exec_prefixoption}" in
2410 "") x=${prefix} ;;
2411 *) x=${exec_prefix} ;;
2412 esac
2413 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2414 fi
2415 fi
2416
2417 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2418 # the name directories are copied to $(tooldir)/lib. Multiple directories
2419 # are permitted.
2420 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2421 if test x${is_cross_compiler} = xno ; then
2422 echo 1>&2 '***' --with-libs is only supported when cross compiling
2423 exit 1
2424 fi
2425 if test x"${with_libs}" != xyes ; then
2426 # Copy the libraries in reverse order, so that files in the first named
2427 # library override files in subsequent libraries.
2428 case "${exec_prefixoption}" in
2429 "") x=${prefix} ;;
2430 *) x=${exec_prefix} ;;
2431 esac
2432 for l in ${with_libs}; do
2433 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2434 done
2435 fi
2436 fi
2437
2438 # Handle ${copy_dirs}
2439 set fnord ${copy_dirs}
2440 shift
2441 while test $# != 0 ; do
2442 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2443 :
2444 else
2445 echo Copying $1 to $2
2446
2447 # Use the install script to create the directory and all required
2448 # parent directories.
2449 if test -d $2 ; then
2450 :
2451 else
2452 echo >config.temp
2453 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2454 fi
2455
2456 # Copy the directory, assuming we have tar.
2457 # FIXME: Should we use B in the second tar? Not all systems support it.
2458 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2459
2460 # It is the responsibility of the user to correctly adjust all
2461 # symlinks. If somebody can figure out how to handle them correctly
2462 # here, feel free to add the code.
2463
2464 echo $1 > $2/COPIED
2465 fi
2466 shift; shift
2467 done
2468
2469 extra_arflags_for_target=
2470 extra_nmflags_for_target=
2471 extra_ranlibflags_for_target=
2472 target_makefile_frag=/dev/null
2473 case "${target}" in
2474 i[3456789]86-*-netware*)
2475 target_makefile_frag="config/mt-netware"
2476 ;;
2477 powerpc-*-netware*)
2478 target_makefile_frag="config/mt-netware"
2479 ;;
2480 *-*-linux*)
2481 target_makefile_frag="config/mt-linux"
2482 ;;
2483 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2484 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2485 # commands to handle both 32-bit and 64-bit objects. These flags are
2486 # harmless if we're using GNU nm or ar.
2487 extra_arflags_for_target=" -X32_64"
2488 extra_nmflags_for_target=" -B -X32_64"
2489 ;;
2490 *-*-darwin*)
2491 # ranlib from Darwin requires the -c flag to look at common symbols.
2492 extra_ranlibflags_for_target=" -c"
2493 ;;
2494 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2495 target_makefile_frag="config/mt-wince"
2496 ;;
2497 esac
2498
2499 alphaieee_frag=/dev/null
2500 case $target in
2501 alpha*-*-*)
2502 # This just makes sure to use the -mieee option to build target libs.
2503 # This should probably be set individually by each library.
2504 alphaieee_frag="config/mt-alphaieee"
2505 ;;
2506 esac
2507
2508 # If --enable-target-optspace always use -Os instead of -O2 to build
2509 # the target libraries, similarly if it is not specified, use -Os
2510 # on selected platforms.
2511 ospace_frag=/dev/null
2512 case "${enable_target_optspace}:${target}" in
2513 yes:*)
2514 ospace_frag="config/mt-ospace"
2515 ;;
2516 :d30v-*)
2517 ospace_frag="config/mt-d30v"
2518 ;;
2519 :m32r-* | :d10v-* | :fr30-*)
2520 ospace_frag="config/mt-ospace"
2521 ;;
2522 no:* | :*)
2523 ;;
2524 *)
2525 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2526 ;;
2527 esac
2528
2529 # Set with_gnu_as and with_gnu_ld as appropriate.
2530 #
2531 # This is done by determining whether or not the appropriate directory
2532 # is available, and by checking whether or not specific configurations
2533 # have requested that this magic not happen.
2534 #
2535 # The command line options always override the explicit settings in
2536 # configure.in, and the settings in configure.in override this magic.
2537 #
2538 # If the default for a toolchain is to use GNU as and ld, and you don't
2539 # want to do that, then you should use the --without-gnu-as and
2540 # --without-gnu-ld options for the configure script.
2541
2542 if test x${use_gnu_as} = x &&
2543 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2544 with_gnu_as=yes
2545 extra_host_args="$extra_host_args --with-gnu-as"
2546 fi
2547
2548 if test x${use_gnu_ld} = x &&
2549 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2550 with_gnu_ld=yes
2551 extra_host_args="$extra_host_args --with-gnu-ld"
2552 fi
2553
2554 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2555 # can detect this case.
2556
2557 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2558 with_newlib=yes
2559 extra_host_args="$extra_host_args --with-newlib"
2560 fi
2561
2562
2563 # Default to using --with-stabs for certain targets.
2564 if test x${with_stabs} = x ; then
2565 case "${target}" in
2566 mips*-*-irix[56]*)
2567 ;;
2568 mips*-*-* | alpha*-*-osf*)
2569 with_stabs=yes;
2570 extra_host_args="${extra_host_args} --with-stabs"
2571 ;;
2572 esac
2573 fi
2574
2575 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2576 # them automatically.
2577 case "${host}" in
2578 hppa*64*-*-hpux11*)
2579 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2580 ;;
2581 esac
2582
2583 # Some systems (e.g., one of the i386-aix systems the gas testers are
2584 # using) don't handle "\$" correctly, so don't use it here.
2585 tooldir='${exec_prefix}'/${target_alias}
2586 build_tooldir=${tooldir}
2587
2588 # Generate a default definition for YACC. This is used if the makefile can't
2589 # locate bison or byacc in objdir.
2590
2591 for prog in 'bison -y' byacc yacc
2592 do
2593 set dummy $prog; tmp=$2
2594 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2595 for dir in $PATH; do
2596 test -z "$dir" && dir=.
2597 if test -f $dir/$tmp; then
2598 DEFAULT_YACC="$prog"
2599 break
2600 fi
2601 done
2602 IFS="$save_ifs"
2603
2604 test -n "$DEFAULT_YACC" && break
2605 done
2606
2607 # Generate a default definition for M4. This is used if the makefile can't
2608 # locate m4 in objdir.
2609
2610 for prog in gm4 gnum4 m4
2611 do
2612 set dummy $prog; tmp=$2
2613 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2614 for dir in $PATH; do
2615 test -z "$dir" && dir=.
2616 if test -f $dir/$tmp; then
2617 DEFAULT_M4="$prog"
2618 break
2619 fi
2620 done
2621 IFS="$save_ifs"
2622
2623 test -n "$DEFAULT_M4" && break
2624 done
2625
2626 # Generate a default definition for LEX. This is used if the makefile can't
2627 # locate flex in objdir.
2628
2629 for prog in flex lex
2630 do
2631 set dummy $prog; tmp=$2
2632 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2633 for dir in $PATH; do
2634 test -z "$dir" && dir=.
2635 if test -f $dir/$tmp; then
2636 DEFAULT_LEX="$prog"
2637 break
2638 fi
2639 done
2640 IFS="$save_ifs"
2641
2642 test -n "$DEFAULT_LEX" && break
2643 done
2644
2645 # FIXME Should this be done recursively ??? (Useful for e.g. gdbtest)
2646 # Set up the list of links to be made.
2647 # ${links} is the list of link names, and ${files} is the list of names to link to.
2648
2649 # Make the links.
2650 configlinks="${links}"
2651 if test -r ./config.status ; then
2652 mv -f ./config.status ./config.back
2653 fi
2654 while test -n "${files}" ; do
2655 # set file to car of files, files to cdr of files
2656 set ${files}; file=$1; shift; files=$*
2657 set ${links}; link=$1; shift; links=$*
2658
2659 if test ! -r ${srcdir}/${file} ; then
2660 if test ! -r ${file} ; then
2661 echo '***' "${progname}: cannot create a link \"${link}\"," 1>&2
2662 echo '***' "since the file \"${srcdir}/${file}\" does not exist." 1>&2
2663 exit 1
2664 else
2665 srcfile=${file}
2666 fi
2667 else
2668 srcfile=${srcdir}/${file}
2669 fi
2670
2671 ${remove} -f ${link}
2672 # Make a symlink if possible, otherwise try a hard link
2673 if ${symbolic_link} ${srcfile} ${link} >/dev/null 2>&1 ; then
2674 true
2675 else
2676 # We need to re-remove the file because Lynx leaves a
2677 # very strange directory there when it fails an NFS symlink.
2678 ${remove} -r -f ${link}
2679 ${hard_link} ${srcfile} ${link}
2680 fi
2681 if test ! -r ${link} ; then
2682 echo '***' "${progname}: unable to link \"${link}\" to \"${srcfile}\"." 1>&2
2683 exit 1
2684 fi
2685
2686 echo "Linked \"${link}\" to \"${srcfile}\"."
2687 done
2688
2689 # Create a .gdbinit file which runs the one in srcdir
2690 # and tells GDB to look there for source files.
2691
2692 if test -r ${srcdir}/.gdbinit ; then
2693 case ${srcdir} in
2694 .) ;;
2695 *) cat > ./.gdbinit <<EOF
2696 # ${NO_EDIT}
2697 dir ${srcdir}
2698 dir .
2699 source ${srcdir}/.gdbinit
2700 EOF
2701 ;;
2702 esac
2703 fi
2704
2705 # Make sure that the compiler is able to generate an executable. If it
2706 # can't, we are probably in trouble. We don't care whether we can run the
2707 # executable--we might be using a cross compiler--we only care whether it
2708 # can be created. At this point the main configure script has set CC.
2709 we_are_ok=no
2710 echo "int main () { return 0; }" > conftest.c
2711 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2712 if test $? = 0 ; then
2713 if test -s conftest || test -s conftest.exe ; then
2714 we_are_ok=yes
2715 fi
2716 fi
2717 case $we_are_ok in
2718 no)
2719 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2720 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2721 rm -f conftest*
2722 exit 1
2723 ;;
2724 esac
2725 rm -f conftest*
2726
2727 # The Solaris /usr/ucb/cc compiler does not appear to work.
2728 case "${host}" in
2729 sparc-sun-solaris2*)
2730 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2731 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2732 could_use=
2733 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2734 if test -d /opt/cygnus/bin ; then
2735 if test "$could_use" = "" ; then
2736 could_use="/opt/cygnus/bin"
2737 else
2738 could_use="$could_use or /opt/cygnus/bin"
2739 fi
2740 fi
2741 if test "$could_use" = "" ; then
2742 echo "Warning: compilation may fail because you're using"
2743 echo "/usr/ucb/cc. You should change your PATH or CC "
2744 echo "variable and rerun configure."
2745 else
2746 echo "Warning: compilation may fail because you're using"
2747 echo "/usr/ucb/cc, when you should use the C compiler from"
2748 echo "$could_use. You should change your"
2749 echo "PATH or CC variable and rerun configure."
2750 fi
2751 fi
2752 ;;
2753 esac
2754
2755 # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
2756 # binutils tools will find libbfd.so.
2757 case "${enable_shared}" in
2758 no | "") SET_LIB_PATH= ;;
2759 *) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;;
2760 esac
2761
2762 case "${host}" in
2763 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2764 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2765 esac
2766
2767 # Record target_configdirs and the configure arguments for target and
2768 # build configuration in Makefile.
2769 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2770
2771 # This is the final value for target_configdirs. configdirs already
2772 # has its final value, as does build_modules. It's time to create some
2773 # lists of valid targets.
2774
2775 all_build_modules=
2776 configure_build_modules=
2777 for module in ${build_modules} ; do
2778 all_build_modules=all-build-${module}
2779 configure_build_modules=configure-build-${module}
2780 done
2781
2782 # Determine whether gdb needs tk/tcl or not.
2783 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2784 # and in that case we want gdb to be built without tk. Ugh!
2785 # In fact I believe gdb is the *only* package directly dependent on tk,
2786 # so we should be able to put the 'maybe's in unconditionally and
2787 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2788 # 100% sure that that's safe though.
2789
2790 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui"
2791 case "$enable_gdbtk" in
2792 no)
2793 GDB_TK="" ;;
2794 yes)
2795 GDB_TK="${gdb_tk}" ;;
2796 *)
2797 # Only add the dependency on gdbtk when GDBtk is part of the gdb
2798 # distro. Eventually someone will fix this and move Insight, nee
2799 # gdbtk to a separate directory.
2800 if test -d ${srcdir}/gdb/gdbtk ; then
2801 GDB_TK="${gdb_tk}"
2802 else
2803 GDB_TK=""
2804 fi
2805 ;;
2806 esac
2807
2808 # Create the 'maybe dependencies'. This uses a temporary file.
2809
2810 # While at that, we remove Makefiles if we were started for recursive
2811 # configuration, so that the top-level Makefile reconfigures them,
2812 # like we used to do when configure itself was recursive.
2813 rm -f maybedep.tmp
2814 echo '# maybedep.tmp' > maybedep.tmp
2815
2816 # Make-targets which may need maybe dependencies.
2817 mts="configure all install check clean distclean dvi info install-info"
2818 mts="${mts} installcheck mostlyclean maintainer-clean TAGS"
2819
2820 # Loop over modules and make-targets.
2821 for module in ${build_modules} ; do
2822 if test -z "${no_recursion}" \
2823 && test -f ${build_subdir}/${module}/Makefile; then
2824 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
2825 rm -f ${build_subdir}/${module}/Makefile
2826 fi
2827 for mt in ${mts} ; do
2828 case ${mt} in
2829 install) ;; # No installing build modules.
2830 *) echo "maybe-${mt}-build-${module}: ${mt}-build-${module}" >> maybedep.tmp ;;
2831 esac
2832 done
2833 done
2834 for module in ${configdirs} ; do
2835 if test -z "${no_recursion}" \
2836 && test -f ${module}/Makefile; then
2837 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
2838 rm -f ${module}/Makefile
2839 fi
2840 for mt in ${mts} ; do
2841 echo "maybe-${mt}-${module}: ${mt}-${module}" >> maybedep.tmp
2842 done
2843 done
2844 for module in ${target_configdirs} ; do
2845 if test -z "${no_recursion}" \
2846 && test -f ${target_subdir}/${module}/Makefile; then
2847 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
2848 rm -f ${target_subdir}/${module}/Makefile
2849 fi
2850 for mt in ${mts} ; do
2851 echo "maybe-${mt}-target-${module}: ${mt}-target-${module}" >> maybedep.tmp
2852 done
2853 done
2854 maybe_dependencies=maybedep.tmp
2855
2856
2857 # Create the serialization dependencies. This uses a temporary file.
2858
2859 # Check whether --enable-serial-configure or --disable-serial-configure was given.
2860 if test "${enable_serial_configure+set}" = set; then
2861 enableval="$enable_serial_configure"
2862 :
2863 fi
2864
2865
2866 case ${enable_serial_configure} in
2867 yes)
2868 enable_serial_build_configure=yes
2869 enable_serial_host_configure=yes
2870 enable_serial_target_configure=yes
2871 ;;
2872 esac
2873
2874 # These force 'configure's to be done one at a time, to avoid problems
2875 # with contention over a shared config.cache.
2876 rm -f serdep.tmp
2877 echo '# serdep.tmp' > serdep.tmp
2878 olditem=
2879 test "x${enable_serial_build_configure}" = xyes &&
2880 for item in ${build_configdirs} ; do
2881 case ${olditem} in
2882 "") ;;
2883 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
2884 esac
2885 olditem=${item}
2886 done
2887 olditem=
2888 test "x${enable_serial_host_configure}" = xyes &&
2889 for item in ${configdirs} ; do
2890 case ${olditem} in
2891 "") ;;
2892 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
2893 esac
2894 olditem=${item}
2895 done
2896 olditem=
2897 test "x${enable_serial_target_configure}" = xyes &&
2898 for item in ${target_configdirs} ; do
2899 case ${olditem} in
2900 "") ;;
2901 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
2902 esac
2903 olditem=${item}
2904 done
2905 serialization_dependencies=serdep.tmp
2906
2907
2908 # Base args. Strip norecursion, cache-file, srcdir, host, build,
2909 # target and nonopt. These are the ones we might not want to pass
2910 # down to subconfigures. Also strip program-prefix, program-suffix,
2911 # and program-transform-name, so that we can pass down a consistent
2912 # program-transform-name. If autoconf has put single quotes around
2913 # any of these arguments (because they contain shell metacharacters)
2914 # then this will fail; in practice this only happens for
2915 # --program-transform-name, so be sure to override --program-transform-name
2916 # at the end of the argument list.
2917 # These will be expanded by make, so quote '$'.
2918 cat <<\EOF_SED > conftestsed
2919 s/ --no[^ ]* / /
2920 s/ --c[a-z-]*[= ][^ ]* / /
2921 s/ --sr[a-z-]*[= ][^ ]* / /
2922 s/ --ho[a-z-]*[= ][^ ]* / /
2923 s/ --bu[a-z-]*[= ][^ ]* / /
2924 s/ --t[a-z-]*[= ][^ ]* / /
2925 s/ --program-[pst][a-z-]*[= ][^ ]* / /
2926 s/ -cache-file[= ][^ ]* / /
2927 s/ -srcdir[= ][^ ]* / /
2928 s/ -host[= ][^ ]* / /
2929 s/ -build[= ][^ ]* / /
2930 s/ -target[= ][^ ]* / /
2931 s/ -program-prefix[= ][^ ]* / /
2932 s/ -program-suffix[= ][^ ]* / /
2933 s/ -program-transform-name[= ][^ ]* / /
2934 s/ [^' -][^ ]* / /
2935 s/^ *//;s/ *$//
2936 s,\$,$$,g
2937 EOF_SED
2938 sed -f conftestsed <<EOF_SED > conftestsed.out
2939 ${ac_configure_args}
2940 EOF_SED
2941 baseargs=`cat conftestsed.out`
2942 rm -f conftestsed conftestsed.out
2943
2944 # Add in --program-transform-name, after --program-prefix and
2945 # --program-suffix have been applied to it. Autoconf has already
2946 # doubled dollar signs and backslashes in program_transform_name; we want
2947 # the backslashes un-doubled, and then the entire thing wrapped in single
2948 # quotes, because this will be expanded first by make and then by the shell.
2949 # Also, because we want to override the logic in subdir configure scripts to
2950 # choose program_transform_name, replace any s,x,x, with s,y,y,.
2951 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
2952 ${program_transform_name}
2953 EOF_SED
2954 gcc_transform_name=`cat conftestsed.out`
2955 rm -f conftestsed.out
2956 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2957
2958 # For the build-side libraries, we just need to pretend we're native,
2959 # and not use the same cache file. Multilibs are neither needed nor
2960 # desired.
2961 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
2962
2963 # For host modules, accept cache file option, or specification as blank.
2964 case "${cache_file}" in
2965 "") # empty
2966 cache_file_option="" ;;
2967 /* | [A-Za-z]:[\\/]* ) # absolute path
2968 cache_file_option="--cache-file=${cache_file}" ;;
2969 *) # relative path
2970 cache_file_option="--cache-file=../${cache_file}" ;;
2971 esac
2972
2973 # Host dirs don't like to share a cache file either, horribly enough.
2974 # This seems to be due to autoconf 2.5x stupidity.
2975 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
2976
2977 target_configargs=${baseargs}
2978
2979 # Passing a --with-cross-host argument lets the target libraries know
2980 # whether they are being built with a cross-compiler or being built
2981 # native. However, it would be better to use other mechanisms to make the
2982 # sorts of decisions they want to make on this basis. Please consider
2983 # this option to be deprecated. FIXME.
2984 if test x${is_cross_compiler} = xyes ; then
2985 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
2986 fi
2987
2988 # Default to --enable-multilib.
2989 if test x${enable_multilib} = x ; then
2990 target_configargs="--enable-multilib ${target_configargs}"
2991 fi
2992
2993 # Pass --with-newlib if appropriate. Note that target_configdirs has
2994 # changed from the earlier setting of with_newlib.
2995 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
2996 target_configargs="--with-newlib ${target_configargs}"
2997 fi
2998
2999 # Different target subdirs use different values of certain variables
3000 # (notably CXX). Worse, multilibs use *lots* of different values.
3001 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3002 # it doesn't automatically accept command-line overrides of them.
3003 # This means it's not safe for target subdirs to share a cache file,
3004 # which is disgusting, but there you have it. Hopefully this can be
3005 # fixed in future. It's still worthwhile to use a cache file for each
3006 # directory. I think.
3007
3008 # Pass the appropriate --host, --build, and --cache-file arguments.
3009 target_configargs="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}"
3010
3011 # provide a proper gxx_include_dir.
3012 # Note, if you change the default, make sure to fix both here and in
3013 # the gcc and libstdc++-v3 subdirectories.
3014 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
3015 case "${with_gxx_include_dir}" in
3016 yes)
3017 { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; }
3018 ;;
3019 no | "")
3020 case "${enable_version_specific_runtime_libs}" in
3021 yes) gxx_include_dir='${libsubdir}/include/c++' ;;
3022 *)
3023 . ${srcdir}/config.if
3024 gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;;
3025 esac ;;
3026 *) gxx_include_dir=${with_gxx_include_dir} ;;
3027 esac
3028
3029 FLAGS_FOR_TARGET=
3030 case " $target_configdirs " in
3031 *" newlib "*)
3032 case " $target_configargs " in
3033 *" --with-newlib "*)
3034 case "$target" in
3035 *-cygwin*)
3036 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' ;;
3037 esac
3038
3039 # If we're not building GCC, don't discard standard headers.
3040 if test -d ${srcdir}/gcc; then
3041 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3042
3043 if test "${build}" != "${host}"; then
3044 # On Canadian crosses, CC_FOR_TARGET will have already been set
3045 # by `configure', so we won't have an opportunity to add -Bgcc/
3046 # to it. This is right: we don't want to search that directory
3047 # for binaries, but we want the header files in there, so add
3048 # them explicitly.
3049 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
3050
3051 # Someone might think of using the pre-installed headers on
3052 # Canadian crosses, in case the installed compiler is not fully
3053 # compatible with the compiler being built. In this case, it
3054 # would be better to flag an error than risking having
3055 # incompatible object files being constructed. We can't
3056 # guarantee that an error will be flagged, but let's hope the
3057 # compiler will do it, when presented with incompatible header
3058 # files.
3059 fi
3060 fi
3061
3062 case "${target}-${is_cross_compiler}" in
3063 i[3456789]86-*-linux*-no)
3064 # Here host == target, so we don't need to build gcc,
3065 # so we don't want to discard standard headers.
3066 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3067 ;;
3068 *)
3069 # If we're building newlib, use its generic headers last, but search
3070 # for any libc-related directories first (so make it the last -B
3071 # switch).
3072 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3073 ;;
3074 esac
3075 ;;
3076 esac
3077 ;;
3078 esac
3079
3080 # Allow the user to override the flags for
3081 # our build compiler if desired.
3082 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3083
3084 # On Canadian crosses, we'll be searching the right directories for
3085 # the previously-installed cross compiler, so don't bother to add
3086 # flags for directories within the install tree of the compiler
3087 # being built; programs in there won't even run.
3088 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3089 # Search for pre-installed headers if nothing else fits.
3090 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3091 fi
3092
3093 if test "x${use_gnu_ld}" = x &&
3094 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3095 # Arrange for us to find uninstalled linker scripts.
3096 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
3097 fi
3098
3099 if test "x${CC_FOR_TARGET+set}" = xset; then
3100 :
3101 elif test -d ${srcdir}/gcc; then
3102 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
3103 elif test "$host" = "$target"; then
3104 CC_FOR_TARGET='$(CC)'
3105 else
3106 CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"`
3107 fi
3108 CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3109
3110 if test "x${GCJ_FOR_TARGET+set}" = xset; then
3111 :
3112 elif test -d ${srcdir}/gcc; then
3113 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
3114 elif test "$host" = "$target"; then
3115 GCJ_FOR_TARGET='gcj'
3116 else
3117 GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"`
3118 fi
3119 GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3120
3121 # Don't use libstdc++-v3's flags to configure/build itself.
3122 libstdcxx_flags='`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'
3123 raw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
3124
3125 if test "x${CXX_FOR_TARGET+set}" = xset; then
3126 if test "x${RAW_CXX_FOR_TARGET+set}" != xset; then
3127 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3128 fi
3129 elif test -d ${srcdir}/gcc; then
3130 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
3131 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
3132 # default whereas gcc does not.
3133 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
3134 # all other cases.
3135 CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
3136 RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags
3137 elif test "$host" = "$target"; then
3138 CXX_FOR_TARGET='$(CXX)'
3139 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3140 else
3141 CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"`
3142 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3143 fi
3144 CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3145 RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3146
3147 qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3148 qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3149
3150 # We want to defer the evaluation of `cmd`s and shell variables in
3151 # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
3152 # bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
3153 # quotes, but we still have to duplicate `$'s so that shell variables
3154 # can be expanded by the nested make as shell variables, not as make
3155 # macros.
3156 qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3157 qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3158
3159 # Wrap CC_FOR_TARGET and friends, for certain types of builds.
3160 CC_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}"
3161 GCJ_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}"
3162 CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}"
3163 RAW_CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}"
3164 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}"
3165 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}"
3166
3167 # Makefile fragments.
3168 host_makefile_frag=${srcdir}/${host_makefile_frag}
3169 target_makefile_frag=${srcdir}/${target_makefile_frag}
3170 alphaieee_frag=${srcdir}/${alphaieee_frag}
3171 ospace_frag=${srcdir}/${ospace_frag}
3172
3173
3174
3175
3176
3177 # Miscellanea: directories, flags, etc.
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191 # Build module lists & subconfigure args.
3192
3193
3194
3195
3196 # Host module lists & subconfigure args.
3197
3198
3199
3200 # Target module lists & subconfigure args.
3201
3202
3203
3204 # Build tools.
3205
3206
3207
3208
3209
3210
3211
3212 # Host tools.
3213 ncn_tool_prefix=
3214 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3215 ncn_target_tool_prefix=
3216 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3217
3218 if test -n "$ncn_tool_prefix"; then
3219 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
3220 set dummy ${ncn_tool_prefix}ar; ac_word=$2
3221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3222 echo "configure:3223: checking for $ac_word" >&5
3223 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3225 else
3226 if test -n "$AR"; then
3227 ac_cv_prog_AR="$AR" # Let the user override the test.
3228 else
3229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3230 ac_dummy="$PATH"
3231 for ac_dir in $ac_dummy; do
3232 test -z "$ac_dir" && ac_dir=.
3233 if test -f $ac_dir/$ac_word; then
3234 ac_cv_prog_AR="${ncn_tool_prefix}ar"
3235 break
3236 fi
3237 done
3238 IFS="$ac_save_ifs"
3239 fi
3240 fi
3241 AR="$ac_cv_prog_AR"
3242 if test -n "$AR"; then
3243 echo "$ac_t""$AR" 1>&6
3244 else
3245 echo "$ac_t""no" 1>&6
3246 fi
3247
3248 fi
3249 if test -z "$ac_cv_prog_AR" ; then
3250 if test $build = $host ; then
3251 ncn_cv_AR=$AR
3252 # Extract the first word of "ar", so it can be a program name with args.
3253 set dummy ar; ac_word=$2
3254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3255 echo "configure:3256: checking for $ac_word" >&5
3256 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3258 else
3259 if test -n "$ncn_cv_AR"; then
3260 ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test.
3261 else
3262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3263 ac_dummy="$PATH"
3264 for ac_dir in $ac_dummy; do
3265 test -z "$ac_dir" && ac_dir=.
3266 if test -f $ac_dir/$ac_word; then
3267 ac_cv_prog_ncn_cv_AR="ar"
3268 break
3269 fi
3270 done
3271 IFS="$ac_save_ifs"
3272 test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar"
3273 fi
3274 fi
3275 ncn_cv_AR="$ac_cv_prog_ncn_cv_AR"
3276 if test -n "$ncn_cv_AR"; then
3277 echo "$ac_t""$ncn_cv_AR" 1>&6
3278 else
3279 echo "$ac_t""no" 1>&6
3280 fi
3281
3282 AR=$ncn_cv_AR
3283 else
3284 AR="${ncn_tool_prefix}ar"
3285 fi
3286 else
3287 AR="$ac_cv_prog_AR"
3288 fi
3289
3290 if test -n "$ncn_tool_prefix"; then
3291 # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args.
3292 set dummy ${ncn_tool_prefix}as; ac_word=$2
3293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3294 echo "configure:3295: checking for $ac_word" >&5
3295 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3297 else
3298 if test -n "$AS"; then
3299 ac_cv_prog_AS="$AS" # Let the user override the test.
3300 else
3301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3302 ac_dummy="$PATH"
3303 for ac_dir in $ac_dummy; do
3304 test -z "$ac_dir" && ac_dir=.
3305 if test -f $ac_dir/$ac_word; then
3306 ac_cv_prog_AS="${ncn_tool_prefix}as"
3307 break
3308 fi
3309 done
3310 IFS="$ac_save_ifs"
3311 fi
3312 fi
3313 AS="$ac_cv_prog_AS"
3314 if test -n "$AS"; then
3315 echo "$ac_t""$AS" 1>&6
3316 else
3317 echo "$ac_t""no" 1>&6
3318 fi
3319
3320 fi
3321 if test -z "$ac_cv_prog_AS" ; then
3322 if test $build = $host ; then
3323 ncn_cv_AS=$AS
3324 # Extract the first word of "as", so it can be a program name with args.
3325 set dummy as; ac_word=$2
3326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3327 echo "configure:3328: checking for $ac_word" >&5
3328 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3330 else
3331 if test -n "$ncn_cv_AS"; then
3332 ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test.
3333 else
3334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3335 ac_dummy="$PATH"
3336 for ac_dir in $ac_dummy; do
3337 test -z "$ac_dir" && ac_dir=.
3338 if test -f $ac_dir/$ac_word; then
3339 ac_cv_prog_ncn_cv_AS="as"
3340 break
3341 fi
3342 done
3343 IFS="$ac_save_ifs"
3344 test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as"
3345 fi
3346 fi
3347 ncn_cv_AS="$ac_cv_prog_ncn_cv_AS"
3348 if test -n "$ncn_cv_AS"; then
3349 echo "$ac_t""$ncn_cv_AS" 1>&6
3350 else
3351 echo "$ac_t""no" 1>&6
3352 fi
3353
3354 AS=$ncn_cv_AS
3355 else
3356 AS="${ncn_tool_prefix}as"
3357 fi
3358 else
3359 AS="$ac_cv_prog_AS"
3360 fi
3361
3362 if test -n "$ncn_tool_prefix"; then
3363 # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args.
3364 set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
3365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3366 echo "configure:3367: checking for $ac_word" >&5
3367 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3369 else
3370 if test -n "$DLLTOOL"; then
3371 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3372 else
3373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3374 ac_dummy="$PATH"
3375 for ac_dir in $ac_dummy; do
3376 test -z "$ac_dir" && ac_dir=.
3377 if test -f $ac_dir/$ac_word; then
3378 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool"
3379 break
3380 fi
3381 done
3382 IFS="$ac_save_ifs"
3383 fi
3384 fi
3385 DLLTOOL="$ac_cv_prog_DLLTOOL"
3386 if test -n "$DLLTOOL"; then
3387 echo "$ac_t""$DLLTOOL" 1>&6
3388 else
3389 echo "$ac_t""no" 1>&6
3390 fi
3391
3392 fi
3393 if test -z "$ac_cv_prog_DLLTOOL" ; then
3394 if test $build = $host ; then
3395 ncn_cv_DLLTOOL=$DLLTOOL
3396 # Extract the first word of "dlltool", so it can be a program name with args.
3397 set dummy dlltool; 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_ncn_cv_DLLTOOL'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3402 else
3403 if test -n "$ncn_cv_DLLTOOL"; then
3404 ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # 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_ncn_cv_DLLTOOL="dlltool"
3412 break
3413 fi
3414 done
3415 IFS="$ac_save_ifs"
3416 test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
3417 fi
3418 fi
3419 ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL"
3420 if test -n "$ncn_cv_DLLTOOL"; then
3421 echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6
3422 else
3423 echo "$ac_t""no" 1>&6
3424 fi
3425
3426 DLLTOOL=$ncn_cv_DLLTOOL
3427 else
3428 DLLTOOL="${ncn_tool_prefix}dlltool"
3429 fi
3430 else
3431 DLLTOOL="$ac_cv_prog_DLLTOOL"
3432 fi
3433
3434 if test -n "$ncn_tool_prefix"; then
3435 # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args.
3436 set dummy ${ncn_tool_prefix}ld; 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_LD'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3441 else
3442 if test -n "$LD"; then
3443 ac_cv_prog_LD="$LD" # 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_LD="${ncn_tool_prefix}ld"
3451 break
3452 fi
3453 done
3454 IFS="$ac_save_ifs"
3455 fi
3456 fi
3457 LD="$ac_cv_prog_LD"
3458 if test -n "$LD"; then
3459 echo "$ac_t""$LD" 1>&6
3460 else
3461 echo "$ac_t""no" 1>&6
3462 fi
3463
3464 fi
3465 if test -z "$ac_cv_prog_LD" ; then
3466 if test $build = $host ; then
3467 ncn_cv_LD=$LD
3468 # Extract the first word of "ld", so it can be a program name with args.
3469 set dummy ld; ac_word=$2
3470 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3471 echo "configure:3472: checking for $ac_word" >&5
3472 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
3473 echo $ac_n "(cached) $ac_c" 1>&6
3474 else
3475 if test -n "$ncn_cv_LD"; then
3476 ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test.
3477 else
3478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3479 ac_dummy="$PATH"
3480 for ac_dir in $ac_dummy; do
3481 test -z "$ac_dir" && ac_dir=.
3482 if test -f $ac_dir/$ac_word; then
3483 ac_cv_prog_ncn_cv_LD="ld"
3484 break
3485 fi
3486 done
3487 IFS="$ac_save_ifs"
3488 test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld"
3489 fi
3490 fi
3491 ncn_cv_LD="$ac_cv_prog_ncn_cv_LD"
3492 if test -n "$ncn_cv_LD"; then
3493 echo "$ac_t""$ncn_cv_LD" 1>&6
3494 else
3495 echo "$ac_t""no" 1>&6
3496 fi
3497
3498 LD=$ncn_cv_LD
3499 else
3500 LD="${ncn_tool_prefix}ld"
3501 fi
3502 else
3503 LD="$ac_cv_prog_LD"
3504 fi
3505
3506 if test -n "$ncn_tool_prefix"; then
3507 # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args.
3508 set dummy ${ncn_tool_prefix}nm; ac_word=$2
3509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3510 echo "configure:3511: checking for $ac_word" >&5
3511 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3513 else
3514 if test -n "$NM"; then
3515 ac_cv_prog_NM="$NM" # Let the user override the test.
3516 else
3517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3518 ac_dummy="$PATH"
3519 for ac_dir in $ac_dummy; do
3520 test -z "$ac_dir" && ac_dir=.
3521 if test -f $ac_dir/$ac_word; then
3522 ac_cv_prog_NM="${ncn_tool_prefix}nm"
3523 break
3524 fi
3525 done
3526 IFS="$ac_save_ifs"
3527 fi
3528 fi
3529 NM="$ac_cv_prog_NM"
3530 if test -n "$NM"; then
3531 echo "$ac_t""$NM" 1>&6
3532 else
3533 echo "$ac_t""no" 1>&6
3534 fi
3535
3536 fi
3537 if test -z "$ac_cv_prog_NM" ; then
3538 if test $build = $host ; then
3539 ncn_cv_NM=$NM
3540 # Extract the first word of "nm", so it can be a program name with args.
3541 set dummy nm; ac_word=$2
3542 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3543 echo "configure:3544: checking for $ac_word" >&5
3544 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
3545 echo $ac_n "(cached) $ac_c" 1>&6
3546 else
3547 if test -n "$ncn_cv_NM"; then
3548 ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test.
3549 else
3550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3551 ac_dummy="$PATH"
3552 for ac_dir in $ac_dummy; do
3553 test -z "$ac_dir" && ac_dir=.
3554 if test -f $ac_dir/$ac_word; then
3555 ac_cv_prog_ncn_cv_NM="nm"
3556 break
3557 fi
3558 done
3559 IFS="$ac_save_ifs"
3560 test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm"
3561 fi
3562 fi
3563 ncn_cv_NM="$ac_cv_prog_ncn_cv_NM"
3564 if test -n "$ncn_cv_NM"; then
3565 echo "$ac_t""$ncn_cv_NM" 1>&6
3566 else
3567 echo "$ac_t""no" 1>&6
3568 fi
3569
3570 NM=$ncn_cv_NM
3571 else
3572 NM="${ncn_tool_prefix}nm"
3573 fi
3574 else
3575 NM="$ac_cv_prog_NM"
3576 fi
3577
3578 if test -n "$ncn_tool_prefix"; then
3579 # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args.
3580 set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3582 echo "configure:3583: checking for $ac_word" >&5
3583 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3585 else
3586 if test -n "$RANLIB"; then
3587 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3588 else
3589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3590 ac_dummy="$PATH"
3591 for ac_dir in $ac_dummy; do
3592 test -z "$ac_dir" && ac_dir=.
3593 if test -f $ac_dir/$ac_word; then
3594 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib"
3595 break
3596 fi
3597 done
3598 IFS="$ac_save_ifs"
3599 fi
3600 fi
3601 RANLIB="$ac_cv_prog_RANLIB"
3602 if test -n "$RANLIB"; then
3603 echo "$ac_t""$RANLIB" 1>&6
3604 else
3605 echo "$ac_t""no" 1>&6
3606 fi
3607
3608 fi
3609 if test -z "$ac_cv_prog_RANLIB" ; then
3610 if test $build = $host ; then
3611 ncn_cv_RANLIB=$RANLIB
3612 # Extract the first word of "ranlib", so it can be a program name with args.
3613 set dummy ranlib; ac_word=$2
3614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3615 echo "configure:3616: checking for $ac_word" >&5
3616 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3618 else
3619 if test -n "$ncn_cv_RANLIB"; then
3620 ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test.
3621 else
3622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3623 ac_dummy="$PATH"
3624 for ac_dir in $ac_dummy; do
3625 test -z "$ac_dir" && ac_dir=.
3626 if test -f $ac_dir/$ac_word; then
3627 ac_cv_prog_ncn_cv_RANLIB="ranlib"
3628 break
3629 fi
3630 done
3631 IFS="$ac_save_ifs"
3632 test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":"
3633 fi
3634 fi
3635 ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB"
3636 if test -n "$ncn_cv_RANLIB"; then
3637 echo "$ac_t""$ncn_cv_RANLIB" 1>&6
3638 else
3639 echo "$ac_t""no" 1>&6
3640 fi
3641
3642 RANLIB=$ncn_cv_RANLIB
3643 else
3644 RANLIB=":"
3645 fi
3646 else
3647 RANLIB="$ac_cv_prog_RANLIB"
3648 fi
3649
3650 if test -n "$ncn_tool_prefix"; then
3651 # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args.
3652 set dummy ${ncn_tool_prefix}windres; ac_word=$2
3653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3654 echo "configure:3655: checking for $ac_word" >&5
3655 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3657 else
3658 if test -n "$WINDRES"; then
3659 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3660 else
3661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3662 ac_dummy="$PATH"
3663 for ac_dir in $ac_dummy; do
3664 test -z "$ac_dir" && ac_dir=.
3665 if test -f $ac_dir/$ac_word; then
3666 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres"
3667 break
3668 fi
3669 done
3670 IFS="$ac_save_ifs"
3671 fi
3672 fi
3673 WINDRES="$ac_cv_prog_WINDRES"
3674 if test -n "$WINDRES"; then
3675 echo "$ac_t""$WINDRES" 1>&6
3676 else
3677 echo "$ac_t""no" 1>&6
3678 fi
3679
3680 fi
3681 if test -z "$ac_cv_prog_WINDRES" ; then
3682 if test $build = $host ; then
3683 ncn_cv_WINDRES=$WINDRES
3684 # Extract the first word of "windres", so it can be a program name with args.
3685 set dummy windres; ac_word=$2
3686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3687 echo "configure:3688: checking for $ac_word" >&5
3688 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3690 else
3691 if test -n "$ncn_cv_WINDRES"; then
3692 ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test.
3693 else
3694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3695 ac_dummy="$PATH"
3696 for ac_dir in $ac_dummy; do
3697 test -z "$ac_dir" && ac_dir=.
3698 if test -f $ac_dir/$ac_word; then
3699 ac_cv_prog_ncn_cv_WINDRES="windres"
3700 break
3701 fi
3702 done
3703 IFS="$ac_save_ifs"
3704 test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres"
3705 fi
3706 fi
3707 ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES"
3708 if test -n "$ncn_cv_WINDRES"; then
3709 echo "$ac_t""$ncn_cv_WINDRES" 1>&6
3710 else
3711 echo "$ac_t""no" 1>&6
3712 fi
3713
3714 WINDRES=$ncn_cv_WINDRES
3715 else
3716 WINDRES="${ncn_tool_prefix}windres"
3717 fi
3718 else
3719 WINDRES="$ac_cv_prog_WINDRES"
3720 fi
3721
3722 if test -n "$ncn_tool_prefix"; then
3723 # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args.
3724 set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
3725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3726 echo "configure:3727: checking for $ac_word" >&5
3727 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3729 else
3730 if test -n "$OBJCOPY"; then
3731 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
3732 else
3733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3734 ac_dummy="$PATH"
3735 for ac_dir in $ac_dummy; do
3736 test -z "$ac_dir" && ac_dir=.
3737 if test -f $ac_dir/$ac_word; then
3738 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy"
3739 break
3740 fi
3741 done
3742 IFS="$ac_save_ifs"
3743 fi
3744 fi
3745 OBJCOPY="$ac_cv_prog_OBJCOPY"
3746 if test -n "$OBJCOPY"; then
3747 echo "$ac_t""$OBJCOPY" 1>&6
3748 else
3749 echo "$ac_t""no" 1>&6
3750 fi
3751
3752 fi
3753 if test -z "$ac_cv_prog_OBJCOPY" ; then
3754 if test $build = $host ; then
3755 ncn_cv_OBJCOPY=$OBJCOPY
3756 # Extract the first word of "objcopy", so it can be a program name with args.
3757 set dummy objcopy; ac_word=$2
3758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3759 echo "configure:3760: checking for $ac_word" >&5
3760 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3762 else
3763 if test -n "$ncn_cv_OBJCOPY"; then
3764 ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test.
3765 else
3766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3767 ac_dummy="$PATH"
3768 for ac_dir in $ac_dummy; do
3769 test -z "$ac_dir" && ac_dir=.
3770 if test -f $ac_dir/$ac_word; then
3771 ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
3772 break
3773 fi
3774 done
3775 IFS="$ac_save_ifs"
3776 test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
3777 fi
3778 fi
3779 ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY"
3780 if test -n "$ncn_cv_OBJCOPY"; then
3781 echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6
3782 else
3783 echo "$ac_t""no" 1>&6
3784 fi
3785
3786 OBJCOPY=$ncn_cv_OBJCOPY
3787 else
3788 OBJCOPY="${ncn_tool_prefix}objcopy"
3789 fi
3790 else
3791 OBJCOPY="$ac_cv_prog_OBJCOPY"
3792 fi
3793
3794 if test -n "$ncn_tool_prefix"; then
3795 # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args.
3796 set dummy ${ncn_tool_prefix}objdump; ac_word=$2
3797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3798 echo "configure:3799: checking for $ac_word" >&5
3799 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
3800 echo $ac_n "(cached) $ac_c" 1>&6
3801 else
3802 if test -n "$OBJDUMP"; then
3803 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3804 else
3805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3806 ac_dummy="$PATH"
3807 for ac_dir in $ac_dummy; do
3808 test -z "$ac_dir" && ac_dir=.
3809 if test -f $ac_dir/$ac_word; then
3810 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump"
3811 break
3812 fi
3813 done
3814 IFS="$ac_save_ifs"
3815 fi
3816 fi
3817 OBJDUMP="$ac_cv_prog_OBJDUMP"
3818 if test -n "$OBJDUMP"; then
3819 echo "$ac_t""$OBJDUMP" 1>&6
3820 else
3821 echo "$ac_t""no" 1>&6
3822 fi
3823
3824 fi
3825 if test -z "$ac_cv_prog_OBJDUMP" ; then
3826 if test $build = $host ; then
3827 ncn_cv_OBJDUMP=$OBJDUMP
3828 # Extract the first word of "objdump", so it can be a program name with args.
3829 set dummy objdump; ac_word=$2
3830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3831 echo "configure:3832: checking for $ac_word" >&5
3832 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
3833 echo $ac_n "(cached) $ac_c" 1>&6
3834 else
3835 if test -n "$ncn_cv_OBJDUMP"; then
3836 ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test.
3837 else
3838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3839 ac_dummy="$PATH"
3840 for ac_dir in $ac_dummy; do
3841 test -z "$ac_dir" && ac_dir=.
3842 if test -f $ac_dir/$ac_word; then
3843 ac_cv_prog_ncn_cv_OBJDUMP="objdump"
3844 break
3845 fi
3846 done
3847 IFS="$ac_save_ifs"
3848 test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump"
3849 fi
3850 fi
3851 ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP"
3852 if test -n "$ncn_cv_OBJDUMP"; then
3853 echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6
3854 else
3855 echo "$ac_t""no" 1>&6
3856 fi
3857
3858 OBJDUMP=$ncn_cv_OBJDUMP
3859 else
3860 OBJDUMP="${ncn_tool_prefix}objdump"
3861 fi
3862 else
3863 OBJDUMP="$ac_cv_prog_OBJDUMP"
3864 fi
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875 # Target tools.
3876 if test -n "$ncn_target_tool_prefix"; then
3877 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
3878 set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
3879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3880 echo "configure:3881: checking for $ac_word" >&5
3881 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
3882 echo $ac_n "(cached) $ac_c" 1>&6
3883 else
3884 if test -n "$AR_FOR_TARGET"; then
3885 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
3886 else
3887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3888 ac_dummy="$PATH"
3889 for ac_dir in $ac_dummy; do
3890 test -z "$ac_dir" && ac_dir=.
3891 if test -f $ac_dir/$ac_word; then
3892 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
3893 break
3894 fi
3895 done
3896 IFS="$ac_save_ifs"
3897 fi
3898 fi
3899 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
3900 if test -n "$AR_FOR_TARGET"; then
3901 echo "$ac_t""$AR_FOR_TARGET" 1>&6
3902 else
3903 echo "$ac_t""no" 1>&6
3904 fi
3905
3906 fi
3907 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
3908 if test $build = $target ; then
3909 ncn_cv_AR_FOR_TARGET=$AR_FOR_TARGET
3910 # Extract the first word of "ar", so it can be a program name with args.
3911 set dummy ar; ac_word=$2
3912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3913 echo "configure:3914: checking for $ac_word" >&5
3914 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR_FOR_TARGET'+set}'`\" = set"; then
3915 echo $ac_n "(cached) $ac_c" 1>&6
3916 else
3917 if test -n "$ncn_cv_AR_FOR_TARGET"; then
3918 ac_cv_prog_ncn_cv_AR_FOR_TARGET="$ncn_cv_AR_FOR_TARGET" # Let the user override the test.
3919 else
3920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3921 ac_dummy="$PATH"
3922 for ac_dir in $ac_dummy; do
3923 test -z "$ac_dir" && ac_dir=.
3924 if test -f $ac_dir/$ac_word; then
3925 ac_cv_prog_ncn_cv_AR_FOR_TARGET="ar"
3926 break
3927 fi
3928 done
3929 IFS="$ac_save_ifs"
3930 test -z "$ac_cv_prog_ncn_cv_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_AR_FOR_TARGET="ar"
3931 fi
3932 fi
3933 ncn_cv_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_AR_FOR_TARGET"
3934 if test -n "$ncn_cv_AR_FOR_TARGET"; then
3935 echo "$ac_t""$ncn_cv_AR_FOR_TARGET" 1>&6
3936 else
3937 echo "$ac_t""no" 1>&6
3938 fi
3939
3940 AR_FOR_TARGET=$ncn_cv_AR_FOR_TARGET
3941 else
3942 AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
3943 fi
3944 else
3945 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
3946 fi
3947
3948 if test -n "$ncn_target_tool_prefix"; then
3949 # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args.
3950 set dummy ${ncn_target_tool_prefix}as; ac_word=$2
3951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3952 echo "configure:3953: checking for $ac_word" >&5
3953 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3955 else
3956 if test -n "$AS_FOR_TARGET"; then
3957 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
3958 else
3959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3960 ac_dummy="$PATH"
3961 for ac_dir in $ac_dummy; do
3962 test -z "$ac_dir" && ac_dir=.
3963 if test -f $ac_dir/$ac_word; then
3964 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
3965 break
3966 fi
3967 done
3968 IFS="$ac_save_ifs"
3969 fi
3970 fi
3971 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
3972 if test -n "$AS_FOR_TARGET"; then
3973 echo "$ac_t""$AS_FOR_TARGET" 1>&6
3974 else
3975 echo "$ac_t""no" 1>&6
3976 fi
3977
3978 fi
3979 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
3980 if test $build = $target ; then
3981 ncn_cv_AS_FOR_TARGET=$AS_FOR_TARGET
3982 # Extract the first word of "as", so it can be a program name with args.
3983 set dummy as; ac_word=$2
3984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3985 echo "configure:3986: checking for $ac_word" >&5
3986 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS_FOR_TARGET'+set}'`\" = set"; then
3987 echo $ac_n "(cached) $ac_c" 1>&6
3988 else
3989 if test -n "$ncn_cv_AS_FOR_TARGET"; then
3990 ac_cv_prog_ncn_cv_AS_FOR_TARGET="$ncn_cv_AS_FOR_TARGET" # Let the user override the test.
3991 else
3992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3993 ac_dummy="$PATH"
3994 for ac_dir in $ac_dummy; do
3995 test -z "$ac_dir" && ac_dir=.
3996 if test -f $ac_dir/$ac_word; then
3997 ac_cv_prog_ncn_cv_AS_FOR_TARGET="as"
3998 break
3999 fi
4000 done
4001 IFS="$ac_save_ifs"
4002 test -z "$ac_cv_prog_ncn_cv_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_AS_FOR_TARGET="as"
4003 fi
4004 fi
4005 ncn_cv_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_AS_FOR_TARGET"
4006 if test -n "$ncn_cv_AS_FOR_TARGET"; then
4007 echo "$ac_t""$ncn_cv_AS_FOR_TARGET" 1>&6
4008 else
4009 echo "$ac_t""no" 1>&6
4010 fi
4011
4012 AS_FOR_TARGET=$ncn_cv_AS_FOR_TARGET
4013 else
4014 AS_FOR_TARGET="${ncn_target_tool_prefix}as"
4015 fi
4016 else
4017 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4018 fi
4019
4020 if test -n "$ncn_target_tool_prefix"; then
4021 # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args.
4022 set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
4023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4024 echo "configure:4025: checking for $ac_word" >&5
4025 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4026 echo $ac_n "(cached) $ac_c" 1>&6
4027 else
4028 if test -n "$DLLTOOL_FOR_TARGET"; then
4029 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4030 else
4031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4032 ac_dummy="$PATH"
4033 for ac_dir in $ac_dummy; do
4034 test -z "$ac_dir" && ac_dir=.
4035 if test -f $ac_dir/$ac_word; then
4036 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
4037 break
4038 fi
4039 done
4040 IFS="$ac_save_ifs"
4041 fi
4042 fi
4043 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4044 if test -n "$DLLTOOL_FOR_TARGET"; then
4045 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4046 else
4047 echo "$ac_t""no" 1>&6
4048 fi
4049
4050 fi
4051 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
4052 if test $build = $target ; then
4053 ncn_cv_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
4054 # Extract the first word of "dlltool", so it can be a program name with args.
4055 set dummy dlltool; ac_word=$2
4056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4057 echo "configure:4058: checking for $ac_word" >&5
4058 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4059 echo $ac_n "(cached) $ac_c" 1>&6
4060 else
4061 if test -n "$ncn_cv_DLLTOOL_FOR_TARGET"; then
4062 ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="$ncn_cv_DLLTOOL_FOR_TARGET" # Let the user override the test.
4063 else
4064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4065 ac_dummy="$PATH"
4066 for ac_dir in $ac_dummy; do
4067 test -z "$ac_dir" && ac_dir=.
4068 if test -f $ac_dir/$ac_word; then
4069 ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="dlltool"
4070 break
4071 fi
4072 done
4073 IFS="$ac_save_ifs"
4074 test -z "$ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="dlltool"
4075 fi
4076 fi
4077 ncn_cv_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET"
4078 if test -n "$ncn_cv_DLLTOOL_FOR_TARGET"; then
4079 echo "$ac_t""$ncn_cv_DLLTOOL_FOR_TARGET" 1>&6
4080 else
4081 echo "$ac_t""no" 1>&6
4082 fi
4083
4084 DLLTOOL_FOR_TARGET=$ncn_cv_DLLTOOL_FOR_TARGET
4085 else
4086 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
4087 fi
4088 else
4089 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4090 fi
4091
4092 if test -n "$ncn_target_tool_prefix"; then
4093 # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args.
4094 set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
4095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4096 echo "configure:4097: checking for $ac_word" >&5
4097 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
4098 echo $ac_n "(cached) $ac_c" 1>&6
4099 else
4100 if test -n "$LD_FOR_TARGET"; then
4101 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
4102 else
4103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4104 ac_dummy="$PATH"
4105 for ac_dir in $ac_dummy; do
4106 test -z "$ac_dir" && ac_dir=.
4107 if test -f $ac_dir/$ac_word; then
4108 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
4109 break
4110 fi
4111 done
4112 IFS="$ac_save_ifs"
4113 fi
4114 fi
4115 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4116 if test -n "$LD_FOR_TARGET"; then
4117 echo "$ac_t""$LD_FOR_TARGET" 1>&6
4118 else
4119 echo "$ac_t""no" 1>&6
4120 fi
4121
4122 fi
4123 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
4124 if test $build = $target ; then
4125 ncn_cv_LD_FOR_TARGET=$LD_FOR_TARGET
4126 # Extract the first word of "ld", so it can be a program name with args.
4127 set dummy ld; ac_word=$2
4128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4129 echo "configure:4130: checking for $ac_word" >&5
4130 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD_FOR_TARGET'+set}'`\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4132 else
4133 if test -n "$ncn_cv_LD_FOR_TARGET"; then
4134 ac_cv_prog_ncn_cv_LD_FOR_TARGET="$ncn_cv_LD_FOR_TARGET" # Let the user override the test.
4135 else
4136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4137 ac_dummy="$PATH"
4138 for ac_dir in $ac_dummy; do
4139 test -z "$ac_dir" && ac_dir=.
4140 if test -f $ac_dir/$ac_word; then
4141 ac_cv_prog_ncn_cv_LD_FOR_TARGET="ld"
4142 break
4143 fi
4144 done
4145 IFS="$ac_save_ifs"
4146 test -z "$ac_cv_prog_ncn_cv_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_LD_FOR_TARGET="ld"
4147 fi
4148 fi
4149 ncn_cv_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_LD_FOR_TARGET"
4150 if test -n "$ncn_cv_LD_FOR_TARGET"; then
4151 echo "$ac_t""$ncn_cv_LD_FOR_TARGET" 1>&6
4152 else
4153 echo "$ac_t""no" 1>&6
4154 fi
4155
4156 LD_FOR_TARGET=$ncn_cv_LD_FOR_TARGET
4157 else
4158 LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
4159 fi
4160 else
4161 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4162 fi
4163
4164 if test -n "$ncn_target_tool_prefix"; then
4165 # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args.
4166 set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
4167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4168 echo "configure:4169: checking for $ac_word" >&5
4169 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
4170 echo $ac_n "(cached) $ac_c" 1>&6
4171 else
4172 if test -n "$NM_FOR_TARGET"; then
4173 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
4174 else
4175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4176 ac_dummy="$PATH"
4177 for ac_dir in $ac_dummy; do
4178 test -z "$ac_dir" && ac_dir=.
4179 if test -f $ac_dir/$ac_word; then
4180 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
4181 break
4182 fi
4183 done
4184 IFS="$ac_save_ifs"
4185 fi
4186 fi
4187 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
4188 if test -n "$NM_FOR_TARGET"; then
4189 echo "$ac_t""$NM_FOR_TARGET" 1>&6
4190 else
4191 echo "$ac_t""no" 1>&6
4192 fi
4193
4194 fi
4195 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
4196 if test $build = $target ; then
4197 ncn_cv_NM_FOR_TARGET=$NM_FOR_TARGET
4198 # Extract the first word of "nm", so it can be a program name with args.
4199 set dummy nm; ac_word=$2
4200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4201 echo "configure:4202: checking for $ac_word" >&5
4202 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM_FOR_TARGET'+set}'`\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4204 else
4205 if test -n "$ncn_cv_NM_FOR_TARGET"; then
4206 ac_cv_prog_ncn_cv_NM_FOR_TARGET="$ncn_cv_NM_FOR_TARGET" # Let the user override the test.
4207 else
4208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4209 ac_dummy="$PATH"
4210 for ac_dir in $ac_dummy; do
4211 test -z "$ac_dir" && ac_dir=.
4212 if test -f $ac_dir/$ac_word; then
4213 ac_cv_prog_ncn_cv_NM_FOR_TARGET="nm"
4214 break
4215 fi
4216 done
4217 IFS="$ac_save_ifs"
4218 test -z "$ac_cv_prog_ncn_cv_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_NM_FOR_TARGET="nm"
4219 fi
4220 fi
4221 ncn_cv_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_NM_FOR_TARGET"
4222 if test -n "$ncn_cv_NM_FOR_TARGET"; then
4223 echo "$ac_t""$ncn_cv_NM_FOR_TARGET" 1>&6
4224 else
4225 echo "$ac_t""no" 1>&6
4226 fi
4227
4228 NM_FOR_TARGET=$ncn_cv_NM_FOR_TARGET
4229 else
4230 NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
4231 fi
4232 else
4233 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
4234 fi
4235
4236 if test -n "$ncn_target_tool_prefix"; then
4237 # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args.
4238 set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
4239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4240 echo "configure:4241: checking for $ac_word" >&5
4241 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4242 echo $ac_n "(cached) $ac_c" 1>&6
4243 else
4244 if test -n "$RANLIB_FOR_TARGET"; then
4245 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
4246 else
4247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4248 ac_dummy="$PATH"
4249 for ac_dir in $ac_dummy; do
4250 test -z "$ac_dir" && ac_dir=.
4251 if test -f $ac_dir/$ac_word; then
4252 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib"
4253 break
4254 fi
4255 done
4256 IFS="$ac_save_ifs"
4257 fi
4258 fi
4259 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
4260 if test -n "$RANLIB_FOR_TARGET"; then
4261 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
4262 else
4263 echo "$ac_t""no" 1>&6
4264 fi
4265
4266 fi
4267 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
4268 if test $build = $target ; then
4269 ncn_cv_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
4270 # Extract the first word of "ranlib", so it can be a program name with args.
4271 set dummy ranlib; ac_word=$2
4272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4273 echo "configure:4274: checking for $ac_word" >&5
4274 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4275 echo $ac_n "(cached) $ac_c" 1>&6
4276 else
4277 if test -n "$ncn_cv_RANLIB_FOR_TARGET"; then
4278 ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET="$ncn_cv_RANLIB_FOR_TARGET" # Let the user override the test.
4279 else
4280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4281 ac_dummy="$PATH"
4282 for ac_dir in $ac_dummy; do
4283 test -z "$ac_dir" && ac_dir=.
4284 if test -f $ac_dir/$ac_word; then
4285 ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET="ranlib"
4286 break
4287 fi
4288 done
4289 IFS="$ac_save_ifs"
4290 test -z "$ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET=":"
4291 fi
4292 fi
4293 ncn_cv_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET"
4294 if test -n "$ncn_cv_RANLIB_FOR_TARGET"; then
4295 echo "$ac_t""$ncn_cv_RANLIB_FOR_TARGET" 1>&6
4296 else
4297 echo "$ac_t""no" 1>&6
4298 fi
4299
4300 RANLIB_FOR_TARGET=$ncn_cv_RANLIB_FOR_TARGET
4301 else
4302 RANLIB_FOR_TARGET=":"
4303 fi
4304 else
4305 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
4306 fi
4307
4308 if test -n "$ncn_target_tool_prefix"; then
4309 # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args.
4310 set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
4311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4312 echo "configure:4313: checking for $ac_word" >&5
4313 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4315 else
4316 if test -n "$WINDRES_FOR_TARGET"; then
4317 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
4318 else
4319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4320 ac_dummy="$PATH"
4321 for ac_dir in $ac_dummy; do
4322 test -z "$ac_dir" && ac_dir=.
4323 if test -f $ac_dir/$ac_word; then
4324 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
4325 break
4326 fi
4327 done
4328 IFS="$ac_save_ifs"
4329 fi
4330 fi
4331 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
4332 if test -n "$WINDRES_FOR_TARGET"; then
4333 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
4334 else
4335 echo "$ac_t""no" 1>&6
4336 fi
4337
4338 fi
4339 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
4340 if test $build = $target ; then
4341 ncn_cv_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
4342 # Extract the first word of "windres", so it can be a program name with args.
4343 set dummy windres; ac_word=$2
4344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4345 echo "configure:4346: checking for $ac_word" >&5
4346 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4347 echo $ac_n "(cached) $ac_c" 1>&6
4348 else
4349 if test -n "$ncn_cv_WINDRES_FOR_TARGET"; then
4350 ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="$ncn_cv_WINDRES_FOR_TARGET" # Let the user override the test.
4351 else
4352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4353 ac_dummy="$PATH"
4354 for ac_dir in $ac_dummy; do
4355 test -z "$ac_dir" && ac_dir=.
4356 if test -f $ac_dir/$ac_word; then
4357 ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="windres"
4358 break
4359 fi
4360 done
4361 IFS="$ac_save_ifs"
4362 test -z "$ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="windres"
4363 fi
4364 fi
4365 ncn_cv_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET"
4366 if test -n "$ncn_cv_WINDRES_FOR_TARGET"; then
4367 echo "$ac_t""$ncn_cv_WINDRES_FOR_TARGET" 1>&6
4368 else
4369 echo "$ac_t""no" 1>&6
4370 fi
4371
4372 WINDRES_FOR_TARGET=$ncn_cv_WINDRES_FOR_TARGET
4373 else
4374 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
4375 fi
4376 else
4377 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
4378 fi
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390 # Fix up target tools.
4391 if test "x${build}" = "x${host}" ; then
4392 # In this case, the newly built tools can and should be used,
4393 # so we override the results of the autoconf tests.
4394 # This should really only happen when the tools are actually being built,
4395 # but that's a further refinement. The new build scheme, where
4396 # tools are built into a structure paralleling where they're installed,
4397 # should also eliminate all of this cleanly.
4398 AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)"
4399 AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)"
4400 DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)"
4401 LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)"
4402 NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)"
4403 RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)"
4404 WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)"
4405 fi
4406 # Certain tools may need extra flags.
4407 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
4408 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
4409 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
4410
4411 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4412 echo "configure:4413: checking whether to enable maintainer-specific portions of Makefiles" >&5
4413 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4414 if test "${enable_maintainer_mode+set}" = set; then
4415 enableval="$enable_maintainer_mode"
4416 USE_MAINTAINER_MODE=$enableval
4417 else
4418 USE_MAINTAINER_MODE=no
4419 fi
4420
4421 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4422
4423
4424 if test "$USE_MAINTAINER_MODE" = yes; then
4425 MAINTAINER_MODE_TRUE=
4426 MAINTAINER_MODE_FALSE='#'
4427 else
4428 MAINTAINER_MODE_TRUE='#'
4429 MAINTAINER_MODE_FALSE=
4430 fi
4431 MAINT=$MAINTAINER_MODE_TRUE
4432
4433 trap '' 1 2 15
4434 cat > confcache <<\EOF
4435 # This file is a shell script that caches the results of configure
4436 # tests run on this system so they can be shared between configure
4437 # scripts and configure runs. It is not useful on other systems.
4438 # If it contains results you don't want to keep, you may remove or edit it.
4439 #
4440 # By default, configure uses ./config.cache as the cache file,
4441 # creating it if it does not exist already. You can give configure
4442 # the --cache-file=FILE option to use a different cache file; that is
4443 # what configure does when it calls configure scripts in
4444 # subdirectories, so they share the cache.
4445 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4446 # config.status only pays attention to the cache file if you give it the
4447 # --recheck option to rerun configure.
4448 #
4449 EOF
4450 # The following way of writing the cache mishandles newlines in values,
4451 # but we know of no workaround that is simple, portable, and efficient.
4452 # So, don't put newlines in cache variables' values.
4453 # Ultrix sh set writes to stderr and can't be redirected directly,
4454 # and sets the high bit in the cache file unless we assign to the vars.
4455 (set) 2>&1 |
4456 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4457 *ac_space=\ *)
4458 # `set' does not quote correctly, so add quotes (double-quote substitution
4459 # turns \\\\ into \\, and sed turns \\ into \).
4460 sed -n \
4461 -e "s/'/'\\\\''/g" \
4462 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4463 ;;
4464 *)
4465 # `set' quotes correctly as required by POSIX, so do not add quotes.
4466 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4467 ;;
4468 esac >> confcache
4469 if cmp -s $cache_file confcache; then
4470 :
4471 else
4472 if test -w $cache_file; then
4473 echo "updating cache $cache_file"
4474 cat confcache > $cache_file
4475 else
4476 echo "not updating unwritable cache $cache_file"
4477 fi
4478 fi
4479 rm -f confcache
4480
4481 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4482
4483 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4484 # Let make expand exec_prefix.
4485 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4486
4487 # Any assignment to VPATH causes Sun make to only execute
4488 # the first set of double-colon rules, so remove it if not needed.
4489 # If there is a colon in the path, we need to keep it.
4490 if test "x$srcdir" = x.; then
4491 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4492 fi
4493
4494 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4495
4496 # Transform confdefs.h into DEFS.
4497 # Protect against shell expansion while executing Makefile rules.
4498 # Protect against Makefile macro expansion.
4499 cat > conftest.defs <<\EOF
4500 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4501 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4502 s%\[%\\&%g
4503 s%\]%\\&%g
4504 s%\$%$$%g
4505 EOF
4506 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4507 rm -f conftest.defs
4508
4509
4510 # Without the "./", some shells look in PATH for config.status.
4511 : ${CONFIG_STATUS=./config.status}
4512
4513 echo creating $CONFIG_STATUS
4514 rm -f $CONFIG_STATUS
4515 cat > $CONFIG_STATUS <<EOF
4516 #! /bin/sh
4517 # Generated automatically by configure.
4518 # Run this file to recreate the current configuration.
4519 # This directory was configured as follows,
4520 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4521 #
4522 # $0 $ac_configure_args
4523 #
4524 # Compiler output produced by configure, useful for debugging
4525 # configure, is in ./config.log if it exists.
4526
4527 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4528 for ac_option
4529 do
4530 case "\$ac_option" in
4531 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4532 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4533 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4534 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4535 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4536 exit 0 ;;
4537 -help | --help | --hel | --he | --h)
4538 echo "\$ac_cs_usage"; exit 0 ;;
4539 *) echo "\$ac_cs_usage"; exit 1 ;;
4540 esac
4541 done
4542
4543 ac_given_srcdir=$srcdir
4544 ac_given_INSTALL="$INSTALL"
4545
4546 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4547 EOF
4548 cat >> $CONFIG_STATUS <<EOF
4549
4550 # Protect against being on the right side of a sed subst in config.status.
4551 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4552 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4553 $ac_vpsub
4554 $extrasub
4555 s%@SHELL@%$SHELL%g
4556 s%@CFLAGS@%$CFLAGS%g
4557 s%@CPPFLAGS@%$CPPFLAGS%g
4558 s%@CXXFLAGS@%$CXXFLAGS%g
4559 s%@FFLAGS@%$FFLAGS%g
4560 s%@DEFS@%$DEFS%g
4561 s%@LDFLAGS@%$LDFLAGS%g
4562 s%@LIBS@%$LIBS%g
4563 s%@exec_prefix@%$exec_prefix%g
4564 s%@prefix@%$prefix%g
4565 s%@program_transform_name@%$program_transform_name%g
4566 s%@bindir@%$bindir%g
4567 s%@sbindir@%$sbindir%g
4568 s%@libexecdir@%$libexecdir%g
4569 s%@datadir@%$datadir%g
4570 s%@sysconfdir@%$sysconfdir%g
4571 s%@sharedstatedir@%$sharedstatedir%g
4572 s%@localstatedir@%$localstatedir%g
4573 s%@libdir@%$libdir%g
4574 s%@includedir@%$includedir%g
4575 s%@oldincludedir@%$oldincludedir%g
4576 s%@infodir@%$infodir%g
4577 s%@mandir@%$mandir%g
4578 s%@host@%$host%g
4579 s%@host_alias@%$host_alias%g
4580 s%@host_cpu@%$host_cpu%g
4581 s%@host_vendor@%$host_vendor%g
4582 s%@host_os@%$host_os%g
4583 s%@target@%$target%g
4584 s%@target_alias@%$target_alias%g
4585 s%@target_cpu@%$target_cpu%g
4586 s%@target_vendor@%$target_vendor%g
4587 s%@target_os@%$target_os%g
4588 s%@build@%$build%g
4589 s%@build_alias@%$build_alias%g
4590 s%@build_cpu@%$build_cpu%g
4591 s%@build_vendor@%$build_vendor%g
4592 s%@build_os@%$build_os%g
4593 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4594 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4595 s%@INSTALL_DATA@%$INSTALL_DATA%g
4596 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
4597 s%@build_subdir@%$build_subdir%g
4598 s%@host_subdir@%$host_subdir%g
4599 s%@target_subdir@%$target_subdir%g
4600 s%@CC@%$CC%g
4601 s%@GNATBIND@%$GNATBIND%g
4602 /@maybe_dependencies@/r $maybe_dependencies
4603 s%@maybe_dependencies@%%g
4604 /@serialization_dependencies@/r $serialization_dependencies
4605 s%@serialization_dependencies@%%g
4606 /@host_makefile_frag@/r $host_makefile_frag
4607 s%@host_makefile_frag@%%g
4608 /@target_makefile_frag@/r $target_makefile_frag
4609 s%@target_makefile_frag@%%g
4610 /@alphaieee_frag@/r $alphaieee_frag
4611 s%@alphaieee_frag@%%g
4612 /@ospace_frag@/r $ospace_frag
4613 s%@ospace_frag@%%g
4614 s%@SET_LIB_PATH@%$SET_LIB_PATH%g
4615 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
4616 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
4617 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
4618 s%@configlinks@%$configlinks%g
4619 s%@gcc_version_trigger@%$gcc_version_trigger%g
4620 s%@gcc_version@%$gcc_version%g
4621 s%@tooldir@%$tooldir%g
4622 s%@build_tooldir@%$build_tooldir%g
4623 s%@GDB_TK@%$GDB_TK%g
4624 s%@gxx_include_dir@%$gxx_include_dir%g
4625 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
4626 s%@build_configargs@%$build_configargs%g
4627 s%@configure_build_modules@%$configure_build_modules%g
4628 s%@all_build_modules@%$all_build_modules%g
4629 s%@host_configargs@%$host_configargs%g
4630 s%@configdirs@%$configdirs%g
4631 s%@target_configargs@%$target_configargs%g
4632 s%@target_configdirs@%$target_configdirs%g
4633 s%@BISON@%$BISON%g
4634 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4635 s%@LEX@%$LEX%g
4636 s%@MAKEINFO@%$MAKEINFO%g
4637 s%@YACC@%$YACC%g
4638 s%@config_shell@%$config_shell%g
4639 s%@AR@%$AR%g
4640 s%@ncn_cv_AR@%$ncn_cv_AR%g
4641 s%@AS@%$AS%g
4642 s%@ncn_cv_AS@%$ncn_cv_AS%g
4643 s%@DLLTOOL@%$DLLTOOL%g
4644 s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g
4645 s%@LD@%$LD%g
4646 s%@ncn_cv_LD@%$ncn_cv_LD%g
4647 s%@NM@%$NM%g
4648 s%@ncn_cv_NM@%$ncn_cv_NM%g
4649 s%@RANLIB@%$RANLIB%g
4650 s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g
4651 s%@WINDRES@%$WINDRES%g
4652 s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g
4653 s%@OBJCOPY@%$OBJCOPY%g
4654 s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g
4655 s%@OBJDUMP@%$OBJDUMP%g
4656 s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g
4657 s%@CXX@%$CXX%g
4658 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
4659 s%@DEFAULT_YACC@%$DEFAULT_YACC%g
4660 s%@DEFAULT_LEX@%$DEFAULT_LEX%g
4661 s%@DEFAULT_M4@%$DEFAULT_M4%g
4662 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
4663 s%@ncn_cv_AR_FOR_TARGET@%$ncn_cv_AR_FOR_TARGET%g
4664 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
4665 s%@ncn_cv_AS_FOR_TARGET@%$ncn_cv_AS_FOR_TARGET%g
4666 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
4667 s%@ncn_cv_DLLTOOL_FOR_TARGET@%$ncn_cv_DLLTOOL_FOR_TARGET%g
4668 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
4669 s%@ncn_cv_LD_FOR_TARGET@%$ncn_cv_LD_FOR_TARGET%g
4670 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
4671 s%@ncn_cv_NM_FOR_TARGET@%$ncn_cv_NM_FOR_TARGET%g
4672 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
4673 s%@ncn_cv_RANLIB_FOR_TARGET@%$ncn_cv_RANLIB_FOR_TARGET%g
4674 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
4675 s%@ncn_cv_WINDRES_FOR_TARGET@%$ncn_cv_WINDRES_FOR_TARGET%g
4676 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
4677 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
4678 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
4679 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
4680 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
4681 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
4682 s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4683 s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4684 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4685 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4686 s%@MAINT@%$MAINT%g
4687
4688 CEOF
4689 EOF
4690
4691 cat >> $CONFIG_STATUS <<\EOF
4692
4693 # Split the substitutions into bite-sized pieces for seds with
4694 # small command number limits, like on Digital OSF/1 and HP-UX.
4695 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4696 ac_file=1 # Number of current file.
4697 ac_beg=1 # First line for current file.
4698 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4699 ac_more_lines=:
4700 ac_sed_cmds=""
4701 while $ac_more_lines; do
4702 if test $ac_beg -gt 1; then
4703 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4704 else
4705 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4706 fi
4707 if test ! -s conftest.s$ac_file; then
4708 ac_more_lines=false
4709 rm -f conftest.s$ac_file
4710 else
4711 if test -z "$ac_sed_cmds"; then
4712 ac_sed_cmds="sed -f conftest.s$ac_file"
4713 else
4714 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4715 fi
4716 ac_file=`expr $ac_file + 1`
4717 ac_beg=$ac_end
4718 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4719 fi
4720 done
4721 if test -z "$ac_sed_cmds"; then
4722 ac_sed_cmds=cat
4723 fi
4724 EOF
4725
4726 cat >> $CONFIG_STATUS <<EOF
4727
4728 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4729 EOF
4730 cat >> $CONFIG_STATUS <<\EOF
4731 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4732 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4733 case "$ac_file" in
4734 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4735 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4736 *) ac_file_in="${ac_file}.in" ;;
4737 esac
4738
4739 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4740
4741 # Remove last slash and all that follows it. Not all systems have dirname.
4742 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4743 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4744 # The file is in a subdirectory.
4745 test ! -d "$ac_dir" && mkdir "$ac_dir"
4746 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4747 # A "../" for each directory in $ac_dir_suffix.
4748 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4749 else
4750 ac_dir_suffix= ac_dots=
4751 fi
4752
4753 case "$ac_given_srcdir" in
4754 .) srcdir=.
4755 if test -z "$ac_dots"; then top_srcdir=.
4756 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4757 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4758 *) # Relative path.
4759 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4760 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4761 esac
4762
4763 case "$ac_given_INSTALL" in
4764 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4765 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4766 esac
4767
4768 echo creating "$ac_file"
4769 rm -f "$ac_file"
4770 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4771 case "$ac_file" in
4772 *Makefile*) ac_comsub="1i\\
4773 # $configure_input" ;;
4774 *) ac_comsub= ;;
4775 esac
4776
4777 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4778 sed -e "$ac_comsub
4779 s%@configure_input@%$configure_input%g
4780 s%@srcdir@%$srcdir%g
4781 s%@top_srcdir@%$top_srcdir%g
4782 s%@INSTALL@%$INSTALL%g
4783 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4784 fi; done
4785 rm -f conftest.s*
4786
4787 EOF
4788 cat >> $CONFIG_STATUS <<EOF
4789
4790 EOF
4791 cat >> $CONFIG_STATUS <<\EOF
4792
4793 exit 0
4794 EOF
4795 chmod +x $CONFIG_STATUS
4796 rm -fr confdefs* $ac_clean_files
4797 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4798
This page took 0.167563 seconds and 5 git commands to generate.