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 --enable-libada Builds libada directory"
17 --enable-libssp Builds libssp directory"
19 --with-mpfr-dir=PATH Specify source directory for MPFR library"
21 --with-mpfr=PATH Specify directory for installed MPFR library"
23 --with-gmp-dir=PATH Specify source directory for GMP library"
25 --with-gmp=PATH Specify directory for installed GMP library"
27 --with-build-sysroot=sysroot
28 use sysroot as the system root during the build"
30 --enable-bootstrap[=lean] Enable bootstrapping [no]"
32 --enable-serial-[{host,target,build}-]configure
33 Force sequential configuration of
34 sub-packages for the host, target or build
35 machine, or all sub-packages"
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
40 --enable-werror enable -Werror in bootstrap stage2 and later"
42 # Initialize some variables set by options.
43 # The variables have the same names as the options, with
44 # dashes changed to underlines.
46 cache_file=./config.cache
55 program_transform_name=s,x,x,
63 bindir='${exec_prefix}/bin'
64 sbindir='${exec_prefix}/sbin'
65 libexecdir='${exec_prefix}/libexec'
66 datadir='${prefix}/share'
67 sysconfdir='${prefix}/etc'
68 sharedstatedir='${prefix}/com'
69 localstatedir='${prefix}/var'
70 libdir='${exec_prefix}/lib'
71 includedir='${prefix}/include'
72 oldincludedir='/usr/include'
73 infodir='${prefix}/info'
74 mandir='${prefix}/man'
76 # Initialize some other variables.
79 SHELL=${CONFIG_SHELL-/bin/sh}
80 # Maximum number of lines to put in a shell here document.
87 # If the previous option needs an argument, assign it.
88 if test -n "$ac_prev"; then
89 eval "$ac_prev=\$ac_option"
95 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 # Accept the important Cygnus configure options, so we can diagnose typos.
103 -bindir | --bindir | --bindi | --bind | --bin | --bi)
105 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
106 bindir="$ac_optarg" ;;
108 -build | --build | --buil | --bui | --bu)
110 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
111 build="$ac_optarg" ;;
113 -cache-file | --cache-file | --cache-fil | --cache-fi \
114 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
115 ac_prev=cache_file ;;
116 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
117 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
118 cache_file="$ac_optarg" ;;
120 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
122 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
124 datadir="$ac_optarg" ;;
126 -disable-* | --disable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}=no" ;;
135 -enable-* | --enable-*)
136 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}='$ac_optarg'" ;;
148 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
149 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
150 | --exec | --exe | --ex)
151 ac_prev=exec_prefix ;;
152 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
153 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
154 | --exec=* | --exe=* | --ex=*)
155 exec_prefix="$ac_optarg" ;;
157 -gas | --gas | --ga | --g)
158 # Obsolete; use --with-gas.
161 -help | --help | --hel | --he)
162 # Omit some internal or obsolete options to make the list less imposing.
163 # This message is too long to be a string in the A/UX 3.1 sh.
165 Usage: configure [options] [host]
166 Options: [defaults in brackets after descriptions]
168 --cache-file=FILE cache test results in FILE
169 --help print this message
170 --no-create do not create output files
171 --quiet, --silent do not print \`checking...' messages
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
216 -host | --host | --hos | --ho)
218 -host=* | --host=* | --hos=* | --ho=*)
221 -includedir | --includedir | --includedi | --included | --include \
222 | --includ | --inclu | --incl | --inc)
223 ac_prev=includedir ;;
224 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
225 | --includ=* | --inclu=* | --incl=* | --inc=*)
226 includedir="$ac_optarg" ;;
228 -infodir | --infodir | --infodi | --infod | --info | --inf)
230 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
231 infodir="$ac_optarg" ;;
233 -libdir | --libdir | --libdi | --libd)
235 -libdir=* | --libdir=* | --libdi=* | --libd=*)
236 libdir="$ac_optarg" ;;
238 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
239 | --libexe | --libex | --libe)
240 ac_prev=libexecdir ;;
241 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
242 | --libexe=* | --libex=* | --libe=*)
243 libexecdir="$ac_optarg" ;;
245 -localstatedir | --localstatedir | --localstatedi | --localstated \
246 | --localstate | --localstat | --localsta | --localst \
247 | --locals | --local | --loca | --loc | --lo)
248 ac_prev=localstatedir ;;
249 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
250 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
251 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
252 localstatedir="$ac_optarg" ;;
254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
257 mandir="$ac_optarg" ;;
260 # Obsolete; use --without-fp.
263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
273 | --oldin | --oldi | --old | --ol | --o)
274 ac_prev=oldincludedir ;;
275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
278 oldincludedir="$ac_optarg" ;;
280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
283 prefix="$ac_optarg" ;;
285 -program-prefix | --program-prefix | --program-prefi | --program-pref \
286 | --program-pre | --program-pr | --program-p)
287 ac_prev=program_prefix ;;
288 -program-prefix=* | --program-prefix=* | --program-prefi=* \
289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
290 program_prefix="$ac_optarg" ;;
292 -program-suffix | --program-suffix | --program-suffi | --program-suff \
293 | --program-suf | --program-su | --program-s)
294 ac_prev=program_suffix ;;
295 -program-suffix=* | --program-suffix=* | --program-suffi=* \
296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
297 program_suffix="$ac_optarg" ;;
299 -program-transform-name | --program-transform-name \
300 | --program-transform-nam | --program-transform-na \
301 | --program-transform-n | --program-transform- \
302 | --program-transform | --program-transfor \
303 | --program-transfo | --program-transf \
304 | --program-trans | --program-tran \
305 | --progr-tra | --program-tr | --program-t)
306 ac_prev=program_transform_name ;;
307 -program-transform-name=* | --program-transform-name=* \
308 | --program-transform-nam=* | --program-transform-na=* \
309 | --program-transform-n=* | --program-transform-=* \
310 | --program-transform=* | --program-transfor=* \
311 | --program-transfo=* | --program-transf=* \
312 | --program-trans=* | --program-tran=* \
313 | --progr-tra=* | --program-tr=* | --program-t=*)
314 program_transform_name="$ac_optarg" ;;
316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
317 | -silent | --silent | --silen | --sile | --sil)
320 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
322 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
324 sbindir="$ac_optarg" ;;
326 -sharedstatedir | --sharedstatedir | --sharedstatedi \
327 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
328 | --sharedst | --shareds | --shared | --share | --shar \
330 ac_prev=sharedstatedir ;;
331 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
332 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
333 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
335 sharedstatedir="$ac_optarg" ;;
337 -site | --site | --sit)
339 -site=* | --site=* | --sit=*)
342 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
344 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
345 srcdir="$ac_optarg" ;;
347 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
348 | --syscon | --sysco | --sysc | --sys | --sy)
349 ac_prev=sysconfdir ;;
350 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
351 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
352 sysconfdir="$ac_optarg" ;;
354 -target | --target | --targe | --targ | --tar | --ta | --t)
356 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
357 target="$ac_optarg" ;;
359 -v | -verbose | --verbose | --verbos | --verbo | --verb)
362 -version | --version | --versio | --versi | --vers)
363 echo "configure generated by autoconf version 2.13"
367 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}='$ac_optarg'" ;;
379 -without-* | --without-*)
380 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}=no" ;;
389 # Obsolete; use --with-x.
392 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
393 | --x-incl | --x-inc | --x-in | --x-i)
394 ac_prev=x_includes ;;
395 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
396 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
397 x_includes="$ac_optarg" ;;
399 -x-libraries | --x-libraries | --x-librarie | --x-librari \
400 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
401 ac_prev=x_libraries ;;
402 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
403 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
404 x_libraries="$ac_optarg" ;;
406 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
410 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
411 echo "configure: warning: $ac_option: invalid host type" 1>&2
413 if test "x$nonopt" != xNONE; then
414 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
422 if test -n "$ac_prev"; then
423 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428 # File descriptor usage:
431 # 2 errors and warnings
432 # 3 some systems may open it to /dev/tty
433 # 4 used on the Kubota Titan
434 # 6 checking for... messages and results
435 # 5 compiler messages saved in config.log
436 if test "$silent" = yes; then
444 This file contains any messages produced by compilers while
445 running configure, to aid debugging if configure makes a mistake.
448 # Strip out --no-create and --no-recursion so they do not pile up.
449 # Also quote any args containing shell metacharacters.
454 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
455 | --no-cr | --no-c) ;;
456 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
457 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
458 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
459 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
460 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465 # Only set these to C if already set. These must not be set unconditionally
466 # because not all systems understand e.g. LANG=C (notably SCO).
467 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
468 # Non-C LC_CTYPE values break the ctype check.
469 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
470 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
471 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
472 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
475 rm -rf conftest* confdefs.h
476 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
479 # A filename unique to this package, relative to the directory that
480 # configure is in, which we can look for to find out if srcdir is correct.
481 ac_unique_file=move-if-change
483 # Find the source files, if location was not specified.
484 if test -z "$srcdir"; then
485 ac_srcdir_defaulted=yes
486 # Try the directory containing this script, then its parent.
488 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
489 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
491 if test ! -r $srcdir/$ac_unique_file; then
495 ac_srcdir_defaulted=no
497 if test ! -r $srcdir/$ac_unique_file; then
498 if test "$ac_srcdir_defaulted" = yes; then
499 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506 # Prefer explicitly selected file to automatically selected ones.
507 if test -z "$CONFIG_SITE"; then
508 if test "x$prefix" != xNONE; then
509 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
511 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514 for ac_site_file in $CONFIG_SITE; do
515 if test -r "$ac_site_file"; then
516 echo "loading site script $ac_site_file"
521 if test -r "$cache_file"; then
522 echo "loading cache $cache_file"
525 echo "creating cache $cache_file"
530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531 ac_cpp='$CPP $CPPFLAGS'
532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534 cross_compiling=$ac_cv_prog_cc_cross
538 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
539 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
540 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
547 ac_n= ac_c='\c' ac_t=
553 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
554 if test -f $ac_dir/install-sh; then
556 ac_install_sh="$ac_aux_dir/install-sh -c"
558 elif test -f $ac_dir/install.sh; then
560 ac_install_sh="$ac_aux_dir/install.sh -c"
564 if test -z "$ac_aux_dir"; then
565 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
567 ac_config_guess=$ac_aux_dir/config.guess
568 ac_config_sub=$ac_aux_dir/config.sub
569 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
572 # Do some error checking and defaulting for the host and target type.
574 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
577 # 1. You are not allowed to specify --host, --target, and nonopt at the
579 # 2. Host defaults to nonopt.
580 # 3. If nonopt is not specified, then host defaults to the current host,
581 # as determined by config.guess.
582 # 4. Target and build default to nonopt.
583 # 5. If nonopt is not specified, then target and build default to host.
585 # The aliases save the names the user supplied, while $host etc.
586 # will get canonicalized.
587 case $host---$target---$nonopt in
588 NONE---*---* | *---NONE---* | *---*---NONE) ;;
589 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
593 # Make sure we can run config.sub.
594 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
595 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
598 echo $ac_n "checking host system type""... $ac_c" 1>&6
599 echo "configure:600: checking host system type" >&5
602 case "$host_alias" in
606 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
607 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
609 *) host_alias=$nonopt ;;
613 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
614 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
615 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
616 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
617 echo "$ac_t""$host" 1>&6
619 echo $ac_n "checking target system type""... $ac_c" 1>&6
620 echo "configure:621: checking target system type" >&5
623 case "$target_alias" in
626 NONE) target_alias=$host_alias ;;
627 *) target_alias=$nonopt ;;
631 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
632 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
633 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
634 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
635 echo "$ac_t""$target" 1>&6
637 echo $ac_n "checking build system type""... $ac_c" 1>&6
638 echo "configure:639: checking build system type" >&5
641 case "$build_alias" in
644 NONE) build_alias=$host_alias ;;
645 *) build_alias=$nonopt ;;
649 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
650 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
651 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
652 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
653 echo "$ac_t""$build" 1>&6
655 test "$host_alias" != "$target_alias" &&
656 test "$program_prefix$program_suffix$program_transform_name" = \
658 program_prefix=${target_alias}-
660 if test "$program_transform_name" = s,x,x,; then
661 program_transform_name=
663 # Double any \ or $. echo might interpret backslashes.
664 cat <<\EOF_SED > conftestsed
665 s,\\,\\\\,g; s,\$,$$,g
667 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
670 test "$program_prefix" != NONE &&
671 program_transform_name="s,^,${program_prefix},; $program_transform_name"
672 # Use a double $ so make ignores it.
673 test "$program_suffix" != NONE &&
674 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
676 # sed with no file args requires a program.
677 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
680 # Get 'install' or 'install-sh' and its variants.
681 # Find a good install program. We prefer a C program (faster),
682 # so one script is as good as another. But avoid the broken or
683 # incompatible versions:
684 # SysV /etc/install, /usr/sbin/install
685 # SunOS /usr/etc/install
688 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
689 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
690 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
691 # ./install, which can be erroneously created by make from ./install.sh.
692 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
693 echo "configure:694: checking for a BSD compatible install" >&5
694 if test -z "$INSTALL"; then
695 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
698 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
699 for ac_dir in $PATH; do
700 # Account for people who put trailing slashes in PATH elements.
702 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
704 # OSF1 and SCO ODT 3.0 have their own names for install.
705 # Don't use installbsd from OSF since it installs stuff as root
707 for ac_prog in ginstall scoinst install; do
708 if test -f $ac_dir/$ac_prog; then
709 if test $ac_prog = install &&
710 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
711 # AIX install. It has an incompatible calling convention.
714 ac_cv_path_install="$ac_dir/$ac_prog -c"
725 if test "${ac_cv_path_install+set}" = set; then
726 INSTALL="$ac_cv_path_install"
728 # As a last resort, use the slow shell script. We don't cache a
729 # path for INSTALL within a source directory, because that will
730 # break other packages using the cache if that directory is
731 # removed, or if the path is relative.
732 INSTALL="$ac_install_sh"
735 echo "$ac_t""$INSTALL" 1>&6
737 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
738 # It thinks the first close brace ends the variable substitution.
739 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
741 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
743 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
745 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
746 echo "configure:747: checking whether ln works" >&5
747 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
748 echo $ac_n "(cached) $ac_c" 1>&6
752 if ln conftestdata_f conftestdata_t 2>/dev/null
758 rm -f conftestdata_f conftestdata_t
761 if test $acx_cv_prog_LN = no; then
763 echo "$ac_t""no, using $LN" 1>&6
766 echo "$ac_t""yes" 1>&6
769 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
770 echo "configure:771: checking whether ln -s works" >&5
771 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
772 echo $ac_n "(cached) $ac_c" 1>&6
775 if ln -s X conftestdata 2>/dev/null
778 ac_cv_prog_LN_S="ln -s"
783 LN_S="$ac_cv_prog_LN_S"
784 if test "$ac_cv_prog_LN_S" = "ln -s"; then
785 echo "$ac_t""yes" 1>&6
787 echo "$ac_t""no" 1>&6
791 ### we might need to use some other shell than /bin/sh for running subshells
792 ### If we are on Windows, search for the shell. This will permit people
793 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
794 ### without also having to set CONFIG_SHELL. This code will work when
795 ### using bash, which sets OSTYPE.
798 if test x${CONFIG_SHELL} = x ; then
799 if test ! -f /bin/sh ; then
800 if test x${SHELL} != x && test -f ${SHELL} ; then
801 CONFIG_SHELL=${SHELL}
804 for prog in sh sh.exe bash bash.exe; do
805 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
807 test -z "$dir" && dir=.
808 if test -f $dir/$prog; then
809 CONFIG_SHELL=$dir/$prog
815 test -n "${CONFIG_SHELL}" && break
823 config_shell=${CONFIG_SHELL-/bin/sh}
826 # if PWD already has a value, it is probably wrong.
827 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
829 # Export original configure arguments for use by sub-configures. These
830 # will be expanded by make, so quote '$'.
832 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
835 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
836 rm -f conftestsed.out
839 moveifchange=${srcdir}/move-if-change
841 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
843 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
845 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
846 INSTALL="${srcpwd}/install-sh -c"
849 # Set srcdir to "." if that's what it is.
850 # This is important for multilib support.
852 if test "${pwd}" = "${srcpwd}" ; then
860 ### To add a new directory to the tree, first choose whether it is a target
861 ### or a host dependent tool. Then put it into the appropriate list
862 ### (library or tools, host or target), doing a dependency sort.
864 # Subdirs will be configured in the order listed in build_configdirs,
865 # configdirs, or target_configdirs; see the serialization section below.
867 # Dependency sorting is only needed when *configuration* must be done in
868 # a particular order. In all cases a dependency should be specified in
869 # the Makefile, whether or not it's implicitly specified here.
871 # Double entries in build_configdirs, configdirs, or target_configdirs may
872 # cause circular dependencies and break everything horribly.
874 # these library is used by various programs built for the build
877 build_libs="build-libiberty"
879 # these tools are built for the build environment
880 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
882 # these libraries are used by various programs built for the host environment
884 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp"
886 # these tools are built for the host environment
887 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
888 # know that we are building the simulator.
889 # binutils, gas and ld appear in that order because it makes sense to run
890 # "make check" in that particular order.
891 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
893 # libgcj represents the runtime libraries only used by gcj.
894 libgcj="target-libffi \
900 # these libraries are built for the target environment, and are built after
901 # the host libraries and the host tools (which may be a cross compiler)
903 target_libraries="target-libiberty \
906 target-libstdc++-v3 \
914 # these tools are built using the target libraries, and are intended to
915 # run only in the target environment
917 # note: any program that *uses* libraries that are in the "target_libraries"
918 # list belongs in this list. those programs are also very likely
919 # candidates for the "native_only" list which follows
921 target_tools="target-examples target-groff target-gperf target-rda"
923 ################################################################################
925 ## All tools belong in one of the four categories, and are assigned above
926 ## We assign ${configdirs} this way to remove all embedded newlines. This
927 ## is important because configure will choke if they ever get through.
928 ## ${configdirs} is directories we build using the host tools.
929 ## ${target_configdirs} is directories we build using the target tools.
930 configdirs=`echo ${host_libs} ${host_tools}`
931 target_configdirs=`echo ${target_libraries} ${target_tools}`
932 build_configdirs=`echo ${build_libs} ${build_tools}`
934 ################################################################################
936 srcname="gnu development package"
938 # This gets set non-empty for some net releases of packages.
941 # Define is_cross_compiler to save on calls to 'test'.
943 if test x"${host}" = x"${target}" ; then
946 is_cross_compiler=yes
949 # Find the build and target subdir names.
950 case ${build_alias} in
951 "") build_noncanonical=${build} ;;
952 *) build_noncanonical=${build_alias} ;;
955 case ${host_alias} in
956 "") host_noncanonical=${build_noncanonical} ;;
957 *) host_noncanonical=${host_alias} ;;
960 case ${target_alias} in
961 "") target_noncanonical=${host_noncanonical} ;;
962 *) target_noncanonical=${target_alias} ;;
965 # Prefix 'build-' so this never conflicts with target_subdir.
966 build_subdir="build-${build_noncanonical}"
967 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
968 if ( test $srcdir = . && test -d gcc ) \
969 || test -d $srcdir/../host-${host_noncanonical}; then
970 host_subdir="host-${host_noncanonical}"
975 target_subdir=${target_noncanonical}
978 # Skipdirs are removed silently.
980 # Noconfigdirs are removed loudly.
984 # Make sure we don't let GNU ld be added if we didn't want it.
985 if test x$with_gnu_ld = xno ; then
987 noconfigdirs="$noconfigdirs ld"
991 # Make sure we don't let GNU as be added if we didn't want it.
992 if test x$with_gnu_as = xno ; then
994 noconfigdirs="$noconfigdirs gas"
997 # some tools are so dependent upon X11 that if we're not building with X,
998 # it's not even worth trying to configure, much less build, that tool.
1001 yes | "") ;; # the default value for this tree is that X11 is available
1003 skipdirs="${skipdirs} tk itcl libgui"
1004 # We won't be able to build gdbtk without X.
1007 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1010 # Some tools are only suitable for building in a "native" situation.
1011 # Remove these if host!=target.
1012 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1014 # Similarly, some are only suitable for cross toolchains.
1015 # Remove these if host=target.
1016 cross_only="target-libgloss target-newlib target-opcodes"
1018 case $is_cross_compiler in
1019 no) skipdirs="${skipdirs} ${cross_only}" ;;
1020 yes) skipdirs="${skipdirs} ${native_only}" ;;
1023 # If both --with-headers and --with-libs are specified, default to
1025 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1026 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1027 if test x"${with_newlib}" = x ; then
1032 # Recognize --with-newlib/--without-newlib.
1033 case ${with_newlib} in
1034 no) skipdirs="${skipdirs} target-newlib" ;;
1035 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1038 # Configure extra directories which are host specific
1042 configdirs="$configdirs libtermcap" ;;
1045 # A target can indicate whether a language isn't supported for some reason.
1046 # Only spaces may be used in this macro; not newlines or tabs.
1047 unsupported_languages=
1049 # Remove more programs from consideration, based on the host or
1050 # target this usually means that a port of the program doesn't
1055 noconfigdirs="$noconfigdirs byacc"
1057 i[3456789]86-*-vsta)
1058 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1060 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1061 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1063 i[3456789]86-*-mingw32*)
1064 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1065 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1067 i[3456789]86-*-beos*)
1068 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1071 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1074 noconfigdirs="$noconfigdirs rcs"
1077 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1080 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1085 # Check whether --enable-libada or --disable-libada was given.
1086 if test "${enable_libada+set}" = set; then
1087 enableval="$enable_libada"
1088 ENABLE_LIBADA=$enableval
1093 if test "${ENABLE_LIBADA}" != "yes" ; then
1094 noconfigdirs="$noconfigdirs target-libada"
1095 noconfigdirs="$noconfigdirs gnattools"
1098 # Check whether --enable-libssp or --disable-libssp was given.
1099 if test "${enable_libssp+set}" = set; then
1100 enableval="$enable_libssp"
1101 ENABLE_LIBSSP=$enableval
1106 if test "${ENABLE_LIBSSP}" != "yes" ; then
1107 noconfigdirs="$noconfigdirs target-libssp"
1110 # Save it here so that, even in case of --enable-libgcj, if the Java
1111 # front-end isn't enabled, we still get libgcj disabled.
1112 libgcj_saved=$libgcj
1113 case $enable_libgcj in
1115 # If we reset it here, it won't get added to noconfigdirs in the
1116 # target-specific build rules, so it will be forcibly enabled
1117 # (unless the Java language itself isn't enabled).
1121 # Make sure we get it printed in the list of not supported target libs.
1122 noconfigdirs="$noconfigdirs ${libgcj}"
1127 # Allow --disable-libmudflap to exclude target-libmudflap
1128 case $enable_libmudflap in
1132 noconfigdirs="$noconfigdirs target-libmudflap"
1136 *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
1137 # Enable libmudflap by default in GNU and friends.
1140 # Enable libmudflap by default in FreeBSD.
1143 # Disable it by default everywhere else.
1144 noconfigdirs="$noconfigdirs target-libmudflap"
1152 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1155 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1156 noconfigdirs="$noconfigdirs sim target-rda"
1159 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1160 noconfigdirs="$noconfigdirs sim target-rda"
1161 noconfigdirs="$noconfigdirs ${libgcj}"
1163 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1164 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1167 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1168 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1169 && test -f /usr/local/include/gmp.h; then
1173 # Skip some stuff that's unsupported on some FreeBSD configurations.
1178 noconfigdirs="$noconfigdirs ${libgcj}"
1183 # Remove unsupported stuff on all kaOS configurations.
1184 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1185 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1186 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1187 noconfigdirs="$noconfigdirs target-libgloss"
1190 # Skip some stuff on all NetBSD configurations.
1191 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1193 # Skip some stuff that's unsupported on some NetBSD configurations.
1195 i*86-*-netbsdelf*) ;;
1196 arm*-*-netbsdelf*) ;;
1198 noconfigdirs="$noconfigdirs ${libgcj}"
1203 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1206 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1208 # The tpf target doesn't support gdb yet.
1210 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1213 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1216 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1219 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1222 # ld works, but does not support shared libraries.
1223 # newlib is not 64 bit ready. I'm not sure about fileutils.
1224 # gas doesn't generate exception information.
1225 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1228 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1231 # newlib is not 64 bit ready
1232 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1235 # newlib is not 64 bit ready
1236 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1239 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1242 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1244 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1245 noconfigdirs="$noconfigdirs ${libgcj}"
1246 noconfigdirs="$noconfigdirs target-examples"
1247 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1248 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1249 noconfigdirs="$noconfigdirs expect dejagnu"
1250 # the C++ libraries don't build on top of CE's C libraries
1251 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1252 noconfigdirs="$noconfigdirs target-newlib"
1254 *-*-cygwin*) ;; # keep gdb and readline
1255 *) noconfigdirs="$noconfigdirs gdb readline"
1260 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1264 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1265 noconfigdirs="$noconfigdirs ${libgcj}"
1267 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1268 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1271 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1274 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1277 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1280 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1283 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1286 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1289 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1291 c4x-*-* | tic4x-*-*)
1292 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1294 c54x*-*-* | tic54x-*-*)
1295 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1297 cris-*-* | crisv32-*-*)
1298 unsupported_languages="$unsupported_languages java"
1301 unsupported_languages="$unsupported_languages fortran"
1302 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
1304 unsupported_languages="$unsupported_languages fortran"
1305 noconfigdirs="$noconfigdirs target-boehm-gc";;
1307 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
1309 unsupported_languages="$unsupported_languages fortran"
1310 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1314 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1317 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1320 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1323 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1326 noconfigdirs="$noconfigdirs ${libgcj}"
1329 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1332 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1334 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1336 hppa*64*-*-linux* | parisc*64*-*-linux*)
1337 # In this case, it's because the hppa64-linux target is for
1338 # the kernel only at this point and has no libc, and thus no
1339 # headers, crt*.o, etc., all of which are needed by these.
1340 noconfigdirs="$noconfigdirs target-zlib"
1342 parisc*-*-linux* | hppa*-*-linux*)
1346 hppa*-*-openbsd* | \
1348 noconfigdirs="$noconfigdirs ${libgcj}"
1351 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1352 # build on HP-UX 10.20.
1353 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1356 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1359 # No gdb support yet.
1360 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1363 # No gdb or ld support yet.
1364 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1368 i[3456789]86-*-coff | i[3456789]86-*-elf)
1369 noconfigdirs="$noconfigdirs ${libgcj}"
1371 i[3456789]86-*-linux*)
1372 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1373 # not build java stuff by default.
1376 noconfigdirs="$noconfigdirs ${libgcj}";;
1379 # This section makes it possible to build newlib natively on linux.
1380 # If we are using a cross compiler then don't configure newlib.
1381 if test x${is_cross_compiler} != xno ; then
1382 noconfigdirs="$noconfigdirs target-newlib"
1384 noconfigdirs="$noconfigdirs target-libgloss"
1385 # If we are not using a cross compiler, do configure newlib.
1386 # Note however, that newlib will only be configured in this situation
1387 # if the --with-newlib option has been given, because otherwise
1388 # 'target-newlib' will appear in skipdirs.
1390 i[3456789]86-*-mingw32*)
1391 target_configdirs="$target_configdirs target-mingw"
1392 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1394 # Can't build gdb for mingw32 if not native.
1396 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1397 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1402 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1403 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1404 # always build newlib if winsup directory is present.
1405 if test -d "$srcdir/winsup"; then
1406 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1407 elif test -d "$srcdir/newlib"; then
1408 echo "Warning: winsup is missing so newlib can't be built."
1411 # Can't build gdb for Cygwin if not native.
1413 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1414 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1418 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1419 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1422 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1424 i[3456789]86-*-sco3.2v5*)
1425 # The linker does not yet know about weak symbols in COFF,
1426 # and is not configured to handle mixed ELF and COFF.
1427 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1429 i[3456789]86-*-sco*)
1430 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1432 i[3456789]86-*-solaris2*)
1433 noconfigdirs="$noconfigdirs target-libgloss"
1435 i[3456789]86-*-sysv4*)
1436 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1438 i[3456789]86-*-beos*)
1439 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1442 noconfigdirs="$noconfigdirs ${libgcj}"
1444 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1445 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1448 noconfigdirs="$noconfigdirs ${libgcj}"
1451 noconfigdirs="$noconfigdirs ${libgcj}"
1454 # The EPOC C++ environment does not support exceptions or rtti,
1455 # and so building libstdc++-v3 tends not to always work.
1456 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1459 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1460 unsupported_languages="$unsupported_languages fortran java"
1463 noconfigdirs="$noconfigdirs ${libgcj}"
1466 noconfigdirs="$noconfigdirs ${libgcj}"
1469 noconfigdirs="$noconfigdirs sim"
1472 # copied from rs6000-*-* entry
1473 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1475 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1476 target_configdirs="$target_configdirs target-winsup"
1477 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1478 # always build newlib.
1479 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1481 # This is temporary until we can link against shared libraries
1482 powerpcle-*-solaris*)
1483 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1486 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1489 noconfigdirs="$noconfigdirs ${libgcj}"
1491 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1494 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1497 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1500 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1503 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1506 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1509 # Linking libjava exceeds command-line length limits on at least
1510 # IRIX 6.2, but not on IRIX 6.5.
1511 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1512 # <oldham@codesourcery.com>
1513 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1516 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1519 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1522 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1525 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1528 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1531 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1534 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1538 i[3456789]86-*-vsta) ;; # don't add gprof back in
1539 i[3456789]86-*-go32*) ;; # don't add gprof back in
1540 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1541 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1543 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1546 noconfigdirs="$noconfigdirs ${libgcj}"
1549 noconfigdirs="$noconfigdirs ${libgcj}"
1552 noconfigdirs="$noconfigdirs ${libgcj}"
1555 noconfigdirs="$noconfigdirs ${libgcj}"
1556 if test x${is_cross_compiler} != xno ; then
1557 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1562 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1563 noconfigdirs="$noconfigdirs ${libgcj}"
1565 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1568 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1571 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1574 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1577 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1580 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1583 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1586 noconfigdirs="$noconfigdirs ${libgcj}"
1589 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1591 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1595 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1598 noconfigdirs="$noconfigdirs ${libgcj}"
1602 # If we aren't building newlib, then don't build libgloss, since libgloss
1603 # depends upon some newlib header files.
1604 case "${noconfigdirs}" in
1605 *target-libgloss*) ;;
1606 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1609 # Work in distributions that contain no compiler tools, like Autoconf.
1611 host_makefile_frag=/dev/null
1612 if test -d ${srcdir}/config ; then
1615 # Avoid "too much defining" errors from HPUX compiler.
1616 tentative_cc="cc -Wp,-H256000"
1617 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1618 # If it's HP/UX ar, this should be harmless.
1622 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1625 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1626 # chokes on bfd, the compiler won't let you assign integers to enums, and
1627 # other problems. Defining CC to gcc is a questionable way to say "don't use
1628 # the apollo compiler" (the preferred version of GCC could be called cc,
1629 # or whatever), but I'm not sure leaving CC as cc is any better...
1630 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1631 # Used to have BISON=yacc.
1635 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1638 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1639 tentative_cc="cc -Xa"
1640 host_makefile_frag="config/mh-cxux"
1642 m88k-motorola-sysv*)
1645 tentative_cc="cc -Wf,-XNg1000"
1646 host_makefile_frag="config/mh-decstation"
1649 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1650 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1651 host_makefile_frag="config/mh-necv4"
1654 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1655 # environment. Also bump switch table size so that cp-parse will
1656 # compile. Bump string length limit so linker builds.
1657 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1660 host_makefile_frag="config/mh-sysv4"
1663 # This is for a MIPS running RISC/os 4.52C.
1665 # This is needed for GDB, but needs to be in the top-level make because
1666 # if a library is compiled with the bsd headers and gets linked with the
1667 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1668 # a different size).
1669 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1670 # known except to select the sysv environment. Could we use /proc instead?
1671 # These "sysv environments" and "bsd environments" often end up being a pain.
1673 # This is not part of CFLAGS because perhaps not all C compilers have this
1675 tentative_cc="cc -systype sysv"
1680 i[3456789]86-*-sysv5*)
1681 host_makefile_frag="config/mh-sysv5"
1683 i[3456789]86-*-dgux*)
1684 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1685 host_makefile_frag="config/mh-dgux386"
1687 i[3456789]86-ncr-sysv4.3*)
1688 # The MetaWare compiler will generate a copyright message unless you
1689 # turn it off by adding the -Hnocopyr flag.
1690 tentative_cc="cc -Hnocopyr"
1692 i[3456789]86-ncr-sysv4*)
1693 # for an NCR 3000 (i486/SVR4) system.
1694 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1695 # This compiler not only emits obnoxious copyright messages every time
1696 # you run it, but it chokes and dies on a whole bunch of GNU source
1697 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1698 tentative_cc="/usr/ccs/ATT/cc"
1699 host_makefile_frag="config/mh-ncr3000"
1701 i[3456789]86-*-sco3.2v5*)
1703 i[3456789]86-*-sco*)
1704 # The native C compiler botches some simple uses of const. Unfortunately,
1705 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1706 tentative_cc="cc -Dconst="
1707 host_makefile_frag="config/mh-sco"
1709 i[3456789]86-*-udk*)
1710 host_makefile_frag="config/mh-sysv5"
1712 i[3456789]86-*-solaris2*)
1713 host_makefile_frag="config/mh-sysv4"
1715 i[3456789]86-*-msdosdjgpp*)
1716 host_makefile_frag="config/mh-djgpp"
1719 host_makefile_frag="config/mh-cygwin"
1724 host_makefile_frag="config/mh-interix"
1727 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1731 host_makefile_frag="config/mh-solaris"
1734 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1735 # without overflowing the jump tables (-J says to use a 32 bit table)
1736 tentative_cc="cc -J"
1739 tentative_cc="cc -Wp,-H256000"
1742 tentative_cc="cc -Wp,-H256000"
1745 # /bin/cc is less than useful for our purposes. Always use GCC
1746 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1747 host_makefile_frag="config/mh-lynxrs6k"
1750 host_makefile_frag="config/mh-ppc-darwin"
1753 # /bin/cc is less than useful for our purposes. Always use GCC
1754 tentative_cc="/bin/gcc"
1757 host_makefile_frag="config/mh-sysv4"
1759 # This is placed last to prevent interfering with the cases above.
1761 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1762 host_makefile_frag="config/mh-x86omitfp"
1767 # If we aren't going to be using gcc, see if we can extract a definition
1768 # of CC from the fragment.
1769 # Actually, use the 'pre-extracted' version above.
1770 if test -z "${CC}" && test "${build}" = "${host}" ; then
1771 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1773 for dir in $PATH; do
1774 test -z "$dir" && dir=.
1775 if test -f $dir/gcc; then
1781 if test -z "${found}" && test -n "${tentative_cc}" ; then
1786 if test "${build}" != "${host}" ; then
1787 # If we are doing a Canadian Cross, in which the host and build systems
1788 # are not the same, we set reasonable default values for the tools.
1790 CC=${CC-${host_alias}-gcc}
1791 CFLAGS=${CFLAGS-"-g -O2"}
1792 CXX=${CXX-${host_alias}-c++}
1793 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1794 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1795 BUILD_PREFIX=${build_alias}-
1796 BUILD_PREFIX_1=${build_alias}-
1799 # Set reasonable default values for some tools even if not Canadian.
1800 # Of course, these are different reasonable default values, originally
1801 # specified directly in the Makefile.
1802 # We don't export, so that autoconf can do its job.
1803 # Note that all these settings are above the fragment inclusion point
1804 # in Makefile.in, so can still be overridden by fragments.
1805 # This is all going to change when we autoconfiscate...
1807 CC_FOR_BUILD="\$(CC)"
1809 BUILD_PREFIX_1=loser-
1811 # Extract the first word of "gcc", so it can be a program name with args.
1812 set dummy gcc; ac_word=$2
1813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1814 echo "configure:1815: checking for $ac_word" >&5
1815 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1818 if test -n "$CC"; then
1819 ac_cv_prog_CC="$CC" # Let the user override the test.
1821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1823 for ac_dir in $ac_dummy; do
1824 test -z "$ac_dir" && ac_dir=.
1825 if test -f $ac_dir/$ac_word; then
1834 if test -n "$CC"; then
1835 echo "$ac_t""$CC" 1>&6
1837 echo "$ac_t""no" 1>&6
1840 if test -z "$CC"; then
1841 # Extract the first word of "cc", so it can be a program name with args.
1842 set dummy cc; ac_word=$2
1843 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1844 echo "configure:1845: checking for $ac_word" >&5
1845 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1848 if test -n "$CC"; then
1849 ac_cv_prog_CC="$CC" # Let the user override the test.
1851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1854 for ac_dir in $ac_dummy; do
1855 test -z "$ac_dir" && ac_dir=.
1856 if test -f $ac_dir/$ac_word; then
1857 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1858 ac_prog_rejected=yes
1866 if test $ac_prog_rejected = yes; then
1867 # We found a bogon in the path, so make sure we never use it.
1868 set dummy $ac_cv_prog_CC
1870 if test $# -gt 0; then
1871 # We chose a different compiler from the bogus one.
1872 # However, it has the same basename, so the bogon will be chosen
1873 # first if we set CC to just the basename; use the full file name.
1875 set dummy "$ac_dir/$ac_word" "$@"
1883 if test -n "$CC"; then
1884 echo "$ac_t""$CC" 1>&6
1886 echo "$ac_t""no" 1>&6
1889 if test -z "$CC"; then
1890 case "`uname -s`" in
1892 # Extract the first word of "cl", so it can be a program name with args.
1893 set dummy cl; ac_word=$2
1894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1895 echo "configure:1896: checking for $ac_word" >&5
1896 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1899 if test -n "$CC"; then
1900 ac_cv_prog_CC="$CC" # Let the user override the test.
1902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1904 for ac_dir in $ac_dummy; do
1905 test -z "$ac_dir" && ac_dir=.
1906 if test -f $ac_dir/$ac_word; then
1915 if test -n "$CC"; then
1916 echo "$ac_t""$CC" 1>&6
1918 echo "$ac_t""no" 1>&6
1923 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1926 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1927 echo "configure:1928: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1933 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1934 cross_compiling=$ac_cv_prog_cc_cross
1936 cat > conftest.$ac_ext << EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1943 if { (eval echo configure:1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1944 ac_cv_prog_cc_works=yes
1945 # If we can't run a trivial program, we are probably using a cross compiler.
1946 if (./conftest; exit) 2>/dev/null; then
1947 ac_cv_prog_cc_cross=no
1949 ac_cv_prog_cc_cross=yes
1952 echo "configure: failed program was:" >&5
1953 cat conftest.$ac_ext >&5
1954 ac_cv_prog_cc_works=no
1958 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1959 ac_cpp='$CPP $CPPFLAGS'
1960 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1961 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1962 cross_compiling=$ac_cv_prog_cc_cross
1964 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1965 if test $ac_cv_prog_cc_works = no; then
1966 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1968 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1969 echo "configure:1970: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1970 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1971 cross_compiling=$ac_cv_prog_cc_cross
1973 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1974 echo "configure:1975: checking whether we are using GNU C" >&5
1975 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1978 cat > conftest.c <<EOF
1983 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1990 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1992 if test $ac_cv_prog_gcc = yes; then
1998 ac_test_CFLAGS="${CFLAGS+set}"
1999 ac_save_CFLAGS="$CFLAGS"
2001 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2002 echo "configure:2003: checking whether ${CC-cc} accepts -g" >&5
2003 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2004 echo $ac_n "(cached) $ac_c" 1>&6
2006 echo 'void f(){}' > conftest.c
2007 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2016 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2017 if test "$ac_test_CFLAGS" = set; then
2018 CFLAGS="$ac_save_CFLAGS"
2019 elif test $ac_cv_prog_cc_g = yes; then
2020 if test "$GCC" = yes; then
2026 if test "$GCC" = yes; then
2034 # We must set the default linker to the linker used by gcc for the correct
2035 # operation of libtool. If LD is not defined and we are using gcc, try to
2036 # set the LD default to the ld used by gcc.
2037 if test -z "$LD"; then
2038 if test "$GCC" = yes; then
2041 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2043 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2045 case $gcc_prog_ld in
2046 # Accept absolute paths.
2047 [\\/]* | [A-Za-z]:[\\/]*)
2048 LD="$gcc_prog_ld" ;;
2054 CFLAGS=${CFLAGS-"-g"}
2055 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2058 if test $host != $build; then
2059 ac_tool_prefix=${host_alias}-
2066 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2067 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2069 echo "configure:2070: checking for $ac_word" >&5
2070 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 if test -n "$GNATBIND"; then
2074 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2078 for ac_dir in $ac_dummy; do
2079 test -z "$ac_dir" && ac_dir=.
2080 if test -f $ac_dir/$ac_word; then
2081 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2088 GNATBIND="$ac_cv_prog_GNATBIND"
2089 if test -n "$GNATBIND"; then
2090 echo "$ac_t""$GNATBIND" 1>&6
2092 echo "$ac_t""no" 1>&6
2096 if test -z "$ac_cv_prog_GNATBIND"; then
2097 if test -n "$ac_tool_prefix"; then
2098 # Extract the first word of "gnatbind", so it can be a program name with args.
2099 set dummy gnatbind; ac_word=$2
2100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2101 echo "configure:2102: checking for $ac_word" >&5
2102 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2105 if test -n "$GNATBIND"; then
2106 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2110 for ac_dir in $ac_dummy; do
2111 test -z "$ac_dir" && ac_dir=.
2112 if test -f $ac_dir/$ac_word; then
2113 ac_cv_prog_GNATBIND="gnatbind"
2118 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2121 GNATBIND="$ac_cv_prog_GNATBIND"
2122 if test -n "$GNATBIND"; then
2123 echo "$ac_t""$GNATBIND" 1>&6
2125 echo "$ac_t""no" 1>&6
2133 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2134 echo "configure:2135: checking whether compiler driver understands Ada" >&5
2135 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2138 cat >conftest.adb <<EOF
2139 procedure conftest is begin null; end conftest;
2141 acx_cv_cc_gcc_supports_ada=no
2142 # There is a bug in old released versions of GCC which causes the
2143 # driver to exit successfully when the appropriate language module
2144 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2145 # Therefore we must check for the error message as well as an
2146 # unsuccessful exit.
2147 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2148 # given a .adb file, but produce no object file. So we must check
2149 # if an object file was really produced to guard against this.
2150 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2151 if test x"$errors" = x && test -f conftest.$ac_objext; then
2152 acx_cv_cc_gcc_supports_ada=yes
2157 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2159 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2165 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2166 echo "configure:2167: checking how to compare bootstrapped objects" >&5
2167 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2172 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2173 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2174 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2177 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2180 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2181 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2184 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2191 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2192 do_compare="$gcc_cv_prog_cmp_skip"
2196 # Check for GMP and MPFR
2200 # Specify a location for mpfr
2201 # check for this first so it ends up on the link line before gmp.
2202 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2203 if test "${with_mpfr_dir+set}" = set; then
2204 withval="$with_mpfr_dir"
2209 if test "x$with_mpfr_dir" != x; then
2210 gmpinc="-I$with_mpfr_dir"
2211 gmplibs="$with_mpfr_dir/libmpfr.a"
2216 # Check whether --with-mpfr or --without-mpfr was given.
2217 if test "${with_mpfr+set}" = set; then
2218 withval="$with_mpfr"
2223 if test "x$with_mpfr" != x; then
2224 gmplibs="-L$with_mpfr/lib $gmplibs"
2225 gmpinc="-I$with_mpfr/include"
2228 # Specify a location for gmp
2229 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2230 if test "${with_gmp_dir+set}" = set; then
2231 withval="$with_gmp_dir"
2236 if test "x$with_gmp_dir" != x; then
2237 gmpinc="$gmpinc -I$with_gmp_dir"
2238 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2239 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2240 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2241 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2243 # One of the later tests will catch the error if neither library is present.
2245 gmplibs="$gmplibs -lgmp"
2248 # Check whether --with-gmp or --without-gmp was given.
2249 if test "${with_gmp+set}" = set; then
2255 if test "x$with_gmp" != x; then
2256 gmplibs="-L$with_gmp/lib $gmplibs"
2257 gmpinc="-I$with_gmp/include $gmpinc"
2260 saved_CFLAGS="$CFLAGS"
2261 CFLAGS="$CFLAGS $gmpinc"
2262 # Check GMP actually works
2263 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2264 echo "configure:2265: checking for correct version of gmp.h" >&5
2265 cat > conftest.$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2271 #if __GNU_MP_VERSION < 3
2277 if { (eval echo configure:2278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2279 echo "$ac_t""yes" 1>&6
2281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2284 echo "$ac_t""no" 1>&6; have_gmp=no
2288 if test x"$have_gmp" = xyes; then
2289 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2290 echo "configure:2291: checking for MPFR" >&5
2293 LIBS="$LIBS $gmplibs"
2294 cat > conftest.$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2300 mpfr_t n; mpfr_init(n);
2303 if { (eval echo configure:2304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2305 echo "$ac_t""yes" 1>&6
2307 echo "configure: failed program was:" >&5
2308 cat conftest.$ac_ext >&5
2310 echo "$ac_t""no" 1>&6; have_gmp=no
2314 CFLAGS="$saved_CFLAGS"
2317 # Flags needed for both GMP and/or MPFR
2321 # By default, C is the only stage 1 language.
2325 # Figure out what language subdirectories are present.
2326 # Look if the user specified --enable-languages="..."; if not, use
2327 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2329 # NB: embedded tabs in this IF block -- do not untabify
2330 if test -d ${srcdir}/gcc; then
2331 if test x"${enable_languages+set}" != xset; then
2332 if test x"${LANGUAGES+set}" = xset; then
2333 enable_languages="${LANGUAGES}"
2334 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2336 enable_languages=all
2339 if test x"${enable_languages}" = x ||
2340 test x"${enable_languages}" = xyes;
2342 echo configure.in: --enable-languages needs at least one language argument 1>&2
2346 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2348 # 'f95' is the old name for the 'fortran' language. We issue a warning
2349 # and make the substitution.
2350 case ,${enable_languages}, in
2352 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2353 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2357 # First scan to see if an enabled language requires some other language.
2358 # We assume that a given config-lang.in will list all the language
2359 # front ends it requires, even if some are required indirectly.
2360 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2361 case ${lang_frag} in
2363 # The odd quoting in the next line works around
2364 # an apparent bug in bash 1.12 on linux.
2365 ${srcdir}/gcc/[*]/config-lang.in) ;;
2367 # From the config-lang.in, get $language, $lang_requires
2371 for other in ${lang_requires} ; do
2372 case ,${enable_languages}, in
2376 echo " \`$other' language required by \`$language'; enabling" 1>&2
2377 enable_languages="${enable_languages},${other}"
2385 new_enable_languages=c
2386 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2387 potential_languages=c
2389 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2390 case ${lang_frag} in
2392 # The odd quoting in the next line works around
2393 # an apparent bug in bash 1.12 on linux.
2394 ${srcdir}/gcc/[*]/config-lang.in) ;;
2396 # From the config-lang.in, get $language, $target_libs,
2397 # $lang_dirs, $boot_language, and $build_by_default
2405 potential_languages="${potential_languages},${language}"
2406 # This is quite sensitive to the ordering of the case statement arms.
2407 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2409 echo "${lang_frag} doesn't set \$language." 1>&2
2413 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2416 *,${language},*:*:*:*)
2417 # Language was explicitly selected; include it.
2421 # 'all' was selected, but this is not a default language
2422 # so do not include it.
2426 # 'all' was selected and this is a default language; include it.
2434 # Disable languages that need GMP if it isn't available.
2435 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2436 *,${language},*:no:yes)
2437 # Specifically requested language; tell them.
2438 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2446 # Disable a language that is unsupported by the target.
2447 case " $unsupported_languages " in
2453 case $add_this_lang in
2455 # Remove language-dependent dirs.
2456 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2459 new_enable_languages="$new_enable_languages,$language"
2460 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2461 case ${boot_language} in
2463 # Add to (comma-separated) list of stage 1 languages.
2464 stage1_languages="${stage1_languages},${language}"
2473 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2474 if test "x$missing_languages" != x; then
2475 { echo "configure: error:
2476 The following requested languages could not be built: ${missing_languages}
2477 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2480 if test "x$new_enable_languages" != "x$enable_languages"; then
2481 echo The following languages will be built: ${new_enable_languages}
2483 enable_languages="$new_enable_languages"
2484 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2487 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2488 # $build_configdirs and $target_configdirs.
2489 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2492 for dir in . $skipdirs $noconfigdirs ; do
2493 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2494 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2495 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2496 if test -r $srcdir/$dirname/configure ; then
2497 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2500 notsupp="$notsupp $dir"
2504 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2505 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2506 if test -r $srcdir/$dirname/configure ; then
2507 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2510 notsupp="$notsupp $dir"
2514 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2515 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2516 if test -r $srcdir/$dirname/configure ; then
2517 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2520 notsupp="$notsupp $dir"
2526 # Sometimes the tools are distributed with libiberty but with no other
2527 # libraries. In that case, we don't want to build target-libiberty.
2528 if test -n "${target_configdirs}" ; then
2530 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2531 if test "$i" != "libiberty" ; then
2532 if test -r $srcdir/$i/configure ; then
2538 if test -z "${others}" ; then
2543 # Quietly strip out all directories which aren't configurable in this tree.
2544 # This relies on all configurable subdirectories being autoconfiscated, which
2546 build_configdirs_all="$build_configdirs"
2548 for i in ${build_configdirs_all} ; do
2549 j=`echo $i | sed -e s/build-//g`
2550 if test -f ${srcdir}/$j/configure ; then
2551 build_configdirs="${build_configdirs} $i"
2555 configdirs_all="$configdirs"
2557 for i in ${configdirs_all} ; do
2558 if test -f ${srcdir}/$i/configure ; then
2559 configdirs="${configdirs} $i"
2563 target_configdirs_all="$target_configdirs"
2565 for i in ${target_configdirs_all} ; do
2566 j=`echo $i | sed -e s/target-//g`
2567 if test -f ${srcdir}/$j/configure ; then
2568 target_configdirs="${target_configdirs} $i"
2572 # Produce a warning message for the subdirs we can't configure.
2573 # This isn't especially interesting in the Cygnus tree, but in the individual
2574 # FSF releases, it's important to let people know when their machine isn't
2575 # supported by the one or two programs in a package.
2577 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2578 # If $appdirs is non-empty, at least one of those directories must still
2579 # be configured, or we error out. (E.g., if the gas release supports a
2580 # specified target in some subdirs but not the gas subdir, we shouldn't
2581 # pretend that all is well.)
2582 if test -n "$appdirs" ; then
2583 for dir in $appdirs ; do
2584 if test -r $dir/Makefile.in ; then
2585 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2589 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2595 if test -n "$appdirs" ; then
2596 echo "*** This configuration is not supported by this package." 1>&2
2600 # Okay, some application will build, or we don't care to check. Still
2601 # notify of subdirs not getting built.
2602 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2603 echo " ${notsupp}" 1>&2
2604 echo " (Any other directories should still work fine.)" 1>&2
2614 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2615 if test "${with_build_sysroot+set}" = set; then
2616 withval="$with_build_sysroot"
2617 if test x"$withval" != x ; then
2618 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2621 SYSROOT_CFLAGS_FOR_TARGET=
2626 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2627 # the named directory are copied to $(tooldir)/sys-include.
2628 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2629 if test x${is_cross_compiler} = xno ; then
2630 echo 1>&2 '***' --with-headers is only supported when cross compiling
2633 if test x"${with_headers}" != xyes ; then
2634 case "${exec_prefixoption}" in
2636 *) x=${exec_prefix} ;;
2638 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2642 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2643 # the name directories are copied to $(tooldir)/lib. Multiple directories
2645 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2646 if test x${is_cross_compiler} = xno ; then
2647 echo 1>&2 '***' --with-libs is only supported when cross compiling
2650 if test x"${with_libs}" != xyes ; then
2651 # Copy the libraries in reverse order, so that files in the first named
2652 # library override files in subsequent libraries.
2653 case "${exec_prefixoption}" in
2655 *) x=${exec_prefix} ;;
2657 for l in ${with_libs}; do
2658 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2663 # Handle ${copy_dirs}
2664 set fnord ${copy_dirs}
2666 while test $# != 0 ; do
2667 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2670 echo Copying $1 to $2
2672 # Use the install script to create the directory and all required
2673 # parent directories.
2674 if test -d $2 ; then
2678 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2681 # Copy the directory, assuming we have tar.
2682 # FIXME: Should we use B in the second tar? Not all systems support it.
2683 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2685 # It is the responsibility of the user to correctly adjust all
2686 # symlinks. If somebody can figure out how to handle them correctly
2687 # here, feel free to add the code.
2694 extra_arflags_for_target=
2695 extra_nmflags_for_target=
2696 extra_ranlibflags_for_target=
2697 target_makefile_frag=/dev/null
2700 target_makefile_frag="config/mt-netware"
2702 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2703 target_makefile_frag="config/mt-gnu"
2705 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2706 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2707 # commands to handle both 32-bit and 64-bit objects. These flags are
2708 # harmless if we're using GNU nm or ar.
2709 extra_arflags_for_target=" -X32_64"
2710 extra_nmflags_for_target=" -B -X32_64"
2713 # ranlib from Darwin requires the -c flag to look at common symbols.
2714 extra_ranlibflags_for_target=" -c"
2716 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2717 target_makefile_frag="config/mt-wince"
2721 alphaieee_frag=/dev/null
2724 # This just makes sure to use the -mieee option to build target libs.
2725 # This should probably be set individually by each library.
2726 alphaieee_frag="config/mt-alphaieee"
2730 # If --enable-target-optspace always use -Os instead of -O2 to build
2731 # the target libraries, similarly if it is not specified, use -Os
2732 # on selected platforms.
2733 ospace_frag=/dev/null
2734 case "${enable_target_optspace}:${target}" in
2736 ospace_frag="config/mt-ospace"
2739 ospace_frag="config/mt-d30v"
2741 :m32r-* | :d10v-* | :fr30-*)
2742 ospace_frag="config/mt-ospace"
2747 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2751 # Set with_gnu_as and with_gnu_ld as appropriate.
2753 # This is done by determining whether or not the appropriate directory
2754 # is available, and by checking whether or not specific configurations
2755 # have requested that this magic not happen.
2757 # The command line options always override the explicit settings in
2758 # configure.in, and the settings in configure.in override this magic.
2760 # If the default for a toolchain is to use GNU as and ld, and you don't
2761 # want to do that, then you should use the --without-gnu-as and
2762 # --without-gnu-ld options for the configure script.
2764 if test x${use_gnu_as} = x &&
2765 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2767 extra_host_args="$extra_host_args --with-gnu-as"
2770 if test x${use_gnu_ld} = x &&
2771 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2773 extra_host_args="$extra_host_args --with-gnu-ld"
2776 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2777 # can detect this case.
2779 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2781 extra_host_args="$extra_host_args --with-newlib"
2784 # Default to using --with-stabs for certain targets.
2785 if test x${with_stabs} = x ; then
2789 mips*-*-* | alpha*-*-osf*)
2791 extra_host_args="${extra_host_args} --with-stabs"
2796 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2797 # them automatically.
2800 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2804 # Some systems (e.g., one of the i386-aix systems the gas testers are
2805 # using) don't handle "\$" correctly, so don't use it here.
2806 tooldir='${exec_prefix}'/${target_alias}
2807 build_tooldir=${tooldir}
2809 # Generate default definitions for YACC, M4, LEX and other programs that run
2810 # on the build machine. These are used if the Makefile can't locate these
2811 # programs in objdir.
2812 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2813 for ac_prog in bison
2815 # Extract the first word of "$ac_prog", so it can be a program name with args.
2816 set dummy $ac_prog; ac_word=$2
2817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2818 echo "configure:2819: checking for $ac_word" >&5
2819 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" = set"; then
2820 echo $ac_n "(cached) $ac_c" 1>&6
2822 if test -n "$CONFIGURED_BISON"; then
2823 ac_cv_prog_CONFIGURED_BISON="$CONFIGURED_BISON" # Let the user override the test.
2825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2827 for ac_dir in $ac_dummy; do
2828 test -z "$ac_dir" && ac_dir=.
2829 if test -f $ac_dir/$ac_word; then
2830 ac_cv_prog_CONFIGURED_BISON="$ac_prog"
2837 CONFIGURED_BISON="$ac_cv_prog_CONFIGURED_BISON"
2838 if test -n "$CONFIGURED_BISON"; then
2839 echo "$ac_t""$CONFIGURED_BISON" 1>&6
2841 echo "$ac_t""no" 1>&6
2844 test -n "$CONFIGURED_BISON" && break
2846 test -n "$CONFIGURED_BISON" || CONFIGURED_BISON="$MISSING bison"
2848 for ac_prog in 'bison -y' byacc yacc
2850 # Extract the first word of "$ac_prog", so it can be a program name with args.
2851 set dummy $ac_prog; ac_word=$2
2852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2853 echo "configure:2854: checking for $ac_word" >&5
2854 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2857 if test -n "$CONFIGURED_YACC"; then
2858 ac_cv_prog_CONFIGURED_YACC="$CONFIGURED_YACC" # Let the user override the test.
2860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2862 for ac_dir in $ac_dummy; do
2863 test -z "$ac_dir" && ac_dir=.
2864 if test -f $ac_dir/$ac_word; then
2865 ac_cv_prog_CONFIGURED_YACC="$ac_prog"
2872 CONFIGURED_YACC="$ac_cv_prog_CONFIGURED_YACC"
2873 if test -n "$CONFIGURED_YACC"; then
2874 echo "$ac_t""$CONFIGURED_YACC" 1>&6
2876 echo "$ac_t""no" 1>&6
2879 test -n "$CONFIGURED_YACC" && break
2881 test -n "$CONFIGURED_YACC" || CONFIGURED_YACC="$MISSING bison -y"
2883 for ac_prog in gm4 gnum4 m4
2885 # Extract the first word of "$ac_prog", so it can be a program name with args.
2886 set dummy $ac_prog; ac_word=$2
2887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2888 echo "configure:2889: checking for $ac_word" >&5
2889 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2892 if test -n "$CONFIGURED_M4"; then
2893 ac_cv_prog_CONFIGURED_M4="$CONFIGURED_M4" # Let the user override the test.
2895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2897 for ac_dir in $ac_dummy; do
2898 test -z "$ac_dir" && ac_dir=.
2899 if test -f $ac_dir/$ac_word; then
2900 ac_cv_prog_CONFIGURED_M4="$ac_prog"
2907 CONFIGURED_M4="$ac_cv_prog_CONFIGURED_M4"
2908 if test -n "$CONFIGURED_M4"; then
2909 echo "$ac_t""$CONFIGURED_M4" 1>&6
2911 echo "$ac_t""no" 1>&6
2914 test -n "$CONFIGURED_M4" && break
2916 test -n "$CONFIGURED_M4" || CONFIGURED_M4="$MISSING m4"
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921 set dummy $ac_prog; ac_word=$2
2922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2923 echo "configure:2924: checking for $ac_word" >&5
2924 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2927 if test -n "$CONFIGURED_FLEX"; then
2928 ac_cv_prog_CONFIGURED_FLEX="$CONFIGURED_FLEX" # Let the user override the test.
2930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2932 for ac_dir in $ac_dummy; do
2933 test -z "$ac_dir" && ac_dir=.
2934 if test -f $ac_dir/$ac_word; then
2935 ac_cv_prog_CONFIGURED_FLEX="$ac_prog"
2942 CONFIGURED_FLEX="$ac_cv_prog_CONFIGURED_FLEX"
2943 if test -n "$CONFIGURED_FLEX"; then
2944 echo "$ac_t""$CONFIGURED_FLEX" 1>&6
2946 echo "$ac_t""no" 1>&6
2949 test -n "$CONFIGURED_FLEX" && break
2951 test -n "$CONFIGURED_FLEX" || CONFIGURED_FLEX="$MISSING flex"
2953 for ac_prog in flex lex
2955 # Extract the first word of "$ac_prog", so it can be a program name with args.
2956 set dummy $ac_prog; ac_word=$2
2957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2958 echo "configure:2959: checking for $ac_word" >&5
2959 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2962 if test -n "$CONFIGURED_LEX"; then
2963 ac_cv_prog_CONFIGURED_LEX="$CONFIGURED_LEX" # Let the user override the test.
2965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2967 for ac_dir in $ac_dummy; do
2968 test -z "$ac_dir" && ac_dir=.
2969 if test -f $ac_dir/$ac_word; then
2970 ac_cv_prog_CONFIGURED_LEX="$ac_prog"
2977 CONFIGURED_LEX="$ac_cv_prog_CONFIGURED_LEX"
2978 if test -n "$CONFIGURED_LEX"; then
2979 echo "$ac_t""$CONFIGURED_LEX" 1>&6
2981 echo "$ac_t""no" 1>&6
2984 test -n "$CONFIGURED_LEX" && break
2986 test -n "$CONFIGURED_LEX" || CONFIGURED_LEX="$MISSING flex"
2988 for ac_prog in makeinfo
2990 # Extract the first word of "$ac_prog", so it can be a program name with args.
2991 set dummy $ac_prog; ac_word=$2
2992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2993 echo "configure:2994: checking for $ac_word" >&5
2994 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2997 if test -n "$CONFIGURED_MAKEINFO"; then
2998 ac_cv_prog_CONFIGURED_MAKEINFO="$CONFIGURED_MAKEINFO" # Let the user override the test.
3000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3002 for ac_dir in $ac_dummy; do
3003 test -z "$ac_dir" && ac_dir=.
3004 if test -f $ac_dir/$ac_word; then
3005 ac_cv_prog_CONFIGURED_MAKEINFO="$ac_prog"
3012 CONFIGURED_MAKEINFO="$ac_cv_prog_CONFIGURED_MAKEINFO"
3013 if test -n "$CONFIGURED_MAKEINFO"; then
3014 echo "$ac_t""$CONFIGURED_MAKEINFO" 1>&6
3016 echo "$ac_t""no" 1>&6
3019 test -n "$CONFIGURED_MAKEINFO" && break
3021 test -n "$CONFIGURED_MAKEINFO" || CONFIGURED_MAKEINFO="$MISSING makeinfo"
3024 # Create a .gdbinit file which runs the one in srcdir
3025 # and tells GDB to look there for source files.
3027 if test -r ${srcdir}/.gdbinit ; then
3030 *) cat > ./.gdbinit <<EOF
3034 source ${srcdir}/.gdbinit
3040 # Make sure that the compiler is able to generate an executable. If it
3041 # can't, we are probably in trouble. We don't care whether we can run the
3042 # executable--we might be using a cross compiler--we only care whether it
3043 # can be created. At this point the main configure script has set CC.
3045 echo "int main () { return 0; }" > conftest.c
3046 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3047 if test $? = 0 ; then
3048 if test -s conftest || test -s conftest.exe ; then
3054 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3055 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3062 # The Solaris /usr/ucb/cc compiler does not appear to work.
3064 sparc-sun-solaris2*)
3065 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
3066 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3068 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
3069 if test -d /opt/cygnus/bin ; then
3070 if test "$could_use" = "" ; then
3071 could_use="/opt/cygnus/bin"
3073 could_use="$could_use or /opt/cygnus/bin"
3076 if test "$could_use" = "" ; then
3077 echo "Warning: compilation may fail because you're using"
3078 echo "/usr/ucb/cc. You should change your PATH or CC "
3079 echo "variable and rerun configure."
3081 echo "Warning: compilation may fail because you're using"
3082 echo "/usr/ucb/cc, when you should use the C compiler from"
3083 echo "$could_use. You should change your"
3084 echo "PATH or CC variable and rerun configure."
3091 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3092 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3093 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
3096 # Record target_configdirs and the configure arguments for target and
3097 # build configuration in Makefile.
3098 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3099 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3101 # Determine whether gdb needs tk/tcl or not.
3102 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3103 # and in that case we want gdb to be built without tk. Ugh!
3104 # In fact I believe gdb is the *only* package directly dependent on tk,
3105 # so we should be able to put the 'maybe's in unconditionally and
3106 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3107 # 100% sure that that's safe though.
3109 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3110 case "$enable_gdbtk" in
3114 GDB_TK="${gdb_tk}" ;;
3116 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3117 # distro. Eventually someone will fix this and move Insight, nee
3118 # gdbtk to a separate directory.
3119 if test -d ${srcdir}/gdb/gdbtk ; then
3127 # Strip out unwanted targets.
3129 # While at that, we remove Makefiles if we were started for recursive
3130 # configuration, so that the top-level Makefile reconfigures them,
3131 # like we used to do when configure itself was recursive.
3133 # Loop over modules. $extrasub must be used with care, limiting as
3134 # much as possible the usage of range addresses. That's because autoconf
3135 # splits the sed script to overcome limits in the number of commands,
3136 # and relying on carefully-timed sed passes may turn out to be very hard
3137 # to maintain later. In this particular case, you just have to be careful
3138 # not to nest @if/@endif pairs, because configure will not warn you at all.
3140 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3141 if test "${enable_bootstrap+set}" = set; then
3142 enableval="$enable_bootstrap"
3145 enable_bootstrap=default
3149 # Issue errors and warnings for invalid/strange bootstrap combinations.
3150 case "$configdirs" in
3151 *gcc*) have_compiler=yes ;;
3152 *) have_compiler=no ;;
3155 case "$have_compiler:$host:$target:$enable_bootstrap" in
3158 # Default behavior. (We'll) enable bootstrap if we have a compiler
3159 # and we are in a native configuration.
3160 yes:$build:$build:default)
3161 # This will become 'yes'
3162 enable_bootstrap=no ;;
3165 enable_bootstrap=no ;;
3167 # We have a compiler and we are in a native configuration, bootstrap is ok
3168 yes:$build:$build:yes | yes:$build:$build:lean)
3171 # Other configurations, but we have a compiler. Assume the user knows
3173 yes:*:*:yes | yes:*:*:lean)
3174 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3177 # No compiler: if they passed --enable-bootstrap explicitly, fail
3178 no:*:*:yes | no:*:*:lean)
3179 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3181 # Fail if wrong command line
3183 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3187 # Adjust the toplevel makefile according to whether bootstrap was selected.
3188 case "$enable_bootstrap" in
3191 default_target=bootstrap
3192 bootstrap_suffix=bootstrap ;;
3195 default_target=bootstrap
3196 bootstrap_suffix=bootstrap ;;
3199 bootstrap_suffix=no-bootstrap ;;
3204 for module in ${build_configdirs} ; do
3205 if test -z "${no_recursion}" \
3206 && test -f ${build_subdir}/${module}/Makefile; then
3207 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3208 rm -f ${build_subdir}/${module}/Makefile
3211 /^@if build-$module\$/d
3212 /^@endif build-$module\$/d
3213 /^@if build-$module-$bootstrap_suffix\$/d
3214 /^@endif build-$module-$bootstrap_suffix\$/d"
3216 for module in ${configdirs} ; do
3217 if test -z "${no_recursion}" \
3218 && test -f ${module}/Makefile; then
3219 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3220 rm -f ${module}/Makefile
3224 /^@endif $module\$/d
3225 /^@if $module-$bootstrap_suffix\$/d
3226 /^@endif $module-$bootstrap_suffix\$/d"
3228 for module in ${target_configdirs} ; do
3229 if test -z "${no_recursion}" \
3230 && test -f ${target_subdir}/${module}/Makefile; then
3231 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3232 rm -f ${target_subdir}/${module}/Makefile
3235 /^@if target-$module\$/d
3236 /^@endif target-$module\$/d
3237 /^@if target-$module-$bootstrap_suffix\$/d
3238 /^@endif target-$module-$bootstrap_suffix\$/d"
3242 /^@if /,/^@endif /d"
3244 # Create the serialization dependencies. This uses a temporary file.
3246 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3247 if test "${enable_serial_configure+set}" = set; then
3248 enableval="$enable_serial_configure"
3253 case ${enable_serial_configure} in
3255 enable_serial_build_configure=yes
3256 enable_serial_host_configure=yes
3257 enable_serial_target_configure=yes
3261 # These force 'configure's to be done one at a time, to avoid problems
3262 # with contention over a shared config.cache.
3264 echo '# serdep.tmp' > serdep.tmp
3266 test "x${enable_serial_build_configure}" = xyes &&
3267 for item in ${build_configdirs} ; do
3270 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3275 test "x${enable_serial_host_configure}" = xyes &&
3276 for item in ${configdirs} ; do
3279 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3284 test "x${enable_serial_target_configure}" = xyes &&
3285 for item in ${target_configdirs} ; do
3288 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3292 serialization_dependencies=serdep.tmp
3295 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3296 # target and nonopt. These are the ones we might not want to pass
3297 # down to subconfigures. Also strip program-prefix, program-suffix,
3298 # and program-transform-name, so that we can pass down a consistent
3299 # program-transform-name. If autoconf has put single quotes around
3300 # any of these arguments (because they contain shell metacharacters)
3301 # then this will fail; in practice this only happens for
3302 # --program-transform-name, so be sure to override --program-transform-name
3303 # at the end of the argument list.
3304 # These will be expanded by make, so quote '$'.
3305 cat <<\EOF_SED > conftestsed
3307 s/ --c[a-z-]*[= ][^ ]*//g
3308 s/ --sr[a-z-]*[= ][^ ]*//g
3309 s/ --ho[a-z-]*[= ][^ ]*//g
3310 s/ --bu[a-z-]*[= ][^ ]*//g
3311 s/ --t[a-z-]*[= ][^ ]*//g
3312 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3313 s/ -cache-file[= ][^ ]*//g
3314 s/ -srcdir[= ][^ ]*//g
3315 s/ -host[= ][^ ]*//g
3316 s/ -build[= ][^ ]*//g
3317 s/ -target[= ][^ ]*//g
3318 s/ -program-prefix[= ][^ ]*//g
3319 s/ -program-suffix[= ][^ ]*//g
3320 s/ -program-transform-name[= ][^ ]*//g
3325 sed -f conftestsed <<EOF_SED > conftestsed.out
3326 ${ac_configure_args}
3328 baseargs=`cat conftestsed.out`
3329 rm -f conftestsed conftestsed.out
3331 # Add in --program-transform-name, after --program-prefix and
3332 # --program-suffix have been applied to it. Autoconf has already
3333 # doubled dollar signs and backslashes in program_transform_name; we want
3334 # the backslashes un-doubled, and then the entire thing wrapped in single
3335 # quotes, because this will be expanded first by make and then by the shell.
3336 # Also, because we want to override the logic in subdir configure scripts to
3337 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3338 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3339 ${program_transform_name}
3341 gcc_transform_name=`cat conftestsed.out`
3342 rm -f conftestsed.out
3343 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3345 # For the build-side libraries, we just need to pretend we're native,
3346 # and not use the same cache file. Multilibs are neither needed nor
3348 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3350 # For host modules, accept cache file option, or specification as blank.
3351 case "${cache_file}" in
3353 cache_file_option="" ;;
3354 /* | [A-Za-z]:[\\/]* ) # absolute path
3355 cache_file_option="--cache-file=${cache_file}" ;;
3357 cache_file_option="--cache-file=../${cache_file}" ;;
3360 # Host dirs don't like to share a cache file either, horribly enough.
3361 # This seems to be due to autoconf 2.5x stupidity.
3362 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3364 target_configargs=${baseargs}
3366 # Passing a --with-cross-host argument lets the target libraries know
3367 # whether they are being built with a cross-compiler or being built
3368 # native. However, it would be better to use other mechanisms to make the
3369 # sorts of decisions they want to make on this basis. Please consider
3370 # this option to be deprecated. FIXME.
3371 if test x${is_cross_compiler} = xyes ; then
3372 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3375 # Default to --enable-multilib.
3376 if test x${enable_multilib} = x ; then
3377 target_configargs="--enable-multilib ${target_configargs}"
3380 # Pass --with-newlib if appropriate. Note that target_configdirs has
3381 # changed from the earlier setting of with_newlib.
3382 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3383 target_configargs="--with-newlib ${target_configargs}"
3386 # Different target subdirs use different values of certain variables
3387 # (notably CXX). Worse, multilibs use *lots* of different values.
3388 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3389 # it doesn't automatically accept command-line overrides of them.
3390 # This means it's not safe for target subdirs to share a cache file,
3391 # which is disgusting, but there you have it. Hopefully this can be
3392 # fixed in future. It's still worthwhile to use a cache file for each
3393 # directory. I think.
3395 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3396 # We need to pass --target, as newer autoconf's requires consistency
3397 # for target_alias and gcc doesn't manage it consistently.
3398 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3401 case " $target_configdirs " in
3403 case " $target_configargs " in
3404 *" --with-newlib "*)
3407 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' ;;
3410 # If we're not building GCC, don't discard standard headers.
3411 if test -d ${srcdir}/gcc; then
3412 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3414 if test "${build}" != "${host}"; then
3415 # On Canadian crosses, CC_FOR_TARGET will have already been set
3416 # by `configure', so we won't have an opportunity to add -Bgcc/
3417 # to it. This is right: we don't want to search that directory
3418 # for binaries, but we want the header files in there, so add
3420 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3422 # Someone might think of using the pre-installed headers on
3423 # Canadian crosses, in case the installed compiler is not fully
3424 # compatible with the compiler being built. In this case, it
3425 # would be better to flag an error than risking having
3426 # incompatible object files being constructed. We can't
3427 # guarantee that an error will be flagged, but let's hope the
3428 # compiler will do it, when presented with incompatible header
3433 case "${target}-${is_cross_compiler}" in
3434 i[3456789]86-*-linux*-no)
3435 # Here host == target, so we don't need to build gcc,
3436 # so we don't want to discard standard headers.
3437 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3440 # If we're building newlib, use its generic headers last, but search
3441 # for any libc-related directories first (so make it the last -B
3443 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3451 # Allow the user to override the flags for
3452 # our build compiler if desired.
3453 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3455 # On Canadian crosses, we'll be searching the right directories for
3456 # the previously-installed cross compiler, so don't bother to add
3457 # flags for directories within the install tree of the compiler
3458 # being built; programs in there won't even run.
3459 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3460 # Search for pre-installed headers if nothing else fits.
3461 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3464 if test "x${use_gnu_ld}" = x &&
3465 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3466 # Arrange for us to find uninstalled linker scripts.
3467 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3470 # Makefile fragments.
3471 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3473 eval fragval=\$$frag
3474 if test $fragval != /dev/null; then
3475 eval $frag=${srcdir}/$fragval
3483 # Miscellanea: directories, flags, etc.
3491 # Build module lists & subconfigure args.
3495 # Host module lists & subconfigure args.
3499 # Target module lists & subconfigure args.
3509 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3510 ncn_target_tool_prefix=
3511 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3513 for ncn_progname in ar; do
3514 if test -n "$ncn_tool_prefix"; then
3515 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3516 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3517 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3518 echo "configure:3519: checking for $ac_word" >&5
3519 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3520 echo $ac_n "(cached) $ac_c" 1>&6
3522 if test -n "$AR"; then
3523 ac_cv_prog_AR="$AR" # Let the user override the test.
3525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3527 for ac_dir in $ac_dummy; do
3528 test -z "$ac_dir" && ac_dir=.
3529 if test -f $ac_dir/$ac_word; then
3530 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3538 if test -n "$AR"; then
3539 echo "$ac_t""$AR" 1>&6
3541 echo "$ac_t""no" 1>&6
3545 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3547 set dummy ${ncn_progname}; ac_word=$2
3548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3549 echo "configure:3550: checking for $ac_word" >&5
3550 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3553 if test -n "$AR"; then
3554 ac_cv_prog_AR="$AR" # Let the user override the test.
3556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3558 for ac_dir in $ac_dummy; do
3559 test -z "$ac_dir" && ac_dir=.
3560 if test -f $ac_dir/$ac_word; then
3561 ac_cv_prog_AR="${ncn_progname}"
3569 if test -n "$AR"; then
3570 echo "$ac_t""$AR" 1>&6
3572 echo "$ac_t""no" 1>&6
3576 test -n "$ac_cv_prog_AR" && break
3579 if test -z "$ac_cv_prog_AR" ; then
3581 if test $build = $host ; then
3584 AR="${ncn_tool_prefix}$2"
3588 for ncn_progname in as; do
3589 if test -n "$ncn_tool_prefix"; then
3590 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3591 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3592 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3593 echo "configure:3594: checking for $ac_word" >&5
3594 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3597 if test -n "$AS"; then
3598 ac_cv_prog_AS="$AS" # Let the user override the test.
3600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3602 for ac_dir in $ac_dummy; do
3603 test -z "$ac_dir" && ac_dir=.
3604 if test -f $ac_dir/$ac_word; then
3605 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3613 if test -n "$AS"; then
3614 echo "$ac_t""$AS" 1>&6
3616 echo "$ac_t""no" 1>&6
3620 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3622 set dummy ${ncn_progname}; ac_word=$2
3623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3624 echo "configure:3625: checking for $ac_word" >&5
3625 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3626 echo $ac_n "(cached) $ac_c" 1>&6
3628 if test -n "$AS"; then
3629 ac_cv_prog_AS="$AS" # Let the user override the test.
3631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3633 for ac_dir in $ac_dummy; do
3634 test -z "$ac_dir" && ac_dir=.
3635 if test -f $ac_dir/$ac_word; then
3636 ac_cv_prog_AS="${ncn_progname}"
3644 if test -n "$AS"; then
3645 echo "$ac_t""$AS" 1>&6
3647 echo "$ac_t""no" 1>&6
3651 test -n "$ac_cv_prog_AS" && break
3654 if test -z "$ac_cv_prog_AS" ; then
3656 if test $build = $host ; then
3659 AS="${ncn_tool_prefix}$2"
3663 for ncn_progname in dlltool; do
3664 if test -n "$ncn_tool_prefix"; then
3665 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3666 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3668 echo "configure:3669: checking for $ac_word" >&5
3669 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3672 if test -n "$DLLTOOL"; then
3673 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3677 for ac_dir in $ac_dummy; do
3678 test -z "$ac_dir" && ac_dir=.
3679 if test -f $ac_dir/$ac_word; then
3680 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3687 DLLTOOL="$ac_cv_prog_DLLTOOL"
3688 if test -n "$DLLTOOL"; then
3689 echo "$ac_t""$DLLTOOL" 1>&6
3691 echo "$ac_t""no" 1>&6
3695 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3697 set dummy ${ncn_progname}; ac_word=$2
3698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3699 echo "configure:3700: checking for $ac_word" >&5
3700 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3703 if test -n "$DLLTOOL"; then
3704 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3708 for ac_dir in $ac_dummy; do
3709 test -z "$ac_dir" && ac_dir=.
3710 if test -f $ac_dir/$ac_word; then
3711 ac_cv_prog_DLLTOOL="${ncn_progname}"
3718 DLLTOOL="$ac_cv_prog_DLLTOOL"
3719 if test -n "$DLLTOOL"; then
3720 echo "$ac_t""$DLLTOOL" 1>&6
3722 echo "$ac_t""no" 1>&6
3726 test -n "$ac_cv_prog_DLLTOOL" && break
3729 if test -z "$ac_cv_prog_DLLTOOL" ; then
3731 if test $build = $host ; then
3734 DLLTOOL="${ncn_tool_prefix}$2"
3738 for ncn_progname in ld; do
3739 if test -n "$ncn_tool_prefix"; then
3740 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3741 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3743 echo "configure:3744: checking for $ac_word" >&5
3744 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3747 if test -n "$LD"; then
3748 ac_cv_prog_LD="$LD" # Let the user override the test.
3750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3752 for ac_dir in $ac_dummy; do
3753 test -z "$ac_dir" && ac_dir=.
3754 if test -f $ac_dir/$ac_word; then
3755 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3763 if test -n "$LD"; then
3764 echo "$ac_t""$LD" 1>&6
3766 echo "$ac_t""no" 1>&6