Mark ChangeLog
[official-gcc.git] / configure
blob8087aed156a13c1ff4d04f04fbad0fd9181560c8
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-libada Builds libada directory"
16 ac_help="$ac_help
17 --with-mpfr-dir=PATH Specify source directory for MPFR library"
18 ac_help="$ac_help
19 --with-mpfr=PATH Specify directory for installed MPFR library"
20 ac_help="$ac_help
21 --with-gmp-dir=PATH Specify source directory for GMP library"
22 ac_help="$ac_help
23 --with-gmp=PATH Specify directory for installed GMP library"
24 ac_help="$ac_help
25 --enable-bootstrap[=lean] Enable bootstrapping [no]"
26 ac_help="$ac_help
27 --enable-serial-[{host,target,build}-]configure
28 Force sequential configuration of
29 sub-packages for the host, target or build
30 machine, or all sub-packages"
31 ac_help="$ac_help
32 --enable-maintainer-mode enable make rules and dependencies not useful
33 (and sometimes confusing) to the casual installer"
34 ac_help="$ac_help
35 --enable-werror enable -Werror in bootstrap stage2 and later"
37 # Initialize some variables set by options.
38 # The variables have the same names as the options, with
39 # dashes changed to underlines.
40 build=NONE
41 cache_file=./config.cache
42 exec_prefix=NONE
43 host=NONE
44 no_create=
45 nonopt=NONE
46 no_recursion=
47 prefix=NONE
48 program_prefix=NONE
49 program_suffix=NONE
50 program_transform_name=s,x,x,
51 silent=
52 site=
53 srcdir=
54 target=NONE
55 verbose=
56 x_includes=NONE
57 x_libraries=NONE
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
71 # Initialize some other variables.
72 subdirs=
73 MFLAGS= MAKEFLAGS=
74 SHELL=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
76 ac_max_here_lines=12
78 ac_prev=
79 for ac_option
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
85 ac_prev=
86 continue
89 case "$ac_option" in
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 *) ac_optarg= ;;
92 esac
94 # Accept the important Cygnus configure options, so we can diagnose typos.
96 case "$ac_option" in
98 -bindir | --bindir | --bindi | --bind | --bin | --bi)
99 ac_prev=bindir ;;
100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101 bindir="$ac_optarg" ;;
103 -build | --build | --buil | --bui | --bu)
104 ac_prev=build ;;
105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106 build="$ac_optarg" ;;
108 -cache-file | --cache-file | --cache-fil | --cache-fi \
109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110 ac_prev=cache_file ;;
111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113 cache_file="$ac_optarg" ;;
115 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116 ac_prev=datadir ;;
117 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118 | --da=*)
119 datadir="$ac_optarg" ;;
121 -disable-* | --disable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* | --enable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 case "$ac_option" in
138 *=*) ;;
139 *) ac_optarg=yes ;;
140 esac
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145 | --exec | --exe | --ex)
146 ac_prev=exec_prefix ;;
147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149 | --exec=* | --exe=* | --ex=*)
150 exec_prefix="$ac_optarg" ;;
152 -gas | --gas | --ga | --g)
153 # Obsolete; use --with-gas.
154 with_gas=yes ;;
156 -help | --help | --hel | --he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
159 cat << EOF
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
162 Configuration:
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --version print the version of autoconf that created configure
168 Directory and file names:
169 --prefix=PREFIX install architecture-independent files in PREFIX
170 [$ac_default_prefix]
171 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 [same as prefix]
173 --bindir=DIR user executables in DIR [EPREFIX/bin]
174 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
175 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
176 --datadir=DIR read-only architecture-independent data in DIR
177 [PREFIX/share]
178 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
179 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 [PREFIX/com]
181 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
182 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
183 --includedir=DIR C header files in DIR [PREFIX/include]
184 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
185 --infodir=DIR info documentation in DIR [PREFIX/info]
186 --mandir=DIR man documentation in DIR [PREFIX/man]
187 --srcdir=DIR find the sources in DIR [configure dir or ..]
188 --program-prefix=PREFIX prepend PREFIX to installed program names
189 --program-suffix=SUFFIX append SUFFIX to installed program names
190 --program-transform-name=PROGRAM
191 run sed PROGRAM on installed program names
193 cat << EOF
194 Host type:
195 --build=BUILD configure for building on BUILD [BUILD=HOST]
196 --host=HOST configure for HOST [guessed]
197 --target=TARGET configure for TARGET [TARGET=HOST]
198 Features and packages:
199 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
200 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
201 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
202 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
203 --x-includes=DIR X include files are in DIR
204 --x-libraries=DIR X library files are in DIR
206 if test -n "$ac_help"; then
207 echo "--enable and --with options recognized:$ac_help"
209 exit 0 ;;
211 -host | --host | --hos | --ho)
212 ac_prev=host ;;
213 -host=* | --host=* | --hos=* | --ho=*)
214 host="$ac_optarg" ;;
216 -includedir | --includedir | --includedi | --included | --include \
217 | --includ | --inclu | --incl | --inc)
218 ac_prev=includedir ;;
219 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
220 | --includ=* | --inclu=* | --incl=* | --inc=*)
221 includedir="$ac_optarg" ;;
223 -infodir | --infodir | --infodi | --infod | --info | --inf)
224 ac_prev=infodir ;;
225 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
226 infodir="$ac_optarg" ;;
228 -libdir | --libdir | --libdi | --libd)
229 ac_prev=libdir ;;
230 -libdir=* | --libdir=* | --libdi=* | --libd=*)
231 libdir="$ac_optarg" ;;
233 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
234 | --libexe | --libex | --libe)
235 ac_prev=libexecdir ;;
236 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
237 | --libexe=* | --libex=* | --libe=*)
238 libexecdir="$ac_optarg" ;;
240 -localstatedir | --localstatedir | --localstatedi | --localstated \
241 | --localstate | --localstat | --localsta | --localst \
242 | --locals | --local | --loca | --loc | --lo)
243 ac_prev=localstatedir ;;
244 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
245 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
246 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
247 localstatedir="$ac_optarg" ;;
249 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
250 ac_prev=mandir ;;
251 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
252 mandir="$ac_optarg" ;;
254 -nfp | --nfp | --nf)
255 # Obsolete; use --without-fp.
256 with_fp=no ;;
258 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
259 | --no-cr | --no-c)
260 no_create=yes ;;
262 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
263 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
264 no_recursion=yes ;;
266 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
267 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
268 | --oldin | --oldi | --old | --ol | --o)
269 ac_prev=oldincludedir ;;
270 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
271 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
272 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
273 oldincludedir="$ac_optarg" ;;
275 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
276 ac_prev=prefix ;;
277 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
278 prefix="$ac_optarg" ;;
280 -program-prefix | --program-prefix | --program-prefi | --program-pref \
281 | --program-pre | --program-pr | --program-p)
282 ac_prev=program_prefix ;;
283 -program-prefix=* | --program-prefix=* | --program-prefi=* \
284 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
285 program_prefix="$ac_optarg" ;;
287 -program-suffix | --program-suffix | --program-suffi | --program-suff \
288 | --program-suf | --program-su | --program-s)
289 ac_prev=program_suffix ;;
290 -program-suffix=* | --program-suffix=* | --program-suffi=* \
291 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
292 program_suffix="$ac_optarg" ;;
294 -program-transform-name | --program-transform-name \
295 | --program-transform-nam | --program-transform-na \
296 | --program-transform-n | --program-transform- \
297 | --program-transform | --program-transfor \
298 | --program-transfo | --program-transf \
299 | --program-trans | --program-tran \
300 | --progr-tra | --program-tr | --program-t)
301 ac_prev=program_transform_name ;;
302 -program-transform-name=* | --program-transform-name=* \
303 | --program-transform-nam=* | --program-transform-na=* \
304 | --program-transform-n=* | --program-transform-=* \
305 | --program-transform=* | --program-transfor=* \
306 | --program-transfo=* | --program-transf=* \
307 | --program-trans=* | --program-tran=* \
308 | --progr-tra=* | --program-tr=* | --program-t=*)
309 program_transform_name="$ac_optarg" ;;
311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
312 | -silent | --silent | --silen | --sile | --sil)
313 silent=yes ;;
315 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
316 ac_prev=sbindir ;;
317 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
318 | --sbi=* | --sb=*)
319 sbindir="$ac_optarg" ;;
321 -sharedstatedir | --sharedstatedir | --sharedstatedi \
322 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
323 | --sharedst | --shareds | --shared | --share | --shar \
324 | --sha | --sh)
325 ac_prev=sharedstatedir ;;
326 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
327 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
328 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
329 | --sha=* | --sh=*)
330 sharedstatedir="$ac_optarg" ;;
332 -site | --site | --sit)
333 ac_prev=site ;;
334 -site=* | --site=* | --sit=*)
335 site="$ac_optarg" ;;
337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
338 ac_prev=srcdir ;;
339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
340 srcdir="$ac_optarg" ;;
342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
343 | --syscon | --sysco | --sysc | --sys | --sy)
344 ac_prev=sysconfdir ;;
345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
347 sysconfdir="$ac_optarg" ;;
349 -target | --target | --targe | --targ | --tar | --ta | --t)
350 ac_prev=target ;;
351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
352 target="$ac_optarg" ;;
354 -v | -verbose | --verbose | --verbos | --verbo | --verb)
355 verbose=yes ;;
357 -version | --version | --versio | --versi | --vers)
358 echo "configure generated by autoconf version 2.13"
359 exit 0 ;;
361 -with-* | --with-*)
362 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package=`echo $ac_package| sed 's/-/_/g'`
368 case "$ac_option" in
369 *=*) ;;
370 *) ac_optarg=yes ;;
371 esac
372 eval "with_${ac_package}='$ac_optarg'" ;;
374 -without-* | --without-*)
375 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
376 # Reject names that are not valid shell variable names.
377 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380 ac_package=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}=no" ;;
383 --x)
384 # Obsolete; use --with-x.
385 with_x=yes ;;
387 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
388 | --x-incl | --x-inc | --x-in | --x-i)
389 ac_prev=x_includes ;;
390 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
391 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
392 x_includes="$ac_optarg" ;;
394 -x-libraries | --x-libraries | --x-librarie | --x-librari \
395 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
396 ac_prev=x_libraries ;;
397 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
398 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
399 x_libraries="$ac_optarg" ;;
401 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
406 echo "configure: warning: $ac_option: invalid host type" 1>&2
408 if test "x$nonopt" != xNONE; then
409 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411 nonopt="$ac_option"
414 esac
415 done
417 if test -n "$ac_prev"; then
418 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
423 # File descriptor usage:
424 # 0 standard input
425 # 1 file creation
426 # 2 errors and warnings
427 # 3 some systems may open it to /dev/tty
428 # 4 used on the Kubota Titan
429 # 6 checking for... messages and results
430 # 5 compiler messages saved in config.log
431 if test "$silent" = yes; then
432 exec 6>/dev/null
433 else
434 exec 6>&1
436 exec 5>./config.log
438 echo "\
439 This file contains any messages produced by compilers while
440 running configure, to aid debugging if configure makes a mistake.
441 " 1>&5
443 # Strip out --no-create and --no-recursion so they do not pile up.
444 # Also quote any args containing shell metacharacters.
445 ac_configure_args=
446 for ac_arg
448 case "$ac_arg" in
449 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
450 | --no-cr | --no-c) ;;
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
454 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
455 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
456 esac
457 done
459 # NLS nuisances.
460 # Only set these to C if already set. These must not be set unconditionally
461 # because not all systems understand e.g. LANG=C (notably SCO).
462 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
463 # Non-C LC_CTYPE values break the ctype check.
464 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
465 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
466 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
467 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
469 # confdefs.h avoids OS command line length limits that DEFS can exceed.
470 rm -rf conftest* confdefs.h
471 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
472 echo > confdefs.h
474 # A filename unique to this package, relative to the directory that
475 # configure is in, which we can look for to find out if srcdir is correct.
476 ac_unique_file=move-if-change
478 # Find the source files, if location was not specified.
479 if test -z "$srcdir"; then
480 ac_srcdir_defaulted=yes
481 # Try the directory containing this script, then its parent.
482 ac_prog=$0
483 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
484 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
485 srcdir=$ac_confdir
486 if test ! -r $srcdir/$ac_unique_file; then
487 srcdir=..
489 else
490 ac_srcdir_defaulted=no
492 if test ! -r $srcdir/$ac_unique_file; then
493 if test "$ac_srcdir_defaulted" = yes; then
494 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 else
496 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
499 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
501 # Prefer explicitly selected file to automatically selected ones.
502 if test -z "$CONFIG_SITE"; then
503 if test "x$prefix" != xNONE; then
504 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
505 else
506 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
509 for ac_site_file in $CONFIG_SITE; do
510 if test -r "$ac_site_file"; then
511 echo "loading site script $ac_site_file"
512 . "$ac_site_file"
514 done
516 if test -r "$cache_file"; then
517 echo "loading cache $cache_file"
518 . $cache_file
519 else
520 echo "creating cache $cache_file"
521 > $cache_file
524 ac_ext=c
525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
526 ac_cpp='$CPP $CPPFLAGS'
527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
529 cross_compiling=$ac_cv_prog_cc_cross
531 ac_exeext=
532 ac_objext=o
533 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
534 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
535 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
536 ac_n= ac_c='
537 ' ac_t=' '
538 else
539 ac_n=-n ac_c= ac_t=
541 else
542 ac_n= ac_c='\c' ac_t=
547 ac_aux_dir=
548 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
549 if test -f $ac_dir/install-sh; then
550 ac_aux_dir=$ac_dir
551 ac_install_sh="$ac_aux_dir/install-sh -c"
552 break
553 elif test -f $ac_dir/install.sh; then
554 ac_aux_dir=$ac_dir
555 ac_install_sh="$ac_aux_dir/install.sh -c"
556 break
558 done
559 if test -z "$ac_aux_dir"; then
560 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
562 ac_config_guess=$ac_aux_dir/config.guess
563 ac_config_sub=$ac_aux_dir/config.sub
564 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
567 # Do some error checking and defaulting for the host and target type.
568 # The inputs are:
569 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
571 # The rules are:
572 # 1. You are not allowed to specify --host, --target, and nonopt at the
573 # same time.
574 # 2. Host defaults to nonopt.
575 # 3. If nonopt is not specified, then host defaults to the current host,
576 # as determined by config.guess.
577 # 4. Target and build default to nonopt.
578 # 5. If nonopt is not specified, then target and build default to host.
580 # The aliases save the names the user supplied, while $host etc.
581 # will get canonicalized.
582 case $host---$target---$nonopt in
583 NONE---*---* | *---NONE---* | *---*---NONE) ;;
584 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
585 esac
588 # Make sure we can run config.sub.
589 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
590 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
593 echo $ac_n "checking host system type""... $ac_c" 1>&6
594 echo "configure:595: checking host system type" >&5
596 host_alias=$host
597 case "$host_alias" in
598 NONE)
599 case $nonopt in
600 NONE)
601 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
602 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
603 fi ;;
604 *) host_alias=$nonopt ;;
605 esac ;;
606 esac
608 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
609 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
610 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
611 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
612 echo "$ac_t""$host" 1>&6
614 echo $ac_n "checking target system type""... $ac_c" 1>&6
615 echo "configure:616: checking target system type" >&5
617 target_alias=$target
618 case "$target_alias" in
619 NONE)
620 case $nonopt in
621 NONE) target_alias=$host_alias ;;
622 *) target_alias=$nonopt ;;
623 esac ;;
624 esac
626 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
627 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
628 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
629 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
630 echo "$ac_t""$target" 1>&6
632 echo $ac_n "checking build system type""... $ac_c" 1>&6
633 echo "configure:634: checking build system type" >&5
635 build_alias=$build
636 case "$build_alias" in
637 NONE)
638 case $nonopt in
639 NONE) build_alias=$host_alias ;;
640 *) build_alias=$nonopt ;;
641 esac ;;
642 esac
644 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
645 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
646 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
647 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
648 echo "$ac_t""$build" 1>&6
650 test "$host_alias" != "$target_alias" &&
651 test "$program_prefix$program_suffix$program_transform_name" = \
652 NONENONEs,x,x, &&
653 program_prefix=${target_alias}-
655 if test "$program_transform_name" = s,x,x,; then
656 program_transform_name=
657 else
658 # Double any \ or $. echo might interpret backslashes.
659 cat <<\EOF_SED > conftestsed
660 s,\\,\\\\,g; s,\$,$$,g
661 EOF_SED
662 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
663 rm -f conftestsed
665 test "$program_prefix" != NONE &&
666 program_transform_name="s,^,${program_prefix},; $program_transform_name"
667 # Use a double $ so make ignores it.
668 test "$program_suffix" != NONE &&
669 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
671 # sed with no file args requires a program.
672 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
675 # Get 'install' or 'install-sh' and its variants.
676 # Find a good install program. We prefer a C program (faster),
677 # so one script is as good as another. But avoid the broken or
678 # incompatible versions:
679 # SysV /etc/install, /usr/sbin/install
680 # SunOS /usr/etc/install
681 # IRIX /sbin/install
682 # AIX /bin/install
683 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
684 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
685 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
686 # ./install, which can be erroneously created by make from ./install.sh.
687 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
688 echo "configure:689: checking for a BSD compatible install" >&5
689 if test -z "$INSTALL"; then
690 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
691 echo $ac_n "(cached) $ac_c" 1>&6
692 else
693 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
694 for ac_dir in $PATH; do
695 # Account for people who put trailing slashes in PATH elements.
696 case "$ac_dir/" in
697 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
699 # OSF1 and SCO ODT 3.0 have their own names for install.
700 # Don't use installbsd from OSF since it installs stuff as root
701 # by default.
702 for ac_prog in ginstall scoinst install; do
703 if test -f $ac_dir/$ac_prog; then
704 if test $ac_prog = install &&
705 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
706 # AIX install. It has an incompatible calling convention.
708 else
709 ac_cv_path_install="$ac_dir/$ac_prog -c"
710 break 2
713 done
715 esac
716 done
717 IFS="$ac_save_IFS"
720 if test "${ac_cv_path_install+set}" = set; then
721 INSTALL="$ac_cv_path_install"
722 else
723 # As a last resort, use the slow shell script. We don't cache a
724 # path for INSTALL within a source directory, because that will
725 # break other packages using the cache if that directory is
726 # removed, or if the path is relative.
727 INSTALL="$ac_install_sh"
730 echo "$ac_t""$INSTALL" 1>&6
732 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
733 # It thinks the first close brace ends the variable substitution.
734 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
736 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
738 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
740 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
741 echo "configure:742: checking whether ln works" >&5
742 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
743 echo $ac_n "(cached) $ac_c" 1>&6
744 else
745 rm -f conftestdata_t
746 echo >conftestdata_f
747 if ln conftestdata_f conftestdata_t 2>/dev/null
748 then
749 acx_cv_prog_LN=ln
750 else
751 acx_cv_prog_LN=no
753 rm -f conftestdata_f conftestdata_t
756 if test $acx_cv_prog_LN = no; then
757 LN="cp"
758 echo "$ac_t""no, using $LN" 1>&6
759 else
760 LN="$acx_cv_prog_LN"
761 echo "$ac_t""yes" 1>&6
764 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
765 echo "configure:766: checking whether ln -s works" >&5
766 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
767 echo $ac_n "(cached) $ac_c" 1>&6
768 else
769 rm -f conftestdata
770 if ln -s X conftestdata 2>/dev/null
771 then
772 rm -f conftestdata
773 ac_cv_prog_LN_S="ln -s"
774 else
775 ac_cv_prog_LN_S=ln
778 LN_S="$ac_cv_prog_LN_S"
779 if test "$ac_cv_prog_LN_S" = "ln -s"; then
780 echo "$ac_t""yes" 1>&6
781 else
782 echo "$ac_t""no" 1>&6
786 ### we might need to use some other shell than /bin/sh for running subshells
787 ### If we are on Windows, search for the shell. This will permit people
788 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
789 ### without also having to set CONFIG_SHELL. This code will work when
790 ### using bash, which sets OSTYPE.
791 case "${OSTYPE}" in
792 *win32*)
793 if test x${CONFIG_SHELL} = x ; then
794 if test ! -f /bin/sh ; then
795 if test x${SHELL} != x && test -f ${SHELL} ; then
796 CONFIG_SHELL=${SHELL}
797 export CONFIG_SHELL
798 else
799 for prog in sh sh.exe bash bash.exe; do
800 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
801 for dir in $PATH; do
802 test -z "$dir" && dir=.
803 if test -f $dir/$prog; then
804 CONFIG_SHELL=$dir/$prog
805 export CONFIG_SHELL
806 break
808 done
809 IFS="$save_ifs"
810 test -n "${CONFIG_SHELL}" && break
811 done
816 esac
818 config_shell=${CONFIG_SHELL-/bin/sh}
820 progname=$0
821 # if PWD already has a value, it is probably wrong.
822 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
824 # If we're building in the source directory, error.
825 if test "${srcdir}" = "." ; then
826 { echo "configure: error: Building in the source directory is not supported in this release. See http://gcc.gnu.org/install/configure.html for more details." 1>&2; exit 1; }
829 # Export original configure arguments for use by sub-configures. These
830 # will be expanded by make, so quote '$'.
831 tmp="$progname $@"
832 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
833 $tmp
834 EOF_SED
835 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
836 rm -f conftestsed.out
839 moveifchange=${srcdir}/move-if-change
841 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
843 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
844 # a relative path.
845 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
846 INSTALL="${srcpwd}/install-sh -c"
849 # Set srcdir to "." if that's what it is.
850 # This is important for multilib support.
851 pwd=`${PWDCMD-pwd}`
852 if test "${pwd}" = "${srcpwd}" ; then
853 srcdir=.
856 topsrcdir=$srcpwd
858 extra_host_args=
860 # Define the trigger file to make sure configure will re-run whenever
861 # the gcc version number changes.
863 if test "${with_gcc_version_trigger+set}" = set; then
864 gcc_version_trigger=$with_gcc_version_trigger
865 else
866 gcc_version_trigger=$topsrcdir/gcc/version.c
868 if test -f "${gcc_version_trigger}"; then
869 gcc_version_full=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
870 else
871 gcc_version_full=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
873 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
878 if test -f $gcc_version_trigger ; then
879 case "$ac_configure_args" in
880 *--with-gcc-version-trigger=$gcc_version_trigger* )
883 # Add to all subconfigure arguments: build, host, and target.
884 ac_configure_args="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger"
886 esac
887 else
888 gcc_version_trigger=
891 ### To add a new directory to the tree, first choose whether it is a target
892 ### or a host dependent tool. Then put it into the appropriate list
893 ### (library or tools, host or target), doing a dependency sort.
895 # Subdirs will be configured in the order listed in build_configdirs,
896 # configdirs, or target_configdirs; see the serialization section below.
898 # Dependency sorting is only needed when *configuration* must be done in
899 # a particular order. In all cases a dependency should be specified in
900 # the Makefile, whether or not it's implicitly specified here.
902 # Double entries in build_configdirs, configdirs, or target_configdirs may
903 # cause circular dependencies and break everything horribly.
905 # these library is used by various programs built for the build
906 # environment
908 build_libs="build-libiberty"
910 # these tools are built for the build environment
911 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
913 # these libraries are used by various programs built for the host environment
915 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp"
917 # these tools are built for the host environment
918 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
919 # know that we are building the simulator.
920 # binutils, gas and ld appear in that order because it makes sense to run
921 # "make check" in that particular order.
922 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar"
924 # libgcj represents the runtime libraries only used by gcj.
925 libgcj="target-libffi \
926 target-boehm-gc \
927 target-zlib \
928 target-qthreads \
929 target-libjava"
931 # these libraries are built for the target environment, and are built after
932 # the host libraries and the host tools (which may be a cross compiler)
934 target_libraries="target-libiberty \
935 target-libgloss \
936 target-newlib \
937 target-libstdc++-v3 \
938 target-libmudflap \
939 target-libgfortran \
940 ${libgcj} \
941 target-libobjc \
942 target-libada"
944 # these tools are built using the target libraries, and are intended to
945 # run only in the target environment
947 # note: any program that *uses* libraries that are in the "target_libraries"
948 # list belongs in this list. those programs are also very likely
949 # candidates for the "native_only" list which follows
951 target_tools="target-examples target-groff target-gperf target-rda"
953 ################################################################################
955 ## All tools belong in one of the four categories, and are assigned above
956 ## We assign ${configdirs} this way to remove all embedded newlines. This
957 ## is important because configure will choke if they ever get through.
958 ## ${configdirs} is directories we build using the host tools.
959 ## ${target_configdirs} is directories we build using the target tools.
960 configdirs=`echo ${host_libs} ${host_tools}`
961 target_configdirs=`echo ${target_libraries} ${target_tools}`
962 build_configdirs=`echo ${build_libs} ${build_tools}`
964 ################################################################################
966 srcname="gnu development package"
968 # This gets set non-empty for some net releases of packages.
969 appdirs=""
971 # Define is_cross_compiler to save on calls to 'test'.
972 is_cross_compiler=
973 if test x"${host}" = x"${target}" ; then
974 is_cross_compiler=no
975 else
976 is_cross_compiler=yes
979 # Find the build and target subdir names.
980 case ${build_alias} in
981 "") build_noncanonical=${build} ;;
982 *) build_noncanonical=${build_alias} ;;
983 esac
985 case ${host_alias} in
986 "") host_noncanonical=${build_noncanonical} ;;
987 *) host_noncanonical=${host_alias} ;;
988 esac
990 case ${target_alias} in
991 "") target_noncanonical=${host_noncanonical} ;;
992 *) target_noncanonical=${target_alias} ;;
993 esac
995 # Prefix 'build-' so this never conflicts with target_subdir.
996 build_subdir="build-${build_noncanonical}"
997 # Not really a subdirectory, but here for completeness.
998 host_subdir=.
999 # No prefix.
1000 target_subdir=${target_noncanonical}
1003 # Skipdirs are removed silently.
1004 skipdirs=
1005 # Noconfigdirs are removed loudly.
1006 noconfigdirs=""
1008 use_gnu_ld=
1009 # Make sure we don't let GNU ld be added if we didn't want it.
1010 if test x$with_gnu_ld = xno ; then
1011 use_gnu_ld=no
1012 noconfigdirs="$noconfigdirs ld"
1015 use_gnu_as=
1016 # Make sure we don't let GNU as be added if we didn't want it.
1017 if test x$with_gnu_as = xno ; then
1018 use_gnu_as=no
1019 noconfigdirs="$noconfigdirs gas"
1022 # some tools are so dependent upon X11 that if we're not building with X,
1023 # it's not even worth trying to configure, much less build, that tool.
1025 case ${with_x} in
1026 yes | "") ;; # the default value for this tree is that X11 is available
1028 skipdirs="${skipdirs} tk itcl libgui"
1029 # We won't be able to build gdbtk without X.
1030 enable_gdbtk=no
1032 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1033 esac
1035 # Some tools are only suitable for building in a "native" situation.
1036 # Remove these if host!=target.
1037 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"
1039 # Similarly, some are only suitable for cross toolchains.
1040 # Remove these if host=target.
1041 cross_only="target-libgloss target-newlib target-opcodes"
1043 case $is_cross_compiler in
1044 no) skipdirs="${skipdirs} ${cross_only}" ;;
1045 yes) skipdirs="${skipdirs} ${native_only}" ;;
1046 esac
1048 # If both --with-headers and --with-libs are specified, default to
1049 # --without-newlib.
1050 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1051 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1052 if test x"${with_newlib}" = x ; then
1053 with_newlib=no
1057 # Recognize --with-newlib/--without-newlib.
1058 case ${with_newlib} in
1059 no) skipdirs="${skipdirs} target-newlib" ;;
1060 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1061 esac
1063 # Configure extra directories which are host specific
1065 case "${host}" in
1066 *-cygwin*)
1067 configdirs="$configdirs libtermcap" ;;
1068 esac
1070 # Remove more programs from consideration, based on the host or
1071 # target this usually means that a port of the program doesn't
1072 # exist yet.
1074 case "${host}" in
1075 hppa*64*-*-*)
1076 noconfigdirs="$noconfigdirs byacc"
1078 i[3456789]86-*-vsta)
1079 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1081 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1082 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1084 i[3456789]86-*-mingw32*)
1085 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1086 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1088 i[3456789]86-*-beos*)
1089 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1091 *-*-cygwin*)
1092 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1094 *-*-netbsd*)
1095 noconfigdirs="$noconfigdirs rcs"
1097 ppc*-*-pe)
1098 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1100 powerpc-*-beos*)
1101 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1103 esac
1106 # Check whether --enable-libada or --disable-libada was given.
1107 if test "${enable_libada+set}" = set; then
1108 enableval="$enable_libada"
1109 ENABLE_LIBADA=$enableval
1110 else
1111 ENABLE_LIBADA=yes
1114 if test "${ENABLE_LIBADA}" != "yes" ; then
1115 noconfigdirs="$noconfigdirs target-libada"
1118 # Save it here so that, even in case of --enable-libgcj, if the Java
1119 # front-end isn't enabled, we still get libgcj disabled.
1120 libgcj_saved=$libgcj
1121 case $enable_libgcj in
1122 yes)
1123 # If we reset it here, it won't get added to noconfigdirs in the
1124 # target-specific build rules, so it will be forcibly enabled
1125 # (unless the Java language itself isn't enabled).
1126 libgcj=
1129 # Make sure we get it printed in the list of not supported target libs.
1130 noconfigdirs="$noconfigdirs ${libgcj}"
1132 esac
1135 # Allow --disable-libmudflap to exclude target-libmudflap
1136 case $enable_libmudflap in
1137 yes)
1140 noconfigdirs="$noconfigdirs target-libmudflap"
1143 case "${target}" in
1144 *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
1145 # Enable libmudflap by default in GNU and friends.
1147 *-*-freebsd*)
1148 # Enable libmudflap by default in FreeBSD.
1151 # Disable it by default everywhere else.
1152 noconfigdirs="$noconfigdirs target-libmudflap"
1154 esac
1155 esac
1158 case "${target}" in
1159 *-*-chorusos)
1160 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1162 powerpc-*-darwin*)
1163 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1165 *-*-darwin*)
1166 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1167 noconfigdirs="$noconfigdirs ${libgcj}"
1169 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1170 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1172 *-*-freebsd*)
1173 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1174 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1175 && test -f /usr/local/include/gmp.h; then
1176 with_gmp=/usr/local
1179 # Skip some stuff that's unsupported on some FreeBSD configurations.
1180 case "${target}" in
1181 i*86-*-*) ;;
1182 alpha*-*-*) ;;
1184 noconfigdirs="$noconfigdirs ${libgcj}"
1186 esac
1188 *-*-kaos*)
1189 # Remove unsupported stuff on all kaOS configurations.
1190 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1191 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1192 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1193 noconfigdirs="$noconfigdirs target-libgloss"
1195 *-*-netbsd*)
1196 # Skip some stuff on all NetBSD configurations.
1197 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1199 # Skip some stuff that's unsupported on some NetBSD configurations.
1200 case "${target}" in
1201 i*86-*-netbsdelf*) ;;
1202 arm*-*-netbsdelf*) ;;
1204 noconfigdirs="$noconfigdirs ${libgcj}"
1206 esac
1208 *-*-netware*)
1209 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1211 *-*-rtems*)
1212 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1214 *-*-uclinux*)
1215 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1217 *-*-vxworks*)
1218 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}"
1220 alpha*-dec-osf*)
1221 # ld works, but does not support shared libraries.
1222 # newlib is not 64 bit ready. I'm not sure about fileutils.
1223 # gas doesn't generate exception information.
1224 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1226 alpha*-*-*vms*)
1227 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1229 alpha*-*-linux*)
1230 # newlib is not 64 bit ready
1231 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1233 alpha*-*-*)
1234 # newlib is not 64 bit ready
1235 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1237 am33_2.0-*-linux*)
1238 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1240 sh-*-linux*)
1241 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1243 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1244 noconfigdirs="$noconfigdirs ${libgcj}"
1245 noconfigdirs="$noconfigdirs target-examples"
1246 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1247 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1248 noconfigdirs="$noconfigdirs expect dejagnu"
1249 # the C++ libraries don't build on top of CE's C libraries
1250 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1251 noconfigdirs="$noconfigdirs target-newlib"
1252 case "${host}" in
1253 *-*-cygwin*) ;; # keep gdb and readline
1254 *) noconfigdirs="$noconfigdirs gdb readline"
1256 esac
1258 arc-*-*)
1259 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1261 arm-semi-aof )
1263 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1264 noconfigdirs="$noconfigdirs ${libgcj}"
1266 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1267 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1269 arm*-*-symbianelf*)
1270 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1272 arm-*-pe*)
1273 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1275 thumb-*-coff)
1276 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1278 thumb-*-elf)
1279 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1281 thumb-*-pe)
1282 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1284 arm-*-riscix*)
1285 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1287 avr-*-*)
1288 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1290 c4x-*-* | tic4x-*-*)
1291 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1293 c54x*-*-* | tic54x-*-*)
1294 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1296 cris-*-* | crisv32-*-*)
1297 case "${target}" in
1298 *-*-elf | *-*-aout)
1299 noconfigdirs="$noconfigdirs ${libgcj}";;
1301 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1302 esac
1304 crx-*-*)
1305 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1307 d10v-*-*)
1308 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1310 d30v-*-*)
1311 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1313 fr30-*-elf*)
1314 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1316 frv-*-*)
1317 noconfigdirs="$noconfigdirs ${libgcj}"
1319 h8300*-*-*)
1320 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1322 h8500-*-*)
1323 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1325 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1327 hppa*64*-*-linux* | parisc*64*-*-linux*)
1328 # In this case, it's because the hppa64-linux target is for
1329 # the kernel only at this point and has no libc, and thus no
1330 # headers, crt*.o, etc., all of which are needed by these.
1331 noconfigdirs="$noconfigdirs target-zlib"
1333 parisc*-*-linux* | hppa*-*-linux*)
1335 hppa*-*-*elf* | \
1336 hppa*-*-lites* | \
1337 hppa*-*-openbsd* | \
1338 hppa*64*-*-*)
1339 noconfigdirs="$noconfigdirs ${libgcj}"
1341 hppa*-*-*)
1342 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1343 # build on HP-UX 10.20.
1344 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1346 i960-*-*)
1347 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1349 ia64*-*-elf*)
1350 # No gdb support yet.
1351 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1353 ia64*-**-hpux*)
1354 # No gdb or ld support yet.
1355 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1357 i370-*-opened*)
1359 i[3456789]86-*-coff | i[3456789]86-*-elf)
1360 noconfigdirs="$noconfigdirs ${libgcj}"
1362 i[3456789]86-*-linux*)
1363 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1364 # not build java stuff by default.
1365 case "${target}" in
1366 *-*-*libc1*)
1367 noconfigdirs="$noconfigdirs ${libgcj}";;
1368 esac
1370 # This section makes it possible to build newlib natively on linux.
1371 # If we are using a cross compiler then don't configure newlib.
1372 if test x${is_cross_compiler} != xno ; then
1373 noconfigdirs="$noconfigdirs target-newlib"
1375 noconfigdirs="$noconfigdirs target-libgloss"
1376 # If we are not using a cross compiler, do configure newlib.
1377 # Note however, that newlib will only be configured in this situation
1378 # if the --with-newlib option has been given, because otherwise
1379 # 'target-newlib' will appear in skipdirs.
1381 i[3456789]86-*-mingw32*)
1382 target_configdirs="$target_configdirs target-mingw"
1383 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1385 # Can't build gdb for mingw32 if not native.
1386 case "${host}" in
1387 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1388 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1390 esac
1392 *-*-cygwin*)
1393 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1394 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1395 # always build newlib if winsup directory is present.
1396 if test -d "$srcdir/winsup"; then
1397 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1398 elif test -d "$srcdir/newlib"; then
1399 echo "Warning: winsup is missing so newlib can't be built."
1402 # Can't build gdb for Cygwin if not native.
1403 case "${host}" in
1404 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1405 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1407 esac
1409 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1410 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1412 i[3456789]86-*-pe)
1413 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1415 i[3456789]86-*-sco3.2v5*)
1416 # The linker does not yet know about weak symbols in COFF,
1417 # and is not configured to handle mixed ELF and COFF.
1418 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1420 i[3456789]86-*-sco*)
1421 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1423 i[3456789]86-*-solaris2*)
1424 noconfigdirs="$noconfigdirs target-libgloss"
1426 i[3456789]86-*-sysv4*)
1427 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1429 i[3456789]86-*-beos*)
1430 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1432 m32r-*-*)
1433 noconfigdirs="$noconfigdirs ${libgcj}"
1435 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1436 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1438 m68k-*-elf*)
1439 noconfigdirs="$noconfigdirs ${libgcj}"
1441 m68k-*-coff*)
1442 noconfigdirs="$noconfigdirs ${libgcj}"
1444 mcore-*-pe*)
1445 # The EPOC C++ environment does not support exceptions or rtti,
1446 # and so building libstdc++-v3 tends not to always work.
1447 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1449 mmix-*-*)
1450 noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss target-libgfortran"
1452 mn10200-*-*)
1453 noconfigdirs="$noconfigdirs ${libgcj}"
1455 mn10300-*-*)
1456 noconfigdirs="$noconfigdirs ${libgcj}"
1458 powerpc-*-aix*)
1459 # copied from rs6000-*-* entry
1460 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1462 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1463 target_configdirs="$target_configdirs target-winsup"
1464 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1465 # always build newlib.
1466 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1468 # This is temporary until we can link against shared libraries
1469 powerpcle-*-solaris*)
1470 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1472 powerpc-*-beos*)
1473 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1475 powerpc-*-eabi)
1476 noconfigdirs="$noconfigdirs ${libgcj}"
1478 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1480 rs6000-*-lynxos*)
1481 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1483 rs6000-*-aix*)
1484 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1486 rs6000-*-*)
1487 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1489 m68k-apollo-*)
1490 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1492 mips*-*-irix5*)
1493 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1495 mips*-*-irix6*)
1496 # Linking libjava exceeds command-line length limits on at least
1497 # IRIX 6.2, but not on IRIX 6.5.
1498 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1499 # <oldham@codesourcery.com>
1500 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1502 mips*-dec-bsd*)
1503 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1505 mips*-*-bsd*)
1506 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1508 mipstx39-*-*)
1509 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1511 mips64*-*-linux*)
1512 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1514 mips*-*-linux*)
1515 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1517 mips*-*-*)
1518 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1520 romp-*-*)
1521 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1523 sh-*-* | sh64-*-*)
1524 case "${host}" in
1525 i[3456789]86-*-vsta) ;; # don't add gprof back in
1526 i[3456789]86-*-go32*) ;; # don't add gprof back in
1527 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1528 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1529 esac
1530 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1532 sparc-*-elf*)
1533 noconfigdirs="$noconfigdirs ${libgcj}"
1535 sparc64-*-elf*)
1536 noconfigdirs="$noconfigdirs ${libgcj}"
1538 sparclite-*-*)
1539 noconfigdirs="$noconfigdirs ${libgcj}"
1541 sparc-*-sunos4*)
1542 noconfigdirs="$noconfigdirs ${libgcj}"
1543 if test x${is_cross_compiler} != xno ; then
1544 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1545 else
1546 use_gnu_ld=no
1549 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1550 noconfigdirs="$noconfigdirs ${libgcj}"
1552 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1554 v810-*-*)
1555 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1557 v850-*-*)
1558 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1560 v850e-*-*)
1561 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1563 v850ea-*-*)
1564 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1566 vax-*-vms)
1567 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1569 vax-*-*)
1570 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1572 xtensa-*-*)
1573 noconfigdirs="$noconfigdirs ${libgcj}"
1575 ip2k-*-*)
1576 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1578 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1579 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1581 *-*-lynxos*)
1582 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1584 *-*-*)
1585 noconfigdirs="$noconfigdirs ${libgcj}"
1587 esac
1589 # If we aren't building newlib, then don't build libgloss, since libgloss
1590 # depends upon some newlib header files.
1591 case "${noconfigdirs}" in
1592 *target-libgloss*) ;;
1593 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1594 esac
1596 # Work in distributions that contain no compiler tools, like Autoconf.
1597 tentative_cc=""
1598 host_makefile_frag=/dev/null
1599 if test -d ${srcdir}/config ; then
1600 case "${host}" in
1601 m68k-hp-hpux*)
1602 # Avoid "too much defining" errors from HPUX compiler.
1603 tentative_cc="cc -Wp,-H256000"
1604 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1605 # If it's HP/UX ar, this should be harmless.
1606 RANLIB="ar ts"
1608 m68k-apollo-sysv*)
1609 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1611 m68k-apollo-bsd*)
1612 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1613 # chokes on bfd, the compiler won't let you assign integers to enums, and
1614 # other problems. Defining CC to gcc is a questionable way to say "don't use
1615 # the apollo compiler" (the preferred version of GCC could be called cc,
1616 # or whatever), but I'm not sure leaving CC as cc is any better...
1617 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1618 # Used to have BISON=yacc.
1619 tentative_cc=gcc
1621 m88k-dg-dgux*)
1622 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1624 m88k-harris-cxux*)
1625 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1626 tentative_cc="cc -Xa"
1627 host_makefile_frag="config/mh-cxux"
1629 m88k-motorola-sysv*)
1631 mips*-dec-ultrix*)
1632 tentative_cc="cc -Wf,-XNg1000"
1633 host_makefile_frag="config/mh-decstation"
1635 mips*-nec-sysv4*)
1636 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1637 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1638 host_makefile_frag="config/mh-necv4"
1640 mips*-sgi-irix4*)
1641 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1642 # environment. Also bump switch table size so that cp-parse will
1643 # compile. Bump string length limit so linker builds.
1644 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1646 mips*-*-sysv4*)
1647 host_makefile_frag="config/mh-sysv4"
1649 mips*-*-sysv*)
1650 # This is for a MIPS running RISC/os 4.52C.
1652 # This is needed for GDB, but needs to be in the top-level make because
1653 # if a library is compiled with the bsd headers and gets linked with the
1654 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1655 # a different size).
1656 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1657 # known except to select the sysv environment. Could we use /proc instead?
1658 # These "sysv environments" and "bsd environments" often end up being a pain.
1660 # This is not part of CFLAGS because perhaps not all C compilers have this
1661 # option.
1662 tentative_cc="cc -systype sysv"
1664 i370-ibm-opened*)
1665 tentative_cc="c89"
1667 i[3456789]86-*-sysv5*)
1668 host_makefile_frag="config/mh-sysv5"
1670 i[3456789]86-*-dgux*)
1671 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1672 host_makefile_frag="config/mh-dgux386"
1674 i[3456789]86-ncr-sysv4.3*)
1675 # The MetaWare compiler will generate a copyright message unless you
1676 # turn it off by adding the -Hnocopyr flag.
1677 tentative_cc="cc -Hnocopyr"
1679 i[3456789]86-ncr-sysv4*)
1680 # for an NCR 3000 (i486/SVR4) system.
1681 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1682 # This compiler not only emits obnoxious copyright messages every time
1683 # you run it, but it chokes and dies on a whole bunch of GNU source
1684 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1685 tentative_cc="/usr/ccs/ATT/cc"
1686 host_makefile_frag="config/mh-ncr3000"
1688 i[3456789]86-*-sco3.2v5*)
1690 i[3456789]86-*-sco*)
1691 # The native C compiler botches some simple uses of const. Unfortunately,
1692 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1693 tentative_cc="cc -Dconst="
1694 host_makefile_frag="config/mh-sco"
1696 i[3456789]86-*-udk*)
1697 host_makefile_frag="config/mh-sysv5"
1699 i[3456789]86-*-solaris2*)
1700 host_makefile_frag="config/mh-sysv4"
1702 i[3456789]86-*-msdosdjgpp*)
1703 host_makefile_frag="config/mh-djgpp"
1705 *-cygwin*)
1706 host_makefile_frag="config/mh-cygwin"
1708 *-mingw32*)
1709 host_makefile_frag="config/mh-mingw32"
1711 *-interix*)
1712 host_makefile_frag="config/mh-interix"
1714 vax-*-ultrix2*)
1715 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1716 tentative_cc=gcc
1718 *-*-solaris2*)
1719 host_makefile_frag="config/mh-solaris"
1721 m68k-sun-sunos*)
1722 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1723 # without overflowing the jump tables (-J says to use a 32 bit table)
1724 tentative_cc="cc -J"
1726 *-hp-hpux*)
1727 tentative_cc="cc -Wp,-H256000"
1729 *-*-hiux*)
1730 tentative_cc="cc -Wp,-H256000"
1732 rs6000-*-lynxos*)
1733 # /bin/cc is less than useful for our purposes. Always use GCC
1734 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1735 host_makefile_frag="config/mh-lynxrs6k"
1737 powerpc-*-darwin*)
1738 host_makefile_frag="config/mh-ppc-darwin"
1740 *-*-lynxos*)
1741 # /bin/cc is less than useful for our purposes. Always use GCC
1742 tentative_cc="/bin/gcc"
1744 *-*-sysv4*)
1745 host_makefile_frag="config/mh-sysv4"
1747 # This is placed last to prevent interfering with the cases above.
1748 i[3456789]86-*-*)
1749 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1750 host_makefile_frag="config/mh-x86omitfp"
1752 esac
1755 # If we aren't going to be using gcc, see if we can extract a definition
1756 # of CC from the fragment.
1757 # Actually, use the 'pre-extracted' version above.
1758 if test -z "${CC}" && test "${build}" = "${host}" ; then
1759 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1760 found=
1761 for dir in $PATH; do
1762 test -z "$dir" && dir=.
1763 if test -f $dir/gcc; then
1764 found=yes
1765 break
1767 done
1768 IFS="$save_ifs"
1769 if test -z "${found}" && test -n "${tentative_cc}" ; then
1770 CC=$tentative_cc
1774 if test "${build}" != "${host}" ; then
1775 # If we are doing a Canadian Cross, in which the host and build systems
1776 # are not the same, we set reasonable default values for the tools.
1778 CC=${CC-${host_alias}-gcc}
1779 CFLAGS=${CFLAGS-"-g -O2"}
1780 CXX=${CXX-${host_alias}-c++}
1781 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1782 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1783 CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc}
1784 CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++}
1785 GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj}
1786 GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
1787 BUILD_PREFIX=${build_alias}-
1788 BUILD_PREFIX_1=${build_alias}-
1790 else
1791 # Set reasonable default values for some tools even if not Canadian.
1792 # Of course, these are different reasonable default values, originally
1793 # specified directly in the Makefile.
1794 # We don't export, so that autoconf can do its job.
1795 # Note that all these settings are above the fragment inclusion point
1796 # in Makefile.in, so can still be overridden by fragments.
1797 # This is all going to change when we autoconfiscate...
1799 CC_FOR_BUILD="\$(CC)"
1800 GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
1801 BUILD_PREFIX=
1802 BUILD_PREFIX_1=loser-
1804 # Extract the first word of "gcc", so it can be a program name with args.
1805 set dummy gcc; ac_word=$2
1806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1807 echo "configure:1808: checking for $ac_word" >&5
1808 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1810 else
1811 if test -n "$CC"; then
1812 ac_cv_prog_CC="$CC" # Let the user override the test.
1813 else
1814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1815 ac_dummy="$PATH"
1816 for ac_dir in $ac_dummy; do
1817 test -z "$ac_dir" && ac_dir=.
1818 if test -f $ac_dir/$ac_word; then
1819 ac_cv_prog_CC="gcc"
1820 break
1822 done
1823 IFS="$ac_save_ifs"
1826 CC="$ac_cv_prog_CC"
1827 if test -n "$CC"; then
1828 echo "$ac_t""$CC" 1>&6
1829 else
1830 echo "$ac_t""no" 1>&6
1833 if test -z "$CC"; then
1834 # Extract the first word of "cc", so it can be a program name with args.
1835 set dummy cc; ac_word=$2
1836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1837 echo "configure:1838: checking for $ac_word" >&5
1838 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1840 else
1841 if test -n "$CC"; then
1842 ac_cv_prog_CC="$CC" # Let the user override the test.
1843 else
1844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1845 ac_prog_rejected=no
1846 ac_dummy="$PATH"
1847 for ac_dir in $ac_dummy; do
1848 test -z "$ac_dir" && ac_dir=.
1849 if test -f $ac_dir/$ac_word; then
1850 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1851 ac_prog_rejected=yes
1852 continue
1854 ac_cv_prog_CC="cc"
1855 break
1857 done
1858 IFS="$ac_save_ifs"
1859 if test $ac_prog_rejected = yes; then
1860 # We found a bogon in the path, so make sure we never use it.
1861 set dummy $ac_cv_prog_CC
1862 shift
1863 if test $# -gt 0; then
1864 # We chose a different compiler from the bogus one.
1865 # However, it has the same basename, so the bogon will be chosen
1866 # first if we set CC to just the basename; use the full file name.
1867 shift
1868 set dummy "$ac_dir/$ac_word" "$@"
1869 shift
1870 ac_cv_prog_CC="$@"
1875 CC="$ac_cv_prog_CC"
1876 if test -n "$CC"; then
1877 echo "$ac_t""$CC" 1>&6
1878 else
1879 echo "$ac_t""no" 1>&6
1882 if test -z "$CC"; then
1883 case "`uname -s`" in
1884 *win32* | *WIN32*)
1885 # Extract the first word of "cl", so it can be a program name with args.
1886 set dummy cl; ac_word=$2
1887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1888 echo "configure:1889: checking for $ac_word" >&5
1889 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1891 else
1892 if test -n "$CC"; then
1893 ac_cv_prog_CC="$CC" # Let the user override the test.
1894 else
1895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1896 ac_dummy="$PATH"
1897 for ac_dir in $ac_dummy; do
1898 test -z "$ac_dir" && ac_dir=.
1899 if test -f $ac_dir/$ac_word; then
1900 ac_cv_prog_CC="cl"
1901 break
1903 done
1904 IFS="$ac_save_ifs"
1907 CC="$ac_cv_prog_CC"
1908 if test -n "$CC"; then
1909 echo "$ac_t""$CC" 1>&6
1910 else
1911 echo "$ac_t""no" 1>&6
1914 esac
1916 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1920 echo "configure:1921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1922 ac_ext=c
1923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1924 ac_cpp='$CPP $CPPFLAGS'
1925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1927 cross_compiling=$ac_cv_prog_cc_cross
1929 cat > conftest.$ac_ext << EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1934 main(){return(0);}
1936 if { (eval echo configure:1937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1937 ac_cv_prog_cc_works=yes
1938 # If we can't run a trivial program, we are probably using a cross compiler.
1939 if (./conftest; exit) 2>/dev/null; then
1940 ac_cv_prog_cc_cross=no
1941 else
1942 ac_cv_prog_cc_cross=yes
1944 else
1945 echo "configure: failed program was:" >&5
1946 cat conftest.$ac_ext >&5
1947 ac_cv_prog_cc_works=no
1949 rm -fr conftest*
1950 ac_ext=c
1951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1952 ac_cpp='$CPP $CPPFLAGS'
1953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1955 cross_compiling=$ac_cv_prog_cc_cross
1957 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1958 if test $ac_cv_prog_cc_works = no; then
1959 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1962 echo "configure:1963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1963 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1964 cross_compiling=$ac_cv_prog_cc_cross
1966 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1967 echo "configure:1968: checking whether we are using GNU C" >&5
1968 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1969 echo $ac_n "(cached) $ac_c" 1>&6
1970 else
1971 cat > conftest.c <<EOF
1972 #ifdef __GNUC__
1973 yes;
1974 #endif
1976 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1977 ac_cv_prog_gcc=yes
1978 else
1979 ac_cv_prog_gcc=no
1983 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1985 if test $ac_cv_prog_gcc = yes; then
1986 GCC=yes
1987 else
1988 GCC=
1991 ac_test_CFLAGS="${CFLAGS+set}"
1992 ac_save_CFLAGS="$CFLAGS"
1993 CFLAGS=
1994 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1995 echo "configure:1996: checking whether ${CC-cc} accepts -g" >&5
1996 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1998 else
1999 echo 'void f(){}' > conftest.c
2000 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2001 ac_cv_prog_cc_g=yes
2002 else
2003 ac_cv_prog_cc_g=no
2005 rm -f conftest*
2009 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2010 if test "$ac_test_CFLAGS" = set; then
2011 CFLAGS="$ac_save_CFLAGS"
2012 elif test $ac_cv_prog_cc_g = yes; then
2013 if test "$GCC" = yes; then
2014 CFLAGS="-g -O2"
2015 else
2016 CFLAGS="-g"
2018 else
2019 if test "$GCC" = yes; then
2020 CFLAGS="-O2"
2021 else
2022 CFLAGS=
2027 # We must set the default linker to the linker used by gcc for the correct
2028 # operation of libtool. If LD is not defined and we are using gcc, try to
2029 # set the LD default to the ld used by gcc.
2030 if test -z "$LD"; then
2031 if test "$GCC" = yes; then
2032 case $build in
2033 *-*-mingw*)
2034 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2036 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2037 esac
2038 case $gcc_prog_ld in
2039 # Accept absolute paths.
2040 [\\/]* | [A-Za-z]:[\\/]*)
2041 LD="$gcc_prog_ld" ;;
2042 esac
2046 CXX=${CXX-"c++"}
2047 CFLAGS=${CFLAGS-"-g"}
2048 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2051 if test $host != $build; then
2052 ac_tool_prefix=${host_alias}-
2053 else
2054 ac_tool_prefix=
2059 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2060 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2062 echo "configure:2063: checking for $ac_word" >&5
2063 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2065 else
2066 if test -n "$GNATBIND"; then
2067 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2068 else
2069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2070 ac_dummy="$PATH"
2071 for ac_dir in $ac_dummy; do
2072 test -z "$ac_dir" && ac_dir=.
2073 if test -f $ac_dir/$ac_word; then
2074 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2075 break
2077 done
2078 IFS="$ac_save_ifs"
2081 GNATBIND="$ac_cv_prog_GNATBIND"
2082 if test -n "$GNATBIND"; then
2083 echo "$ac_t""$GNATBIND" 1>&6
2084 else
2085 echo "$ac_t""no" 1>&6
2089 if test -z "$ac_cv_prog_GNATBIND"; then
2090 if test -n "$ac_tool_prefix"; then
2091 # Extract the first word of "gnatbind", so it can be a program name with args.
2092 set dummy gnatbind; ac_word=$2
2093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2094 echo "configure:2095: checking for $ac_word" >&5
2095 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2096 echo $ac_n "(cached) $ac_c" 1>&6
2097 else
2098 if test -n "$GNATBIND"; then
2099 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2100 else
2101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2102 ac_dummy="$PATH"
2103 for ac_dir in $ac_dummy; do
2104 test -z "$ac_dir" && ac_dir=.
2105 if test -f $ac_dir/$ac_word; then
2106 ac_cv_prog_GNATBIND="gnatbind"
2107 break
2109 done
2110 IFS="$ac_save_ifs"
2111 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2114 GNATBIND="$ac_cv_prog_GNATBIND"
2115 if test -n "$GNATBIND"; then
2116 echo "$ac_t""$GNATBIND" 1>&6
2117 else
2118 echo "$ac_t""no" 1>&6
2121 else
2122 GNATBIND="no"
2126 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2127 echo "configure:2128: checking whether compiler driver understands Ada" >&5
2128 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2130 else
2131 cat >conftest.adb <<EOF
2132 procedure conftest is begin null; end conftest;
2134 acx_cv_cc_gcc_supports_ada=no
2135 # There is a bug in old released versions of GCC which causes the
2136 # driver to exit successfully when the appropriate language module
2137 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2138 # Therefore we must check for the error message as well as an
2139 # unsuccessful exit.
2140 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2141 # given a .adb file, but produce no object file. So we must check
2142 # if an object file was really produced to guard against this.
2143 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2144 if test x"$errors" = x && test -f conftest.$ac_objext; then
2145 acx_cv_cc_gcc_supports_ada=yes
2147 rm -f conftest.*
2150 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2152 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2153 have_gnat=yes
2154 else
2155 have_gnat=no
2158 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2159 echo "configure:2160: checking how to compare bootstrapped objects" >&5
2160 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2162 else
2163 echo abfoo >t1
2164 echo cdfoo >t2
2165 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2166 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2167 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2169 else
2170 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2173 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2174 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2176 else
2177 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2180 rm t1 t2
2184 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2185 do_compare="$gcc_cv_prog_cmp_skip"
2189 # Check for GMP and MPFR
2190 gmplibs=
2191 gmpinc=
2192 have_gmp=yes
2193 # Specify a location for mpfr
2194 # check for this first so it ends up on the link line before gmp.
2195 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2196 if test "${with_mpfr_dir+set}" = set; then
2197 withval="$with_mpfr_dir"
2202 if test "x$with_mpfr_dir" != x; then
2203 gmpinc="-I$with_mpfr_dir"
2204 if test -f "$with_mpfr_dir/.libs/libmpfr.a"; then
2205 gmplibs="$with_mpfr_dir/.libs/libmpfr.a"
2206 elif test -f "$with_mpfr_dir/_libs/libmpfr.a"; then
2207 gmplibs="$with_mpfr_dir/_libs/libmpfr.a"
2208 else
2209 gmplibs="$with_mpfr_dir/libmpfr.a"
2211 else
2212 gmplibs="-lmpfr"
2215 # Check whether --with-mpfr or --without-mpfr was given.
2216 if test "${with_mpfr+set}" = set; then
2217 withval="$with_mpfr"
2222 if test "x$with_mpfr" != x; then
2223 gmplibs="-L$with_mpfr/lib $gmplibs"
2224 gmpinc="-I$with_mpfr/include"
2227 # Specify a location for gmp
2228 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2229 if test "${with_gmp_dir+set}" = set; then
2230 withval="$with_gmp_dir"
2235 if test "x$with_gmp_dir" != x; then
2236 gmpinc="$gmpinc -I$with_gmp_dir"
2237 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2238 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2239 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2240 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2242 # One of the later tests will catch the error if neither library is present.
2243 else
2244 gmplibs="$gmplibs -lgmp"
2247 # Check whether --with-gmp or --without-gmp was given.
2248 if test "${with_gmp+set}" = set; then
2249 withval="$with_gmp"
2254 if test "x$with_gmp" != x; then
2255 gmplibs="-L$with_gmp/lib $gmplibs"
2256 gmpinc="-I$with_gmp/include $gmpinc"
2259 saved_CFLAGS="$CFLAGS"
2260 CFLAGS="$CFLAGS $gmpinc"
2261 # Check GMP actually works
2262 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2263 echo "configure:2264: checking for correct version of gmp.h" >&5
2264 cat > conftest.$ac_ext <<EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2267 #include "gmp.h"
2268 int main() {
2270 #if __GNU_MP_VERSION < 3
2271 choke me
2272 #endif
2274 ; return 0; }
2276 if { (eval echo configure:2277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2277 rm -rf conftest*
2278 echo "$ac_t""yes" 1>&6
2279 else
2280 echo "configure: failed program was:" >&5
2281 cat conftest.$ac_ext >&5
2282 rm -rf conftest*
2283 echo "$ac_t""no" 1>&6; have_gmp=no
2285 rm -f conftest*
2287 if test x"$have_gmp" = xyes; then
2288 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2289 echo "configure:2290: checking for MPFR" >&5
2291 saved_LIBS="$LIBS"
2292 LIBS="$LIBS $gmplibs"
2293 cat > conftest.$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2296 #include <gmp.h>
2297 #include <mpfr.h>
2298 int main() {
2299 mpfr_t n; mpfr_init(n);
2300 ; return 0; }
2302 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2303 rm -rf conftest*
2304 echo "$ac_t""yes" 1>&6
2305 else
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2308 rm -rf conftest*
2309 echo "$ac_t""no" 1>&6; have_gmp=no
2311 rm -f conftest*
2312 LIBS="$saved_LIBS"
2313 CFLAGS="$saved_CFLAGS"
2316 # Flags needed for both GMP and/or MPFR
2320 # By default, C is the only stage 1 language.
2321 stage1_languages=c
2324 # Figure out what language subdirectories are present.
2325 # Look if the user specified --enable-languages="..."; if not, use
2326 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2327 # go away some day.
2328 # NB: embedded tabs in this IF block -- do not untabify
2329 if test -d ${srcdir}/gcc; then
2330 if test x"${enable_languages+set}" != xset; then
2331 if test x"${LANGUAGES+set}" = xset; then
2332 enable_languages="${LANGUAGES}"
2333 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2334 else
2335 enable_languages=all
2337 else
2338 if test x"${enable_languages}" = x ||
2339 test x"${enable_languages}" = xyes;
2340 then
2341 echo configure.in: --enable-languages needs at least one language argument 1>&2
2342 exit 1
2345 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2347 # 'fortran' is a compatibility name for 'f95'. We issue a warning and
2348 # make the substitution.
2349 case ,${enable_languages}, in
2350 *,fortran,*)
2351 echo configure.in: warning: the official name for 'fortran' on this branch is 'f95' 1>&2
2352 enable_languages=`echo "${enable_languages}" | sed -e 's/fortran/f95/g'`
2354 esac
2356 # First scan to see if an enabled language requires some other language.
2357 # We assume that a given config-lang.in will list all the language
2358 # front ends it requires, even if some are required indirectly.
2359 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2360 case ${lang_frag} in
2361 ..) ;;
2362 # The odd quoting in the next line works around
2363 # an apparent bug in bash 1.12 on linux.
2364 ${srcdir}/gcc/[*]/config-lang.in) ;;
2366 # From the config-lang.in, get $language, $lang_requires
2367 language=
2368 lang_requires=
2369 . ${lang_frag}
2370 for other in ${lang_requires} ; do
2371 case ,${enable_languages}, in
2372 *,$other,*) ;;
2373 *,all,*) ;;
2374 *,$language,*)
2375 echo " \`$other' language required by \`$language'; enabling" 1>&2
2376 enable_languages="${enable_languages},${other}"
2378 esac
2379 done
2381 esac
2382 done
2384 new_enable_languages=c
2385 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2386 potential_languages=c
2388 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2389 case ${lang_frag} in
2390 ..) ;;
2391 # The odd quoting in the next line works around
2392 # an apparent bug in bash 1.12 on linux.
2393 ${srcdir}/gcc/[*]/config-lang.in) ;;
2395 # From the config-lang.in, get $language, $target_libs,
2396 # $lang_dirs, $boot_language, and $build_by_default
2397 language=
2398 target_libs=
2399 lang_dirs=
2400 boot_language=
2401 build_by_default=
2402 need_gmp=
2403 . ${lang_frag}
2404 potential_languages="${potential_languages},${language}"
2405 # This is quite sensitive to the ordering of the case statement arms.
2406 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2407 *::*:*)
2408 echo "${lang_frag} doesn't set \$language." 1>&2
2409 exit 1
2411 *:ada:no:*)
2412 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2413 add_this_lang=no
2415 *,${language},*:*:*:*)
2416 # Language was explicitly selected; include it.
2417 add_this_lang=yes
2419 *,all,*:*:*:no)
2420 # 'all' was selected, but this is not a default language
2421 # so do not include it.
2422 add_this_lang=no
2424 *,all,*:*:*:*)
2425 # 'all' was selected and this is a default language; include it.
2426 add_this_lang=yes
2429 add_this_lang=no
2431 esac
2433 # Disable languages that need GMP if it isn't available.
2434 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2435 *,${language},*:no:yes)
2436 # Specifically requested language; tell them.
2437 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2439 *:no:yes)
2440 # Silently disable.
2441 add_this_lang=no
2443 esac
2445 case $add_this_lang in
2447 # Remove language-dependent dirs.
2448 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2451 new_enable_languages="$new_enable_languages,$language"
2452 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2453 case ${boot_language} in
2454 yes)
2455 # Add to (comma-separated) list of stage 1 languages.
2456 stage1_languages="${stage1_languages},${language}"
2458 esac
2460 esac
2462 esac
2463 done
2465 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2466 if test "x$missing_languages" != x; then
2467 { echo "configure: error:
2468 The following requested languages were not found: ${missing_languages}
2469 The available languages are: ${potential_languages}" 1>&2; exit 1; }
2472 if test "x$new_enable_languages" != "x$enable_languages"; then
2473 echo The following languages will be built: ${new_enable_languages}
2475 enable_languages="$new_enable_languages"
2476 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2479 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2480 # $build_configdirs and $target_configdirs.
2481 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2483 notsupp=""
2484 for dir in . $skipdirs $noconfigdirs ; do
2485 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2486 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2487 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2488 if test -r $srcdir/$dirname/configure ; then
2489 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2490 true
2491 else
2492 notsupp="$notsupp $dir"
2496 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2497 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2498 if test -r $srcdir/$dirname/configure ; then
2499 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2500 true
2501 else
2502 notsupp="$notsupp $dir"
2506 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2507 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2508 if test -r $srcdir/$dirname/configure ; then
2509 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2510 true
2511 else
2512 notsupp="$notsupp $dir"
2516 done
2518 # Sometimes the tools are distributed with libiberty but with no other
2519 # libraries. In that case, we don't want to build target-libiberty.
2520 if test -n "${target_configdirs}" ; then
2521 others=
2522 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2523 if test "$i" != "libiberty" ; then
2524 if test -r $srcdir/$i/configure ; then
2525 others=yes;
2526 break;
2529 done
2530 if test -z "${others}" ; then
2531 target_configdirs=
2535 # Quietly strip out all directories which aren't configurable in this tree.
2536 # This relies on all configurable subdirectories being autoconfiscated, which
2537 # is now the case.
2538 build_configdirs_all="$build_configdirs"
2539 build_configdirs=
2540 for i in ${build_configdirs_all} ; do
2541 j=`echo $i | sed -e s/build-//g`
2542 if test -f ${srcdir}/$j/configure ; then
2543 build_configdirs="${build_configdirs} $i"
2545 done
2547 configdirs_all="$configdirs"
2548 configdirs=
2549 for i in ${configdirs_all} ; do
2550 if test -f ${srcdir}/$i/configure ; then
2551 configdirs="${configdirs} $i"
2553 done
2555 target_configdirs_all="$target_configdirs"
2556 target_configdirs=
2557 for i in ${target_configdirs_all} ; do
2558 j=`echo $i | sed -e s/target-//g`
2559 if test -f ${srcdir}/$j/configure ; then
2560 target_configdirs="${target_configdirs} $i"
2562 done
2564 # Produce a warning message for the subdirs we can't configure.
2565 # This isn't especially interesting in the Cygnus tree, but in the individual
2566 # FSF releases, it's important to let people know when their machine isn't
2567 # supported by the one or two programs in a package.
2569 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2570 # If $appdirs is non-empty, at least one of those directories must still
2571 # be configured, or we error out. (E.g., if the gas release supports a
2572 # specified target in some subdirs but not the gas subdir, we shouldn't
2573 # pretend that all is well.)
2574 if test -n "$appdirs" ; then
2575 for dir in $appdirs ; do
2576 if test -r $dir/Makefile.in ; then
2577 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2578 appdirs=""
2579 break
2581 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2582 appdirs=""
2583 break
2586 done
2587 if test -n "$appdirs" ; then
2588 echo "*** This configuration is not supported by this package." 1>&2
2589 exit 1
2592 # Okay, some application will build, or we don't care to check. Still
2593 # notify of subdirs not getting built.
2594 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2595 echo " ${notsupp}" 1>&2
2596 echo " (Any other directories should still work fine.)" 1>&2
2599 case "$host" in
2600 *msdosdjgpp*)
2601 enable_gdbtk=no ;;
2602 esac
2604 copy_dirs=
2606 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2607 # the named directory are copied to $(tooldir)/sys-include.
2608 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2609 if test x${is_cross_compiler} = xno ; then
2610 echo 1>&2 '***' --with-headers is only supported when cross compiling
2611 exit 1
2613 if test x"${with_headers}" != xyes ; then
2614 case "${exec_prefixoption}" in
2615 "") x=${prefix} ;;
2616 *) x=${exec_prefix} ;;
2617 esac
2618 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2622 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2623 # the name directories are copied to $(tooldir)/lib. Multiple directories
2624 # are permitted.
2625 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2626 if test x${is_cross_compiler} = xno ; then
2627 echo 1>&2 '***' --with-libs is only supported when cross compiling
2628 exit 1
2630 if test x"${with_libs}" != xyes ; then
2631 # Copy the libraries in reverse order, so that files in the first named
2632 # library override files in subsequent libraries.
2633 case "${exec_prefixoption}" in
2634 "") x=${prefix} ;;
2635 *) x=${exec_prefix} ;;
2636 esac
2637 for l in ${with_libs}; do
2638 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2639 done
2643 # Handle ${copy_dirs}
2644 set fnord ${copy_dirs}
2645 shift
2646 while test $# != 0 ; do
2647 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2649 else
2650 echo Copying $1 to $2
2652 # Use the install script to create the directory and all required
2653 # parent directories.
2654 if test -d $2 ; then
2656 else
2657 echo >config.temp
2658 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2661 # Copy the directory, assuming we have tar.
2662 # FIXME: Should we use B in the second tar? Not all systems support it.
2663 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2665 # It is the responsibility of the user to correctly adjust all
2666 # symlinks. If somebody can figure out how to handle them correctly
2667 # here, feel free to add the code.
2669 echo $1 > $2/COPIED
2671 shift; shift
2672 done
2674 extra_arflags_for_target=
2675 extra_nmflags_for_target=
2676 extra_ranlibflags_for_target=
2677 target_makefile_frag=/dev/null
2678 case "${target}" in
2679 *-*-netware*)
2680 target_makefile_frag="config/mt-netware"
2682 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2683 target_makefile_frag="config/mt-gnu"
2685 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2686 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2687 # commands to handle both 32-bit and 64-bit objects. These flags are
2688 # harmless if we're using GNU nm or ar.
2689 extra_arflags_for_target=" -X32_64"
2690 extra_nmflags_for_target=" -B -X32_64"
2692 *-*-darwin*)
2693 # ranlib from Darwin requires the -c flag to look at common symbols.
2694 extra_ranlibflags_for_target=" -c"
2696 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2697 target_makefile_frag="config/mt-wince"
2699 esac
2701 alphaieee_frag=/dev/null
2702 case $target in
2703 alpha*-*-*)
2704 # This just makes sure to use the -mieee option to build target libs.
2705 # This should probably be set individually by each library.
2706 alphaieee_frag="config/mt-alphaieee"
2708 esac
2710 # If --enable-target-optspace always use -Os instead of -O2 to build
2711 # the target libraries, similarly if it is not specified, use -Os
2712 # on selected platforms.
2713 ospace_frag=/dev/null
2714 case "${enable_target_optspace}:${target}" in
2715 yes:*)
2716 ospace_frag="config/mt-ospace"
2718 :d30v-*)
2719 ospace_frag="config/mt-d30v"
2721 :m32r-* | :d10v-* | :fr30-*)
2722 ospace_frag="config/mt-ospace"
2724 no:* | :*)
2727 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2729 esac
2731 # Set with_gnu_as and with_gnu_ld as appropriate.
2733 # This is done by determining whether or not the appropriate directory
2734 # is available, and by checking whether or not specific configurations
2735 # have requested that this magic not happen.
2737 # The command line options always override the explicit settings in
2738 # configure.in, and the settings in configure.in override this magic.
2740 # If the default for a toolchain is to use GNU as and ld, and you don't
2741 # want to do that, then you should use the --without-gnu-as and
2742 # --without-gnu-ld options for the configure script.
2744 if test x${use_gnu_as} = x &&
2745 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2746 with_gnu_as=yes
2747 extra_host_args="$extra_host_args --with-gnu-as"
2750 if test x${use_gnu_ld} = x &&
2751 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2752 with_gnu_ld=yes
2753 extra_host_args="$extra_host_args --with-gnu-ld"
2756 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2757 # can detect this case.
2759 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2760 with_newlib=yes
2761 extra_host_args="$extra_host_args --with-newlib"
2764 # Default to using --with-stabs for certain targets.
2765 if test x${with_stabs} = x ; then
2766 case "${target}" in
2767 mips*-*-irix[56]*)
2769 mips*-*-* | alpha*-*-osf*)
2770 with_stabs=yes;
2771 extra_host_args="${extra_host_args} --with-stabs"
2773 esac
2776 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2777 # them automatically.
2778 case "${host}" in
2779 hppa*64*-*-hpux11*)
2780 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2782 esac
2784 # Some systems (e.g., one of the i386-aix systems the gas testers are
2785 # using) don't handle "\$" correctly, so don't use it here.
2786 tooldir='${exec_prefix}'/${target_alias}
2787 build_tooldir=${tooldir}
2789 # Generate default definitions for YACC, M4, LEX and other programs that run
2790 # on the build machine. These are used if the Makefile can't locate these
2791 # programs in objdir.
2792 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2793 for ac_prog in bison
2795 # Extract the first word of "$ac_prog", so it can be a program name with args.
2796 set dummy $ac_prog; ac_word=$2
2797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2798 echo "configure:2799: checking for $ac_word" >&5
2799 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2801 else
2802 if test -n "$CONFIGURED_BISON"; then
2803 ac_cv_prog_CONFIGURED_BISON="$CONFIGURED_BISON" # Let the user override the test.
2804 else
2805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2806 ac_dummy="$PATH"
2807 for ac_dir in $ac_dummy; do
2808 test -z "$ac_dir" && ac_dir=.
2809 if test -f $ac_dir/$ac_word; then
2810 ac_cv_prog_CONFIGURED_BISON="$ac_prog"
2811 break
2813 done
2814 IFS="$ac_save_ifs"
2817 CONFIGURED_BISON="$ac_cv_prog_CONFIGURED_BISON"
2818 if test -n "$CONFIGURED_BISON"; then
2819 echo "$ac_t""$CONFIGURED_BISON" 1>&6
2820 else
2821 echo "$ac_t""no" 1>&6
2824 test -n "$CONFIGURED_BISON" && break
2825 done
2826 test -n "$CONFIGURED_BISON" || CONFIGURED_BISON="$MISSING bison"
2828 for ac_prog in 'bison -y' byacc yacc
2830 # Extract the first word of "$ac_prog", so it can be a program name with args.
2831 set dummy $ac_prog; ac_word=$2
2832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2833 echo "configure:2834: checking for $ac_word" >&5
2834 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" = set"; then
2835 echo $ac_n "(cached) $ac_c" 1>&6
2836 else
2837 if test -n "$CONFIGURED_YACC"; then
2838 ac_cv_prog_CONFIGURED_YACC="$CONFIGURED_YACC" # Let the user override the test.
2839 else
2840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2841 ac_dummy="$PATH"
2842 for ac_dir in $ac_dummy; do
2843 test -z "$ac_dir" && ac_dir=.
2844 if test -f $ac_dir/$ac_word; then
2845 ac_cv_prog_CONFIGURED_YACC="$ac_prog"
2846 break
2848 done
2849 IFS="$ac_save_ifs"
2852 CONFIGURED_YACC="$ac_cv_prog_CONFIGURED_YACC"
2853 if test -n "$CONFIGURED_YACC"; then
2854 echo "$ac_t""$CONFIGURED_YACC" 1>&6
2855 else
2856 echo "$ac_t""no" 1>&6
2859 test -n "$CONFIGURED_YACC" && break
2860 done
2861 test -n "$CONFIGURED_YACC" || CONFIGURED_YACC="$MISSING bison -y"
2863 for ac_prog in gm4 gnum4 m4
2865 # Extract the first word of "$ac_prog", so it can be a program name with args.
2866 set dummy $ac_prog; ac_word=$2
2867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2868 echo "configure:2869: checking for $ac_word" >&5
2869 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" = set"; then
2870 echo $ac_n "(cached) $ac_c" 1>&6
2871 else
2872 if test -n "$CONFIGURED_M4"; then
2873 ac_cv_prog_CONFIGURED_M4="$CONFIGURED_M4" # Let the user override the test.
2874 else
2875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2876 ac_dummy="$PATH"
2877 for ac_dir in $ac_dummy; do
2878 test -z "$ac_dir" && ac_dir=.
2879 if test -f $ac_dir/$ac_word; then
2880 ac_cv_prog_CONFIGURED_M4="$ac_prog"
2881 break
2883 done
2884 IFS="$ac_save_ifs"
2887 CONFIGURED_M4="$ac_cv_prog_CONFIGURED_M4"
2888 if test -n "$CONFIGURED_M4"; then
2889 echo "$ac_t""$CONFIGURED_M4" 1>&6
2890 else
2891 echo "$ac_t""no" 1>&6
2894 test -n "$CONFIGURED_M4" && break
2895 done
2896 test -n "$CONFIGURED_M4" || CONFIGURED_M4="$MISSING m4"
2898 for ac_prog in flex
2900 # Extract the first word of "$ac_prog", so it can be a program name with args.
2901 set dummy $ac_prog; ac_word=$2
2902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2903 echo "configure:2904: checking for $ac_word" >&5
2904 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2906 else
2907 if test -n "$CONFIGURED_FLEX"; then
2908 ac_cv_prog_CONFIGURED_FLEX="$CONFIGURED_FLEX" # Let the user override the test.
2909 else
2910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2911 ac_dummy="$PATH"
2912 for ac_dir in $ac_dummy; do
2913 test -z "$ac_dir" && ac_dir=.
2914 if test -f $ac_dir/$ac_word; then
2915 ac_cv_prog_CONFIGURED_FLEX="$ac_prog"
2916 break
2918 done
2919 IFS="$ac_save_ifs"
2922 CONFIGURED_FLEX="$ac_cv_prog_CONFIGURED_FLEX"
2923 if test -n "$CONFIGURED_FLEX"; then
2924 echo "$ac_t""$CONFIGURED_FLEX" 1>&6
2925 else
2926 echo "$ac_t""no" 1>&6
2929 test -n "$CONFIGURED_FLEX" && break
2930 done
2931 test -n "$CONFIGURED_FLEX" || CONFIGURED_FLEX="$MISSING flex"
2933 for ac_prog in flex lex
2935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2936 set dummy $ac_prog; ac_word=$2
2937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2938 echo "configure:2939: checking for $ac_word" >&5
2939 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" = set"; then
2940 echo $ac_n "(cached) $ac_c" 1>&6
2941 else
2942 if test -n "$CONFIGURED_LEX"; then
2943 ac_cv_prog_CONFIGURED_LEX="$CONFIGURED_LEX" # Let the user override the test.
2944 else
2945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2946 ac_dummy="$PATH"
2947 for ac_dir in $ac_dummy; do
2948 test -z "$ac_dir" && ac_dir=.
2949 if test -f $ac_dir/$ac_word; then
2950 ac_cv_prog_CONFIGURED_LEX="$ac_prog"
2951 break
2953 done
2954 IFS="$ac_save_ifs"
2957 CONFIGURED_LEX="$ac_cv_prog_CONFIGURED_LEX"
2958 if test -n "$CONFIGURED_LEX"; then
2959 echo "$ac_t""$CONFIGURED_LEX" 1>&6
2960 else
2961 echo "$ac_t""no" 1>&6
2964 test -n "$CONFIGURED_LEX" && break
2965 done
2966 test -n "$CONFIGURED_LEX" || CONFIGURED_LEX="$MISSING flex"
2968 for ac_prog in makeinfo
2970 # Extract the first word of "$ac_prog", so it can be a program name with args.
2971 set dummy $ac_prog; ac_word=$2
2972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2973 echo "configure:2974: checking for $ac_word" >&5
2974 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2976 else
2977 if test -n "$CONFIGURED_MAKEINFO"; then
2978 ac_cv_prog_CONFIGURED_MAKEINFO="$CONFIGURED_MAKEINFO" # Let the user override the test.
2979 else
2980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2981 ac_dummy="$PATH"
2982 for ac_dir in $ac_dummy; do
2983 test -z "$ac_dir" && ac_dir=.
2984 if test -f $ac_dir/$ac_word; then
2985 ac_cv_prog_CONFIGURED_MAKEINFO="$ac_prog"
2986 break
2988 done
2989 IFS="$ac_save_ifs"
2992 CONFIGURED_MAKEINFO="$ac_cv_prog_CONFIGURED_MAKEINFO"
2993 if test -n "$CONFIGURED_MAKEINFO"; then
2994 echo "$ac_t""$CONFIGURED_MAKEINFO" 1>&6
2995 else
2996 echo "$ac_t""no" 1>&6
2999 test -n "$CONFIGURED_MAKEINFO" && break
3000 done
3001 test -n "$CONFIGURED_MAKEINFO" || CONFIGURED_MAKEINFO="$MISSING makeinfo"
3004 # Create a .gdbinit file which runs the one in srcdir
3005 # and tells GDB to look there for source files.
3007 if test -r ${srcdir}/.gdbinit ; then
3008 case ${srcdir} in
3009 .) ;;
3010 *) cat > ./.gdbinit <<EOF
3011 # ${NO_EDIT}
3012 dir ${srcdir}
3013 dir .
3014 source ${srcdir}/.gdbinit
3017 esac
3020 # Make sure that the compiler is able to generate an executable. If it
3021 # can't, we are probably in trouble. We don't care whether we can run the
3022 # executable--we might be using a cross compiler--we only care whether it
3023 # can be created. At this point the main configure script has set CC.
3024 we_are_ok=no
3025 echo "int main () { return 0; }" > conftest.c
3026 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3027 if test $? = 0 ; then
3028 if test -s conftest || test -s conftest.exe ; then
3029 we_are_ok=yes
3032 case $we_are_ok in
3034 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3035 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3036 rm -f conftest*
3037 exit 1
3039 esac
3040 rm -f conftest*
3042 # The Solaris /usr/ucb/cc compiler does not appear to work.
3043 case "${host}" in
3044 sparc-sun-solaris2*)
3045 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
3046 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3047 could_use=
3048 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
3049 if test -d /opt/cygnus/bin ; then
3050 if test "$could_use" = "" ; then
3051 could_use="/opt/cygnus/bin"
3052 else
3053 could_use="$could_use or /opt/cygnus/bin"
3056 if test "$could_use" = "" ; then
3057 echo "Warning: compilation may fail because you're using"
3058 echo "/usr/ucb/cc. You should change your PATH or CC "
3059 echo "variable and rerun configure."
3060 else
3061 echo "Warning: compilation may fail because you're using"
3062 echo "/usr/ucb/cc, when you should use the C compiler from"
3063 echo "$could_use. You should change your"
3064 echo "PATH or CC variable and rerun configure."
3068 esac
3070 # If no --enable-shared nor --disable-shared is specified, we set up
3071 # LD_LIBRARY_PATH when we build for gcc.
3072 case $enable_shared in
3074 if test -d ${srcdir}/gcc; then
3075 set_lib_path=yes
3076 else
3077 set_lib_path=no
3081 set_lib_path=$enable_shared
3083 esac
3085 # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
3086 # binutils tools will find libbfd.so.
3087 case "${set_lib_path}" in
3088 no) SET_LIB_PATH= ;;
3089 *) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;;
3090 esac
3092 case "${host}" in
3093 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3094 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3095 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
3096 esac
3098 # Record target_configdirs and the configure arguments for target and
3099 # build configuration in Makefile.
3100 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3101 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3103 # Determine whether gdb needs tk/tcl or not.
3104 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3105 # and in that case we want gdb to be built without tk. Ugh!
3106 # In fact I believe gdb is the *only* package directly dependent on tk,
3107 # so we should be able to put the 'maybe's in unconditionally and
3108 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3109 # 100% sure that that's safe though.
3111 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3112 case "$enable_gdbtk" in
3114 GDB_TK="" ;;
3115 yes)
3116 GDB_TK="${gdb_tk}" ;;
3118 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3119 # distro. Eventually someone will fix this and move Insight, nee
3120 # gdbtk to a separate directory.
3121 if test -d ${srcdir}/gdb/gdbtk ; then
3122 GDB_TK="${gdb_tk}"
3123 else
3124 GDB_TK=""
3127 esac
3129 # Strip out unwanted targets.
3131 # While at that, we remove Makefiles if we were started for recursive
3132 # configuration, so that the top-level Makefile reconfigures them,
3133 # like we used to do when configure itself was recursive.
3135 # Loop over modules. $extrasub must be used with care, limiting as
3136 # much as possible the usage of range addresses. That's because autoconf
3137 # splits the sed script to overcome limits in the number of commands,
3138 # and relying on carefully-timed sed passes may turn out to be very hard
3139 # to maintain later. In this particular case, you just have to be careful
3140 # not to nest @if/@endif pairs, because configure will not warn you at all.
3142 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3143 if test "${enable_bootstrap+set}" = set; then
3144 enableval="$enable_bootstrap"
3146 else
3147 enable_bootstrap=default
3151 # Issue errors and warnings for invalid/strange bootstrap combinations.
3152 case "$configdirs" in
3153 *gcc*) have_compiler=yes ;;
3154 *) have_compiler=no ;;
3155 esac
3157 case "$have_compiler:$host:$target:$enable_bootstrap" in
3158 *:*:*:no) ;;
3160 # Default behavior. (We'll) enable bootstrap if we have a compiler
3161 # and we are in a native configuration.
3162 yes:$build:$build:default)
3163 # This will become 'yes'
3164 enable_bootstrap=no ;;
3166 *:*:*:default)
3167 enable_bootstrap=no ;;
3169 # We have a compiler and we are in a native configuration, bootstrap is ok
3170 yes:$build:$build:yes | yes:$build:$build:lean)
3173 # Other configurations, but we have a compiler. Assume the user knows
3174 # what he's doing.
3175 yes:*:*:yes | yes:*:*:lean)
3176 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3179 # No compiler: if they passed --enable-bootstrap explicitly, fail
3180 no:*:*:yes | no:*:*:lean)
3181 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3183 # Fail if wrong command line
3185 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3187 esac
3189 # Adjust the toplevel makefile according to whether bootstrap was selected.
3190 case "$enable_bootstrap" in
3191 yes)
3192 bootstrap_lean='#'
3193 default_target=bootstrap
3194 bootstrap_suffix=bootstrap ;;
3195 lean)
3196 bootstrap_lean=''
3197 default_target=bootstrap
3198 bootstrap_suffix=bootstrap ;;
3200 default_target=all
3201 bootstrap_suffix=no-bootstrap ;;
3202 esac
3206 for module in ${build_configdirs} ; do
3207 if test -z "${no_recursion}" \
3208 && test -f ${build_subdir}/${module}/Makefile; then
3209 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3210 rm -f ${build_subdir}/${module}/Makefile
3212 extrasub="$extrasub
3213 /^@if build-$module\$/d
3214 /^@endif build-$module\$/d
3215 /^@if build-$module-$bootstrap_suffix\$/d
3216 /^@endif build-$module-$bootstrap_suffix\$/d"
3217 done
3218 for module in ${configdirs} ; do
3219 if test -z "${no_recursion}" \
3220 && test -f ${module}/Makefile; then
3221 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3222 rm -f ${module}/Makefile
3224 extrasub="$extrasub
3225 /^@if $module\$/d
3226 /^@endif $module\$/d
3227 /^@if $module-$bootstrap_suffix\$/d
3228 /^@endif $module-$bootstrap_suffix\$/d"
3229 done
3230 for module in ${target_configdirs} ; do
3231 if test -z "${no_recursion}" \
3232 && test -f ${target_subdir}/${module}/Makefile; then
3233 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3234 rm -f ${target_subdir}/${module}/Makefile
3236 extrasub="$extrasub
3237 /^@if target-$module\$/d
3238 /^@endif target-$module\$/d
3239 /^@if target-$module-$bootstrap_suffix\$/d
3240 /^@endif target-$module-$bootstrap_suffix\$/d"
3241 done
3243 extrasub="$extrasub
3244 /^@if /,/^@endif /d"
3246 # Create the serialization dependencies. This uses a temporary file.
3248 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3249 if test "${enable_serial_configure+set}" = set; then
3250 enableval="$enable_serial_configure"
3255 case ${enable_serial_configure} in
3256 yes)
3257 enable_serial_build_configure=yes
3258 enable_serial_host_configure=yes
3259 enable_serial_target_configure=yes
3261 esac
3263 # These force 'configure's to be done one at a time, to avoid problems
3264 # with contention over a shared config.cache.
3265 rm -f serdep.tmp
3266 echo '# serdep.tmp' > serdep.tmp
3267 olditem=
3268 test "x${enable_serial_build_configure}" = xyes &&
3269 for item in ${build_configdirs} ; do
3270 case ${olditem} in
3271 "") ;;
3272 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3273 esac
3274 olditem=${item}
3275 done
3276 olditem=
3277 test "x${enable_serial_host_configure}" = xyes &&
3278 for item in ${configdirs} ; do
3279 case ${olditem} in
3280 "") ;;
3281 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3282 esac
3283 olditem=${item}
3284 done
3285 olditem=
3286 test "x${enable_serial_target_configure}" = xyes &&
3287 for item in ${target_configdirs} ; do
3288 case ${olditem} in
3289 "") ;;
3290 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3291 esac
3292 olditem=${item}
3293 done
3294 serialization_dependencies=serdep.tmp
3297 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3298 # target and nonopt. These are the ones we might not want to pass
3299 # down to subconfigures. Also strip program-prefix, program-suffix,
3300 # and program-transform-name, so that we can pass down a consistent
3301 # program-transform-name. If autoconf has put single quotes around
3302 # any of these arguments (because they contain shell metacharacters)
3303 # then this will fail; in practice this only happens for
3304 # --program-transform-name, so be sure to override --program-transform-name
3305 # at the end of the argument list.
3306 # These will be expanded by make, so quote '$'.
3307 cat <<\EOF_SED > conftestsed
3308 s/ --no[^ ]*/ /g
3309 s/ --c[a-z-]*[= ][^ ]*//g
3310 s/ --sr[a-z-]*[= ][^ ]*//g
3311 s/ --ho[a-z-]*[= ][^ ]*//g
3312 s/ --bu[a-z-]*[= ][^ ]*//g
3313 s/ --t[a-z-]*[= ][^ ]*//g
3314 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3315 s/ -cache-file[= ][^ ]*//g
3316 s/ -srcdir[= ][^ ]*//g
3317 s/ -host[= ][^ ]*//g
3318 s/ -build[= ][^ ]*//g
3319 s/ -target[= ][^ ]*//g
3320 s/ -program-prefix[= ][^ ]*//g
3321 s/ -program-suffix[= ][^ ]*//g
3322 s/ -program-transform-name[= ][^ ]*//g
3323 s/ [^' -][^ ]* / /
3324 s/^ *//;s/ *$//
3325 s,\$,$$,g
3326 EOF_SED
3327 sed -f conftestsed <<EOF_SED > conftestsed.out
3328 ${ac_configure_args}
3329 EOF_SED
3330 baseargs=`cat conftestsed.out`
3331 rm -f conftestsed conftestsed.out
3333 # Add in --program-transform-name, after --program-prefix and
3334 # --program-suffix have been applied to it. Autoconf has already
3335 # doubled dollar signs and backslashes in program_transform_name; we want
3336 # the backslashes un-doubled, and then the entire thing wrapped in single
3337 # quotes, because this will be expanded first by make and then by the shell.
3338 # Also, because we want to override the logic in subdir configure scripts to
3339 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3340 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3341 ${program_transform_name}
3342 EOF_SED
3343 gcc_transform_name=`cat conftestsed.out`
3344 rm -f conftestsed.out
3345 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3347 # For the build-side libraries, we just need to pretend we're native,
3348 # and not use the same cache file. Multilibs are neither needed nor
3349 # desired.
3350 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3352 # For host modules, accept cache file option, or specification as blank.
3353 case "${cache_file}" in
3354 "") # empty
3355 cache_file_option="" ;;
3356 /* | [A-Za-z]:[\\/]* ) # absolute path
3357 cache_file_option="--cache-file=${cache_file}" ;;
3358 *) # relative path
3359 cache_file_option="--cache-file=../${cache_file}" ;;
3360 esac
3362 # Host dirs don't like to share a cache file either, horribly enough.
3363 # This seems to be due to autoconf 2.5x stupidity.
3364 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3366 target_configargs=${baseargs}
3368 # Passing a --with-cross-host argument lets the target libraries know
3369 # whether they are being built with a cross-compiler or being built
3370 # native. However, it would be better to use other mechanisms to make the
3371 # sorts of decisions they want to make on this basis. Please consider
3372 # this option to be deprecated. FIXME.
3373 if test x${is_cross_compiler} = xyes ; then
3374 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3377 # Default to --enable-multilib.
3378 if test x${enable_multilib} = x ; then
3379 target_configargs="--enable-multilib ${target_configargs}"
3382 # Pass --with-newlib if appropriate. Note that target_configdirs has
3383 # changed from the earlier setting of with_newlib.
3384 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3385 target_configargs="--with-newlib ${target_configargs}"
3388 # Different target subdirs use different values of certain variables
3389 # (notably CXX). Worse, multilibs use *lots* of different values.
3390 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3391 # it doesn't automatically accept command-line overrides of them.
3392 # This means it's not safe for target subdirs to share a cache file,
3393 # which is disgusting, but there you have it. Hopefully this can be
3394 # fixed in future. It's still worthwhile to use a cache file for each
3395 # directory. I think.
3397 # Pass the appropriate --host, --build, and --cache-file arguments.
3398 target_configargs="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}"
3400 # provide a proper gxx_include_dir.
3402 case "${with_gxx_include_dir}" in
3403 yes)
3404 { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; }
3406 no | "")
3407 case "${enable_version_specific_runtime_libs}" in
3408 yes) gxx_include_dir='${libsubdir}/include/c++' ;;
3410 libstdcxx_incdir=c++/${gcc_version}
3411 gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;;
3412 esac ;;
3413 *) gxx_include_dir=${with_gxx_include_dir} ;;
3414 esac
3419 FLAGS_FOR_TARGET=
3420 case " $target_configdirs " in
3421 *" newlib "*)
3422 case " $target_configargs " in
3423 *" --with-newlib "*)
3424 case "$target" in
3425 *-cygwin*)
3426 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' ;;
3427 esac
3429 # If we're not building GCC, don't discard standard headers.
3430 if test -d ${srcdir}/gcc; then
3431 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3433 if test "${build}" != "${host}"; then
3434 # On Canadian crosses, CC_FOR_TARGET will have already been set
3435 # by `configure', so we won't have an opportunity to add -Bgcc/
3436 # to it. This is right: we don't want to search that directory
3437 # for binaries, but we want the header files in there, so add
3438 # them explicitly.
3439 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
3441 # Someone might think of using the pre-installed headers on
3442 # Canadian crosses, in case the installed compiler is not fully
3443 # compatible with the compiler being built. In this case, it
3444 # would be better to flag an error than risking having
3445 # incompatible object files being constructed. We can't
3446 # guarantee that an error will be flagged, but let's hope the
3447 # compiler will do it, when presented with incompatible header
3448 # files.
3452 case "${target}-${is_cross_compiler}" in
3453 i[3456789]86-*-linux*-no)
3454 # Here host == target, so we don't need to build gcc,
3455 # so we don't want to discard standard headers.
3456 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3459 # If we're building newlib, use its generic headers last, but search
3460 # for any libc-related directories first (so make it the last -B
3461 # switch).
3462 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3464 esac
3466 esac
3468 esac
3470 # Allow the user to override the flags for
3471 # our build compiler if desired.
3472 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3474 # On Canadian crosses, we'll be searching the right directories for
3475 # the previously-installed cross compiler, so don't bother to add
3476 # flags for directories within the install tree of the compiler
3477 # being built; programs in there won't even run.
3478 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3479 # Search for pre-installed headers if nothing else fits.
3480 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3483 if test "x${use_gnu_ld}" = x &&
3484 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3485 # Arrange for us to find uninstalled linker scripts.
3486 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
3489 if test "x${CC_FOR_TARGET+set}" = xset; then
3491 elif test -d ${srcdir}/gcc; then
3492 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
3493 elif test "$host" = "$target"; then
3494 CC_FOR_TARGET='$(CC)'
3495 else
3496 CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"`
3498 CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3500 if test "x${GCJ_FOR_TARGET+set}" = xset; then
3502 elif test -d ${srcdir}/gcc; then
3503 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
3504 elif test "$host" = "$target"; then
3505 GCJ_FOR_TARGET='gcj'
3506 else
3507 GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"`
3509 GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3511 if test "x${GFORTRAN_FOR_TARGET+set}" = xset; then
3513 elif test -d ${srcdir}/gcc; then
3514 GFORTRAN_FOR_TARGET='$$r/gcc/gfortran -B$$r/gcc/'
3515 elif test "$host" = "$target"; then
3516 GFORTRAN_FOR_TARGET='gfortran'
3517 else
3518 GFORTRAN_FOR_TARGET=`echo gfortran | sed "${program_transform_name}"`
3520 case $GFORTRAN_FOR_TARGET in
3521 *' $(FLAGS_FOR_TARGET)') ;;
3522 *) GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET' $(FLAGS_FOR_TARGET)' ;;
3523 esac
3525 # Don't use libstdc++-v3's flags to configure/build itself.
3526 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'
3527 raw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
3529 if test "x${CXX_FOR_TARGET+set}" = xset; then
3530 if test "x${RAW_CXX_FOR_TARGET+set}" != xset; then
3531 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3533 elif test -d ${srcdir}/gcc; then
3534 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
3535 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
3536 # default whereas gcc does not.
3537 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
3538 # all other cases.
3539 CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
3540 RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags
3541 elif test "$host" = "$target"; then
3542 CXX_FOR_TARGET='$(CXX)'
3543 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3544 else
3545 CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"`
3546 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3548 CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3549 RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3551 qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3552 qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3554 # We want to defer the evaluation of `cmd`s and shell variables in
3555 # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
3556 # bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
3557 # quotes, but we still have to duplicate `$'s so that shell variables
3558 # can be expanded by the nested make as shell variables, not as make
3559 # macros.
3560 qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3561 qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3563 # Wrap CC_FOR_TARGET and friends, for certain types of builds.
3564 CC_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}"
3565 GCJ_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}"
3566 GFORTRAN_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GFORTRAN_FOR_TARGET}"
3567 CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}"
3568 RAW_CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}"
3569 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}"
3570 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}"
3572 # Makefile fragments.
3573 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3575 eval fragval=\$$frag
3576 if test $fragval != /dev/null; then
3577 eval $frag=${srcdir}/$fragval
3579 done
3585 # Miscellanea: directories, flags, etc.
3594 # Build module lists & subconfigure args.
3598 # Host module lists & subconfigure args.
3602 # Target module lists & subconfigure args.
3606 # Build tools.
3610 # Host tools.
3611 ncn_tool_prefix=
3612 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3613 ncn_target_tool_prefix=
3614 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3616 if test -n "$ncn_tool_prefix"; then
3617 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
3618 set dummy ${ncn_tool_prefix}ar; ac_word=$2
3619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3620 echo "configure:3621: checking for $ac_word" >&5
3621 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3622 echo $ac_n "(cached) $ac_c" 1>&6
3623 else
3624 if test -n "$AR"; then
3625 ac_cv_prog_AR="$AR" # Let the user override the test.
3626 else
3627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3628 ac_dummy="$PATH"
3629 for ac_dir in $ac_dummy; do
3630 test -z "$ac_dir" && ac_dir=.
3631 if test -f $ac_dir/$ac_word; then
3632 ac_cv_prog_AR="${ncn_tool_prefix}ar"
3633 break
3635 done
3636 IFS="$ac_save_ifs"
3639 AR="$ac_cv_prog_AR"
3640 if test -n "$AR"; then
3641 echo "$ac_t""$AR" 1>&6
3642 else
3643 echo "$ac_t""no" 1>&6
3647 if test -z "$ac_cv_prog_AR" ; then
3648 if test $build = $host ; then
3649 ncn_cv_AR=$AR
3650 # Extract the first word of "ar", so it can be a program name with args.
3651 set dummy ar; ac_word=$2
3652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3653 echo "configure:3654: checking for $ac_word" >&5
3654 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
3655 echo $ac_n "(cached) $ac_c" 1>&6
3656 else
3657 if test -n "$ncn_cv_AR"; then
3658 ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test.
3659 else
3660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3661 ac_dummy="$PATH"
3662 for ac_dir in $ac_dummy; do
3663 test -z "$ac_dir" && ac_dir=.
3664 if test -f $ac_dir/$ac_word; then
3665 ac_cv_prog_ncn_cv_AR="ar"
3666 break
3668 done
3669 IFS="$ac_save_ifs"
3670 test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar"
3673 ncn_cv_AR="$ac_cv_prog_ncn_cv_AR"
3674 if test -n "$ncn_cv_AR"; then
3675 echo "$ac_t""$ncn_cv_AR" 1>&6
3676 else
3677 echo "$ac_t""no" 1>&6
3680 AR=$ncn_cv_AR
3681 else
3682 AR="${ncn_tool_prefix}ar"
3684 else
3685 AR="$ac_cv_prog_AR"
3688 if test -n "$ncn_tool_prefix"; then
3689 # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args.
3690 set dummy ${ncn_tool_prefix}as; ac_word=$2
3691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3692 echo "configure:3693: checking for $ac_word" >&5
3693 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3695 else
3696 if test -n "$AS"; then
3697 ac_cv_prog_AS="$AS" # Let the user override the test.
3698 else
3699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3700 ac_dummy="$PATH"
3701 for ac_dir in $ac_dummy; do
3702 test -z "$ac_dir" && ac_dir=.
3703 if test -f $ac_dir/$ac_word; then
3704 ac_cv_prog_AS="${ncn_tool_prefix}as"
3705 break
3707 done
3708 IFS="$ac_save_ifs"
3711 AS="$ac_cv_prog_AS"
3712 if test -n "$AS"; then
3713 echo "$ac_t""$AS" 1>&6
3714 else
3715 echo "$ac_t""no" 1>&6
3719 if test -z "$ac_cv_prog_AS" ; then
3720 if test $build = $host ; then
3721 ncn_cv_AS=$AS
3722 # Extract the first word of "as", so it can be a program name with args.
3723 set dummy as; ac_word=$2
3724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3725 echo "configure:3726: checking for $ac_word" >&5
3726 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3728 else
3729 if test -n "$ncn_cv_AS"; then
3730 ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test.
3731 else
3732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3733 ac_dummy="$PATH"
3734 for ac_dir in $ac_dummy; do
3735 test -z "$ac_dir" && ac_dir=.
3736 if test -f $ac_dir/$ac_word; then
3737 ac_cv_prog_ncn_cv_AS="as"
3738 break
3740 done
3741 IFS="$ac_save_ifs"
3742 test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as"
3745 ncn_cv_AS="$ac_cv_prog_ncn_cv_AS"
3746 if test -n "$ncn_cv_AS"; then
3747 echo "$ac_t""$ncn_cv_AS" 1>&6
3748 else
3749 echo "$ac_t""no" 1>&6
3752 AS=$ncn_cv_AS
3753 else
3754 AS="${ncn_tool_prefix}as"
3756 else
3757 AS="$ac_cv_prog_AS"
3760 if test -n "$ncn_tool_prefix"; then
3761 # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args.
3762 set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
3763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3764 echo "configure:3765: checking for $ac_word" >&5
3765 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3766 echo $ac_n "(cached) $ac_c" 1>&6
3767 else
3768 if test -n "$DLLTOOL"; then
3769 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3770 else
3771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3772 ac_dummy="$PATH"
3773 for ac_dir in $ac_dummy; do
3774 test -z "$ac_dir" && ac_dir=.
3775 if test -f $ac_dir/$ac_word; then
3776 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool"
3777 break
3779 done
3780 IFS="$ac_save_ifs"
3783 DLLTOOL="$ac_cv_prog_DLLTOOL"
3784 if test -n "$DLLTOOL"; then
3785 echo "$ac_t""$DLLTOOL" 1>&6
3786 else
3787 echo "$ac_t""no" 1>&6
3791 if test -z "$ac_cv_prog_DLLTOOL" ; then
3792 if test $build = $host ; then
3793 ncn_cv_DLLTOOL=$DLLTOOL
3794 # Extract the first word of "dlltool", so it can be a program name with args.
3795 set dummy dlltool; ac_word=$2
3796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3797 echo "configure:3798: checking for $ac_word" >&5
3798 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3800 else
3801 if test -n "$ncn_cv_DLLTOOL"; then
3802 ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test.
3803 else
3804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3805 ac_dummy="$PATH"
3806 for ac_dir in $ac_dummy; do
3807 test -z "$ac_dir" && ac_dir=.
3808 if test -f $ac_dir/$ac_word; then
3809 ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
3810 break
3812 done
3813 IFS="$ac_save_ifs"
3814 test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
3817 ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL"
3818 if test -n "$ncn_cv_DLLTOOL"; then
3819 echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6
3820 else
3821 echo "$ac_t""no" 1>&6
3824 DLLTOOL=$ncn_cv_DLLTOOL
3825 else
3826 DLLTOOL="${ncn_tool_prefix}dlltool"
3828 else
3829 DLLTOOL="$ac_cv_prog_DLLTOOL"
3832 if test -n "$ncn_tool_prefix"; then
3833 # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args.
3834 set dummy ${ncn_tool_prefix}ld; ac_word=$2
3835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3836 echo "configure:3837: checking for $ac_word" >&5
3837 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3839 else
3840 if test -n "$LD"; then
3841 ac_cv_prog_LD="$LD" # Let the user override the test.
3842 else
3843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3844 ac_dummy="$PATH"
3845 for ac_dir in $ac_dummy; do
3846 test -z "$ac_dir" && ac_dir=.
3847 if test -f $ac_dir/$ac_word; then
3848 ac_cv_prog_LD="${ncn_tool_prefix}ld"
3849 break
3851 done
3852 IFS="$ac_save_ifs"
3855 LD="$ac_cv_prog_LD"
3856 if test -n "$LD"; then
3857 echo "$ac_t""$LD" 1>&6
3858 else
3859 echo "$ac_t""no" 1>&6
3863 if test -z "$ac_cv_prog_LD" ; then
3864 if test $build = $host ; then
3865 ncn_cv_LD=$LD
3866 # Extract the first word of "ld", so it can be a program name with args.
3867 set dummy ld; ac_word=$2
3868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3869 echo "configure:3870: checking for $ac_word" >&5
3870 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3872 else
3873 if test -n "$ncn_cv_LD"; then
3874 ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test.
3875 else
3876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3877 ac_dummy="$PATH"
3878 for ac_dir in $ac_dummy; do
3879 test -z "$ac_dir" && ac_dir=.
3880 if test -f $ac_dir/$ac_word; then
3881 ac_cv_prog_ncn_cv_LD="ld"
3882 break
3884 done
3885 IFS="$ac_save_ifs"
3886 test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld"
3889 ncn_cv_LD="$ac_cv_prog_ncn_cv_LD"
3890 if test -n "$ncn_cv_LD"; then
3891 echo "$ac_t""$ncn_cv_LD" 1>&6
3892 else
3893 echo "$ac_t""no" 1>&6
3896 LD=$ncn_cv_LD
3897 else
3898 LD="${ncn_tool_prefix}ld"
3900 else
3901 LD="$ac_cv_prog_LD"
3904 if test -n "$ncn_tool_prefix"; then
3905 # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args.
3906 set dummy ${ncn_tool_prefix}nm; ac_word=$2
3907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3908 echo "configure:3909: checking for $ac_word" >&5
3909 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3911 else
3912 if test -n "$NM"; then
3913 ac_cv_prog_NM="$NM" # Let the user override the test.
3914 else
3915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3916 ac_dummy="$PATH"
3917 for ac_dir in $ac_dummy; do
3918 test -z "$ac_dir" && ac_dir=.
3919 if test -f $ac_dir/$ac_word; then
3920 ac_cv_prog_NM="${ncn_tool_prefix}nm"
3921 break
3923 done
3924 IFS="$ac_save_ifs"
3927 NM="$ac_cv_prog_NM"
3928 if test -n "$NM"; then
3929 echo "$ac_t""$NM" 1>&6
3930 else
3931 echo "$ac_t""no" 1>&6
3935 if test -z "$ac_cv_prog_NM" ; then
3936 if test $build = $host ; then
3937 ncn_cv_NM=$NM
3938 # Extract the first word of "nm", so it can be a program name with args.
3939 set dummy nm; ac_word=$2
3940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3941 echo "configure:3942: checking for $ac_word" >&5
3942 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
3943 echo $ac_n "(cached) $ac_c" 1>&6
3944 else
3945 if test -n "$ncn_cv_NM"; then
3946 ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test.
3947 else
3948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3949 ac_dummy="$PATH"
3950 for ac_dir in $ac_dummy; do
3951 test -z "$ac_dir" && ac_dir=.
3952 if test -f $ac_dir/$ac_word; then
3953 ac_cv_prog_ncn_cv_NM="nm"
3954 break
3956 done
3957 IFS="$ac_save_ifs"
3958 test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm"
3961 ncn_cv_NM="$ac_cv_prog_ncn_cv_NM"
3962 if test -n "$ncn_cv_NM"; then
3963 echo "$ac_t""$ncn_cv_NM" 1>&6
3964 else
3965 echo "$ac_t""no" 1>&6
3968 NM=$ncn_cv_NM
3969 else
3970 NM="${ncn_tool_prefix}nm"
3972 else
3973 NM="$ac_cv_prog_NM"
3976 if test -n "$ncn_tool_prefix"; then
3977 # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args.
3978 set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3980 echo "configure:3981: checking for $ac_word" >&5
3981 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3982 echo $ac_n "(cached) $ac_c" 1>&6
3983 else
3984 if test -n "$RANLIB"; then
3985 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3986 else
3987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3988 ac_dummy="$PATH"
3989 for ac_dir in $ac_dummy; do
3990 test -z "$ac_dir" && ac_dir=.
3991 if test -f $ac_dir/$ac_word; then
3992 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib"
3993 break
3995 done
3996 IFS="$ac_save_ifs"
3999 RANLIB="$ac_cv_prog_RANLIB"
4000 if test -n "$RANLIB"; then
4001 echo "$ac_t""$RANLIB" 1>&6
4002 else
4003 echo "$ac_t""no" 1>&6
4007 if test -z "$ac_cv_prog_RANLIB" ; then
4008 if test $build = $host ; then
4009 ncn_cv_RANLIB=$RANLIB
4010 # Extract the first word of "ranlib", so it can be a program name with args.
4011 set dummy ranlib; ac_word=$2
4012 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4013 echo "configure:4014: checking for $ac_word" >&5
4014 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4016 else
4017 if test -n "$ncn_cv_RANLIB"; then
4018 ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test.
4019 else
4020 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4021 ac_dummy="$PATH"
4022 for ac_dir in $ac_dummy; do
4023 test -z "$ac_dir" && ac_dir=.
4024 if test -f $ac_dir/$ac_word; then
4025 ac_cv_prog_ncn_cv_RANLIB="ranlib"
4026 break
4028 done
4029 IFS="$ac_save_ifs"
4030 test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":"
4033 ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB"
4034 if test -n "$ncn_cv_RANLIB"; then
4035 echo "$ac_t""$ncn_cv_RANLIB" 1>&6
4036 else
4037 echo "$ac_t""no" 1>&6
4040 RANLIB=$ncn_cv_RANLIB
4041 else
4042 RANLIB=":"
4044 else
4045 RANLIB="$ac_cv_prog_RANLIB"
4048 if test -n "$ncn_tool_prefix"; then
4049 # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args.
4050 set dummy ${ncn_tool_prefix}windres; ac_word=$2
4051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4052 echo "configure:4053: checking for $ac_word" >&5
4053 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4055 else
4056 if test -n "$WINDRES"; then
4057 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4058 else
4059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4060 ac_dummy="$PATH"
4061 for ac_dir in $ac_dummy; do
4062 test -z "$ac_dir" && ac_dir=.
4063 if test -f $ac_dir/$ac_word; then
4064 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres"
4065 break
4067 done
4068 IFS="$ac_save_ifs"
4071 WINDRES="$ac_cv_prog_WINDRES"
4072 if test -n "$WINDRES"; then
4073 echo "$ac_t""$WINDRES" 1>&6
4074 else
4075 echo "$ac_t""no" 1>&6
4079 if test -z "$ac_cv_prog_WINDRES" ; then
4080 if test $build = $host ; then
4081 ncn_cv_WINDRES=$WINDRES
4082 # Extract the first word of "windres", so it can be a program name with args.
4083 set dummy windres; ac_word=$2
4084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4085 echo "configure:4086: checking for $ac_word" >&5
4086 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4088 else
4089 if test -n "$ncn_cv_WINDRES"; then
4090 ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test.
4091 else
4092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4093 ac_dummy="$PATH"
4094 for ac_dir in $ac_dummy; do
4095 test -z "$ac_dir" && ac_dir=.
4096 if test -f $ac_dir/$ac_word; then
4097 ac_cv_prog_ncn_cv_WINDRES="windres"
4098 break
4100 done
4101 IFS="$ac_save_ifs"
4102 test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres"
4105 ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES"
4106 if test -n "$ncn_cv_WINDRES"; then
4107 echo "$ac_t""$ncn_cv_WINDRES" 1>&6
4108 else
4109 echo "$ac_t""no" 1>&6
4112 WINDRES=$ncn_cv_WINDRES
4113 else
4114 WINDRES="${ncn_tool_prefix}windres"
4116 else
4117 WINDRES="$ac_cv_prog_WINDRES"
4120 if test -n "$ncn_tool_prefix"; then
4121 # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args.
4122 set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
4123 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4124 echo "configure:4125: checking for $ac_word" >&5
4125 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4126 echo $ac_n "(cached) $ac_c" 1>&6
4127 else
4128 if test -n "$OBJCOPY"; then
4129 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4130 else
4131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4132 ac_dummy="$PATH"
4133 for ac_dir in $ac_dummy; do
4134 test -z "$ac_dir" && ac_dir=.
4135 if test -f $ac_dir/$ac_word; then
4136 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy"
4137 break
4139 done
4140 IFS="$ac_save_ifs"
4143 OBJCOPY="$ac_cv_prog_OBJCOPY"
4144 if test -n "$OBJCOPY"; then
4145 echo "$ac_t""$OBJCOPY" 1>&6
4146 else
4147 echo "$ac_t""no" 1>&6
4151 if test -z "$ac_cv_prog_OBJCOPY" ; then
4152 if test $build = $host ; then
4153 ncn_cv_OBJCOPY=$OBJCOPY
4154 # Extract the first word of "objcopy", so it can be a program name with args.
4155 set dummy objcopy; ac_word=$2
4156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4157 echo "configure:4158: checking for $ac_word" >&5
4158 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
4159 echo $ac_n "(cached) $ac_c" 1>&6
4160 else
4161 if test -n "$ncn_cv_OBJCOPY"; then
4162 ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test.
4163 else
4164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4165 ac_dummy="$PATH"
4166 for ac_dir in $ac_dummy; do
4167 test -z "$ac_dir" && ac_dir=.
4168 if test -f $ac_dir/$ac_word; then
4169 ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
4170 break
4172 done
4173 IFS="$ac_save_ifs"
4174 test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
4177 ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY"
4178 if test -n "$ncn_cv_OBJCOPY"; then
4179 echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6
4180 else
4181 echo "$ac_t""no" 1>&6
4184 OBJCOPY=$ncn_cv_OBJCOPY
4185 else
4186 OBJCOPY="${ncn_tool_prefix}objcopy"
4188 else
4189 OBJCOPY="$ac_cv_prog_OBJCOPY"
4192 if test -n "$ncn_tool_prefix"; then
4193 # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args.
4194 set dummy ${ncn_tool_prefix}objdump; ac_word=$2
4195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4196 echo "configure:4197: checking for $ac_word" >&5
4197 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4198 echo $ac_n "(cached) $ac_c" 1>&6
4199 else
4200 if test -n "$OBJDUMP"; then
4201 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4202 else
4203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4204 ac_dummy="$PATH"
4205 for ac_dir in $ac_dummy; do
4206 test -z "$ac_dir" && ac_dir=.
4207 if test -f $ac_dir/$ac_word; then
4208 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump"
4209 break
4211 done
4212 IFS="$ac_save_ifs"
4215 OBJDUMP="$ac_cv_prog_OBJDUMP"
4216 if test -n "$OBJDUMP"; then
4217 echo "$ac_t""$OBJDUMP" 1>&6
4218 else
4219 echo "$ac_t""no" 1>&6
4223 if test -z "$ac_cv_prog_OBJDUMP" ; then
4224 if test $build = $host ; then
4225 ncn_cv_OBJDUMP=$OBJDUMP
4226 # Extract the first word of "objdump", so it can be a program name with args.
4227 set dummy objdump; ac_word=$2
4228 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4229 echo "configure:4230: checking for $ac_word" >&5
4230 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
4231 echo $ac_n "(cached) $ac_c" 1>&6
4232 else
4233 if test -n "$ncn_cv_OBJDUMP"; then
4234 ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test.
4235 else
4236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4237 ac_dummy="$PATH"
4238 for ac_dir in $ac_dummy; do
4239 test -z "$ac_dir" && ac_dir=.
4240 if test -f $ac_dir/$ac_word; then
4241 ac_cv_prog_ncn_cv_OBJDUMP="objdump"
4242 break
4244 done
4245 IFS="$ac_save_ifs"
4246 test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump"
4249 ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP"
4250 if test -n "$ncn_cv_OBJDUMP"; then
4251 echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6
4252 else
4253 echo "$ac_t""no" 1>&6
4256 OBJDUMP=$ncn_cv_OBJDUMP
4257 else
4258 OBJDUMP="${ncn_tool_prefix}objdump"
4260 else
4261 OBJDUMP="$ac_cv_prog_OBJDUMP"
4270 # Target tools.
4271 if test -n "$ncn_target_tool_prefix"; then
4272 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
4273 set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
4274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4275 echo "configure:4276: checking for $ac_word" >&5
4276 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
4277 echo $ac_n "(cached) $ac_c" 1>&6
4278 else
4279 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4280 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="$CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
4281 else
4282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4283 ac_dummy="$PATH"
4284 for ac_dir in $ac_dummy; do
4285 test -z "$ac_dir" && ac_dir=.
4286 if test -f $ac_dir/$ac_word; then
4287 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
4288 break
4290 done
4291 IFS="$ac_save_ifs"
4294 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
4295 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4296 echo "$ac_t""$CONFIGURED_AR_FOR_TARGET" 1>&6
4297 else
4298 echo "$ac_t""no" 1>&6
4302 if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then
4303 if test $build = $target ; then
4304 ncn_cv_CONFIGURED_AR_FOR_TARGET=$CONFIGURED_AR_FOR_TARGET
4305 # Extract the first word of "ar", so it can be a program name with args.
4306 set dummy ar; ac_word=$2
4307 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4308 echo "configure:4309: checking for $ac_word" >&5
4309 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
4310 echo $ac_n "(cached) $ac_c" 1>&6
4311 else
4312 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4313 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="$ncn_cv_CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
4314 else
4315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4316 ac_dummy="$PATH"
4317 for ac_dir in $ac_dummy; do
4318 test -z "$ac_dir" && ac_dir=.
4319 if test -f $ac_dir/$ac_word; then
4320 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
4321 break
4323 done
4324 IFS="$ac_save_ifs"
4325 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
4328 ncn_cv_CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET"
4329 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4330 echo "$ac_t""$ncn_cv_CONFIGURED_AR_FOR_TARGET" 1>&6
4331 else
4332 echo "$ac_t""no" 1>&6
4335 CONFIGURED_AR_FOR_TARGET=$ncn_cv_CONFIGURED_AR_FOR_TARGET
4336 else
4337 CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
4339 else
4340 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
4343 if test -n "$ncn_target_tool_prefix"; then
4344 # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args.
4345 set dummy ${ncn_target_tool_prefix}as; ac_word=$2
4346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4347 echo "configure:4348: checking for $ac_word" >&5
4348 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4350 else
4351 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4352 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="$CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
4353 else
4354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4355 ac_dummy="$PATH"
4356 for ac_dir in $ac_dummy; do
4357 test -z "$ac_dir" && ac_dir=.
4358 if test -f $ac_dir/$ac_word; then
4359 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
4360 break
4362 done
4363 IFS="$ac_save_ifs"
4366 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4367 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4368 echo "$ac_t""$CONFIGURED_AS_FOR_TARGET" 1>&6
4369 else
4370 echo "$ac_t""no" 1>&6
4374 if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then
4375 if test $build = $target ; then
4376 ncn_cv_CONFIGURED_AS_FOR_TARGET=$CONFIGURED_AS_FOR_TARGET
4377 # Extract the first word of "as", so it can be a program name with args.
4378 set dummy as; ac_word=$2
4379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4380 echo "configure:4381: checking for $ac_word" >&5
4381 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4383 else
4384 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4385 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="$ncn_cv_CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
4386 else
4387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4388 ac_dummy="$PATH"
4389 for ac_dir in $ac_dummy; do
4390 test -z "$ac_dir" && ac_dir=.
4391 if test -f $ac_dir/$ac_word; then
4392 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as"
4393 break
4395 done
4396 IFS="$ac_save_ifs"
4397 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as"
4400 ncn_cv_CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET"
4401 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4402 echo "$ac_t""$ncn_cv_CONFIGURED_AS_FOR_TARGET" 1>&6
4403 else
4404 echo "$ac_t""no" 1>&6
4407 CONFIGURED_AS_FOR_TARGET=$ncn_cv_CONFIGURED_AS_FOR_TARGET
4408 else
4409 CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
4411 else
4412 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4415 if test -n "$ncn_target_tool_prefix"; then
4416 # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args.
4417 set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
4418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4419 echo "configure:4420: checking for $ac_word" >&5
4420 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4421 echo $ac_n "(cached) $ac_c" 1>&6
4422 else
4423 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4424 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="$CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4425 else
4426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4427 ac_dummy="$PATH"
4428 for ac_dir in $ac_dummy; do
4429 test -z "$ac_dir" && ac_dir=.
4430 if test -f $ac_dir/$ac_word; then
4431 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
4432 break
4434 done
4435 IFS="$ac_save_ifs"
4438 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4439 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4440 echo "$ac_t""$CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4441 else
4442 echo "$ac_t""no" 1>&6
4446 if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then
4447 if test $build = $target ; then
4448 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET=$CONFIGURED_DLLTOOL_FOR_TARGET
4449 # Extract the first word of "dlltool", so it can be a program name with args.
4450 set dummy dlltool; ac_word=$2
4451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4452 echo "configure:4453: checking for $ac_word" >&5
4453 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4454 echo $ac_n "(cached) $ac_c" 1>&6
4455 else
4456 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4457 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4458 else
4459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4460 ac_dummy="$PATH"
4461 for ac_dir in $ac_dummy; do
4462 test -z "$ac_dir" && ac_dir=.
4463 if test -f $ac_dir/$ac_word; then
4464 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool"
4465 break
4467 done
4468 IFS="$ac_save_ifs"
4469 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool"
4472 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"
4473 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4474 echo "$ac_t""$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4475 else
4476 echo "$ac_t""no" 1>&6
4479 CONFIGURED_DLLTOOL_FOR_TARGET=$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET
4480 else
4481 CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
4483 else
4484 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4487 if test -n "$ncn_target_tool_prefix"; then
4488 # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args.
4489 set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
4490 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4491 echo "configure:4492: checking for $ac_word" >&5
4492 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4493 echo $ac_n "(cached) $ac_c" 1>&6
4494 else
4495 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4496 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="$CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4497 else
4498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4499 ac_dummy="$PATH"
4500 for ac_dir in $ac_dummy; do
4501 test -z "$ac_dir" && ac_dir=.
4502 if test -f $ac_dir/$ac_word; then
4503 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
4504 break
4506 done
4507 IFS="$ac_save_ifs"
4510 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4511 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4512 echo "$ac_t""$CONFIGURED_LD_FOR_TARGET" 1>&6
4513 else
4514 echo "$ac_t""no" 1>&6
4518 if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then
4519 if test $build = $target ; then
4520 ncn_cv_CONFIGURED_LD_FOR_TARGET=$CONFIGURED_LD_FOR_TARGET
4521 # Extract the first word of "ld", so it can be a program name with args.
4522 set dummy ld; ac_word=$2
4523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4524 echo "configure:4525: checking for $ac_word" >&5
4525 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4526 echo $ac_n "(cached) $ac_c" 1>&6
4527 else
4528 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4529 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="$ncn_cv_CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4530 else
4531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4532 ac_dummy="$PATH"
4533 for ac_dir in $ac_dummy; do
4534 test -z "$ac_dir" && ac_dir=.
4535 if test -f $ac_dir/$ac_word; then
4536 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld"
4537 break
4539 done
4540 IFS="$ac_save_ifs"
4541 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld"
4544 ncn_cv_CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET"
4545 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4546 echo "$ac_t""$ncn_cv_CONFIGURED_LD_FOR_TARGET" 1>&6
4547 else
4548 echo "$ac_t""no" 1>&6
4551 CONFIGURED_LD_FOR_TARGET=$ncn_cv_CONFIGURED_LD_FOR_TARGET
4552 else
4553 CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
4555 else
4556 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4559 if test -n "$ncn_target_tool_prefix"; then
4560 # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args.
4561 set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
4562 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4563 echo "configure:4564: checking for $ac_word" >&5
4564 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4565 echo $ac_n "(cached) $ac_c" 1>&6
4566 else
4567 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4568 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="$CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4569 else
4570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4571 ac_dummy="$PATH"
4572 for ac_dir in $ac_dummy; do
4573 test -z "$ac_dir" && ac_dir=.
4574 if test -f $ac_dir/$ac_word; then
4575 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
4576 break
4578 done
4579 IFS="$ac_save_ifs"
4582 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4583 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4584 echo "$ac_t""$CONFIGURED_NM_FOR_TARGET" 1>&6
4585 else
4586 echo "$ac_t""no" 1>&6
4590 if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then
4591 if test $build = $target ; then
4592 ncn_cv_CONFIGURED_NM_FOR_TARGET=$CONFIGURED_NM_FOR_TARGET
4593 # Extract the first word of "nm", so it can be a program name with args.
4594 set dummy nm; ac_word=$2
4595 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4596 echo "configure:4597: checking for $ac_word" >&5
4597 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4598 echo $ac_n "(cached) $ac_c" 1>&6
4599 else
4600 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4601 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="$ncn_cv_CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4602 else
4603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4604 ac_dummy="$PATH"
4605 for ac_dir in $ac_dummy; do
4606 test -z "$ac_dir" && ac_dir=.
4607 if test -f $ac_dir/$ac_word; then
4608 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm"
4609 break
4611 done
4612 IFS="$ac_save_ifs"
4613 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm"
4616 ncn_cv_CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET"
4617 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4618 echo "$ac_t""$ncn_cv_CONFIGURED_NM_FOR_TARGET" 1>&6
4619 else
4620 echo "$ac_t""no" 1>&6
4623 CONFIGURED_NM_FOR_TARGET=$ncn_cv_CONFIGURED_NM_FOR_TARGET
4624 else
4625 CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
4627 else
4628 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4631 if test -n "$ncn_target_tool_prefix"; then
4632 # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args.
4633 set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
4634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4635 echo "configure:4636: checking for $ac_word" >&5
4636 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4637 echo $ac_n "(cached) $ac_c" 1>&6
4638 else
4639 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4640 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="$CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4641 else
4642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4643 ac_dummy="$PATH"
4644 for ac_dir in $ac_dummy; do
4645 test -z "$ac_dir" && ac_dir=.
4646 if test -f $ac_dir/$ac_word; then
4647 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib"
4648 break
4650 done
4651 IFS="$ac_save_ifs"
4654 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4655 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4656 echo "$ac_t""$CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4657 else
4658 echo "$ac_t""no" 1>&6
4662 if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then
4663 if test $build = $target ; then
4664 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=$CONFIGURED_RANLIB_FOR_TARGET
4665 # Extract the first word of "ranlib", so it can be a program name with args.
4666 set dummy ranlib; ac_word=$2
4667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4668 echo "configure:4669: checking for $ac_word" >&5
4669 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4670 echo $ac_n "(cached) $ac_c" 1>&6
4671 else
4672 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4673 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4674 else
4675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4676 ac_dummy="$PATH"
4677 for ac_dir in $ac_dummy; do
4678 test -z "$ac_dir" && ac_dir=.
4679 if test -f $ac_dir/$ac_word; then
4680 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="ranlib"
4681 break
4683 done
4684 IFS="$ac_save_ifs"
4685 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=":"
4688 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"
4689 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4690 echo "$ac_t""$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4691 else
4692 echo "$ac_t""no" 1>&6
4695 CONFIGURED_RANLIB_FOR_TARGET=$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET
4696 else
4697 CONFIGURED_RANLIB_FOR_TARGET=":"
4699 else
4700 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4703 if test -n "$ncn_target_tool_prefix"; then
4704 # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args.
4705 set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
4706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4707 echo "configure:4708: checking for $ac_word" >&5
4708 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4709 echo $ac_n "(cached) $ac_c" 1>&6
4710 else
4711 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4712 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="$CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4713 else
4714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4715 ac_dummy="$PATH"
4716 for ac_dir in $ac_dummy; do
4717 test -z "$ac_dir" && ac_dir=.
4718 if test -f $ac_dir/$ac_word; then
4719 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
4720 break
4722 done
4723 IFS="$ac_save_ifs"
4726 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4727 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4728 echo "$ac_t""$CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4729 else
4730 echo "$ac_t""no" 1>&6
4734 if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then
4735 if test $build = $target ; then
4736 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET=$CONFIGURED_WINDRES_FOR_TARGET
4737 # Extract the first word of "windres", so it can be a program name with args.
4738 set dummy windres; ac_word=$2
4739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4740 echo "configure:4741: checking for $ac_word" >&5
4741 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4742 echo $ac_n "(cached) $ac_c" 1>&6
4743 else
4744 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4745 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4746 else
4747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4748 ac_dummy="$PATH"
4749 for ac_dir in $ac_dummy; do
4750 test -z "$ac_dir" && ac_dir=.
4751 if test -f $ac_dir/$ac_word; then
4752 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres"
4753 break
4755 done
4756 IFS="$ac_save_ifs"
4757 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres"
4760 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"
4761 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4762 echo "$ac_t""$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4763 else
4764 echo "$ac_t""no" 1>&6
4767 CONFIGURED_WINDRES_FOR_TARGET=$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET
4768 else
4769 CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
4771 else
4772 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4786 # Fix up target tools.
4787 if test "x${build}" = "x${host}" ; then
4788 # In this case, the newly built tools can and should be used,
4789 # so we override the results of the autoconf tests.
4790 # This should really only happen when the tools are actually being built,
4791 # but that's a further refinement. The new build scheme, where
4792 # tools are built into a structure paralleling where they're installed,
4793 # should also eliminate all of this cleanly.
4794 AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)"
4795 AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)"
4796 DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)"
4797 LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)"
4798 NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)"
4799 RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)"
4800 WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)"
4801 else
4802 # Just use the ones we found.
4803 AR_FOR_TARGET="\$(CONFIGURED_AR_FOR_TARGET)"
4804 AS_FOR_TARGET="\$(CONFIGURED_AS_FOR_TARGET)"
4805 DLLTOOL_FOR_TARGET="\$(CONFIGURED_DLLTOOL_FOR_TARGET)"
4806 LD_FOR_TARGET="\$(CONFIGURED_LD_FOR_TARGET)"
4807 NM_FOR_TARGET="\$(CONFIGURED_NM_FOR_TARGET)"
4808 RANLIB_FOR_TARGET="\$(CONFIGURED_RANLIB_FOR_TARGET)"
4809 WINDRES_FOR_TARGET="\$(CONFIGURED_WINDRES_FOR_TARGET)"
4819 # Certain tools may need extra flags.
4820 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
4821 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
4822 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
4824 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4825 echo "configure:4826: checking whether to enable maintainer-specific portions of Makefiles" >&5
4826 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4827 if test "${enable_maintainer_mode+set}" = set; then
4828 enableval="$enable_maintainer_mode"
4829 USE_MAINTAINER_MODE=$enableval
4830 else
4831 USE_MAINTAINER_MODE=no
4834 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4837 if test "$USE_MAINTAINER_MODE" = yes; then
4838 MAINTAINER_MODE_TRUE=
4839 MAINTAINER_MODE_FALSE='#'
4840 else
4841 MAINTAINER_MODE_TRUE='#'
4842 MAINTAINER_MODE_FALSE=
4844 MAINT=$MAINTAINER_MODE_TRUE
4846 # ---------------------
4847 # GCC bootstrap support
4848 # ---------------------
4850 # Stage specific cflags for build.
4851 stage1_cflags="-g"
4852 case $build in
4853 vax-*-*)
4854 case ${GCC} in
4855 yes) stage1_cflags="-g -Wa,-J" ;;
4856 *) stage1_cflags="-g -J" ;;
4857 esac ;;
4858 powerpc-*-darwin*)
4859 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
4860 # sources; use -no-cpp-precomp to get to GNU cpp.
4861 # Apple's GCC has bugs in designated initializer handling, so disable
4862 # that too.
4863 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
4865 esac
4868 # It makes debugging easier if we create as symlinks the stage directories
4869 # gcc for stageN-gcc and stagePREV-gcc for stage(N-1). In case this is not
4870 # possible, however, we can resort to mv.
4871 echo $ac_n "checking if symbolic links between directories work""... $ac_c" 1>&6
4872 echo "configure:4873: checking if symbolic links between directories work" >&5
4873 if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
4874 echo $ac_n "(cached) $ac_c" 1>&6
4875 else
4876 if test "${LN_S}" = "ln -s" \
4877 && mkdir confdir.s1 \
4878 && ln -s confdir.s1 confdir.s2 \
4879 && echo timestamp1 > confdir.s1/conftest.1 \
4880 && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \
4881 && echo timestamp2 > confdir.s2/conftest.2 \
4882 && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \
4883 && rm -f confdir.s2; then
4884 gcc_cv_prog_ln_s_dir=yes
4885 else
4886 gcc_cv_prog_ln_s_dir=yes
4888 rm -rf confdir.s1 confdir.s2
4891 echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6
4893 case ${gcc_cv_prog_ln_s_dir} in
4894 yes)
4895 CREATE_LINK_TO_DIR='ln -s $$1 $$2'
4896 UNDO_LINK_TO_DIR='rm -f $$1' ;;
4898 CREATE_LINK_TO_DIR='mv $$1 $$2'
4899 UNDO_LINK_TO_DIR='mv $$1 $$2' ;;
4900 esac
4904 # Enable -Werror in bootstrap stage2 and later.
4905 # Change the default to "no" on release branches.
4906 # Check whether --enable-werror or --disable-werror was given.
4907 if test "${enable_werror+set}" = set; then
4908 enableval="$enable_werror"
4910 else
4911 enable_werror=yes
4914 case ${enable_werror} in
4915 yes) stage2_werror_flag="--enable-werror-always" ;;
4916 *) stage2_werror_flag="" ;;
4917 esac
4920 # If gcc is built natively with shared library enabled, set
4921 # $RPATH_ENVVAR to make sure the newly built gcc shared librares are
4922 # used.
4923 SET_GCC_LIB_PATH=
4924 if test -d ${srcdir}/gcc && test x${is_cross_compiler} = xno; then
4925 case "${set_lib_path}" in
4926 no) ;;
4928 eval "d=\$$RPATH_ENVVAR"
4929 if test x"$d" != x; then
4930 d="$pwd/gcc:$d"
4931 else
4932 d="$pwd/gcc"
4934 SET_GCC_LIB_PATH="\$(RPATH_ENVVAR)=$d; export \$(RPATH_ENVVAR);"
4936 esac
4940 trap '' 1 2 15
4941 cat > confcache <<\EOF
4942 # This file is a shell script that caches the results of configure
4943 # tests run on this system so they can be shared between configure
4944 # scripts and configure runs. It is not useful on other systems.
4945 # If it contains results you don't want to keep, you may remove or edit it.
4947 # By default, configure uses ./config.cache as the cache file,
4948 # creating it if it does not exist already. You can give configure
4949 # the --cache-file=FILE option to use a different cache file; that is
4950 # what configure does when it calls configure scripts in
4951 # subdirectories, so they share the cache.
4952 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4953 # config.status only pays attention to the cache file if you give it the
4954 # --recheck option to rerun configure.
4957 # The following way of writing the cache mishandles newlines in values,
4958 # but we know of no workaround that is simple, portable, and efficient.
4959 # So, don't put newlines in cache variables' values.
4960 # Ultrix sh set writes to stderr and can't be redirected directly,
4961 # and sets the high bit in the cache file unless we assign to the vars.
4962 (set) 2>&1 |
4963 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4964 *ac_space=\ *)
4965 # `set' does not quote correctly, so add quotes (double-quote substitution
4966 # turns \\\\ into \\, and sed turns \\ into \).
4967 sed -n \
4968 -e "s/'/'\\\\''/g" \
4969 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4972 # `set' quotes correctly as required by POSIX, so do not add quotes.
4973 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4975 esac >> confcache
4976 if cmp -s $cache_file confcache; then
4978 else
4979 if test -w $cache_file; then
4980 echo "updating cache $cache_file"
4981 cat confcache > $cache_file
4982 else
4983 echo "not updating unwritable cache $cache_file"
4986 rm -f confcache
4988 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4990 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4991 # Let make expand exec_prefix.
4992 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4994 # Any assignment to VPATH causes Sun make to only execute
4995 # the first set of double-colon rules, so remove it if not needed.
4996 # If there is a colon in the path, we need to keep it.
4997 if test "x$srcdir" = x.; then
4998 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5001 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5003 # Transform confdefs.h into DEFS.
5004 # Protect against shell expansion while executing Makefile rules.
5005 # Protect against Makefile macro expansion.
5006 cat > conftest.defs <<\EOF
5007 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
5008 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
5009 s%\[%\\&%g
5010 s%\]%\\&%g
5011 s%\$%$$%g
5013 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
5014 rm -f conftest.defs
5017 # Without the "./", some shells look in PATH for config.status.
5018 : ${CONFIG_STATUS=./config.status}
5020 echo creating $CONFIG_STATUS
5021 rm -f $CONFIG_STATUS
5022 cat > $CONFIG_STATUS <<EOF
5023 #! /bin/sh
5024 # Generated automatically by configure.
5025 # Run this file to recreate the current configuration.
5026 # This directory was configured as follows,
5027 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5029 # $0 $ac_configure_args
5031 # Compiler output produced by configure, useful for debugging
5032 # configure, is in ./config.log if it exists.
5034 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5035 for ac_option
5037 case "\$ac_option" in
5038 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5039 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5040 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5041 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5042 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5043 exit 0 ;;
5044 -help | --help | --hel | --he | --h)
5045 echo "\$ac_cs_usage"; exit 0 ;;
5046 *) echo "\$ac_cs_usage"; exit 1 ;;
5047 esac
5048 done
5050 ac_given_srcdir=$srcdir
5051 ac_given_INSTALL="$INSTALL"
5053 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5055 cat >> $CONFIG_STATUS <<EOF
5057 # Protect against being on the right side of a sed subst in config.status.
5058 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5059 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5060 $ac_vpsub
5061 $extrasub
5062 s%@SHELL@%$SHELL%g
5063 s%@CFLAGS@%$CFLAGS%g
5064 s%@CPPFLAGS@%$CPPFLAGS%g
5065 s%@CXXFLAGS@%$CXXFLAGS%g
5066 s%@FFLAGS@%$FFLAGS%g
5067 s%@DEFS@%$DEFS%g
5068 s%@LDFLAGS@%$LDFLAGS%g
5069 s%@LIBS@%$LIBS%g
5070 s%@exec_prefix@%$exec_prefix%g
5071 s%@prefix@%$prefix%g
5072 s%@program_transform_name@%$program_transform_name%g
5073 s%@bindir@%$bindir%g
5074 s%@sbindir@%$sbindir%g
5075 s%@libexecdir@%$libexecdir%g
5076 s%@datadir@%$datadir%g
5077 s%@sysconfdir@%$sysconfdir%g
5078 s%@sharedstatedir@%$sharedstatedir%g
5079 s%@localstatedir@%$localstatedir%g
5080 s%@libdir@%$libdir%g
5081 s%@includedir@%$includedir%g
5082 s%@oldincludedir@%$oldincludedir%g
5083 s%@infodir@%$infodir%g
5084 s%@mandir@%$mandir%g
5085 s%@host@%$host%g
5086 s%@host_alias@%$host_alias%g
5087 s%@host_cpu@%$host_cpu%g
5088 s%@host_vendor@%$host_vendor%g
5089 s%@host_os@%$host_os%g
5090 s%@target@%$target%g
5091 s%@target_alias@%$target_alias%g
5092 s%@target_cpu@%$target_cpu%g
5093 s%@target_vendor@%$target_vendor%g
5094 s%@target_os@%$target_os%g
5095 s%@build@%$build%g
5096 s%@build_alias@%$build_alias%g
5097 s%@build_cpu@%$build_cpu%g
5098 s%@build_vendor@%$build_vendor%g
5099 s%@build_os@%$build_os%g
5100 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5101 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5102 s%@INSTALL_DATA@%$INSTALL_DATA%g
5103 s%@LN@%$LN%g
5104 s%@LN_S@%$LN_S%g
5105 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
5106 s%@gcc_version_trigger@%$gcc_version_trigger%g
5107 s%@gcc_version_full@%$gcc_version_full%g
5108 s%@gcc_version@%$gcc_version%g
5109 s%@build_subdir@%$build_subdir%g
5110 s%@host_subdir@%$host_subdir%g
5111 s%@target_subdir@%$target_subdir%g
5112 s%@CC@%$CC%g
5113 s%@GNATBIND@%$GNATBIND%g
5114 s%@do_compare@%$do_compare%g
5115 s%@gmplibs@%$gmplibs%g
5116 s%@gmpinc@%$gmpinc%g
5117 s%@stage1_languages@%$stage1_languages%g
5118 s%@CONFIGURED_BISON@%$CONFIGURED_BISON%g
5119 s%@CONFIGURED_YACC@%$CONFIGURED_YACC%g
5120 s%@CONFIGURED_M4@%$CONFIGURED_M4%g
5121 s%@CONFIGURED_FLEX@%$CONFIGURED_FLEX%g
5122 s%@CONFIGURED_LEX@%$CONFIGURED_LEX%g
5123 s%@CONFIGURED_MAKEINFO@%$CONFIGURED_MAKEINFO%g
5124 s%@bootstrap_lean@%$bootstrap_lean%g
5125 s%@default_target@%$default_target%g
5126 /@serialization_dependencies@/r $serialization_dependencies
5127 s%@serialization_dependencies@%%g
5128 s%@gxx_include_dir@%$gxx_include_dir%g
5129 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
5130 /@host_makefile_frag@/r $host_makefile_frag
5131 s%@host_makefile_frag@%%g
5132 /@target_makefile_frag@/r $target_makefile_frag
5133 s%@target_makefile_frag@%%g
5134 /@alphaieee_frag@/r $alphaieee_frag
5135 s%@alphaieee_frag@%%g
5136 /@ospace_frag@/r $ospace_frag
5137 s%@ospace_frag@%%g
5138 s%@SET_LIB_PATH@%$SET_LIB_PATH%g
5139 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
5140 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
5141 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
5142 s%@tooldir@%$tooldir%g
5143 s%@build_tooldir@%$build_tooldir%g
5144 s%@GDB_TK@%$GDB_TK%g
5145 s%@build_configargs@%$build_configargs%g
5146 s%@build_configdirs@%$build_configdirs%g
5147 s%@host_configargs@%$host_configargs%g
5148 s%@configdirs@%$configdirs%g
5149 s%@target_configargs@%$target_configargs%g
5150 s%@target_configdirs@%$target_configdirs%g
5151 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5152 s%@config_shell@%$config_shell%g
5153 s%@AR@%$AR%g
5154 s%@ncn_cv_AR@%$ncn_cv_AR%g
5155 s%@AS@%$AS%g
5156 s%@ncn_cv_AS@%$ncn_cv_AS%g
5157 s%@DLLTOOL@%$DLLTOOL%g
5158 s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g
5159 s%@LD@%$LD%g
5160 s%@ncn_cv_LD@%$ncn_cv_LD%g
5161 s%@NM@%$NM%g
5162 s%@ncn_cv_NM@%$ncn_cv_NM%g
5163 s%@RANLIB@%$RANLIB%g
5164 s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g
5165 s%@WINDRES@%$WINDRES%g
5166 s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g
5167 s%@OBJCOPY@%$OBJCOPY%g
5168 s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g
5169 s%@OBJDUMP@%$OBJDUMP%g
5170 s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g
5171 s%@CXX@%$CXX%g
5172 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
5173 s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
5174 s%@ncn_cv_CONFIGURED_AR_FOR_TARGET@%$ncn_cv_CONFIGURED_AR_FOR_TARGET%g
5175 s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
5176 s%@ncn_cv_CONFIGURED_AS_FOR_TARGET@%$ncn_cv_CONFIGURED_AS_FOR_TARGET%g
5177 s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
5178 s%@ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET@%$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET%g
5179 s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
5180 s%@ncn_cv_CONFIGURED_LD_FOR_TARGET@%$ncn_cv_CONFIGURED_LD_FOR_TARGET%g
5181 s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
5182 s%@ncn_cv_CONFIGURED_NM_FOR_TARGET@%$ncn_cv_CONFIGURED_NM_FOR_TARGET%g
5183 s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
5184 s%@ncn_cv_CONFIGURED_RANLIB_FOR_TARGET@%$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET%g
5185 s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
5186 s%@ncn_cv_CONFIGURED_WINDRES_FOR_TARGET@%$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET%g
5187 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
5188 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
5189 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
5190 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
5191 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
5192 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
5193 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
5194 s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
5195 s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
5196 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
5197 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
5198 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
5199 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
5200 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
5201 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
5202 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
5203 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5204 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5205 s%@MAINT@%$MAINT%g
5206 s%@stage1_cflags@%$stage1_cflags%g
5207 s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g
5208 s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g
5209 s%@stage2_werror_flag@%$stage2_werror_flag%g
5210 s%@SET_GCC_LIB_PATH@%$SET_GCC_LIB_PATH%g
5212 CEOF
5215 cat >> $CONFIG_STATUS <<\EOF
5217 # Split the substitutions into bite-sized pieces for seds with
5218 # small command number limits, like on Digital OSF/1 and HP-UX.
5219 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5220 ac_file=1 # Number of current file.
5221 ac_beg=1 # First line for current file.
5222 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5223 ac_more_lines=:
5224 ac_sed_cmds=""
5225 while $ac_more_lines; do
5226 if test $ac_beg -gt 1; then
5227 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5228 else
5229 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5231 if test ! -s conftest.s$ac_file; then
5232 ac_more_lines=false
5233 rm -f conftest.s$ac_file
5234 else
5235 if test -z "$ac_sed_cmds"; then
5236 ac_sed_cmds="sed -f conftest.s$ac_file"
5237 else
5238 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5240 ac_file=`expr $ac_file + 1`
5241 ac_beg=$ac_end
5242 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5244 done
5245 if test -z "$ac_sed_cmds"; then
5246 ac_sed_cmds=cat
5250 cat >> $CONFIG_STATUS <<EOF
5252 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5254 cat >> $CONFIG_STATUS <<\EOF
5255 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5256 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5257 case "$ac_file" in
5258 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5259 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5260 *) ac_file_in="${ac_file}.in" ;;
5261 esac
5263 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5265 # Remove last slash and all that follows it. Not all systems have dirname.
5266 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5267 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5268 # The file is in a subdirectory.
5269 test ! -d "$ac_dir" && mkdir "$ac_dir"
5270 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5271 # A "../" for each directory in $ac_dir_suffix.
5272 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5273 else
5274 ac_dir_suffix= ac_dots=
5277 case "$ac_given_srcdir" in
5278 .) srcdir=.
5279 if test -z "$ac_dots"; then top_srcdir=.
5280 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5281 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5282 *) # Relative path.
5283 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5284 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5285 esac
5287 case "$ac_given_INSTALL" in
5288 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5289 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5290 esac
5292 echo creating "$ac_file"
5293 rm -f "$ac_file"
5294 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5295 case "$ac_file" in
5296 *Makefile*) ac_comsub="1i\\
5297 # $configure_input" ;;
5298 *) ac_comsub= ;;
5299 esac
5301 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5302 sed -e "$ac_comsub
5303 s%@configure_input@%$configure_input%g
5304 s%@srcdir@%$srcdir%g
5305 s%@top_srcdir@%$top_srcdir%g
5306 s%@INSTALL@%$INSTALL%g
5307 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5308 fi; done
5309 rm -f conftest.s*
5312 cat >> $CONFIG_STATUS <<EOF
5315 cat >> $CONFIG_STATUS <<\EOF
5317 exit 0
5319 chmod +x $CONFIG_STATUS
5320 rm -fr confdefs* $ac_clean_files
5321 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1