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 \
915 # these tools are built using the target libraries, and are intended to
916 # run only in the target environment
918 # note: any program that *uses* libraries that are in the "target_libraries"
919 # list belongs in this list. those programs are also very likely
920 # candidates for the "native_only" list which follows
922 target_tools
="target-examples target-groff target-gperf target-rda"
924 ################################################################################
926 ## All tools belong in one of the four categories, and are assigned above
927 ## We assign ${configdirs} this way to remove all embedded newlines. This
928 ## is important because configure will choke if they ever get through.
929 ## ${configdirs} is directories we build using the host tools.
930 ## ${target_configdirs} is directories we build using the target tools.
931 configdirs
=`echo ${host_libs} ${host_tools}`
932 target_configdirs
=`echo ${target_libraries} ${target_tools}`
933 build_configdirs
=`echo ${build_libs} ${build_tools}`
935 ################################################################################
937 srcname
="gnu development package"
939 # This gets set non-empty for some net releases of packages.
942 # Define is_cross_compiler to save on calls to 'test'.
944 if test x
"${host}" = x
"${target}" ; then
947 is_cross_compiler
=yes
950 # Find the build and target subdir names.
951 case ${build_alias} in
952 "") build_noncanonical
=${build} ;;
953 *) build_noncanonical
=${build_alias} ;;
956 case ${host_alias} in
957 "") host_noncanonical
=${build_noncanonical} ;;
958 *) host_noncanonical
=${host_alias} ;;
961 case ${target_alias} in
962 "") target_noncanonical
=${host_noncanonical} ;;
963 *) target_noncanonical
=${target_alias} ;;
966 # Prefix 'build-' so this never conflicts with target_subdir.
967 build_subdir
="build-${build_noncanonical}"
968 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
969 if ( test $srcdir = .
&& test -d gcc
) \
970 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
971 host_subdir
="host-${host_noncanonical}"
976 target_subdir
=${target_noncanonical}
979 # Skipdirs are removed silently.
981 # Noconfigdirs are removed loudly.
985 # Make sure we don't let GNU ld be added if we didn't want it.
986 if test x
$with_gnu_ld = xno
; then
988 noconfigdirs
="$noconfigdirs ld"
992 # Make sure we don't let GNU as be added if we didn't want it.
993 if test x
$with_gnu_as = xno
; then
995 noconfigdirs
="$noconfigdirs gas"
998 # some tools are so dependent upon X11 that if we're not building with X,
999 # it's not even worth trying to configure, much less build, that tool.
1002 yes |
"") ;; # the default value for this tree is that X11 is available
1004 skipdirs
="${skipdirs} tk itcl libgui"
1005 # We won't be able to build gdbtk without X.
1008 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1011 # Some tools are only suitable for building in a "native" situation.
1012 # Remove these if host!=target.
1013 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"
1015 # Similarly, some are only suitable for cross toolchains.
1016 # Remove these if host=target.
1017 cross_only
="target-libgloss target-newlib target-opcodes"
1019 case $is_cross_compiler in
1020 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
1021 yes) skipdirs
="${skipdirs} ${native_only}" ;;
1024 # If both --with-headers and --with-libs are specified, default to
1026 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
1027 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
1028 if test x
"${with_newlib}" = x
; then
1033 # Recognize --with-newlib/--without-newlib.
1034 case ${with_newlib} in
1035 no
) skipdirs
="${skipdirs} target-newlib" ;;
1036 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1039 # Configure extra directories which are host specific
1043 configdirs
="$configdirs libtermcap" ;;
1046 # A target can indicate whether a language isn't supported for some reason.
1047 # Only spaces may be used in this macro; not newlines or tabs.
1048 unsupported_languages
=
1050 # Remove more programs from consideration, based on the host or
1051 # target this usually means that a port of the program doesn't
1056 noconfigdirs
="$noconfigdirs byacc"
1058 i
[3456789]86-*-vsta)
1059 noconfigdirs
="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1061 i
[3456789]86-*-go32* | i
[3456789]86-*-msdosdjgpp*)
1062 noconfigdirs
="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1064 i
[3456789]86-*-mingw32*)
1065 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1066 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1068 i
[3456789]86-*-beos*)
1069 noconfigdirs
="$noconfigdirs tk itcl libgui gdb"
1072 noconfigdirs
="$noconfigdirs autoconf automake send-pr rcs guile perl"
1075 noconfigdirs
="$noconfigdirs rcs"
1078 noconfigdirs
="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1081 noconfigdirs
="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1086 # Check whether --enable-libada or --disable-libada was given.
1087 if test "${enable_libada+set}" = set; then
1088 enableval
="$enable_libada"
1089 ENABLE_LIBADA
=$enableval
1094 if test "${ENABLE_LIBADA}" != "yes" ; then
1095 noconfigdirs
="$noconfigdirs target-libada"
1096 noconfigdirs
="$noconfigdirs gnattools"
1099 # Check whether --enable-libssp or --disable-libssp was given.
1100 if test "${enable_libssp+set}" = set; then
1101 enableval
="$enable_libssp"
1102 ENABLE_LIBSSP
=$enableval
1107 if test "${ENABLE_LIBSSP}" != "yes" ; then
1108 noconfigdirs
="$noconfigdirs target-libssp"
1111 # Save it here so that, even in case of --enable-libgcj, if the Java
1112 # front-end isn't enabled, we still get libgcj disabled.
1113 libgcj_saved
=$libgcj
1114 case $enable_libgcj in
1116 # If we reset it here, it won't get added to noconfigdirs in the
1117 # target-specific build rules, so it will be forcibly enabled
1118 # (unless the Java language itself isn't enabled).
1122 # Make sure we get it printed in the list of not supported target libs.
1123 noconfigdirs
="$noconfigdirs ${libgcj}"
1128 # Allow --disable-libmudflap to exclude target-libmudflap
1129 case $enable_libmudflap in
1133 noconfigdirs
="$noconfigdirs target-libmudflap"
1137 *-*-linux*-gnu |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1138 # Enable libmudflap by default in GNU and friends.
1141 # Enable libmudflap by default in FreeBSD.
1144 # Disable it by default everywhere else.
1145 noconfigdirs
="$noconfigdirs target-libmudflap"
1150 # Allow --disable-libgomp to exclude target-libgomp
1151 case $enable_libgomp in
1155 noconfigdirs
="$noconfigdirs target-libgomp"
1158 # Enable libgomp by default on hosted POSIX systems.
1160 *-*-linux*-gnu |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1162 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd*)
1164 *-*-solaris2* |
*-*-sysv4* |
*-*-irix* |
*-*-osf* |
*-*-hpux*)
1169 noconfigdirs
="$noconfigdirs target-libgomp"
1177 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1180 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1181 noconfigdirs
="$noconfigdirs sim target-rda"
1184 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
1185 noconfigdirs
="$noconfigdirs sim target-rda"
1186 noconfigdirs
="$noconfigdirs ${libgcj}"
1188 *-*-freebsd[12] |
*-*-freebsd[12].
* |
*-*-freebsd*aout
*)
1189 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1192 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1193 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
1194 && test -f /usr
/local
/include
/gmp.h
; then
1198 # Skip some stuff that's unsupported on some FreeBSD configurations.
1203 noconfigdirs
="$noconfigdirs ${libgcj}"
1208 # Remove unsupported stuff on all kaOS configurations.
1209 skipdirs
="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1210 skipdirs
="$skipdirs target-libobjc target-examples target-groff target-gperf"
1211 skipdirs
="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1212 noconfigdirs
="$noconfigdirs target-libgloss"
1215 # Skip some stuff on all NetBSD configurations.
1216 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss"
1218 # Skip some stuff that's unsupported on some NetBSD configurations.
1220 i
*86-*-netbsdelf*) ;;
1221 arm
*-*-netbsdelf*) ;;
1223 noconfigdirs
="$noconfigdirs ${libgcj}"
1228 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1231 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1233 # The tpf target doesn't support gdb yet.
1235 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1238 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1241 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1244 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1247 # ld works, but does not support shared libraries.
1248 # newlib is not 64 bit ready. I'm not sure about fileutils.
1249 # gas doesn't generate exception information.
1250 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1253 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1256 # newlib is not 64 bit ready
1257 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1260 # newlib is not 64 bit ready
1261 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1264 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1267 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1269 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
1270 noconfigdirs
="$noconfigdirs ${libgcj}"
1271 noconfigdirs
="$noconfigdirs target-examples"
1272 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
1273 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
1274 noconfigdirs
="$noconfigdirs expect dejagnu"
1275 # the C++ libraries don't build on top of CE's C libraries
1276 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1277 noconfigdirs
="$noconfigdirs target-newlib"
1279 *-*-cygwin*) ;; # keep gdb and readline
1280 *) noconfigdirs
="$noconfigdirs gdb readline"
1285 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1289 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
1290 noconfigdirs
="$noconfigdirs ${libgcj}"
1292 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf* | arm
*-*-eabi* )
1293 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1296 noconfigdirs
="$noconfigdirs ${libgcj} target-libiberty"
1299 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1302 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1305 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1308 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1311 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1314 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1317 noconfigdirs
="$noconfigdirs target-libgloss gdb"
1318 if x
${is_cross_compiler} != xno
; then
1319 target_configdirs
="${target_configdirs} target-bsp target-cygmon"
1322 c4x-
*-* | tic4x-
*-*)
1323 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1325 c54x
*-*-* | tic54x-
*-*)
1326 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1328 cris-
*-* | crisv32-
*-*)
1329 unsupported_languages
="$unsupported_languages java"
1332 unsupported_languages
="$unsupported_languages fortran"
1333 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc";;
1335 unsupported_languages
="$unsupported_languages fortran"
1336 noconfigdirs
="$noconfigdirs target-boehm-gc";;
1338 noconfigdirs
="$noconfigdirs target-newlib target-libgloss";;
1340 unsupported_languages
="$unsupported_languages fortran"
1341 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1345 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1348 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1351 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1354 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1357 noconfigdirs
="$noconfigdirs ${libgcj}"
1360 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1363 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1365 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
1367 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
1368 # In this case, it's because the hppa64-linux target is for
1369 # the kernel only at this point and has no libc, and thus no
1370 # headers, crt*.o, etc., all of which are needed by these.
1371 noconfigdirs
="$noconfigdirs target-zlib"
1373 parisc
*-*-linux* | hppa
*-*-linux*)
1377 hppa
*-*-openbsd* | \
1379 noconfigdirs
="$noconfigdirs ${libgcj}"
1382 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1383 # build on HP-UX 10.20.
1384 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
1387 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1390 # No gdb support yet.
1391 noconfigdirs
="$noconfigdirs readline mmalloc libgui itcl gdb"
1394 # No gdb or ld support yet.
1395 noconfigdirs
="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1399 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
1400 noconfigdirs
="$noconfigdirs ${libgcj}"
1402 i
[3456789]86-*-linux*)
1403 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1404 # not build java stuff by default.
1407 noconfigdirs
="$noconfigdirs ${libgcj}";;
1410 # This section makes it possible to build newlib natively on linux.
1411 # If we are using a cross compiler then don't configure newlib.
1412 if test x
${is_cross_compiler} != xno
; then
1413 noconfigdirs
="$noconfigdirs target-newlib"
1415 noconfigdirs
="$noconfigdirs target-libgloss"
1416 # If we are not using a cross compiler, do configure newlib.
1417 # Note however, that newlib will only be configured in this situation
1418 # if the --with-newlib option has been given, because otherwise
1419 # 'target-newlib' will appear in skipdirs.
1421 i
[3456789]86-*-mingw32*)
1422 target_configdirs
="$target_configdirs target-mingw"
1423 noconfigdirs
="$noconfigdirs expect target-libgloss ${libgcj}"
1425 # Can't build gdb for mingw32 if not native.
1427 i
[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1428 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1433 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
1434 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1435 # always build newlib if winsup directory is present.
1436 if test -d "$srcdir/winsup"; then
1437 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1438 elif test -d "$srcdir/newlib"; then
1439 echo "Warning: winsup is missing so newlib can't be built."
1442 # Can't build gdb for Cygwin if not native.
1444 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1445 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1449 i
[3456789]86-moss-msdos | i
[3456789]86-*-moss* | \
1450 i
[3456789]86-*-uwin* | i
[3456789]86-*-interix* )
1453 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1455 i
[3456789]86-*-sco3.2v5
*)
1456 # The linker does not yet know about weak symbols in COFF,
1457 # and is not configured to handle mixed ELF and COFF.
1458 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1460 i
[3456789]86-*-sco*)
1461 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1463 i
[3456789]86-*-solaris2*)
1464 noconfigdirs
="$noconfigdirs target-libgloss"
1466 i
[3456789]86-*-sysv4*)
1467 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1469 i
[3456789]86-*-beos*)
1470 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1473 noconfigdirs
="$noconfigdirs ${libgcj}"
1475 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
1476 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1479 noconfigdirs
="$noconfigdirs ${libgcj}"
1482 noconfigdirs
="$noconfigdirs ${libgcj}"
1485 # The EPOC C++ environment does not support exceptions or rtti,
1486 # and so building libstdc++-v3 tends not to always work.
1487 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1490 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1491 unsupported_languages
="$unsupported_languages fortran java"
1494 noconfigdirs
="$noconfigdirs ${libgcj}"
1497 noconfigdirs
="$noconfigdirs ${libgcj}"
1500 noconfigdirs
="$noconfigdirs sim"
1503 # copied from rs6000-*-* entry
1504 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1506 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
1507 target_configdirs
="$target_configdirs target-winsup"
1508 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1509 # always build newlib.
1510 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1512 # This is temporary until we can link against shared libraries
1513 powerpcle-
*-solaris*)
1514 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1517 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1520 noconfigdirs
="$noconfigdirs ${libgcj}"
1522 powerpc-
*-eabi* | powerpcle-
*-eabi* | powerpc-
*-rtems* )
1525 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
1528 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1531 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1534 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1537 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1540 # Linking libjava exceeds command-line length limits on at least
1541 # IRIX 6.2, but not on IRIX 6.5.
1542 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1543 # <oldham@codesourcery.com>
1544 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1547 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1550 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1553 noconfigdirs
="$noconfigdirs gprof ${libgcj}" # same as generic mips
1556 noconfigdirs
="$noconfigdirs target-newlib ${libgcj}"
1559 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1562 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1565 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1569 i
[3456789]86-*-vsta) ;; # don't add gprof back in
1570 i
[3456789]86-*-go32*) ;; # don't add gprof back in
1571 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1572 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1574 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1577 noconfigdirs
="$noconfigdirs ${libgcj}"
1580 noconfigdirs
="$noconfigdirs ${libgcj}"
1583 noconfigdirs
="$noconfigdirs ${libgcj}"
1586 noconfigdirs
="$noconfigdirs ${libgcj}"
1587 if test x
${is_cross_compiler} != xno
; then
1588 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1593 sparc-
*-solaris2.
[0-6] | sparc-
*-solaris2.
[0-6].
*)
1594 noconfigdirs
="$noconfigdirs ${libgcj}"
1596 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
1599 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1602 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1605 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1608 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1611 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1614 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1617 noconfigdirs
="$noconfigdirs ${libgcj}"
1620 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1622 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1623 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1626 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1629 noconfigdirs
="$noconfigdirs ${libgcj}"
1633 # If we aren't building newlib, then don't build libgloss, since libgloss
1634 # depends upon some newlib header files.
1635 case "${noconfigdirs}" in
1636 *target-libgloss
*) ;;
1637 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
1640 # Work in distributions that contain no compiler tools, like Autoconf.
1642 host_makefile_frag
=/dev
/null
1643 if test -d ${srcdir}/config
; then
1646 # Avoid "too much defining" errors from HPUX compiler.
1647 tentative_cc
="cc -Wp,-H256000"
1648 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1649 # If it's HP/UX ar, this should be harmless.
1653 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1656 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1657 # chokes on bfd, the compiler won't let you assign integers to enums, and
1658 # other problems. Defining CC to gcc is a questionable way to say "don't use
1659 # the apollo compiler" (the preferred version of GCC could be called cc,
1660 # or whatever), but I'm not sure leaving CC as cc is any better...
1661 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1662 # Used to have BISON=yacc.
1666 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1669 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1670 tentative_cc
="cc -Xa"
1671 host_makefile_frag
="config/mh-cxux"
1673 m88k-motorola-sysv
*)
1676 tentative_cc
="cc -Wf,-XNg1000"
1677 host_makefile_frag
="config/mh-decstation"
1680 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1681 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
1682 host_makefile_frag
="config/mh-necv4"
1685 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1686 # environment. Also bump switch table size so that cp-parse will
1687 # compile. Bump string length limit so linker builds.
1688 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1691 host_makefile_frag
="config/mh-sysv4"
1694 # This is for a MIPS running RISC/os 4.52C.
1696 # This is needed for GDB, but needs to be in the top-level make because
1697 # if a library is compiled with the bsd headers and gets linked with the
1698 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1699 # a different size).
1700 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1701 # known except to select the sysv environment. Could we use /proc instead?
1702 # These "sysv environments" and "bsd environments" often end up being a pain.
1704 # This is not part of CFLAGS because perhaps not all C compilers have this
1706 tentative_cc
="cc -systype sysv"
1711 i
[3456789]86-*-sysv5*)
1712 host_makefile_frag
="config/mh-sysv5"
1714 i
[3456789]86-*-dgux*)
1715 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1716 host_makefile_frag
="config/mh-dgux386"
1718 i
[3456789]86-ncr-sysv4.3
*)
1719 # The MetaWare compiler will generate a copyright message unless you
1720 # turn it off by adding the -Hnocopyr flag.
1721 tentative_cc
="cc -Hnocopyr"
1723 i
[3456789]86-ncr-sysv4*)
1724 # for an NCR 3000 (i486/SVR4) system.
1725 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1726 # This compiler not only emits obnoxious copyright messages every time
1727 # you run it, but it chokes and dies on a whole bunch of GNU source
1728 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1729 tentative_cc
="/usr/ccs/ATT/cc"
1730 host_makefile_frag
="config/mh-ncr3000"
1732 i
[3456789]86-*-sco3.2v5
*)
1734 i
[3456789]86-*-sco*)
1735 # The native C compiler botches some simple uses of const. Unfortunately,
1736 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1737 tentative_cc
="cc -Dconst="
1738 host_makefile_frag
="config/mh-sco"
1740 i
[3456789]86-*-udk*)
1741 host_makefile_frag
="config/mh-sysv5"
1743 i
[3456789]86-*-solaris2*)
1744 host_makefile_frag
="config/mh-sysv4"
1746 i
[3456789]86-*-msdosdjgpp*)
1747 host_makefile_frag
="config/mh-djgpp"
1750 host_makefile_frag
="config/mh-cygwin"
1755 host_makefile_frag
="config/mh-interix"
1758 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1762 host_makefile_frag
="config/mh-solaris"
1765 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1766 # without overflowing the jump tables (-J says to use a 32 bit table)
1767 tentative_cc
="cc -J"
1770 tentative_cc
="cc -Wp,-H256000"
1773 tentative_cc
="cc -Wp,-H256000"
1776 # /bin/cc is less than useful for our purposes. Always use GCC
1777 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
1778 host_makefile_frag
="config/mh-lynxrs6k"
1781 host_makefile_frag
="config/mh-ppc-darwin"
1784 # /bin/cc is less than useful for our purposes. Always use GCC
1785 tentative_cc
="/bin/gcc"
1788 host_makefile_frag
="config/mh-sysv4"
1790 # This is placed last to prevent interfering with the cases above.
1792 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1793 host_makefile_frag
="config/mh-x86omitfp"
1798 # If we aren't going to be using gcc, see if we can extract a definition
1799 # of CC from the fragment.
1800 # Actually, use the 'pre-extracted' version above.
1801 if test -z "${CC}" && test "${build}" = "${host}" ; then
1802 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1804 for dir
in $PATH; do
1805 test -z "$dir" && dir
=.
1806 if test -f $dir/gcc
; then
1812 if test -z "${found}" && test -n "${tentative_cc}" ; then
1817 if test "${build}" != "${host}" ; then
1818 # If we are doing a Canadian Cross, in which the host and build systems
1819 # are not the same, we set reasonable default values for the tools.
1821 CC
=${CC-${host_alias}-gcc}
1822 CFLAGS
=${CFLAGS-"-g -O2"}
1823 CXX
=${CXX-${host_alias}-c++}
1824 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1825 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1826 BUILD_PREFIX
=${build_alias}-
1827 BUILD_PREFIX_1
=${build_alias}-
1830 # Set reasonable default values for some tools even if not Canadian.
1831 # Of course, these are different reasonable default values, originally
1832 # specified directly in the Makefile.
1833 # We don't export, so that autoconf can do its job.
1834 # Note that all these settings are above the fragment inclusion point
1835 # in Makefile.in, so can still be overridden by fragments.
1836 # This is all going to change when we autoconfiscate...
1838 CC_FOR_BUILD
="\$(CC)"
1840 BUILD_PREFIX_1
=loser-
1842 # Extract the first word of "gcc", so it can be a program name with args.
1843 set dummy gcc
; ac_word
=$2
1844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $ac_word" >&5
1846 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1849 if test -n "$CC"; then
1850 ac_cv_prog_CC
="$CC" # Let the user override the test.
1852 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
1865 if test -n "$CC"; then
1866 echo "$ac_t""$CC" 1>&6
1868 echo "$ac_t""no" 1>&6
1871 if test -z "$CC"; then
1872 # Extract the first word of "cc", so it can be a program name with args.
1873 set dummy cc
; ac_word
=$2
1874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1875 echo "configure:1876: checking for $ac_word" >&5
1876 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 if test -n "$CC"; then
1880 ac_cv_prog_CC
="$CC" # Let the user override the test.
1882 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1885 for ac_dir
in $ac_dummy; do
1886 test -z "$ac_dir" && ac_dir
=.
1887 if test -f $ac_dir/$ac_word; then
1888 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1889 ac_prog_rejected
=yes
1897 if test $ac_prog_rejected = yes; then
1898 # We found a bogon in the path, so make sure we never use it.
1899 set dummy
$ac_cv_prog_CC
1901 if test $# -gt 0; then
1902 # We chose a different compiler from the bogus one.
1903 # However, it has the same basename, so the bogon will be chosen
1904 # first if we set CC to just the basename; use the full file name.
1906 set dummy
"$ac_dir/$ac_word" "$@"
1914 if test -n "$CC"; then
1915 echo "$ac_t""$CC" 1>&6
1917 echo "$ac_t""no" 1>&6
1920 if test -z "$CC"; then
1921 case "`uname -s`" in
1923 # Extract the first word of "cl", so it can be a program name with args.
1924 set dummy cl
; ac_word
=$2
1925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1926 echo "configure:1927: checking for $ac_word" >&5
1927 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1930 if test -n "$CC"; then
1931 ac_cv_prog_CC
="$CC" # Let the user override the test.
1933 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1935 for ac_dir
in $ac_dummy; do
1936 test -z "$ac_dir" && ac_dir
=.
1937 if test -f $ac_dir/$ac_word; then
1946 if test -n "$CC"; then
1947 echo "$ac_t""$CC" 1>&6
1949 echo "$ac_t""no" 1>&6
1954 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1957 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1958 echo "configure:1959: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1961 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1962 ac_cpp
='$CPP $CPPFLAGS'
1963 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1964 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1965 cross_compiling
=$ac_cv_prog_cc_cross
1967 cat > conftest.
$ac_ext << EOF
1969 #line 1970 "configure"
1970 #include "confdefs.h"
1974 if { (eval echo configure
:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1975 ac_cv_prog_cc_works
=yes
1976 # If we can't run a trivial program, we are probably using a cross compiler.
1977 if (.
/conftest
; exit) 2>/dev
/null
; then
1978 ac_cv_prog_cc_cross
=no
1980 ac_cv_prog_cc_cross
=yes
1983 echo "configure: failed program was:" >&5
1984 cat conftest.
$ac_ext >&5
1985 ac_cv_prog_cc_works
=no
1989 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1990 ac_cpp
='$CPP $CPPFLAGS'
1991 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1992 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1993 cross_compiling
=$ac_cv_prog_cc_cross
1995 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1996 if test $ac_cv_prog_cc_works = no
; then
1997 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1999 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2000 echo "configure:2001: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2001 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2002 cross_compiling
=$ac_cv_prog_cc_cross
2004 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2005 echo "configure:2006: checking whether we are using GNU C" >&5
2006 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2007 echo $ac_n "(cached) $ac_c" 1>&6
2009 cat > conftest.c
<<EOF
2014 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2021 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2023 if test $ac_cv_prog_gcc = yes; then
2029 ac_test_CFLAGS
="${CFLAGS+set}"
2030 ac_save_CFLAGS
="$CFLAGS"
2032 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2033 echo "configure:2034: checking whether ${CC-cc} accepts -g" >&5
2034 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2037 echo 'void f(){}' > conftest.c
2038 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2047 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2048 if test "$ac_test_CFLAGS" = set; then
2049 CFLAGS
="$ac_save_CFLAGS"
2050 elif test $ac_cv_prog_cc_g = yes; then
2051 if test "$GCC" = yes; then
2057 if test "$GCC" = yes; then
2065 # We must set the default linker to the linker used by gcc for the correct
2066 # operation of libtool. If LD is not defined and we are using gcc, try to
2067 # set the LD default to the ld used by gcc.
2068 if test -z "$LD"; then
2069 if test "$GCC" = yes; then
2072 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2074 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
2076 case $gcc_prog_ld in
2077 # Accept absolute paths.
2078 [\\/]* |
[A-Za-z
]:[\\/]*)
2079 LD
="$gcc_prog_ld" ;;
2085 CFLAGS
=${CFLAGS-"-g"}
2086 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
2089 if test $host != $build; then
2090 ac_tool_prefix
=${host_alias}-
2097 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2098 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2100 echo "configure:2101: checking for $ac_word" >&5
2101 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2104 if test -n "$GNATBIND"; then
2105 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2107 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2109 for ac_dir
in $ac_dummy; do
2110 test -z "$ac_dir" && ac_dir
=.
2111 if test -f $ac_dir/$ac_word; then
2112 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2119 GNATBIND
="$ac_cv_prog_GNATBIND"
2120 if test -n "$GNATBIND"; then
2121 echo "$ac_t""$GNATBIND" 1>&6
2123 echo "$ac_t""no" 1>&6
2127 if test -z "$ac_cv_prog_GNATBIND"; then
2128 if test -n "$ac_tool_prefix"; then
2129 # Extract the first word of "gnatbind", so it can be a program name with args.
2130 set dummy gnatbind
; ac_word
=$2
2131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2132 echo "configure:2133: checking for $ac_word" >&5
2133 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2136 if test -n "$GNATBIND"; then
2137 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2139 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2141 for ac_dir
in $ac_dummy; do
2142 test -z "$ac_dir" && ac_dir
=.
2143 if test -f $ac_dir/$ac_word; then
2144 ac_cv_prog_GNATBIND
="gnatbind"
2149 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2152 GNATBIND
="$ac_cv_prog_GNATBIND"
2153 if test -n "$GNATBIND"; then
2154 echo "$ac_t""$GNATBIND" 1>&6
2156 echo "$ac_t""no" 1>&6
2164 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2165 echo "configure:2166: checking whether compiler driver understands Ada" >&5
2166 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2169 cat >conftest.adb
<<EOF
2170 procedure conftest is begin null; end conftest;
2172 acx_cv_cc_gcc_supports_ada
=no
2173 # There is a bug in old released versions of GCC which causes the
2174 # driver to exit successfully when the appropriate language module
2175 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2176 # Therefore we must check for the error message as well as an
2177 # unsuccessful exit.
2178 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2179 # given a .adb file, but produce no object file. So we must check
2180 # if an object file was really produced to guard against this.
2181 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2182 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
2183 acx_cv_cc_gcc_supports_ada
=yes
2188 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2190 if test x
$GNATBIND != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
2196 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2197 echo "configure:2198: checking how to compare bootstrapped objects" >&5
2198 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2199 echo $ac_n "(cached) $ac_c" 1>&6
2203 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2204 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
2205 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
2208 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
2211 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2212 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2215 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
2222 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2223 do_compare
="$gcc_cv_prog_cmp_skip"
2227 # Check for GMP and MPFR
2231 # Specify a location for mpfr
2232 # check for this first so it ends up on the link line before gmp.
2233 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2234 if test "${with_mpfr_dir+set}" = set; then
2235 withval
="$with_mpfr_dir"
2240 if test "x$with_mpfr_dir" != x
; then
2241 gmpinc
="-I$with_mpfr_dir"
2242 gmplibs
="$with_mpfr_dir/libmpfr.a"
2247 # Check whether --with-mpfr or --without-mpfr was given.
2248 if test "${with_mpfr+set}" = set; then
2249 withval
="$with_mpfr"
2254 if test "x$with_mpfr" != x
; then
2255 gmplibs
="-L$with_mpfr/lib $gmplibs"
2256 gmpinc
="-I$with_mpfr/include"
2259 # Specify a location for gmp
2260 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2261 if test "${with_gmp_dir+set}" = set; then
2262 withval
="$with_gmp_dir"
2267 if test "x$with_gmp_dir" != x
; then
2268 gmpinc
="$gmpinc -I$with_gmp_dir"
2269 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2270 gmplibs
="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2271 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2272 gmplibs
="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2274 # One of the later tests will catch the error if neither library is present.
2276 gmplibs
="$gmplibs -lgmp"
2279 # Check whether --with-gmp or --without-gmp was given.
2280 if test "${with_gmp+set}" = set; then
2286 if test "x$with_gmp" != x
; then
2287 gmplibs
="-L$with_gmp/lib $gmplibs"
2288 gmpinc
="-I$with_gmp/include $gmpinc"
2291 saved_CFLAGS
="$CFLAGS"
2292 CFLAGS
="$CFLAGS $gmpinc"
2293 # Check GMP actually works
2294 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2295 echo "configure:2296: checking for correct version of gmp.h" >&5
2296 cat > conftest.
$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2302 #if __GNU_MP_VERSION < 3
2308 if { (eval echo configure
:2309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2310 echo "$ac_t""yes" 1>&6
2312 echo "configure: failed program was:" >&5
2313 cat conftest.
$ac_ext >&5
2315 echo "$ac_t""no" 1>&6; have_gmp
=no
2319 if test x
"$have_gmp" = xyes
; then
2320 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2321 echo "configure:2322: checking for MPFR" >&5
2324 LIBS
="$LIBS $gmplibs"
2325 cat > conftest.
$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2331 mpfr_t n; mpfr_init(n);
2334 if { (eval echo configure
:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2336 echo "$ac_t""yes" 1>&6
2338 echo "configure: failed program was:" >&5
2339 cat conftest.
$ac_ext >&5
2341 echo "$ac_t""no" 1>&6; have_gmp
=no
2345 CFLAGS
="$saved_CFLAGS"
2348 # Flags needed for both GMP and/or MPFR
2352 # By default, C is the only stage 1 language.
2356 # Figure out what language subdirectories are present.
2357 # Look if the user specified --enable-languages="..."; if not, use
2358 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2360 # NB: embedded tabs in this IF block -- do not untabify
2361 if test -d ${srcdir}/gcc
; then
2362 if test x
"${enable_languages+set}" != xset
; then
2363 if test x
"${LANGUAGES+set}" = xset
; then
2364 enable_languages
="${LANGUAGES}"
2365 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
2367 enable_languages
=all
2370 if test x
"${enable_languages}" = x ||
2371 test x
"${enable_languages}" = xyes
;
2373 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
2377 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2379 # 'f95' is the old name for the 'fortran' language. We issue a warning
2380 # and make the substitution.
2381 case ,${enable_languages}, in
2383 echo configure.
in: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
2384 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2388 # First scan to see if an enabled language requires some other language.
2389 # We assume that a given config-lang.in will list all the language
2390 # front ends it requires, even if some are required indirectly.
2391 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2392 case ${lang_frag} in
2394 # The odd quoting in the next line works around
2395 # an apparent bug in bash 1.12 on linux.
2396 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2398 # From the config-lang.in, get $language, $lang_requires
2402 for other
in ${lang_requires} ; do
2403 case ,${enable_languages}, in
2407 echo " \`$other' language required by \`$language'; enabling" 1>&2
2408 enable_languages
="${enable_languages},${other}"
2416 new_enable_languages
=c
2417 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2418 potential_languages
=c
2420 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2421 case ${lang_frag} in
2423 # The odd quoting in the next line works around
2424 # an apparent bug in bash 1.12 on linux.
2425 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2427 # From the config-lang.in, get $language, $target_libs,
2428 # $lang_dirs, $boot_language, and $build_by_default
2436 potential_languages
="${potential_languages},${language}"
2437 # This is quite sensitive to the ordering of the case statement arms.
2438 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2440 echo "${lang_frag} doesn't set \$language." 1>&2
2444 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2447 *,${language},*:*:*:*)
2448 # Language was explicitly selected; include it.
2452 # 'all' was selected, but this is not a default language
2453 # so do not include it.
2457 # 'all' was selected and this is a default language; include it.
2465 # Disable languages that need GMP if it isn't available.
2466 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2467 *,${language},*:no
:yes)
2468 # Specifically requested language; tell them.
2469 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2477 # Disable a language that is unsupported by the target.
2478 case " $unsupported_languages " in
2484 case $add_this_lang in
2486 # Remove language-dependent dirs.
2487 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2490 new_enable_languages
="$new_enable_languages,$language"
2491 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
2492 case ${boot_language} in
2494 # Add to (comma-separated) list of stage 1 languages.
2495 stage1_languages
="${stage1_languages},${language}"
2504 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2505 if test "x$missing_languages" != x
; then
2506 { echo "configure: error:
2507 The following requested languages could not be built: ${missing_languages}
2508 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2511 if test "x$new_enable_languages" != "x$enable_languages"; then
2512 echo The following languages will be built
: ${new_enable_languages}
2514 enable_languages
="$new_enable_languages"
2515 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2518 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2519 # $build_configdirs and $target_configdirs.
2520 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2523 for dir
in .
$skipdirs $noconfigdirs ; do
2524 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2525 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2526 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2527 if test -r $srcdir/$dirname/configure
; then
2528 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2531 notsupp
="$notsupp $dir"
2535 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2536 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2537 if test -r $srcdir/$dirname/configure
; then
2538 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2541 notsupp
="$notsupp $dir"
2545 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2546 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2547 if test -r $srcdir/$dirname/configure
; then
2548 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2551 notsupp
="$notsupp $dir"
2557 # Sometimes the tools are distributed with libiberty but with no other
2558 # libraries. In that case, we don't want to build target-libiberty.
2559 if test -n "${target_configdirs}" ; then
2561 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2562 if test "$i" != "libiberty" ; then
2563 if test -r $srcdir/$i/configure
; then
2569 if test -z "${others}" ; then
2574 # Quietly strip out all directories which aren't configurable in this tree.
2575 # This relies on all configurable subdirectories being autoconfiscated, which
2577 build_configdirs_all
="$build_configdirs"
2579 for i
in ${build_configdirs_all} ; do
2580 j
=`echo $i | sed -e s/build-//g`
2581 if test -f ${srcdir}/$j/configure
; then
2582 build_configdirs
="${build_configdirs} $i"
2586 configdirs_all
="$configdirs"
2588 for i
in ${configdirs_all} ; do
2589 if test -f ${srcdir}/$i/configure
; then
2590 configdirs
="${configdirs} $i"
2594 target_configdirs_all
="$target_configdirs"
2596 for i
in ${target_configdirs_all} ; do
2597 j
=`echo $i | sed -e s/target-//g`
2598 if test -f ${srcdir}/$j/configure
; then
2599 target_configdirs
="${target_configdirs} $i"
2603 # Produce a warning message for the subdirs we can't configure.
2604 # This isn't especially interesting in the Cygnus tree, but in the individual
2605 # FSF releases, it's important to let people know when their machine isn't
2606 # supported by the one or two programs in a package.
2608 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2609 # If $appdirs is non-empty, at least one of those directories must still
2610 # be configured, or we error out. (E.g., if the gas release supports a
2611 # specified target in some subdirs but not the gas subdir, we shouldn't
2612 # pretend that all is well.)
2613 if test -n "$appdirs" ; then
2614 for dir
in $appdirs ; do
2615 if test -r $dir/Makefile.
in ; then
2616 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2620 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
2626 if test -n "$appdirs" ; then
2627 echo "*** This configuration is not supported by this package." 1>&2
2631 # Okay, some application will build, or we don't care to check. Still
2632 # notify of subdirs not getting built.
2633 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2634 echo " ${notsupp}" 1>&2
2635 echo " (Any other directories should still work fine.)" 1>&2
2645 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2646 if test "${with_build_sysroot+set}" = set; then
2647 withval
="$with_build_sysroot"
2648 if test x
"$withval" != x
; then
2649 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
2652 SYSROOT_CFLAGS_FOR_TARGET
=
2657 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2658 # the named directory are copied to $(tooldir)/sys-include.
2659 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
2660 if test x
${is_cross_compiler} = xno
; then
2661 echo 1>&2 '***' --with-headers is only supported when cross compiling
2664 if test x
"${with_headers}" != xyes
; then
2665 case "${exec_prefixoption}" in
2667 *) x
=${exec_prefix} ;;
2669 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2673 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2674 # the name directories are copied to $(tooldir)/lib. Multiple directories
2676 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2677 if test x
${is_cross_compiler} = xno
; then
2678 echo 1>&2 '***' --with-libs is only supported when cross compiling
2681 if test x
"${with_libs}" != xyes
; then
2682 # Copy the libraries in reverse order, so that files in the first named
2683 # library override files in subsequent libraries.
2684 case "${exec_prefixoption}" in
2686 *) x
=${exec_prefix} ;;
2688 for l
in ${with_libs}; do
2689 copy_dirs
="$l $x/${target_alias}/lib ${copy_dirs}"
2694 # Handle ${copy_dirs}
2695 set fnord
${copy_dirs}
2697 while test $# != 0 ; do
2698 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
2701 echo Copying
$1 to
$2
2703 # Use the install script to create the directory and all required
2704 # parent directories.
2705 if test -d $2 ; then
2709 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
2712 # Copy the directory, assuming we have tar.
2713 # FIXME: Should we use B in the second tar? Not all systems support it.
2714 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
2716 # It is the responsibility of the user to correctly adjust all
2717 # symlinks. If somebody can figure out how to handle them correctly
2718 # here, feel free to add the code.
2725 extra_arflags_for_target
=
2726 extra_nmflags_for_target
=
2727 extra_ranlibflags_for_target
=
2728 target_makefile_frag
=/dev
/null
2731 target_makefile_frag
="config/mt-netware"
2733 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
2734 target_makefile_frag
="config/mt-gnu"
2736 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
2737 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2738 # commands to handle both 32-bit and 64-bit objects. These flags are
2739 # harmless if we're using GNU nm or ar.
2740 extra_arflags_for_target
=" -X32_64"
2741 extra_nmflags_for_target
=" -B -X32_64"
2744 # ranlib from Darwin requires the -c flag to look at common symbols.
2745 extra_ranlibflags_for_target
=" -c"
2747 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
2748 target_makefile_frag
="config/mt-wince"
2752 alphaieee_frag
=/dev
/null
2755 # This just makes sure to use the -mieee option to build target libs.
2756 # This should probably be set individually by each library.
2757 alphaieee_frag
="config/mt-alphaieee"
2761 # If --enable-target-optspace always use -Os instead of -O2 to build
2762 # the target libraries, similarly if it is not specified, use -Os
2763 # on selected platforms.
2764 ospace_frag
=/dev
/null
2765 case "${enable_target_optspace}:${target}" in
2767 ospace_frag
="config/mt-ospace"
2770 ospace_frag
="config/mt-d30v"
2772 :m32r-
* |
:d10v-
* |
:fr30-
*)
2773 ospace_frag
="config/mt-ospace"
2778 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2782 # Set with_gnu_as and with_gnu_ld as appropriate.
2784 # This is done by determining whether or not the appropriate directory
2785 # is available, and by checking whether or not specific configurations
2786 # have requested that this magic not happen.
2788 # The command line options always override the explicit settings in
2789 # configure.in, and the settings in configure.in override this magic.
2791 # If the default for a toolchain is to use GNU as and ld, and you don't
2792 # want to do that, then you should use the --without-gnu-as and
2793 # --without-gnu-ld options for the configure script.
2795 if test x
${use_gnu_as} = x
&&
2796 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
2798 extra_host_args
="$extra_host_args --with-gnu-as"
2801 if test x
${use_gnu_ld} = x
&&
2802 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
2804 extra_host_args
="$extra_host_args --with-gnu-ld"
2807 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2808 # can detect this case.
2810 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
2812 extra_host_args
="$extra_host_args --with-newlib"
2815 # Default to using --with-stabs for certain targets.
2816 if test x
${with_stabs} = x
; then
2820 mips
*-*-* | alpha
*-*-osf*)
2822 extra_host_args
="${extra_host_args} --with-stabs"
2827 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2828 # them automatically.
2831 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2835 # Some systems (e.g., one of the i386-aix systems the gas testers are
2836 # using) don't handle "\$" correctly, so don't use it here.
2837 tooldir
='${exec_prefix}'/${target_alias}
2838 build_tooldir
=${tooldir}
2840 # Generate default definitions for YACC, M4, LEX and other programs that run
2841 # on the build machine. These are used if the Makefile can't locate these
2842 # programs in objdir.
2843 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2844 for ac_prog
in bison
2846 # Extract the first word of "$ac_prog", so it can be a program name with args.
2847 set dummy
$ac_prog; ac_word
=$2
2848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2849 echo "configure:2850: checking for $ac_word" >&5
2850 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2853 if test -n "$CONFIGURED_BISON"; then
2854 ac_cv_prog_CONFIGURED_BISON
="$CONFIGURED_BISON" # Let the user override the test.
2856 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2858 for ac_dir
in $ac_dummy; do
2859 test -z "$ac_dir" && ac_dir
=.
2860 if test -f $ac_dir/$ac_word; then
2861 ac_cv_prog_CONFIGURED_BISON
="$ac_prog"
2868 CONFIGURED_BISON
="$ac_cv_prog_CONFIGURED_BISON"
2869 if test -n "$CONFIGURED_BISON"; then
2870 echo "$ac_t""$CONFIGURED_BISON" 1>&6
2872 echo "$ac_t""no" 1>&6
2875 test -n "$CONFIGURED_BISON" && break
2877 test -n "$CONFIGURED_BISON" || CONFIGURED_BISON
="$MISSING bison"
2879 for ac_prog
in 'bison -y' byacc
yacc
2881 # Extract the first word of "$ac_prog", so it can be a program name with args.
2882 set dummy
$ac_prog; ac_word
=$2
2883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2884 echo "configure:2885: checking for $ac_word" >&5
2885 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2888 if test -n "$CONFIGURED_YACC"; then
2889 ac_cv_prog_CONFIGURED_YACC
="$CONFIGURED_YACC" # Let the user override the test.
2891 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2893 for ac_dir
in $ac_dummy; do
2894 test -z "$ac_dir" && ac_dir
=.
2895 if test -f $ac_dir/$ac_word; then
2896 ac_cv_prog_CONFIGURED_YACC
="$ac_prog"
2903 CONFIGURED_YACC
="$ac_cv_prog_CONFIGURED_YACC"
2904 if test -n "$CONFIGURED_YACC"; then
2905 echo "$ac_t""$CONFIGURED_YACC" 1>&6
2907 echo "$ac_t""no" 1>&6
2910 test -n "$CONFIGURED_YACC" && break
2912 test -n "$CONFIGURED_YACC" || CONFIGURED_YACC
="$MISSING bison -y"
2914 for ac_prog
in gm4 gnum4
m4
2916 # Extract the first word of "$ac_prog", so it can be a program name with args.
2917 set dummy
$ac_prog; ac_word
=$2
2918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2919 echo "configure:2920: checking for $ac_word" >&5
2920 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2923 if test -n "$CONFIGURED_M4"; then
2924 ac_cv_prog_CONFIGURED_M4
="$CONFIGURED_M4" # Let the user override the test.
2926 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2928 for ac_dir
in $ac_dummy; do
2929 test -z "$ac_dir" && ac_dir
=.
2930 if test -f $ac_dir/$ac_word; then
2931 ac_cv_prog_CONFIGURED_M4
="$ac_prog"
2938 CONFIGURED_M4
="$ac_cv_prog_CONFIGURED_M4"
2939 if test -n "$CONFIGURED_M4"; then
2940 echo "$ac_t""$CONFIGURED_M4" 1>&6
2942 echo "$ac_t""no" 1>&6
2945 test -n "$CONFIGURED_M4" && break
2947 test -n "$CONFIGURED_M4" || CONFIGURED_M4
="$MISSING m4"
2951 # Extract the first word of "$ac_prog", so it can be a program name with args.
2952 set dummy
$ac_prog; ac_word
=$2
2953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2954 echo "configure:2955: checking for $ac_word" >&5
2955 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2958 if test -n "$CONFIGURED_FLEX"; then
2959 ac_cv_prog_CONFIGURED_FLEX
="$CONFIGURED_FLEX" # Let the user override the test.
2961 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2963 for ac_dir
in $ac_dummy; do
2964 test -z "$ac_dir" && ac_dir
=.
2965 if test -f $ac_dir/$ac_word; then
2966 ac_cv_prog_CONFIGURED_FLEX
="$ac_prog"
2973 CONFIGURED_FLEX
="$ac_cv_prog_CONFIGURED_FLEX"
2974 if test -n "$CONFIGURED_FLEX"; then
2975 echo "$ac_t""$CONFIGURED_FLEX" 1>&6
2977 echo "$ac_t""no" 1>&6
2980 test -n "$CONFIGURED_FLEX" && break
2982 test -n "$CONFIGURED_FLEX" || CONFIGURED_FLEX
="$MISSING flex"
2984 for ac_prog
in flex
lex
2986 # Extract the first word of "$ac_prog", so it can be a program name with args.
2987 set dummy
$ac_prog; ac_word
=$2
2988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2989 echo "configure:2990: checking for $ac_word" >&5
2990 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" = set"; then
2991 echo $ac_n "(cached) $ac_c" 1>&6
2993 if test -n "$CONFIGURED_LEX"; then
2994 ac_cv_prog_CONFIGURED_LEX
="$CONFIGURED_LEX" # Let the user override the test.
2996 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2998 for ac_dir
in $ac_dummy; do
2999 test -z "$ac_dir" && ac_dir
=.
3000 if test -f $ac_dir/$ac_word; then
3001 ac_cv_prog_CONFIGURED_LEX
="$ac_prog"
3008 CONFIGURED_LEX
="$ac_cv_prog_CONFIGURED_LEX"
3009 if test -n "$CONFIGURED_LEX"; then
3010 echo "$ac_t""$CONFIGURED_LEX" 1>&6
3012 echo "$ac_t""no" 1>&6
3015 test -n "$CONFIGURED_LEX" && break
3017 test -n "$CONFIGURED_LEX" || CONFIGURED_LEX
="$MISSING flex"
3019 for ac_prog
in makeinfo
3021 # Extract the first word of "$ac_prog", so it can be a program name with args.
3022 set dummy
$ac_prog; ac_word
=$2
3023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3024 echo "configure:3025: checking for $ac_word" >&5
3025 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6
3028 if test -n "$CONFIGURED_MAKEINFO"; then
3029 ac_cv_prog_CONFIGURED_MAKEINFO
="$CONFIGURED_MAKEINFO" # Let the user override the test.
3031 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3033 for ac_dir
in $ac_dummy; do
3034 test -z "$ac_dir" && ac_dir
=.
3035 if test -f $ac_dir/$ac_word; then
3036 ac_cv_prog_CONFIGURED_MAKEINFO
="$ac_prog"
3043 CONFIGURED_MAKEINFO
="$ac_cv_prog_CONFIGURED_MAKEINFO"
3044 if test -n "$CONFIGURED_MAKEINFO"; then
3045 echo "$ac_t""$CONFIGURED_MAKEINFO" 1>&6
3047 echo "$ac_t""no" 1>&6
3050 test -n "$CONFIGURED_MAKEINFO" && break
3052 test -n "$CONFIGURED_MAKEINFO" || CONFIGURED_MAKEINFO
="$MISSING makeinfo"
3055 # Create a .gdbinit file which runs the one in srcdir
3056 # and tells GDB to look there for source files.
3058 if test -r ${srcdir}/.gdbinit
; then
3061 *) cat > .
/.gdbinit
<<EOF
3065 source ${srcdir}/.gdbinit
3071 # Make sure that the compiler is able to generate an executable. If it
3072 # can't, we are probably in trouble. We don't care whether we can run the
3073 # executable--we might be using a cross compiler--we only care whether it
3074 # can be created. At this point the main configure script has set CC.
3076 echo "int main () { return 0; }" > conftest.c
3077 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3078 if test $?
= 0 ; then
3079 if test -s conftest ||
test -s conftest.exe
; then
3085 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3086 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3093 # The Solaris /usr/ucb/cc compiler does not appear to work.
3095 sparc-sun-solaris2
*)
3096 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
3097 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3099 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
3100 if test -d /opt
/cygnus
/bin
; then
3101 if test "$could_use" = "" ; then
3102 could_use
="/opt/cygnus/bin"
3104 could_use
="$could_use or /opt/cygnus/bin"
3107 if test "$could_use" = "" ; then
3108 echo "Warning: compilation may fail because you're using"
3109 echo "/usr/ucb/cc. You should change your PATH or CC "
3110 echo "variable and rerun configure."
3112 echo "Warning: compilation may fail because you're using"
3113 echo "/usr/ucb/cc, when you should use the C compiler from"
3114 echo "$could_use. You should change your"
3115 echo "PATH or CC variable and rerun configure."
3122 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
3123 *-*-darwin* |
*-*-rhapsody* ) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
3124 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
3127 # Record target_configdirs and the configure arguments for target and
3128 # build configuration in Makefile.
3129 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3130 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3132 # Determine whether gdb needs tk/tcl or not.
3133 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3134 # and in that case we want gdb to be built without tk. Ugh!
3135 # In fact I believe gdb is the *only* package directly dependent on tk,
3136 # so we should be able to put the 'maybe's in unconditionally and
3137 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3138 # 100% sure that that's safe though.
3140 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3141 case "$enable_gdbtk" in
3145 GDB_TK
="${gdb_tk}" ;;
3147 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3148 # distro. Eventually someone will fix this and move Insight, nee
3149 # gdbtk to a separate directory.
3150 if test -d ${srcdir}/gdb
/gdbtk
; then
3158 # Strip out unwanted targets.
3160 # While at that, we remove Makefiles if we were started for recursive
3161 # configuration, so that the top-level Makefile reconfigures them,
3162 # like we used to do when configure itself was recursive.
3164 # Loop over modules. $extrasub must be used with care, limiting as
3165 # much as possible the usage of range addresses. That's because autoconf
3166 # splits the sed script to overcome limits in the number of commands,
3167 # and relying on carefully-timed sed passes may turn out to be very hard
3168 # to maintain later. In this particular case, you just have to be careful
3169 # not to nest @if/@endif pairs, because configure will not warn you at all.
3171 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3172 if test "${enable_bootstrap+set}" = set; then
3173 enableval
="$enable_bootstrap"
3176 enable_bootstrap
=default
3180 # Issue errors and warnings for invalid/strange bootstrap combinations.
3181 case "$configdirs" in
3182 *gcc
*) have_compiler
=yes ;;
3183 *) have_compiler
=no
;;
3186 case "$have_compiler:$host:$target:$enable_bootstrap" in
3189 # Default behavior. (We'll) enable bootstrap if we have a compiler
3190 # and we are in a native configuration.
3191 yes:$build:$build:default
)
3192 # This will become 'yes'
3193 enable_bootstrap
=no
;;
3196 enable_bootstrap
=no
;;
3198 # We have a compiler and we are in a native configuration, bootstrap is ok
3199 yes:$build:$build:yes |
yes:$build:$build:lean
)
3202 # Other configurations, but we have a compiler. Assume the user knows
3204 yes:*:*:yes |
yes:*:*:lean
)
3205 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3208 # No compiler: if they passed --enable-bootstrap explicitly, fail
3209 no
:*:*:yes | no
:*:*:lean
)
3210 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3212 # Fail if wrong command line
3214 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3218 # Adjust the toplevel makefile according to whether bootstrap was selected.
3219 case "$enable_bootstrap" in
3222 bootstrap_suffix
=bootstrap
;;
3225 bootstrap_suffix
=bootstrap
;;
3227 bootstrap_suffix
=no-bootstrap
;;
3231 for module
in ${build_configdirs} ; do
3232 if test -z "${no_recursion}" \
3233 && test -f ${build_subdir}/${module}/Makefile
; then
3234 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3235 rm -f ${build_subdir}/${module}/Makefile
3238 /^@if build-$module\$/d
3239 /^@endif build-$module\$/d
3240 /^@if build-$module-$bootstrap_suffix\$/d
3241 /^@endif build-$module-$bootstrap_suffix\$/d"
3243 for module
in ${configdirs} ; do
3244 if test -z "${no_recursion}" \
3245 && test -f ${module}/Makefile
; then
3246 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3247 rm -f ${module}/Makefile
3251 /^@endif $module\$/d
3252 /^@if $module-$bootstrap_suffix\$/d
3253 /^@endif $module-$bootstrap_suffix\$/d"
3255 for module
in ${target_configdirs} ; do
3256 if test -z "${no_recursion}" \
3257 && test -f ${target_subdir}/${module}/Makefile
; then
3258 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3259 rm -f ${target_subdir}/${module}/Makefile
3262 /^@if target-$module\$/d
3263 /^@endif target-$module\$/d
3264 /^@if target-$module-$bootstrap_suffix\$/d
3265 /^@endif target-$module-$bootstrap_suffix\$/d"
3269 /^@if /,/^@endif /d"
3271 # Create the serialization dependencies. This uses a temporary file.
3273 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3274 if test "${enable_serial_configure+set}" = set; then
3275 enableval
="$enable_serial_configure"
3280 case ${enable_serial_configure} in
3282 enable_serial_build_configure
=yes
3283 enable_serial_host_configure
=yes
3284 enable_serial_target_configure
=yes
3288 # These force 'configure's to be done one at a time, to avoid problems
3289 # with contention over a shared config.cache.
3291 echo '# serdep.tmp' > serdep.tmp
3293 test "x${enable_serial_build_configure}" = xyes
&&
3294 for item
in ${build_configdirs} ; do
3297 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
3302 test "x${enable_serial_host_configure}" = xyes
&&
3303 for item
in ${configdirs} ; do
3306 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
3311 test "x${enable_serial_target_configure}" = xyes
&&
3312 for item
in ${target_configdirs} ; do
3315 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
3319 serialization_dependencies
=serdep.tmp
3322 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3323 # target and nonopt. These are the ones we might not want to pass
3324 # down to subconfigures. Also strip program-prefix, program-suffix,
3325 # and program-transform-name, so that we can pass down a consistent
3326 # program-transform-name. If autoconf has put single quotes around
3327 # any of these arguments (because they contain shell metacharacters)
3328 # then this will fail; in practice this only happens for
3329 # --program-transform-name, so be sure to override --program-transform-name
3330 # at the end of the argument list.
3331 # These will be expanded by make, so quote '$'.
3332 cat <<\EOF_SED
> conftestsed
3334 s
/ --c[a-z-
]*[= ][^
]*//g
3335 s
/ --sr[a-z-
]*[= ][^
]*//g
3336 s
/ --ho[a-z-
]*[= ][^
]*//g
3337 s
/ --bu[a-z-
]*[= ][^
]*//g
3338 s
/ --t[a-z-
]*[= ][^
]*//g
3339 s
/ --program-[pst
][a-z-
]*[= ][^
]*//g
3340 s
/ -cache-file[= ][^
]*//g
3341 s
/ -srcdir[= ][^
]*//g
3342 s
/ -host[= ][^
]*//g
3343 s
/ -build[= ][^
]*//g
3344 s
/ -target[= ][^
]*//g
3345 s
/ -program-prefix[= ][^
]*//g
3346 s
/ -program-suffix[= ][^
]*//g
3347 s
/ -program-transform-name[= ][^
]*//g
3352 sed -f conftestsed <<EOF_SED > conftestsed.out
3353 ${ac_configure_args}
3355 baseargs=`cat conftestsed.out`
3356 rm -f conftestsed conftestsed.out
3358 # Add in --program-transform-name, after --program-prefix and
3359 # --program-suffix have been applied to it. Autoconf has already
3360 # doubled dollar signs and backslashes in program_transform_name; we want
3361 # the backslashes un-doubled, and then the entire thing wrapped in single
3362 # quotes, because this will be expanded first by make and then by the shell.
3363 # Also, because we want to override the logic in subdir configure scripts to
3364 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3365 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3366 ${program_transform_name}
3368 gcc_transform_name=`cat conftestsed.out`
3369 rm -f conftestsed.out
3370 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3372 # For the build-side libraries, we just need to pretend we're native
,
3373 # and not use the same cache file. Multilibs are neither needed nor
3375 build_configargs
="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3377 # For host modules, accept cache file option, or specification as blank.
3378 case "${cache_file}" in
3380 cache_file_option
="" ;;
3381 /* |
[A-Za-z
]:[\\/]* ) # absolute path
3382 cache_file_option
="--cache-file=${cache_file}" ;;
3384 cache_file_option
="--cache-file=../${cache_file}" ;;
3387 # Host dirs don't like to share a cache file either, horribly enough.
3388 # This seems to be due to autoconf 2.5x stupidity.
3389 host_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3391 target_configargs
=${baseargs}
3393 # Passing a --with-cross-host argument lets the target libraries know
3394 # whether they are being built with a cross-compiler or being built
3395 # native. However, it would be better to use other mechanisms to make the
3396 # sorts of decisions they want to make on this basis. Please consider
3397 # this option to be deprecated. FIXME.
3398 if test x
${is_cross_compiler} = xyes
; then
3399 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3402 # Default to --enable-multilib.
3403 if test x
${enable_multilib} = x
; then
3404 target_configargs
="--enable-multilib ${target_configargs}"
3407 # Pass --with-newlib if appropriate. Note that target_configdirs has
3408 # changed from the earlier setting of with_newlib.
3409 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3410 target_configargs
="--with-newlib ${target_configargs}"
3413 # Different target subdirs use different values of certain variables
3414 # (notably CXX). Worse, multilibs use *lots* of different values.
3415 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3416 # it doesn't automatically accept command-line overrides of them.
3417 # This means it's not safe for target subdirs to share a cache file,
3418 # which is disgusting, but there you have it. Hopefully this can be
3419 # fixed in future. It's still worthwhile to use a cache file for each
3420 # directory. I think.
3422 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3423 # We need to pass --target, as newer autoconf's requires consistency
3424 # for target_alias and gcc doesn't manage it consistently.
3425 target_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3428 case " $target_configdirs " in
3430 case " $target_configargs " in
3431 *" --with-newlib "*)
3434 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' ;;
3437 # If we're not building GCC, don't discard standard headers.
3438 if test -d ${srcdir}/gcc
; then
3439 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3441 if test "${build}" != "${host}"; then
3442 # On Canadian crosses, CC_FOR_TARGET will have already been set
3443 # by `configure', so we won't have an opportunity to add -Bgcc/
3444 # to it. This is right: we don't want to search that directory
3445 # for binaries, but we want the header files in there, so add
3447 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3449 # Someone might think of using the pre-installed headers on
3450 # Canadian crosses, in case the installed compiler is not fully
3451 # compatible with the compiler being built. In this case, it
3452 # would be better to flag an error than risking having
3453 # incompatible object files being constructed. We can't
3454 # guarantee that an error will be flagged, but let's hope the
3455 # compiler will do it, when presented with incompatible header
3460 case "${target}-${is_cross_compiler}" in
3461 i
[3456789]86-*-linux*-no)
3462 # Here host == target, so we don't need to build gcc,
3463 # so we don't want to discard standard headers.
3464 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3467 # If we're building newlib, use its generic headers last, but search
3468 # for any libc-related directories first (so make it the last -B
3470 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3478 # Allow the user to override the flags for
3479 # our build compiler if desired.
3480 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3482 # On Canadian crosses, we'll be searching the right directories for
3483 # the previously-installed cross compiler, so don't bother to add
3484 # flags for directories within the install tree of the compiler
3485 # being built; programs in there won't even run.
3486 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3487 # Search for pre-installed headers if nothing else fits.
3488 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3491 if test "x
${use_gnu_ld}" = x &&
3492 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3493 # Arrange for us to find uninstalled linker scripts.
3494 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3497 # Makefile fragments.
3498 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3500 eval fragval=\$$frag
3501 if test $fragval != /dev/null; then
3502 eval $frag=${srcdir}/$fragval
3510 # Miscellanea: directories, flags, etc.
3518 # Build module lists & subconfigure args.
3522 # Host module lists & subconfigure args.
3526 # Target module lists & subconfigure args.
3536 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3537 ncn_target_tool_prefix=
3538 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3540 for ncn_progname in ar; do
3541 if test -n "$ncn_tool_prefix"; then
3542 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3543 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3544 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3545 echo "configure
:3546: checking
for $ac_word" >&5
3546 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3547 echo $ac_n "(cached
) $ac_c" 1>&6
3549 if test -n "$AR"; then
3550 ac_cv_prog_AR="$AR" # Let the user override the test.
3552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3554 for ac_dir in $ac_dummy; do
3555 test -z "$ac_dir" && ac_dir=.
3556 if test -f $ac_dir/$ac_word; then
3557 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3565 if test -n "$AR"; then
3566 echo "$ac_t""$AR" 1>&6
3568 echo "$ac_t""no
" 1>&6
3572 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3574 set dummy ${ncn_progname}; ac_word=$2
3575 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3576 echo "configure
:3577: checking
for $ac_word" >&5
3577 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3578 echo $ac_n "(cached
) $ac_c" 1>&6
3580 if test -n "$AR"; then
3581 ac_cv_prog_AR="$AR" # Let the user override the test.
3583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3585 for ac_dir in $ac_dummy; do
3586 test -z "$ac_dir" && ac_dir=.
3587 if test -f $ac_dir/$ac_word; then
3588 ac_cv_prog_AR="${ncn_progname}"
3596 if test -n "$AR"; then
3597 echo "$ac_t""$AR" 1>&6
3599 echo "$ac_t""no
" 1>&6
3603 test -n "$ac_cv_prog_AR" && break
3606 if test -z "$ac_cv_prog_AR" ; then
3608 if test $build = $host ; then
3611 AR="${ncn_tool_prefix}$2"
3615 for ncn_progname in as; do
3616 if test -n "$ncn_tool_prefix"; then
3617 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3618 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3619 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3620 echo "configure
:3621: checking
for $ac_word" >&5
3621 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3622 echo $ac_n "(cached
) $ac_c" 1>&6
3624 if test -n "$AS"; then
3625 ac_cv_prog_AS="$AS" # Let the user override the test.
3627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3629 for ac_dir in $ac_dummy; do
3630 test -z "$ac_dir" && ac_dir=.
3631 if test -f $ac_dir/$ac_word; then
3632 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3640 if test -n "$AS"; then
3641 echo "$ac_t""$AS" 1>&6
3643 echo "$ac_t""no
" 1>&6
3647 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3648 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3649 set dummy ${ncn_progname}; ac_word=$2
3650 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3651 echo "configure
:3652: checking
for $ac_word" >&5
3652 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3653 echo $ac_n "(cached
) $ac_c" 1>&6
3655 if test -n "$AS"; then
3656 ac_cv_prog_AS="$AS" # Let the user override the test.
3658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3660 for ac_dir in $ac_dummy; do
3661 test -z "$ac_dir" && ac_dir=.
3662 if test -f $ac_dir/$ac_word; then
3663 ac_cv_prog_AS="${ncn_progname}"
3671 if test -n "$AS"; then
3672 echo "$ac_t""$AS" 1>&6
3674 echo "$ac_t""no
" 1>&6
3678 test -n "$ac_cv_prog_AS" && break
3681 if test -z "$ac_cv_prog_AS" ; then
3683 if test $build = $host ; then
3686 AS="${ncn_tool_prefix}$2"
3690 for ncn_progname in dlltool; do
3691 if test -n "$ncn_tool_prefix"; then
3692 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3693 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3694 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3695 echo "configure
:3696: checking
for $ac_word" >&5
3696 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3697 echo $ac_n "(cached
) $ac_c" 1>&6
3699 if test -n "$DLLTOOL"; then
3700 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3704 for ac_dir in $ac_dummy; do
3705 test -z "$ac_dir" && ac_dir=.
3706 if test -f $ac_dir/$ac_word; then
3707 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3714 DLLTOOL="$ac_cv_prog_DLLTOOL"
3715 if test -n "$DLLTOOL"; then
3716 echo "$ac_t""$DLLTOOL" 1>&6
3718 echo "$ac_t""no
" 1>&6
3722 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3724 set dummy ${ncn_progname}; ac_word=$2
3725 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3726 echo "configure
:3727: checking
for $ac_word" >&5
3727 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3728 echo $ac_n "(cached
) $ac_c" 1>&6
3730 if test -n "$DLLTOOL"; then
3731 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3735 for ac_dir in $ac_dummy; do
3736 test -z "$ac_dir" && ac_dir=.
3737 if test -f $ac_dir/$ac_word; then
3738 ac_cv_prog_DLLTOOL="${ncn_progname}"
3745 DLLTOOL="$ac_cv_prog_DLLTOOL"
3746 if test -n "$DLLTOOL"; then
3747 echo "$ac_t""$DLLTOOL" 1>&6
3749 echo "$ac_t""no
" 1>&6
3753 test -n "$ac_cv_prog_DLLTOOL" && break
3756 if test -z "$ac_cv_prog_DLLTOOL" ; then
3758 if test $build = $host ; then
3761 DLLTOOL="${ncn_tool_prefix}$2"
3765 for ncn_progname in ld; do
3766 if test -n "$ncn_tool_prefix"; then
3767 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3768 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3769 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3770 echo "configure
:3771: checking
for $ac_word" >&5
3771 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3772 echo $ac_n "(cached
) $ac_c" 1>&6
3774 if test -n "$LD"; then
3775 ac_cv_prog_LD="$LD" # Let the user override the test.
3777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3779 for ac_dir in $ac_dummy; do
3780 test -z "$ac_dir" && ac_dir=.
3781 if test -f $ac_dir/$ac_word; then
3782 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3790 if test -n "$LD"; then
3791 echo "$ac_t""$LD" 1>&6
3793 echo "$ac_t""no
" 1>&6
3797 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
3798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3799 set dummy ${ncn_progname}; ac_word=$2
3800 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3801 echo "configure
:3802: checking
for $ac_word" >&5
3802 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3803 echo $ac_n "(cached
) $ac_c" 1>&6
3805 if test -n "$LD"; then
3806 ac_cv_prog_LD="$LD" # Let the user override the test.
3808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3810 for ac_dir in $ac_dummy; do
3811 test -z "$ac_dir" && ac_dir=.
3812 if test -f $ac_dir/$ac_word; then
3813 ac_cv_prog_LD="${ncn_progname}"
3821 if test -n "$LD"; then
3822 echo "$ac_t""$LD" 1>&6
3824 echo "$ac_t""no
" 1>&6
3828 test -n "$ac_cv_prog_LD" && break
3831 if test -z "$ac_cv_prog_LD" ; then
3833 if test $build = $host ; then
3836 LD="${ncn_tool_prefix}$2"
3840 for ncn_progname in nm; do
3841 if test -n "$ncn_tool_prefix"; then
3842 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3843 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3844 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3845 echo "configure
:3846: checking
for $ac_word" >&5
3846 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3847 echo $ac_n "(cached
) $ac_c" 1>&6
3849 if test -n "$NM"; then
3850 ac_cv_prog_NM="$NM" # Let the user override the test.
3852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3854 for ac_dir in $ac_dummy; do
3855 test -z "$ac_dir" && ac_dir=.
3856 if test -f $ac_dir/$ac_word; then
3857 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
3865 if test -n "$NM"; then
3866 echo "$ac_t""$NM" 1>&6
3868 echo "$ac_t""no
" 1>&6
3872 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
3873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3874 set dummy ${ncn_progname}; ac_word=$2
3875 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3876 echo "configure
:3877: checking
for $ac_word" >&5
3877 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3878 echo $ac_n "(cached
) $ac_c" 1>&6
3880 if test -n "$NM"; then
3881 ac_cv_prog_NM="$NM" # Let the user override the test.
3883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3885 for ac_dir in $ac_dummy; do
3886 test -z "$ac_dir" && ac_dir=.
3887 if test -f $ac_dir/$ac_word; then
3888 ac_cv_prog_NM="${ncn_progname}"
3896 if test -n "$NM"; then
3897 echo "$ac_t""$NM" 1>&6
3899 echo "$ac_t""no
" 1>&6
3903 test -n "$ac_cv_prog_NM" && break
3906 if test -z "$ac_cv_prog_NM" ; then
3908 if test $build = $host ; then
3911 NM="${ncn_tool_prefix}$2"
3915 for ncn_progname in ranlib; do
3916 if test -n "$ncn_tool_prefix"; then
3917 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3918 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3919 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3920 echo "configure
:3921: checking
for $ac_word" >&5
3921 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3922 echo $ac_n "(cached
) $ac_c" 1>&6
3924 if test -n "$RANLIB"; then
3925 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3929 for ac_dir in $ac_dummy; do
3930 test -z "$ac_dir" && ac_dir=.
3931 if test -f $ac_dir/$ac_word; then
3932 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
3939 RANLIB="$ac_cv_prog_RANLIB"
3940 if test -n "$RANLIB"; then
3941 echo "$ac_t""$RANLIB" 1>&6
3943 echo "$ac_t""no
" 1>&6
3947 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
3948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3949 set dummy ${ncn_progname}; ac_word=$2
3950 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3951 echo "configure
:3952: checking
for $ac_word" >&5
3952 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3953 echo $ac_n "(cached
) $ac_c" 1>&6
3955 if test -n "$RANLIB"; then
3956 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3960 for ac_dir in $ac_dummy; do
3961 test -z "$ac_dir" && ac_dir=.
3962 if test -f $ac_dir/$ac_word; then
3963 ac_cv_prog_RANLIB="${ncn_progname}"
3970 RANLIB="$ac_cv_prog_RANLIB"
3971 if test -n "$RANLIB"; then
3972 echo "$ac_t""$RANLIB" 1>&6
3974 echo "$ac_t""no
" 1>&6
3978 test -n "$ac_cv_prog_RANLIB" && break
3981 if test -z "$ac_cv_prog_RANLIB" ; then
3985 for ncn_progname in windres; do
3986 if test -n "$ncn_tool_prefix"; then
3987 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3988 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3989 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3990 echo "configure
:3991: checking
for $ac_word" >&5
3991 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3992 echo $ac_n "(cached
) $ac_c" 1>&6
3994 if test -n "$WINDRES"; then
3995 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3999 for ac_dir in $ac_dummy; do
4000 test -z "$ac_dir" && ac_dir=.
4001 if test -f $ac_dir/$ac_word; then
4002 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4009 WINDRES="$ac_cv_prog_WINDRES"
4010 if test -n "$WINDRES"; then
4011 echo "$ac_t""$WINDRES" 1>&6
4013 echo "$ac_t""no
" 1>&6
4017 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4019 set dummy ${ncn_progname}; ac_word=$2
4020 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4021 echo "configure
:4022: checking
for $ac_word" >&5
4022 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4023 echo $ac_n "(cached
) $ac_c" 1>&6
4025 if test -n "$WINDRES"; then
4026 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4028 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4030 for ac_dir in $ac_dummy; do
4031 test -z "$ac_dir" && ac_dir=.
4032 if test -f $ac_dir/$ac_word; then
4033 ac_cv_prog_WINDRES="${ncn_progname}"
4040 WINDRES="$ac_cv_prog_WINDRES"
4041 if test -n "$WINDRES"; then
4042 echo "$ac_t""$WINDRES" 1>&6
4044 echo "$ac_t""no
" 1>&6
4048 test -n "$ac_cv_prog_WINDRES" && break
4051 if test -z "$ac_cv_prog_WINDRES" ; then
4053 if test $build = $host ; then
4056 WINDRES="${ncn_tool_prefix}$2"
4060 for ncn_progname in objcopy; do
4061 if test -n "$ncn_tool_prefix"; then
4062 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4063 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4064 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4065 echo "configure
:4066: checking
for $ac_word" >&5
4066 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4067 echo $ac_n "(cached
) $ac_c" 1>&6
4069 if test -n "$OBJCOPY"; then
4070 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4074 for ac_dir in $ac_dummy; do
4075 test -z "$ac_dir" && ac_dir=.
4076 if test -f $ac_dir/$ac_word; then
4077 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4084 OBJCOPY="$ac_cv_prog_OBJCOPY"
4085 if test -n "$OBJCOPY"; then
4086 echo "$ac_t""$OBJCOPY" 1>&6
4088 echo "$ac_t""no
" 1>&6
4092 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4094 set dummy ${ncn_progname}; ac_word=$2
4095 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4096 echo "configure
:4097: checking
for $ac_word" >&5
4097 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4098 echo $ac_n "(cached
) $ac_c" 1>&6
4100 if test -n "$OBJCOPY"; then
4101 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4105 for ac_dir in $ac_dummy; do
4106 test -z "$ac_dir" && ac_dir=.
4107 if test -f $ac_dir/$ac_word; then
4108 ac_cv_prog_OBJCOPY="${ncn_progname}"
4115 OBJCOPY="$ac_cv_prog_OBJCOPY"
4116 if test -n "$OBJCOPY"; then
4117 echo "$ac_t""$OBJCOPY" 1>&6
4119 echo "$ac_t""no
" 1>&6
4123 test -n "$ac_cv_prog_OBJCOPY" && break
4126 if test -z "$ac_cv_prog_OBJCOPY" ; then
4128 if test $build = $host ; then
4131 OBJCOPY="${ncn_tool_prefix}$2"
4135 for ncn_progname in objdump; do
4136 if test -n "$ncn_tool_prefix"; then
4137 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4138 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4139 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4140 echo "configure
:4141: checking
for $ac_word" >&5
4141 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4142 echo $ac_n "(cached
) $ac_c" 1>&6
4144 if test -n "$OBJDUMP"; then
4145 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4149 for ac_dir in $ac_dummy; do
4150 test -z "$ac_dir" && ac_dir=.
4151 if test -f $ac_dir/$ac_word; then
4152 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4159 OBJDUMP="$ac_cv_prog_OBJDUMP"
4160 if test -n "$OBJDUMP"; then
4161 echo "$ac_t""$OBJDUMP" 1>&6
4163 echo "$ac_t""no
" 1>&6
4167 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4169 set dummy ${ncn_progname}; ac_word=$2
4170 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4171 echo "configure
:4172: checking
for $ac_word" >&5
4172 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4173 echo $ac_n "(cached
) $ac_c" 1>&6
4175 if test -n "$OBJDUMP"; then
4176 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4180 for ac_dir in $ac_dummy; do
4181 test -z "$ac_dir" && ac_dir=.
4182 if test -f $ac_dir/$ac_word; then
4183 ac_cv_prog_OBJDUMP="${ncn_progname}"
4190 OBJDUMP="$ac_cv_prog_OBJDUMP"
4191 if test -n "$OBJDUMP"; then
4192 echo "$ac_t""$OBJDUMP" 1>&6
4194 echo "$ac_t""no
" 1>&6
4198 test -n "$ac_cv_prog_OBJDUMP" && break
4201 if test -z "$ac_cv_prog_OBJDUMP" ; then
4203 if test $build = $host ; then
4206 OBJDUMP="${ncn_tool_prefix}$2"
4216 # Target tools. Do the tests using the names they may have passed in
4217 # the environment, then move it to CONFIGURED_*_FOR_TARGET.
4218 for ncn_progname in ar; do
4219 if test -n "$ncn_target_tool_prefix"; then
4220 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4221 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4222 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4223 echo "configure
:4224: checking
for $ac_word" >&5
4224 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4225 echo $ac_n "(cached
) $ac_c" 1>&6
4227 if test -n "$AR_FOR_TARGET"; then
4228 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4232 for ac_dir in $ac_dummy; do
4233 test -z "$ac_dir" && ac_dir=.
4234 if test -f $ac_dir/$ac_word; then
4235 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4242 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
4243 if test -n "$AR_FOR_TARGET"; then
4244 echo "$ac_t""$AR_FOR_TARGET" 1>&6
4246 echo "$ac_t""no
" 1>&6
4250 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
4251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4252 set dummy ${ncn_progname}; ac_word=$2
4253 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4254 echo "configure
:4255: checking
for $ac_word" >&5
4255 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4256 echo $ac_n "(cached
) $ac_c" 1>&6
4258 if test -n "$AR_FOR_TARGET"; then
4259 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4263 for ac_dir in $ac_dummy; do
4264 test -z "$ac_dir" && ac_dir=.
4265 if test -f $ac_dir/$ac_word; then
4266 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
4273 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
4274 if test -n "$AR_FOR_TARGET"; then
4275 echo "$ac_t""$AR_FOR_TARGET" 1>&6
4277 echo "$ac_t""no
" 1>&6
4281 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
4284 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
4286 if test $build = $target ; then
4289 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
4293 for ncn_progname in as; do
4294 if test -n "$ncn_target_tool_prefix"; then
4295 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4296 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4297 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4298 echo "configure
:4299: checking
for $ac_word" >&5
4299 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
4300 echo $ac_n "(cached
) $ac_c" 1>&6
4302 if test -n "$AS_FOR_TARGET"; then
4303 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4307 for ac_dir in $ac_dummy; do
4308 test -z "$ac_dir" && ac_dir=.
4309 if test -f $ac_dir/$ac_word; then
4310 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4317 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4318 if test -n "$AS_FOR_TARGET"; then
4319 echo "$ac_t""$AS_FOR_TARGET" 1>&6
4321 echo "$ac_t""no
" 1>&6
4325 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
4326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4327 set dummy ${ncn_progname}; ac_word=$2
4328 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4329 echo "configure
:4330: checking
for $ac_word" >&5
4330 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
4331 echo $ac_n "(cached
) $ac_c" 1>&6
4333 if test -n "$AS_FOR_TARGET"; then
4334 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4338 for ac_dir in $ac_dummy; do
4339 test -z "$ac_dir" && ac_dir=.
4340 if test -f $ac_dir/$ac_word; then
4341 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
4348 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4349 if test -n "$AS_FOR_TARGET"; then
4350 echo "$ac_t""$AS_FOR_TARGET" 1>&6
4352 echo "$ac_t""no
" 1>&6
4356 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
4359 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
4361 if test $build = $target ; then
4364 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4368 for ncn_progname in cc gcc; do
4369 if test -n "$ncn_target_tool_prefix"; then
4370 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4371 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4372 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4373 echo "configure
:4374: checking
for $ac_word" >&5
4374 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4375 echo $ac_n "(cached
) $ac_c" 1>&6
4377 if test -n "$CC_FOR_TARGET"; then
4378 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4382 for ac_dir in $ac_dummy; do
4383 test -z "$ac_dir" && ac_dir=.
4384 if test -f $ac_dir/$ac_word; then
4385 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4392 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4393 if test -n "$CC_FOR_TARGET"; then
4394 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4396 echo "$ac_t""no
" 1>&6
4400 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4402 set dummy ${ncn_progname}; ac_word=$2
4403 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4404 echo "configure
:4405: checking
for $ac_word" >&5
4405 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4406 echo $ac_n "(cached
) $ac_c" 1>&6
4408 if test -n "$CC_FOR_TARGET"; then
4409 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4413 for ac_dir in $ac_dummy; do
4414 test -z "$ac_dir" && ac_dir=.
4415 if test -f $ac_dir/$ac_word; then
4416 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4423 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4424 if test -n "$CC_FOR_TARGET"; then
4425 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4427 echo "$ac_t""no
" 1>&6
4431 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4434 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4436 if test $build = $target ; then
4439 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4443 for ncn_progname in c++ g++ cxx gxx; do
4444 if test -n "$ncn_target_tool_prefix"; then
4445 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4446 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4447 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4448 echo "configure
:4449: checking
for $ac_word" >&5
4449 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4450 echo $ac_n "(cached
) $ac_c" 1>&6
4452 if test -n "$CXX_FOR_TARGET"; then
4453 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4457 for ac_dir in $ac_dummy; do
4458 test -z "$ac_dir" && ac_dir=.
4459 if test -f $ac_dir/$ac_word; then
4460 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4467 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4468 if test -n "$CXX_FOR_TARGET"; then
4469 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4471 echo "$ac_t""no
" 1>&6
4475 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4477 set dummy ${ncn_progname}; ac_word=$2
4478 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4479 echo "configure
:4480: checking
for $ac_word" >&5
4480 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4481 echo $ac_n "(cached
) $ac_c" 1>&6
4483 if test -n "$CXX_FOR_TARGET"; then
4484 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4488 for ac_dir in $ac_dummy; do
4489 test -z "$ac_dir" && ac_dir=.
4490 if test -f $ac_dir/$ac_word; then
4491 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4498 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4499 if test -n "$CXX_FOR_TARGET"; then
4500 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4502 echo "$ac_t""no
" 1>&6
4506 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4509 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4510 set dummy c++ g++ cxx gxx
4511 if test $build = $target ; then
4514 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4518 for ncn_progname in dlltool; do
4519 if test -n "$ncn_target_tool_prefix"; then
4520 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4521 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4522 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4523 echo "configure
:4524: checking
for $ac_word" >&5
4524 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4525 echo $ac_n "(cached
) $ac_c" 1>&6
4527 if test -n "$DLLTOOL_FOR_TARGET"; then
4528 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4532 for ac_dir in $ac_dummy; do
4533 test -z "$ac_dir" && ac_dir=.
4534 if test -f $ac_dir/$ac_word; then
4535 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4542 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4543 if test -n "$DLLTOOL_FOR_TARGET"; then
4544 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4546 echo "$ac_t""no
" 1>&6
4550 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
4551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4552 set dummy ${ncn_progname}; ac_word=$2
4553 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4554 echo "configure
:4555: checking
for $ac_word" >&5
4555 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4556 echo $ac_n "(cached
) $ac_c" 1>&6
4558 if test -n "$DLLTOOL_FOR_TARGET"; then
4559 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4563 for ac_dir in $ac_dummy; do
4564 test -z "$ac_dir" && ac_dir=.
4565 if test -f $ac_dir/$ac_word; then
4566 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
4573 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4574 if test -n "$DLLTOOL_FOR_TARGET"; then
4575 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4577 echo "$ac_t""no
" 1>&6
4581 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
4584 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
4586 if test $build = $target ; then
4587 DLLTOOL_FOR_TARGET="$2"
4589 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
4593 for ncn_progname in gcc; do
4594 if test -n "$ncn_target_tool_prefix"; then
4595 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4596 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4597 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4598 echo "configure
:4599: checking
for $ac_word" >&5
4599 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4600 echo $ac_n "(cached
) $ac_c" 1>&6
4602 if test -n "$GCC_FOR_TARGET"; then
4603 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4607 for ac_dir in $ac_dummy; do
4608 test -z "$ac_dir" && ac_dir=.
4609 if test -f $ac_dir/$ac_word; then
4610 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4617 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4618 if test -n "$GCC_FOR_TARGET"; then
4619 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4621 echo "$ac_t""no
" 1>&6
4625 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4627 set dummy ${ncn_progname}; ac_word=$2
4628 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4629 echo "configure
:4630: checking
for $ac_word" >&5
4630 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4631 echo $ac_n "(cached
) $ac_c" 1>&6
4633 if test -n "$GCC_FOR_TARGET"; then
4634 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4638 for ac_dir in $ac_dummy; do
4639 test -z "$ac_dir" && ac_dir=.
4640 if test -f $ac_dir/$ac_word; then
4641 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4648 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4649 if test -n "$GCC_FOR_TARGET"; then
4650 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4652 echo "$ac_t""no
" 1>&6
4656 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4659 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4660 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4663 for ncn_progname in gcj; do
4664 if test -n "$ncn_target_tool_prefix"; then
4665 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4666 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4667 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4668 echo "configure
:4669: checking
for $ac_word" >&5
4669 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4670 echo $ac_n "(cached
) $ac_c" 1>&6
4672 if test -n "$GCJ_FOR_TARGET"; then
4673 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4677 for ac_dir in $ac_dummy; do
4678 test -z "$ac_dir" && ac_dir=.
4679 if test -f $ac_dir/$ac_word; then
4680 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4687 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4688 if test -n "$GCJ_FOR_TARGET"; then
4689 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4691 echo "$ac_t""no
" 1>&6
4695 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4697 set dummy ${ncn_progname}; ac_word=$2
4698 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4699 echo "configure
:4700: checking
for $ac_word" >&5
4700 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4701 echo $ac_n "(cached
) $ac_c" 1>&6
4703 if test -n "$GCJ_FOR_TARGET"; then
4704 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4708 for ac_dir in $ac_dummy; do
4709 test -z "$ac_dir" && ac_dir=.
4710 if test -f $ac_dir/$ac_word; then
4711 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4718 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4719 if test -n "$GCJ_FOR_TARGET"; then
4720 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4722 echo "$ac_t""no
" 1>&6
4726 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4729 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4731 if test $build = $target ; then
4734 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4738 for ncn_progname in gfortran; do
4739 if test -n "$ncn_target_tool_prefix"; then
4740 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4741 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4742 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4743 echo "configure
:4744: checking
for $ac_word" >&5
4744 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4745 echo $ac_n "(cached
) $ac_c" 1>&6
4747 if test -n "$GFORTRAN_FOR_TARGET"; then
4748 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4752 for ac_dir in $ac_dummy; do
4753 test -z "$ac_dir" && ac_dir=.
4754 if test -f $ac_dir/$ac_word; then
4755 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4762 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4763 if test -n "$GFORTRAN_FOR_TARGET"; then
4764 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4766 echo "$ac_t""no
" 1>&6
4770 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
4771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4772 set dummy ${ncn_progname}; ac_word=$2
4773 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4774 echo "configure
:4775: checking
for $ac_word" >&5
4775 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4776 echo $ac_n "(cached
) $ac_c" 1>&6
4778 if test -n "$GFORTRAN_FOR_TARGET"; then
4779 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4783 for ac_dir in $ac_dummy; do
4784 test -z "$ac_dir" && ac_dir=.
4785 if test -f $ac_dir/$ac_word; then
4786 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
4793 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4794 if test -n "$GFORTRAN_FOR_TARGET"; then
4795 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4797 echo "$ac_t""no
" 1>&6
4801 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
4804 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
4806 if test $build = $target ; then
4807 GFORTRAN_FOR_TARGET="$2"
4809 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
4813 for ncn_progname in ld; do
4814 if test -n "$ncn_target_tool_prefix"; then
4815 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4816 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4817 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4818 echo "configure
:4819: checking
for $ac_word" >&5
4819 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
4820 echo $ac_n "(cached
) $ac_c" 1>&6
4822 if test -n "$LD_FOR_TARGET"; then
4823 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
4825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4827 for ac_dir in $ac_dummy; do
4828 test -z "$ac_dir" && ac_dir=.
4829 if test -f $ac_dir/$ac_word; then
4830 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4837 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4838 if test -n "$LD_FOR_TARGET"; then
4839 echo "$ac_t""$LD_FOR_TARGET" 1>&6
4841 echo "$ac_t""no
" 1>&6
4845 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
4846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4847 set dummy ${ncn_progname}; ac_word=$2
4848 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4849 echo "configure
:4850: checking
for $ac_word" >&5
4850 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
4851 echo $ac_n "(cached
) $ac_c" 1>&6
4853 if test -n "$LD_FOR_TARGET"; then
4854 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
4856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4858 for ac_dir in $ac_dummy; do
4859 test -z "$ac_dir" && ac_dir=.
4860 if test -f $ac_dir/$ac_word; then
4861 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
4868 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4869 if test -n "$LD_FOR_TARGET"; then
4870 echo "$ac_t""$LD_FOR_TARGET" 1>&6
4872 echo "$ac_t""no
" 1>&6
4876 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
4879 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
4881 if test $build = $target ; then
4884 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
4888 for ncn_progname in lipo; do
4889 if test -n "$ncn_target_tool_prefix"; then
4890 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4891 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4892 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4893 echo "configure
:4894: checking
for $ac_word" >&5
4894 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
4895 echo $ac_n "(cached
) $ac_c" 1>&6
4897 if test -n "$LIPO_FOR_TARGET"; then
4898 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
4900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4902 for ac_dir in $ac_dummy; do
4903 test -z "$ac_dir" && ac_dir=.
4904 if test -f $ac_dir/$ac_word; then
4905 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4912 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
4913 if test -n "$LIPO_FOR_TARGET"; then
4914 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
4916 echo "$ac_t""no
" 1>&6
4920 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
4921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4922 set dummy ${ncn_progname}; ac_word=$2
4923 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4924 echo "configure
:4925: checking
for $ac_word" >&5
4925 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
4926 echo $ac_n "(cached
) $ac_c" 1>&6
4928 if test -n "$LIPO_FOR_TARGET"; then
4929 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
4931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4933 for ac_dir in $ac_dummy; do
4934 test -z "$ac_dir" && ac_dir=.
4935 if test -f $ac_dir/$ac_word; then
4936 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
4943 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
4944 if test -n "$LIPO_FOR_TARGET"; then
4945 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
4947 echo "$ac_t""no
" 1>&6
4951 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
4954 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
4956 if test $build = $target ; then
4957 LIPO_FOR_TARGET="$2"
4959 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
4963 for ncn_progname in nm; do
4964 if test -n "$ncn_target_tool_prefix"; then
4965 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4966 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4967 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4968 echo "configure
:4969: checking
for $ac_word" >&5
4969 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
4970 echo $ac_n "(cached
) $ac_c" 1>&6
4972 if test -n "$NM_FOR_TARGET"; then
4973 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
4975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4977 for ac_dir in $ac_dummy; do
4978 test -z "$ac_dir" && ac_dir=.
4979 if test -f $ac_dir/$ac_word; then
4980 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4987 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
4988 if test -n "$NM_FOR_TARGET"; then
4989 echo "$ac_t""$NM_FOR_TARGET" 1>&6
4991 echo "$ac_t""no
" 1>&6
4995 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
4996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4997 set dummy ${ncn_progname}; ac_word=$2
4998 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4999 echo "configure
:5000: checking
for $ac_word" >&5
5000 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5001 echo $ac_n "(cached
) $ac_c" 1>&6
5003 if test -n "$NM_FOR_TARGET"; then
5004 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5008 for ac_dir in $ac_dummy; do
5009 test -z "$ac_dir" && ac_dir=.
5010 if test -f $ac_dir/$ac_word; then
5011 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5018 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5019 if test -n "$NM_FOR_TARGET"; then
5020 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5022 echo "$ac_t""no
" 1>&6
5026 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
5029 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
5031 if test $build = $target ; then
5034 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
5038 for ncn_progname in objdump; do
5039 if test -n "$ncn_target_tool_prefix"; then
5040 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5041 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5042 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5043 echo "configure
:5044: checking
for $ac_word" >&5
5044 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5045 echo $ac_n "(cached
) $ac_c" 1>&6
5047 if test -n "$OBJDUMP_FOR_TARGET"; then
5048 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5052 for ac_dir in $ac_dummy; do
5053 test -z "$ac_dir" && ac_dir=.
5054 if test -f $ac_dir/$ac_word; then
5055 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5062 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5063 if test -n "$OBJDUMP_FOR_TARGET"; then
5064 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5066 echo "$ac_t""no
" 1>&6
5070 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
5071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5072 set dummy ${ncn_progname}; ac_word=$2
5073 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5074 echo "configure
:5075: checking
for $ac_word" >&5
5075 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5076 echo $ac_n "(cached
) $ac_c" 1>&6
5078 if test -n "$OBJDUMP_FOR_TARGET"; then
5079 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5083 for ac_dir in $ac_dummy; do
5084 test -z "$ac_dir" && ac_dir=.
5085 if test -f $ac_dir/$ac_word; then
5086 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5093 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5094 if test -n "$OBJDUMP_FOR_TARGET"; then
5095 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5097 echo "$ac_t""no
" 1>&6
5101 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
5104 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
5106 if test $build = $target ; then
5107 OBJDUMP_FOR_TARGET="$2"
5109 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5113 for ncn_progname in ranlib; do
5114 if test -n "$ncn_target_tool_prefix"; then
5115 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5116 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5117 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5118 echo "configure
:5119: checking
for $ac_word" >&5
5119 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5120 echo $ac_n "(cached
) $ac_c" 1>&6
5122 if test -n "$RANLIB_FOR_TARGET"; then
5123 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
5125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5127 for ac_dir in $ac_dummy; do
5128 test -z "$ac_dir" && ac_dir=.
5129 if test -f $ac_dir/$ac_word; then
5130 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5137 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
5138 if test -n "$RANLIB_FOR_TARGET"; then
5139 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
5141 echo "$ac_t""no
" 1>&6
5145 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
5146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5147 set dummy ${ncn_progname}; ac_word=$2
5148 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5149 echo "configure
:5150: checking
for $ac_word" >&5
5150 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5151 echo $ac_n "(cached
) $ac_c" 1>&6
5153 if test -n "$RANLIB_FOR_TARGET"; then
5154 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
5156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5158 for ac_dir in $ac_dummy; do
5159 test -z "$ac_dir" && ac_dir=.
5160 if test -f $ac_dir/$ac_word; then
5161 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5168 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
5169 if test -n "$RANLIB_FOR_TARGET"; then
5170 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
5172 echo "$ac_t""no
" 1>&6
5176 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
5179 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
5180 RANLIB_FOR_TARGET=":"
5183 for ncn_progname in strip; do
5184 if test -n "$ncn_target_tool_prefix"; then
5185 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5186 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5187 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5188 echo "configure
:5189: checking
for $ac_word" >&5
5189 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5190 echo $ac_n "(cached
) $ac_c" 1>&6
5192 if test -n "$STRIP_FOR_TARGET"; then
5193 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5197 for ac_dir in $ac_dummy; do
5198 test -z "$ac_dir" && ac_dir=.
5199 if test -f $ac_dir/$ac_word; then
5200 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5207 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
5208 if test -n "$STRIP_FOR_TARGET"; then
5209 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
5211 echo "$ac_t""no
" 1>&6
5215 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
5216 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5217 set dummy ${ncn_progname}; ac_word=$2
5218 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5219 echo "configure
:5220: checking
for $ac_word" >&5
5220 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5221 echo $ac_n "(cached
) $ac_c" 1>&6
5223 if test -n "$STRIP_FOR_TARGET"; then
5224 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5228 for ac_dir in $ac_dummy; do
5229 test -z "$ac_dir" && ac_dir=.
5230 if test -f $ac_dir/$ac_word; then
5231 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5238 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
5239 if test -n "$STRIP_FOR_TARGET"; then
5240 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
5242 echo "$ac_t""no
" 1>&6
5246 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
5249 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
5251 if test $build = $target ; then
5252 STRIP_FOR_TARGET="$2"
5254 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5258 for ncn_progname in windres; do
5259 if test -n "$ncn_target_tool_prefix"; then
5260 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5261 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5262 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5263 echo "configure
:5264: checking
for $ac_word" >&5
5264 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5265 echo $ac_n "(cached
) $ac_c" 1>&6
5267 if test -n "$WINDRES_FOR_TARGET"; then
5268 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
5270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5272 for ac_dir in $ac_dummy; do
5273 test -z "$ac_dir" && ac_dir=.
5274 if test -f $ac_dir/$ac_word; then
5275 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5282 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
5283 if test -n "$WINDRES_FOR_TARGET"; then
5284 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
5286 echo "$ac_t""no
" 1>&6
5290 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
5291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5292 set dummy ${ncn_progname}; ac_word=$2
5293 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5294 echo "configure
:5295: checking
for $ac_word" >&5
5295 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5296 echo $ac_n "(cached
) $ac_c" 1>&6
5298 if test -n "$WINDRES_FOR_TARGET"; then
5299 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
5301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5303 for ac_dir in $ac_dummy; do
5304 test -z "$ac_dir" && ac_dir=.
5305 if test -f $ac_dir/$ac_word; then
5306 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5313 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
5314 if test -n "$WINDRES_FOR_TARGET"; then
5315 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
5317 echo "$ac_t""no
" 1>&6
5321 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
5324 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
5326 if test $build = $target ; then
5327 WINDRES_FOR_TARGET="$2"
5329 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
5334 CONFIGURED_AR_FOR_TARGET="$AR_FOR_TARGET"
5335 CONFIGURED_AS_FOR_TARGET="$AS_FOR_TARGET"
5336 CONFIGURED_CC_FOR_TARGET="$CC_FOR_TARGET"
5337 CONFIGURED_CXX_FOR_TARGET="$CXX_FOR_TARGET"
5338 CONFIGURED_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET"
5339 CONFIGURED_GCC_FOR_TARGET="$GCC_FOR_TARGET"
5340 CONFIGURED_GCJ_FOR_TARGET="$GCJ_FOR_TARGET"
5341 CONFIGURED_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET"
5342 CONFIGURED_LD_FOR_TARGET="$LD_FOR_TARGET"
5343 CONFIGURED_LIPO_FOR_TARGET="$LIPO_FOR_TARGET"
5344 CONFIGURED_NM_FOR_TARGET="$NM_FOR_TARGET"
5345 CONFIGURED_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET"
5346 CONFIGURED_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET"
5347 CONFIGURED_STRIP_FOR_TARGET="$STRIP_FOR_TARGET"
5348 CONFIGURED_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET"
5352 # Fix up target tools.
5353 if test "x
${build}" = "x
${host}" ; then
5354 # In this case, the newly built tools can and should be used,
5355 # so we override the results of the autoconf tests.
5356 # This should really only happen when the tools are actually being built,
5357 # but that's a further refinement. The new build scheme, where
5358 # tools are built into a structure paralleling where they're installed,
5359 # should also eliminate all of this cleanly.
5360 AR_FOR_TARGET="\$
(USUAL_AR_FOR_TARGET
)"
5361 AS_FOR_TARGET="\$
(USUAL_AS_FOR_TARGET
)"
5362 CC_FOR_TARGET="\$
(USUAL_CC_FOR_TARGET
)"
5363 CXX_FOR_TARGET="\$
(USUAL_CXX_FOR_TARGET
)"
5364 RAW_CXX_FOR_TARGET="\$
(USUAL_RAW_CXX_FOR_TARGET
)"
5365 DLLTOOL_FOR_TARGET="\$
(USUAL_DLLTOOL_FOR_TARGET
)"
5366 GCC_FOR_TARGET="\$
(USUAL_GCC_FOR_TARGET
)"
5367 GCJ_FOR_TARGET="\$
(USUAL_GCJ_FOR_TARGET
)"
5368 GFORTRAN_FOR_TARGET="\$
(USUAL_GFORTRAN_FOR_TARGET
)"
5369 LD_FOR_TARGET="\$
(USUAL_LD_FOR_TARGET
)"
5370 LIPO_FOR_TARGET="\$
(USUAL_LIPO_FOR_TARGET
)"
5371 NM_FOR_TARGET="\$
(USUAL_NM_FOR_TARGET
)"
5372 OBJDUMP_FOR_TARGET="\$
(USUAL_OBJDUMP_FOR_TARGET
)"
5373 RANLIB_FOR_TARGET="\$
(USUAL_RANLIB_FOR_TARGET
)"
5374 STRIP_FOR_TARGET="\$
(USUAL_STRIP_FOR_TARGET
)"
5375 WINDRES_FOR_TARGET="\$
(USUAL_WINDRES_FOR_TARGET
)"
5377 # Just use the ones we found.
5378 AR_FOR_TARGET="\$
(CONFIGURED_AR_FOR_TARGET
)"
5379 AS_FOR_TARGET="\$
(CONFIGURED_AS_FOR_TARGET
)"
5380 CC_FOR_TARGET="\$
(CONFIGURED_CC_FOR_TARGET
)"
5381 CXX_FOR_TARGET="\$
(CONFIGURED_CXX_FOR_TARGET
)"
5382 RAW_CXX_FOR_TARGET="\$
(CONFIGURED_CXX_FOR_TARGET
)"
5383 DLLTOOL_FOR_TARGET="\$
(CONFIGURED_DLLTOOL_FOR_TARGET
)"
5384 GCC_FOR_TARGET="\$
(CONFIGURED_GCC_FOR_TARGET
)"
5385 GCJ_FOR_TARGET="\$
(CONFIGURED_GCJ_FOR_TARGET
)"
5386 GFORTRAN_FOR_TARGET="\$
(CONFIGURED_GFORTRAN_FOR_TARGET
)"
5387 LD_FOR_TARGET="\$
(CONFIGURED_LD_FOR_TARGET
)"
5388 LIPO_FOR_TARGET="\$
(CONFIGURED_LIPO_FOR_TARGET
)"
5389 NM_FOR_TARGET="\$
(CONFIGURED_NM_FOR_TARGET
)"
5390 OBJDUMP_FOR_TARGET="\$
(CONFIGURED_OBJDUMP_FOR_TARGET
)"
5391 RANLIB_FOR_TARGET="\$
(CONFIGURED_RANLIB_FOR_TARGET
)"
5392 STRIP_FOR_TARGET="\$
(CONFIGURED_STRIP_FOR_TARGET
)"
5393 WINDRES_FOR_TARGET="\$
(CONFIGURED_WINDRES_FOR_TARGET
)"
5398 # Certain tools may need extra flags.
5399 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
5400 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
5401 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
5403 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
5404 echo "configure
:5405: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
5405 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5406 if test "${enable_maintainer_mode+set}" = set; then
5407 enableval="$enable_maintainer_mode"
5408 USE_MAINTAINER_MODE=$enableval
5410 USE_MAINTAINER_MODE=no
5413 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
5416 if test "$USE_MAINTAINER_MODE" = yes; then
5417 MAINTAINER_MODE_TRUE=
5418 MAINTAINER_MODE_FALSE='#'
5420 MAINTAINER_MODE_TRUE='#'
5421 MAINTAINER_MODE_FALSE=
5423 MAINT=$MAINTAINER_MODE_TRUE
5425 # ---------------------
5426 # GCC bootstrap support
5427 # ---------------------
5429 # Stage specific cflags for build.
5434 yes) stage1_cflags="-g -Wa,-J" ;;
5435 *) stage1_cflags="-g -J" ;;
5438 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
5439 # sources; use -no-cpp-precomp to get to GNU cpp.
5440 # Apple's GCC has bugs in designated initializer handling, so disable
5442 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
5447 # It makes debugging easier if we create as symlinks the stage directories
5448 # gcc for stageN-gcc and stagePREV-gcc for stage(N-1). In case this is not
5449 # possible, however, we can resort to mv.
5450 echo $ac_n "checking
if symbolic links between directories work
""...
$ac_c" 1>&6
5451 echo "configure
:5452: checking
if symbolic links between directories work
" >&5
5452 if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
5453 echo $ac_n "(cached
) $ac_c" 1>&6
5455 if test "${LN_S}" = "ln -s" \
5456 && mkdir confdir.s1 \
5457 && ln -s confdir.s1 confdir.s2 \
5458 && echo timestamp1 > confdir.s1/conftest.1 \
5459 && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \
5460 && echo timestamp2 > confdir.s2/conftest.2 \
5461 && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \
5462 && rm -f confdir.s2; then
5463 gcc_cv_prog_ln_s_dir=yes
5465 gcc_cv_prog_ln_s_dir=no
5467 rm -rf confdir.s1 confdir.s2
5470 echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6
5472 case ${gcc_cv_prog_ln_s_dir} in
5474 CREATE_LINK_TO_DIR='ln -s $$1 $$2'
5475 UNDO_LINK_TO_DIR='rm -f $$1' ;;
5477 CREATE_LINK_TO_DIR='mv $$1 $$2'
5478 UNDO_LINK_TO_DIR='mv $$1 $$2' ;;
5483 # Enable -Werror in bootstrap stage2 and later.
5484 # Change the default to "no
" on release branches.
5485 # Check whether --enable-werror or --disable-werror was given.
5486 if test "${enable_werror+set}" = set; then
5487 enableval="$enable_werror"
5493 case ${enable_werror} in
5494 yes) stage2_werror_flag="--enable-werror-always" ;;
5495 *) stage2_werror_flag="" ;;
5500 cat > confcache <<\EOF
5501 # This file is a shell script that caches the results of configure
5502 # tests run on this system so they can be shared between configure
5503 # scripts and configure runs. It is not useful on other systems.
5504 # If it contains results you don't want to keep, you may remove or edit it.
5506 # By default, configure uses ./config.cache as the cache file,
5507 # creating it if it does not exist already. You can give configure
5508 # the --cache-file=FILE option to use a different cache file; that is
5509 # what configure does when it calls configure scripts in
5510 # subdirectories, so they share the cache.
5511 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5512 # config.status only pays attention to the cache file if you give it the
5513 # --recheck option to rerun configure.
5516 # The following way of writing the cache mishandles newlines in values,
5517 # but we know of no workaround that is simple, portable, and efficient.
5518 # So, don't put newlines in cache variables' values.
5519 # Ultrix sh set writes to stderr and can't be redirected directly,
5520 # and sets the high bit in the cache file unless we assign to the vars.
5522 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5524 # `set' does not quote correctly, so add quotes (double-quote substitution
5525 # turns \\\\ into \\, and sed turns \\ into \).
5527 -e "s
/'/'\\\\''/g
" \
5528 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
5531 # `set' quotes correctly as required by POSIX, so do not add quotes.
5532 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5535 if cmp -s $cache_file confcache; then
5538 if test -w $cache_file; then
5539 echo "updating cache
$cache_file"
5540 cat confcache > $cache_file
5542 echo "not updating unwritable cache
$cache_file"
5547 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5549 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
5550 # Let make expand exec_prefix.
5551 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
5553 # Any assignment to VPATH causes Sun make to only execute
5554 # the first set of double-colon rules, so remove it if not needed.
5555 # If there is a colon in the path, we need to keep it.
5556 if test "x
$srcdir" = x.; then
5557 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5560 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5562 # Transform confdefs.h into DEFS.
5563 # Protect against shell expansion while executing Makefile rules.
5564 # Protect against Makefile macro expansion.
5566 # If the first sed substitution is executed (which looks for macros that
5567 # take arguments), then we branch to the quote section. Otherwise,
5568 # look for a macro that doesn't take arguments.
5569 cat >confdef2opt.sed <<\_ACEOF
5572 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5574 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5578 s,[ `~#$^&*(){}\\|;'"<>?
],\\&,g
5584 # We use echo to avoid assuming a particular line-breaking character.
5585 # The extra dot is to prevent the shell from consuming trailing
5586 # line-breaks from the sub-command output. A line-break within
5587 # single-quotes doesn't work because, if this script is created in a
5588 # platform that uses two characters for line-breaks (e.g., DOS), tr
5590 ac_LF_and_DOT
=`echo; echo .`
5591 DEFS
=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5592 rm -f confdef2opt.
sed
5595 # Without the "./", some shells look in PATH for config.status.
5596 : ${CONFIG_STATUS=./config.status}
5598 echo creating
$CONFIG_STATUS
5599 rm -f $CONFIG_STATUS
5600 cat > $CONFIG_STATUS <<EOF
5602 # Generated automatically by configure.
5603 # Run this file to recreate the current configuration.
5604 # This directory was configured as follows,
5605 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5607 # $0 $ac_configure_args
5609 # Compiler output produced by configure, useful for debugging
5610 # configure, is in ./config.log if it exists.
5612 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5615 case "\$ac_option" in
5616 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5617 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5618 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5619 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5620 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5622 -help | --help | --hel | --he | --h)
5623 echo "\$ac_cs_usage"; exit 0 ;;
5624 *) echo "\$ac_cs_usage"; exit 1 ;;
5628 ac_given_srcdir=$srcdir
5629 ac_given_INSTALL="$INSTALL"
5631 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5633 cat >> $CONFIG_STATUS <<EOF
5635 # Protect against being on the right side of a sed subst in config.status.
5636 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5637 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5641 s%@CFLAGS@%$CFLAGS%g
5642 s%@CPPFLAGS@%$CPPFLAGS%g
5643 s%@CXXFLAGS@%$CXXFLAGS%g
5644 s%@FFLAGS@%$FFLAGS%g
5646 s%@LDFLAGS@%$LDFLAGS%g
5648 s%@exec_prefix@%$exec_prefix%g
5649 s%@prefix@%$prefix%g
5650 s%@program_transform_name@%$program_transform_name%g
5651 s%@bindir@%$bindir%g
5652 s%@sbindir@%$sbindir%g
5653 s%@libexecdir@%$libexecdir%g
5654 s%@datadir@%$datadir%g
5655 s%@sysconfdir@%$sysconfdir%g
5656 s%@sharedstatedir@%$sharedstatedir%g
5657 s%@localstatedir@%$localstatedir%g
5658 s%@libdir@%$libdir%g
5659 s%@includedir@%$includedir%g
5660 s%@oldincludedir@%$oldincludedir%g
5661 s%@infodir@%$infodir%g
5662 s%@mandir@%$mandir%g
5664 s%@host_alias@%$host_alias%g
5665 s%@host_cpu@%$host_cpu%g
5666 s%@host_vendor@%$host_vendor%g
5667 s%@host_os@%$host_os%g
5668 s%@target@%$target%g
5669 s%@target_alias@%$target_alias%g
5670 s%@target_cpu@%$target_cpu%g
5671 s%@target_vendor@%$target_vendor%g
5672 s%@target_os@%$target_os%g
5674 s%@build_alias@%$build_alias%g
5675 s%@build_cpu@%$build_cpu%g
5676 s%@build_vendor@%$build_vendor%g
5677 s%@build_os@%$build_os%g
5678 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5679 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5680 s%@INSTALL_DATA@%$INSTALL_DATA%g
5683 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
5684 s%@build_subdir@%$build_subdir%g
5685 s%@host_subdir@%$host_subdir%g
5686 s%@target_subdir@%$target_subdir%g
5688 s%@GNATBIND@%$GNATBIND%g
5689 s%@do_compare@%$do_compare%g
5690 s%@gmplibs@%$gmplibs%g
5691 s%@gmpinc@%$gmpinc%g
5692 s%@stage1_languages@%$stage1_languages%g
5693 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
5694 s%@CONFIGURED_BISON@%$CONFIGURED_BISON%g
5695 s%@CONFIGURED_YACC@%$CONFIGURED_YACC%g
5696 s%@CONFIGURED_M4@%$CONFIGURED_M4%g
5697 s%@CONFIGURED_FLEX@%$CONFIGURED_FLEX%g
5698 s%@CONFIGURED_LEX@%$CONFIGURED_LEX%g
5699 s%@CONFIGURED_MAKEINFO@%$CONFIGURED_MAKEINFO%g
5700 s%@bootstrap_lean@%$bootstrap_lean%g
5701 /@serialization_dependencies@/r $serialization_dependencies
5702 s%@serialization_dependencies@%%g
5703 /@host_makefile_frag@/r $host_makefile_frag
5704 s%@host_makefile_frag@%%g
5705 /@target_makefile_frag@/r $target_makefile_frag
5706 s%@target_makefile_frag@%%g
5707 /@alphaieee_frag@/r $alphaieee_frag
5708 s%@alphaieee_frag@%%g
5709 /@ospace_frag@/r $ospace_frag
5711 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
5712 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
5713 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
5714 s%@tooldir@%$tooldir%g
5715 s%@build_tooldir@%$build_tooldir%g
5716 s%@GDB_TK@%$GDB_TK%g
5717 s%@build_configargs@%$build_configargs%g
5718 s%@build_configdirs@%$build_configdirs%g
5719 s%@host_configargs@%$host_configargs%g
5720 s%@configdirs@%$configdirs%g
5721 s%@target_configargs@%$target_configargs%g
5722 s%@target_configdirs@%$target_configdirs%g
5723 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5724 s%@config_shell@%$config_shell%g
5727 s%@DLLTOOL@%$DLLTOOL%g
5730 s%@RANLIB@%$RANLIB%g
5731 s%@WINDRES@%$WINDRES%g
5732 s%@OBJCOPY@%$OBJCOPY%g
5733 s%@OBJDUMP@%$OBJDUMP%g
5735 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
5736 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
5737 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
5738 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
5739 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
5740 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
5741 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
5742 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
5743 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
5744 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
5745 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
5746 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
5747 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
5748 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
5749 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
5750 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
5751 s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
5752 s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
5753 s%@CONFIGURED_CC_FOR_TARGET@%$CONFIGURED_CC_FOR_TARGET%g
5754 s%@CONFIGURED_CXX_FOR_TARGET@%$CONFIGURED_CXX_FOR_TARGET%g
5755 s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
5756 s%@CONFIGURED_GCC_FOR_TARGET@%$CONFIGURED_GCC_FOR_TARGET%g
5757 s%@CONFIGURED_GCJ_FOR_TARGET@%$CONFIGURED_GCJ_FOR_TARGET%g
5758 s%@CONFIGURED_GFORTRAN_FOR_TARGET@%$CONFIGURED_GFORTRAN_FOR_TARGET%g
5759 s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
5760 s%@CONFIGURED_LIPO_FOR_TARGET@%$CONFIGURED_LIPO_FOR_TARGET%g
5761 s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
5762 s%@CONFIGURED_OBJDUMP_FOR_TARGET@%$CONFIGURED_OBJDUMP_FOR_TARGET%g
5763 s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
5764 s%@CONFIGURED_STRIP_FOR_TARGET@%$CONFIGURED_STRIP_FOR_TARGET%g
5765 s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
5766 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
5767 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
5768 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5769 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5771 s%@stage1_cflags@%$stage1_cflags%g
5772 s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g
5773 s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g
5774 s%@stage2_werror_flag@%$stage2_werror_flag%g
5779 cat >> $CONFIG_STATUS <<\EOF
5781 # Split the substitutions into bite-sized pieces for seds with
5782 # small command number limits, like on Digital OSF/1 and HP-UX.
5783 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5784 ac_file
=1 # Number of current file.
5785 ac_beg
=1 # First line for current file.
5786 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5789 while $ac_more_lines; do
5790 if test $ac_beg -gt 1; then
5791 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5793 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5795 if test ! -s conftest.s
$ac_file; then
5797 rm -f conftest.s
$ac_file
5799 if test -z "$ac_sed_cmds"; then
5800 ac_sed_cmds
="sed -f conftest.s$ac_file"
5802 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5804 ac_file
=`expr $ac_file + 1`
5806 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5809 if test -z "$ac_sed_cmds"; then
5814 cat >> $CONFIG_STATUS <<EOF
5816 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5818 cat >> $CONFIG_STATUS <<\EOF
5819 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5820 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5822 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5823 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5824 *) ac_file_in
="${ac_file}.in" ;;
5827 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5829 # Remove last slash and all that follows it. Not all systems have dirname.
5830 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5831 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5832 # The file is in a subdirectory.
5833 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5834 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5835 # A "../" for each directory in $ac_dir_suffix.
5836 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5838 ac_dir_suffix
= ac_dots
=
5841 case "$ac_given_srcdir" in
5843 if test -z "$ac_dots"; then top_srcdir
=.
5844 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5845 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5847 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5848 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5851 case "$ac_given_INSTALL" in
5852 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5853 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5856 echo creating
"$ac_file"
5858 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5860 *Makefile
*) ac_comsub
="1i\\
5861 # $configure_input" ;;
5865 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5867 s%@configure_input@%$configure_input%g
5868 s%@srcdir@%$srcdir%g
5869 s%@top_srcdir@%$top_srcdir%g
5870 s%@INSTALL@%$INSTALL%g
5871 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5876 cat >> $CONFIG_STATUS <<EOF
5879 cat >> $CONFIG_STATUS <<\EOF
5883 chmod +x
$CONFIG_STATUS
5884 rm -fr confdefs
* $ac_clean_files
5885 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1