2004-06-09 Paolo Bonzini <bonzini@gnu.org>
[binutils.git] / configure
blobd3c5983f41fbe9a89e104c66c2f3fdeb90b4afe4
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --without-libbanshee Don't build with libbanshee"
16 ac_help="$ac_help
17 --enable-libada Builds libada directory"
18 ac_help="$ac_help
19 --with-gmp-dir=PATH Specify source directory for GMP library"
20 ac_help="$ac_help
21 --with-gmp=PATH Specify directory for installed GMP library"
22 ac_help="$ac_help
23 --enable-bootstrap Enable bootstrapping [no]"
24 ac_help="$ac_help
25 --enable-serial-[{host,target,build}-]configure
26 Force sequential configuration of
27 sub-packages for the host, target or build
28 machine, or all sub-packages"
29 ac_help="$ac_help
30 --enable-maintainer-mode enable make rules and dependencies not useful
31 (and sometimes confusing) to the casual installer"
32 ac_help="$ac_help
33 --enable-werror enable -Werror in bootstrap stage2 and later"
35 # Initialize some variables set by options.
36 # The variables have the same names as the options, with
37 # dashes changed to underlines.
38 build=NONE
39 cache_file=./config.cache
40 exec_prefix=NONE
41 host=NONE
42 no_create=
43 nonopt=NONE
44 no_recursion=
45 prefix=NONE
46 program_prefix=NONE
47 program_suffix=NONE
48 program_transform_name=s,x,x,
49 silent=
50 site=
51 srcdir=
52 target=NONE
53 verbose=
54 x_includes=NONE
55 x_libraries=NONE
56 bindir='${exec_prefix}/bin'
57 sbindir='${exec_prefix}/sbin'
58 libexecdir='${exec_prefix}/libexec'
59 datadir='${prefix}/share'
60 sysconfdir='${prefix}/etc'
61 sharedstatedir='${prefix}/com'
62 localstatedir='${prefix}/var'
63 libdir='${exec_prefix}/lib'
64 includedir='${prefix}/include'
65 oldincludedir='/usr/include'
66 infodir='${prefix}/info'
67 mandir='${prefix}/man'
69 # Initialize some other variables.
70 subdirs=
71 MFLAGS= MAKEFLAGS=
72 SHELL=${CONFIG_SHELL-/bin/sh}
73 # Maximum number of lines to put in a shell here document.
74 ac_max_here_lines=12
76 ac_prev=
77 for ac_option
80 # If the previous option needs an argument, assign it.
81 if test -n "$ac_prev"; then
82 eval "$ac_prev=\$ac_option"
83 ac_prev=
84 continue
87 case "$ac_option" in
88 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 *) ac_optarg= ;;
90 esac
92 # Accept the important Cygnus configure options, so we can diagnose typos.
94 case "$ac_option" in
96 -bindir | --bindir | --bindi | --bind | --bin | --bi)
97 ac_prev=bindir ;;
98 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99 bindir="$ac_optarg" ;;
101 -build | --build | --buil | --bui | --bu)
102 ac_prev=build ;;
103 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
104 build="$ac_optarg" ;;
106 -cache-file | --cache-file | --cache-fil | --cache-fi \
107 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
108 ac_prev=cache_file ;;
109 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
110 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
111 cache_file="$ac_optarg" ;;
113 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
114 ac_prev=datadir ;;
115 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
116 | --da=*)
117 datadir="$ac_optarg" ;;
119 -disable-* | --disable-*)
120 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
121 # Reject names that are not valid shell variable names.
122 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}=no" ;;
128 -enable-* | --enable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 case "$ac_option" in
136 *=*) ;;
137 *) ac_optarg=yes ;;
138 esac
139 eval "enable_${ac_feature}='$ac_optarg'" ;;
141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
143 | --exec | --exe | --ex)
144 ac_prev=exec_prefix ;;
145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147 | --exec=* | --exe=* | --ex=*)
148 exec_prefix="$ac_optarg" ;;
150 -gas | --gas | --ga | --g)
151 # Obsolete; use --with-gas.
152 with_gas=yes ;;
154 -help | --help | --hel | --he)
155 # Omit some internal or obsolete options to make the list less imposing.
156 # This message is too long to be a string in the A/UX 3.1 sh.
157 cat << EOF
158 Usage: configure [options] [host]
159 Options: [defaults in brackets after descriptions]
160 Configuration:
161 --cache-file=FILE cache test results in FILE
162 --help print this message
163 --no-create do not create output files
164 --quiet, --silent do not print \`checking...' messages
165 --version print the version of autoconf that created configure
166 Directory and file names:
167 --prefix=PREFIX install architecture-independent files in PREFIX
168 [$ac_default_prefix]
169 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
170 [same as prefix]
171 --bindir=DIR user executables in DIR [EPREFIX/bin]
172 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
173 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
174 --datadir=DIR read-only architecture-independent data in DIR
175 [PREFIX/share]
176 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
177 --sharedstatedir=DIR modifiable architecture-independent data in DIR
178 [PREFIX/com]
179 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
180 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
181 --includedir=DIR C header files in DIR [PREFIX/include]
182 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
183 --infodir=DIR info documentation in DIR [PREFIX/info]
184 --mandir=DIR man documentation in DIR [PREFIX/man]
185 --srcdir=DIR find the sources in DIR [configure dir or ..]
186 --program-prefix=PREFIX prepend PREFIX to installed program names
187 --program-suffix=SUFFIX append SUFFIX to installed program names
188 --program-transform-name=PROGRAM
189 run sed PROGRAM on installed program names
191 cat << EOF
192 Host type:
193 --build=BUILD configure for building on BUILD [BUILD=HOST]
194 --host=HOST configure for HOST [guessed]
195 --target=TARGET configure for TARGET [TARGET=HOST]
196 Features and packages:
197 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
198 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
199 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
200 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
201 --x-includes=DIR X include files are in DIR
202 --x-libraries=DIR X library files are in DIR
204 if test -n "$ac_help"; then
205 echo "--enable and --with options recognized:$ac_help"
207 exit 0 ;;
209 -host | --host | --hos | --ho)
210 ac_prev=host ;;
211 -host=* | --host=* | --hos=* | --ho=*)
212 host="$ac_optarg" ;;
214 -includedir | --includedir | --includedi | --included | --include \
215 | --includ | --inclu | --incl | --inc)
216 ac_prev=includedir ;;
217 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218 | --includ=* | --inclu=* | --incl=* | --inc=*)
219 includedir="$ac_optarg" ;;
221 -infodir | --infodir | --infodi | --infod | --info | --inf)
222 ac_prev=infodir ;;
223 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224 infodir="$ac_optarg" ;;
226 -libdir | --libdir | --libdi | --libd)
227 ac_prev=libdir ;;
228 -libdir=* | --libdir=* | --libdi=* | --libd=*)
229 libdir="$ac_optarg" ;;
231 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232 | --libexe | --libex | --libe)
233 ac_prev=libexecdir ;;
234 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235 | --libexe=* | --libex=* | --libe=*)
236 libexecdir="$ac_optarg" ;;
238 -localstatedir | --localstatedir | --localstatedi | --localstated \
239 | --localstate | --localstat | --localsta | --localst \
240 | --locals | --local | --loca | --loc | --lo)
241 ac_prev=localstatedir ;;
242 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245 localstatedir="$ac_optarg" ;;
247 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248 ac_prev=mandir ;;
249 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250 mandir="$ac_optarg" ;;
252 -nfp | --nfp | --nf)
253 # Obsolete; use --without-fp.
254 with_fp=no ;;
256 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257 | --no-cr | --no-c)
258 no_create=yes ;;
260 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
262 no_recursion=yes ;;
264 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
265 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
266 | --oldin | --oldi | --old | --ol | --o)
267 ac_prev=oldincludedir ;;
268 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271 oldincludedir="$ac_optarg" ;;
273 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274 ac_prev=prefix ;;
275 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276 prefix="$ac_optarg" ;;
278 -program-prefix | --program-prefix | --program-prefi | --program-pref \
279 | --program-pre | --program-pr | --program-p)
280 ac_prev=program_prefix ;;
281 -program-prefix=* | --program-prefix=* | --program-prefi=* \
282 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283 program_prefix="$ac_optarg" ;;
285 -program-suffix | --program-suffix | --program-suffi | --program-suff \
286 | --program-suf | --program-su | --program-s)
287 ac_prev=program_suffix ;;
288 -program-suffix=* | --program-suffix=* | --program-suffi=* \
289 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290 program_suffix="$ac_optarg" ;;
292 -program-transform-name | --program-transform-name \
293 | --program-transform-nam | --program-transform-na \
294 | --program-transform-n | --program-transform- \
295 | --program-transform | --program-transfor \
296 | --program-transfo | --program-transf \
297 | --program-trans | --program-tran \
298 | --progr-tra | --program-tr | --program-t)
299 ac_prev=program_transform_name ;;
300 -program-transform-name=* | --program-transform-name=* \
301 | --program-transform-nam=* | --program-transform-na=* \
302 | --program-transform-n=* | --program-transform-=* \
303 | --program-transform=* | --program-transfor=* \
304 | --program-transfo=* | --program-transf=* \
305 | --program-trans=* | --program-tran=* \
306 | --progr-tra=* | --program-tr=* | --program-t=*)
307 program_transform_name="$ac_optarg" ;;
309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310 | -silent | --silent | --silen | --sile | --sil)
311 silent=yes ;;
313 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
314 ac_prev=sbindir ;;
315 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316 | --sbi=* | --sb=*)
317 sbindir="$ac_optarg" ;;
319 -sharedstatedir | --sharedstatedir | --sharedstatedi \
320 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321 | --sharedst | --shareds | --shared | --share | --shar \
322 | --sha | --sh)
323 ac_prev=sharedstatedir ;;
324 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327 | --sha=* | --sh=*)
328 sharedstatedir="$ac_optarg" ;;
330 -site | --site | --sit)
331 ac_prev=site ;;
332 -site=* | --site=* | --sit=*)
333 site="$ac_optarg" ;;
335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
336 ac_prev=srcdir ;;
337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
338 srcdir="$ac_optarg" ;;
340 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
341 | --syscon | --sysco | --sysc | --sys | --sy)
342 ac_prev=sysconfdir ;;
343 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
344 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
345 sysconfdir="$ac_optarg" ;;
347 -target | --target | --targe | --targ | --tar | --ta | --t)
348 ac_prev=target ;;
349 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
350 target="$ac_optarg" ;;
352 -v | -verbose | --verbose | --verbos | --verbo | --verb)
353 verbose=yes ;;
355 -version | --version | --versio | --versi | --vers)
356 echo "configure generated by autoconf version 2.13"
357 exit 0 ;;
359 -with-* | --with-*)
360 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 case "$ac_option" in
367 *=*) ;;
368 *) ac_optarg=yes ;;
369 esac
370 eval "with_${ac_package}='$ac_optarg'" ;;
372 -without-* | --without-*)
373 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}=no" ;;
381 --x)
382 # Obsolete; use --with-x.
383 with_x=yes ;;
385 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
386 | --x-incl | --x-inc | --x-in | --x-i)
387 ac_prev=x_includes ;;
388 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
389 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
390 x_includes="$ac_optarg" ;;
392 -x-libraries | --x-libraries | --x-librarie | --x-librari \
393 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
394 ac_prev=x_libraries ;;
395 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
396 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
397 x_libraries="$ac_optarg" ;;
399 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
403 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404 echo "configure: warning: $ac_option: invalid host type" 1>&2
406 if test "x$nonopt" != xNONE; then
407 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409 nonopt="$ac_option"
412 esac
413 done
415 if test -n "$ac_prev"; then
416 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421 # File descriptor usage:
422 # 0 standard input
423 # 1 file creation
424 # 2 errors and warnings
425 # 3 some systems may open it to /dev/tty
426 # 4 used on the Kubota Titan
427 # 6 checking for... messages and results
428 # 5 compiler messages saved in config.log
429 if test "$silent" = yes; then
430 exec 6>/dev/null
431 else
432 exec 6>&1
434 exec 5>./config.log
436 echo "\
437 This file contains any messages produced by compilers while
438 running configure, to aid debugging if configure makes a mistake.
439 " 1>&5
441 # Strip out --no-create and --no-recursion so they do not pile up.
442 # Also quote any args containing shell metacharacters.
443 ac_configure_args=
444 for ac_arg
446 case "$ac_arg" in
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c) ;;
449 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
450 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
451 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
453 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454 esac
455 done
457 # NLS nuisances.
458 # Only set these to C if already set. These must not be set unconditionally
459 # because not all systems understand e.g. LANG=C (notably SCO).
460 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
461 # Non-C LC_CTYPE values break the ctype check.
462 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
463 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
464 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
465 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
468 rm -rf conftest* confdefs.h
469 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
470 echo > confdefs.h
472 # A filename unique to this package, relative to the directory that
473 # configure is in, which we can look for to find out if srcdir is correct.
474 ac_unique_file=move-if-change
476 # Find the source files, if location was not specified.
477 if test -z "$srcdir"; then
478 ac_srcdir_defaulted=yes
479 # Try the directory containing this script, then its parent.
480 ac_prog=$0
481 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
482 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
483 srcdir=$ac_confdir
484 if test ! -r $srcdir/$ac_unique_file; then
485 srcdir=..
487 else
488 ac_srcdir_defaulted=no
490 if test ! -r $srcdir/$ac_unique_file; then
491 if test "$ac_srcdir_defaulted" = yes; then
492 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493 else
494 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499 # Prefer explicitly selected file to automatically selected ones.
500 if test -z "$CONFIG_SITE"; then
501 if test "x$prefix" != xNONE; then
502 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
503 else
504 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
507 for ac_site_file in $CONFIG_SITE; do
508 if test -r "$ac_site_file"; then
509 echo "loading site script $ac_site_file"
510 . "$ac_site_file"
512 done
514 if test -r "$cache_file"; then
515 echo "loading cache $cache_file"
516 . $cache_file
517 else
518 echo "creating cache $cache_file"
519 > $cache_file
522 ac_ext=c
523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524 ac_cpp='$CPP $CPPFLAGS'
525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527 cross_compiling=$ac_cv_prog_cc_cross
529 ac_exeext=
530 ac_objext=o
531 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
532 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
534 ac_n= ac_c='
535 ' ac_t=' '
536 else
537 ac_n=-n ac_c= ac_t=
539 else
540 ac_n= ac_c='\c' ac_t=
545 ac_aux_dir=
546 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
547 if test -f $ac_dir/install-sh; then
548 ac_aux_dir=$ac_dir
549 ac_install_sh="$ac_aux_dir/install-sh -c"
550 break
551 elif test -f $ac_dir/install.sh; then
552 ac_aux_dir=$ac_dir
553 ac_install_sh="$ac_aux_dir/install.sh -c"
554 break
556 done
557 if test -z "$ac_aux_dir"; then
558 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
560 ac_config_guess=$ac_aux_dir/config.guess
561 ac_config_sub=$ac_aux_dir/config.sub
562 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
565 # Do some error checking and defaulting for the host and target type.
566 # The inputs are:
567 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
569 # The rules are:
570 # 1. You are not allowed to specify --host, --target, and nonopt at the
571 # same time.
572 # 2. Host defaults to nonopt.
573 # 3. If nonopt is not specified, then host defaults to the current host,
574 # as determined by config.guess.
575 # 4. Target and build default to nonopt.
576 # 5. If nonopt is not specified, then target and build default to host.
578 # The aliases save the names the user supplied, while $host etc.
579 # will get canonicalized.
580 case $host---$target---$nonopt in
581 NONE---*---* | *---NONE---* | *---*---NONE) ;;
582 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
583 esac
586 # Make sure we can run config.sub.
587 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
588 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
591 echo $ac_n "checking host system type""... $ac_c" 1>&6
592 echo "configure:593: checking host system type" >&5
594 host_alias=$host
595 case "$host_alias" in
596 NONE)
597 case $nonopt in
598 NONE)
599 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
600 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
601 fi ;;
602 *) host_alias=$nonopt ;;
603 esac ;;
604 esac
606 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
607 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
608 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
609 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
610 echo "$ac_t""$host" 1>&6
612 echo $ac_n "checking target system type""... $ac_c" 1>&6
613 echo "configure:614: checking target system type" >&5
615 target_alias=$target
616 case "$target_alias" in
617 NONE)
618 case $nonopt in
619 NONE) target_alias=$host_alias ;;
620 *) target_alias=$nonopt ;;
621 esac ;;
622 esac
624 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
625 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
626 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
627 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
628 echo "$ac_t""$target" 1>&6
630 echo $ac_n "checking build system type""... $ac_c" 1>&6
631 echo "configure:632: checking build system type" >&5
633 build_alias=$build
634 case "$build_alias" in
635 NONE)
636 case $nonopt in
637 NONE) build_alias=$host_alias ;;
638 *) build_alias=$nonopt ;;
639 esac ;;
640 esac
642 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
643 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
644 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
645 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
646 echo "$ac_t""$build" 1>&6
648 test "$host_alias" != "$target_alias" &&
649 test "$program_prefix$program_suffix$program_transform_name" = \
650 NONENONEs,x,x, &&
651 program_prefix=${target_alias}-
653 if test "$program_transform_name" = s,x,x,; then
654 program_transform_name=
655 else
656 # Double any \ or $. echo might interpret backslashes.
657 cat <<\EOF_SED > conftestsed
658 s,\\,\\\\,g; s,\$,$$,g
659 EOF_SED
660 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
661 rm -f conftestsed
663 test "$program_prefix" != NONE &&
664 program_transform_name="s,^,${program_prefix},; $program_transform_name"
665 # Use a double $ so make ignores it.
666 test "$program_suffix" != NONE &&
667 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
669 # sed with no file args requires a program.
670 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
673 # Get 'install' or 'install-sh' and its variants.
674 # Find a good install program. We prefer a C program (faster),
675 # so one script is as good as another. But avoid the broken or
676 # incompatible versions:
677 # SysV /etc/install, /usr/sbin/install
678 # SunOS /usr/etc/install
679 # IRIX /sbin/install
680 # AIX /bin/install
681 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
682 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
683 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
684 # ./install, which can be erroneously created by make from ./install.sh.
685 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
686 echo "configure:687: checking for a BSD compatible install" >&5
687 if test -z "$INSTALL"; then
688 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
689 echo $ac_n "(cached) $ac_c" 1>&6
690 else
691 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
692 for ac_dir in $PATH; do
693 # Account for people who put trailing slashes in PATH elements.
694 case "$ac_dir/" in
695 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
697 # OSF1 and SCO ODT 3.0 have their own names for install.
698 # Don't use installbsd from OSF since it installs stuff as root
699 # by default.
700 for ac_prog in ginstall scoinst install; do
701 if test -f $ac_dir/$ac_prog; then
702 if test $ac_prog = install &&
703 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
704 # AIX install. It has an incompatible calling convention.
706 else
707 ac_cv_path_install="$ac_dir/$ac_prog -c"
708 break 2
711 done
713 esac
714 done
715 IFS="$ac_save_IFS"
718 if test "${ac_cv_path_install+set}" = set; then
719 INSTALL="$ac_cv_path_install"
720 else
721 # As a last resort, use the slow shell script. We don't cache a
722 # path for INSTALL within a source directory, because that will
723 # break other packages using the cache if that directory is
724 # removed, or if the path is relative.
725 INSTALL="$ac_install_sh"
728 echo "$ac_t""$INSTALL" 1>&6
730 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
731 # It thinks the first close brace ends the variable substitution.
732 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
734 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
736 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
738 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
739 echo "configure:740: checking whether ln works" >&5
740 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
741 echo $ac_n "(cached) $ac_c" 1>&6
742 else
743 rm -f conftestdata_t
744 echo >conftestdata_f
745 if ln conftestdata_f conftestdata_t 2>/dev/null
746 then
747 acx_cv_prog_LN=ln
748 else
749 acx_cv_prog_LN=no
751 rm -f conftestdata_f conftestdata_t
754 if test $acx_cv_prog_LN = no; then
755 LN="cp"
756 echo "$ac_t""no, using $LN" 1>&6
757 else
758 LN="$acx_cv_prog_LN"
759 echo "$ac_t""yes" 1>&6
762 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
763 echo "configure:764: checking whether ln -s works" >&5
764 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
765 echo $ac_n "(cached) $ac_c" 1>&6
766 else
767 rm -f conftestdata
768 if ln -s X conftestdata 2>/dev/null
769 then
770 rm -f conftestdata
771 ac_cv_prog_LN_S="ln -s"
772 else
773 ac_cv_prog_LN_S=ln
776 LN_S="$ac_cv_prog_LN_S"
777 if test "$ac_cv_prog_LN_S" = "ln -s"; then
778 echo "$ac_t""yes" 1>&6
779 else
780 echo "$ac_t""no" 1>&6
784 ### we might need to use some other shell than /bin/sh for running subshells
785 ### If we are on Windows, search for the shell. This will permit people
786 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
787 ### without also having to set CONFIG_SHELL. This code will work when
788 ### using bash, which sets OSTYPE.
789 case "${OSTYPE}" in
790 *win32*)
791 if test x${CONFIG_SHELL} = x ; then
792 if test ! -f /bin/sh ; then
793 if test x${SHELL} != x && test -f ${SHELL} ; then
794 CONFIG_SHELL=${SHELL}
795 export CONFIG_SHELL
796 else
797 for prog in sh sh.exe bash bash.exe; do
798 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
799 for dir in $PATH; do
800 test -z "$dir" && dir=.
801 if test -f $dir/$prog; then
802 CONFIG_SHELL=$dir/$prog
803 export CONFIG_SHELL
804 break
806 done
807 IFS="$save_ifs"
808 test -n "${CONFIG_SHELL}" && break
809 done
814 esac
816 config_shell=${CONFIG_SHELL-/bin/sh}
818 progname=$0
819 # if PWD already has a value, it is probably wrong.
820 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
822 # Export original configure arguments for use by sub-configures. These
823 # will be expanded by make, so quote '$'.
824 tmp="$progname $@"
825 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
826 $tmp
827 EOF_SED
828 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
829 rm -f conftestsed.out
832 moveifchange=${srcdir}/move-if-change
834 # Set srcdir to "." if that's what it is.
835 # This is important for multilib support.
836 pwd=`${PWDCMD-pwd}`
837 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
838 if test "${pwd}" = "${srcpwd}" ; then
839 srcdir=.
842 topsrcdir=$srcpwd
844 extra_host_args=
845 # Define the trigger file to make sure configure will re-run whenever
846 # the gcc version number changes.
847 if test "${with_gcc_version_trigger+set}" = set ; then
848 gcc_version_trigger="$with_gcc_version_trigger"
849 gcc_version=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
850 else
851 # If gcc's sources are available, define the trigger file.
852 if test -f ${topsrcdir}/gcc/version.c ; then
853 gcc_version_trigger=${topsrcdir}/gcc/version.c
854 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
855 case "$ac_configure_args" in
856 *--with-gcc-version-trigger=$gcc_version_trigger* )
859 # Add to all subconfigure arguments: build, host, and target.
860 ac_configure_args="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger"
862 esac
866 ### To add a new directory to the tree, first choose whether it is a target
867 ### or a host dependent tool. Then put it into the appropriate list
868 ### (library or tools, host or target), doing a dependency sort.
870 # Subdirs will be configured in the order listed in build_configdirs,
871 # configdirs, or target_configdirs; see the serialization section below.
873 # Dependency sorting is only needed when *configuration* must be done in
874 # a particular order. In all cases a dependency should be specified in
875 # the Makefile, whether or not it's implicitly specified here.
877 # Double entries in build_configdirs, configdirs, or target_configdirs may
878 # cause circular dependencies and break everything horribly.
880 # these libraries are used by various programs built for the host environment
882 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib libbanshee libcpp"
884 # these tools are built for the host environment
885 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
886 # know that we are building the simulator.
887 # binutils, gas and ld appear in that order because it makes sense to run
888 # "make check" in that particular order.
889 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"
891 # libgcj represents the runtime libraries only used by gcj.
892 libgcj="target-libffi \
893 target-boehm-gc \
894 target-zlib \
895 target-qthreads \
896 target-libjava"
898 # these libraries are built for the target environment, and are built after
899 # the host libraries and the host tools (which may be a cross compiler)
901 target_libraries="target-libiberty \
902 target-libgloss \
903 target-newlib \
904 target-libstdc++-v3 \
905 target-libmudflap \
906 target-libgfortran \
907 ${libgcj} \
908 target-libobjc \
909 target-libada"
911 # these tools are built using the target libraries, and are intended to
912 # run only in the target environment
914 # note: any program that *uses* libraries that are in the "target_libraries"
915 # list belongs in this list. those programs are also very likely
916 # candidates for the "native_only" list which follows
918 target_tools="target-examples target-groff target-gperf target-rda"
920 ################################################################################
922 ## All tools belong in one of the four categories, and are assigned above
923 ## We assign ${configdirs} this way to remove all embedded newlines. This
924 ## is important because configure will choke if they ever get through.
925 ## ${configdirs} is directories we build using the host tools.
926 ## ${target_configdirs} is directories we build using the target tools.
928 configdirs=`echo ${host_libs} ${host_tools}`
929 target_configdirs=`echo ${target_libraries} ${target_tools}`
931 # Only make build modules if build != host.
932 # This should be done more generally, but at the moment it doesn't matter.
933 if test ${host_alias} != ${build_alias} ; then
934 # This is the only build module.
935 build_modules=libiberty
936 else
937 build_modules=
941 ################################################################################
943 srcname="gnu development package"
945 # This gets set non-empty for some net releases of packages.
946 appdirs=""
948 # Define is_cross_compiler to save on calls to 'test'.
949 is_cross_compiler=
950 if test x"${host}" = x"${target}" ; then
951 is_cross_compiler=no
952 else
953 is_cross_compiler=yes
956 # Find the build and target subdir names.
957 case ${build_alias} in
958 "") build_noncanonical=${build} ;;
959 *) build_noncanonical=${build_alias} ;;
960 esac
962 case ${host_alias} in
963 "") host_noncanonical=${build_noncanonical} ;;
964 *) host_noncanonical=${host_alias} ;;
965 esac
967 case ${target_alias} in
968 "") target_noncanonical=${host_noncanonical} ;;
969 *) target_noncanonical=${target_alias} ;;
970 esac
972 # Prefix 'build-' so this never conflicts with target_subdir.
973 build_subdir="build-${build_noncanonical}"
974 # Not really a subdirectory, but here for completeness.
975 host_subdir=.
976 # No prefix.
977 target_subdir=${target_noncanonical}
980 # Skipdirs are removed silently.
981 skipdirs=
982 # Noconfigdirs are removed loudly.
983 noconfigdirs=""
985 use_gnu_ld=
986 # Make sure we don't let GNU ld be added if we didn't want it.
987 if test x$with_gnu_ld = xno ; then
988 use_gnu_ld=no
989 noconfigdirs="$noconfigdirs ld"
992 use_gnu_as=
993 # Make sure we don't let GNU as be added if we didn't want it.
994 if test x$with_gnu_as = xno ; then
995 use_gnu_as=no
996 noconfigdirs="$noconfigdirs gas"
999 # some tools are so dependent upon X11 that if we're not building with X,
1000 # it's not even worth trying to configure, much less build, that tool.
1002 case ${with_x} in
1003 yes | "") ;; # the default value for this tree is that X11 is available
1005 skipdirs="${skipdirs} tk tix itcl libgui"
1006 # We won't be able to build gdbtk without X.
1007 enable_gdbtk=no
1009 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1010 esac
1012 # Some tools are only suitable for building in a "native" situation.
1013 # Remove these if host!=target.
1014 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"
1016 # Similarly, some are only suitable for cross toolchains.
1017 # Remove these if host=target.
1018 cross_only="target-libgloss target-newlib target-opcodes"
1020 case $is_cross_compiler in
1021 no) skipdirs="${skipdirs} ${cross_only}" ;;
1022 yes) skipdirs="${skipdirs} ${native_only}" ;;
1023 esac
1025 # If both --with-headers and --with-libs are specified, default to
1026 # --without-newlib.
1027 if test x"${with_headers}" != x && test x"${with_headers} != xno \
1028 && test x"${with_libs}" != x && test x"${with_libs} != xno ; then
1029 if test x"${with_newlib}" = x ; then
1030 with_newlib=no
1034 # Recognize --with-newlib/--without-newlib.
1035 case ${with_newlib} in
1036 no) skipdirs="${skipdirs} target-newlib" ;;
1037 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1038 esac
1040 # Configure extra directories which are host specific
1042 case "${host}" in
1043 *-cygwin*)
1044 configdirs="$configdirs libtermcap" ;;
1045 esac
1047 # Remove more programs from consideration, based on the host or
1048 # target this usually means that a port of the program doesn't
1049 # exist yet.
1051 case "${host}" in
1052 hppa*64*-*-*)
1053 noconfigdirs="$noconfigdirs byacc"
1055 i[3456789]86-*-vsta)
1056 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix gnuserv gettext"
1058 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1059 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl tix gnuserv libffi"
1061 i[3456789]86-*-mingw32*)
1062 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix gnuserv"
1063 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1065 i[3456789]86-*-beos*)
1066 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb"
1068 *-*-cygwin*)
1069 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1071 *-*-netbsd*)
1072 noconfigdirs="$noconfigdirs rcs"
1074 ppc*-*-pe)
1075 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv"
1077 powerpc-*-beos*)
1078 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline"
1080 *-*-darwin*)
1081 noconfigdirs="$noconfigdirs tk itcl tix libgui"
1083 esac
1085 # Check whether --with-libbanshee or --without-libbanshee was given.
1086 if test "${with_libbanshee+set}" = set; then
1087 withval="$with_libbanshee"
1091 case ${with_libbanshee} in
1093 noconfigdirs="$noconfigdirs libbanshee" ;;
1094 yes|"")
1095 with_libbanshee=yes
1098 { echo "configure: error: --with-libbanshee can only be empty, "yes" or "no" (empty defaults to "yes"." 1>&2; exit 1; }
1099 esac
1101 # Check whether --enable-libada or --disable-libada was given.
1102 if test "${enable_libada+set}" = set; then
1103 enableval="$enable_libada"
1104 ENABLE_LIBADA=$enableval
1105 else
1106 ENABLE_LIBADA=yes
1109 if test "${ENABLE_LIBADA}" != "yes" ; then
1110 noconfigdirs="$noconfigdirs target-libada"
1113 # Save it here so that, even in case of --enable-libgcj, if the Java
1114 # front-end isn't enabled, we still get libgcj disabled.
1115 libgcj_saved=$libgcj
1116 case $enable_libgcj in
1117 yes)
1118 # If we reset it here, it won't get added to noconfigdirs in the
1119 # target-specific build rules, so it will be forcibly enabled
1120 # (unless the Java language itself isn't enabled).
1121 libgcj=
1124 # Make sure we get it printed in the list of not supported target libs.
1125 noconfigdirs="$noconfigdirs ${libgcj}"
1127 esac
1130 # Allow --disable-libmudflap to exclude target-libmudflap
1131 case $enable_libmudflap in
1132 yes | "")
1133 # By default it's enabled
1136 noconfigdirs="$noconfigdirs target-libmudflap"
1138 esac
1141 case "${target}" in
1142 *-*-chorusos)
1143 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1145 powerpc-*-darwin*)
1146 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1147 noconfigdirs="$noconfigdirs target-libobjc"
1149 *-*-darwin*)
1150 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1151 noconfigdirs="$noconfigdirs target-libobjc ${libgcj}"
1153 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1154 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1156 *-*-freebsd* | *-*-kfreebsd*-gnu)
1157 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1158 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1159 && test -f /usr/local/include/gmp.h; then
1160 with_gmp=/usr/local
1163 # Skip some stuff that's unsupported on some FreeBSD configurations.
1164 case "${target}" in
1165 i*86-*-*) ;;
1166 alpha*-*-*) ;;
1168 noconfigdirs="$noconfigdirs ${libgcj}"
1170 esac
1172 *-*-kaos*)
1173 # Remove unsupported stuff on all kaOS configurations.
1174 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1175 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1176 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1177 noconfigdirs="$noconfigdirs target-libgloss"
1179 *-*-netbsd*)
1180 # Skip some stuff on all NetBSD configurations.
1181 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1183 # Skip some stuff that's unsupported on some NetBSD configurations.
1184 case "${target}" in
1185 i*86-*-netbsdelf*) ;;
1186 arm*-*-netbsdelf*) ;;
1188 noconfigdirs="$noconfigdirs ${libgcj}"
1190 esac
1192 *-*-netware)
1193 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}"
1195 *-*-rtems*)
1196 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1198 *-*-uclinux*)
1199 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1201 *-*-vxworks*)
1202 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}"
1204 alpha*-dec-osf*)
1205 # ld works, but does not support shared libraries.
1206 # newlib is not 64 bit ready. I'm not sure about fileutils.
1207 # gas doesn't generate exception information.
1208 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1210 alpha*-*-*vms*)
1211 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1213 alpha*-*-linux*)
1214 # newlib is not 64 bit ready
1215 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1217 alpha*-*-*)
1218 # newlib is not 64 bit ready
1219 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1221 am33_2.0-*-linux*)
1222 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1224 sh-*-linux*)
1225 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1227 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1228 noconfigdirs="$noconfigdirs ${libgcj}"
1229 noconfigdirs="$noconfigdirs target-examples"
1230 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1231 noconfigdirs="$noconfigdirs tcl tix tk itcl libgui sim"
1232 noconfigdirs="$noconfigdirs expect dejagnu"
1233 # the C++ libraries don't build on top of CE's C libraries
1234 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1235 noconfigdirs="$noconfigdirs target-newlib"
1236 case "${host}" in
1237 *-*-cygwin*) ;; # keep gdb and readline
1238 *) noconfigdirs="$noconfigdirs gdb readline"
1240 esac
1242 arc-*-*)
1243 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1245 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1246 noconfigdirs="$noconfigdirs ${libgcj}"
1248 arm-*-elf* | strongarm-*-elf* | xscale-*-elf*)
1249 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1251 arm-*-pe*)
1252 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1254 arm-*-oabi*)
1255 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1257 thumb-*-coff)
1258 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1260 thumb-*-elf)
1261 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1263 thumb-*-oabi)
1264 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1266 thumb-*-pe)
1267 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1269 arm-*-riscix*)
1270 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1272 avr-*-*)
1273 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1275 c4x-*-* | tic4x-*-*)
1276 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1278 c54x*-*-* | tic54x-*-*)
1279 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1281 cris-*-*)
1282 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1284 d10v-*-*)
1285 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1287 d30v-*-*)
1288 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1290 fr30-*-elf*)
1291 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1293 frv-*-*)
1294 noconfigdirs="$noconfigdirs ${libgcj}"
1296 h8300*-*-*)
1297 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1299 h8500-*-*)
1300 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1302 hppa*64*-*-linux* | parisc*64*-*-linux*)
1303 # In this case, it's because the hppa64-linux target is for
1304 # the kernel only at this point and has no libc, and thus no
1305 # headers, crt*.o, etc., all of which are needed by these.
1306 noconfigdirs="$noconfigdirs target-zlib"
1308 hppa*-*-*elf* | \
1309 parisc*-*-linux* | hppa*-*-linux* | \
1310 hppa*-*-lites* | \
1311 hppa*-*-openbsd* | \
1312 hppa*64*-*-*)
1313 noconfigdirs="$noconfigdirs ${libgcj}"
1314 # Do configure ld/binutils/gas for this case.
1316 hppa*-*-*)
1317 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1318 # build on HP-UX 10.20.
1319 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1321 i960-*-*)
1322 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1324 ia64*-*-elf*)
1325 # No gdb support yet.
1326 noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb"
1328 ia64*-**-hpux*)
1329 # No gdb or ld support yet.
1330 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
1332 i[3456789]86-*-coff | i[3456789]86-*-elf)
1333 noconfigdirs="$noconfigdirs ${libgcj}"
1335 i[3456789]86-*-linux*)
1336 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1337 # not build java stuff by default.
1338 case "${target}" in
1339 *-*-*libc1*)
1340 noconfigdirs="$noconfigdirs ${libgcj}";;
1341 esac
1343 # This section makes it possible to build newlib natively on linux.
1344 # If we are using a cross compiler then don't configure newlib.
1345 if test x${is_cross_compiler} != xno ; then
1346 noconfigdirs="$noconfigdirs target-newlib"
1348 noconfigdirs="$noconfigdirs target-libgloss"
1349 # If we are not using a cross compiler, do configure newlib.
1350 # Note however, that newlib will only be configured in this situation
1351 # if the --with-newlib option has been given, because otherwise
1352 # 'target-newlib' will appear in skipdirs.
1354 i[3456789]86-*-mingw32*)
1355 target_configdirs="$target_configdirs target-mingw"
1356 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1358 # Can't build gdb for mingw32 if not native.
1359 case "${host}" in
1360 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1361 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix gnuserv"
1363 esac
1365 *-*-cygwin*)
1366 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1367 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1368 # always build newlib.
1369 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1371 # Can't build gdb for Cygwin if not native.
1372 case "${host}" in
1373 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1374 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix libgui gnuserv"
1376 esac
1378 i[3456789]86-*-pe)
1379 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1381 i[3456789]86-*-sco3.2v5*)
1382 # The linker does not yet know about weak symbols in COFF,
1383 # and is not configured to handle mixed ELF and COFF.
1384 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1386 i[3456789]86-*-sco*)
1387 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1389 i[3456789]86-*-solaris2*)
1390 noconfigdirs="$noconfigdirs target-libgloss"
1392 i[3456789]86-*-sysv4*)
1393 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1395 i[3456789]86-*-beos*)
1396 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1398 m32r-*-*)
1399 noconfigdirs="$noconfigdirs ${libgcj}"
1401 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1402 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1404 m68k-*-elf*)
1405 noconfigdirs="$noconfigdirs ${libgcj}"
1407 m68k-*-coff*)
1408 noconfigdirs="$noconfigdirs ${libgcj}"
1410 mcore-*-pe*)
1411 # The EPOC C++ environment does not support exceptions or rtti,
1412 # and so building libstdc++-v3 tends not to always work.
1413 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1415 mmix-*-*)
1416 noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss"
1418 mn10200-*-*)
1419 noconfigdirs="$noconfigdirs ${libgcj}"
1421 mn10300-*-*)
1422 noconfigdirs="$noconfigdirs ${libgcj}"
1424 powerpc-*-aix*)
1425 # copied from rs6000-*-* entry
1426 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1428 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1429 target_configdirs="$target_configdirs target-winsup"
1430 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix gnuserv ${libgcj}"
1431 # always build newlib.
1432 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1434 # This is temporary until we can link against shared libraries
1435 powerpcle-*-solaris*)
1436 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl tix gnuserv ${libgcj}"
1438 powerpc-*-beos*)
1439 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1441 powerpc-*-eabi)
1442 noconfigdirs="$noconfigdirs ${libgcj}"
1444 rs6000-*-lynxos*)
1445 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1447 rs6000-*-aix*)
1448 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1450 rs6000-*-*)
1451 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1453 m68k-apollo-*)
1454 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1456 mips*-*-irix5*)
1457 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1459 mips*-*-irix6*)
1460 # Linking libjava exceeds command-line length limits on at least
1461 # IRIX 6.2, but not on IRIX 6.5.
1462 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1463 # <oldham@codesourcery.com>
1464 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1466 mips*-dec-bsd*)
1467 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1469 mips*-*-bsd*)
1470 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1472 mipstx39-*-*)
1473 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1475 mips64*-*-linux*)
1476 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1478 mips*-*-linux*)
1479 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1481 mips*-*-*)
1482 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1484 romp-*-*)
1485 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1487 sh-*-*)
1488 case "${host}" in
1489 i[3456789]86-*-vsta) ;; # don't add gprof back in
1490 i[3456789]86-*-go32*) ;; # don't add gprof back in
1491 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1492 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1493 esac
1494 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1496 sh64-*-*)
1497 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1499 sparc-*-elf*)
1500 noconfigdirs="$noconfigdirs ${libgcj}"
1502 sparc64-*-elf*)
1503 noconfigdirs="$noconfigdirs ${libgcj}"
1505 sparclite-*-*)
1506 noconfigdirs="$noconfigdirs ${libgcj}"
1508 sparc-*-sunos4*)
1509 noconfigdirs="$noconfigdirs ${libgcj}"
1510 if test x${is_cross_compiler} != xno ; then
1511 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1512 else
1513 use_gnu_ld=no
1516 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1518 v810-*-*)
1519 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1521 v850-*-*)
1522 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1524 v850e-*-*)
1525 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1527 v850ea-*-*)
1528 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1530 vax-*-vms)
1531 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1533 vax-*-*)
1534 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1536 xtensa-*-*)
1537 noconfigdirs="$noconfigdirs ${libgcj}"
1539 ip2k-*-*)
1540 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1542 *-*-linux*)
1543 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1545 *-*-lynxos*)
1546 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1548 *-*-*)
1549 noconfigdirs="$noconfigdirs ${libgcj}"
1551 esac
1553 # If we aren't building newlib, then don't build libgloss, since libgloss
1554 # depends upon some newlib header files.
1555 case "${noconfigdirs}" in
1556 *target-libgloss*) ;;
1557 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1558 esac
1560 # Work in distributions that contain no compiler tools, like Autoconf.
1561 tentative_cc=""
1562 host_makefile_frag=/dev/null
1563 if test -d ${srcdir}/config ; then
1564 case "${host}" in
1565 m68k-hp-hpux*)
1566 # Avoid "too much defining" errors from HPUX compiler.
1567 tentative_cc="cc -Wp,-H256000"
1568 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1569 # If it's HP/UX ar, this should be harmless.
1570 RANLIB="ar ts"
1572 m68k-apollo-sysv*)
1573 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1575 m68k-apollo-bsd*)
1576 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1577 # chokes on bfd, the compiler won't let you assign integers to enums, and
1578 # other problems. Defining CC to gcc is a questionable way to say "don't use
1579 # the apollo compiler" (the preferred version of GCC could be called cc,
1580 # or whatever), but I'm not sure leaving CC as cc is any better...
1581 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1582 # Used to have BISON=yacc.
1583 tentative_cc=gcc
1585 m88k-dg-dgux*)
1586 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1588 m88k-harris-cxux*)
1589 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1590 tentative_cc="cc -Xa"
1591 host_makefile_frag="config/mh-cxux"
1593 m88k-motorola-sysv*)
1595 mips*-dec-ultrix*)
1596 tentative_cc="cc -Wf,-XNg1000"
1597 host_makefile_frag="config/mh-decstation"
1599 mips*-nec-sysv4*)
1600 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1601 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1602 host_makefile_frag="config/mh-necv4"
1604 mips*-sgi-irix4*)
1605 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1606 # environment. Also bump switch table size so that cp-parse will
1607 # compile. Bump string length limit so linker builds.
1608 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1610 mips*-*-sysv4*)
1611 host_makefile_frag="config/mh-sysv4"
1613 mips*-*-sysv*)
1614 # This is for a MIPS running RISC/os 4.52C.
1616 # This is needed for GDB, but needs to be in the top-level make because
1617 # if a library is compiled with the bsd headers and gets linked with the
1618 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1619 # a different size).
1620 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1621 # known except to select the sysv environment. Could we use /proc instead?
1622 # These "sysv environments" and "bsd environments" often end up being a pain.
1624 # This is not part of CFLAGS because perhaps not all C compilers have this
1625 # option.
1626 tentative_cc="cc -systype sysv"
1628 i370-ibm-opened*)
1629 tentative_cc="c89"
1631 i[3456789]86-*-sysv5*)
1632 host_makefile_frag="config/mh-sysv5"
1634 i[3456789]86-*-dgux*)
1635 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1636 host_makefile_frag="config/mh-dgux386"
1638 i[3456789]86-ncr-sysv4.3*)
1639 # The MetaWare compiler will generate a copyright message unless you
1640 # turn it off by adding the -Hnocopyr flag.
1641 tentative_cc="cc -Hnocopyr"
1643 i[3456789]86-ncr-sysv4*)
1644 # for an NCR 3000 (i486/SVR4) system.
1645 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1646 # This compiler not only emits obnoxious copyright messages every time
1647 # you run it, but it chokes and dies on a whole bunch of GNU source
1648 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1649 tentative_cc="/usr/ccs/ATT/cc"
1650 host_makefile_frag="config/mh-ncr3000"
1652 i[3456789]86-*-sco3.2v5*)
1654 i[3456789]86-*-sco*)
1655 # The native C compiler botches some simple uses of const. Unfortunately,
1656 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1657 tentative_cc="cc -Dconst="
1658 host_makefile_frag="config/mh-sco"
1660 i[3456789]86-*-udk*)
1661 host_makefile_frag="config/mh-sysv5"
1663 i[3456789]86-*-solaris2*)
1664 host_makefile_frag="config/mh-sysv4"
1666 i[3456789]86-*-msdosdjgpp*)
1667 host_makefile_frag="config/mh-djgpp"
1669 *-cygwin*)
1670 host_makefile_frag="config/mh-cygwin"
1672 *-mingw32*)
1673 host_makefile_frag="config/mh-mingw32"
1675 *-interix*)
1676 host_makefile_frag="config/mh-interix"
1678 vax-*-ultrix2*)
1679 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1680 tentative_cc=gcc
1682 *-*-solaris2*)
1683 host_makefile_frag="config/mh-solaris"
1685 m68k-sun-sunos*)
1686 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1687 # without overflowing the jump tables (-J says to use a 32 bit table)
1688 tentative_cc="cc -J"
1690 *-hp-hpux*)
1691 tentative_cc="cc -Wp,-H256000"
1693 *-*-hiux*)
1694 tentative_cc="cc -Wp,-H256000"
1696 rs6000-*-lynxos*)
1697 # /bin/cc is less than useful for our purposes. Always use GCC
1698 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1699 host_makefile_frag="config/mh-lynxrs6k"
1701 *-*-lynxos*)
1702 # /bin/cc is less than useful for our purposes. Always use GCC
1703 tentative_cc="/bin/gcc"
1705 *-*-sysv4*)
1706 host_makefile_frag="config/mh-sysv4"
1708 esac
1711 # If we aren't going to be using gcc, see if we can extract a definition
1712 # of CC from the fragment.
1713 # Actually, use the 'pre-extracted' version above.
1714 if test -z "${CC}" && test "${build}" = "${host}" ; then
1715 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1716 found=
1717 for dir in $PATH; do
1718 test -z "$dir" && dir=.
1719 if test -f $dir/gcc; then
1720 found=yes
1721 break
1723 done
1724 IFS="$save_ifs"
1725 if test -z "${found}" && test -n "${tentative_cc}" ; then
1726 CC=$tentative_cc
1730 if test "${build}" != "${host}" ; then
1731 # If we are doing a Canadian Cross, in which the host and build systems
1732 # are not the same, we set reasonable default values for the tools.
1734 BISON=${BISON-bison}
1735 CC=${CC-${host_alias}-gcc}
1736 CFLAGS=${CFLAGS-"-g -O2"}
1737 CXX=${CXX-${host_alias}-c++}
1738 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1739 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1740 CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc}
1741 CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++}
1742 GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj}
1743 GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
1744 BUILD_PREFIX=${build_alias}-
1745 BUILD_PREFIX_1=${build_alias}-
1746 MAKEINFO=${MAKEINFO-makeinfo}
1748 if test -z "${YACC}" ; then
1749 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1750 for dir in $PATH; do
1751 test -z "$dir" && dir=.
1752 if test -f $dir/bison; then
1753 YACC="bison -y"
1754 break
1756 if test -f $dir/byacc; then
1757 YACC=byacc
1758 break
1760 if test -f $dir/yacc; then
1761 YACC=yacc
1762 break
1764 done
1765 IFS="$save_ifs"
1766 if test -z "${YACC}" ; then
1767 YACC="bison -y"
1771 if test -z "${LEX}" ; then
1772 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1773 for dir in $PATH; do
1774 test -z "$dir" && dir=.
1775 if test -f $dir/flex; then
1776 LEX=flex
1777 break
1779 if test -f $dir/lex; then
1780 LEX=lex
1781 break
1783 done
1784 IFS="$save_ifs"
1785 LEX=${LEX-flex}
1788 else
1789 # Set reasonable default values for some tools even if not Canadian.
1790 # Of course, these are different reasonable default values, originally
1791 # specified directly in the Makefile.
1792 # We don't export, so that autoconf can do its job.
1793 # Note that all these settings are above the fragment inclusion point
1794 # in Makefile.in, so can still be overridden by fragments.
1795 # This is all going to change when we autoconfiscate...
1797 BISON="\$(USUAL_BISON)"
1798 CC_FOR_BUILD="\$(CC)"
1799 GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
1800 BUILD_PREFIX=
1801 BUILD_PREFIX_1=loser-
1802 MAKEINFO="\$(USUAL_MAKEINFO)"
1803 LEX="\$(USUAL_LEX)"
1804 YACC="\$(USUAL_YACC)"
1806 # If CC is still not set, try to get gcc.
1807 cc_prog_is_gcc=
1808 if test -z "${CC}" ; then
1809 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1810 for dir in $PATH; do
1811 test -z "$dir" && dir=.
1812 if test -f $dir/gcc; then
1813 CC="gcc"
1814 cc_prog_is_gcc=yes
1815 echo 'void f(){}' > conftest.c
1816 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1817 CFLAGS=${CFLAGS-"-g -O2"}
1818 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1819 else
1820 CFLAGS=${CFLAGS-"-O2"}
1821 CXXFLAGS=${CXXFLAGS-"-O2"}
1823 rm -f conftest*
1824 break
1826 done
1827 IFS="$save_ifs"
1828 CC=${CC-cc}
1829 else
1830 # Determine if we are using gcc.
1831 cat > conftest.c <<EOF
1832 #ifdef __GNUC__
1833 yes;
1834 #endif
1836 if ${CC} -E conftest.c | grep yes >/dev/null 2>&1; then
1837 cc_prog_is_gcc=yes
1839 rm -f conftest.c
1840 if test -z "${CFLAGS}"; then
1841 # Here CC is set but CFLAGS is not. Use a quick hack to use -O2 if CC
1842 # is set to a version of gcc.
1843 if test "$cc_prog_is_gcc" = yes; then
1844 echo 'void f(){}' > conftest.c
1845 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1846 CFLAGS=${CFLAGS-"-g -O2"}
1847 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1848 else
1849 CFLAGS=${CFLAGS-"-O2"}
1850 CXXFLAGS=${CXXFLAGS-"-O2"}
1852 rm -f conftest*
1857 # We must set the default linker to the linker used by gcc for the correct
1858 # operation of libtool. If LD is not defined and we are using gcc, try to
1859 # set the LD default to the ld used by gcc.
1860 if test -z "$LD"; then
1861 if test "$cc_prog_is_gcc" = yes; then
1862 case $build in
1863 *-*-mingw*)
1864 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
1866 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
1867 esac
1868 case $gcc_prog_ld in
1869 # Accept absolute paths.
1870 [\\/]* | [A-Za-z]:[\\/]*)
1871 LD="$gcc_prog_ld" ;;
1872 esac
1876 CXX=${CXX-"c++"}
1877 CFLAGS=${CFLAGS-"-g"}
1878 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1881 if test $host != $build; then
1882 ac_tool_prefix=${host_alias}-
1883 else
1884 ac_tool_prefix=
1887 # Extract the first word of "gcc", so it can be a program name with args.
1888 set dummy gcc; ac_word=$2
1889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1890 echo "configure:1891: checking for $ac_word" >&5
1891 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&6
1893 else
1894 if test -n "$CC"; then
1895 ac_cv_prog_CC="$CC" # Let the user override the test.
1896 else
1897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1898 ac_dummy="$PATH"
1899 for ac_dir in $ac_dummy; do
1900 test -z "$ac_dir" && ac_dir=.
1901 if test -f $ac_dir/$ac_word; then
1902 ac_cv_prog_CC="gcc"
1903 break
1905 done
1906 IFS="$ac_save_ifs"
1909 CC="$ac_cv_prog_CC"
1910 if test -n "$CC"; then
1911 echo "$ac_t""$CC" 1>&6
1912 else
1913 echo "$ac_t""no" 1>&6
1916 if test -z "$CC"; then
1917 # Extract the first word of "cc", so it can be a program name with args.
1918 set dummy cc; ac_word=$2
1919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1920 echo "configure:1921: checking for $ac_word" >&5
1921 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1922 echo $ac_n "(cached) $ac_c" 1>&6
1923 else
1924 if test -n "$CC"; then
1925 ac_cv_prog_CC="$CC" # Let the user override the test.
1926 else
1927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1928 ac_prog_rejected=no
1929 ac_dummy="$PATH"
1930 for ac_dir in $ac_dummy; do
1931 test -z "$ac_dir" && ac_dir=.
1932 if test -f $ac_dir/$ac_word; then
1933 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1934 ac_prog_rejected=yes
1935 continue
1937 ac_cv_prog_CC="cc"
1938 break
1940 done
1941 IFS="$ac_save_ifs"
1942 if test $ac_prog_rejected = yes; then
1943 # We found a bogon in the path, so make sure we never use it.
1944 set dummy $ac_cv_prog_CC
1945 shift
1946 if test $# -gt 0; then
1947 # We chose a different compiler from the bogus one.
1948 # However, it has the same basename, so the bogon will be chosen
1949 # first if we set CC to just the basename; use the full file name.
1950 shift
1951 set dummy "$ac_dir/$ac_word" "$@"
1952 shift
1953 ac_cv_prog_CC="$@"
1958 CC="$ac_cv_prog_CC"
1959 if test -n "$CC"; then
1960 echo "$ac_t""$CC" 1>&6
1961 else
1962 echo "$ac_t""no" 1>&6
1965 if test -z "$CC"; then
1966 case "`uname -s`" in
1967 *win32* | *WIN32*)
1968 # Extract the first word of "cl", so it can be a program name with args.
1969 set dummy cl; ac_word=$2
1970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1971 echo "configure:1972: checking for $ac_word" >&5
1972 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1973 echo $ac_n "(cached) $ac_c" 1>&6
1974 else
1975 if test -n "$CC"; then
1976 ac_cv_prog_CC="$CC" # Let the user override the test.
1977 else
1978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1979 ac_dummy="$PATH"
1980 for ac_dir in $ac_dummy; do
1981 test -z "$ac_dir" && ac_dir=.
1982 if test -f $ac_dir/$ac_word; then
1983 ac_cv_prog_CC="cl"
1984 break
1986 done
1987 IFS="$ac_save_ifs"
1990 CC="$ac_cv_prog_CC"
1991 if test -n "$CC"; then
1992 echo "$ac_t""$CC" 1>&6
1993 else
1994 echo "$ac_t""no" 1>&6
1997 esac
1999 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2002 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2003 echo "configure:2004: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2005 ac_ext=c
2006 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2007 ac_cpp='$CPP $CPPFLAGS'
2008 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2009 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2010 cross_compiling=$ac_cv_prog_cc_cross
2012 cat > conftest.$ac_ext << EOF
2014 #line 2015 "configure"
2015 #include "confdefs.h"
2017 main(){return(0);}
2019 if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2020 ac_cv_prog_cc_works=yes
2021 # If we can't run a trivial program, we are probably using a cross compiler.
2022 if (./conftest; exit) 2>/dev/null; then
2023 ac_cv_prog_cc_cross=no
2024 else
2025 ac_cv_prog_cc_cross=yes
2027 else
2028 echo "configure: failed program was:" >&5
2029 cat conftest.$ac_ext >&5
2030 ac_cv_prog_cc_works=no
2032 rm -fr conftest*
2033 ac_ext=c
2034 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2035 ac_cpp='$CPP $CPPFLAGS'
2036 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2037 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2038 cross_compiling=$ac_cv_prog_cc_cross
2040 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2041 if test $ac_cv_prog_cc_works = no; then
2042 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2044 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2045 echo "configure:2046: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2046 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2047 cross_compiling=$ac_cv_prog_cc_cross
2049 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2050 echo "configure:2051: checking whether we are using GNU C" >&5
2051 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2053 else
2054 cat > conftest.c <<EOF
2055 #ifdef __GNUC__
2056 yes;
2057 #endif
2059 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2060 ac_cv_prog_gcc=yes
2061 else
2062 ac_cv_prog_gcc=no
2066 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2068 if test $ac_cv_prog_gcc = yes; then
2069 GCC=yes
2070 else
2071 GCC=
2074 ac_test_CFLAGS="${CFLAGS+set}"
2075 ac_save_CFLAGS="$CFLAGS"
2076 CFLAGS=
2077 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2078 echo "configure:2079: checking whether ${CC-cc} accepts -g" >&5
2079 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2080 echo $ac_n "(cached) $ac_c" 1>&6
2081 else
2082 echo 'void f(){}' > conftest.c
2083 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2084 ac_cv_prog_cc_g=yes
2085 else
2086 ac_cv_prog_cc_g=no
2088 rm -f conftest*
2092 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2093 if test "$ac_test_CFLAGS" = set; then
2094 CFLAGS="$ac_save_CFLAGS"
2095 elif test $ac_cv_prog_cc_g = yes; then
2096 if test "$GCC" = yes; then
2097 CFLAGS="-g -O2"
2098 else
2099 CFLAGS="-g"
2101 else
2102 if test "$GCC" = yes; then
2103 CFLAGS="-O2"
2104 else
2105 CFLAGS=
2111 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2112 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2114 echo "configure:2115: checking for $ac_word" >&5
2115 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2116 echo $ac_n "(cached) $ac_c" 1>&6
2117 else
2118 if test -n "$GNATBIND"; then
2119 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2120 else
2121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2122 ac_dummy="$PATH"
2123 for ac_dir in $ac_dummy; do
2124 test -z "$ac_dir" && ac_dir=.
2125 if test -f $ac_dir/$ac_word; then
2126 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2127 break
2129 done
2130 IFS="$ac_save_ifs"
2133 GNATBIND="$ac_cv_prog_GNATBIND"
2134 if test -n "$GNATBIND"; then
2135 echo "$ac_t""$GNATBIND" 1>&6
2136 else
2137 echo "$ac_t""no" 1>&6
2141 if test -z "$ac_cv_prog_GNATBIND"; then
2142 if test -n "$ac_tool_prefix"; then
2143 # Extract the first word of "gnatbind", so it can be a program name with args.
2144 set dummy gnatbind; ac_word=$2
2145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2146 echo "configure:2147: checking for $ac_word" >&5
2147 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2148 echo $ac_n "(cached) $ac_c" 1>&6
2149 else
2150 if test -n "$GNATBIND"; then
2151 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2152 else
2153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2154 ac_dummy="$PATH"
2155 for ac_dir in $ac_dummy; do
2156 test -z "$ac_dir" && ac_dir=.
2157 if test -f $ac_dir/$ac_word; then
2158 ac_cv_prog_GNATBIND="gnatbind"
2159 break
2161 done
2162 IFS="$ac_save_ifs"
2163 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2166 GNATBIND="$ac_cv_prog_GNATBIND"
2167 if test -n "$GNATBIND"; then
2168 echo "$ac_t""$GNATBIND" 1>&6
2169 else
2170 echo "$ac_t""no" 1>&6
2173 else
2174 GNATBIND="no"
2178 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2179 echo "configure:2180: checking whether compiler driver understands Ada" >&5
2180 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2182 else
2183 cat >conftest.adb <<EOF
2184 procedure conftest is begin null; end conftest;
2186 acx_cv_cc_gcc_supports_ada=no
2187 # There is a bug in old released versions of GCC which causes the
2188 # driver to exit successfully when the appropriate language module
2189 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2190 # Therefore we must check for the error message as well as an
2191 # unsuccessful exit.
2192 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2193 # given a .adb file, but produce no object file. So we must check
2194 # if an object file was really produced to guard against this.
2195 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2196 if test x"$errors" = x && test -f conftest.$ac_objext; then
2197 acx_cv_cc_gcc_supports_ada=yes
2198 break
2200 rm -f conftest.*
2203 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2205 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2206 have_gnat=yes
2207 else
2208 have_gnat=no
2211 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2212 echo "configure:2213: checking how to compare bootstrapped objects" >&5
2213 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2215 else
2216 echo abfoo >t1
2217 echo cdfoo >t2
2218 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2219 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2220 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2222 else
2223 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2226 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2227 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2229 else
2230 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2233 rm t1 t2
2237 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2238 do_compare="$gcc_cv_prog_cmp_skip"
2242 # Check for GMP
2243 gmplibs=
2244 gmpinc=
2245 have_gmp=yes
2246 # Specify a location for gmp
2247 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2248 if test "${with_gmp_dir+set}" = set; then
2249 withval="$with_gmp_dir"
2254 if test "x$with_gmp_dir" != x && test -f "$with_gmp_dir/gmp.h"; then
2255 gmpinc="-I$with_gmp_dir"
2256 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2257 gmplibs="$with_gmp_dir/.libs/libgmp.a"
2258 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2259 gmplibs="$with_gmp_dir/_libs/libgmp.a"
2261 # One of the later tests will catch the error if neither library is present.
2264 # Check whether --with-gmp or --without-gmp was given.
2265 if test "${with_gmp+set}" = set; then
2266 withval="$with_gmp"
2271 if test "x$with_gmp" != x && test -d "$with_gmp"; then
2272 gmplibs="-L$with_gmp/lib -lgmp"
2273 gmpinc="-I$with_gmp/include"
2276 # Use system gmp if nothing else specified
2277 if test "x$gmplibs" = x; then
2278 gmplibs="-lgmp"
2281 saved_CFLAGS="$CFLAGS"
2282 CFLAGS="$CFLAGS $gmpinc"
2283 # Check GMP actually works
2284 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2285 echo "configure:2286: checking for correct version of gmp.h" >&5
2286 cat > conftest.$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2289 #include "gmp.h"
2290 int main() {
2292 #if __GNU_MP_VERSION < 3
2293 choke me
2294 #endif
2296 ; return 0; }
2298 if { (eval echo configure:2299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2299 rm -rf conftest*
2300 echo "$ac_t""yes" 1>&6
2301 else
2302 echo "configure: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
2304 rm -rf conftest*
2305 echo "$ac_t""no" 1>&6; have_gmp=no
2307 rm -f conftest*
2309 if test x"$have_gmp" = xyes; then
2310 echo $ac_n "checking for mpf_init in -lgmp""... $ac_c" 1>&6
2311 echo "configure:2312: checking for mpf_init in -lgmp" >&5
2313 saved_LIBS="$LIBS"
2314 LIBS="$LIBS $gmplibs"
2315 cat > conftest.$ac_ext <<EOF
2316 #line 2317 "configure"
2317 #include "confdefs.h"
2318 #include <gmp.h>
2319 int main() {
2320 mpf_t n; mpf_init(n);
2321 ; return 0; }
2323 if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2324 rm -rf conftest*
2325 echo "$ac_t""yes" 1>&6
2326 else
2327 echo "configure: failed program was:" >&5
2328 cat conftest.$ac_ext >&5
2329 rm -rf conftest*
2330 echo "$ac_t""no" 1>&6; have_gmp=no
2332 rm -f conftest*
2333 LIBS="$saved_LIBS"
2334 CFLAGS="$saved_CFLAGS"
2340 # By default, C is the only stage 1 language.
2341 stage1_languages=c
2344 # Figure out what language subdirectories are present.
2345 # Look if the user specified --enable-languages="..."; if not, use
2346 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2347 # go away some day.
2348 # NB: embedded tabs in this IF block -- do not untabify
2349 if test -d ${srcdir}/gcc; then
2350 if test x"${enable_languages+set}" != xset; then
2351 if test x"${LANGUAGES+set}" = xset; then
2352 enable_languages="${LANGUAGES}"
2353 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2354 else
2355 enable_languages=all
2357 else
2358 if test x"${enable_languages}" = x ||
2359 test x"${enable_languages}" = xyes;
2360 then
2361 echo configure.in: --enable-languages needs at least one language argument 1>&2
2362 exit 1
2365 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2367 # First scan to see if an enabled language requires some other language.
2368 # We assume that a given config-lang.in will list all the language
2369 # front ends it requires, even if some are required indirectly.
2370 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2371 case ${lang_frag} in
2372 ..) ;;
2373 # The odd quoting in the next line works around
2374 # an apparent bug in bash 1.12 on linux.
2375 ${srcdir}/gcc/[*]/config-lang.in) ;;
2377 # From the config-lang.in, get $language, $lang_requires
2378 language=
2379 lang_requires=
2380 . ${lang_frag}
2381 for other in ${lang_requires} ; do
2382 case ,${enable_languages}, in
2383 *,$other,*) ;;
2384 *,all,*) ;;
2385 *,$language,*)
2386 echo " \`$other' language required by \`$language'; enabling" 1>&2
2387 enable_languages="${enable_languages},${other}"
2389 esac
2390 done
2392 esac
2393 done
2395 new_enable_languages=c
2396 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2398 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2399 case ${lang_frag} in
2400 ..) ;;
2401 # The odd quoting in the next line works around
2402 # an apparent bug in bash 1.12 on linux.
2403 ${srcdir}/gcc/[*]/config-lang.in) ;;
2405 # From the config-lang.in, get $language, $target_libs,
2406 # $lang_dirs, $boot_language, and $build_by_default
2407 language=
2408 target_libs=
2409 lang_dirs=
2410 boot_language=
2411 build_by_default=
2412 need_gmp=
2413 . ${lang_frag}
2414 # This is quite sensitive to the ordering of the case statement arms.
2415 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2416 *::*:*)
2417 echo "${lang_frag} doesn't set \$language." 1>&2
2418 exit 1
2420 *:ada:no:*)
2421 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2422 add_this_lang=no
2424 *,${language},*:*:*:*)
2425 # Language was explicitly selected; include it.
2426 add_this_lang=yes
2428 *,all,*:*:*:no)
2429 # 'all' was selected, but this is not a default language
2430 # so do not include it.
2431 add_this_lang=no
2433 *,all,*:*:*:*)
2434 # 'all' was selected and this is a default language; include it.
2435 add_this_lang=yes
2438 add_this_lang=no
2440 esac
2442 # Disable language that need GMP if it isn't available.
2443 if test x"$need_gmp" = xyes && test x"$have_gmp" = xno; then
2444 add_this_lang=no
2447 case $add_this_lang in
2449 # Remove language-dependent dirs.
2450 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2453 new_enable_languages="$new_enable_languages,$language"
2454 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2455 case ${boot_language} in
2456 yes)
2457 # Add to (comma-separated) list of stage 1 languages.
2458 stage1_languages="${stage1_languages},${language}"
2460 esac
2462 esac
2464 esac
2465 done
2467 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2468 if test "x$missing_languages" != x; then
2469 { echo "configure: error:
2470 The following requested languages were not found: ${missing_languages}" 1>&2; exit 1; }
2473 if test "x$new_enable_languages" != "x$enable_languages"; then
2474 echo The following languages will be built: ${new_enable_languages}
2476 enable_languages="$new_enable_languages"
2477 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2480 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
2481 # $target_configdirs.
2482 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2484 notsupp=""
2485 for dir in . $skipdirs $noconfigdirs ; do
2486 dirname=`echo $dir | sed -e s/target-//g`
2487 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2488 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2489 if test -r $srcdir/$dirname/configure ; then
2490 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2491 true
2492 else
2493 notsupp="$notsupp $dir"
2497 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2498 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2499 if test -r $srcdir/$dirname/configure ; then
2500 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2501 true
2502 else
2503 notsupp="$notsupp $dir"
2507 done
2509 # Sometimes the tools are distributed with libiberty but with no other
2510 # libraries. In that case, we don't want to build target-libiberty.
2511 if test -n "${target_configdirs}" ; then
2512 others=
2513 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2514 if test "$i" != "libiberty" ; then
2515 if test -r $srcdir/$i/configure ; then
2516 others=yes;
2517 break;
2520 done
2521 if test -z "${others}" ; then
2522 target_configdirs=
2526 # Quietly strip out all directories which aren't configurable in this tree.
2527 # This relies on all configurable subdirectories being autoconfiscated, which
2528 # is now the case.
2529 configdirs_all="$configdirs"
2530 configdirs=
2531 for i in ${configdirs_all} ; do
2532 if test -f ${srcdir}/$i/configure ; then
2533 configdirs="${configdirs} $i"
2535 done
2536 target_configdirs_all="$target_configdirs"
2537 target_configdirs=
2538 for i in ${target_configdirs_all} ; do
2539 j=`echo $i | sed -e s/target-//g`
2540 if test -f ${srcdir}/$j/configure ; then
2541 target_configdirs="${target_configdirs} $i"
2543 done
2545 # Produce a warning message for the subdirs we can't configure.
2546 # This isn't especially interesting in the Cygnus tree, but in the individual
2547 # FSF releases, it's important to let people know when their machine isn't
2548 # supported by the one or two programs in a package.
2550 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2551 # If $appdirs is non-empty, at least one of those directories must still
2552 # be configured, or we error out. (E.g., if the gas release supports a
2553 # specified target in some subdirs but not the gas subdir, we shouldn't
2554 # pretend that all is well.)
2555 if test -n "$appdirs" ; then
2556 for dir in $appdirs ; do
2557 if test -r $dir/Makefile.in ; then
2558 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2559 appdirs=""
2560 break
2562 if echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2563 appdirs=""
2564 break
2567 done
2568 if test -n "$appdirs" ; then
2569 echo "*** This configuration is not supported by this package." 1>&2
2570 exit 1
2573 # Okay, some application will build, or we don't care to check. Still
2574 # notify of subdirs not getting built.
2575 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2576 echo " ${notsupp}" 1>&2
2577 echo " (Any other directories should still work fine.)" 1>&2
2580 case "$host" in
2581 *msdosdjgpp*)
2582 enable_gdbtk=no ;;
2583 esac
2585 copy_dirs=
2587 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2588 # the named directory are copied to $(tooldir)/sys-include.
2589 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2590 if test x${is_cross_compiler} = xno ; then
2591 echo 1>&2 '***' --with-headers is only supported when cross compiling
2592 exit 1
2594 if test x"${with_headers}" != xyes ; then
2595 case "${exec_prefixoption}" in
2596 "") x=${prefix} ;;
2597 *) x=${exec_prefix} ;;
2598 esac
2599 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2603 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2604 # the name directories are copied to $(tooldir)/lib. Multiple directories
2605 # are permitted.
2606 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2607 if test x${is_cross_compiler} = xno ; then
2608 echo 1>&2 '***' --with-libs is only supported when cross compiling
2609 exit 1
2611 if test x"${with_libs}" != xyes ; then
2612 # Copy the libraries in reverse order, so that files in the first named
2613 # library override files in subsequent libraries.
2614 case "${exec_prefixoption}" in
2615 "") x=${prefix} ;;
2616 *) x=${exec_prefix} ;;
2617 esac
2618 for l in ${with_libs}; do
2619 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2620 done
2624 # Handle ${copy_dirs}
2625 set fnord ${copy_dirs}
2626 shift
2627 while test $# != 0 ; do
2628 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2630 else
2631 echo Copying $1 to $2
2633 # Use the install script to create the directory and all required
2634 # parent directories.
2635 if test -d $2 ; then
2637 else
2638 echo >config.temp
2639 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2642 # Copy the directory, assuming we have tar.
2643 # FIXME: Should we use B in the second tar? Not all systems support it.
2644 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2646 # It is the responsibility of the user to correctly adjust all
2647 # symlinks. If somebody can figure out how to handle them correctly
2648 # here, feel free to add the code.
2650 echo $1 > $2/COPIED
2652 shift; shift
2653 done
2655 extra_arflags_for_target=
2656 extra_nmflags_for_target=
2657 extra_ranlibflags_for_target=
2658 target_makefile_frag=/dev/null
2659 case "${target}" in
2660 i[3456789]86-*-netware*)
2661 target_makefile_frag="config/mt-netware"
2663 powerpc-*-netware*)
2664 target_makefile_frag="config/mt-netware"
2666 *-*-linux*)
2667 target_makefile_frag="config/mt-linux"
2669 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2670 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2671 # commands to handle both 32-bit and 64-bit objects. These flags are
2672 # harmless if we're using GNU nm or ar.
2673 extra_arflags_for_target=" -X32_64"
2674 extra_nmflags_for_target=" -B -X32_64"
2676 *-*-darwin*)
2677 # ranlib from Darwin requires the -c flag to look at common symbols.
2678 extra_ranlibflags_for_target=" -c"
2680 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2681 target_makefile_frag="config/mt-wince"
2683 esac
2685 alphaieee_frag=/dev/null
2686 case $target in
2687 alpha*-*-*)
2688 # This just makes sure to use the -mieee option to build target libs.
2689 # This should probably be set individually by each library.
2690 alphaieee_frag="config/mt-alphaieee"
2692 esac
2694 # If --enable-target-optspace always use -Os instead of -O2 to build
2695 # the target libraries, similarly if it is not specified, use -Os
2696 # on selected platforms.
2697 ospace_frag=/dev/null
2698 case "${enable_target_optspace}:${target}" in
2699 yes:*)
2700 ospace_frag="config/mt-ospace"
2702 :d30v-*)
2703 ospace_frag="config/mt-d30v"
2705 :m32r-* | :d10v-* | :fr30-*)
2706 ospace_frag="config/mt-ospace"
2708 no:* | :*)
2711 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2713 esac
2715 # Set with_gnu_as and with_gnu_ld as appropriate.
2717 # This is done by determining whether or not the appropriate directory
2718 # is available, and by checking whether or not specific configurations
2719 # have requested that this magic not happen.
2721 # The command line options always override the explicit settings in
2722 # configure.in, and the settings in configure.in override this magic.
2724 # If the default for a toolchain is to use GNU as and ld, and you don't
2725 # want to do that, then you should use the --without-gnu-as and
2726 # --without-gnu-ld options for the configure script.
2728 if test x${use_gnu_as} = x &&
2729 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2730 with_gnu_as=yes
2731 extra_host_args="$extra_host_args --with-gnu-as"
2734 if test x${use_gnu_ld} = x &&
2735 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2736 with_gnu_ld=yes
2737 extra_host_args="$extra_host_args --with-gnu-ld"
2740 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2741 # can detect this case.
2743 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2744 with_newlib=yes
2745 extra_host_args="$extra_host_args --with-newlib"
2748 if test x${with_libbanshee} = xyes && echo " ${configdirs} " | grep " libbanshee " >/dev/null 2>&1; then
2749 extra_host_args="$extra_host_args --with-libbanshee"
2752 # Default to using --with-stabs for certain targets.
2753 if test x${with_stabs} = x ; then
2754 case "${target}" in
2755 mips*-*-irix[56]*)
2757 mips*-*-* | alpha*-*-osf*)
2758 with_stabs=yes;
2759 extra_host_args="${extra_host_args} --with-stabs"
2761 esac
2764 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2765 # them automatically.
2766 case "${host}" in
2767 hppa*64*-*-hpux11*)
2768 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2770 esac
2772 # Some systems (e.g., one of the i386-aix systems the gas testers are
2773 # using) don't handle "\$" correctly, so don't use it here.
2774 tooldir='${exec_prefix}'/${target_alias}
2775 build_tooldir=${tooldir}
2777 # Generate default definitions for YACC, M4, LEX. These are used if the
2778 # Makefile can't locate these programs in objdir.
2779 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2780 for ac_prog in 'bison -y' byacc yacc
2782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2783 set dummy $ac_prog; ac_word=$2
2784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2785 echo "configure:2786: checking for $ac_word" >&5
2786 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_YACC'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2788 else
2789 if test -n "$DEFAULT_YACC"; then
2790 ac_cv_prog_DEFAULT_YACC="$DEFAULT_YACC" # Let the user override the test.
2791 else
2792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2793 ac_dummy="$PATH"
2794 for ac_dir in $ac_dummy; do
2795 test -z "$ac_dir" && ac_dir=.
2796 if test -f $ac_dir/$ac_word; then
2797 ac_cv_prog_DEFAULT_YACC="$ac_prog"
2798 break
2800 done
2801 IFS="$ac_save_ifs"
2804 DEFAULT_YACC="$ac_cv_prog_DEFAULT_YACC"
2805 if test -n "$DEFAULT_YACC"; then
2806 echo "$ac_t""$DEFAULT_YACC" 1>&6
2807 else
2808 echo "$ac_t""no" 1>&6
2811 test -n "$DEFAULT_YACC" && break
2812 done
2813 test -n "$DEFAULT_YACC" || DEFAULT_YACC="$MISSING bison"
2815 for ac_prog in gm4 gnum4 m4
2817 # Extract the first word of "$ac_prog", so it can be a program name with args.
2818 set dummy $ac_prog; ac_word=$2
2819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2820 echo "configure:2821: checking for $ac_word" >&5
2821 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_M4'+set}'`\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2823 else
2824 if test -n "$DEFAULT_M4"; then
2825 ac_cv_prog_DEFAULT_M4="$DEFAULT_M4" # Let the user override the test.
2826 else
2827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2828 ac_dummy="$PATH"
2829 for ac_dir in $ac_dummy; do
2830 test -z "$ac_dir" && ac_dir=.
2831 if test -f $ac_dir/$ac_word; then
2832 ac_cv_prog_DEFAULT_M4="$ac_prog"
2833 break
2835 done
2836 IFS="$ac_save_ifs"
2839 DEFAULT_M4="$ac_cv_prog_DEFAULT_M4"
2840 if test -n "$DEFAULT_M4"; then
2841 echo "$ac_t""$DEFAULT_M4" 1>&6
2842 else
2843 echo "$ac_t""no" 1>&6
2846 test -n "$DEFAULT_M4" && break
2847 done
2848 test -n "$DEFAULT_M4" || DEFAULT_M4="$MISSING m4"
2850 for ac_prog in flex lex
2852 # Extract the first word of "$ac_prog", so it can be a program name with args.
2853 set dummy $ac_prog; ac_word=$2
2854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2855 echo "configure:2856: checking for $ac_word" >&5
2856 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_LEX'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2858 else
2859 if test -n "$DEFAULT_LEX"; then
2860 ac_cv_prog_DEFAULT_LEX="$DEFAULT_LEX" # Let the user override the test.
2861 else
2862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2863 ac_dummy="$PATH"
2864 for ac_dir in $ac_dummy; do
2865 test -z "$ac_dir" && ac_dir=.
2866 if test -f $ac_dir/$ac_word; then
2867 ac_cv_prog_DEFAULT_LEX="$ac_prog"
2868 break
2870 done
2871 IFS="$ac_save_ifs"
2874 DEFAULT_LEX="$ac_cv_prog_DEFAULT_LEX"
2875 if test -n "$DEFAULT_LEX"; then
2876 echo "$ac_t""$DEFAULT_LEX" 1>&6
2877 else
2878 echo "$ac_t""no" 1>&6
2881 test -n "$DEFAULT_LEX" && break
2882 done
2883 test -n "$DEFAULT_LEX" || DEFAULT_LEX="$MISSING flex"
2886 # Create a .gdbinit file which runs the one in srcdir
2887 # and tells GDB to look there for source files.
2889 if test -r ${srcdir}/.gdbinit ; then
2890 case ${srcdir} in
2891 .) ;;
2892 *) cat > ./.gdbinit <<EOF
2893 # ${NO_EDIT}
2894 dir ${srcdir}
2895 dir .
2896 source ${srcdir}/.gdbinit
2899 esac
2902 # Make sure that the compiler is able to generate an executable. If it
2903 # can't, we are probably in trouble. We don't care whether we can run the
2904 # executable--we might be using a cross compiler--we only care whether it
2905 # can be created. At this point the main configure script has set CC.
2906 we_are_ok=no
2907 echo "int main () { return 0; }" > conftest.c
2908 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2909 if test $? = 0 ; then
2910 if test -s conftest || test -s conftest.exe ; then
2911 we_are_ok=yes
2914 case $we_are_ok in
2916 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2917 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2918 rm -f conftest*
2919 exit 1
2921 esac
2922 rm -f conftest*
2924 # The Solaris /usr/ucb/cc compiler does not appear to work.
2925 case "${host}" in
2926 sparc-sun-solaris2*)
2927 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2928 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2929 could_use=
2930 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2931 if test -d /opt/cygnus/bin ; then
2932 if test "$could_use" = "" ; then
2933 could_use="/opt/cygnus/bin"
2934 else
2935 could_use="$could_use or /opt/cygnus/bin"
2938 if test "$could_use" = "" ; then
2939 echo "Warning: compilation may fail because you're using"
2940 echo "/usr/ucb/cc. You should change your PATH or CC "
2941 echo "variable and rerun configure."
2942 else
2943 echo "Warning: compilation may fail because you're using"
2944 echo "/usr/ucb/cc, when you should use the C compiler from"
2945 echo "$could_use. You should change your"
2946 echo "PATH or CC variable and rerun configure."
2950 esac
2952 # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
2953 # binutils tools will find libbfd.so.
2954 case "${enable_shared}" in
2955 no | "") SET_LIB_PATH= ;;
2956 *) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;;
2957 esac
2959 case "${host}" in
2960 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2961 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2962 esac
2964 # Record target_configdirs and the configure arguments for target and
2965 # build configuration in Makefile.
2966 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2968 # This is the final value for target_configdirs. configdirs already
2969 # has its final value, as does build_modules. It's time to create some
2970 # lists of valid targets.
2972 all_build_modules=
2973 configure_build_modules=
2974 for module in ${build_modules} ; do
2975 all_build_modules=all-build-${module}
2976 configure_build_modules=configure-build-${module}
2977 done
2979 # Determine whether gdb needs tk/tcl or not.
2980 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2981 # and in that case we want gdb to be built without tk. Ugh!
2982 # In fact I believe gdb is the *only* package directly dependent on tk,
2983 # so we should be able to put the 'maybe's in unconditionally and
2984 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2985 # 100% sure that that's safe though.
2987 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui"
2988 case "$enable_gdbtk" in
2990 GDB_TK="" ;;
2991 yes)
2992 GDB_TK="${gdb_tk}" ;;
2994 # Only add the dependency on gdbtk when GDBtk is part of the gdb
2995 # distro. Eventually someone will fix this and move Insight, nee
2996 # gdbtk to a separate directory.
2997 if test -d ${srcdir}/gdb/gdbtk ; then
2998 GDB_TK="${gdb_tk}"
2999 else
3000 GDB_TK=""
3003 esac
3005 # Strip out unwanted targets.
3007 # While at that, we remove Makefiles if we were started for recursive
3008 # configuration, so that the top-level Makefile reconfigures them,
3009 # like we used to do when configure itself was recursive.
3011 # Loop over modules. $extrasub must be used with care, limiting as
3012 # much as possible the usage of range addresses. That's because autoconf
3013 # splits the sed script to overcome limits in the number of commands,
3014 # and relying on carefully-timed sed passes may turn out to be very hard
3015 # to maintain later. In this particular case, you just have to be careful
3016 # not to nest @if/@endif pairs, because configure will not warn you at all.
3018 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3019 if test "${enable_bootstrap+set}" = set; then
3020 enableval="$enable_bootstrap"
3022 else
3023 enable_bootstrap=no
3026 if test -d ${srcdir}/gcc; then
3027 case "$host:$target:$enable_bootstrap" in
3028 $build:$build:yes | *:no) ;;
3029 *:yes) { echo "configure: error: cannot bootstrap a cross-compiler" 1>&2; exit 1; } ;;
3030 *) { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; } ;;
3031 esac
3032 else
3033 if test $enable_bootstrap = yes; then
3034 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; }
3038 case "$enable_bootstrap" in
3039 yes)
3040 default_target=bootstrap
3041 bootstrap_suffix=bootstrap ;;
3043 default_target=all
3044 bootstrap_suffix=no-bootstrap ;;
3045 esac
3048 for module in ${build_modules} ; do
3049 if test -z "${no_recursion}" \
3050 && test -f ${build_subdir}/${module}/Makefile; then
3051 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3052 rm -f ${build_subdir}/${module}/Makefile
3054 extrasub="$extrasub
3055 /^@if build-$module\$/d
3056 /^@endif build-$module\$/d
3057 /^@if build-$module-$bootstrap_suffix\$/d
3058 /^@endif build-$module-$bootstrap_suffix\$/d"
3059 done
3060 for module in ${configdirs} ; do
3061 if test -z "${no_recursion}" \
3062 && test -f ${module}/Makefile; then
3063 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3064 rm -f ${module}/Makefile
3066 extrasub="$extrasub
3067 /^@if $module\$/d
3068 /^@endif $module\$/d
3069 /^@if $module-$bootstrap_suffix\$/d
3070 /^@endif $module-$bootstrap_suffix\$/d"
3071 done
3072 for module in ${target_configdirs} ; do
3073 if test -z "${no_recursion}" \
3074 && test -f ${target_subdir}/${module}/Makefile; then
3075 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3076 rm -f ${target_subdir}/${module}/Makefile
3078 extrasub="$extrasub
3079 /^@if target-$module\$/d
3080 /^@endif target-$module\$/d
3081 /^@if target-$module-$bootstrap_suffix\$/d
3082 /^@endif target-$module-$bootstrap_suffix\$/d"
3083 done
3085 extrasub="$extrasub
3086 /^@if /,/^@endif /d"
3088 # Create the serialization dependencies. This uses a temporary file.
3090 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3091 if test "${enable_serial_configure+set}" = set; then
3092 enableval="$enable_serial_configure"
3097 case ${enable_serial_configure} in
3098 yes)
3099 enable_serial_build_configure=yes
3100 enable_serial_host_configure=yes
3101 enable_serial_target_configure=yes
3103 esac
3105 # These force 'configure's to be done one at a time, to avoid problems
3106 # with contention over a shared config.cache.
3107 rm -f serdep.tmp
3108 echo '# serdep.tmp' > serdep.tmp
3109 olditem=
3110 test "x${enable_serial_build_configure}" = xyes &&
3111 for item in ${build_configdirs} ; do
3112 case ${olditem} in
3113 "") ;;
3114 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3115 esac
3116 olditem=${item}
3117 done
3118 olditem=
3119 test "x${enable_serial_host_configure}" = xyes &&
3120 for item in ${configdirs} ; do
3121 case ${olditem} in
3122 "") ;;
3123 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3124 esac
3125 olditem=${item}
3126 done
3127 olditem=
3128 test "x${enable_serial_target_configure}" = xyes &&
3129 for item in ${target_configdirs} ; do
3130 case ${olditem} in
3131 "") ;;
3132 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3133 esac
3134 olditem=${item}
3135 done
3136 serialization_dependencies=serdep.tmp
3139 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3140 # target and nonopt. These are the ones we might not want to pass
3141 # down to subconfigures. Also strip program-prefix, program-suffix,
3142 # and program-transform-name, so that we can pass down a consistent
3143 # program-transform-name. If autoconf has put single quotes around
3144 # any of these arguments (because they contain shell metacharacters)
3145 # then this will fail; in practice this only happens for
3146 # --program-transform-name, so be sure to override --program-transform-name
3147 # at the end of the argument list.
3148 # These will be expanded by make, so quote '$'.
3149 cat <<\EOF_SED > conftestsed
3150 s/ --no[^ ]*/ /g
3151 s/ --c[a-z-]*[= ][^ ]*//g
3152 s/ --sr[a-z-]*[= ][^ ]*//g
3153 s/ --ho[a-z-]*[= ][^ ]*//g
3154 s/ --bu[a-z-]*[= ][^ ]*//g
3155 s/ --t[a-z-]*[= ][^ ]*//g
3156 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3157 s/ -cache-file[= ][^ ]*//g
3158 s/ -srcdir[= ][^ ]*//g
3159 s/ -host[= ][^ ]*//g
3160 s/ -build[= ][^ ]*//g
3161 s/ -target[= ][^ ]*//g
3162 s/ -program-prefix[= ][^ ]*//g
3163 s/ -program-suffix[= ][^ ]*//g
3164 s/ -program-transform-name[= ][^ ]*//g
3165 s/ [^' -][^ ]* / /
3166 s/^ *//;s/ *$//
3167 s,\$,$$,g
3168 EOF_SED
3169 sed -f conftestsed <<EOF_SED > conftestsed.out
3170 ${ac_configure_args}
3171 EOF_SED
3172 baseargs=`cat conftestsed.out`
3173 rm -f conftestsed conftestsed.out
3175 # Add in --program-transform-name, after --program-prefix and
3176 # --program-suffix have been applied to it. Autoconf has already
3177 # doubled dollar signs and backslashes in program_transform_name; we want
3178 # the backslashes un-doubled, and then the entire thing wrapped in single
3179 # quotes, because this will be expanded first by make and then by the shell.
3180 # Also, because we want to override the logic in subdir configure scripts to
3181 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3182 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3183 ${program_transform_name}
3184 EOF_SED
3185 gcc_transform_name=`cat conftestsed.out`
3186 rm -f conftestsed.out
3187 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3189 # For the build-side libraries, we just need to pretend we're native,
3190 # and not use the same cache file. Multilibs are neither needed nor
3191 # desired.
3192 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
3194 # For host modules, accept cache file option, or specification as blank.
3195 case "${cache_file}" in
3196 "") # empty
3197 cache_file_option="" ;;
3198 /* | [A-Za-z]:[\\/]* ) # absolute path
3199 cache_file_option="--cache-file=${cache_file}" ;;
3200 *) # relative path
3201 cache_file_option="--cache-file=../${cache_file}" ;;
3202 esac
3204 # Host dirs don't like to share a cache file either, horribly enough.
3205 # This seems to be due to autoconf 2.5x stupidity.
3206 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3208 target_configargs=${baseargs}
3210 # Passing a --with-cross-host argument lets the target libraries know
3211 # whether they are being built with a cross-compiler or being built
3212 # native. However, it would be better to use other mechanisms to make the
3213 # sorts of decisions they want to make on this basis. Please consider
3214 # this option to be deprecated. FIXME.
3215 if test x${is_cross_compiler} = xyes ; then
3216 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3219 # Default to --enable-multilib.
3220 if test x${enable_multilib} = x ; then
3221 target_configargs="--enable-multilib ${target_configargs}"
3224 # Pass --with-newlib if appropriate. Note that target_configdirs has
3225 # changed from the earlier setting of with_newlib.
3226 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3227 target_configargs="--with-newlib ${target_configargs}"
3230 # Different target subdirs use different values of certain variables
3231 # (notably CXX). Worse, multilibs use *lots* of different values.
3232 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3233 # it doesn't automatically accept command-line overrides of them.
3234 # This means it's not safe for target subdirs to share a cache file,
3235 # which is disgusting, but there you have it. Hopefully this can be
3236 # fixed in future. It's still worthwhile to use a cache file for each
3237 # directory. I think.
3239 # Pass the appropriate --host, --build, and --cache-file arguments.
3240 target_configargs="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}"
3242 # provide a proper gxx_include_dir.
3243 # Note, if you change the default, make sure to fix both here and in
3244 # the gcc and libstdc++-v3 subdirectories.
3245 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
3246 case "${with_gxx_include_dir}" in
3247 yes)
3248 { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; }
3250 no | "")
3251 case "${enable_version_specific_runtime_libs}" in
3252 yes) gxx_include_dir='${libsubdir}/include/c++' ;;
3254 . ${srcdir}/config.if
3255 gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;;
3256 esac ;;
3257 *) gxx_include_dir=${with_gxx_include_dir} ;;
3258 esac
3260 FLAGS_FOR_TARGET=
3261 case " $target_configdirs " in
3262 *" newlib "*)
3263 case " $target_configargs " in
3264 *" --with-newlib "*)
3265 case "$target" in
3266 *-cygwin*)
3267 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' ;;
3268 esac
3270 # If we're not building GCC, don't discard standard headers.
3271 if test -d ${srcdir}/gcc; then
3272 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3274 if test "${build}" != "${host}"; then
3275 # On Canadian crosses, CC_FOR_TARGET will have already been set
3276 # by `configure', so we won't have an opportunity to add -Bgcc/
3277 # to it. This is right: we don't want to search that directory
3278 # for binaries, but we want the header files in there, so add
3279 # them explicitly.
3280 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
3282 # Someone might think of using the pre-installed headers on
3283 # Canadian crosses, in case the installed compiler is not fully
3284 # compatible with the compiler being built. In this case, it
3285 # would be better to flag an error than risking having
3286 # incompatible object files being constructed. We can't
3287 # guarantee that an error will be flagged, but let's hope the
3288 # compiler will do it, when presented with incompatible header
3289 # files.
3293 case "${target}-${is_cross_compiler}" in
3294 i[3456789]86-*-linux*-no)
3295 # Here host == target, so we don't need to build gcc,
3296 # so we don't want to discard standard headers.
3297 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3300 # If we're building newlib, use its generic headers last, but search
3301 # for any libc-related directories first (so make it the last -B
3302 # switch).
3303 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3305 esac
3307 esac
3309 esac
3311 # Allow the user to override the flags for
3312 # our build compiler if desired.
3313 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3315 # On Canadian crosses, we'll be searching the right directories for
3316 # the previously-installed cross compiler, so don't bother to add
3317 # flags for directories within the install tree of the compiler
3318 # being built; programs in there won't even run.
3319 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3320 # Search for pre-installed headers if nothing else fits.
3321 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3324 if test "x${use_gnu_ld}" = x &&
3325 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3326 # Arrange for us to find uninstalled linker scripts.
3327 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
3330 if test "x${CC_FOR_TARGET+set}" = xset; then
3332 elif test -d ${srcdir}/gcc; then
3333 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
3334 elif test "$host" = "$target"; then
3335 CC_FOR_TARGET='$(CC)'
3336 else
3337 CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"`
3339 CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3341 if test "x${GCJ_FOR_TARGET+set}" = xset; then
3343 elif test -d ${srcdir}/gcc; then
3344 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
3345 elif test "$host" = "$target"; then
3346 GCJ_FOR_TARGET='gcj'
3347 else
3348 GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"`
3350 GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3352 if test "x${GFORTRAN_FOR_TARGET+set}" = xset; then
3354 elif test -d ${srcdir}/gcc; then
3355 GFORTRAN_FOR_TARGET='$$r/gcc/gfortran -B$$r/gcc/'
3356 elif test "$host" = "$target"; then
3357 GFORTRAN_FOR_TARGET='gfortran'
3358 else
3359 GFORTRAN_FOR_TARGET=`echo gfortran | sed "${program_transform_name}"`
3361 case $GFORTRAN_FOR_TARGET in
3362 *' $(FLAGS_FOR_TARGET)') ;;
3363 *) GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET' $(FLAGS_FOR_TARGET)' ;;
3364 esac
3366 # Don't use libstdc++-v3's flags to configure/build itself.
3367 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'
3368 raw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
3370 if test "x${CXX_FOR_TARGET+set}" = xset; then
3371 if test "x${RAW_CXX_FOR_TARGET+set}" != xset; then
3372 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3374 elif test -d ${srcdir}/gcc; then
3375 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
3376 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
3377 # default whereas gcc does not.
3378 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
3379 # all other cases.
3380 CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
3381 RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags
3382 elif test "$host" = "$target"; then
3383 CXX_FOR_TARGET='$(CXX)'
3384 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3385 else
3386 CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"`
3387 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3389 CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3390 RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3392 qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3393 qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3395 # We want to defer the evaluation of `cmd`s and shell variables in
3396 # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
3397 # bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
3398 # quotes, but we still have to duplicate `$'s so that shell variables
3399 # can be expanded by the nested make as shell variables, not as make
3400 # macros.
3401 qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3402 qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3404 # Wrap CC_FOR_TARGET and friends, for certain types of builds.
3405 CC_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}"
3406 GCJ_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}"
3407 GFORTRAN_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GFORTRAN_FOR_TARGET}"
3408 CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}"
3409 RAW_CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}"
3410 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}"
3411 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}"
3413 # Makefile fragments.
3414 host_makefile_frag=${srcdir}/${host_makefile_frag}
3415 target_makefile_frag=${srcdir}/${target_makefile_frag}
3416 alphaieee_frag=${srcdir}/${alphaieee_frag}
3417 ospace_frag=${srcdir}/${ospace_frag}
3423 # Miscellanea: directories, flags, etc.
3436 # Build module lists & subconfigure args.
3441 # Host module lists & subconfigure args.
3445 # Target module lists & subconfigure args.
3449 # Build tools.
3457 # Host tools.
3458 ncn_tool_prefix=
3459 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3460 ncn_target_tool_prefix=
3461 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3463 if test -n "$ncn_tool_prefix"; then
3464 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
3465 set dummy ${ncn_tool_prefix}ar; ac_word=$2
3466 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3467 echo "configure:3468: checking for $ac_word" >&5
3468 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3470 else
3471 if test -n "$AR"; then
3472 ac_cv_prog_AR="$AR" # Let the user override the test.
3473 else
3474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3475 ac_dummy="$PATH"
3476 for ac_dir in $ac_dummy; do
3477 test -z "$ac_dir" && ac_dir=.
3478 if test -f $ac_dir/$ac_word; then
3479 ac_cv_prog_AR="${ncn_tool_prefix}ar"
3480 break
3482 done
3483 IFS="$ac_save_ifs"
3486 AR="$ac_cv_prog_AR"
3487 if test -n "$AR"; then
3488 echo "$ac_t""$AR" 1>&6
3489 else
3490 echo "$ac_t""no" 1>&6
3494 if test -z "$ac_cv_prog_AR" ; then
3495 if test $build = $host ; then
3496 ncn_cv_AR=$AR
3497 # Extract the first word of "ar", so it can be a program name with args.
3498 set dummy ar; ac_word=$2
3499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3500 echo "configure:3501: checking for $ac_word" >&5
3501 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3503 else
3504 if test -n "$ncn_cv_AR"; then
3505 ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test.
3506 else
3507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3508 ac_dummy="$PATH"
3509 for ac_dir in $ac_dummy; do
3510 test -z "$ac_dir" && ac_dir=.
3511 if test -f $ac_dir/$ac_word; then
3512 ac_cv_prog_ncn_cv_AR="ar"
3513 break
3515 done
3516 IFS="$ac_save_ifs"
3517 test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar"
3520 ncn_cv_AR="$ac_cv_prog_ncn_cv_AR"
3521 if test -n "$ncn_cv_AR"; then
3522 echo "$ac_t""$ncn_cv_AR" 1>&6
3523 else
3524 echo "$ac_t""no" 1>&6
3527 AR=$ncn_cv_AR
3528 else
3529 AR="${ncn_tool_prefix}ar"
3531 else
3532 AR="$ac_cv_prog_AR"
3535 if test -n "$ncn_tool_prefix"; then
3536 # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args.
3537 set dummy ${ncn_tool_prefix}as; ac_word=$2
3538 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3539 echo "configure:3540: checking for $ac_word" >&5
3540 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3542 else
3543 if test -n "$AS"; then
3544 ac_cv_prog_AS="$AS" # Let the user override the test.
3545 else
3546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3547 ac_dummy="$PATH"
3548 for ac_dir in $ac_dummy; do
3549 test -z "$ac_dir" && ac_dir=.
3550 if test -f $ac_dir/$ac_word; then
3551 ac_cv_prog_AS="${ncn_tool_prefix}as"
3552 break
3554 done
3555 IFS="$ac_save_ifs"
3558 AS="$ac_cv_prog_AS"
3559 if test -n "$AS"; then
3560 echo "$ac_t""$AS" 1>&6
3561 else
3562 echo "$ac_t""no" 1>&6
3566 if test -z "$ac_cv_prog_AS" ; then
3567 if test $build = $host ; then
3568 ncn_cv_AS=$AS
3569 # Extract the first word of "as", so it can be a program name with args.
3570 set dummy as; ac_word=$2
3571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3572 echo "configure:3573: checking for $ac_word" >&5
3573 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
3574 echo $ac_n "(cached) $ac_c" 1>&6
3575 else
3576 if test -n "$ncn_cv_AS"; then
3577 ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test.
3578 else
3579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3580 ac_dummy="$PATH"
3581 for ac_dir in $ac_dummy; do
3582 test -z "$ac_dir" && ac_dir=.
3583 if test -f $ac_dir/$ac_word; then
3584 ac_cv_prog_ncn_cv_AS="as"
3585 break
3587 done
3588 IFS="$ac_save_ifs"
3589 test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as"
3592 ncn_cv_AS="$ac_cv_prog_ncn_cv_AS"
3593 if test -n "$ncn_cv_AS"; then
3594 echo "$ac_t""$ncn_cv_AS" 1>&6
3595 else
3596 echo "$ac_t""no" 1>&6
3599 AS=$ncn_cv_AS
3600 else
3601 AS="${ncn_tool_prefix}as"
3603 else
3604 AS="$ac_cv_prog_AS"
3607 if test -n "$ncn_tool_prefix"; then
3608 # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args.
3609 set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
3610 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3611 echo "configure:3612: checking for $ac_word" >&5
3612 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3613 echo $ac_n "(cached) $ac_c" 1>&6
3614 else
3615 if test -n "$DLLTOOL"; then
3616 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3617 else
3618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3619 ac_dummy="$PATH"
3620 for ac_dir in $ac_dummy; do
3621 test -z "$ac_dir" && ac_dir=.
3622 if test -f $ac_dir/$ac_word; then
3623 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool"
3624 break
3626 done
3627 IFS="$ac_save_ifs"
3630 DLLTOOL="$ac_cv_prog_DLLTOOL"
3631 if test -n "$DLLTOOL"; then
3632 echo "$ac_t""$DLLTOOL" 1>&6
3633 else
3634 echo "$ac_t""no" 1>&6
3638 if test -z "$ac_cv_prog_DLLTOOL" ; then
3639 if test $build = $host ; then
3640 ncn_cv_DLLTOOL=$DLLTOOL
3641 # Extract the first word of "dlltool", so it can be a program name with args.
3642 set dummy dlltool; ac_word=$2
3643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3644 echo "configure:3645: checking for $ac_word" >&5
3645 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
3646 echo $ac_n "(cached) $ac_c" 1>&6
3647 else
3648 if test -n "$ncn_cv_DLLTOOL"; then
3649 ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test.
3650 else
3651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3652 ac_dummy="$PATH"
3653 for ac_dir in $ac_dummy; do
3654 test -z "$ac_dir" && ac_dir=.
3655 if test -f $ac_dir/$ac_word; then
3656 ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
3657 break
3659 done
3660 IFS="$ac_save_ifs"
3661 test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
3664 ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL"
3665 if test -n "$ncn_cv_DLLTOOL"; then
3666 echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6
3667 else
3668 echo "$ac_t""no" 1>&6
3671 DLLTOOL=$ncn_cv_DLLTOOL
3672 else
3673 DLLTOOL="${ncn_tool_prefix}dlltool"
3675 else
3676 DLLTOOL="$ac_cv_prog_DLLTOOL"
3679 if test -n "$ncn_tool_prefix"; then
3680 # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args.
3681 set dummy ${ncn_tool_prefix}ld; ac_word=$2
3682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3683 echo "configure:3684: checking for $ac_word" >&5
3684 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3686 else
3687 if test -n "$LD"; then
3688 ac_cv_prog_LD="$LD" # Let the user override the test.
3689 else
3690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3691 ac_dummy="$PATH"
3692 for ac_dir in $ac_dummy; do
3693 test -z "$ac_dir" && ac_dir=.
3694 if test -f $ac_dir/$ac_word; then
3695 ac_cv_prog_LD="${ncn_tool_prefix}ld"
3696 break
3698 done
3699 IFS="$ac_save_ifs"
3702 LD="$ac_cv_prog_LD"
3703 if test -n "$LD"; then
3704 echo "$ac_t""$LD" 1>&6
3705 else
3706 echo "$ac_t""no" 1>&6
3710 if test -z "$ac_cv_prog_LD" ; then
3711 if test $build = $host ; then
3712 ncn_cv_LD=$LD
3713 # Extract the first word of "ld", so it can be a program name with args.
3714 set dummy ld; ac_word=$2
3715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3716 echo "configure:3717: checking for $ac_word" >&5
3717 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
3718 echo $ac_n "(cached) $ac_c" 1>&6
3719 else
3720 if test -n "$ncn_cv_LD"; then
3721 ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test.
3722 else
3723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3724 ac_dummy="$PATH"
3725 for ac_dir in $ac_dummy; do
3726 test -z "$ac_dir" && ac_dir=.
3727 if test -f $ac_dir/$ac_word; then
3728 ac_cv_prog_ncn_cv_LD="ld"
3729 break
3731 done
3732 IFS="$ac_save_ifs"
3733 test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld"
3736 ncn_cv_LD="$ac_cv_prog_ncn_cv_LD"
3737 if test -n "$ncn_cv_LD"; then
3738 echo "$ac_t""$ncn_cv_LD" 1>&6
3739 else
3740 echo "$ac_t""no" 1>&6
3743 LD=$ncn_cv_LD
3744 else
3745 LD="${ncn_tool_prefix}ld"
3747 else
3748 LD="$ac_cv_prog_LD"
3751 if test -n "$ncn_tool_prefix"; then
3752 # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args.
3753 set dummy ${ncn_tool_prefix}nm; ac_word=$2
3754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3755 echo "configure:3756: checking for $ac_word" >&5
3756 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3757 echo $ac_n "(cached) $ac_c" 1>&6
3758 else
3759 if test -n "$NM"; then
3760 ac_cv_prog_NM="$NM" # Let the user override the test.
3761 else
3762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3763 ac_dummy="$PATH"
3764 for ac_dir in $ac_dummy; do
3765 test -z "$ac_dir" && ac_dir=.
3766 if test -f $ac_dir/$ac_word; then
3767 ac_cv_prog_NM="${ncn_tool_prefix}nm"
3768 break
3770 done
3771 IFS="$ac_save_ifs"
3774 NM="$ac_cv_prog_NM"
3775 if test -n "$NM"; then
3776 echo "$ac_t""$NM" 1>&6
3777 else
3778 echo "$ac_t""no" 1>&6
3782 if test -z "$ac_cv_prog_NM" ; then
3783 if test $build = $host ; then
3784 ncn_cv_NM=$NM
3785 # Extract the first word of "nm", so it can be a program name with args.
3786 set dummy nm; ac_word=$2
3787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3788 echo "configure:3789: checking for $ac_word" >&5
3789 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
3790 echo $ac_n "(cached) $ac_c" 1>&6
3791 else
3792 if test -n "$ncn_cv_NM"; then
3793 ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test.
3794 else
3795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3796 ac_dummy="$PATH"
3797 for ac_dir in $ac_dummy; do
3798 test -z "$ac_dir" && ac_dir=.
3799 if test -f $ac_dir/$ac_word; then
3800 ac_cv_prog_ncn_cv_NM="nm"
3801 break
3803 done
3804 IFS="$ac_save_ifs"
3805 test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm"
3808 ncn_cv_NM="$ac_cv_prog_ncn_cv_NM"
3809 if test -n "$ncn_cv_NM"; then
3810 echo "$ac_t""$ncn_cv_NM" 1>&6
3811 else
3812 echo "$ac_t""no" 1>&6
3815 NM=$ncn_cv_NM
3816 else
3817 NM="${ncn_tool_prefix}nm"
3819 else
3820 NM="$ac_cv_prog_NM"
3823 if test -n "$ncn_tool_prefix"; then
3824 # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args.
3825 set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3827 echo "configure:3828: checking for $ac_word" >&5
3828 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3830 else
3831 if test -n "$RANLIB"; then
3832 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3833 else
3834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3835 ac_dummy="$PATH"
3836 for ac_dir in $ac_dummy; do
3837 test -z "$ac_dir" && ac_dir=.
3838 if test -f $ac_dir/$ac_word; then
3839 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib"
3840 break
3842 done
3843 IFS="$ac_save_ifs"
3846 RANLIB="$ac_cv_prog_RANLIB"
3847 if test -n "$RANLIB"; then
3848 echo "$ac_t""$RANLIB" 1>&6
3849 else
3850 echo "$ac_t""no" 1>&6
3854 if test -z "$ac_cv_prog_RANLIB" ; then
3855 if test $build = $host ; then
3856 ncn_cv_RANLIB=$RANLIB
3857 # Extract the first word of "ranlib", so it can be a program name with args.
3858 set dummy ranlib; ac_word=$2
3859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3860 echo "configure:3861: checking for $ac_word" >&5
3861 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
3862 echo $ac_n "(cached) $ac_c" 1>&6
3863 else
3864 if test -n "$ncn_cv_RANLIB"; then
3865 ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test.
3866 else
3867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3868 ac_dummy="$PATH"
3869 for ac_dir in $ac_dummy; do
3870 test -z "$ac_dir" && ac_dir=.
3871 if test -f $ac_dir/$ac_word; then
3872 ac_cv_prog_ncn_cv_RANLIB="ranlib"
3873 break
3875 done
3876 IFS="$ac_save_ifs"
3877 test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":"
3880 ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB"
3881 if test -n "$ncn_cv_RANLIB"; then
3882 echo "$ac_t""$ncn_cv_RANLIB" 1>&6
3883 else
3884 echo "$ac_t""no" 1>&6
3887 RANLIB=$ncn_cv_RANLIB
3888 else
3889 RANLIB=":"
3891 else
3892 RANLIB="$ac_cv_prog_RANLIB"
3895 if test -n "$ncn_tool_prefix"; then
3896 # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args.
3897 set dummy ${ncn_tool_prefix}windres; ac_word=$2
3898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3899 echo "configure:3900: checking for $ac_word" >&5
3900 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3901 echo $ac_n "(cached) $ac_c" 1>&6
3902 else
3903 if test -n "$WINDRES"; then
3904 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3905 else
3906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3907 ac_dummy="$PATH"
3908 for ac_dir in $ac_dummy; do
3909 test -z "$ac_dir" && ac_dir=.
3910 if test -f $ac_dir/$ac_word; then
3911 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres"
3912 break
3914 done
3915 IFS="$ac_save_ifs"
3918 WINDRES="$ac_cv_prog_WINDRES"
3919 if test -n "$WINDRES"; then
3920 echo "$ac_t""$WINDRES" 1>&6
3921 else
3922 echo "$ac_t""no" 1>&6
3926 if test -z "$ac_cv_prog_WINDRES" ; then
3927 if test $build = $host ; then
3928 ncn_cv_WINDRES=$WINDRES
3929 # Extract the first word of "windres", so it can be a program name with args.
3930 set dummy windres; ac_word=$2
3931 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3932 echo "configure:3933: checking for $ac_word" >&5
3933 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3935 else
3936 if test -n "$ncn_cv_WINDRES"; then
3937 ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test.
3938 else
3939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3940 ac_dummy="$PATH"
3941 for ac_dir in $ac_dummy; do
3942 test -z "$ac_dir" && ac_dir=.
3943 if test -f $ac_dir/$ac_word; then
3944 ac_cv_prog_ncn_cv_WINDRES="windres"
3945 break
3947 done
3948 IFS="$ac_save_ifs"
3949 test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres"
3952 ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES"
3953 if test -n "$ncn_cv_WINDRES"; then
3954 echo "$ac_t""$ncn_cv_WINDRES" 1>&6
3955 else
3956 echo "$ac_t""no" 1>&6
3959 WINDRES=$ncn_cv_WINDRES
3960 else
3961 WINDRES="${ncn_tool_prefix}windres"
3963 else
3964 WINDRES="$ac_cv_prog_WINDRES"
3967 if test -n "$ncn_tool_prefix"; then
3968 # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args.
3969 set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
3970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3971 echo "configure:3972: checking for $ac_word" >&5
3972 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
3973 echo $ac_n "(cached) $ac_c" 1>&6
3974 else
3975 if test -n "$OBJCOPY"; then
3976 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
3977 else
3978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3979 ac_dummy="$PATH"
3980 for ac_dir in $ac_dummy; do
3981 test -z "$ac_dir" && ac_dir=.
3982 if test -f $ac_dir/$ac_word; then
3983 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy"
3984 break
3986 done
3987 IFS="$ac_save_ifs"
3990 OBJCOPY="$ac_cv_prog_OBJCOPY"
3991 if test -n "$OBJCOPY"; then
3992 echo "$ac_t""$OBJCOPY" 1>&6
3993 else
3994 echo "$ac_t""no" 1>&6
3998 if test -z "$ac_cv_prog_OBJCOPY" ; then
3999 if test $build = $host ; then
4000 ncn_cv_OBJCOPY=$OBJCOPY
4001 # Extract the first word of "objcopy", so it can be a program name with args.
4002 set dummy objcopy; ac_word=$2
4003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4004 echo "configure:4005: checking for $ac_word" >&5
4005 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
4006 echo $ac_n "(cached) $ac_c" 1>&6
4007 else
4008 if test -n "$ncn_cv_OBJCOPY"; then
4009 ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test.
4010 else
4011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4012 ac_dummy="$PATH"
4013 for ac_dir in $ac_dummy; do
4014 test -z "$ac_dir" && ac_dir=.
4015 if test -f $ac_dir/$ac_word; then
4016 ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
4017 break
4019 done
4020 IFS="$ac_save_ifs"
4021 test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
4024 ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY"
4025 if test -n "$ncn_cv_OBJCOPY"; then
4026 echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6
4027 else
4028 echo "$ac_t""no" 1>&6
4031 OBJCOPY=$ncn_cv_OBJCOPY
4032 else
4033 OBJCOPY="${ncn_tool_prefix}objcopy"
4035 else
4036 OBJCOPY="$ac_cv_prog_OBJCOPY"
4039 if test -n "$ncn_tool_prefix"; then
4040 # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args.
4041 set dummy ${ncn_tool_prefix}objdump; ac_word=$2
4042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4043 echo "configure:4044: checking for $ac_word" >&5
4044 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4046 else
4047 if test -n "$OBJDUMP"; then
4048 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4049 else
4050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4051 ac_dummy="$PATH"
4052 for ac_dir in $ac_dummy; do
4053 test -z "$ac_dir" && ac_dir=.
4054 if test -f $ac_dir/$ac_word; then
4055 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump"
4056 break
4058 done
4059 IFS="$ac_save_ifs"
4062 OBJDUMP="$ac_cv_prog_OBJDUMP"
4063 if test -n "$OBJDUMP"; then
4064 echo "$ac_t""$OBJDUMP" 1>&6
4065 else
4066 echo "$ac_t""no" 1>&6
4070 if test -z "$ac_cv_prog_OBJDUMP" ; then
4071 if test $build = $host ; then
4072 ncn_cv_OBJDUMP=$OBJDUMP
4073 # Extract the first word of "objdump", so it can be a program name with args.
4074 set dummy objdump; ac_word=$2
4075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4076 echo "configure:4077: checking for $ac_word" >&5
4077 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
4078 echo $ac_n "(cached) $ac_c" 1>&6
4079 else
4080 if test -n "$ncn_cv_OBJDUMP"; then
4081 ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test.
4082 else
4083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4084 ac_dummy="$PATH"
4085 for ac_dir in $ac_dummy; do
4086 test -z "$ac_dir" && ac_dir=.
4087 if test -f $ac_dir/$ac_word; then
4088 ac_cv_prog_ncn_cv_OBJDUMP="objdump"
4089 break
4091 done
4092 IFS="$ac_save_ifs"
4093 test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump"
4096 ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP"
4097 if test -n "$ncn_cv_OBJDUMP"; then
4098 echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6
4099 else
4100 echo "$ac_t""no" 1>&6
4103 OBJDUMP=$ncn_cv_OBJDUMP
4104 else
4105 OBJDUMP="${ncn_tool_prefix}objdump"
4107 else
4108 OBJDUMP="$ac_cv_prog_OBJDUMP"
4120 # Target tools.
4121 if test -n "$ncn_target_tool_prefix"; then
4122 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
4123 set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
4124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4125 echo "configure:4126: checking for $ac_word" >&5
4126 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6
4128 else
4129 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4130 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="$CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
4131 else
4132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4133 ac_dummy="$PATH"
4134 for ac_dir in $ac_dummy; do
4135 test -z "$ac_dir" && ac_dir=.
4136 if test -f $ac_dir/$ac_word; then
4137 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
4138 break
4140 done
4141 IFS="$ac_save_ifs"
4144 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
4145 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4146 echo "$ac_t""$CONFIGURED_AR_FOR_TARGET" 1>&6
4147 else
4148 echo "$ac_t""no" 1>&6
4152 if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then
4153 if test $build = $target ; then
4154 ncn_cv_CONFIGURED_AR_FOR_TARGET=$CONFIGURED_AR_FOR_TARGET
4155 # Extract the first word of "ar", so it can be a program name with args.
4156 set dummy ar; ac_word=$2
4157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4158 echo "configure:4159: checking for $ac_word" >&5
4159 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
4160 echo $ac_n "(cached) $ac_c" 1>&6
4161 else
4162 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4163 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="$ncn_cv_CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
4164 else
4165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4166 ac_dummy="$PATH"
4167 for ac_dir in $ac_dummy; do
4168 test -z "$ac_dir" && ac_dir=.
4169 if test -f $ac_dir/$ac_word; then
4170 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
4171 break
4173 done
4174 IFS="$ac_save_ifs"
4175 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
4178 ncn_cv_CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET"
4179 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4180 echo "$ac_t""$ncn_cv_CONFIGURED_AR_FOR_TARGET" 1>&6
4181 else
4182 echo "$ac_t""no" 1>&6
4185 CONFIGURED_AR_FOR_TARGET=$ncn_cv_CONFIGURED_AR_FOR_TARGET
4186 else
4187 CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
4189 else
4190 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
4193 if test -n "$ncn_target_tool_prefix"; then
4194 # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args.
4195 set dummy ${ncn_target_tool_prefix}as; ac_word=$2
4196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4197 echo "configure:4198: checking for $ac_word" >&5
4198 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4199 echo $ac_n "(cached) $ac_c" 1>&6
4200 else
4201 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4202 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="$CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
4203 else
4204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4205 ac_dummy="$PATH"
4206 for ac_dir in $ac_dummy; do
4207 test -z "$ac_dir" && ac_dir=.
4208 if test -f $ac_dir/$ac_word; then
4209 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
4210 break
4212 done
4213 IFS="$ac_save_ifs"
4216 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4217 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4218 echo "$ac_t""$CONFIGURED_AS_FOR_TARGET" 1>&6
4219 else
4220 echo "$ac_t""no" 1>&6
4224 if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then
4225 if test $build = $target ; then
4226 ncn_cv_CONFIGURED_AS_FOR_TARGET=$CONFIGURED_AS_FOR_TARGET
4227 # Extract the first word of "as", so it can be a program name with args.
4228 set dummy as; ac_word=$2
4229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4230 echo "configure:4231: checking for $ac_word" >&5
4231 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4233 else
4234 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4235 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="$ncn_cv_CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
4236 else
4237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4238 ac_dummy="$PATH"
4239 for ac_dir in $ac_dummy; do
4240 test -z "$ac_dir" && ac_dir=.
4241 if test -f $ac_dir/$ac_word; then
4242 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as"
4243 break
4245 done
4246 IFS="$ac_save_ifs"
4247 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as"
4250 ncn_cv_CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET"
4251 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4252 echo "$ac_t""$ncn_cv_CONFIGURED_AS_FOR_TARGET" 1>&6
4253 else
4254 echo "$ac_t""no" 1>&6
4257 CONFIGURED_AS_FOR_TARGET=$ncn_cv_CONFIGURED_AS_FOR_TARGET
4258 else
4259 CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
4261 else
4262 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4265 if test -n "$ncn_target_tool_prefix"; then
4266 # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args.
4267 set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
4268 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4269 echo "configure:4270: checking for $ac_word" >&5
4270 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4271 echo $ac_n "(cached) $ac_c" 1>&6
4272 else
4273 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4274 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="$CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4275 else
4276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4277 ac_dummy="$PATH"
4278 for ac_dir in $ac_dummy; do
4279 test -z "$ac_dir" && ac_dir=.
4280 if test -f $ac_dir/$ac_word; then
4281 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
4282 break
4284 done
4285 IFS="$ac_save_ifs"
4288 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4289 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4290 echo "$ac_t""$CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4291 else
4292 echo "$ac_t""no" 1>&6
4296 if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then
4297 if test $build = $target ; then
4298 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET=$CONFIGURED_DLLTOOL_FOR_TARGET
4299 # Extract the first word of "dlltool", so it can be a program name with args.
4300 set dummy dlltool; ac_word=$2
4301 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4302 echo "configure:4303: checking for $ac_word" >&5
4303 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4304 echo $ac_n "(cached) $ac_c" 1>&6
4305 else
4306 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4307 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4308 else
4309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4310 ac_dummy="$PATH"
4311 for ac_dir in $ac_dummy; do
4312 test -z "$ac_dir" && ac_dir=.
4313 if test -f $ac_dir/$ac_word; then
4314 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool"
4315 break
4317 done
4318 IFS="$ac_save_ifs"
4319 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool"
4322 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"
4323 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4324 echo "$ac_t""$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4325 else
4326 echo "$ac_t""no" 1>&6
4329 CONFIGURED_DLLTOOL_FOR_TARGET=$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET
4330 else
4331 CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
4333 else
4334 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4337 if test -n "$ncn_target_tool_prefix"; then
4338 # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args.
4339 set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
4340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4341 echo "configure:4342: checking for $ac_word" >&5
4342 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4343 echo $ac_n "(cached) $ac_c" 1>&6
4344 else
4345 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4346 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="$CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4347 else
4348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4349 ac_dummy="$PATH"
4350 for ac_dir in $ac_dummy; do
4351 test -z "$ac_dir" && ac_dir=.
4352 if test -f $ac_dir/$ac_word; then
4353 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
4354 break
4356 done
4357 IFS="$ac_save_ifs"
4360 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4361 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4362 echo "$ac_t""$CONFIGURED_LD_FOR_TARGET" 1>&6
4363 else
4364 echo "$ac_t""no" 1>&6
4368 if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then
4369 if test $build = $target ; then
4370 ncn_cv_CONFIGURED_LD_FOR_TARGET=$CONFIGURED_LD_FOR_TARGET
4371 # Extract the first word of "ld", so it can be a program name with args.
4372 set dummy ld; ac_word=$2
4373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4374 echo "configure:4375: checking for $ac_word" >&5
4375 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4376 echo $ac_n "(cached) $ac_c" 1>&6
4377 else
4378 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4379 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="$ncn_cv_CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4380 else
4381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4382 ac_dummy="$PATH"
4383 for ac_dir in $ac_dummy; do
4384 test -z "$ac_dir" && ac_dir=.
4385 if test -f $ac_dir/$ac_word; then
4386 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld"
4387 break
4389 done
4390 IFS="$ac_save_ifs"
4391 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld"
4394 ncn_cv_CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET"
4395 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4396 echo "$ac_t""$ncn_cv_CONFIGURED_LD_FOR_TARGET" 1>&6
4397 else
4398 echo "$ac_t""no" 1>&6
4401 CONFIGURED_LD_FOR_TARGET=$ncn_cv_CONFIGURED_LD_FOR_TARGET
4402 else
4403 CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
4405 else
4406 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4409 if test -n "$ncn_target_tool_prefix"; then
4410 # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args.
4411 set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
4412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4413 echo "configure:4414: checking for $ac_word" >&5
4414 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4415 echo $ac_n "(cached) $ac_c" 1>&6
4416 else
4417 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4418 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="$CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4419 else
4420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4421 ac_dummy="$PATH"
4422 for ac_dir in $ac_dummy; do
4423 test -z "$ac_dir" && ac_dir=.
4424 if test -f $ac_dir/$ac_word; then
4425 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
4426 break
4428 done
4429 IFS="$ac_save_ifs"
4432 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4433 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4434 echo "$ac_t""$CONFIGURED_NM_FOR_TARGET" 1>&6
4435 else
4436 echo "$ac_t""no" 1>&6
4440 if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then
4441 if test $build = $target ; then
4442 ncn_cv_CONFIGURED_NM_FOR_TARGET=$CONFIGURED_NM_FOR_TARGET
4443 # Extract the first word of "nm", so it can be a program name with args.
4444 set dummy nm; ac_word=$2
4445 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4446 echo "configure:4447: checking for $ac_word" >&5
4447 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4449 else
4450 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4451 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="$ncn_cv_CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4452 else
4453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4454 ac_dummy="$PATH"
4455 for ac_dir in $ac_dummy; do
4456 test -z "$ac_dir" && ac_dir=.
4457 if test -f $ac_dir/$ac_word; then
4458 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm"
4459 break
4461 done
4462 IFS="$ac_save_ifs"
4463 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm"
4466 ncn_cv_CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET"
4467 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4468 echo "$ac_t""$ncn_cv_CONFIGURED_NM_FOR_TARGET" 1>&6
4469 else
4470 echo "$ac_t""no" 1>&6
4473 CONFIGURED_NM_FOR_TARGET=$ncn_cv_CONFIGURED_NM_FOR_TARGET
4474 else
4475 CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
4477 else
4478 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4481 if test -n "$ncn_target_tool_prefix"; then
4482 # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args.
4483 set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
4484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4485 echo "configure:4486: checking for $ac_word" >&5
4486 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4487 echo $ac_n "(cached) $ac_c" 1>&6
4488 else
4489 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4490 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="$CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4491 else
4492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4493 ac_dummy="$PATH"
4494 for ac_dir in $ac_dummy; do
4495 test -z "$ac_dir" && ac_dir=.
4496 if test -f $ac_dir/$ac_word; then
4497 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib"
4498 break
4500 done
4501 IFS="$ac_save_ifs"
4504 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4505 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4506 echo "$ac_t""$CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4507 else
4508 echo "$ac_t""no" 1>&6
4512 if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then
4513 if test $build = $target ; then
4514 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=$CONFIGURED_RANLIB_FOR_TARGET
4515 # Extract the first word of "ranlib", so it can be a program name with args.
4516 set dummy ranlib; ac_word=$2
4517 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4518 echo "configure:4519: checking for $ac_word" >&5
4519 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4520 echo $ac_n "(cached) $ac_c" 1>&6
4521 else
4522 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4523 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4524 else
4525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4526 ac_dummy="$PATH"
4527 for ac_dir in $ac_dummy; do
4528 test -z "$ac_dir" && ac_dir=.
4529 if test -f $ac_dir/$ac_word; then
4530 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="ranlib"
4531 break
4533 done
4534 IFS="$ac_save_ifs"
4535 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=":"
4538 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"
4539 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4540 echo "$ac_t""$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4541 else
4542 echo "$ac_t""no" 1>&6
4545 CONFIGURED_RANLIB_FOR_TARGET=$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET
4546 else
4547 CONFIGURED_RANLIB_FOR_TARGET=":"
4549 else
4550 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4553 if test -n "$ncn_target_tool_prefix"; then
4554 # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args.
4555 set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
4556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4557 echo "configure:4558: checking for $ac_word" >&5
4558 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4560 else
4561 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4562 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="$CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4563 else
4564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4565 ac_dummy="$PATH"
4566 for ac_dir in $ac_dummy; do
4567 test -z "$ac_dir" && ac_dir=.
4568 if test -f $ac_dir/$ac_word; then
4569 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
4570 break
4572 done
4573 IFS="$ac_save_ifs"
4576 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4577 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4578 echo "$ac_t""$CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4579 else
4580 echo "$ac_t""no" 1>&6
4584 if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then
4585 if test $build = $target ; then
4586 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET=$CONFIGURED_WINDRES_FOR_TARGET
4587 # Extract the first word of "windres", so it can be a program name with args.
4588 set dummy windres; ac_word=$2
4589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4590 echo "configure:4591: checking for $ac_word" >&5
4591 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4592 echo $ac_n "(cached) $ac_c" 1>&6
4593 else
4594 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4595 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4596 else
4597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4598 ac_dummy="$PATH"
4599 for ac_dir in $ac_dummy; do
4600 test -z "$ac_dir" && ac_dir=.
4601 if test -f $ac_dir/$ac_word; then
4602 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres"
4603 break
4605 done
4606 IFS="$ac_save_ifs"
4607 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres"
4610 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"
4611 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4612 echo "$ac_t""$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4613 else
4614 echo "$ac_t""no" 1>&6
4617 CONFIGURED_WINDRES_FOR_TARGET=$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET
4618 else
4619 CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
4621 else
4622 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4636 # Fix up target tools.
4637 if test "x${build}" = "x${host}" ; then
4638 # In this case, the newly built tools can and should be used,
4639 # so we override the results of the autoconf tests.
4640 # This should really only happen when the tools are actually being built,
4641 # but that's a further refinement. The new build scheme, where
4642 # tools are built into a structure paralleling where they're installed,
4643 # should also eliminate all of this cleanly.
4644 AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)"
4645 AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)"
4646 DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)"
4647 LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)"
4648 NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)"
4649 RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)"
4650 WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)"
4651 else
4652 # Just use the ones we found.
4653 AR_FOR_TARGET="\$(CONFIGURED_AR_FOR_TARGET)"
4654 AS_FOR_TARGET="\$(CONFIGURED_AS_FOR_TARGET)"
4655 DLLTOOL_FOR_TARGET="\$(CONFIGURED_DLLTOOL_FOR_TARGET)"
4656 LD_FOR_TARGET="\$(CONFIGURED_LD_FOR_TARGET)"
4657 NM_FOR_TARGET="\$(CONFIGURED_NM_FOR_TARGET)"
4658 RANLIB_FOR_TARGET="\$(CONFIGURED_RANLIB_FOR_TARGET)"
4659 WINDRES_FOR_TARGET="\$(CONFIGURED_WINDRES_FOR_TARGET)"
4669 # Certain tools may need extra flags.
4670 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
4671 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
4672 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
4674 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4675 echo "configure:4676: checking whether to enable maintainer-specific portions of Makefiles" >&5
4676 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4677 if test "${enable_maintainer_mode+set}" = set; then
4678 enableval="$enable_maintainer_mode"
4679 USE_MAINTAINER_MODE=$enableval
4680 else
4681 USE_MAINTAINER_MODE=no
4684 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4687 if test "$USE_MAINTAINER_MODE" = yes; then
4688 MAINTAINER_MODE_TRUE=
4689 MAINTAINER_MODE_FALSE='#'
4690 else
4691 MAINTAINER_MODE_TRUE='#'
4692 MAINTAINER_MODE_FALSE=
4694 MAINT=$MAINTAINER_MODE_TRUE
4696 # ---------------------
4697 # GCC bootstrap support
4698 # ---------------------
4700 # Stage specific cflags for build.
4701 stage1_cflags="-g"
4702 case $build in
4703 vax-*-*)
4704 case ${GCC} in
4705 yes) stage1_cflags="-g -Wa,-J" ;;
4706 *) stage1_cflags="-g -J" ;;
4707 esac ;;
4708 powerpc-*-darwin*)
4709 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
4710 # sources; use -no-cpp-precomp to get to GNU cpp.
4711 # Apple's GCC has bugs in designated initializer handling, so disable
4712 # that too.
4713 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
4715 esac
4718 # It makes debugging easier if we create as symlinks the stage directories
4719 # gcc for stageN-gcc and stage-prev for stage(N-1). In case this is not
4720 # possible, however, we can resort to mv.
4721 echo $ac_n "checking if symbolic links between directories work""... $ac_c" 1>&6
4722 echo "configure:4723: checking if symbolic links between directories work" >&5
4723 if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
4724 echo $ac_n "(cached) $ac_c" 1>&6
4725 else
4726 if test "${LN_S}" = "ln -s" \
4727 && mkdir confdir.s1 \
4728 && ln -s confdir.s1 confdir.s2 \
4729 && echo timestamp1 > confdir.s1/conftest.1 \
4730 && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \
4731 && echo timestamp2 > confdir.s2/conftest.2 \
4732 && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \
4733 && rm -f confdir.s2; then
4734 gcc_cv_prog_ln_s_dir=yes
4735 else
4736 gcc_cv_prog_ln_s_dir=yes
4738 rm -rf confdir.s1 confdir.s2
4741 echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6
4743 case ${gcc_cv_prog_ln_s_dir} in
4744 yes)
4745 CREATE_LINK_TO_DIR='ln -s $$1 $$2'
4746 UNDO_LINK_TO_DIR='rm -f $$1' ;;
4748 CREATE_LINK_TO_DIR='mv $$1 $$2'
4749 UNDO_LINK_TO_DIR='mv $$1 $$2' ;;
4750 esac
4754 # Enable -Werror in bootstrap stage2 and later.
4755 # Change the default to "no" on release branches.
4756 # Check whether --enable-werror or --disable-werror was given.
4757 if test "${enable_werror+set}" = set; then
4758 enableval="$enable_werror"
4760 else
4761 enable_werror=yes
4764 case ${enable_werror} in
4765 yes) stage2_werror_flag="--enable-werror-always" ;;
4766 *) stage2_werror_flag="" ;;
4767 esac
4770 trap '' 1 2 15
4771 cat > confcache <<\EOF
4772 # This file is a shell script that caches the results of configure
4773 # tests run on this system so they can be shared between configure
4774 # scripts and configure runs. It is not useful on other systems.
4775 # If it contains results you don't want to keep, you may remove or edit it.
4777 # By default, configure uses ./config.cache as the cache file,
4778 # creating it if it does not exist already. You can give configure
4779 # the --cache-file=FILE option to use a different cache file; that is
4780 # what configure does when it calls configure scripts in
4781 # subdirectories, so they share the cache.
4782 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4783 # config.status only pays attention to the cache file if you give it the
4784 # --recheck option to rerun configure.
4787 # The following way of writing the cache mishandles newlines in values,
4788 # but we know of no workaround that is simple, portable, and efficient.
4789 # So, don't put newlines in cache variables' values.
4790 # Ultrix sh set writes to stderr and can't be redirected directly,
4791 # and sets the high bit in the cache file unless we assign to the vars.
4792 (set) 2>&1 |
4793 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4794 *ac_space=\ *)
4795 # `set' does not quote correctly, so add quotes (double-quote substitution
4796 # turns \\\\ into \\, and sed turns \\ into \).
4797 sed -n \
4798 -e "s/'/'\\\\''/g" \
4799 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4802 # `set' quotes correctly as required by POSIX, so do not add quotes.
4803 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4805 esac >> confcache
4806 if cmp -s $cache_file confcache; then
4808 else
4809 if test -w $cache_file; then
4810 echo "updating cache $cache_file"
4811 cat confcache > $cache_file
4812 else
4813 echo "not updating unwritable cache $cache_file"
4816 rm -f confcache
4818 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4820 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4821 # Let make expand exec_prefix.
4822 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4824 # Any assignment to VPATH causes Sun make to only execute
4825 # the first set of double-colon rules, so remove it if not needed.
4826 # If there is a colon in the path, we need to keep it.
4827 if test "x$srcdir" = x.; then
4828 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4831 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4833 # Transform confdefs.h into DEFS.
4834 # Protect against shell expansion while executing Makefile rules.
4835 # Protect against Makefile macro expansion.
4836 cat > conftest.defs <<\EOF
4837 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4838 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4839 s%\[%\\&%g
4840 s%\]%\\&%g
4841 s%\$%$$%g
4843 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4844 rm -f conftest.defs
4847 # Without the "./", some shells look in PATH for config.status.
4848 : ${CONFIG_STATUS=./config.status}
4850 echo creating $CONFIG_STATUS
4851 rm -f $CONFIG_STATUS
4852 cat > $CONFIG_STATUS <<EOF
4853 #! /bin/sh
4854 # Generated automatically by configure.
4855 # Run this file to recreate the current configuration.
4856 # This directory was configured as follows,
4857 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4859 # $0 $ac_configure_args
4861 # Compiler output produced by configure, useful for debugging
4862 # configure, is in ./config.log if it exists.
4864 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4865 for ac_option
4867 case "\$ac_option" in
4868 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4869 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4870 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4871 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4872 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4873 exit 0 ;;
4874 -help | --help | --hel | --he | --h)
4875 echo "\$ac_cs_usage"; exit 0 ;;
4876 *) echo "\$ac_cs_usage"; exit 1 ;;
4877 esac
4878 done
4880 ac_given_srcdir=$srcdir
4881 ac_given_INSTALL="$INSTALL"
4883 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4885 cat >> $CONFIG_STATUS <<EOF
4887 # Protect against being on the right side of a sed subst in config.status.
4888 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4889 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4890 $ac_vpsub
4891 $extrasub
4892 s%@SHELL@%$SHELL%g
4893 s%@CFLAGS@%$CFLAGS%g
4894 s%@CPPFLAGS@%$CPPFLAGS%g
4895 s%@CXXFLAGS@%$CXXFLAGS%g
4896 s%@FFLAGS@%$FFLAGS%g
4897 s%@DEFS@%$DEFS%g
4898 s%@LDFLAGS@%$LDFLAGS%g
4899 s%@LIBS@%$LIBS%g
4900 s%@exec_prefix@%$exec_prefix%g
4901 s%@prefix@%$prefix%g
4902 s%@program_transform_name@%$program_transform_name%g
4903 s%@bindir@%$bindir%g
4904 s%@sbindir@%$sbindir%g
4905 s%@libexecdir@%$libexecdir%g
4906 s%@datadir@%$datadir%g
4907 s%@sysconfdir@%$sysconfdir%g
4908 s%@sharedstatedir@%$sharedstatedir%g
4909 s%@localstatedir@%$localstatedir%g
4910 s%@libdir@%$libdir%g
4911 s%@includedir@%$includedir%g
4912 s%@oldincludedir@%$oldincludedir%g
4913 s%@infodir@%$infodir%g
4914 s%@mandir@%$mandir%g
4915 s%@host@%$host%g
4916 s%@host_alias@%$host_alias%g
4917 s%@host_cpu@%$host_cpu%g
4918 s%@host_vendor@%$host_vendor%g
4919 s%@host_os@%$host_os%g
4920 s%@target@%$target%g
4921 s%@target_alias@%$target_alias%g
4922 s%@target_cpu@%$target_cpu%g
4923 s%@target_vendor@%$target_vendor%g
4924 s%@target_os@%$target_os%g
4925 s%@build@%$build%g
4926 s%@build_alias@%$build_alias%g
4927 s%@build_cpu@%$build_cpu%g
4928 s%@build_vendor@%$build_vendor%g
4929 s%@build_os@%$build_os%g
4930 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4931 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4932 s%@INSTALL_DATA@%$INSTALL_DATA%g
4933 s%@LN@%$LN%g
4934 s%@LN_S@%$LN_S%g
4935 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
4936 s%@build_subdir@%$build_subdir%g
4937 s%@host_subdir@%$host_subdir%g
4938 s%@target_subdir@%$target_subdir%g
4939 s%@CC@%$CC%g
4940 s%@GNATBIND@%$GNATBIND%g
4941 s%@do_compare@%$do_compare%g
4942 s%@gmplibs@%$gmplibs%g
4943 s%@gmpinc@%$gmpinc%g
4944 s%@stage1_languages@%$stage1_languages%g
4945 s%@DEFAULT_YACC@%$DEFAULT_YACC%g
4946 s%@DEFAULT_M4@%$DEFAULT_M4%g
4947 s%@DEFAULT_LEX@%$DEFAULT_LEX%g
4948 s%@default_target@%$default_target%g
4949 /@serialization_dependencies@/r $serialization_dependencies
4950 s%@serialization_dependencies@%%g
4951 /@host_makefile_frag@/r $host_makefile_frag
4952 s%@host_makefile_frag@%%g
4953 /@target_makefile_frag@/r $target_makefile_frag
4954 s%@target_makefile_frag@%%g
4955 /@alphaieee_frag@/r $alphaieee_frag
4956 s%@alphaieee_frag@%%g
4957 /@ospace_frag@/r $ospace_frag
4958 s%@ospace_frag@%%g
4959 s%@SET_LIB_PATH@%$SET_LIB_PATH%g
4960 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
4961 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
4962 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
4963 s%@gcc_version_trigger@%$gcc_version_trigger%g
4964 s%@gcc_version@%$gcc_version%g
4965 s%@tooldir@%$tooldir%g
4966 s%@build_tooldir@%$build_tooldir%g
4967 s%@GDB_TK@%$GDB_TK%g
4968 s%@gxx_include_dir@%$gxx_include_dir%g
4969 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
4970 s%@build_configargs@%$build_configargs%g
4971 s%@configure_build_modules@%$configure_build_modules%g
4972 s%@all_build_modules@%$all_build_modules%g
4973 s%@host_configargs@%$host_configargs%g
4974 s%@configdirs@%$configdirs%g
4975 s%@target_configargs@%$target_configargs%g
4976 s%@target_configdirs@%$target_configdirs%g
4977 s%@BISON@%$BISON%g
4978 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4979 s%@LEX@%$LEX%g
4980 s%@MAKEINFO@%$MAKEINFO%g
4981 s%@YACC@%$YACC%g
4982 s%@config_shell@%$config_shell%g
4983 s%@AR@%$AR%g
4984 s%@ncn_cv_AR@%$ncn_cv_AR%g
4985 s%@AS@%$AS%g
4986 s%@ncn_cv_AS@%$ncn_cv_AS%g
4987 s%@DLLTOOL@%$DLLTOOL%g
4988 s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g
4989 s%@LD@%$LD%g
4990 s%@ncn_cv_LD@%$ncn_cv_LD%g
4991 s%@NM@%$NM%g
4992 s%@ncn_cv_NM@%$ncn_cv_NM%g
4993 s%@RANLIB@%$RANLIB%g
4994 s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g
4995 s%@WINDRES@%$WINDRES%g
4996 s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g
4997 s%@OBJCOPY@%$OBJCOPY%g
4998 s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g
4999 s%@OBJDUMP@%$OBJDUMP%g
5000 s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g
5001 s%@CXX@%$CXX%g
5002 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
5003 s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
5004 s%@ncn_cv_CONFIGURED_AR_FOR_TARGET@%$ncn_cv_CONFIGURED_AR_FOR_TARGET%g
5005 s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
5006 s%@ncn_cv_CONFIGURED_AS_FOR_TARGET@%$ncn_cv_CONFIGURED_AS_FOR_TARGET%g
5007 s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
5008 s%@ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET@%$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET%g
5009 s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
5010 s%@ncn_cv_CONFIGURED_LD_FOR_TARGET@%$ncn_cv_CONFIGURED_LD_FOR_TARGET%g
5011 s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
5012 s%@ncn_cv_CONFIGURED_NM_FOR_TARGET@%$ncn_cv_CONFIGURED_NM_FOR_TARGET%g
5013 s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
5014 s%@ncn_cv_CONFIGURED_RANLIB_FOR_TARGET@%$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET%g
5015 s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
5016 s%@ncn_cv_CONFIGURED_WINDRES_FOR_TARGET@%$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET%g
5017 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
5018 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
5019 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
5020 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
5021 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
5022 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
5023 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
5024 s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
5025 s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
5026 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
5027 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
5028 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
5029 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
5030 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
5031 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
5032 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
5033 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5034 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5035 s%@MAINT@%$MAINT%g
5036 s%@stage1_cflags@%$stage1_cflags%g
5037 s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g
5038 s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g
5039 s%@stage2_werror_flag@%$stage2_werror_flag%g
5041 CEOF
5044 cat >> $CONFIG_STATUS <<\EOF
5046 # Split the substitutions into bite-sized pieces for seds with
5047 # small command number limits, like on Digital OSF/1 and HP-UX.
5048 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5049 ac_file=1 # Number of current file.
5050 ac_beg=1 # First line for current file.
5051 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5052 ac_more_lines=:
5053 ac_sed_cmds=""
5054 while $ac_more_lines; do
5055 if test $ac_beg -gt 1; then
5056 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5057 else
5058 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5060 if test ! -s conftest.s$ac_file; then
5061 ac_more_lines=false
5062 rm -f conftest.s$ac_file
5063 else
5064 if test -z "$ac_sed_cmds"; then
5065 ac_sed_cmds="sed -f conftest.s$ac_file"
5066 else
5067 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5069 ac_file=`expr $ac_file + 1`
5070 ac_beg=$ac_end
5071 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5073 done
5074 if test -z "$ac_sed_cmds"; then
5075 ac_sed_cmds=cat
5079 cat >> $CONFIG_STATUS <<EOF
5081 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5083 cat >> $CONFIG_STATUS <<\EOF
5084 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5085 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5086 case "$ac_file" in
5087 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5088 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5089 *) ac_file_in="${ac_file}.in" ;;
5090 esac
5092 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5094 # Remove last slash and all that follows it. Not all systems have dirname.
5095 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5096 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5097 # The file is in a subdirectory.
5098 test ! -d "$ac_dir" && mkdir "$ac_dir"
5099 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5100 # A "../" for each directory in $ac_dir_suffix.
5101 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5102 else
5103 ac_dir_suffix= ac_dots=
5106 case "$ac_given_srcdir" in
5107 .) srcdir=.
5108 if test -z "$ac_dots"; then top_srcdir=.
5109 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5110 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5111 *) # Relative path.
5112 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5113 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5114 esac
5116 case "$ac_given_INSTALL" in
5117 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5118 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5119 esac
5121 echo creating "$ac_file"
5122 rm -f "$ac_file"
5123 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5124 case "$ac_file" in
5125 *Makefile*) ac_comsub="1i\\
5126 # $configure_input" ;;
5127 *) ac_comsub= ;;
5128 esac
5130 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5131 sed -e "$ac_comsub
5132 s%@configure_input@%$configure_input%g
5133 s%@srcdir@%$srcdir%g
5134 s%@top_srcdir@%$top_srcdir%g
5135 s%@INSTALL@%$INSTALL%g
5136 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5137 fi; done
5138 rm -f conftest.s*
5141 cat >> $CONFIG_STATUS <<EOF
5144 cat >> $CONFIG_STATUS <<\EOF
5146 exit 0
5148 chmod +x $CONFIG_STATUS
5149 rm -fr confdefs* $ac_clean_files
5150 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1