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"
1295 arm
*-*-linux-gnueabi)
1296 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1297 noconfigdirs
="$noconfigdirs target-libjava target-libobjc"
1300 noconfigdirs
="$noconfigdirs ${libgcj} target-libiberty"
1303 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1306 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1309 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1312 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1315 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1318 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1321 noconfigdirs
="$noconfigdirs target-libgloss gdb"
1322 if x
${is_cross_compiler} != xno
; then
1323 target_configdirs
="${target_configdirs} target-bsp target-cygmon"
1326 c4x-
*-* | tic4x-
*-*)
1327 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1329 c54x
*-*-* | tic54x-
*-*)
1330 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1332 cris-
*-* | crisv32-
*-*)
1333 unsupported_languages
="$unsupported_languages java"
1336 unsupported_languages
="$unsupported_languages fortran"
1337 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc";;
1339 unsupported_languages
="$unsupported_languages fortran"
1340 noconfigdirs
="$noconfigdirs target-boehm-gc";;
1342 noconfigdirs
="$noconfigdirs target-newlib target-libgloss";;
1344 unsupported_languages
="$unsupported_languages fortran"
1345 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1349 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1352 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1355 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1358 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1361 noconfigdirs
="$noconfigdirs ${libgcj}"
1364 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1367 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1369 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
1371 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
1372 # In this case, it's because the hppa64-linux target is for
1373 # the kernel only at this point and has no libc, and thus no
1374 # headers, crt*.o, etc., all of which are needed by these.
1375 noconfigdirs
="$noconfigdirs target-zlib"
1377 parisc
*-*-linux* | hppa
*-*-linux*)
1381 hppa
*-*-openbsd* | \
1383 noconfigdirs
="$noconfigdirs ${libgcj}"
1386 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1387 # build on HP-UX 10.20.
1388 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
1391 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1394 # No gdb support yet.
1395 noconfigdirs
="$noconfigdirs readline mmalloc libgui itcl gdb"
1398 # No gdb or ld support yet.
1399 noconfigdirs
="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1403 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
1404 noconfigdirs
="$noconfigdirs ${libgcj}"
1406 i
[3456789]86-*-linux*)
1407 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1408 # not build java stuff by default.
1411 noconfigdirs
="$noconfigdirs ${libgcj}";;
1414 # This section makes it possible to build newlib natively on linux.
1415 # If we are using a cross compiler then don't configure newlib.
1416 if test x
${is_cross_compiler} != xno
; then
1417 noconfigdirs
="$noconfigdirs target-newlib"
1419 noconfigdirs
="$noconfigdirs target-libgloss"
1420 # If we are not using a cross compiler, do configure newlib.
1421 # Note however, that newlib will only be configured in this situation
1422 # if the --with-newlib option has been given, because otherwise
1423 # 'target-newlib' will appear in skipdirs.
1425 i
[3456789]86-*-mingw32*)
1426 target_configdirs
="$target_configdirs target-mingw"
1427 noconfigdirs
="$noconfigdirs expect target-libgloss ${libgcj}"
1429 # Can't build gdb for mingw32 if not native.
1431 i
[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1432 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1437 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
1438 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1439 # always build newlib if winsup directory is present.
1440 if test -d "$srcdir/winsup"; then
1441 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1442 elif test -d "$srcdir/newlib"; then
1443 echo "Warning: winsup is missing so newlib can't be built."
1446 # Can't build gdb for Cygwin if not native.
1448 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1449 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1453 i
[3456789]86-moss-msdos | i
[3456789]86-*-moss* | \
1454 i
[3456789]86-*-uwin* | i
[3456789]86-*-interix* )
1457 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1459 i
[3456789]86-*-sco3.2v5
*)
1460 # The linker does not yet know about weak symbols in COFF,
1461 # and is not configured to handle mixed ELF and COFF.
1462 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1464 i
[3456789]86-*-sco*)
1465 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1467 i
[3456789]86-*-solaris2*)
1468 noconfigdirs
="$noconfigdirs target-libgloss"
1470 i
[3456789]86-*-sysv4*)
1471 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1473 i
[3456789]86-*-beos*)
1474 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1477 noconfigdirs
="$noconfigdirs ${libgcj}"
1479 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
1480 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1483 noconfigdirs
="$noconfigdirs ${libgcj}"
1486 noconfigdirs
="$noconfigdirs ${libgcj}"
1489 # The EPOC C++ environment does not support exceptions or rtti,
1490 # and so building libstdc++-v3 tends not to always work.
1491 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1494 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1495 unsupported_languages
="$unsupported_languages fortran java"
1498 noconfigdirs
="$noconfigdirs ${libgcj}"
1501 noconfigdirs
="$noconfigdirs ${libgcj}"
1504 noconfigdirs
="$noconfigdirs sim"
1507 # copied from rs6000-*-* entry
1508 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1510 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
1511 target_configdirs
="$target_configdirs target-winsup"
1512 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1513 # always build newlib.
1514 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1516 # This is temporary until we can link against shared libraries
1517 powerpcle-
*-solaris*)
1518 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1521 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1524 noconfigdirs
="$noconfigdirs ${libgcj}"
1526 powerpc-
*-eabi* | powerpcle-
*-eabi* | powerpc-
*-rtems* )
1529 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
1532 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1535 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1538 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1541 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1544 # Linking libjava exceeds command-line length limits on at least
1545 # IRIX 6.2, but not on IRIX 6.5.
1546 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1547 # <oldham@codesourcery.com>
1548 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1551 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1554 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1557 noconfigdirs
="$noconfigdirs gprof ${libgcj}" # same as generic mips
1560 noconfigdirs
="$noconfigdirs target-newlib ${libgcj}"
1563 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1566 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1569 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1573 i
[3456789]86-*-vsta) ;; # don't add gprof back in
1574 i
[3456789]86-*-go32*) ;; # don't add gprof back in
1575 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1576 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1578 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1581 noconfigdirs
="$noconfigdirs ${libgcj}"
1584 noconfigdirs
="$noconfigdirs ${libgcj}"
1587 noconfigdirs
="$noconfigdirs ${libgcj}"
1590 noconfigdirs
="$noconfigdirs ${libgcj}"
1591 if test x
${is_cross_compiler} != xno
; then
1592 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1597 sparc-
*-solaris2.
[0-6] | sparc-
*-solaris2.
[0-6].
*)
1598 noconfigdirs
="$noconfigdirs ${libgcj}"
1600 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
1603 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1606 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1609 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1612 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1615 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1618 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1621 noconfigdirs
="$noconfigdirs ${libgcj}"
1624 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1626 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1627 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1630 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1633 noconfigdirs
="$noconfigdirs ${libgcj}"
1637 # If we aren't building newlib, then don't build libgloss, since libgloss
1638 # depends upon some newlib header files.
1639 case "${noconfigdirs}" in
1640 *target-libgloss
*) ;;
1641 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
1644 # Work in distributions that contain no compiler tools, like Autoconf.
1646 host_makefile_frag
=/dev
/null
1647 if test -d ${srcdir}/config
; then
1650 # Avoid "too much defining" errors from HPUX compiler.
1651 tentative_cc
="cc -Wp,-H256000"
1652 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1653 # If it's HP/UX ar, this should be harmless.
1657 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1660 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1661 # chokes on bfd, the compiler won't let you assign integers to enums, and
1662 # other problems. Defining CC to gcc is a questionable way to say "don't use
1663 # the apollo compiler" (the preferred version of GCC could be called cc,
1664 # or whatever), but I'm not sure leaving CC as cc is any better...
1665 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1666 # Used to have BISON=yacc.
1670 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1673 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1674 tentative_cc
="cc -Xa"
1675 host_makefile_frag
="config/mh-cxux"
1677 m88k-motorola-sysv
*)
1680 tentative_cc
="cc -Wf,-XNg1000"
1681 host_makefile_frag
="config/mh-decstation"
1684 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1685 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
1686 host_makefile_frag
="config/mh-necv4"
1689 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1690 # environment. Also bump switch table size so that cp-parse will
1691 # compile. Bump string length limit so linker builds.
1692 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1695 host_makefile_frag
="config/mh-sysv4"
1698 # This is for a MIPS running RISC/os 4.52C.
1700 # This is needed for GDB, but needs to be in the top-level make because
1701 # if a library is compiled with the bsd headers and gets linked with the
1702 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1703 # a different size).
1704 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1705 # known except to select the sysv environment. Could we use /proc instead?
1706 # These "sysv environments" and "bsd environments" often end up being a pain.
1708 # This is not part of CFLAGS because perhaps not all C compilers have this
1710 tentative_cc
="cc -systype sysv"
1715 i
[3456789]86-*-sysv5*)
1716 host_makefile_frag
="config/mh-sysv5"
1718 i
[3456789]86-*-dgux*)
1719 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1720 host_makefile_frag
="config/mh-dgux386"
1722 i
[3456789]86-ncr-sysv4.3
*)
1723 # The MetaWare compiler will generate a copyright message unless you
1724 # turn it off by adding the -Hnocopyr flag.
1725 tentative_cc
="cc -Hnocopyr"
1727 i
[3456789]86-ncr-sysv4*)
1728 # for an NCR 3000 (i486/SVR4) system.
1729 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1730 # This compiler not only emits obnoxious copyright messages every time
1731 # you run it, but it chokes and dies on a whole bunch of GNU source
1732 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1733 tentative_cc
="/usr/ccs/ATT/cc"
1734 host_makefile_frag
="config/mh-ncr3000"
1736 i
[3456789]86-*-sco3.2v5
*)
1738 i
[3456789]86-*-sco*)
1739 # The native C compiler botches some simple uses of const. Unfortunately,
1740 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1741 tentative_cc
="cc -Dconst="
1742 host_makefile_frag
="config/mh-sco"
1744 i
[3456789]86-*-udk*)
1745 host_makefile_frag
="config/mh-sysv5"
1747 i
[3456789]86-*-solaris2*)
1748 host_makefile_frag
="config/mh-sysv4"
1750 i
[3456789]86-*-msdosdjgpp*)
1751 host_makefile_frag
="config/mh-djgpp"
1754 host_makefile_frag
="config/mh-cygwin"
1759 host_makefile_frag
="config/mh-interix"
1762 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1766 host_makefile_frag
="config/mh-solaris"
1769 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1770 # without overflowing the jump tables (-J says to use a 32 bit table)
1771 tentative_cc
="cc -J"
1774 tentative_cc
="cc -Wp,-H256000"
1777 tentative_cc
="cc -Wp,-H256000"
1780 # /bin/cc is less than useful for our purposes. Always use GCC
1781 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
1782 host_makefile_frag
="config/mh-lynxrs6k"
1785 host_makefile_frag
="config/mh-ppc-darwin"
1788 # /bin/cc is less than useful for our purposes. Always use GCC
1789 tentative_cc
="/bin/gcc"
1792 host_makefile_frag
="config/mh-sysv4"
1794 # This is placed last to prevent interfering with the cases above.
1796 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1797 host_makefile_frag
="config/mh-x86omitfp"
1802 # If we aren't going to be using gcc, see if we can extract a definition
1803 # of CC from the fragment.
1804 # Actually, use the 'pre-extracted' version above.
1805 if test -z "${CC}" && test "${build}" = "${host}" ; then
1806 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1808 for dir
in $PATH; do
1809 test -z "$dir" && dir
=.
1810 if test -f $dir/gcc
; then
1816 if test -z "${found}" && test -n "${tentative_cc}" ; then
1821 if test "${build}" != "${host}" ; then
1822 # If we are doing a Canadian Cross, in which the host and build systems
1823 # are not the same, we set reasonable default values for the tools.
1825 CC
=${CC-${host_alias}-gcc}
1826 CFLAGS
=${CFLAGS-"-g -O2"}
1827 CXX
=${CXX-${host_alias}-c++}
1828 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1829 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1830 BUILD_PREFIX
=${build_alias}-
1831 BUILD_PREFIX_1
=${build_alias}-
1834 # Set reasonable default values for some tools even if not Canadian.
1835 # Of course, these are different reasonable default values, originally
1836 # specified directly in the Makefile.
1837 # We don't export, so that autoconf can do its job.
1838 # Note that all these settings are above the fragment inclusion point
1839 # in Makefile.in, so can still be overridden by fragments.
1840 # This is all going to change when we autoconfiscate...
1842 CC_FOR_BUILD
="\$(CC)"
1844 BUILD_PREFIX_1
=loser-
1846 # Extract the first word of "gcc", so it can be a program name with args.
1847 set dummy gcc
; ac_word
=$2
1848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_word" >&5
1850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 if test -n "$CC"; then
1854 ac_cv_prog_CC
="$CC" # Let the user override the test.
1856 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1858 for ac_dir
in $ac_dummy; do
1859 test -z "$ac_dir" && ac_dir
=.
1860 if test -f $ac_dir/$ac_word; then
1869 if test -n "$CC"; then
1870 echo "$ac_t""$CC" 1>&6
1872 echo "$ac_t""no" 1>&6
1875 if test -z "$CC"; then
1876 # Extract the first word of "cc", so it can be a program name with args.
1877 set dummy cc
; ac_word
=$2
1878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1879 echo "configure:1880: checking for $ac_word" >&5
1880 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 if test -n "$CC"; then
1884 ac_cv_prog_CC
="$CC" # Let the user override the test.
1886 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1889 for ac_dir
in $ac_dummy; do
1890 test -z "$ac_dir" && ac_dir
=.
1891 if test -f $ac_dir/$ac_word; then
1892 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1893 ac_prog_rejected
=yes
1901 if test $ac_prog_rejected = yes; then
1902 # We found a bogon in the path, so make sure we never use it.
1903 set dummy
$ac_cv_prog_CC
1905 if test $# -gt 0; then
1906 # We chose a different compiler from the bogus one.
1907 # However, it has the same basename, so the bogon will be chosen
1908 # first if we set CC to just the basename; use the full file name.
1910 set dummy
"$ac_dir/$ac_word" "$@"
1918 if test -n "$CC"; then
1919 echo "$ac_t""$CC" 1>&6
1921 echo "$ac_t""no" 1>&6
1924 if test -z "$CC"; then
1925 case "`uname -s`" in
1927 # Extract the first word of "cl", so it can be a program name with args.
1928 set dummy cl
; ac_word
=$2
1929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1930 echo "configure:1931: checking for $ac_word" >&5
1931 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC
="$CC" # Let the user override the test.
1937 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1939 for ac_dir
in $ac_dummy; do
1940 test -z "$ac_dir" && ac_dir
=.
1941 if test -f $ac_dir/$ac_word; then
1950 if test -n "$CC"; then
1951 echo "$ac_t""$CC" 1>&6
1953 echo "$ac_t""no" 1>&6
1958 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1962 echo "configure:1963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1965 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1966 ac_cpp
='$CPP $CPPFLAGS'
1967 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1968 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1969 cross_compiling
=$ac_cv_prog_cc_cross
1971 cat > conftest.
$ac_ext << EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1978 if { (eval echo configure
:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1979 ac_cv_prog_cc_works
=yes
1980 # If we can't run a trivial program, we are probably using a cross compiler.
1981 if (.
/conftest
; exit) 2>/dev
/null
; then
1982 ac_cv_prog_cc_cross
=no
1984 ac_cv_prog_cc_cross
=yes
1987 echo "configure: failed program was:" >&5
1988 cat conftest.
$ac_ext >&5
1989 ac_cv_prog_cc_works
=no
1993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1994 ac_cpp
='$CPP $CPPFLAGS'
1995 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1996 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1997 cross_compiling
=$ac_cv_prog_cc_cross
1999 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2000 if test $ac_cv_prog_cc_works = no
; then
2001 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2003 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2004 echo "configure:2005: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2005 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2006 cross_compiling
=$ac_cv_prog_cc_cross
2008 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2009 echo "configure:2010: checking whether we are using GNU C" >&5
2010 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 cat > conftest.c
<<EOF
2018 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2025 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2027 if test $ac_cv_prog_gcc = yes; then
2033 ac_test_CFLAGS
="${CFLAGS+set}"
2034 ac_save_CFLAGS
="$CFLAGS"
2036 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2037 echo "configure:2038: checking whether ${CC-cc} accepts -g" >&5
2038 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 echo 'void f(){}' > conftest.c
2042 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2051 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2052 if test "$ac_test_CFLAGS" = set; then
2053 CFLAGS
="$ac_save_CFLAGS"
2054 elif test $ac_cv_prog_cc_g = yes; then
2055 if test "$GCC" = yes; then
2061 if test "$GCC" = yes; then
2069 # We must set the default linker to the linker used by gcc for the correct
2070 # operation of libtool. If LD is not defined and we are using gcc, try to
2071 # set the LD default to the ld used by gcc.
2072 if test -z "$LD"; then
2073 if test "$GCC" = yes; then
2076 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2078 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
2080 case $gcc_prog_ld in
2081 # Accept absolute paths.
2082 [\\/]* |
[A-Za-z
]:[\\/]*)
2083 LD
="$gcc_prog_ld" ;;
2089 CFLAGS
=${CFLAGS-"-g"}
2090 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
2093 if test $host != $build; then
2094 ac_tool_prefix
=${host_alias}-
2101 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2102 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2104 echo "configure:2105: checking for $ac_word" >&5
2105 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2108 if test -n "$GNATBIND"; then
2109 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2111 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2113 for ac_dir
in $ac_dummy; do
2114 test -z "$ac_dir" && ac_dir
=.
2115 if test -f $ac_dir/$ac_word; then
2116 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2123 GNATBIND
="$ac_cv_prog_GNATBIND"
2124 if test -n "$GNATBIND"; then
2125 echo "$ac_t""$GNATBIND" 1>&6
2127 echo "$ac_t""no" 1>&6
2131 if test -z "$ac_cv_prog_GNATBIND"; then
2132 if test -n "$ac_tool_prefix"; then
2133 # Extract the first word of "gnatbind", so it can be a program name with args.
2134 set dummy gnatbind
; ac_word
=$2
2135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2136 echo "configure:2137: checking for $ac_word" >&5
2137 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2140 if test -n "$GNATBIND"; then
2141 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2143 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2145 for ac_dir
in $ac_dummy; do
2146 test -z "$ac_dir" && ac_dir
=.
2147 if test -f $ac_dir/$ac_word; then
2148 ac_cv_prog_GNATBIND
="gnatbind"
2153 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2156 GNATBIND
="$ac_cv_prog_GNATBIND"
2157 if test -n "$GNATBIND"; then
2158 echo "$ac_t""$GNATBIND" 1>&6
2160 echo "$ac_t""no" 1>&6
2168 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2169 echo "configure:2170: checking whether compiler driver understands Ada" >&5
2170 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 cat >conftest.adb
<<EOF
2174 procedure conftest is begin null; end conftest;
2176 acx_cv_cc_gcc_supports_ada
=no
2177 # There is a bug in old released versions of GCC which causes the
2178 # driver to exit successfully when the appropriate language module
2179 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2180 # Therefore we must check for the error message as well as an
2181 # unsuccessful exit.
2182 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2183 # given a .adb file, but produce no object file. So we must check
2184 # if an object file was really produced to guard against this.
2185 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2186 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
2187 acx_cv_cc_gcc_supports_ada
=yes
2192 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2194 if test x
$GNATBIND != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
2200 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2201 echo "configure:2202: checking how to compare bootstrapped objects" >&5
2202 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2207 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2208 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
2209 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
2212 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
2215 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2216 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2219 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
2226 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2227 do_compare
="$gcc_cv_prog_cmp_skip"
2231 # Check for GMP and MPFR
2235 # Specify a location for mpfr
2236 # check for this first so it ends up on the link line before gmp.
2237 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2238 if test "${with_mpfr_dir+set}" = set; then
2239 withval
="$with_mpfr_dir"
2244 if test "x$with_mpfr_dir" != x
; then
2245 gmpinc
="-I$with_mpfr_dir"
2246 gmplibs
="$with_mpfr_dir/libmpfr.a"
2251 # Check whether --with-mpfr or --without-mpfr was given.
2252 if test "${with_mpfr+set}" = set; then
2253 withval
="$with_mpfr"
2258 if test "x$with_mpfr" != x
; then
2259 gmplibs
="-L$with_mpfr/lib $gmplibs"
2260 gmpinc
="-I$with_mpfr/include"
2263 # Specify a location for gmp
2264 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2265 if test "${with_gmp_dir+set}" = set; then
2266 withval
="$with_gmp_dir"
2271 if test "x$with_gmp_dir" != x
; then
2272 gmpinc
="$gmpinc -I$with_gmp_dir"
2273 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2274 gmplibs
="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2275 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2276 gmplibs
="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2278 # One of the later tests will catch the error if neither library is present.
2280 gmplibs
="$gmplibs -lgmp"
2283 # Check whether --with-gmp or --without-gmp was given.
2284 if test "${with_gmp+set}" = set; then
2290 if test "x$with_gmp" != x
; then
2291 gmplibs
="-L$with_gmp/lib $gmplibs"
2292 gmpinc
="-I$with_gmp/include $gmpinc"
2295 saved_CFLAGS
="$CFLAGS"
2296 CFLAGS
="$CFLAGS $gmpinc"
2297 # Check GMP actually works
2298 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2299 echo "configure:2300: checking for correct version of gmp.h" >&5
2300 cat > conftest.
$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2306 #if __GNU_MP_VERSION < 3
2312 if { (eval echo configure
:2313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2314 echo "$ac_t""yes" 1>&6
2316 echo "configure: failed program was:" >&5
2317 cat conftest.
$ac_ext >&5
2319 echo "$ac_t""no" 1>&6; have_gmp
=no
2323 if test x
"$have_gmp" = xyes
; then
2324 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2325 echo "configure:2326: checking for MPFR" >&5
2328 LIBS
="$LIBS $gmplibs"
2329 cat > conftest.
$ac_ext <<EOF
2330 #line 2331 "configure"
2331 #include "confdefs.h"
2335 mpfr_t n; mpfr_init(n);
2338 if { (eval echo configure
:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2340 echo "$ac_t""yes" 1>&6
2342 echo "configure: failed program was:" >&5
2343 cat conftest.
$ac_ext >&5
2345 echo "$ac_t""no" 1>&6; have_gmp
=no
2349 CFLAGS
="$saved_CFLAGS"
2352 # Flags needed for both GMP and/or MPFR
2356 # By default, C is the only stage 1 language.
2360 # Figure out what language subdirectories are present.
2361 # Look if the user specified --enable-languages="..."; if not, use
2362 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2364 # NB: embedded tabs in this IF block -- do not untabify
2365 if test -d ${srcdir}/gcc
; then
2366 if test x
"${enable_languages+set}" != xset
; then
2367 if test x
"${LANGUAGES+set}" = xset
; then
2368 enable_languages
="${LANGUAGES}"
2369 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
2371 enable_languages
=all
2374 if test x
"${enable_languages}" = x ||
2375 test x
"${enable_languages}" = xyes
;
2377 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
2381 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2383 # 'f95' is the old name for the 'fortran' language. We issue a warning
2384 # and make the substitution.
2385 case ,${enable_languages}, in
2387 echo configure.
in: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
2388 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2392 # First scan to see if an enabled language requires some other language.
2393 # We assume that a given config-lang.in will list all the language
2394 # front ends it requires, even if some are required indirectly.
2395 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2396 case ${lang_frag} in
2398 # The odd quoting in the next line works around
2399 # an apparent bug in bash 1.12 on linux.
2400 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2402 # From the config-lang.in, get $language, $lang_requires
2406 for other
in ${lang_requires} ; do
2407 case ,${enable_languages}, in
2411 echo " \`$other' language required by \`$language'; enabling" 1>&2
2412 enable_languages
="${enable_languages},${other}"
2420 new_enable_languages
=c
2421 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2422 potential_languages
=c
2424 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2425 case ${lang_frag} in
2427 # The odd quoting in the next line works around
2428 # an apparent bug in bash 1.12 on linux.
2429 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2431 # From the config-lang.in, get $language, $target_libs,
2432 # $lang_dirs, $boot_language, and $build_by_default
2440 potential_languages
="${potential_languages},${language}"
2441 # This is quite sensitive to the ordering of the case statement arms.
2442 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2444 echo "${lang_frag} doesn't set \$language." 1>&2
2448 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2451 *,${language},*:*:*:*)
2452 # Language was explicitly selected; include it.
2456 # 'all' was selected, but this is not a default language
2457 # so do not include it.
2461 # 'all' was selected and this is a default language; include it.
2469 # Disable languages that need GMP if it isn't available.
2470 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2471 *,${language},*:no
:yes)
2472 # Specifically requested language; tell them.
2473 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2481 # Disable a language that is unsupported by the target.
2482 case " $unsupported_languages " in
2488 case $add_this_lang in
2490 # Remove language-dependent dirs.
2491 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2494 new_enable_languages
="$new_enable_languages,$language"
2495 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
2496 case ${boot_language} in
2498 # Add to (comma-separated) list of stage 1 languages.
2499 stage1_languages
="${stage1_languages},${language}"
2508 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2509 if test "x$missing_languages" != x
; then
2510 { echo "configure: error:
2511 The following requested languages could not be built: ${missing_languages}
2512 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2515 if test "x$new_enable_languages" != "x$enable_languages"; then
2516 echo The following languages will be built
: ${new_enable_languages}
2518 enable_languages
="$new_enable_languages"
2519 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2522 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2523 # $build_configdirs and $target_configdirs.
2524 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2527 for dir
in .
$skipdirs $noconfigdirs ; do
2528 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2529 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2530 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2531 if test -r $srcdir/$dirname/configure
; then
2532 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2535 notsupp
="$notsupp $dir"
2539 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2540 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2541 if test -r $srcdir/$dirname/configure
; then
2542 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2545 notsupp
="$notsupp $dir"
2549 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2550 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2551 if test -r $srcdir/$dirname/configure
; then
2552 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2555 notsupp
="$notsupp $dir"
2561 # Sometimes the tools are distributed with libiberty but with no other
2562 # libraries. In that case, we don't want to build target-libiberty.
2563 if test -n "${target_configdirs}" ; then
2565 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2566 if test "$i" != "libiberty" ; then
2567 if test -r $srcdir/$i/configure
; then
2573 if test -z "${others}" ; then
2578 # Quietly strip out all directories which aren't configurable in this tree.
2579 # This relies on all configurable subdirectories being autoconfiscated, which
2581 build_configdirs_all
="$build_configdirs"
2583 for i
in ${build_configdirs_all} ; do
2584 j
=`echo $i | sed -e s/build-//g`
2585 if test -f ${srcdir}/$j/configure
; then
2586 build_configdirs
="${build_configdirs} $i"
2590 configdirs_all
="$configdirs"
2592 for i
in ${configdirs_all} ; do
2593 if test -f ${srcdir}/$i/configure
; then
2594 configdirs
="${configdirs} $i"
2598 target_configdirs_all
="$target_configdirs"
2600 for i
in ${target_configdirs_all} ; do
2601 j
=`echo $i | sed -e s/target-//g`
2602 if test -f ${srcdir}/$j/configure
; then
2603 target_configdirs
="${target_configdirs} $i"
2607 # Produce a warning message for the subdirs we can't configure.
2608 # This isn't especially interesting in the Cygnus tree, but in the individual
2609 # FSF releases, it's important to let people know when their machine isn't
2610 # supported by the one or two programs in a package.
2612 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2613 # If $appdirs is non-empty, at least one of those directories must still
2614 # be configured, or we error out. (E.g., if the gas release supports a
2615 # specified target in some subdirs but not the gas subdir, we shouldn't
2616 # pretend that all is well.)
2617 if test -n "$appdirs" ; then
2618 for dir
in $appdirs ; do
2619 if test -r $dir/Makefile.
in ; then
2620 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2624 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
2630 if test -n "$appdirs" ; then
2631 echo "*** This configuration is not supported by this package." 1>&2
2635 # Okay, some application will build, or we don't care to check. Still
2636 # notify of subdirs not getting built.
2637 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2638 echo " ${notsupp}" 1>&2
2639 echo " (Any other directories should still work fine.)" 1>&2
2649 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2650 if test "${with_build_sysroot+set}" = set; then
2651 withval
="$with_build_sysroot"
2652 if test x
"$withval" != x
; then
2653 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
2656 SYSROOT_CFLAGS_FOR_TARGET
=
2661 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2662 # the named directory are copied to $(tooldir)/sys-include.
2663 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
2664 if test x
${is_cross_compiler} = xno
; then
2665 echo 1>&2 '***' --with-headers is only supported when cross compiling
2668 if test x
"${with_headers}" != xyes
; then
2669 case "${exec_prefixoption}" in
2671 *) x
=${exec_prefix} ;;
2673 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2677 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2678 # the name directories are copied to $(tooldir)/lib. Multiple directories
2680 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2681 if test x
${is_cross_compiler} = xno
; then
2682 echo 1>&2 '***' --with-libs is only supported when cross compiling
2685 if test x
"${with_libs}" != xyes
; then
2686 # Copy the libraries in reverse order, so that files in the first named
2687 # library override files in subsequent libraries.
2688 case "${exec_prefixoption}" in
2690 *) x
=${exec_prefix} ;;
2692 for l
in ${with_libs}; do
2693 copy_dirs
="$l $x/${target_alias}/lib ${copy_dirs}"
2698 # Handle ${copy_dirs}
2699 set fnord
${copy_dirs}
2701 while test $# != 0 ; do
2702 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
2705 echo Copying
$1 to
$2
2707 # Use the install script to create the directory and all required
2708 # parent directories.
2709 if test -d $2 ; then
2713 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
2716 # Copy the directory, assuming we have tar.
2717 # FIXME: Should we use B in the second tar? Not all systems support it.
2718 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
2720 # It is the responsibility of the user to correctly adjust all
2721 # symlinks. If somebody can figure out how to handle them correctly
2722 # here, feel free to add the code.
2729 extra_arflags_for_target
=
2730 extra_nmflags_for_target
=
2731 extra_ranlibflags_for_target
=
2732 target_makefile_frag
=/dev
/null
2735 target_makefile_frag
="config/mt-netware"
2737 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
2738 target_makefile_frag
="config/mt-gnu"
2740 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
2741 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2742 # commands to handle both 32-bit and 64-bit objects. These flags are
2743 # harmless if we're using GNU nm or ar.
2744 extra_arflags_for_target
=" -X32_64"
2745 extra_nmflags_for_target
=" -B -X32_64"
2748 # ranlib from Darwin requires the -c flag to look at common symbols.
2749 extra_ranlibflags_for_target
=" -c"
2751 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
2752 target_makefile_frag
="config/mt-wince"
2756 alphaieee_frag
=/dev
/null
2759 # This just makes sure to use the -mieee option to build target libs.
2760 # This should probably be set individually by each library.
2761 alphaieee_frag
="config/mt-alphaieee"
2765 # If --enable-target-optspace always use -Os instead of -O2 to build
2766 # the target libraries, similarly if it is not specified, use -Os
2767 # on selected platforms.
2768 ospace_frag
=/dev
/null
2769 case "${enable_target_optspace}:${target}" in
2771 ospace_frag
="config/mt-ospace"
2774 ospace_frag
="config/mt-d30v"
2776 :m32r-
* |
:d10v-
* |
:fr30-
*)
2777 ospace_frag
="config/mt-ospace"
2782 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2786 # Set with_gnu_as and with_gnu_ld as appropriate.
2788 # This is done by determining whether or not the appropriate directory
2789 # is available, and by checking whether or not specific configurations
2790 # have requested that this magic not happen.
2792 # The command line options always override the explicit settings in
2793 # configure.in, and the settings in configure.in override this magic.
2795 # If the default for a toolchain is to use GNU as and ld, and you don't
2796 # want to do that, then you should use the --without-gnu-as and
2797 # --without-gnu-ld options for the configure script.
2799 if test x
${use_gnu_as} = x
&&
2800 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
2802 extra_host_args
="$extra_host_args --with-gnu-as"
2805 if test x
${use_gnu_ld} = x
&&
2806 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
2808 extra_host_args
="$extra_host_args --with-gnu-ld"
2811 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2812 # can detect this case.
2814 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
2816 extra_host_args
="$extra_host_args --with-newlib"
2819 # Default to using --with-stabs for certain targets.
2820 if test x
${with_stabs} = x
; then
2824 mips
*-*-* | alpha
*-*-osf*)
2826 extra_host_args
="${extra_host_args} --with-stabs"
2831 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2832 # them automatically.
2835 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2839 # Some systems (e.g., one of the i386-aix systems the gas testers are
2840 # using) don't handle "\$" correctly, so don't use it here.
2841 tooldir
='${exec_prefix}'/${target_alias}
2842 build_tooldir
=${tooldir}
2844 # Generate default definitions for YACC, M4, LEX and other programs that run
2845 # on the build machine. These are used if the Makefile can't locate these
2846 # programs in objdir.
2847 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2848 for ac_prog
in bison
2850 # Extract the first word of "$ac_prog", so it can be a program name with args.
2851 set dummy
$ac_prog; ac_word
=$2
2852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2853 echo "configure:2854: checking for $ac_word" >&5
2854 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2857 if test -n "$CONFIGURED_BISON"; then
2858 ac_cv_prog_CONFIGURED_BISON
="$CONFIGURED_BISON" # Let the user override the test.
2860 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2862 for ac_dir
in $ac_dummy; do
2863 test -z "$ac_dir" && ac_dir
=.
2864 if test -f $ac_dir/$ac_word; then
2865 ac_cv_prog_CONFIGURED_BISON
="$ac_prog"
2872 CONFIGURED_BISON
="$ac_cv_prog_CONFIGURED_BISON"
2873 if test -n "$CONFIGURED_BISON"; then
2874 echo "$ac_t""$CONFIGURED_BISON" 1>&6
2876 echo "$ac_t""no" 1>&6
2879 test -n "$CONFIGURED_BISON" && break
2881 test -n "$CONFIGURED_BISON" || CONFIGURED_BISON
="$MISSING bison"
2883 for ac_prog
in 'bison -y' byacc
yacc
2885 # Extract the first word of "$ac_prog", so it can be a program name with args.
2886 set dummy
$ac_prog; ac_word
=$2
2887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2888 echo "configure:2889: checking for $ac_word" >&5
2889 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2892 if test -n "$CONFIGURED_YACC"; then
2893 ac_cv_prog_CONFIGURED_YACC
="$CONFIGURED_YACC" # Let the user override the test.
2895 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2897 for ac_dir
in $ac_dummy; do
2898 test -z "$ac_dir" && ac_dir
=.
2899 if test -f $ac_dir/$ac_word; then
2900 ac_cv_prog_CONFIGURED_YACC
="$ac_prog"
2907 CONFIGURED_YACC
="$ac_cv_prog_CONFIGURED_YACC"
2908 if test -n "$CONFIGURED_YACC"; then
2909 echo "$ac_t""$CONFIGURED_YACC" 1>&6
2911 echo "$ac_t""no" 1>&6
2914 test -n "$CONFIGURED_YACC" && break
2916 test -n "$CONFIGURED_YACC" || CONFIGURED_YACC
="$MISSING bison -y"
2918 for ac_prog
in gm4 gnum4
m4
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921 set dummy
$ac_prog; ac_word
=$2
2922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2923 echo "configure:2924: checking for $ac_word" >&5
2924 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2927 if test -n "$CONFIGURED_M4"; then
2928 ac_cv_prog_CONFIGURED_M4
="$CONFIGURED_M4" # Let the user override the test.
2930 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2932 for ac_dir
in $ac_dummy; do
2933 test -z "$ac_dir" && ac_dir
=.
2934 if test -f $ac_dir/$ac_word; then
2935 ac_cv_prog_CONFIGURED_M4
="$ac_prog"
2942 CONFIGURED_M4
="$ac_cv_prog_CONFIGURED_M4"
2943 if test -n "$CONFIGURED_M4"; then
2944 echo "$ac_t""$CONFIGURED_M4" 1>&6
2946 echo "$ac_t""no" 1>&6
2949 test -n "$CONFIGURED_M4" && break
2951 test -n "$CONFIGURED_M4" || CONFIGURED_M4
="$MISSING m4"
2955 # Extract the first word of "$ac_prog", so it can be a program name with args.
2956 set dummy
$ac_prog; ac_word
=$2
2957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2958 echo "configure:2959: checking for $ac_word" >&5
2959 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2962 if test -n "$CONFIGURED_FLEX"; then
2963 ac_cv_prog_CONFIGURED_FLEX
="$CONFIGURED_FLEX" # Let the user override the test.
2965 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2967 for ac_dir
in $ac_dummy; do
2968 test -z "$ac_dir" && ac_dir
=.
2969 if test -f $ac_dir/$ac_word; then
2970 ac_cv_prog_CONFIGURED_FLEX
="$ac_prog"
2977 CONFIGURED_FLEX
="$ac_cv_prog_CONFIGURED_FLEX"
2978 if test -n "$CONFIGURED_FLEX"; then
2979 echo "$ac_t""$CONFIGURED_FLEX" 1>&6
2981 echo "$ac_t""no" 1>&6
2984 test -n "$CONFIGURED_FLEX" && break
2986 test -n "$CONFIGURED_FLEX" || CONFIGURED_FLEX
="$MISSING flex"
2988 for ac_prog
in flex
lex
2990 # Extract the first word of "$ac_prog", so it can be a program name with args.
2991 set dummy
$ac_prog; ac_word
=$2
2992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2993 echo "configure:2994: checking for $ac_word" >&5
2994 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2997 if test -n "$CONFIGURED_LEX"; then
2998 ac_cv_prog_CONFIGURED_LEX
="$CONFIGURED_LEX" # Let the user override the test.
3000 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3002 for ac_dir
in $ac_dummy; do
3003 test -z "$ac_dir" && ac_dir
=.
3004 if test -f $ac_dir/$ac_word; then
3005 ac_cv_prog_CONFIGURED_LEX
="$ac_prog"
3012 CONFIGURED_LEX
="$ac_cv_prog_CONFIGURED_LEX"
3013 if test -n "$CONFIGURED_LEX"; then
3014 echo "$ac_t""$CONFIGURED_LEX" 1>&6
3016 echo "$ac_t""no" 1>&6
3019 test -n "$CONFIGURED_LEX" && break
3021 test -n "$CONFIGURED_LEX" || CONFIGURED_LEX
="$MISSING flex"
3023 for ac_prog
in makeinfo
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026 set dummy
$ac_prog; ac_word
=$2
3027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3028 echo "configure:3029: checking for $ac_word" >&5
3029 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 if test -n "$CONFIGURED_MAKEINFO"; then
3033 ac_cv_prog_CONFIGURED_MAKEINFO
="$CONFIGURED_MAKEINFO" # Let the user override the test.
3035 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3037 for ac_dir
in $ac_dummy; do
3038 test -z "$ac_dir" && ac_dir
=.
3039 if test -f $ac_dir/$ac_word; then
3040 ac_cv_prog_CONFIGURED_MAKEINFO
="$ac_prog"
3047 CONFIGURED_MAKEINFO
="$ac_cv_prog_CONFIGURED_MAKEINFO"
3048 if test -n "$CONFIGURED_MAKEINFO"; then
3049 echo "$ac_t""$CONFIGURED_MAKEINFO" 1>&6
3051 echo "$ac_t""no" 1>&6
3054 test -n "$CONFIGURED_MAKEINFO" && break
3056 test -n "$CONFIGURED_MAKEINFO" || CONFIGURED_MAKEINFO
="$MISSING makeinfo"
3059 # Create a .gdbinit file which runs the one in srcdir
3060 # and tells GDB to look there for source files.
3062 if test -r ${srcdir}/.gdbinit
; then
3065 *) cat > .
/.gdbinit
<<EOF
3069 source ${srcdir}/.gdbinit
3075 # Make sure that the compiler is able to generate an executable. If it
3076 # can't, we are probably in trouble. We don't care whether we can run the
3077 # executable--we might be using a cross compiler--we only care whether it
3078 # can be created. At this point the main configure script has set CC.
3080 echo "int main () { return 0; }" > conftest.c
3081 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3082 if test $?
= 0 ; then
3083 if test -s conftest ||
test -s conftest.exe
; then
3089 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3090 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3097 # The Solaris /usr/ucb/cc compiler does not appear to work.
3099 sparc-sun-solaris2
*)
3100 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
3101 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3103 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
3104 if test -d /opt
/cygnus
/bin
; then
3105 if test "$could_use" = "" ; then
3106 could_use
="/opt/cygnus/bin"
3108 could_use
="$could_use or /opt/cygnus/bin"
3111 if test "$could_use" = "" ; then
3112 echo "Warning: compilation may fail because you're using"
3113 echo "/usr/ucb/cc. You should change your PATH or CC "
3114 echo "variable and rerun configure."
3116 echo "Warning: compilation may fail because you're using"
3117 echo "/usr/ucb/cc, when you should use the C compiler from"
3118 echo "$could_use. You should change your"
3119 echo "PATH or CC variable and rerun configure."
3126 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
3127 *-*-darwin* |
*-*-rhapsody* ) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
3128 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
3131 # Record target_configdirs and the configure arguments for target and
3132 # build configuration in Makefile.
3133 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3134 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3136 # Determine whether gdb needs tk/tcl or not.
3137 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3138 # and in that case we want gdb to be built without tk. Ugh!
3139 # In fact I believe gdb is the *only* package directly dependent on tk,
3140 # so we should be able to put the 'maybe's in unconditionally and
3141 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3142 # 100% sure that that's safe though.
3144 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3145 case "$enable_gdbtk" in
3149 GDB_TK
="${gdb_tk}" ;;
3151 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3152 # distro. Eventually someone will fix this and move Insight, nee
3153 # gdbtk to a separate directory.
3154 if test -d ${srcdir}/gdb
/gdbtk
; then
3162 # Strip out unwanted targets.
3164 # While at that, we remove Makefiles if we were started for recursive
3165 # configuration, so that the top-level Makefile reconfigures them,
3166 # like we used to do when configure itself was recursive.
3168 # Loop over modules. $extrasub must be used with care, limiting as
3169 # much as possible the usage of range addresses. That's because autoconf
3170 # splits the sed script to overcome limits in the number of commands,
3171 # and relying on carefully-timed sed passes may turn out to be very hard
3172 # to maintain later. In this particular case, you just have to be careful
3173 # not to nest @if/@endif pairs, because configure will not warn you at all.
3175 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3176 if test "${enable_bootstrap+set}" = set; then
3177 enableval
="$enable_bootstrap"
3180 enable_bootstrap
=default
3184 # Issue errors and warnings for invalid/strange bootstrap combinations.
3185 case "$configdirs" in
3186 *gcc
*) have_compiler
=yes ;;
3187 *) have_compiler
=no
;;
3190 case "$have_compiler:$host:$target:$enable_bootstrap" in
3193 # Default behavior. (We'll) enable bootstrap if we have a compiler
3194 # and we are in a native configuration.
3195 yes:$build:$build:default
)
3196 # This will become 'yes'
3197 enable_bootstrap
=no
;;
3200 enable_bootstrap
=no
;;
3202 # We have a compiler and we are in a native configuration, bootstrap is ok
3203 yes:$build:$build:yes |
yes:$build:$build:lean
)
3206 # Other configurations, but we have a compiler. Assume the user knows
3208 yes:*:*:yes |
yes:*:*:lean
)
3209 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3212 # No compiler: if they passed --enable-bootstrap explicitly, fail
3213 no
:*:*:yes | no
:*:*:lean
)
3214 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3216 # Fail if wrong command line
3218 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3222 # Adjust the toplevel makefile according to whether bootstrap was selected.
3223 case "$enable_bootstrap" in
3226 bootstrap_suffix
=bootstrap
;;
3229 bootstrap_suffix
=bootstrap
;;
3231 bootstrap_suffix
=no-bootstrap
;;
3235 for module
in ${build_configdirs} ; do
3236 if test -z "${no_recursion}" \
3237 && test -f ${build_subdir}/${module}/Makefile
; then
3238 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3239 rm -f ${build_subdir}/${module}/Makefile
3242 /^@if build-$module\$/d
3243 /^@endif build-$module\$/d
3244 /^@if build-$module-$bootstrap_suffix\$/d
3245 /^@endif build-$module-$bootstrap_suffix\$/d"
3247 for module
in ${configdirs} ; do
3248 if test -z "${no_recursion}" \
3249 && test -f ${module}/Makefile
; then
3250 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3251 rm -f ${module}/Makefile
3255 /^@endif $module\$/d
3256 /^@if $module-$bootstrap_suffix\$/d
3257 /^@endif $module-$bootstrap_suffix\$/d"
3259 for module
in ${target_configdirs} ; do
3260 if test -z "${no_recursion}" \
3261 && test -f ${target_subdir}/${module}/Makefile
; then
3262 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3263 rm -f ${target_subdir}/${module}/Makefile
3266 /^@if target-$module\$/d
3267 /^@endif target-$module\$/d
3268 /^@if target-$module-$bootstrap_suffix\$/d
3269 /^@endif target-$module-$bootstrap_suffix\$/d"
3273 /^@if /,/^@endif /d"
3275 # Create the serialization dependencies. This uses a temporary file.
3277 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3278 if test "${enable_serial_configure+set}" = set; then
3279 enableval
="$enable_serial_configure"
3284 case ${enable_serial_configure} in
3286 enable_serial_build_configure
=yes
3287 enable_serial_host_configure
=yes
3288 enable_serial_target_configure
=yes
3292 # These force 'configure's to be done one at a time, to avoid problems
3293 # with contention over a shared config.cache.
3295 echo '# serdep.tmp' > serdep.tmp
3297 test "x${enable_serial_build_configure}" = xyes
&&
3298 for item
in ${build_configdirs} ; do
3301 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
3306 test "x${enable_serial_host_configure}" = xyes
&&
3307 for item
in ${configdirs} ; do
3310 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
3315 test "x${enable_serial_target_configure}" = xyes
&&
3316 for item
in ${target_configdirs} ; do
3319 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
3323 serialization_dependencies
=serdep.tmp
3326 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3327 # target and nonopt. These are the ones we might not want to pass
3328 # down to subconfigures. Also strip program-prefix, program-suffix,
3329 # and program-transform-name, so that we can pass down a consistent
3330 # program-transform-name. If autoconf has put single quotes around
3331 # any of these arguments (because they contain shell metacharacters)
3332 # then this will fail; in practice this only happens for
3333 # --program-transform-name, so be sure to override --program-transform-name
3334 # at the end of the argument list.
3335 # These will be expanded by make, so quote '$'.
3336 cat <<\EOF_SED
> conftestsed
3338 s
/ --c[a-z-
]*[= ][^
]*//g
3339 s
/ --sr[a-z-
]*[= ][^
]*//g
3340 s
/ --ho[a-z-
]*[= ][^
]*//g
3341 s
/ --bu[a-z-
]*[= ][^
]*//g
3342 s
/ --t[a-z-
]*[= ][^
]*//g
3343 s
/ --program-[pst
][a-z-
]*[= ][^
]*//g
3344 s
/ -cache-file[= ][^
]*//g
3345 s
/ -srcdir[= ][^
]*//g
3346 s
/ -host[= ][^
]*//g
3347 s
/ -build[= ][^
]*//g
3348 s
/ -target[= ][^
]*//g
3349 s
/ -program-prefix[= ][^
]*//g
3350 s
/ -program-suffix[= ][^
]*//g
3351 s
/ -program-transform-name[= ][^
]*//g
3356 sed -f conftestsed <<EOF_SED > conftestsed.out
3357 ${ac_configure_args}
3359 baseargs=`cat conftestsed.out`
3360 rm -f conftestsed conftestsed.out
3362 # Add in --program-transform-name, after --program-prefix and
3363 # --program-suffix have been applied to it. Autoconf has already
3364 # doubled dollar signs and backslashes in program_transform_name; we want
3365 # the backslashes un-doubled, and then the entire thing wrapped in single
3366 # quotes, because this will be expanded first by make and then by the shell.
3367 # Also, because we want to override the logic in subdir configure scripts to
3368 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3369 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3370 ${program_transform_name}
3372 gcc_transform_name=`cat conftestsed.out`
3373 rm -f conftestsed.out
3374 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3376 # For the build-side libraries, we just need to pretend we're native
,
3377 # and not use the same cache file. Multilibs are neither needed nor
3379 build_configargs
="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3381 # For host modules, accept cache file option, or specification as blank.
3382 case "${cache_file}" in
3384 cache_file_option
="" ;;
3385 /* |
[A-Za-z
]:[\\/]* ) # absolute path
3386 cache_file_option
="--cache-file=${cache_file}" ;;
3388 cache_file_option
="--cache-file=../${cache_file}" ;;
3391 # Host dirs don't like to share a cache file either, horribly enough.
3392 # This seems to be due to autoconf 2.5x stupidity.
3393 host_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3395 target_configargs
=${baseargs}
3397 # Passing a --with-cross-host argument lets the target libraries know
3398 # whether they are being built with a cross-compiler or being built
3399 # native. However, it would be better to use other mechanisms to make the
3400 # sorts of decisions they want to make on this basis. Please consider
3401 # this option to be deprecated. FIXME.
3402 if test x
${is_cross_compiler} = xyes
; then
3403 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3406 # Default to --enable-multilib.
3407 if test x
${enable_multilib} = x
; then
3408 target_configargs
="--enable-multilib ${target_configargs}"
3411 # Pass --with-newlib if appropriate. Note that target_configdirs has
3412 # changed from the earlier setting of with_newlib.
3413 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3414 target_configargs
="--with-newlib ${target_configargs}"
3417 # Different target subdirs use different values of certain variables
3418 # (notably CXX). Worse, multilibs use *lots* of different values.
3419 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3420 # it doesn't automatically accept command-line overrides of them.
3421 # This means it's not safe for target subdirs to share a cache file,
3422 # which is disgusting, but there you have it. Hopefully this can be
3423 # fixed in future. It's still worthwhile to use a cache file for each
3424 # directory. I think.
3426 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3427 # We need to pass --target, as newer autoconf's requires consistency
3428 # for target_alias and gcc doesn't manage it consistently.
3429 target_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3432 case " $target_configdirs " in
3434 case " $target_configargs " in
3435 *" --with-newlib "*)
3438 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' ;;
3441 # If we're not building GCC, don't discard standard headers.
3442 if test -d ${srcdir}/gcc
; then
3443 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3445 if test "${build}" != "${host}"; then
3446 # On Canadian crosses, CC_FOR_TARGET will have already been set
3447 # by `configure', so we won't have an opportunity to add -Bgcc/
3448 # to it. This is right: we don't want to search that directory
3449 # for binaries, but we want the header files in there, so add
3451 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3453 # Someone might think of using the pre-installed headers on
3454 # Canadian crosses, in case the installed compiler is not fully
3455 # compatible with the compiler being built. In this case, it
3456 # would be better to flag an error than risking having
3457 # incompatible object files being constructed. We can't
3458 # guarantee that an error will be flagged, but let's hope the
3459 # compiler will do it, when presented with incompatible header
3464 case "${target}-${is_cross_compiler}" in
3465 i
[3456789]86-*-linux*-no)
3466 # Here host == target, so we don't need to build gcc,
3467 # so we don't want to discard standard headers.
3468 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3471 # If we're building newlib, use its generic headers last, but search
3472 # for any libc-related directories first (so make it the last -B
3474 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3482 # Allow the user to override the flags for
3483 # our build compiler if desired.
3484 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3486 # On Canadian crosses, we'll be searching the right directories for
3487 # the previously-installed cross compiler, so don't bother to add
3488 # flags for directories within the install tree of the compiler
3489 # being built; programs in there won't even run.
3490 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3491 # Search for pre-installed headers if nothing else fits.
3492 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3495 if test "x
${use_gnu_ld}" = x &&
3496 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3497 # Arrange for us to find uninstalled linker scripts.
3498 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3501 # Makefile fragments.
3502 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3504 eval fragval=\$$frag
3505 if test $fragval != /dev/null; then
3506 eval $frag=${srcdir}/$fragval
3514 # Miscellanea: directories, flags, etc.
3522 # Build module lists & subconfigure args.
3526 # Host module lists & subconfigure args.
3530 # Target module lists & subconfigure args.
3540 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3541 ncn_target_tool_prefix=
3542 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3544 for ncn_progname in ar; do
3545 if test -n "$ncn_tool_prefix"; then
3546 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3547 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3548 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3549 echo "configure
:3550: checking
for $ac_word" >&5
3550 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3551 echo $ac_n "(cached
) $ac_c" 1>&6
3553 if test -n "$AR"; then
3554 ac_cv_prog_AR="$AR" # Let the user override the test.
3556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3558 for ac_dir in $ac_dummy; do
3559 test -z "$ac_dir" && ac_dir=.
3560 if test -f $ac_dir/$ac_word; then
3561 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3569 if test -n "$AR"; then
3570 echo "$ac_t""$AR" 1>&6
3572 echo "$ac_t""no
" 1>&6
3576 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3578 set dummy ${ncn_progname}; ac_word=$2
3579 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3580 echo "configure
:3581: checking
for $ac_word" >&5
3581 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3582 echo $ac_n "(cached
) $ac_c" 1>&6
3584 if test -n "$AR"; then
3585 ac_cv_prog_AR="$AR" # Let the user override the test.
3587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3589 for ac_dir in $ac_dummy; do
3590 test -z "$ac_dir" && ac_dir=.
3591 if test -f $ac_dir/$ac_word; then
3592 ac_cv_prog_AR="${ncn_progname}"
3600 if test -n "$AR"; then
3601 echo "$ac_t""$AR" 1>&6
3603 echo "$ac_t""no
" 1>&6
3607 test -n "$ac_cv_prog_AR" && break
3610 if test -z "$ac_cv_prog_AR" ; then
3612 if test $build = $host ; then
3615 AR="${ncn_tool_prefix}$2"
3619 for ncn_progname in as; do
3620 if test -n "$ncn_tool_prefix"; then
3621 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3622 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3623 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3624 echo "configure
:3625: checking
for $ac_word" >&5
3625 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3626 echo $ac_n "(cached
) $ac_c" 1>&6
3628 if test -n "$AS"; then
3629 ac_cv_prog_AS="$AS" # Let the user override the test.
3631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3633 for ac_dir in $ac_dummy; do
3634 test -z "$ac_dir" && ac_dir=.
3635 if test -f $ac_dir/$ac_word; then
3636 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3644 if test -n "$AS"; then
3645 echo "$ac_t""$AS" 1>&6
3647 echo "$ac_t""no
" 1>&6
3651 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3653 set dummy ${ncn_progname}; ac_word=$2
3654 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3655 echo "configure
:3656: checking
for $ac_word" >&5
3656 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3657 echo $ac_n "(cached
) $ac_c" 1>&6
3659 if test -n "$AS"; then
3660 ac_cv_prog_AS="$AS" # Let the user override the test.
3662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3664 for ac_dir in $ac_dummy; do
3665 test -z "$ac_dir" && ac_dir=.
3666 if test -f $ac_dir/$ac_word; then
3667 ac_cv_prog_AS="${ncn_progname}"
3675 if test -n "$AS"; then
3676 echo "$ac_t""$AS" 1>&6
3678 echo "$ac_t""no
" 1>&6
3682 test -n "$ac_cv_prog_AS" && break
3685 if test -z "$ac_cv_prog_AS" ; then
3687 if test $build = $host ; then
3690 AS="${ncn_tool_prefix}$2"
3694 for ncn_progname in dlltool; do
3695 if test -n "$ncn_tool_prefix"; then
3696 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3697 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3698 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3699 echo "configure
:3700: checking
for $ac_word" >&5
3700 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3701 echo $ac_n "(cached
) $ac_c" 1>&6
3703 if test -n "$DLLTOOL"; then
3704 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3708 for ac_dir in $ac_dummy; do
3709 test -z "$ac_dir" && ac_dir=.
3710 if test -f $ac_dir/$ac_word; then
3711 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3718 DLLTOOL="$ac_cv_prog_DLLTOOL"
3719 if test -n "$DLLTOOL"; then
3720 echo "$ac_t""$DLLTOOL" 1>&6
3722 echo "$ac_t""no
" 1>&6
3726 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3728 set dummy ${ncn_progname}; ac_word=$2
3729 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3730 echo "configure
:3731: checking
for $ac_word" >&5
3731 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3732 echo $ac_n "(cached
) $ac_c" 1>&6
3734 if test -n "$DLLTOOL"; then
3735 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3739 for ac_dir in $ac_dummy; do
3740 test -z "$ac_dir" && ac_dir=.
3741 if test -f $ac_dir/$ac_word; then
3742 ac_cv_prog_DLLTOOL="${ncn_progname}"
3749 DLLTOOL="$ac_cv_prog_DLLTOOL"
3750 if test -n "$DLLTOOL"; then
3751 echo "$ac_t""$DLLTOOL" 1>&6
3753 echo "$ac_t""no
" 1>&6
3757 test -n "$ac_cv_prog_DLLTOOL" && break
3760 if test -z "$ac_cv_prog_DLLTOOL" ; then
3762 if test $build = $host ; then
3765 DLLTOOL="${ncn_tool_prefix}$2"
3769 for ncn_progname in ld; do
3770 if test -n "$ncn_tool_prefix"; then
3771 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3772 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3773 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3774 echo "configure
:3775: checking
for $ac_word" >&5
3775 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3776 echo $ac_n "(cached
) $ac_c" 1>&6
3778 if test -n "$LD"; then
3779 ac_cv_prog_LD="$LD" # Let the user override the test.
3781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3783 for ac_dir in $ac_dummy; do
3784 test -z "$ac_dir" && ac_dir=.
3785 if test -f $ac_dir/$ac_word; then
3786 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3794 if test -n "$LD"; then
3795 echo "$ac_t""$LD" 1>&6
3797 echo "$ac_t""no
" 1>&6
3801 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
3802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3803 set dummy ${ncn_progname}; ac_word=$2
3804 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3805 echo "configure
:3806: checking
for $ac_word" >&5
3806 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3807 echo $ac_n "(cached
) $ac_c" 1>&6
3809 if test -n "$LD"; then
3810 ac_cv_prog_LD="$LD" # Let the user override the test.
3812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3814 for ac_dir in $ac_dummy; do
3815 test -z "$ac_dir" && ac_dir=.
3816 if test -f $ac_dir/$ac_word; then
3817 ac_cv_prog_LD="${ncn_progname}"
3825 if test -n "$LD"; then
3826 echo "$ac_t""$LD" 1>&6
3828 echo "$ac_t""no
" 1>&6
3832 test -n "$ac_cv_prog_LD" && break
3835 if test -z "$ac_cv_prog_LD" ; then
3837 if test $build = $host ; then
3840 LD="${ncn_tool_prefix}$2"
3844 for ncn_progname in nm; do
3845 if test -n "$ncn_tool_prefix"; then
3846 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3847 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3848 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3849 echo "configure
:3850: checking
for $ac_word" >&5
3850 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3851 echo $ac_n "(cached
) $ac_c" 1>&6
3853 if test -n "$NM"; then
3854 ac_cv_prog_NM="$NM" # Let the user override the test.
3856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3858 for ac_dir in $ac_dummy; do
3859 test -z "$ac_dir" && ac_dir=.
3860 if test -f $ac_dir/$ac_word; then
3861 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
3869 if test -n "$NM"; then
3870 echo "$ac_t""$NM" 1>&6
3872 echo "$ac_t""no
" 1>&6
3876 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
3877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3878 set dummy ${ncn_progname}; ac_word=$2
3879 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3880 echo "configure
:3881: checking
for $ac_word" >&5
3881 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3882 echo $ac_n "(cached
) $ac_c" 1>&6
3884 if test -n "$NM"; then
3885 ac_cv_prog_NM="$NM" # Let the user override the test.
3887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3889 for ac_dir in $ac_dummy; do
3890 test -z "$ac_dir" && ac_dir=.
3891 if test -f $ac_dir/$ac_word; then
3892 ac_cv_prog_NM="${ncn_progname}"
3900 if test -n "$NM"; then
3901 echo "$ac_t""$NM" 1>&6
3903 echo "$ac_t""no
" 1>&6
3907 test -n "$ac_cv_prog_NM" && break
3910 if test -z "$ac_cv_prog_NM" ; then
3912 if test $build = $host ; then
3915 NM="${ncn_tool_prefix}$2"
3919 for ncn_progname in ranlib; do
3920 if test -n "$ncn_tool_prefix"; then
3921 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3922 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3923 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3924 echo "configure
:3925: checking
for $ac_word" >&5
3925 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3926 echo $ac_n "(cached
) $ac_c" 1>&6
3928 if test -n "$RANLIB"; then
3929 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3933 for ac_dir in $ac_dummy; do
3934 test -z "$ac_dir" && ac_dir=.
3935 if test -f $ac_dir/$ac_word; then
3936 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
3943 RANLIB="$ac_cv_prog_RANLIB"
3944 if test -n "$RANLIB"; then
3945 echo "$ac_t""$RANLIB" 1>&6
3947 echo "$ac_t""no
" 1>&6
3951 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
3952 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3953 set dummy ${ncn_progname}; ac_word=$2
3954 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3955 echo "configure
:3956: checking
for $ac_word" >&5
3956 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3957 echo $ac_n "(cached
) $ac_c" 1>&6
3959 if test -n "$RANLIB"; then
3960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3964 for ac_dir in $ac_dummy; do
3965 test -z "$ac_dir" && ac_dir=.
3966 if test -f $ac_dir/$ac_word; then
3967 ac_cv_prog_RANLIB="${ncn_progname}"
3974 RANLIB="$ac_cv_prog_RANLIB"
3975 if test -n "$RANLIB"; then
3976 echo "$ac_t""$RANLIB" 1>&6
3978 echo "$ac_t""no
" 1>&6
3982 test -n "$ac_cv_prog_RANLIB" && break
3985 if test -z "$ac_cv_prog_RANLIB" ; then
3989 for ncn_progname in windres; do
3990 if test -n "$ncn_tool_prefix"; then
3991 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3992 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3993 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3994 echo "configure
:3995: checking
for $ac_word" >&5
3995 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3996 echo $ac_n "(cached
) $ac_c" 1>&6
3998 if test -n "$WINDRES"; then
3999 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4003 for ac_dir in $ac_dummy; do
4004 test -z "$ac_dir" && ac_dir=.
4005 if test -f $ac_dir/$ac_word; then
4006 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4013 WINDRES="$ac_cv_prog_WINDRES"
4014 if test -n "$WINDRES"; then
4015 echo "$ac_t""$WINDRES" 1>&6
4017 echo "$ac_t""no
" 1>&6
4021 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4022 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4023 set dummy ${ncn_progname}; ac_word=$2
4024 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4025 echo "configure
:4026: checking
for $ac_word" >&5
4026 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4027 echo $ac_n "(cached
) $ac_c" 1>&6
4029 if test -n "$WINDRES"; then
4030 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4034 for ac_dir in $ac_dummy; do
4035 test -z "$ac_dir" && ac_dir=.
4036 if test -f $ac_dir/$ac_word; then
4037 ac_cv_prog_WINDRES="${ncn_progname}"
4044 WINDRES="$ac_cv_prog_WINDRES"
4045 if test -n "$WINDRES"; then
4046 echo "$ac_t""$WINDRES" 1>&6
4048 echo "$ac_t""no
" 1>&6
4052 test -n "$ac_cv_prog_WINDRES" && break
4055 if test -z "$ac_cv_prog_WINDRES" ; then
4057 if test $build = $host ; then
4060 WINDRES="${ncn_tool_prefix}$2"
4064 for ncn_progname in objcopy; do
4065 if test -n "$ncn_tool_prefix"; then
4066 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4067 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4068 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4069 echo "configure
:4070: checking
for $ac_word" >&5
4070 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4071 echo $ac_n "(cached
) $ac_c" 1>&6
4073 if test -n "$OBJCOPY"; then
4074 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4078 for ac_dir in $ac_dummy; do
4079 test -z "$ac_dir" && ac_dir=.
4080 if test -f $ac_dir/$ac_word; then
4081 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4088 OBJCOPY="$ac_cv_prog_OBJCOPY"
4089 if test -n "$OBJCOPY"; then
4090 echo "$ac_t""$OBJCOPY" 1>&6
4092 echo "$ac_t""no
" 1>&6
4096 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4098 set dummy ${ncn_progname}; ac_word=$2
4099 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4100 echo "configure
:4101: checking
for $ac_word" >&5
4101 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4102 echo $ac_n "(cached
) $ac_c" 1>&6
4104 if test -n "$OBJCOPY"; then
4105 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4109 for ac_dir in $ac_dummy; do
4110 test -z "$ac_dir" && ac_dir=.
4111 if test -f $ac_dir/$ac_word; then
4112 ac_cv_prog_OBJCOPY="${ncn_progname}"
4119 OBJCOPY="$ac_cv_prog_OBJCOPY"
4120 if test -n "$OBJCOPY"; then
4121 echo "$ac_t""$OBJCOPY" 1>&6
4123 echo "$ac_t""no
" 1>&6
4127 test -n "$ac_cv_prog_OBJCOPY" && break
4130 if test -z "$ac_cv_prog_OBJCOPY" ; then
4132 if test $build = $host ; then
4135 OBJCOPY="${ncn_tool_prefix}$2"
4139 for ncn_progname in objdump; do
4140 if test -n "$ncn_tool_prefix"; then
4141 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4142 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4143 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4144 echo "configure
:4145: checking
for $ac_word" >&5
4145 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4146 echo $ac_n "(cached
) $ac_c" 1>&6
4148 if test -n "$OBJDUMP"; then
4149 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4153 for ac_dir in $ac_dummy; do
4154 test -z "$ac_dir" && ac_dir=.
4155 if test -f $ac_dir/$ac_word; then
4156 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4163 OBJDUMP="$ac_cv_prog_OBJDUMP"
4164 if test -n "$OBJDUMP"; then
4165 echo "$ac_t""$OBJDUMP" 1>&6
4167 echo "$ac_t""no
" 1>&6
4171 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4173 set dummy ${ncn_progname}; ac_word=$2
4174 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4175 echo "configure
:4176: checking
for $ac_word" >&5
4176 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4177 echo $ac_n "(cached
) $ac_c" 1>&6
4179 if test -n "$OBJDUMP"; then
4180 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4184 for ac_dir in $ac_dummy; do
4185 test -z "$ac_dir" && ac_dir=.
4186 if test -f $ac_dir/$ac_word; then
4187 ac_cv_prog_OBJDUMP="${ncn_progname}"
4194 OBJDUMP="$ac_cv_prog_OBJDUMP"
4195 if test -n "$OBJDUMP"; then
4196 echo "$ac_t""$OBJDUMP" 1>&6
4198 echo "$ac_t""no
" 1>&6
4202 test -n "$ac_cv_prog_OBJDUMP" && break
4205 if test -z "$ac_cv_prog_OBJDUMP" ; then
4207 if test $build = $host ; then
4210 OBJDUMP="${ncn_tool_prefix}$2"
4220 # Target tools. Do the tests using the names they may have passed in
4221 # the environment, then move it to CONFIGURED_*_FOR_TARGET.
4222 for ncn_progname in ar; do
4223 if test -n "$ncn_target_tool_prefix"; then
4224 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4225 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4226 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4227 echo "configure
:4228: checking
for $ac_word" >&5
4228 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4229 echo $ac_n "(cached
) $ac_c" 1>&6
4231 if test -n "$AR_FOR_TARGET"; then
4232 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4236 for ac_dir in $ac_dummy; do
4237 test -z "$ac_dir" && ac_dir=.
4238 if test -f $ac_dir/$ac_word; then
4239 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4246 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
4247 if test -n "$AR_FOR_TARGET"; then
4248 echo "$ac_t""$AR_FOR_TARGET" 1>&6
4250 echo "$ac_t""no
" 1>&6
4254 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
4255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4256 set dummy ${ncn_progname}; ac_word=$2
4257 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4258 echo "configure
:4259: checking
for $ac_word" >&5
4259 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4260 echo $ac_n "(cached
) $ac_c" 1>&6
4262 if test -n "$AR_FOR_TARGET"; then
4263 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4267 for ac_dir in $ac_dummy; do
4268 test -z "$ac_dir" && ac_dir=.
4269 if test -f $ac_dir/$ac_word; then
4270 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
4277 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
4278 if test -n "$AR_FOR_TARGET"; then
4279 echo "$ac_t""$AR_FOR_TARGET" 1>&6
4281 echo "$ac_t""no
" 1>&6
4285 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
4288 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
4290 if test $build = $target ; then
4293 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
4297 for ncn_progname in as; do
4298 if test -n "$ncn_target_tool_prefix"; then
4299 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4300 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4301 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4302 echo "configure
:4303: checking
for $ac_word" >&5
4303 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
4304 echo $ac_n "(cached
) $ac_c" 1>&6
4306 if test -n "$AS_FOR_TARGET"; then
4307 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4311 for ac_dir in $ac_dummy; do
4312 test -z "$ac_dir" && ac_dir=.
4313 if test -f $ac_dir/$ac_word; then
4314 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4321 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4322 if test -n "$AS_FOR_TARGET"; then
4323 echo "$ac_t""$AS_FOR_TARGET" 1>&6
4325 echo "$ac_t""no
" 1>&6
4329 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
4330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4331 set dummy ${ncn_progname}; ac_word=$2
4332 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4333 echo "configure
:4334: checking
for $ac_word" >&5
4334 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
4335 echo $ac_n "(cached
) $ac_c" 1>&6
4337 if test -n "$AS_FOR_TARGET"; then
4338 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4342 for ac_dir in $ac_dummy; do
4343 test -z "$ac_dir" && ac_dir=.
4344 if test -f $ac_dir/$ac_word; then
4345 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
4352 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4353 if test -n "$AS_FOR_TARGET"; then
4354 echo "$ac_t""$AS_FOR_TARGET" 1>&6
4356 echo "$ac_t""no
" 1>&6
4360 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
4363 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
4365 if test $build = $target ; then
4368 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4372 for ncn_progname in cc gcc; do
4373 if test -n "$ncn_target_tool_prefix"; then
4374 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4375 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4376 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4377 echo "configure
:4378: checking
for $ac_word" >&5
4378 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4379 echo $ac_n "(cached
) $ac_c" 1>&6
4381 if test -n "$CC_FOR_TARGET"; then
4382 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4386 for ac_dir in $ac_dummy; do
4387 test -z "$ac_dir" && ac_dir=.
4388 if test -f $ac_dir/$ac_word; then
4389 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4396 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4397 if test -n "$CC_FOR_TARGET"; then
4398 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4400 echo "$ac_t""no
" 1>&6
4404 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4406 set dummy ${ncn_progname}; ac_word=$2
4407 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4408 echo "configure
:4409: checking
for $ac_word" >&5
4409 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4410 echo $ac_n "(cached
) $ac_c" 1>&6
4412 if test -n "$CC_FOR_TARGET"; then
4413 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4417 for ac_dir in $ac_dummy; do
4418 test -z "$ac_dir" && ac_dir=.
4419 if test -f $ac_dir/$ac_word; then
4420 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4427 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4428 if test -n "$CC_FOR_TARGET"; then
4429 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4431 echo "$ac_t""no
" 1>&6
4435 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4438 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4440 if test $build = $target ; then
4443 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4447 for ncn_progname in c++ g++ cxx gxx; do
4448 if test -n "$ncn_target_tool_prefix"; then
4449 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4450 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4451 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4452 echo "configure
:4453: checking
for $ac_word" >&5
4453 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4454 echo $ac_n "(cached
) $ac_c" 1>&6
4456 if test -n "$CXX_FOR_TARGET"; then
4457 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4461 for ac_dir in $ac_dummy; do
4462 test -z "$ac_dir" && ac_dir=.
4463 if test -f $ac_dir/$ac_word; then
4464 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4471 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4472 if test -n "$CXX_FOR_TARGET"; then
4473 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4475 echo "$ac_t""no
" 1>&6
4479 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4481 set dummy ${ncn_progname}; ac_word=$2
4482 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4483 echo "configure
:4484: checking
for $ac_word" >&5
4484 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4485 echo $ac_n "(cached
) $ac_c" 1>&6
4487 if test -n "$CXX_FOR_TARGET"; then
4488 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4492 for ac_dir in $ac_dummy; do
4493 test -z "$ac_dir" && ac_dir=.
4494 if test -f $ac_dir/$ac_word; then
4495 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4502 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4503 if test -n "$CXX_FOR_TARGET"; then
4504 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4506 echo "$ac_t""no
" 1>&6
4510 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4513 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4514 set dummy c++ g++ cxx gxx
4515 if test $build = $target ; then
4518 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4522 for ncn_progname in dlltool; do
4523 if test -n "$ncn_target_tool_prefix"; then
4524 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4525 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4526 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4527 echo "configure
:4528: checking
for $ac_word" >&5
4528 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4529 echo $ac_n "(cached
) $ac_c" 1>&6
4531 if test -n "$DLLTOOL_FOR_TARGET"; then
4532 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4536 for ac_dir in $ac_dummy; do
4537 test -z "$ac_dir" && ac_dir=.
4538 if test -f $ac_dir/$ac_word; then
4539 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4546 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4547 if test -n "$DLLTOOL_FOR_TARGET"; then
4548 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4550 echo "$ac_t""no
" 1>&6
4554 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
4555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4556 set dummy ${ncn_progname}; ac_word=$2
4557 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4558 echo "configure
:4559: checking
for $ac_word" >&5
4559 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4560 echo $ac_n "(cached
) $ac_c" 1>&6
4562 if test -n "$DLLTOOL_FOR_TARGET"; then
4563 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4567 for ac_dir in $ac_dummy; do
4568 test -z "$ac_dir" && ac_dir=.
4569 if test -f $ac_dir/$ac_word; then
4570 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
4577 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4578 if test -n "$DLLTOOL_FOR_TARGET"; then
4579 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4581 echo "$ac_t""no
" 1>&6
4585 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
4588 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
4590 if test $build = $target ; then
4591 DLLTOOL_FOR_TARGET="$2"
4593 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
4597 for ncn_progname in gcc; do
4598 if test -n "$ncn_target_tool_prefix"; then
4599 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4600 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4601 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4602 echo "configure
:4603: checking
for $ac_word" >&5
4603 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4604 echo $ac_n "(cached
) $ac_c" 1>&6
4606 if test -n "$GCC_FOR_TARGET"; then
4607 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4611 for ac_dir in $ac_dummy; do
4612 test -z "$ac_dir" && ac_dir=.
4613 if test -f $ac_dir/$ac_word; then
4614 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4621 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4622 if test -n "$GCC_FOR_TARGET"; then
4623 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4625 echo "$ac_t""no
" 1>&6
4629 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4631 set dummy ${ncn_progname}; ac_word=$2
4632 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4633 echo "configure
:4634: checking
for $ac_word" >&5
4634 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4635 echo $ac_n "(cached
) $ac_c" 1>&6
4637 if test -n "$GCC_FOR_TARGET"; then
4638 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4642 for ac_dir in $ac_dummy; do
4643 test -z "$ac_dir" && ac_dir=.
4644 if test -f $ac_dir/$ac_word; then
4645 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4652 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4653 if test -n "$GCC_FOR_TARGET"; then
4654 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4656 echo "$ac_t""no
" 1>&6
4660 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4663 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4664 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4667 for ncn_progname in gcj; do
4668 if test -n "$ncn_target_tool_prefix"; then
4669 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4670 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4671 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4672 echo "configure
:4673: checking
for $ac_word" >&5
4673 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4674 echo $ac_n "(cached
) $ac_c" 1>&6
4676 if test -n "$GCJ_FOR_TARGET"; then
4677 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4681 for ac_dir in $ac_dummy; do
4682 test -z "$ac_dir" && ac_dir=.
4683 if test -f $ac_dir/$ac_word; then
4684 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4691 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4692 if test -n "$GCJ_FOR_TARGET"; then
4693 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4695 echo "$ac_t""no
" 1>&6
4699 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4701 set dummy ${ncn_progname}; ac_word=$2
4702 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4703 echo "configure
:4704: checking
for $ac_word" >&5
4704 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4705 echo $ac_n "(cached
) $ac_c" 1>&6
4707 if test -n "$GCJ_FOR_TARGET"; then
4708 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4712 for ac_dir in $ac_dummy; do
4713 test -z "$ac_dir" && ac_dir=.
4714 if test -f $ac_dir/$ac_word; then
4715 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4722 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4723 if test -n "$GCJ_FOR_TARGET"; then
4724 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4726 echo "$ac_t""no
" 1>&6
4730 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4733 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4735 if test $build = $target ; then
4738 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4742 for ncn_progname in gfortran; do
4743 if test -n "$ncn_target_tool_prefix"; then
4744 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4745 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4746 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4747 echo "configure
:4748: checking
for $ac_word" >&5
4748 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4749 echo $ac_n "(cached
) $ac_c" 1>&6
4751 if test -n "$GFORTRAN_FOR_TARGET"; then
4752 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4756 for ac_dir in $ac_dummy; do
4757 test -z "$ac_dir" && ac_dir=.
4758 if test -f $ac_dir/$ac_word; then
4759 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4766 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4767 if test -n "$GFORTRAN_FOR_TARGET"; then
4768 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4770 echo "$ac_t""no
" 1>&6
4774 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
4775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4776 set dummy ${ncn_progname}; ac_word=$2
4777 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4778 echo "configure
:4779: checking
for $ac_word" >&5
4779 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4780 echo $ac_n "(cached
) $ac_c" 1>&6
4782 if test -n "$GFORTRAN_FOR_TARGET"; then
4783 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4787 for ac_dir in $ac_dummy; do
4788 test -z "$ac_dir" && ac_dir=.
4789 if test -f $ac_dir/$ac_word; then
4790 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
4797 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4798 if test -n "$GFORTRAN_FOR_TARGET"; then
4799 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4801 echo "$ac_t""no
" 1>&6
4805 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
4808 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
4810 if test $build = $target ; then
4811 GFORTRAN_FOR_TARGET="$2"
4813 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
4817 for ncn_progname in ld; do
4818 if test -n "$ncn_target_tool_prefix"; then
4819 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4820 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4821 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4822 echo "configure
:4823: checking
for $ac_word" >&5
4823 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
4824 echo $ac_n "(cached
) $ac_c" 1>&6
4826 if test -n "$LD_FOR_TARGET"; then
4827 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
4829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4831 for ac_dir in $ac_dummy; do
4832 test -z "$ac_dir" && ac_dir=.
4833 if test -f $ac_dir/$ac_word; then
4834 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4841 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4842 if test -n "$LD_FOR_TARGET"; then
4843 echo "$ac_t""$LD_FOR_TARGET" 1>&6
4845 echo "$ac_t""no
" 1>&6
4849 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
4850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4851 set dummy ${ncn_progname}; ac_word=$2
4852 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4853 echo "configure
:4854: checking
for $ac_word" >&5
4854 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
4855 echo $ac_n "(cached
) $ac_c" 1>&6
4857 if test -n "$LD_FOR_TARGET"; then
4858 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
4860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4862 for ac_dir in $ac_dummy; do
4863 test -z "$ac_dir" && ac_dir=.
4864 if test -f $ac_dir/$ac_word; then
4865 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
4872 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4873 if test -n "$LD_FOR_TARGET"; then
4874 echo "$ac_t""$LD_FOR_TARGET" 1>&6
4876 echo "$ac_t""no
" 1>&6
4880 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
4883 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
4885 if test $build = $target ; then
4888 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
4892 for ncn_progname in lipo; do
4893 if test -n "$ncn_target_tool_prefix"; then
4894 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4895 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4896 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4897 echo "configure
:4898: checking
for $ac_word" >&5
4898 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
4899 echo $ac_n "(cached
) $ac_c" 1>&6
4901 if test -n "$LIPO_FOR_TARGET"; then
4902 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
4904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4906 for ac_dir in $ac_dummy; do
4907 test -z "$ac_dir" && ac_dir=.
4908 if test -f $ac_dir/$ac_word; then
4909 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4916 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
4917 if test -n "$LIPO_FOR_TARGET"; then
4918 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
4920 echo "$ac_t""no
" 1>&6
4924 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
4925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4926 set dummy ${ncn_progname}; ac_word=$2
4927 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4928 echo "configure
:4929: checking
for $ac_word" >&5
4929 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
4930 echo $ac_n "(cached
) $ac_c" 1>&6
4932 if test -n "$LIPO_FOR_TARGET"; then
4933 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
4935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4937 for ac_dir in $ac_dummy; do
4938 test -z "$ac_dir" && ac_dir=.
4939 if test -f $ac_dir/$ac_word; then
4940 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
4947 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
4948 if test -n "$LIPO_FOR_TARGET"; then
4949 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
4951 echo "$ac_t""no
" 1>&6
4955 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
4958 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
4960 if test $build = $target ; then
4961 LIPO_FOR_TARGET="$2"
4963 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
4967 for ncn_progname in nm; do
4968 if test -n "$ncn_target_tool_prefix"; then
4969 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4970 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4971 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4972 echo "configure
:4973: checking
for $ac_word" >&5
4973 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
4974 echo $ac_n "(cached
) $ac_c" 1>&6
4976 if test -n "$NM_FOR_TARGET"; then
4977 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
4979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4981 for ac_dir in $ac_dummy; do
4982 test -z "$ac_dir" && ac_dir=.
4983 if test -f $ac_dir/$ac_word; then
4984 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4991 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
4992 if test -n "$NM_FOR_TARGET"; then
4993 echo "$ac_t""$NM_FOR_TARGET" 1>&6
4995 echo "$ac_t""no
" 1>&6
4999 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
5000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5001 set dummy ${ncn_progname}; ac_word=$2
5002 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5003 echo "configure
:5004: checking
for $ac_word" >&5
5004 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5005 echo $ac_n "(cached
) $ac_c" 1>&6
5007 if test -n "$NM_FOR_TARGET"; then
5008 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5012 for ac_dir in $ac_dummy; do
5013 test -z "$ac_dir" && ac_dir=.
5014 if test -f $ac_dir/$ac_word; then
5015 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5022 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5023 if test -n "$NM_FOR_TARGET"; then
5024 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5026 echo "$ac_t""no
" 1>&6
5030 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
5033 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
5035 if test $build = $target ; then
5038 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
5042 for ncn_progname in objdump; do
5043 if test -n "$ncn_target_tool_prefix"; then
5044 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5045 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5046 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5047 echo "configure
:5048: checking
for $ac_word" >&5
5048 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5049 echo $ac_n "(cached
) $ac_c" 1>&6
5051 if test -n "$OBJDUMP_FOR_TARGET"; then
5052 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5054 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5056 for ac_dir in $ac_dummy; do
5057 test -z "$ac_dir" && ac_dir=.
5058 if test -f $ac_dir/$ac_word; then
5059 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5066 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5067 if test -n "$OBJDUMP_FOR_TARGET"; then
5068 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5070 echo "$ac_t""no
" 1>&6
5074 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
5075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5076 set dummy ${ncn_progname}; ac_word=$2
5077 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5078 echo "configure
:5079: checking
for $ac_word" >&5
5079 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5080 echo $ac_n "(cached
) $ac_c" 1>&6
5082 if test -n "$OBJDUMP_FOR_TARGET"; then
5083 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5087 for ac_dir in $ac_dummy; do
5088 test -z "$ac_dir" && ac_dir=.
5089 if test -f $ac_dir/$ac_word; then
5090 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5097 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5098 if test -n "$OBJDUMP_FOR_TARGET"; then
5099 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5101 echo "$ac_t""no
" 1>&6
5105 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
5108 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
5110 if test $build = $target ; then
5111 OBJDUMP_FOR_TARGET="$2"
5113 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5117 for ncn_progname in ranlib; do
5118 if test -n "$ncn_target_tool_prefix"; then
5119 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5120 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5121 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5122 echo "configure
:5123: checking
for $ac_word" >&5
5123 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5124 echo $ac_n "(cached
) $ac_c" 1>&6
5126 if test -n "$RANLIB_FOR_TARGET"; then
5127 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
5129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5131 for ac_dir in $ac_dummy; do
5132 test -z "$ac_dir" && ac_dir=.
5133 if test -f $ac_dir/$ac_word; then
5134 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5141 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
5142 if test -n "$RANLIB_FOR_TARGET"; then
5143 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
5145 echo "$ac_t""no
" 1>&6
5149 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
5150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5151 set dummy ${ncn_progname}; ac_word=$2
5152 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5153 echo "configure
:5154: checking
for $ac_word" >&5
5154 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5155 echo $ac_n "(cached
) $ac_c" 1>&6
5157 if test -n "$RANLIB_FOR_TARGET"; then
5158 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
5160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5162 for ac_dir in $ac_dummy; do
5163 test -z "$ac_dir" && ac_dir=.
5164 if test -f $ac_dir/$ac_word; then
5165 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5172 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
5173 if test -n "$RANLIB_FOR_TARGET"; then
5174 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
5176 echo "$ac_t""no
" 1>&6
5180 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
5183 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
5184 RANLIB_FOR_TARGET=":"
5187 for ncn_progname in strip; do
5188 if test -n "$ncn_target_tool_prefix"; then
5189 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5190 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5191 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5192 echo "configure
:5193: checking
for $ac_word" >&5
5193 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5194 echo $ac_n "(cached
) $ac_c" 1>&6
5196 if test -n "$STRIP_FOR_TARGET"; then
5197 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5201 for ac_dir in $ac_dummy; do
5202 test -z "$ac_dir" && ac_dir=.
5203 if test -f $ac_dir/$ac_word; then
5204 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5211 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
5212 if test -n "$STRIP_FOR_TARGET"; then
5213 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
5215 echo "$ac_t""no
" 1>&6
5219 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
5220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5221 set dummy ${ncn_progname}; ac_word=$2
5222 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5223 echo "configure
:5224: checking
for $ac_word" >&5
5224 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5225 echo $ac_n "(cached
) $ac_c" 1>&6
5227 if test -n "$STRIP_FOR_TARGET"; then
5228 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5232 for ac_dir in $ac_dummy; do
5233 test -z "$ac_dir" && ac_dir=.
5234 if test -f $ac_dir/$ac_word; then
5235 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5242 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
5243 if test -n "$STRIP_FOR_TARGET"; then
5244 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
5246 echo "$ac_t""no
" 1>&6
5250 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
5253 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
5255 if test $build = $target ; then
5256 STRIP_FOR_TARGET="$2"
5258 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5262 for ncn_progname in windres; do
5263 if test -n "$ncn_target_tool_prefix"; then
5264 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5265 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5266 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5267 echo "configure
:5268: checking
for $ac_word" >&5
5268 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5269 echo $ac_n "(cached
) $ac_c" 1>&6
5271 if test -n "$WINDRES_FOR_TARGET"; then
5272 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
5274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5276 for ac_dir in $ac_dummy; do
5277 test -z "$ac_dir" && ac_dir=.
5278 if test -f $ac_dir/$ac_word; then
5279 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5286 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
5287 if test -n "$WINDRES_FOR_TARGET"; then
5288 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
5290 echo "$ac_t""no
" 1>&6
5294 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
5295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5296 set dummy ${ncn_progname}; ac_word=$2
5297 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5298 echo "configure
:5299: checking
for $ac_word" >&5
5299 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5300 echo $ac_n "(cached
) $ac_c" 1>&6
5302 if test -n "$WINDRES_FOR_TARGET"; then
5303 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
5305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5307 for ac_dir in $ac_dummy; do
5308 test -z "$ac_dir" && ac_dir=.
5309 if test -f $ac_dir/$ac_word; then
5310 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5317 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
5318 if test -n "$WINDRES_FOR_TARGET"; then
5319 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
5321 echo "$ac_t""no
" 1>&6
5325 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
5328 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
5330 if test $build = $target ; then
5331 WINDRES_FOR_TARGET="$2"
5333 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
5338 CONFIGURED_AR_FOR_TARGET="$AR_FOR_TARGET"
5339 CONFIGURED_AS_FOR_TARGET="$AS_FOR_TARGET"
5340 CONFIGURED_CC_FOR_TARGET="$CC_FOR_TARGET"
5341 CONFIGURED_CXX_FOR_TARGET="$CXX_FOR_TARGET"
5342 CONFIGURED_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET"
5343 CONFIGURED_GCC_FOR_TARGET="$GCC_FOR_TARGET"
5344 CONFIGURED_GCJ_FOR_TARGET="$GCJ_FOR_TARGET"
5345 CONFIGURED_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET"
5346 CONFIGURED_LD_FOR_TARGET="$LD_FOR_TARGET"
5347 CONFIGURED_LIPO_FOR_TARGET="$LIPO_FOR_TARGET"
5348 CONFIGURED_NM_FOR_TARGET="$NM_FOR_TARGET"
5349 CONFIGURED_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET"
5350 CONFIGURED_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET"
5351 CONFIGURED_STRIP_FOR_TARGET="$STRIP_FOR_TARGET"
5352 CONFIGURED_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET"
5356 # Fix up target tools.
5357 if test "x
${build}" = "x
${host}" ; then
5358 # In this case, the newly built tools can and should be used,
5359 # so we override the results of the autoconf tests.
5360 # This should really only happen when the tools are actually being built,
5361 # but that's a further refinement. The new build scheme, where
5362 # tools are built into a structure paralleling where they're installed,
5363 # should also eliminate all of this cleanly.
5364 AR_FOR_TARGET="\$
(USUAL_AR_FOR_TARGET
)"
5365 AS_FOR_TARGET="\$
(USUAL_AS_FOR_TARGET
)"
5366 CC_FOR_TARGET="\$
(USUAL_CC_FOR_TARGET
)"
5367 CXX_FOR_TARGET="\$
(USUAL_CXX_FOR_TARGET
)"
5368 RAW_CXX_FOR_TARGET="\$
(USUAL_RAW_CXX_FOR_TARGET
)"
5369 DLLTOOL_FOR_TARGET="\$
(USUAL_DLLTOOL_FOR_TARGET
)"
5370 GCC_FOR_TARGET="\$
(USUAL_GCC_FOR_TARGET
)"
5371 GCJ_FOR_TARGET="\$
(USUAL_GCJ_FOR_TARGET
)"
5372 GFORTRAN_FOR_TARGET="\$
(USUAL_GFORTRAN_FOR_TARGET
)"
5373 LD_FOR_TARGET="\$
(USUAL_LD_FOR_TARGET
)"
5374 LIPO_FOR_TARGET="\$
(USUAL_LIPO_FOR_TARGET
)"
5375 NM_FOR_TARGET="\$
(USUAL_NM_FOR_TARGET
)"
5376 OBJDUMP_FOR_TARGET="\$
(USUAL_OBJDUMP_FOR_TARGET
)"
5377 RANLIB_FOR_TARGET="\$
(USUAL_RANLIB_FOR_TARGET
)"
5378 STRIP_FOR_TARGET="\$
(USUAL_STRIP_FOR_TARGET
)"
5379 WINDRES_FOR_TARGET="\$
(USUAL_WINDRES_FOR_TARGET
)"
5381 # Just use the ones we found.
5382 AR_FOR_TARGET="\$
(CONFIGURED_AR_FOR_TARGET
)"
5383 AS_FOR_TARGET="\$
(CONFIGURED_AS_FOR_TARGET
)"
5384 CC_FOR_TARGET="\$
(CONFIGURED_CC_FOR_TARGET
)"
5385 CXX_FOR_TARGET="\$
(CONFIGURED_CXX_FOR_TARGET
)"
5386 RAW_CXX_FOR_TARGET="\$
(CONFIGURED_CXX_FOR_TARGET
)"
5387 DLLTOOL_FOR_TARGET="\$
(CONFIGURED_DLLTOOL_FOR_TARGET
)"
5388 GCC_FOR_TARGET="\$
(CONFIGURED_GCC_FOR_TARGET
)"
5389 GCJ_FOR_TARGET="\$
(CONFIGURED_GCJ_FOR_TARGET
)"
5390 GFORTRAN_FOR_TARGET="\$
(CONFIGURED_GFORTRAN_FOR_TARGET
)"
5391 LD_FOR_TARGET="\$
(CONFIGURED_LD_FOR_TARGET
)"
5392 LIPO_FOR_TARGET="\$
(CONFIGURED_LIPO_FOR_TARGET
)"
5393 NM_FOR_TARGET="\$
(CONFIGURED_NM_FOR_TARGET
)"
5394 OBJDUMP_FOR_TARGET="\$
(CONFIGURED_OBJDUMP_FOR_TARGET
)"
5395 RANLIB_FOR_TARGET="\$
(CONFIGURED_RANLIB_FOR_TARGET
)"
5396 STRIP_FOR_TARGET="\$
(CONFIGURED_STRIP_FOR_TARGET
)"
5397 WINDRES_FOR_TARGET="\$
(CONFIGURED_WINDRES_FOR_TARGET
)"
5402 # Certain tools may need extra flags.
5403 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
5404 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
5405 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
5407 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
5408 echo "configure
:5409: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
5409 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5410 if test "${enable_maintainer_mode+set}" = set; then
5411 enableval="$enable_maintainer_mode"
5412 USE_MAINTAINER_MODE=$enableval
5414 USE_MAINTAINER_MODE=no
5417 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
5420 if test "$USE_MAINTAINER_MODE" = yes; then
5421 MAINTAINER_MODE_TRUE=
5422 MAINTAINER_MODE_FALSE='#'
5424 MAINTAINER_MODE_TRUE='#'
5425 MAINTAINER_MODE_FALSE=
5427 MAINT=$MAINTAINER_MODE_TRUE
5429 # ---------------------
5430 # GCC bootstrap support
5431 # ---------------------
5433 # Stage specific cflags for build.
5438 yes) stage1_cflags="-g -Wa,-J" ;;
5439 *) stage1_cflags="-g -J" ;;
5442 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
5443 # sources; use -no-cpp-precomp to get to GNU cpp.
5444 # Apple's GCC has bugs in designated initializer handling, so disable
5446 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
5451 # It makes debugging easier if we create as symlinks the stage directories
5452 # gcc for stageN-gcc and stagePREV-gcc for stage(N-1). In case this is not
5453 # possible, however, we can resort to mv.
5454 echo $ac_n "checking
if symbolic links between directories work
""...
$ac_c" 1>&6
5455 echo "configure
:5456: checking
if symbolic links between directories work
" >&5
5456 if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
5457 echo $ac_n "(cached
) $ac_c" 1>&6
5459 if test "${LN_S}" = "ln -s" \
5460 && mkdir confdir.s1 \
5461 && ln -s confdir.s1 confdir.s2 \
5462 && echo timestamp1 > confdir.s1/conftest.1 \
5463 && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \
5464 && echo timestamp2 > confdir.s2/conftest.2 \
5465 && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \
5466 && rm -f confdir.s2; then
5467 gcc_cv_prog_ln_s_dir=yes
5469 gcc_cv_prog_ln_s_dir=no
5471 rm -rf confdir.s1 confdir.s2
5474 echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6
5476 case ${gcc_cv_prog_ln_s_dir} in
5478 CREATE_LINK_TO_DIR='ln -s $$1 $$2'
5479 UNDO_LINK_TO_DIR='rm -f $$1' ;;
5481 CREATE_LINK_TO_DIR='mv $$1 $$2'
5482 UNDO_LINK_TO_DIR='mv $$1 $$2' ;;
5487 # Enable -Werror in bootstrap stage2 and later.
5488 # Change the default to "no
" on release branches.
5489 # Check whether --enable-werror or --disable-werror was given.
5490 if test "${enable_werror+set}" = set; then
5491 enableval="$enable_werror"
5497 case ${enable_werror} in
5498 yes) stage2_werror_flag="--enable-werror-always" ;;
5499 *) stage2_werror_flag="" ;;
5504 cat > confcache <<\EOF
5505 # This file is a shell script that caches the results of configure
5506 # tests run on this system so they can be shared between configure
5507 # scripts and configure runs. It is not useful on other systems.
5508 # If it contains results you don't want to keep, you may remove or edit it.
5510 # By default, configure uses ./config.cache as the cache file,
5511 # creating it if it does not exist already. You can give configure
5512 # the --cache-file=FILE option to use a different cache file; that is
5513 # what configure does when it calls configure scripts in
5514 # subdirectories, so they share the cache.
5515 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5516 # config.status only pays attention to the cache file if you give it the
5517 # --recheck option to rerun configure.
5520 # The following way of writing the cache mishandles newlines in values,
5521 # but we know of no workaround that is simple, portable, and efficient.
5522 # So, don't put newlines in cache variables' values.
5523 # Ultrix sh set writes to stderr and can't be redirected directly,
5524 # and sets the high bit in the cache file unless we assign to the vars.
5526 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5528 # `set' does not quote correctly, so add quotes (double-quote substitution
5529 # turns \\\\ into \\, and sed turns \\ into \).
5531 -e "s
/'/'\\\\''/g
" \
5532 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
5535 # `set' quotes correctly as required by POSIX, so do not add quotes.
5536 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5539 if cmp -s $cache_file confcache; then
5542 if test -w $cache_file; then
5543 echo "updating cache
$cache_file"
5544 cat confcache > $cache_file
5546 echo "not updating unwritable cache
$cache_file"
5551 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5553 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
5554 # Let make expand exec_prefix.
5555 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
5557 # Any assignment to VPATH causes Sun make to only execute
5558 # the first set of double-colon rules, so remove it if not needed.
5559 # If there is a colon in the path, we need to keep it.
5560 if test "x
$srcdir" = x.; then
5561 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5564 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5566 # Transform confdefs.h into DEFS.
5567 # Protect against shell expansion while executing Makefile rules.
5568 # Protect against Makefile macro expansion.
5570 # If the first sed substitution is executed (which looks for macros that
5571 # take arguments), then we branch to the quote section. Otherwise,
5572 # look for a macro that doesn't take arguments.
5573 cat >confdef2opt.sed <<\_ACEOF
5576 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5578 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5582 s,[ `~#$^&*(){}\\|;'"<>?
],\\&,g
5588 # We use echo to avoid assuming a particular line-breaking character.
5589 # The extra dot is to prevent the shell from consuming trailing
5590 # line-breaks from the sub-command output. A line-break within
5591 # single-quotes doesn't work because, if this script is created in a
5592 # platform that uses two characters for line-breaks (e.g., DOS), tr
5594 ac_LF_and_DOT
=`echo; echo .`
5595 DEFS
=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5596 rm -f confdef2opt.
sed
5599 # Without the "./", some shells look in PATH for config.status.
5600 : ${CONFIG_STATUS=./config.status}
5602 echo creating
$CONFIG_STATUS
5603 rm -f $CONFIG_STATUS
5604 cat > $CONFIG_STATUS <<EOF
5606 # Generated automatically by configure.
5607 # Run this file to recreate the current configuration.
5608 # This directory was configured as follows,
5609 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5611 # $0 $ac_configure_args
5613 # Compiler output produced by configure, useful for debugging
5614 # configure, is in ./config.log if it exists.
5616 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5619 case "\$ac_option" in
5620 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5621 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5622 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5623 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5624 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5626 -help | --help | --hel | --he | --h)
5627 echo "\$ac_cs_usage"; exit 0 ;;
5628 *) echo "\$ac_cs_usage"; exit 1 ;;
5632 ac_given_srcdir=$srcdir
5633 ac_given_INSTALL="$INSTALL"
5635 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5637 cat >> $CONFIG_STATUS <<EOF
5639 # Protect against being on the right side of a sed subst in config.status.
5640 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5641 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5645 s%@CFLAGS@%$CFLAGS%g
5646 s%@CPPFLAGS@%$CPPFLAGS%g
5647 s%@CXXFLAGS@%$CXXFLAGS%g
5648 s%@FFLAGS@%$FFLAGS%g
5650 s%@LDFLAGS@%$LDFLAGS%g
5652 s%@exec_prefix@%$exec_prefix%g
5653 s%@prefix@%$prefix%g
5654 s%@program_transform_name@%$program_transform_name%g
5655 s%@bindir@%$bindir%g
5656 s%@sbindir@%$sbindir%g
5657 s%@libexecdir@%$libexecdir%g
5658 s%@datadir@%$datadir%g
5659 s%@sysconfdir@%$sysconfdir%g
5660 s%@sharedstatedir@%$sharedstatedir%g
5661 s%@localstatedir@%$localstatedir%g
5662 s%@libdir@%$libdir%g
5663 s%@includedir@%$includedir%g
5664 s%@oldincludedir@%$oldincludedir%g
5665 s%@infodir@%$infodir%g
5666 s%@mandir@%$mandir%g
5668 s%@host_alias@%$host_alias%g
5669 s%@host_cpu@%$host_cpu%g
5670 s%@host_vendor@%$host_vendor%g
5671 s%@host_os@%$host_os%g
5672 s%@target@%$target%g
5673 s%@target_alias@%$target_alias%g
5674 s%@target_cpu@%$target_cpu%g
5675 s%@target_vendor@%$target_vendor%g
5676 s%@target_os@%$target_os%g
5678 s%@build_alias@%$build_alias%g
5679 s%@build_cpu@%$build_cpu%g
5680 s%@build_vendor@%$build_vendor%g
5681 s%@build_os@%$build_os%g
5682 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5683 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5684 s%@INSTALL_DATA@%$INSTALL_DATA%g
5687 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
5688 s%@build_subdir@%$build_subdir%g
5689 s%@host_subdir@%$host_subdir%g
5690 s%@target_subdir@%$target_subdir%g
5692 s%@GNATBIND@%$GNATBIND%g
5693 s%@do_compare@%$do_compare%g
5694 s%@gmplibs@%$gmplibs%g
5695 s%@gmpinc@%$gmpinc%g
5696 s%@stage1_languages@%$stage1_languages%g
5697 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
5698 s%@CONFIGURED_BISON@%$CONFIGURED_BISON%g
5699 s%@CONFIGURED_YACC@%$CONFIGURED_YACC%g
5700 s%@CONFIGURED_M4@%$CONFIGURED_M4%g
5701 s%@CONFIGURED_FLEX@%$CONFIGURED_FLEX%g
5702 s%@CONFIGURED_LEX@%$CONFIGURED_LEX%g
5703 s%@CONFIGURED_MAKEINFO@%$CONFIGURED_MAKEINFO%g
5704 s%@bootstrap_lean@%$bootstrap_lean%g
5705 /@serialization_dependencies@/r $serialization_dependencies
5706 s%@serialization_dependencies@%%g
5707 /@host_makefile_frag@/r $host_makefile_frag
5708 s%@host_makefile_frag@%%g
5709 /@target_makefile_frag@/r $target_makefile_frag
5710 s%@target_makefile_frag@%%g
5711 /@alphaieee_frag@/r $alphaieee_frag
5712 s%@alphaieee_frag@%%g
5713 /@ospace_frag@/r $ospace_frag
5715 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
5716 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
5717 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
5718 s%@tooldir@%$tooldir%g
5719 s%@build_tooldir@%$build_tooldir%g
5720 s%@GDB_TK@%$GDB_TK%g
5721 s%@build_configargs@%$build_configargs%g
5722 s%@build_configdirs@%$build_configdirs%g
5723 s%@host_configargs@%$host_configargs%g
5724 s%@configdirs@%$configdirs%g
5725 s%@target_configargs@%$target_configargs%g
5726 s%@target_configdirs@%$target_configdirs%g
5727 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5728 s%@config_shell@%$config_shell%g
5731 s%@DLLTOOL@%$DLLTOOL%g
5734 s%@RANLIB@%$RANLIB%g
5735 s%@WINDRES@%$WINDRES%g
5736 s%@OBJCOPY@%$OBJCOPY%g
5737 s%@OBJDUMP@%$OBJDUMP%g
5739 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
5740 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
5741 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
5742 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
5743 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
5744 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
5745 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
5746 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
5747 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
5748 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
5749 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
5750 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
5751 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
5752 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
5753 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
5754 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
5755 s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
5756 s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
5757 s%@CONFIGURED_CC_FOR_TARGET@%$CONFIGURED_CC_FOR_TARGET%g
5758 s%@CONFIGURED_CXX_FOR_TARGET@%$CONFIGURED_CXX_FOR_TARGET%g
5759 s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
5760 s%@CONFIGURED_GCC_FOR_TARGET@%$CONFIGURED_GCC_FOR_TARGET%g
5761 s%@CONFIGURED_GCJ_FOR_TARGET@%$CONFIGURED_GCJ_FOR_TARGET%g
5762 s%@CONFIGURED_GFORTRAN_FOR_TARGET@%$CONFIGURED_GFORTRAN_FOR_TARGET%g
5763 s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
5764 s%@CONFIGURED_LIPO_FOR_TARGET@%$CONFIGURED_LIPO_FOR_TARGET%g
5765 s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
5766 s%@CONFIGURED_OBJDUMP_FOR_TARGET@%$CONFIGURED_OBJDUMP_FOR_TARGET%g
5767 s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
5768 s%@CONFIGURED_STRIP_FOR_TARGET@%$CONFIGURED_STRIP_FOR_TARGET%g
5769 s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
5770 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
5771 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
5772 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5773 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5775 s%@stage1_cflags@%$stage1_cflags%g
5776 s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g
5777 s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g
5778 s%@stage2_werror_flag@%$stage2_werror_flag%g
5783 cat >> $CONFIG_STATUS <<\EOF
5785 # Split the substitutions into bite-sized pieces for seds with
5786 # small command number limits, like on Digital OSF/1 and HP-UX.
5787 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5788 ac_file
=1 # Number of current file.
5789 ac_beg
=1 # First line for current file.
5790 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5793 while $ac_more_lines; do
5794 if test $ac_beg -gt 1; then
5795 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5797 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5799 if test ! -s conftest.s
$ac_file; then
5801 rm -f conftest.s
$ac_file
5803 if test -z "$ac_sed_cmds"; then
5804 ac_sed_cmds
="sed -f conftest.s$ac_file"
5806 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5808 ac_file
=`expr $ac_file + 1`
5810 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5813 if test -z "$ac_sed_cmds"; then
5818 cat >> $CONFIG_STATUS <<EOF
5820 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5822 cat >> $CONFIG_STATUS <<\EOF
5823 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5826 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5827 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5828 *) ac_file_in
="${ac_file}.in" ;;
5831 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5833 # Remove last slash and all that follows it. Not all systems have dirname.
5834 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5835 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5836 # The file is in a subdirectory.
5837 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5838 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5839 # A "../" for each directory in $ac_dir_suffix.
5840 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5842 ac_dir_suffix
= ac_dots
=
5845 case "$ac_given_srcdir" in
5847 if test -z "$ac_dots"; then top_srcdir
=.
5848 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5849 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5851 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5852 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5855 case "$ac_given_INSTALL" in
5856 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5857 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5860 echo creating
"$ac_file"
5862 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5864 *Makefile
*) ac_comsub
="1i\\
5865 # $configure_input" ;;
5869 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5871 s%@configure_input@%$configure_input%g
5872 s%@srcdir@%$srcdir%g
5873 s%@top_srcdir@%$top_srcdir%g
5874 s%@INSTALL@%$INSTALL%g
5875 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5880 cat >> $CONFIG_STATUS <<EOF
5883 cat >> $CONFIG_STATUS <<\EOF
5887 chmod +x
$CONFIG_STATUS
5888 rm -fr confdefs
* $ac_clean_files
5889 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1