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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-build-libsubdir=[DIR] Directory where to find libraries for build system"
17 --enable-libada Builds libada directory"
19 --enable-libssp Builds libssp directory"
21 --with-mpfr-dir=PATH This option has been REMOVED"
23 --with-mpfr=PATH Specify prefix directory for installed MPFR package
24 Equivalent to --with-mpfr-include=PATH/include
25 plus --with-mpfr-lib=PATH/lib"
27 --with-mpfr-include=PATH
28 Specify directory for installed MPFR include files"
30 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library"
32 --with-gmp-dir=PATH This option has been REMOVED"
34 --with-gmp=PATH Specify prefix directory for the installed GMP package
35 Equivalent to --with-gmp-include=PATH/include
36 plus --with-gmp-lib=PATH/lib"
38 --with-gmp-include=PATH Specify directory for installed GMP include files"
40 --with-gmp-lib=PATH Specify the directory for the installed GMP library"
42 --enable-stage1-languages[=all] choose additional languages to build during
43 stage1. Mostly useful for compiler development."
45 --enable-objc-gc enable the use of Boehm's garbage collector with
46 the GNU Objective-C runtime."
48 --with-build-sysroot=sysroot
49 use sysroot as the system root during the build"
51 --enable-bootstrap Enable bootstrapping [yes if native build]"
53 --enable-serial-[{host,target,build}-]configure
54 Force sequential configuration of
55 sub-packages for the host, target or build
56 machine, or all sub-packages"
58 --with-build-time-tools=path
59 use given path to find target tools during the build"
61 --enable-maintainer-mode enable make rules and dependencies not useful
62 (and sometimes confusing) to the casual installer"
64 --enable-stage1-checking[=all] choose additional checking for stage1
67 --enable-werror enable -Werror in bootstrap stage2 and later"
69 --with-datarootdir Use datarootdir as the data root directory."
71 --with-docdir Install documentation in this directory."
73 --with-htmldir Install html in this directory."
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
79 cache_file=./config.cache
88 program_transform_name=s,x,x,
96 bindir='${exec_prefix}/bin'
97 sbindir='${exec_prefix}/sbin'
98 libexecdir='${exec_prefix}/libexec'
99 datadir='${prefix}/share'
100 sysconfdir='${prefix}/etc'
101 sharedstatedir='${prefix}/com'
102 localstatedir='${prefix}/var'
103 libdir='${exec_prefix}/lib'
104 includedir='${prefix}/include'
105 oldincludedir='/usr/include'
106 infodir='${prefix}/info'
107 mandir='${prefix}/man'
109 # Initialize some other variables.
112 SHELL=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
120 # If the previous option needs an argument, assign it.
121 if test -n "$ac_prev"; then
122 eval "$ac_prev=\$ac_option"
128 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
132 # Accept the important Cygnus configure options, so we can diagnose typos.
136 -bindir | --bindir | --bindi | --bind | --bin | --bi)
138 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
139 bindir="$ac_optarg" ;;
141 -build | --build | --buil | --bui | --bu)
143 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
144 build="$ac_optarg" ;;
146 -cache-file | --cache-file | --cache-fil | --cache-fi \
147 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
148 ac_prev=cache_file ;;
149 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
150 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
151 cache_file="$ac_optarg" ;;
153 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
155 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
157 datadir="$ac_optarg" ;;
159 -disable-* | --disable-*)
160 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}=no" ;;
168 -enable-* | --enable-*)
169 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}='$ac_optarg'" ;;
181 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
182 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
183 | --exec | --exe | --ex)
184 ac_prev=exec_prefix ;;
185 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
186 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
187 | --exec=* | --exe=* | --ex=*)
188 exec_prefix="$ac_optarg" ;;
190 -gas | --gas | --ga | --g)
191 # Obsolete; use --with-gas.
194 -help | --help | --hel | --he)
195 # Omit some internal or obsolete options to make the list less imposing.
196 # This message is too long to be a string in the A/UX 3.1 sh.
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
201 --cache-file=FILE cache test results in FILE
202 --help print this message
203 --no-create do not create output files
204 --quiet, --silent do not print \`checking...' messages
205 --version print the version of autoconf that created configure
206 Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236 Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
249 -host | --host | --hos | --ho)
251 -host=* | --host=* | --hos=* | --ho=*)
254 -includedir | --includedir | --includedi | --included | --include \
255 | --includ | --inclu | --incl | --inc)
256 ac_prev=includedir ;;
257 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
258 | --includ=* | --inclu=* | --incl=* | --inc=*)
259 includedir="$ac_optarg" ;;
261 -infodir | --infodir | --infodi | --infod | --info | --inf)
263 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
264 infodir="$ac_optarg" ;;
266 -libdir | --libdir | --libdi | --libd)
268 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 libdir="$ac_optarg" ;;
271 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
272 | --libexe | --libex | --libe)
273 ac_prev=libexecdir ;;
274 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
275 | --libexe=* | --libex=* | --libe=*)
276 libexecdir="$ac_optarg" ;;
278 -localstatedir | --localstatedir | --localstatedi | --localstated \
279 | --localstate | --localstat | --localsta | --localst \
280 | --locals | --local | --loca | --loc | --lo)
281 ac_prev=localstatedir ;;
282 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
283 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
284 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
285 localstatedir="$ac_optarg" ;;
287 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
289 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 mandir="$ac_optarg" ;;
293 # Obsolete; use --without-fp.
296 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
300 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
301 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
304 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
305 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
306 | --oldin | --oldi | --old | --ol | --o)
307 ac_prev=oldincludedir ;;
308 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
309 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
310 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
311 oldincludedir="$ac_optarg" ;;
313 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
315 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316 prefix="$ac_optarg" ;;
318 -program-prefix | --program-prefix | --program-prefi | --program-pref \
319 | --program-pre | --program-pr | --program-p)
320 ac_prev=program_prefix ;;
321 -program-prefix=* | --program-prefix=* | --program-prefi=* \
322 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
323 program_prefix="$ac_optarg" ;;
325 -program-suffix | --program-suffix | --program-suffi | --program-suff \
326 | --program-suf | --program-su | --program-s)
327 ac_prev=program_suffix ;;
328 -program-suffix=* | --program-suffix=* | --program-suffi=* \
329 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
330 program_suffix="$ac_optarg" ;;
332 -program-transform-name | --program-transform-name \
333 | --program-transform-nam | --program-transform-na \
334 | --program-transform-n | --program-transform- \
335 | --program-transform | --program-transfor \
336 | --program-transfo | --program-transf \
337 | --program-trans | --program-tran \
338 | --progr-tra | --program-tr | --program-t)
339 ac_prev=program_transform_name ;;
340 -program-transform-name=* | --program-transform-name=* \
341 | --program-transform-nam=* | --program-transform-na=* \
342 | --program-transform-n=* | --program-transform-=* \
343 | --program-transform=* | --program-transfor=* \
344 | --program-transfo=* | --program-transf=* \
345 | --program-trans=* | --program-tran=* \
346 | --progr-tra=* | --program-tr=* | --program-t=*)
347 program_transform_name="$ac_optarg" ;;
349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
350 | -silent | --silent | --silen | --sile | --sil)
353 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
355 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
357 sbindir="$ac_optarg" ;;
359 -sharedstatedir | --sharedstatedir | --sharedstatedi \
360 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
361 | --sharedst | --shareds | --shared | --share | --shar \
363 ac_prev=sharedstatedir ;;
364 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
365 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
366 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
368 sharedstatedir="$ac_optarg" ;;
370 -site | --site | --sit)
372 -site=* | --site=* | --sit=*)
375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378 srcdir="$ac_optarg" ;;
380 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
381 | --syscon | --sysco | --sysc | --sys | --sy)
382 ac_prev=sysconfdir ;;
383 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
384 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
385 sysconfdir="$ac_optarg" ;;
387 -target | --target | --targe | --targ | --tar | --ta | --t)
389 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
390 target="$ac_optarg" ;;
392 -v | -verbose | --verbose | --verbos | --verbo | --verb)
395 -version | --version | --versio | --versi | --vers)
396 echo "configure generated by autoconf version 2.13"
400 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* | --without-*)
413 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
422 # Obsolete; use --with-x.
425 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
426 | --x-incl | --x-inc | --x-in | --x-i)
427 ac_prev=x_includes ;;
428 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
429 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
430 x_includes="$ac_optarg" ;;
432 -x-libraries | --x-libraries | --x-librarie | --x-librari \
433 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
434 ac_prev=x_libraries ;;
435 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
436 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
437 x_libraries="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c) ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file=move-if-change
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted=yes
519 # Try the directory containing this script, then its parent.
521 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
524 if test ! -r $srcdir/$ac_unique_file; then
528 ac_srcdir_defaulted=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE; then
542 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
544 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 for ac_site_file in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
558 echo "creating cache $cache_file"
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp='$CPP $CPPFLAGS'
565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling=$ac_cv_prog_cc_cross
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
580 ac_n= ac_c='\c' ac_t=
586 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
587 if test -f $ac_dir/install-sh; then
589 ac_install_sh="$ac_aux_dir/install-sh -c"
591 elif test -f $ac_dir/install.sh; then
593 ac_install_sh="$ac_aux_dir/install.sh -c"
597 if test -z "$ac_aux_dir"; then
598 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
600 ac_config_guess=$ac_aux_dir/config.guess
601 ac_config_sub=$ac_aux_dir/config.sub
602 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
605 # Do some error checking and defaulting for the host and target type.
607 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
610 # 1. You are not allowed to specify --host, --target, and nonopt at the
612 # 2. Host defaults to nonopt.
613 # 3. If nonopt is not specified, then host defaults to the current host,
614 # as determined by config.guess.
615 # 4. Target and build default to nonopt.
616 # 5. If nonopt is not specified, then target and build default to host.
618 # The aliases save the names the user supplied, while $host etc.
619 # will get canonicalized.
620 case $host---$target---$nonopt in
621 NONE---*---* | *---NONE---* | *---*---NONE) ;;
622 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
626 # Make sure we can run config.sub.
627 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
628 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
631 echo $ac_n "checking host system type""... $ac_c" 1>&6
632 echo "configure:633: checking host system type" >&5
635 case "$host_alias" in
639 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
640 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
642 *) host_alias=$nonopt ;;
646 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
647 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
648 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
649 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
650 echo "$ac_t""$host" 1>&6
652 echo $ac_n "checking target system type""... $ac_c" 1>&6
653 echo "configure:654: checking target system type" >&5
656 case "$target_alias" in
659 NONE) target_alias=$host_alias ;;
660 *) target_alias=$nonopt ;;
664 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
665 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
666 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
667 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
668 echo "$ac_t""$target" 1>&6
670 echo $ac_n "checking build system type""... $ac_c" 1>&6
671 echo "configure:672: checking build system type" >&5
674 case "$build_alias" in
677 NONE) build_alias=$host_alias ;;
678 *) build_alias=$nonopt ;;
682 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
683 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
684 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
685 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
686 echo "$ac_t""$build" 1>&6
688 test "$host_alias" != "$target_alias" &&
689 test "$program_prefix$program_suffix$program_transform_name" = \
691 program_prefix=${target_alias}-
693 if test "$program_transform_name" = s,x,x,; then
694 program_transform_name=
696 # Double any \ or $. echo might interpret backslashes.
697 cat <<\EOF_SED > conftestsed
698 s,\\,\\\\,g; s,\$,$$,g
700 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
703 test "$program_prefix" != NONE &&
704 program_transform_name="s,^,${program_prefix},; $program_transform_name"
705 # Use a double $ so make ignores it.
706 test "$program_suffix" != NONE &&
707 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
709 # sed with no file args requires a program.
710 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
713 # Get 'install' or 'install-sh' and its variants.
714 # Find a good install program. We prefer a C program (faster),
715 # so one script is as good as another. But avoid the broken or
716 # incompatible versions:
717 # SysV /etc/install, /usr/sbin/install
718 # SunOS /usr/etc/install
721 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
722 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
723 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
724 # ./install, which can be erroneously created by make from ./install.sh.
725 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
726 echo "configure:727: checking for a BSD compatible install" >&5
727 if test -z "$INSTALL"; then
728 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
731 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
732 for ac_dir in $PATH; do
733 # Account for people who put trailing slashes in PATH elements.
735 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
737 # OSF1 and SCO ODT 3.0 have their own names for install.
738 # Don't use installbsd from OSF since it installs stuff as root
740 for ac_prog in ginstall scoinst install; do
741 if test -f $ac_dir/$ac_prog; then
742 if test $ac_prog = install &&
743 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
744 # AIX install. It has an incompatible calling convention.
747 ac_cv_path_install="$ac_dir/$ac_prog -c"
758 if test "${ac_cv_path_install+set}" = set; then
759 INSTALL="$ac_cv_path_install"
761 # As a last resort, use the slow shell script. We don't cache a
762 # path for INSTALL within a source directory, because that will
763 # break other packages using the cache if that directory is
764 # removed, or if the path is relative.
765 INSTALL="$ac_install_sh"
768 echo "$ac_t""$INSTALL" 1>&6
770 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
771 # It thinks the first close brace ends the variable substitution.
772 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
774 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
776 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
778 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
779 echo "configure:780: checking whether ln works" >&5
780 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
785 if ln conftestdata_f conftestdata_t 2>/dev/null
791 rm -f conftestdata_f conftestdata_t
794 if test $acx_cv_prog_LN = no; then
796 echo "$ac_t""no, using $LN" 1>&6
799 echo "$ac_t""yes" 1>&6
802 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
803 echo "configure:804: checking whether ln -s works" >&5
804 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
808 if ln -s X conftestdata 2>/dev/null
811 ac_cv_prog_LN_S="ln -s"
816 LN_S="$ac_cv_prog_LN_S"
817 if test "$ac_cv_prog_LN_S" = "ln -s"; then
818 echo "$ac_t""yes" 1>&6
820 echo "$ac_t""no" 1>&6
824 ### we might need to use some other shell than /bin/sh for running subshells
825 ### If we are on Windows, search for the shell. This will permit people
826 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
827 ### without also having to set CONFIG_SHELL. This code will work when
828 ### using bash, which sets OSTYPE.
831 if test x${CONFIG_SHELL} = x ; then
832 if test ! -f /bin/sh ; then
833 if test x${SHELL} != x && test -f ${SHELL} ; then
834 CONFIG_SHELL=${SHELL}
837 for prog in sh sh.exe bash bash.exe; do
838 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
840 test -z "$dir" && dir=.
841 if test -f $dir/$prog; then
842 CONFIG_SHELL=$dir/$prog
848 test -n "${CONFIG_SHELL}" && break
856 config_shell=${CONFIG_SHELL-/bin/sh}
859 # if PWD already has a value, it is probably wrong.
860 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
862 # Export original configure arguments for use by sub-configures. These
863 # will be expanded by make, so quote '$'.
865 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
868 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
869 rm -f conftestsed.out
872 moveifchange=${srcdir}/move-if-change
874 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
876 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
878 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
879 INSTALL="${srcpwd}/install-sh -c"
882 # Set srcdir to "." if that's what it is.
883 # This is important for multilib support.
885 if test "${pwd}" = "${srcpwd}" ; then
893 ### To add a new directory to the tree, first choose whether it is a target
894 ### or a host dependent tool. Then put it into the appropriate list
895 ### (library or tools, host or target), doing a dependency sort.
897 # Subdirs will be configured in the order listed in build_configdirs,
898 # configdirs, or target_configdirs; see the serialization section below.
900 # Dependency sorting is only needed when *configuration* must be done in
901 # a particular order. In all cases a dependency should be specified in
902 # the Makefile, whether or not it's implicitly specified here.
904 # Double entries in build_configdirs, configdirs, or target_configdirs may
905 # cause circular dependencies and break everything horribly.
907 # these library is used by various programs built for the build
910 build_libs="build-libiberty"
912 # these tools are built for the build environment
913 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
915 # these libraries are used by various programs built for the host environment
917 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
919 # these tools are built for the host environment
920 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
921 # know that we are building the simulator.
922 # binutils, gas and ld appear in that order because it makes sense to run
923 # "make check" in that particular order.
924 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
926 # libgcj represents the runtime libraries only used by gcj.
927 libgcj="target-libffi \
932 # these libraries are built for the target environment, and are built after
933 # the host libraries and the host tools (which may be a cross compiler)
935 target_libraries="target-libiberty \
939 target-libstdc++-v3 \
949 # these tools are built using the target libraries, and are intended to
950 # run only in the target environment
952 # note: any program that *uses* libraries that are in the "target_libraries"
953 # list belongs in this list. those programs are also very likely
954 # candidates for the "native_only" list which follows
956 target_tools="target-examples target-groff target-gperf target-rda"
958 ################################################################################
960 ## All tools belong in one of the four categories, and are assigned above
961 ## We assign ${configdirs} this way to remove all embedded newlines. This
962 ## is important because configure will choke if they ever get through.
963 ## ${configdirs} is directories we build using the host tools.
964 ## ${target_configdirs} is directories we build using the target tools.
965 configdirs=`echo ${host_libs} ${host_tools}`
966 target_configdirs=`echo ${target_libraries} ${target_tools}`
967 build_configdirs=`echo ${build_libs} ${build_tools}`
969 ################################################################################
971 srcname="gnu development package"
973 # This gets set non-empty for some net releases of packages.
976 # Define is_cross_compiler to save on calls to 'test'.
978 if test x"${host}" = x"${target}" ; then
981 is_cross_compiler=yes
984 # Find the build and target subdir names.
985 case ${build_alias} in
986 "") build_noncanonical=${build} ;;
987 *) build_noncanonical=${build_alias} ;;
990 case ${host_alias} in
991 "") host_noncanonical=${build_noncanonical} ;;
992 *) host_noncanonical=${host_alias} ;;
995 case ${target_alias} in
996 "") target_noncanonical=${host_noncanonical} ;;
997 *) target_noncanonical=${target_alias} ;;
1001 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1002 # have matching libraries, they should use host libraries: Makefile.tpl
1003 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1004 # However, they still use the build modules, because the corresponding
1005 # host modules (e.g. bison) are only built for the host when bootstrap
1007 # - build_subdir is where we find build modules, and never changes.
1008 # - build_libsubdir is where we find build libraries, and can be overridden.
1010 # Prefix 'build-' so this never conflicts with target_subdir.
1011 build_subdir="build-${build_noncanonical}"
1012 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1013 if test "${with_build_libsubdir+set}" = set; then
1014 withval="$with_build_libsubdir"
1015 build_libsubdir="$withval"
1017 build_libsubdir="$build_subdir"
1020 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1021 if ( test $srcdir = . && test -d gcc ) \
1022 || test -d $srcdir/../host-${host_noncanonical}; then
1023 host_subdir="host-${host_noncanonical}"
1028 target_subdir=${target_noncanonical}
1031 # Skipdirs are removed silently.
1033 # Noconfigdirs are removed loudly.
1037 # Make sure we don't let GNU ld be added if we didn't want it.
1038 if test x$with_gnu_ld = xno ; then
1040 noconfigdirs="$noconfigdirs ld"
1044 # Make sure we don't let GNU as be added if we didn't want it.
1045 if test x$with_gnu_as = xno ; then
1047 noconfigdirs="$noconfigdirs gas"
1050 # some tools are so dependent upon X11 that if we're not building with X,
1051 # it's not even worth trying to configure, much less build, that tool.
1054 yes | "") ;; # the default value for this tree is that X11 is available
1056 skipdirs="${skipdirs} tk itcl libgui"
1057 # We won't be able to build gdbtk without X.
1060 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1063 # Some tools are only suitable for building in a "native" situation.
1064 # Remove these if host!=target.
1065 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1067 # Similarly, some are only suitable for cross toolchains.
1068 # Remove these if host=target.
1069 cross_only="target-libgloss target-newlib target-opcodes"
1071 case $is_cross_compiler in
1072 no) skipdirs="${skipdirs} ${cross_only}" ;;
1073 yes) skipdirs="${skipdirs} ${native_only}" ;;
1076 # If both --with-headers and --with-libs are specified, default to
1078 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1079 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1080 if test x"${with_newlib}" = x ; then
1085 # Recognize --with-newlib/--without-newlib.
1086 case ${with_newlib} in
1087 no) skipdirs="${skipdirs} target-newlib" ;;
1088 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1091 # Configure extra directories which are host specific
1095 configdirs="$configdirs libtermcap" ;;
1098 # A target can indicate whether a language isn't supported for some reason.
1099 # Only spaces may be used in this macro; not newlines or tabs.
1100 unsupported_languages=
1102 # Remove more programs from consideration, based on the host or
1103 # target this usually means that a port of the program doesn't
1108 noconfigdirs="$noconfigdirs byacc"
1110 i[3456789]86-*-vsta)
1111 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1113 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1114 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1117 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1119 i[3456789]86-*-mingw32*)
1120 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1121 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1123 i[3456789]86-*-beos*)
1124 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1127 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1130 noconfigdirs="$noconfigdirs rcs"
1133 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1136 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1141 # Check whether --enable-libada or --disable-libada was given.
1142 if test "${enable_libada+set}" = set; then
1143 enableval="$enable_libada"
1144 ENABLE_LIBADA=$enableval
1149 if test "${ENABLE_LIBADA}" != "yes" ; then
1150 noconfigdirs="$noconfigdirs gnattools"
1153 # Check whether --enable-libssp or --disable-libssp was given.
1154 if test "${enable_libssp+set}" = set; then
1155 enableval="$enable_libssp"
1156 ENABLE_LIBSSP=$enableval
1162 # Save it here so that, even in case of --enable-libgcj, if the Java
1163 # front-end isn't enabled, we still get libgcj disabled.
1164 libgcj_saved=$libgcj
1165 case $enable_libgcj in
1167 # If we reset it here, it won't get added to noconfigdirs in the
1168 # target-specific build rules, so it will be forcibly enabled
1169 # (unless the Java language itself isn't enabled).
1173 # Make sure we get it printed in the list of not supported target libs.
1174 noconfigdirs="$noconfigdirs ${libgcj}"
1179 # Disable libmudflap on some systems.
1180 if test x$enable_libmudflap = x ; then
1182 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1183 # Enable libmudflap by default in GNU and friends.
1186 # Enable libmudflap by default in FreeBSD.
1189 # Disable it by default everywhere else.
1190 noconfigdirs="$noconfigdirs target-libmudflap"
1195 # Disable libgomp on non POSIX hosted systems.
1196 if test x$enable_libgomp = x ; then
1197 # Enable libgomp by default on hosted POSIX systems.
1199 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1201 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1203 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
1205 *-*-darwin* | *-*-aix*)
1208 noconfigdirs="$noconfigdirs target-libgomp"
1216 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1218 powerpc-*-darwin* | i[3456789]86-*-darwin*)
1219 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1220 noconfigdirs="$noconfigdirs sim target-rda"
1223 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1224 noconfigdirs="$noconfigdirs sim target-rda"
1225 noconfigdirs="$noconfigdirs ${libgcj}"
1227 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1228 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1231 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1232 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1233 && test -f /usr/local/include/gmp.h; then
1237 # Skip some stuff that's unsupported on some FreeBSD configurations.
1242 noconfigdirs="$noconfigdirs ${libgcj}"
1247 # Remove unsupported stuff on all kaOS configurations.
1248 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1249 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1250 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1251 noconfigdirs="$noconfigdirs target-libgloss"
1254 # Skip some stuff on all NetBSD configurations.
1255 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1257 # Skip some stuff that's unsupported on some NetBSD configurations.
1259 i*86-*-netbsdelf*) ;;
1260 arm*-*-netbsdelf*) ;;
1262 noconfigdirs="$noconfigdirs ${libgcj}"
1267 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1270 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1272 # The tpf target doesn't support gdb yet.
1274 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1277 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1280 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1283 # ld works, but does not support shared libraries.
1284 # newlib is not 64 bit ready. I'm not sure about fileutils.
1285 # gas doesn't generate exception information.
1286 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1289 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1292 # newlib is not 64 bit ready
1293 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1296 # newlib is not 64 bit ready
1297 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1300 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1303 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1305 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1306 noconfigdirs="$noconfigdirs ${libgcj}"
1307 noconfigdirs="$noconfigdirs target-examples"
1308 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1309 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1310 noconfigdirs="$noconfigdirs expect dejagnu"
1311 # the C++ libraries don't build on top of CE's C libraries
1312 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1313 noconfigdirs="$noconfigdirs target-newlib"
1315 *-*-cygwin*) ;; # keep gdb and readline
1316 *) noconfigdirs="$noconfigdirs gdb readline"
1321 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1325 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1326 noconfigdirs="$noconfigdirs ${libgcj}"
1328 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1329 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1331 arm*-*-linux-gnueabi)
1332 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1333 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1336 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1339 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1342 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1345 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1348 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1351 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1354 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1357 noconfigdirs="$noconfigdirs gdb"
1358 if test x${is_cross_compiler} != xno ; then
1359 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1362 c4x-*-* | tic4x-*-*)
1363 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1365 c54x*-*-* | tic54x-*-*)
1366 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1368 cris-*-* | crisv32-*-*)
1369 unsupported_languages="$unsupported_languages java"
1372 unsupported_languages="$unsupported_languages fortran"
1373 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
1375 unsupported_languages="$unsupported_languages fortran"
1376 noconfigdirs="$noconfigdirs target-boehm-gc";;
1378 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
1380 unsupported_languages="$unsupported_languages fortran"
1381 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1385 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1388 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1391 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1394 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1397 noconfigdirs="$noconfigdirs ${libgcj}"
1400 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1403 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1405 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1407 hppa*64*-*-linux* | parisc*64*-*-linux*)
1408 # In this case, it's because the hppa64-linux target is for
1409 # the kernel only at this point and has no libc, and thus no
1410 # headers, crt*.o, etc., all of which are needed by these.
1411 noconfigdirs="$noconfigdirs target-zlib"
1413 parisc*-*-linux* | hppa*-*-linux*)
1417 hppa*-*-openbsd* | \
1419 noconfigdirs="$noconfigdirs ${libgcj}"
1422 noconfigdirs="$noconfigdirs ld shellutils"
1425 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1426 # build on HP-UX 10.20.
1427 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1430 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1433 # No gdb support yet.
1434 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1437 # No gdb or ld support yet.
1438 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1442 i[3456789]86-*-coff | i[3456789]86-*-elf)
1443 noconfigdirs="$noconfigdirs ${libgcj}"
1445 i[3456789]86-*-linux*)
1446 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1447 # not build java stuff by default.
1450 noconfigdirs="$noconfigdirs ${libgcj}";;
1453 # This section makes it possible to build newlib natively on linux.
1454 # If we are using a cross compiler then don't configure newlib.
1455 if test x${is_cross_compiler} != xno ; then
1456 noconfigdirs="$noconfigdirs target-newlib"
1458 noconfigdirs="$noconfigdirs target-libgloss"
1459 # If we are not using a cross compiler, do configure newlib.
1460 # Note however, that newlib will only be configured in this situation
1461 # if the --with-newlib option has been given, because otherwise
1462 # 'target-newlib' will appear in skipdirs.
1464 i[3456789]86-*-mingw32*)
1465 target_configdirs="$target_configdirs target-winsup"
1466 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1469 target_configdirs="$target_configdirs target-winsup"
1470 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1473 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1474 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1475 # always build newlib if winsup directory is present.
1476 if test -d "$srcdir/winsup/cygwin"; then
1477 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1478 elif test -d "$srcdir/newlib"; then
1479 echo "Warning: winsup/cygwin is missing so newlib can't be built."
1482 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1483 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1486 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1488 i[3456789]86-*-sco3.2v5*)
1489 # The linker does not yet know about weak symbols in COFF,
1490 # and is not configured to handle mixed ELF and COFF.
1491 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1493 i[3456789]86-*-sco*)
1494 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1496 i[3456789]86-*-solaris2*)
1497 noconfigdirs="$noconfigdirs target-libgloss"
1499 i[3456789]86-*-sysv4*)
1500 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1502 i[3456789]86-*-beos*)
1503 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1505 i[3456789]86-*-rdos*)
1506 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1509 noconfigdirs="$noconfigdirs ${libgcj}"
1511 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1512 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1515 noconfigdirs="$noconfigdirs ${libgcj}"
1518 noconfigdirs="$noconfigdirs ${libgcj}"
1521 # The EPOC C++ environment does not support exceptions or rtti,
1522 # and so building libstdc++-v3 tends not to always work.
1523 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1526 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1527 unsupported_languages="$unsupported_languages fortran java"
1530 noconfigdirs="$noconfigdirs ${libgcj}"
1533 noconfigdirs="$noconfigdirs ${libgcj}"
1536 noconfigdirs="$noconfigdirs sim"
1539 # copied from rs6000-*-* entry
1540 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1542 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1543 target_configdirs="$target_configdirs target-winsup"
1544 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1545 # always build newlib.
1546 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1548 # This is temporary until we can link against shared libraries
1549 powerpcle-*-solaris*)
1550 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1553 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1556 noconfigdirs="$noconfigdirs ${libgcj}"
1558 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1561 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1564 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1567 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1570 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1573 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1576 # Linking libjava exceeds command-line length limits on at least
1577 # IRIX 6.2, but not on IRIX 6.5.
1578 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1579 # <oldham@codesourcery.com>
1580 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1583 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1586 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1589 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1592 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1595 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1599 i[3456789]86-*-vsta) ;; # don't add gprof back in
1600 i[3456789]86-*-go32*) ;; # don't add gprof back in
1601 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1602 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1604 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1607 noconfigdirs="$noconfigdirs ${libgcj}"
1610 noconfigdirs="$noconfigdirs ${libgcj}"
1613 noconfigdirs="$noconfigdirs ${libgcj}"
1616 noconfigdirs="$noconfigdirs ${libgcj}"
1617 if test x${is_cross_compiler} != xno ; then
1618 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1623 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1624 noconfigdirs="$noconfigdirs ${libgcj}"
1626 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1629 skipdirs="target-libssp"
1632 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1635 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1638 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1641 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1644 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1647 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1650 noconfigdirs="$noconfigdirs ${libgcj}"
1653 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1655 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1659 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1662 noconfigdirs="$noconfigdirs ${libgcj}"
1666 # If we aren't building newlib, then don't build libgloss, since libgloss
1667 # depends upon some newlib header files.
1668 case "${noconfigdirs}" in
1669 *target-libgloss*) ;;
1670 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1673 # Work in distributions that contain no compiler tools, like Autoconf.
1675 host_makefile_frag=/dev/null
1676 if test -d ${srcdir}/config ; then
1679 # Avoid "too much defining" errors from HPUX compiler.
1680 tentative_cc="cc -Wp,-H256000"
1681 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1682 # If it's HP/UX ar, this should be harmless.
1686 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1689 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1690 # chokes on bfd, the compiler won't let you assign integers to enums, and
1691 # other problems. Defining CC to gcc is a questionable way to say "don't use
1692 # the apollo compiler" (the preferred version of GCC could be called cc,
1693 # or whatever), but I'm not sure leaving CC as cc is any better...
1694 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1695 # Used to have BISON=yacc.
1699 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1702 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1703 tentative_cc="cc -Xa"
1704 host_makefile_frag="config/mh-cxux"
1706 m88k-motorola-sysv*)
1709 tentative_cc="cc -Wf,-XNg1000"
1710 host_makefile_frag="config/mh-decstation"
1713 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1714 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1715 host_makefile_frag="config/mh-necv4"
1718 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1719 # environment. Also bump switch table size so that cp-parse will
1720 # compile. Bump string length limit so linker builds.
1721 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1724 host_makefile_frag="config/mh-sysv4"
1727 # This is for a MIPS running RISC/os 4.52C.
1729 # This is needed for GDB, but needs to be in the top-level make because
1730 # if a library is compiled with the bsd headers and gets linked with the
1731 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1732 # a different size).
1733 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1734 # known except to select the sysv environment. Could we use /proc instead?
1735 # These "sysv environments" and "bsd environments" often end up being a pain.
1737 # This is not part of CFLAGS because perhaps not all C compilers have this
1739 tentative_cc="cc -systype sysv"
1744 i[3456789]86-*-sysv5*)
1745 host_makefile_frag="config/mh-sysv5"
1747 i[3456789]86-*-dgux*)
1748 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1749 host_makefile_frag="config/mh-dgux386"
1751 i[3456789]86-ncr-sysv4.3*)
1752 # The MetaWare compiler will generate a copyright message unless you
1753 # turn it off by adding the -Hnocopyr flag.
1754 tentative_cc="cc -Hnocopyr"
1756 i[3456789]86-ncr-sysv4*)
1757 # for an NCR 3000 (i486/SVR4) system.
1758 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1759 # This compiler not only emits obnoxious copyright messages every time
1760 # you run it, but it chokes and dies on a whole bunch of GNU source
1761 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1762 tentative_cc="/usr/ccs/ATT/cc"
1763 host_makefile_frag="config/mh-ncr3000"
1765 i[3456789]86-*-sco3.2v5*)
1767 i[3456789]86-*-sco*)
1768 # The native C compiler botches some simple uses of const. Unfortunately,
1769 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1770 tentative_cc="cc -Dconst="
1771 host_makefile_frag="config/mh-sco"
1773 i[3456789]86-*-udk*)
1774 host_makefile_frag="config/mh-sysv5"
1776 i[3456789]86-*-solaris2*)
1777 host_makefile_frag="config/mh-sysv4"
1779 i[3456789]86-*-msdosdjgpp*)
1780 host_makefile_frag="config/mh-djgpp"
1783 host_makefile_frag="config/mh-cygwin"
1790 host_makefile_frag="config/mh-interix"
1793 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1797 host_makefile_frag="config/mh-solaris"
1800 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1801 # without overflowing the jump tables (-J says to use a 32 bit table)
1802 tentative_cc="cc -J"
1805 tentative_cc="cc -Wp,-H256000"
1808 tentative_cc="cc -Wp,-H256000"
1811 # /bin/cc is less than useful for our purposes. Always use GCC
1812 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1813 host_makefile_frag="config/mh-lynxrs6k"
1816 host_makefile_frag="config/mh-ppc-darwin"
1819 host_makefile_frag="config/mh-ppc-aix"
1822 host_makefile_frag="config/mh-ppc-aix"
1825 # /bin/cc is less than useful for our purposes. Always use GCC
1826 tentative_cc="/bin/gcc"
1829 host_makefile_frag="config/mh-sysv4"
1831 # This is placed last to prevent interfering with the cases above.
1833 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1834 host_makefile_frag="config/mh-x86omitfp"
1839 # If we aren't going to be using gcc, see if we can extract a definition
1840 # of CC from the fragment.
1841 # Actually, use the 'pre-extracted' version above.
1842 if test -z "${CC}" && test "${build}" = "${host}" ; then
1843 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1845 for dir in $PATH; do
1846 test -z "$dir" && dir=.
1847 if test -f $dir/gcc; then
1853 if test -z "${found}" && test -n "${tentative_cc}" ; then
1858 if test "${build}" != "${host}" ; then
1859 # If we are doing a Canadian Cross, in which the host and build systems
1860 # are not the same, we set reasonable default values for the tools.
1862 CC=${CC-${host_alias}-gcc}
1863 CFLAGS=${CFLAGS-"-g -O2"}
1864 CXX=${CXX-${host_alias}-c++}
1865 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1866 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1869 # Set reasonable default values for some tools even if not Canadian.
1870 # Of course, these are different reasonable default values, originally
1871 # specified directly in the Makefile.
1872 # We don't export, so that autoconf can do its job.
1873 # Note that all these settings are above the fragment inclusion point
1874 # in Makefile.in, so can still be overridden by fragments.
1875 # This is all going to change when we autoconfiscate...
1877 CC_FOR_BUILD="\$(CC)"
1878 # Extract the first word of "gcc", so it can be a program name with args.
1879 set dummy gcc; ac_word=$2
1880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1881 echo "configure:1882: checking for $ac_word" >&5
1882 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 if test -n "$CC"; then
1886 ac_cv_prog_CC="$CC" # Let the user override the test.
1888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1890 for ac_dir in $ac_dummy; do
1891 test -z "$ac_dir" && ac_dir=.
1892 if test -f $ac_dir/$ac_word; then
1901 if test -n "$CC"; then
1902 echo "$ac_t""$CC" 1>&6
1904 echo "$ac_t""no" 1>&6
1907 if test -z "$CC"; then
1908 # Extract the first word of "cc", so it can be a program name with args.
1909 set dummy cc; ac_word=$2
1910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $ac_word" >&5
1912 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC="$CC" # Let the user override the test.
1918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1921 for ac_dir in $ac_dummy; do
1922 test -z "$ac_dir" && ac_dir=.
1923 if test -f $ac_dir/$ac_word; then
1924 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1925 ac_prog_rejected=yes
1933 if test $ac_prog_rejected = yes; then
1934 # We found a bogon in the path, so make sure we never use it.
1935 set dummy $ac_cv_prog_CC
1937 if test $# -gt 0; then
1938 # We chose a different compiler from the bogus one.
1939 # However, it has the same basename, so the bogon will be chosen
1940 # first if we set CC to just the basename; use the full file name.
1942 set dummy "$ac_dir/$ac_word" "$@"
1950 if test -n "$CC"; then
1951 echo "$ac_t""$CC" 1>&6
1953 echo "$ac_t""no" 1>&6
1956 if test -z "$CC"; then
1957 case "`uname -s`" in
1959 # Extract the first word of "cl", so it can be a program name with args.
1960 set dummy cl; ac_word=$2
1961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1962 echo "configure:1963: checking for $ac_word" >&5
1963 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
1969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1971 for ac_dir in $ac_dummy; do
1972 test -z "$ac_dir" && ac_dir=.
1973 if test -f $ac_dir/$ac_word; then
1982 if test -n "$CC"; then
1983 echo "$ac_t""$CC" 1>&6
1985 echo "$ac_t""no" 1>&6
1990 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1993 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1994 echo "configure:1995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1997 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1998 ac_cpp='$CPP $CPPFLAGS'
1999 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2000 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2001 cross_compiling=$ac_cv_prog_cc_cross
2003 cat > conftest.$ac_ext << EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2010 if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2011 ac_cv_prog_cc_works=yes
2012 # If we can't run a trivial program, we are probably using a cross compiler.
2013 if (./conftest; exit) 2>/dev/null; then
2014 ac_cv_prog_cc_cross=no
2016 ac_cv_prog_cc_cross=yes
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2021 ac_cv_prog_cc_works=no
2025 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2026 ac_cpp='$CPP $CPPFLAGS'
2027 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2028 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2029 cross_compiling=$ac_cv_prog_cc_cross
2031 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2032 if test $ac_cv_prog_cc_works = no; then
2033 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2035 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2036 echo "configure:2037: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2037 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2038 cross_compiling=$ac_cv_prog_cc_cross
2040 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2041 echo "configure:2042: checking whether we are using GNU C" >&5
2042 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2045 cat > conftest.c <<EOF
2050 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2057 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2059 if test $ac_cv_prog_gcc = yes; then
2065 ac_test_CFLAGS="${CFLAGS+set}"
2066 ac_save_CFLAGS="$CFLAGS"
2068 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2069 echo "configure:2070: checking whether ${CC-cc} accepts -g" >&5
2070 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 echo 'void f(){}' > conftest.c
2074 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2083 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2084 if test "$ac_test_CFLAGS" = set; then
2085 CFLAGS="$ac_save_CFLAGS"
2086 elif test $ac_cv_prog_cc_g = yes; then
2087 if test "$GCC" = yes; then
2093 if test "$GCC" = yes; then
2101 # We must set the default linker to the linker used by gcc for the correct
2102 # operation of libtool. If LD is not defined and we are using gcc, try to
2103 # set the LD default to the ld used by gcc.
2104 if test -z "$LD"; then
2105 if test "$GCC" = yes; then
2108 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2110 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2112 case $gcc_prog_ld in
2113 # Accept absolute paths.
2114 [\\/]* | [A-Za-z]:[\\/]*)
2115 LD="$gcc_prog_ld" ;;
2121 CFLAGS=${CFLAGS-"-g"}
2122 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2125 if test $host != $build; then
2126 ac_tool_prefix=${host_alias}-
2133 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2134 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2136 echo "configure:2137: checking for $ac_word" >&5
2137 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2140 if test -n "$GNATBIND"; then
2141 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2145 for ac_dir in $ac_dummy; do
2146 test -z "$ac_dir" && ac_dir=.
2147 if test -f $ac_dir/$ac_word; then
2148 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2155 GNATBIND="$ac_cv_prog_GNATBIND"
2156 if test -n "$GNATBIND"; then
2157 echo "$ac_t""$GNATBIND" 1>&6
2159 echo "$ac_t""no" 1>&6
2163 if test -z "$ac_cv_prog_GNATBIND"; then
2164 if test -n "$ac_tool_prefix"; then
2165 # Extract the first word of "gnatbind", so it can be a program name with args.
2166 set dummy gnatbind; ac_word=$2
2167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2168 echo "configure:2169: checking for $ac_word" >&5
2169 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 if test -n "$GNATBIND"; then
2173 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2177 for ac_dir in $ac_dummy; do
2178 test -z "$ac_dir" && ac_dir=.
2179 if test -f $ac_dir/$ac_word; then
2180 ac_cv_prog_GNATBIND="gnatbind"
2185 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2188 GNATBIND="$ac_cv_prog_GNATBIND"
2189 if test -n "$GNATBIND"; then
2190 echo "$ac_t""$GNATBIND" 1>&6
2192 echo "$ac_t""no" 1>&6
2200 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2201 echo "configure:2202: checking whether compiler driver understands Ada" >&5
2202 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2205 cat >conftest.adb <<EOF
2206 procedure conftest is begin null; end conftest;
2208 acx_cv_cc_gcc_supports_ada=no
2209 # There is a bug in old released versions of GCC which causes the
2210 # driver to exit successfully when the appropriate language module
2211 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2212 # Therefore we must check for the error message as well as an
2213 # unsuccessful exit.
2214 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2215 # given a .adb file, but produce no object file. So we must check
2216 # if an object file was really produced to guard against this.
2217 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2218 if test x"$errors" = x && test -f conftest.$ac_objext; then
2219 acx_cv_cc_gcc_supports_ada=yes
2224 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2226 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2232 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2233 echo "configure:2234: checking how to compare bootstrapped objects" >&5
2234 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2239 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2240 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2241 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2244 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2247 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2248 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2251 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2258 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2259 do_compare="$gcc_cv_prog_cmp_skip"
2263 # Check for GMP and MPFR
2267 # Specify a location for mpfr
2268 # check for this first so it ends up on the link line before gmp.
2269 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2270 if test "${with_mpfr_dir+set}" = set; then
2271 withval="$with_mpfr_dir"
2272 { echo "configure: error: The --with-mpfr-dir=PATH option has been removed.
2273 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" 1>&2; exit 1; }
2277 # Check whether --with-mpfr or --without-mpfr was given.
2278 if test "${with_mpfr+set}" = set; then
2279 withval="$with_mpfr"
2283 # Check whether --with-mpfr_include or --without-mpfr_include was given.
2284 if test "${with_mpfr_include+set}" = set; then
2285 withval="$with_mpfr_include"
2289 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
2290 if test "${with_mpfr_lib+set}" = set; then
2291 withval="$with_mpfr_lib"
2296 if test "x$with_mpfr" != x; then
2297 gmplibs="-L$with_mpfr/lib $gmplibs"
2298 gmpinc="-I$with_mpfr/include"
2300 if test "x$with_mpfr_include" != x; then
2301 gmpinc="-I$with_mpfr_include"
2303 if test "x$with_mpfr_lib" != x; then
2304 gmplibs="-L$with_mpfr_lib $gmplibs"
2307 # Specify a location for gmp
2308 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2309 if test "${with_gmp_dir+set}" = set; then
2310 withval="$with_gmp_dir"
2311 { echo "configure: error: The --with-gmp-dir=PATH option has been removed.
2312 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" 1>&2; exit 1; }
2316 gmplibs="$gmplibs -lgmp"
2318 # Check whether --with-gmp or --without-gmp was given.
2319 if test "${with_gmp+set}" = set; then
2324 # Check whether --with-gmp_include or --without-gmp_include was given.
2325 if test "${with_gmp_include+set}" = set; then
2326 withval="$with_gmp_include"
2330 # Check whether --with-gmp_lib or --without-gmp_lib was given.
2331 if test "${with_gmp_lib+set}" = set; then
2332 withval="$with_gmp_lib"
2338 if test "x$with_gmp" != x; then
2339 gmplibs="-L$with_gmp/lib $gmplibs"
2340 gmpinc="-I$with_gmp/include $gmpinc"
2342 if test "x$with_gmp_include" != x; then
2343 gmpinc="-I$with_gmp_include $gmpinc"
2345 if test "x$with_gmp_lib" != x; then
2346 gmplibs="-L$with_gmp_lib $gmplibs"
2349 saved_CFLAGS="$CFLAGS"
2350 CFLAGS="$CFLAGS $gmpinc"
2351 # Check GMP actually works
2352 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2353 echo "configure:2354: checking for correct version of gmp.h" >&5
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2360 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
2366 if { (eval echo configure:2367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2368 echo "$ac_t""yes" 1>&6
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2373 echo "$ac_t""no" 1>&6; have_gmp=no
2377 if test x"$have_gmp" = xyes; then
2379 LIBS="$LIBS $gmplibs"
2380 echo $ac_n "checking for correct version of mpfr.h""... $ac_c" 1>&6
2381 echo "configure:2382: checking for correct version of mpfr.h" >&5
2382 cat > conftest.$ac_ext <<EOF
2383 #line 2384 "configure"
2384 #include "confdefs.h"
2389 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
2392 mpfr_t n; mpfr_init(n);
2396 if { (eval echo configure:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2405 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
2408 mpfr_t n; mpfr_init(n);
2412 if { (eval echo configure:2413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2414 echo "$ac_t""yes" 1>&6
2416 echo "configure: failed program was:" >&5
2417 cat conftest.$ac_ext >&5
2419 echo "$ac_t""buggy but acceptable" 1>&6
2423 echo "configure: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2426 echo "$ac_t""no" 1>&6; have_gmp=no
2431 CFLAGS="$saved_CFLAGS"
2433 if test -d ${srcdir}/gcc && test x$have_gmp != xyes; then
2434 { echo "configure: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
2435 Try the --with-gmp and/or --with-mpfr options to specify their locations.
2436 Copies of these libraries' source code can be found at their respective
2437 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
2438 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
2439 If you obtained GMP and/or MPFR from a vendor distribution package, make
2440 sure that you have installed both the libraries and the header files.
2441 They may be located in separate packages." 1>&2; exit 1; }
2444 # Flags needed for both GMP and/or MPFR
2448 # By default, C is the only stage 1 language.
2449 stage1_languages=,c,
2451 # Figure out what language subdirectories are present.
2452 # Look if the user specified --enable-languages="..."; if not, use
2453 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2455 # NB: embedded tabs in this IF block -- do not untabify
2456 if test -d ${srcdir}/gcc; then
2457 if test x"${enable_languages+set}" != xset; then
2458 if test x"${LANGUAGES+set}" = xset; then
2459 enable_languages="${LANGUAGES}"
2460 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2462 enable_languages=all
2465 if test x"${enable_languages}" = x ||
2466 test x"${enable_languages}" = xyes;
2468 echo configure.in: --enable-languages needs at least one language argument 1>&2
2472 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2474 # 'f95' is the old name for the 'fortran' language. We issue a warning
2475 # and make the substitution.
2476 case ,${enable_languages}, in
2478 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2479 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2483 # First scan to see if an enabled language requires some other language.
2484 # We assume that a given config-lang.in will list all the language
2485 # front ends it requires, even if some are required indirectly.
2486 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2487 case ${lang_frag} in
2489 # The odd quoting in the next line works around
2490 # an apparent bug in bash 1.12 on linux.
2491 ${srcdir}/gcc/[*]/config-lang.in) ;;
2493 # From the config-lang.in, get $language, $lang_requires
2497 for other in ${lang_requires} ; do
2498 case ,${enable_languages}, in
2502 echo " \`$other' language required by \`$language'; enabling" 1>&2
2503 enable_languages="${enable_languages},${other}"
2511 new_enable_languages=,c,
2512 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2513 potential_languages=,c,
2515 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2516 case ${lang_frag} in
2518 # The odd quoting in the next line works around
2519 # an apparent bug in bash 1.12 on linux.
2520 ${srcdir}/gcc/[*]/config-lang.in) ;;
2522 # From the config-lang.in, get $language, $target_libs,
2523 # $lang_dirs, $boot_language, and $build_by_default
2529 build_by_default=yes
2531 if test x${language} = x; then
2532 echo "${lang_frag} doesn't set \$language." 1>&2
2536 case ,${enable_languages}, in
2538 # Language was explicitly selected; include it.
2542 # 'all' was selected, select it if it is a default language
2543 add_this_lang=${build_by_default}
2550 # Disable languages that need other directories if these aren't available.
2551 for i in $subdir_requires; do
2552 test -f "$srcdir/gcc/$i/config-lang.in" && continue
2553 case ,${enable_languages}, in
2555 # Specifically requested language; tell them.
2556 { echo "configure: error: The gcc/$i directory contains parts of $language but is missing" 1>&2; exit 1; }
2560 add_this_lang=unsupported
2565 # Disable Ada if no preexisting GNAT is available.
2566 case ,${enable_languages},:${language}:${have_gnat} in
2567 *,${language},*:ada:no)
2568 # Specifically requested language; tell them.
2569 { echo "configure: error: GNAT is required to build $language" 1>&2; exit 1; }
2573 add_this_lang=unsupported
2577 # Disable a language that is unsupported by the target.
2578 case " $unsupported_languages " in
2580 add_this_lang=unsupported
2584 case $add_this_lang in
2586 # Remove language-dependent dirs.
2587 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2590 # Remove language-dependent dirs; still show language as supported.
2591 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2592 potential_languages="${potential_languages}${language},"
2595 new_enable_languages="${new_enable_languages}${language},"
2596 potential_languages="${potential_languages}${language},"
2597 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2598 case ${boot_language} in
2600 # Add to (comma-separated) list of stage 1 languages.
2601 stage1_languages="${stage1_languages}${language},"
2610 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
2611 if test "${enable_stage1_languages+set}" = set; then
2612 enableval="$enable_stage1_languages"
2613 case ,${enable_stage1_languages}, in
2615 # Set it to something that will have no effect in the loop below
2616 enable_stage1_languages=c ;;
2618 enable_stage1_languages=`echo $new_enable_languages | \
2619 sed -e "s/^,//" -e "s/,$//" ` ;;
2621 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
2622 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
2625 # Add "good" languages from enable_stage1_languages to stage1_languages,
2626 # while "bad" languages go in missing_languages. Leave no duplicates.
2627 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
2628 case $potential_languages in
2630 case $stage1_languages in
2632 *) stage1_languages="$stage1_languages$i," ;;
2635 case $missing_languages in
2637 *) missing_languages="$missing_languages$i," ;;
2644 # Remove leading/trailing commas that were added for simplicity
2645 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
2646 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2647 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
2648 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
2650 if test "x$missing_languages" != x; then
2651 { echo "configure: error:
2652 The following requested languages could not be built: ${missing_languages}
2653 Supported languages are: ${potential_languages}" 1>&2; exit 1; }
2655 if test "x$new_enable_languages" != "x$enable_languages"; then
2656 echo The following languages will be built: ${new_enable_languages}
2657 enable_languages="$new_enable_languages"
2661 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2664 # Handle --disable-<component> generically.
2665 for dir in $configdirs $build_configdirs $target_configdirs ; do
2666 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2667 if eval test x\${enable_${dirname}} "=" xno ; then
2668 noconfigdirs="$noconfigdirs $dir"
2672 # Check for Boehm's garbage collector
2673 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2674 if test "${enable_objc_gc+set}" = set; then
2675 enableval="$enable_objc_gc"
2676 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
2677 *,objc,*:*:yes:*target-boehm-gc*)
2678 { echo "configure: error: Boehm's garbage collector was requested yet not supported in this configuration" 1>&2; exit 1; }
2684 # Make sure we only build Boehm's garbage collector if required.
2685 case ,${enable_languages},:${enable_objc_gc} in
2687 # Keep target-boehm-gc if requested for Objective-C.
2690 # Otherwise remove target-boehm-gc depending on target-libjava.
2691 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
2692 noconfigdirs="$noconfigdirs target-boehm-gc"
2697 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2698 # $build_configdirs and $target_configdirs.
2699 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2702 for dir in . $skipdirs $noconfigdirs ; do
2703 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2704 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2705 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2706 if test -r $srcdir/$dirname/configure ; then
2707 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2710 notsupp="$notsupp $dir"
2714 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2715 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2716 if test -r $srcdir/$dirname/configure ; then
2717 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2720 notsupp="$notsupp $dir"
2724 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2725 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2726 if test -r $srcdir/$dirname/configure ; then
2727 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2730 notsupp="$notsupp $dir"
2736 # Sometimes the tools are distributed with libiberty but with no other
2737 # libraries. In that case, we don't want to build target-libiberty.
2738 # Don't let libgcc imply libiberty either.
2739 if test -n "${target_configdirs}" ; then
2742 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2743 if test "$i" = "libgcc"; then
2744 libgcc=target-libgcc
2745 elif test "$i" != "libiberty" ; then
2746 if test -r $srcdir/$i/configure ; then
2752 if test -z "${others}" ; then
2753 target_configdirs=$libgcc
2757 # Quietly strip out all directories which aren't configurable in this tree.
2758 # This relies on all configurable subdirectories being autoconfiscated, which
2760 build_configdirs_all="$build_configdirs"
2762 for i in ${build_configdirs_all} ; do
2763 j=`echo $i | sed -e s/build-//g`
2764 if test -f ${srcdir}/$j/configure ; then
2765 build_configdirs="${build_configdirs} $i"
2769 configdirs_all="$configdirs"
2771 for i in ${configdirs_all} ; do
2772 if test -f ${srcdir}/$i/configure ; then
2773 configdirs="${configdirs} $i"
2777 target_configdirs_all="$target_configdirs"
2779 for i in ${target_configdirs_all} ; do
2780 j=`echo $i | sed -e s/target-//g`
2781 if test -f ${srcdir}/$j/configure ; then
2782 target_configdirs="${target_configdirs} $i"
2786 # Produce a warning message for the subdirs we can't configure.
2787 # This isn't especially interesting in the Cygnus tree, but in the individual
2788 # FSF releases, it's important to let people know when their machine isn't
2789 # supported by the one or two programs in a package.
2791 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2792 # If $appdirs is non-empty, at least one of those directories must still
2793 # be configured, or we error out. (E.g., if the gas release supports a
2794 # specified target in some subdirs but not the gas subdir, we shouldn't
2795 # pretend that all is well.)
2796 if test -n "$appdirs" ; then
2797 for dir in $appdirs ; do
2798 if test -r $dir/Makefile.in ; then
2799 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2803 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2809 if test -n "$appdirs" ; then
2810 echo "*** This configuration is not supported by this package." 1>&2
2814 # Okay, some application will build, or we don't care to check. Still
2815 # notify of subdirs not getting built.
2816 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2817 echo " ${notsupp}" 1>&2
2818 echo " (Any other directories should still work fine.)" 1>&2
2828 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2829 if test "${with_build_sysroot+set}" = set; then
2830 withval="$with_build_sysroot"
2831 if test x"$withval" != x ; then
2832 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2835 SYSROOT_CFLAGS_FOR_TARGET=
2840 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2841 # the named directory are copied to $(tooldir)/sys-include.
2842 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2843 if test x${is_cross_compiler} = xno ; then
2844 echo 1>&2 '***' --with-headers is only supported when cross compiling
2847 if test x"${with_headers}" != xyes ; then
2848 case "${exec_prefixoption}" in
2850 *) x=${exec_prefix} ;;
2852 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2856 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2857 # the name directories are copied to $(tooldir)/lib. Multiple directories
2859 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2860 if test x${is_cross_compiler} = xno ; then
2861 echo 1>&2 '***' --with-libs is only supported when cross compiling
2864 if test x"${with_libs}" != xyes ; then
2865 # Copy the libraries in reverse order, so that files in the first named
2866 # library override files in subsequent libraries.
2867 case "${exec_prefixoption}" in
2869 *) x=${exec_prefix} ;;
2871 for l in ${with_libs}; do
2872 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2877 # Set with_gnu_as and with_gnu_ld as appropriate.
2879 # This is done by determining whether or not the appropriate directory
2880 # is available, and by checking whether or not specific configurations
2881 # have requested that this magic not happen.
2883 # The command line options always override the explicit settings in
2884 # configure.in, and the settings in configure.in override this magic.
2886 # If the default for a toolchain is to use GNU as and ld, and you don't
2887 # want to do that, then you should use the --without-gnu-as and
2888 # --without-gnu-ld options for the configure script.
2890 if test x${use_gnu_as} = x &&
2891 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2893 extra_host_args="$extra_host_args --with-gnu-as"
2896 if test x${use_gnu_ld} = x &&
2897 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2899 extra_host_args="$extra_host_args --with-gnu-ld"
2902 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2903 # can detect this case.
2905 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2907 extra_host_args="$extra_host_args --with-newlib"
2910 # Handle ${copy_dirs}
2911 set fnord ${copy_dirs}
2913 while test $# != 0 ; do
2914 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2917 echo Copying $1 to $2
2919 # Use the install script to create the directory and all required
2920 # parent directories.
2921 if test -d $2 ; then
2925 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2928 # Copy the directory, assuming we have tar.
2929 # FIXME: Should we use B in the second tar? Not all systems support it.
2930 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2932 # It is the responsibility of the user to correctly adjust all
2933 # symlinks. If somebody can figure out how to handle them correctly
2934 # here, feel free to add the code.
2941 # Determine a target-dependent exec_prefix that the installed
2942 # gcc will search in. Keep this list sorted by triplet, with
2943 # the *-*-osname triplets last.
2947 md_exec_prefix=/gnu/lib/gcc-lib
2949 i3456786-pc-msdosdjgpp*)
2950 md_exec_prefix=/dev/env/DJDIR/bin
2952 i3456786-*-sco3.2v5*)
2953 if test $with_gnu_as = yes; then
2954 md_exec_prefix=/usr/gnu/bin
2956 md_exec_prefix=/usr/ccs/bin/elf
2961 powerpc-*-chorusos* | \
2962 powerpc*-*-eabi* | \
2963 powerpc*-*-sysv* | \
2964 powerpc*-*-kaos* | \
2966 md_exec_prefix=/usr/ccs/bin
2971 md_exec_prefix=/usr/ccs/bin
2986 md_exec_prefix=/usr/ccs/bin
2990 extra_arflags_for_target=
2991 extra_nmflags_for_target=
2992 extra_ranlibflags_for_target=
2993 target_makefile_frag=/dev/null
2996 target_makefile_frag="config/mt-spu"
2999 target_makefile_frag="config/mt-netware"
3001 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
3002 target_makefile_frag="config/mt-gnu"
3004 *-*-aix4.[3456789]* | *-*-aix[56789].*)
3005 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
3006 # commands to handle both 32-bit and 64-bit objects. These flags are
3007 # harmless if we're using GNU nm or ar.
3008 extra_arflags_for_target=" -X32_64"
3009 extra_nmflags_for_target=" -B -X32_64"
3012 # ranlib from Darwin requires the -c flag to look at common symbols.
3013 extra_ranlibflags_for_target=" -c"
3015 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
3016 target_makefile_frag="config/mt-wince"
3020 alphaieee_frag=/dev/null
3023 # This just makes sure to use the -mieee option to build target libs.
3024 # This should probably be set individually by each library.
3025 alphaieee_frag="config/mt-alphaieee"
3029 # If --enable-target-optspace always use -Os instead of -O2 to build
3030 # the target libraries, similarly if it is not specified, use -Os
3031 # on selected platforms.
3032 ospace_frag=/dev/null
3033 case "${enable_target_optspace}:${target}" in
3035 ospace_frag="config/mt-ospace"
3038 ospace_frag="config/mt-d30v"
3040 :m32r-* | :d10v-* | :fr30-*)
3041 ospace_frag="config/mt-ospace"
3046 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
3050 # Default to using --with-stabs for certain targets.
3051 if test x${with_stabs} = x ; then
3055 mips*-*-* | alpha*-*-osf*)
3057 extra_host_args="${extra_host_args} --with-stabs"
3062 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
3063 # them automatically.
3066 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
3070 # Some systems (e.g., one of the i386-aix systems the gas testers are
3071 # using) don't handle "\$" correctly, so don't use it here.
3072 tooldir='${exec_prefix}'/${target_alias}
3073 build_tooldir=${tooldir}
3075 # Create a .gdbinit file which runs the one in srcdir
3076 # and tells GDB to look there for source files.
3078 if test -r ${srcdir}/.gdbinit ; then
3081 *) cat > ./.gdbinit <<EOF
3085 source ${srcdir}/.gdbinit
3091 # Make sure that the compiler is able to generate an executable. If it
3092 # can't, we are probably in trouble. We don't care whether we can run the
3093 # executable--we might be using a cross compiler--we only care whether it
3094 # can be created. At this point the main configure script has set CC.
3096 echo "int main () { return 0; }" > conftest.c
3097 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3098 if test $? = 0 ; then
3099 if test -s conftest || test -s conftest.exe ; then
3105 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3106 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3113 # The Solaris /usr/ucb/cc compiler does not appear to work.
3115 sparc-sun-solaris2*)
3116 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
3117 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3119 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
3120 if test -d /opt/cygnus/bin ; then
3121 if test "$could_use" = "" ; then
3122 could_use="/opt/cygnus/bin"
3124 could_use="$could_use or /opt/cygnus/bin"
3127 if test "$could_use" = "" ; then
3128 echo "Warning: compilation may fail because you're using"
3129 echo "/usr/ucb/cc. You should change your PATH or CC "
3130 echo "variable and rerun configure."
3132 echo "Warning: compilation may fail because you're using"
3133 echo "/usr/ucb/cc, when you should use the C compiler from"
3134 echo "$could_use. You should change your"
3135 echo "PATH or CC variable and rerun configure."
3142 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3143 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3144 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
3147 # Record target_configdirs and the configure arguments for target and
3148 # build configuration in Makefile.
3149 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3150 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3152 # Determine whether gdb needs tk/tcl or not.
3153 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3154 # and in that case we want gdb to be built without tk. Ugh!
3155 # In fact I believe gdb is the *only* package directly dependent on tk,
3156 # so we should be able to put the 'maybe's in unconditionally and
3157 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3158 # 100% sure that that's safe though.
3160 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3161 case "$enable_gdbtk" in
3165 GDB_TK="${gdb_tk}" ;;
3167 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3168 # distro. Eventually someone will fix this and move Insight, nee
3169 # gdbtk to a separate directory.
3170 if test -d ${srcdir}/gdb/gdbtk ; then
3177 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3178 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3180 # Strip out unwanted targets.
3182 # While at that, we remove Makefiles if we were started for recursive
3183 # configuration, so that the top-level Makefile reconfigures them,
3184 # like we used to do when configure itself was recursive.
3186 # Loop over modules. $extrasub must be used with care, limiting as
3187 # much as possible the usage of range addresses. That's because autoconf
3188 # splits the sed script to overcome limits in the number of commands,
3189 # and relying on carefully-timed sed passes may turn out to be very hard
3190 # to maintain later. In this particular case, you just have to be careful
3191 # not to nest @if/@endif pairs, because configure will not warn you at all.
3193 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3194 if test "${enable_bootstrap+set}" = set; then
3195 enableval="$enable_bootstrap"
3198 enable_bootstrap=default
3202 # Issue errors and warnings for invalid/strange bootstrap combinations.
3203 case "$configdirs" in
3204 *gcc*) have_compiler=yes ;;
3205 *) have_compiler=no ;;
3208 case "$have_compiler:$host:$target:$enable_bootstrap" in
3211 # Default behavior. Enable bootstrap if we have a compiler
3212 # and we are in a native configuration.
3213 yes:$build:$build:default)
3214 enable_bootstrap=yes ;;
3217 enable_bootstrap=no ;;
3219 # We have a compiler and we are in a native configuration, bootstrap is ok
3220 yes:$build:$build:yes)
3223 # Other configurations, but we have a compiler. Assume the user knows
3226 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3229 # No compiler: if they passed --enable-bootstrap explicitly, fail
3231 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3233 # Fail if wrong command line
3235 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3239 # Adjust the toplevel makefile according to whether bootstrap was selected.
3240 case "$enable_bootstrap" in
3242 bootstrap_suffix=bootstrap ;;
3244 bootstrap_suffix=no-bootstrap ;;
3247 for module in ${build_configdirs} ; do
3248 if test -z "${no_recursion}" \
3249 && test -f ${build_subdir}/${module}/Makefile; then
3250 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3251 rm -f ${build_subdir}/${module}/Makefile
3254 /^@if build-$module\$/d
3255 /^@endif build-$module\$/d
3256 /^@if build-$module-$bootstrap_suffix\$/d
3257 /^@endif build-$module-$bootstrap_suffix\$/d"
3259 for module in ${configdirs} ; do
3260 if test -z "${no_recursion}"; then
3261 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
3262 if test -f ${file}; then
3263 echo 1>&2 "*** removing ${file} to force reconfigure"
3270 /^@endif $module\$/d
3271 /^@if $module-$bootstrap_suffix\$/d
3272 /^@endif $module-$bootstrap_suffix\$/d"
3274 for module in ${target_configdirs} ; do
3275 if test -z "${no_recursion}" \
3276 && test -f ${target_subdir}/${module}/Makefile; then
3277 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3278 rm -f ${target_subdir}/${module}/Makefile
3281 /^@if target-$module\$/d
3282 /^@endif target-$module\$/d
3283 /^@if target-$module-$bootstrap_suffix\$/d
3284 /^@endif target-$module-$bootstrap_suffix\$/d"
3288 /^@if /,/^@endif /d"
3290 # Create the serialization dependencies. This uses a temporary file.
3292 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3293 if test "${enable_serial_configure+set}" = set; then
3294 enableval="$enable_serial_configure"
3299 case ${enable_serial_configure} in
3301 enable_serial_build_configure=yes
3302 enable_serial_host_configure=yes
3303 enable_serial_target_configure=yes
3307 # These force 'configure's to be done one at a time, to avoid problems
3308 # with contention over a shared config.cache.
3310 echo '# serdep.tmp' > serdep.tmp
3312 test "x${enable_serial_build_configure}" = xyes &&
3313 for item in ${build_configdirs} ; do
3316 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3321 test "x${enable_serial_host_configure}" = xyes &&
3322 for item in ${configdirs} ; do
3325 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3330 test "x${enable_serial_target_configure}" = xyes &&
3331 for item in ${target_configdirs} ; do
3334 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3338 serialization_dependencies=serdep.tmp
3341 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3342 # target and nonopt. These are the ones we might not want to pass
3343 # down to subconfigures. Also strip program-prefix, program-suffix,
3344 # and program-transform-name, so that we can pass down a consistent
3345 # program-transform-name. If autoconf has put single quotes around
3346 # any of these arguments (because they contain shell metacharacters)
3347 # then this will fail; in practice this only happens for
3348 # --program-transform-name, so be sure to override --program-transform-name
3349 # at the end of the argument list.
3350 # These will be expanded by make, so quote '$'.
3351 cat <<\EOF_SED > conftestsed
3353 s/ --c[a-z-]*[= ][^ ]*//g
3354 s/ --sr[a-z-]*[= ][^ ]*//g
3355 s/ --ho[a-z-]*[= ][^ ]*//g
3356 s/ --bu[a-z-]*[= ][^ ]*//g
3357 s/ --t[a-z-]*[= ][^ ]*//g
3358 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3359 s/ -cache-file[= ][^ ]*//g
3360 s/ -srcdir[= ][^ ]*//g
3361 s/ -host[= ][^ ]*//g
3362 s/ -build[= ][^ ]*//g
3363 s/ -target[= ][^ ]*//g
3364 s/ -program-prefix[= ][^ ]*//g
3365 s/ -program-suffix[= ][^ ]*//g
3366 s/ -program-transform-name[= ][^ ]*//g
3371 sed -f conftestsed <<EOF_SED > conftestsed.out
3372 ${ac_configure_args}
3374 baseargs=`cat conftestsed.out`
3375 rm -f conftestsed conftestsed.out
3377 # Add in --program-transform-name, after --program-prefix and
3378 # --program-suffix have been applied to it. Autoconf has already
3379 # doubled dollar signs and backslashes in program_transform_name; we want
3380 # the backslashes un-doubled, and then the entire thing wrapped in single
3381 # quotes, because this will be expanded first by make and then by the shell.
3382 # Also, because we want to override the logic in subdir configure scripts to
3383 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3384 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3385 ${program_transform_name}
3387 gcc_transform_name=`cat conftestsed.out`
3388 rm -f conftestsed.out
3389 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3391 # For the build-side libraries, we just need to pretend we're native,
3392 # and not use the same cache file. Multilibs are neither needed nor
3394 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3396 # For host modules, accept cache file option, or specification as blank.
3397 case "${cache_file}" in
3399 cache_file_option="" ;;
3400 /* | [A-Za-z]:[\\/]* ) # absolute path
3401 cache_file_option="--cache-file=${cache_file}" ;;
3403 cache_file_option="--cache-file=../${cache_file}" ;;
3406 # Host dirs don't like to share a cache file either, horribly enough.
3407 # This seems to be due to autoconf 2.5x stupidity.
3408 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3410 target_configargs=${baseargs}
3412 # Passing a --with-cross-host argument lets the target libraries know
3413 # whether they are being built with a cross-compiler or being built
3414 # native. However, it would be better to use other mechanisms to make the
3415 # sorts of decisions they want to make on this basis. Please consider
3416 # this option to be deprecated. FIXME.
3417 if test x${is_cross_compiler} = xyes ; then
3418 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3421 # Default to --enable-multilib.
3422 if test x${enable_multilib} = x ; then
3423 target_configargs="--enable-multilib ${target_configargs}"
3426 # Pass --with-newlib if appropriate. Note that target_configdirs has
3427 # changed from the earlier setting of with_newlib.
3428 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3429 target_configargs="--with-newlib ${target_configargs}"
3432 # Different target subdirs use different values of certain variables
3433 # (notably CXX). Worse, multilibs use *lots* of different values.
3434 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3435 # it doesn't automatically accept command-line overrides of them.
3436 # This means it's not safe for target subdirs to share a cache file,
3437 # which is disgusting, but there you have it. Hopefully this can be
3438 # fixed in future. It's still worthwhile to use a cache file for each
3439 # directory. I think.
3441 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3442 # We need to pass --target, as newer autoconf's requires consistency
3443 # for target_alias and gcc doesn't manage it consistently.
3444 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3447 case " $target_configdirs " in
3449 case " $target_configargs " in
3450 *" --with-newlib "*)
3453 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' ;;
3456 # If we're not building GCC, don't discard standard headers.
3457 if test -d ${srcdir}/gcc; then
3458 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3460 if test "${build}" != "${host}"; then
3461 # On Canadian crosses, CC_FOR_TARGET will have already been set
3462 # by `configure', so we won't have an opportunity to add -Bgcc/
3463 # to it. This is right: we don't want to search that directory
3464 # for binaries, but we want the header files in there, so add
3466 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3468 # Someone might think of using the pre-installed headers on
3469 # Canadian crosses, in case the installed compiler is not fully
3470 # compatible with the compiler being built. In this case, it
3471 # would be better to flag an error than risking having
3472 # incompatible object files being constructed. We can't
3473 # guarantee that an error will be flagged, but let's hope the
3474 # compiler will do it, when presented with incompatible header
3479 case "${target}-${is_cross_compiler}" in
3480 i[3456789]86-*-linux*-no)
3481 # Here host == target, so we don't need to build gcc,
3482 # so we don't want to discard standard headers.
3483 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3486 # If we're building newlib, use its generic headers last, but search
3487 # for any libc-related directories first (so make it the last -B
3489 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3498 # Can't be handled as Cygwin above since Mingw does not use newlib.
3499 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;;
3502 # Allow the user to override the flags for
3503 # our build compiler if desired.
3504 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3506 # On Canadian crosses, we'll be searching the right directories for
3507 # the previously-installed cross compiler, so don't bother to add
3508 # flags for directories within the install tree of the compiler
3509 # being built; programs in there won't even run.
3510 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3511 # Search for pre-installed headers if nothing else fits.
3512 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3515 if test "x${use_gnu_ld}" = x &&
3516 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3517 # Arrange for us to find uninstalled linker scripts.
3518 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3521 # Search for other target-specific linker scripts and such.
3524 if test -d ${srcdir}/libgloss/m32c; then
3525 # This is for crt0.o
3526 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3527 # This is for r8c.ld
3528 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3529 # This is for libnosys.a
3530 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3535 # Makefile fragments.
3536 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3538 eval fragval=\$$frag
3539 if test $fragval != /dev/null; then
3540 eval $frag=${srcdir}/$fragval
3548 # Miscellanea: directories, flags, etc.
3556 # Build module lists & subconfigure args.
3560 # Host module lists & subconfigure args.
3564 # Target module lists & subconfigure args.
3572 # Generate default definitions for YACC, M4, LEX and other programs that run
3573 # on the build machine. These are used if the Makefile can't locate these
3574 # programs in objdir.
3575 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3577 for ac_prog in 'bison -y' byacc yacc
3579 # Extract the first word of "$ac_prog", so it can be a program name with args.
3580 set dummy $ac_prog; ac_word=$2
3581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3582 echo "configure:3583: checking for $ac_word" >&5
3583 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3586 if test -n "$YACC"; then
3587 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3591 for ac_dir in $ac_dummy; do
3592 test -z "$ac_dir" && ac_dir=.
3593 if test -f $ac_dir/$ac_word; then
3594 ac_cv_prog_YACC="$ac_prog"
3601 YACC="$ac_cv_prog_YACC"
3602 if test -n "$YACC"; then
3603 echo "$ac_t""$YACC" 1>&6
3605 echo "$ac_t""no" 1>&6
3608 test -n "$YACC" && break
3610 test -n "$YACC" || YACC="$MISSING bison -y"
3612 case " $build_configdirs " in
3613 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3614 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3617 for ac_prog in bison
3619 # Extract the first word of "$ac_prog", so it can be a program name with args.
3620 set dummy $ac_prog; ac_word=$2
3621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3622 echo "configure:3623: checking for $ac_word" >&5
3623 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3624 echo $ac_n "(cached) $ac_c" 1>&6
3626 if test -n "$BISON"; then
3627 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3631 for ac_dir in $ac_dummy; do
3632 test -z "$ac_dir" && ac_dir=.
3633 if test -f $ac_dir/$ac_word; then
3634 ac_cv_prog_BISON="$ac_prog"
3641 BISON="$ac_cv_prog_BISON"
3642 if test -n "$BISON"; then
3643 echo "$ac_t""$BISON" 1>&6
3645 echo "$ac_t""no" 1>&6
3648 test -n "$BISON" && break
3650 test -n "$BISON" || BISON="$MISSING bison"
3652 case " $build_configdirs " in
3653 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3656 for ac_prog in gm4 gnum4 m4
3658 # Extract the first word of "$ac_prog", so it can be a program name with args.
3659 set dummy $ac_prog; ac_word=$2
3660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3661 echo "configure:3662: checking for $ac_word" >&5
3662 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3665 if test -n "$M4"; then
3666 ac_cv_prog_M4="$M4" # Let the user override the test.
3668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3670 for ac_dir in $ac_dummy; do
3671 test -z "$ac_dir" && ac_dir=.
3672 if test -f $ac_dir/$ac_word; then
3673 ac_cv_prog_M4="$ac_prog"
3681 if test -n "$M4"; then
3682 echo "$ac_t""$M4" 1>&6
3684 echo "$ac_t""no" 1>&6
3687 test -n "$M4" && break
3689 test -n "$M4" || M4="$MISSING m4"
3691 case " $build_configdirs " in
3692 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3695 for ac_prog in flex lex
3697 # Extract the first word of "$ac_prog", so it can be a program name with args.
3698 set dummy $ac_prog; ac_word=$2
3699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3700 echo "configure:3701: checking for $ac_word" >&5
3701 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3704 if test -n "$LEX"; then
3705 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3709 for ac_dir in $ac_dummy; do
3710 test -z "$ac_dir" && ac_dir=.
3711 if test -f $ac_dir/$ac_word; then
3712 ac_cv_prog_LEX="$ac_prog"
3719 LEX="$ac_cv_prog_LEX"
3720 if test -n "$LEX"; then
3721 echo "$ac_t""$LEX" 1>&6
3723 echo "$ac_t""no" 1>&6
3726 test -n "$LEX" && break
3728 test -n "$LEX" || LEX="$MISSING flex"
3730 case " $build_configdirs " in
3731 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3732 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3737 # Extract the first word of "$ac_prog", so it can be a program name with args.
3738 set dummy $ac_prog; ac_word=$2
3739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3740 echo "configure:3741: checking for $ac_word" >&5
3741 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3742 echo $ac_n "(cached) $ac_c" 1>&6
3744 if test -n "$FLEX"; then
3745 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3749 for ac_dir in $ac_dummy; do
3750 test -z "$ac_dir" && ac_dir=.
3751 if test -f $ac_dir/$ac_word; then
3752 ac_cv_prog_FLEX="$ac_prog"