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 libdecnumber"
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 test 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
3161 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3162 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3164 # Strip out unwanted targets.
3166 # While at that, we remove Makefiles if we were started for recursive
3167 # configuration, so that the top-level Makefile reconfigures them,
3168 # like we used to do when configure itself was recursive.
3170 # Loop over modules. $extrasub must be used with care, limiting as
3171 # much as possible the usage of range addresses. That's because autoconf
3172 # splits the sed script to overcome limits in the number of commands,
3173 # and relying on carefully-timed sed passes may turn out to be very hard
3174 # to maintain later. In this particular case, you just have to be careful
3175 # not to nest @if/@endif pairs, because configure will not warn you at all.
3177 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3178 if test "${enable_bootstrap+set}" = set; then
3179 enableval
="$enable_bootstrap"
3182 enable_bootstrap
=default
3186 # Issue errors and warnings for invalid/strange bootstrap combinations.
3187 case "$configdirs" in
3188 *gcc
*) have_compiler
=yes ;;
3189 *) have_compiler
=no
;;
3192 case "$have_compiler:$host:$target:$enable_bootstrap" in
3195 # Default behavior. (We'll) enable bootstrap if we have a compiler
3196 # and we are in a native configuration.
3197 yes:$build:$build:default
)
3198 # This will become 'yes'
3199 enable_bootstrap
=no
;;
3202 enable_bootstrap
=no
;;
3204 # We have a compiler and we are in a native configuration, bootstrap is ok
3205 yes:$build:$build:yes |
yes:$build:$build:lean
)
3208 # Other configurations, but we have a compiler. Assume the user knows
3210 yes:*:*:yes |
yes:*:*:lean
)
3211 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3214 # No compiler: if they passed --enable-bootstrap explicitly, fail
3215 no
:*:*:yes | no
:*:*:lean
)
3216 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3218 # Fail if wrong command line
3220 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3224 # Adjust the toplevel makefile according to whether bootstrap was selected.
3225 case "$enable_bootstrap" in
3228 bootstrap_suffix
=bootstrap
;;
3231 bootstrap_suffix
=bootstrap
;;
3233 bootstrap_suffix
=no-bootstrap
;;
3237 for module
in ${build_configdirs} ; do
3238 if test -z "${no_recursion}" \
3239 && test -f ${build_subdir}/${module}/Makefile
; then
3240 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3241 rm -f ${build_subdir}/${module}/Makefile
3244 /^@if build-$module\$/d
3245 /^@endif build-$module\$/d
3246 /^@if build-$module-$bootstrap_suffix\$/d
3247 /^@endif build-$module-$bootstrap_suffix\$/d"
3249 for module
in ${configdirs} ; do
3250 if test -z "${no_recursion}" \
3251 && test -f ${module}/Makefile
; then
3252 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3253 rm -f ${module}/Makefile
3257 /^@endif $module\$/d
3258 /^@if $module-$bootstrap_suffix\$/d
3259 /^@endif $module-$bootstrap_suffix\$/d"
3261 for module
in ${target_configdirs} ; do
3262 if test -z "${no_recursion}" \
3263 && test -f ${target_subdir}/${module}/Makefile
; then
3264 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3265 rm -f ${target_subdir}/${module}/Makefile
3268 /^@if target-$module\$/d
3269 /^@endif target-$module\$/d
3270 /^@if target-$module-$bootstrap_suffix\$/d
3271 /^@endif target-$module-$bootstrap_suffix\$/d"
3275 /^@if /,/^@endif /d"
3277 # Create the serialization dependencies. This uses a temporary file.
3279 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3280 if test "${enable_serial_configure+set}" = set; then
3281 enableval
="$enable_serial_configure"
3286 case ${enable_serial_configure} in
3288 enable_serial_build_configure
=yes
3289 enable_serial_host_configure
=yes
3290 enable_serial_target_configure
=yes
3294 # These force 'configure's to be done one at a time, to avoid problems
3295 # with contention over a shared config.cache.
3297 echo '# serdep.tmp' > serdep.tmp
3299 test "x${enable_serial_build_configure}" = xyes
&&
3300 for item
in ${build_configdirs} ; do
3303 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
3308 test "x${enable_serial_host_configure}" = xyes
&&
3309 for item
in ${configdirs} ; do
3312 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
3317 test "x${enable_serial_target_configure}" = xyes
&&
3318 for item
in ${target_configdirs} ; do
3321 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
3325 serialization_dependencies
=serdep.tmp
3328 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3329 # target and nonopt. These are the ones we might not want to pass
3330 # down to subconfigures. Also strip program-prefix, program-suffix,
3331 # and program-transform-name, so that we can pass down a consistent
3332 # program-transform-name. If autoconf has put single quotes around
3333 # any of these arguments (because they contain shell metacharacters)
3334 # then this will fail; in practice this only happens for
3335 # --program-transform-name, so be sure to override --program-transform-name
3336 # at the end of the argument list.
3337 # These will be expanded by make, so quote '$'.
3338 cat <<\EOF_SED
> conftestsed
3340 s
/ --c[a-z-
]*[= ][^
]*//g
3341 s
/ --sr[a-z-
]*[= ][^
]*//g
3342 s
/ --ho[a-z-
]*[= ][^
]*//g
3343 s
/ --bu[a-z-
]*[= ][^
]*//g
3344 s
/ --t[a-z-
]*[= ][^
]*//g
3345 s
/ --program-[pst
][a-z-
]*[= ][^
]*//g
3346 s
/ -cache-file[= ][^
]*//g
3347 s
/ -srcdir[= ][^
]*//g
3348 s
/ -host[= ][^
]*//g
3349 s
/ -build[= ][^
]*//g
3350 s
/ -target[= ][^
]*//g
3351 s
/ -program-prefix[= ][^
]*//g
3352 s
/ -program-suffix[= ][^
]*//g
3353 s
/ -program-transform-name[= ][^
]*//g
3358 sed -f conftestsed <<EOF_SED > conftestsed.out
3359 ${ac_configure_args}
3361 baseargs=`cat conftestsed.out`
3362 rm -f conftestsed conftestsed.out
3364 # Add in --program-transform-name, after --program-prefix and
3365 # --program-suffix have been applied to it. Autoconf has already
3366 # doubled dollar signs and backslashes in program_transform_name; we want
3367 # the backslashes un-doubled, and then the entire thing wrapped in single
3368 # quotes, because this will be expanded first by make and then by the shell.
3369 # Also, because we want to override the logic in subdir configure scripts to
3370 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3371 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3372 ${program_transform_name}
3374 gcc_transform_name=`cat conftestsed.out`
3375 rm -f conftestsed.out
3376 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3378 # For the build-side libraries, we just need to pretend we're native
,
3379 # and not use the same cache file. Multilibs are neither needed nor
3381 build_configargs
="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3383 # For host modules, accept cache file option, or specification as blank.
3384 case "${cache_file}" in
3386 cache_file_option
="" ;;
3387 /* |
[A-Za-z
]:[\\/]* ) # absolute path
3388 cache_file_option
="--cache-file=${cache_file}" ;;
3390 cache_file_option
="--cache-file=../${cache_file}" ;;
3393 # Host dirs don't like to share a cache file either, horribly enough.
3394 # This seems to be due to autoconf 2.5x stupidity.
3395 host_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3397 target_configargs
=${baseargs}
3399 # Passing a --with-cross-host argument lets the target libraries know
3400 # whether they are being built with a cross-compiler or being built
3401 # native. However, it would be better to use other mechanisms to make the
3402 # sorts of decisions they want to make on this basis. Please consider
3403 # this option to be deprecated. FIXME.
3404 if test x
${is_cross_compiler} = xyes
; then
3405 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3408 # Default to --enable-multilib.
3409 if test x
${enable_multilib} = x
; then
3410 target_configargs
="--enable-multilib ${target_configargs}"
3413 # Pass --with-newlib if appropriate. Note that target_configdirs has
3414 # changed from the earlier setting of with_newlib.
3415 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3416 target_configargs
="--with-newlib ${target_configargs}"
3419 # Different target subdirs use different values of certain variables
3420 # (notably CXX). Worse, multilibs use *lots* of different values.
3421 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3422 # it doesn't automatically accept command-line overrides of them.
3423 # This means it's not safe for target subdirs to share a cache file,
3424 # which is disgusting, but there you have it. Hopefully this can be
3425 # fixed in future. It's still worthwhile to use a cache file for each
3426 # directory. I think.
3428 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3429 # We need to pass --target, as newer autoconf's requires consistency
3430 # for target_alias and gcc doesn't manage it consistently.
3431 target_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3434 case " $target_configdirs " in
3436 case " $target_configargs " in
3437 *" --with-newlib "*)
3440 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' ;;
3443 # If we're not building GCC, don't discard standard headers.
3444 if test -d ${srcdir}/gcc
; then
3445 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3447 if test "${build}" != "${host}"; then
3448 # On Canadian crosses, CC_FOR_TARGET will have already been set
3449 # by `configure', so we won't have an opportunity to add -Bgcc/
3450 # to it. This is right: we don't want to search that directory
3451 # for binaries, but we want the header files in there, so add
3453 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3455 # Someone might think of using the pre-installed headers on
3456 # Canadian crosses, in case the installed compiler is not fully
3457 # compatible with the compiler being built. In this case, it
3458 # would be better to flag an error than risking having
3459 # incompatible object files being constructed. We can't
3460 # guarantee that an error will be flagged, but let's hope the
3461 # compiler will do it, when presented with incompatible header
3466 case "${target}-${is_cross_compiler}" in
3467 i
[3456789]86-*-linux*-no)
3468 # Here host == target, so we don't need to build gcc,
3469 # so we don't want to discard standard headers.
3470 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3473 # If we're building newlib, use its generic headers last, but search
3474 # for any libc-related directories first (so make it the last -B
3476 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3484 # Allow the user to override the flags for
3485 # our build compiler if desired.
3486 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3488 # On Canadian crosses, we'll be searching the right directories for
3489 # the previously-installed cross compiler, so don't bother to add
3490 # flags for directories within the install tree of the compiler
3491 # being built; programs in there won't even run.
3492 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3493 # Search for pre-installed headers if nothing else fits.
3494 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3497 if test "x
${use_gnu_ld}" = x &&
3498 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3499 # Arrange for us to find uninstalled linker scripts.
3500 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3503 # Makefile fragments.
3504 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3506 eval fragval=\$$frag
3507 if test $fragval != /dev/null; then
3508 eval $frag=${srcdir}/$fragval
3516 # Miscellanea: directories, flags, etc.
3526 # Build module lists & subconfigure args.
3530 # Host module lists & subconfigure args.
3534 # Target module lists & subconfigure args.
3544 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3545 ncn_target_tool_prefix=
3546 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3548 for ncn_progname in ar; do
3549 if test -n "$ncn_tool_prefix"; then
3550 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3551 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3552 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3553 echo "configure
:3554: checking
for $ac_word" >&5
3554 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3555 echo $ac_n "(cached
) $ac_c" 1>&6
3557 if test -n "$AR"; then
3558 ac_cv_prog_AR="$AR" # Let the user override the test.
3560 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3562 for ac_dir in $ac_dummy; do
3563 test -z "$ac_dir" && ac_dir=.
3564 if test -f $ac_dir/$ac_word; then
3565 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3573 if test -n "$AR"; then
3574 echo "$ac_t""$AR" 1>&6
3576 echo "$ac_t""no
" 1>&6
3580 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3582 set dummy ${ncn_progname}; ac_word=$2
3583 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3584 echo "configure
:3585: checking
for $ac_word" >&5
3585 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3586 echo $ac_n "(cached
) $ac_c" 1>&6
3588 if test -n "$AR"; then
3589 ac_cv_prog_AR="$AR" # Let the user override the test.
3591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3593 for ac_dir in $ac_dummy; do
3594 test -z "$ac_dir" && ac_dir=.
3595 if test -f $ac_dir/$ac_word; then
3596 ac_cv_prog_AR="${ncn_progname}"
3604 if test -n "$AR"; then
3605 echo "$ac_t""$AR" 1>&6
3607 echo "$ac_t""no
" 1>&6
3611 test -n "$ac_cv_prog_AR" && break
3614 if test -z "$ac_cv_prog_AR" ; then
3616 if test $build = $host ; then
3619 AR="${ncn_tool_prefix}$2"
3623 for ncn_progname in as; do
3624 if test -n "$ncn_tool_prefix"; then
3625 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3626 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3627 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3628 echo "configure
:3629: checking
for $ac_word" >&5
3629 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3630 echo $ac_n "(cached
) $ac_c" 1>&6
3632 if test -n "$AS"; then
3633 ac_cv_prog_AS="$AS" # Let the user override the test.
3635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3637 for ac_dir in $ac_dummy; do
3638 test -z "$ac_dir" && ac_dir=.
3639 if test -f $ac_dir/$ac_word; then
3640 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3648 if test -n "$AS"; then
3649 echo "$ac_t""$AS" 1>&6
3651 echo "$ac_t""no
" 1>&6
3655 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3657 set dummy ${ncn_progname}; ac_word=$2
3658 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3659 echo "configure
:3660: checking
for $ac_word" >&5
3660 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3661 echo $ac_n "(cached
) $ac_c" 1>&6
3663 if test -n "$AS"; then
3664 ac_cv_prog_AS="$AS" # Let the user override the test.
3666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3668 for ac_dir in $ac_dummy; do
3669 test -z "$ac_dir" && ac_dir=.
3670 if test -f $ac_dir/$ac_word; then
3671 ac_cv_prog_AS="${ncn_progname}"
3679 if test -n "$AS"; then
3680 echo "$ac_t""$AS" 1>&6
3682 echo "$ac_t""no
" 1>&6
3686 test -n "$ac_cv_prog_AS" && break
3689 if test -z "$ac_cv_prog_AS" ; then
3691 if test $build = $host ; then
3694 AS="${ncn_tool_prefix}$2"
3698 for ncn_progname in dlltool; do
3699 if test -n "$ncn_tool_prefix"; then
3700 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3701 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3702 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3703 echo "configure
:3704: checking
for $ac_word" >&5
3704 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3705 echo $ac_n "(cached
) $ac_c" 1>&6
3707 if test -n "$DLLTOOL"; then
3708 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3712 for ac_dir in $ac_dummy; do
3713 test -z "$ac_dir" && ac_dir=.
3714 if test -f $ac_dir/$ac_word; then
3715 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3722 DLLTOOL="$ac_cv_prog_DLLTOOL"
3723 if test -n "$DLLTOOL"; then
3724 echo "$ac_t""$DLLTOOL" 1>&6
3726 echo "$ac_t""no
" 1>&6
3730 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3732 set dummy ${ncn_progname}; ac_word=$2
3733 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3734 echo "configure
:3735: checking
for $ac_word" >&5
3735 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3736 echo $ac_n "(cached
) $ac_c" 1>&6
3738 if test -n "$DLLTOOL"; then
3739 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3743 for ac_dir in $ac_dummy; do
3744 test -z "$ac_dir" && ac_dir=.
3745 if test -f $ac_dir/$ac_word; then
3746 ac_cv_prog_DLLTOOL="${ncn_progname}"
3753 DLLTOOL="$ac_cv_prog_DLLTOOL"
3754 if test -n "$DLLTOOL"; then
3755 echo "$ac_t""$DLLTOOL" 1>&6
3757 echo "$ac_t""no
" 1>&6
3761 test -n "$ac_cv_prog_DLLTOOL" && break
3764 if test -z "$ac_cv_prog_DLLTOOL" ; then
3766 if test $build = $host ; then
3769 DLLTOOL="${ncn_tool_prefix}$2"
3773 for ncn_progname in ld; do
3774 if test -n "$ncn_tool_prefix"; then
3775 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3776 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3777 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3778 echo "configure
:3779: checking
for $ac_word" >&5
3779 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3780 echo $ac_n "(cached
) $ac_c" 1>&6
3782 if test -n "$LD"; then
3783 ac_cv_prog_LD="$LD" # Let the user override the test.
3785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3787 for ac_dir in $ac_dummy; do
3788 test -z "$ac_dir" && ac_dir=.
3789 if test -f $ac_dir/$ac_word; then
3790 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3798 if test -n "$LD"; then
3799 echo "$ac_t""$LD" 1>&6
3801 echo "$ac_t""no
" 1>&6
3805 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
3806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3807 set dummy ${ncn_progname}; ac_word=$2
3808 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3809 echo "configure
:3810: checking
for $ac_word" >&5
3810 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3811 echo $ac_n "(cached
) $ac_c" 1>&6
3813 if test -n "$LD"; then
3814 ac_cv_prog_LD="$LD" # Let the user override the test.
3816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3818 for ac_dir in $ac_dummy; do
3819 test -z "$ac_dir" && ac_dir=.
3820 if test -f $ac_dir/$ac_word; then
3821 ac_cv_prog_LD="${ncn_progname}"
3829 if test -n "$LD"; then
3830 echo "$ac_t""$LD" 1>&6
3832 echo "$ac_t""no
" 1>&6
3836 test -n "$ac_cv_prog_LD" && break
3839 if test -z "$ac_cv_prog_LD" ; then
3841 if test $build = $host ; then
3844 LD="${ncn_tool_prefix}$2"
3848 for ncn_progname in nm; do
3849 if test -n "$ncn_tool_prefix"; then
3850 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3851 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3852 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3853 echo "configure
:3854: checking
for $ac_word" >&5
3854 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3855 echo $ac_n "(cached
) $ac_c" 1>&6
3857 if test -n "$NM"; then
3858 ac_cv_prog_NM="$NM" # Let the user override the test.
3860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3862 for ac_dir in $ac_dummy; do
3863 test -z "$ac_dir" && ac_dir=.
3864 if test -f $ac_dir/$ac_word; then
3865 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
3873 if test -n "$NM"; then
3874 echo "$ac_t""$NM" 1>&6
3876 echo "$ac_t""no
" 1>&6
3880 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
3881 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3882 set dummy ${ncn_progname}; ac_word=$2
3883 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3884 echo "configure
:3885: checking
for $ac_word" >&5
3885 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3886 echo $ac_n "(cached
) $ac_c" 1>&6
3888 if test -n "$NM"; then
3889 ac_cv_prog_NM="$NM" # Let the user override the test.
3891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3893 for ac_dir in $ac_dummy; do
3894 test -z "$ac_dir" && ac_dir=.
3895 if test -f $ac_dir/$ac_word; then
3896 ac_cv_prog_NM="${ncn_progname}"
3904 if test -n "$NM"; then
3905 echo "$ac_t""$NM" 1>&6
3907 echo "$ac_t""no
" 1>&6
3911 test -n "$ac_cv_prog_NM" && break
3914 if test -z "$ac_cv_prog_NM" ; then
3916 if test $build = $host ; then
3919 NM="${ncn_tool_prefix}$2"
3923 for ncn_progname in ranlib; do
3924 if test -n "$ncn_tool_prefix"; then
3925 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3926 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3927 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3928 echo "configure
:3929: checking
for $ac_word" >&5
3929 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3930 echo $ac_n "(cached
) $ac_c" 1>&6
3932 if test -n "$RANLIB"; then
3933 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3937 for ac_dir in $ac_dummy; do
3938 test -z "$ac_dir" && ac_dir=.
3939 if test -f $ac_dir/$ac_word; then
3940 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
3947 RANLIB="$ac_cv_prog_RANLIB"
3948 if test -n "$RANLIB"; then
3949 echo "$ac_t""$RANLIB" 1>&6
3951 echo "$ac_t""no
" 1>&6
3955 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
3956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3957 set dummy ${ncn_progname}; ac_word=$2
3958 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3959 echo "configure
:3960: checking
for $ac_word" >&5
3960 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3961 echo $ac_n "(cached
) $ac_c" 1>&6
3963 if test -n "$RANLIB"; then
3964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3968 for ac_dir in $ac_dummy; do
3969 test -z "$ac_dir" && ac_dir=.
3970 if test -f $ac_dir/$ac_word; then
3971 ac_cv_prog_RANLIB="${ncn_progname}"
3978 RANLIB="$ac_cv_prog_RANLIB"
3979 if test -n "$RANLIB"; then
3980 echo "$ac_t""$RANLIB" 1>&6
3982 echo "$ac_t""no
" 1>&6
3986 test -n "$ac_cv_prog_RANLIB" && break
3989 if test -z "$ac_cv_prog_RANLIB" ; then
3993 for ncn_progname in windres; do
3994 if test -n "$ncn_tool_prefix"; then
3995 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3996 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3997 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3998 echo "configure
:3999: checking
for $ac_word" >&5
3999 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4000 echo $ac_n "(cached
) $ac_c" 1>&6
4002 if test -n "$WINDRES"; then
4003 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4007 for ac_dir in $ac_dummy; do
4008 test -z "$ac_dir" && ac_dir=.
4009 if test -f $ac_dir/$ac_word; then
4010 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4017 WINDRES="$ac_cv_prog_WINDRES"
4018 if test -n "$WINDRES"; then
4019 echo "$ac_t""$WINDRES" 1>&6
4021 echo "$ac_t""no
" 1>&6
4025 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4027 set dummy ${ncn_progname}; ac_word=$2
4028 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4029 echo "configure
:4030: checking
for $ac_word" >&5
4030 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4031 echo $ac_n "(cached
) $ac_c" 1>&6
4033 if test -n "$WINDRES"; then
4034 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4038 for ac_dir in $ac_dummy; do
4039 test -z "$ac_dir" && ac_dir=.
4040 if test -f $ac_dir/$ac_word; then
4041 ac_cv_prog_WINDRES="${ncn_progname}"
4048 WINDRES="$ac_cv_prog_WINDRES"
4049 if test -n "$WINDRES"; then
4050 echo "$ac_t""$WINDRES" 1>&6
4052 echo "$ac_t""no
" 1>&6
4056 test -n "$ac_cv_prog_WINDRES" && break
4059 if test -z "$ac_cv_prog_WINDRES" ; then
4061 if test $build = $host ; then
4064 WINDRES="${ncn_tool_prefix}$2"
4068 for ncn_progname in objcopy; do
4069 if test -n "$ncn_tool_prefix"; then
4070 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4071 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4072 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4073 echo "configure
:4074: checking
for $ac_word" >&5
4074 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4075 echo $ac_n "(cached
) $ac_c" 1>&6
4077 if test -n "$OBJCOPY"; then
4078 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4082 for ac_dir in $ac_dummy; do
4083 test -z "$ac_dir" && ac_dir=.
4084 if test -f $ac_dir/$ac_word; then
4085 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4092 OBJCOPY="$ac_cv_prog_OBJCOPY"
4093 if test -n "$OBJCOPY"; then
4094 echo "$ac_t""$OBJCOPY" 1>&6
4096 echo "$ac_t""no
" 1>&6
4100 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4102 set dummy ${ncn_progname}; ac_word=$2
4103 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4104 echo "configure
:4105: checking
for $ac_word" >&5
4105 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4106 echo $ac_n "(cached
) $ac_c" 1>&6
4108 if test -n "$OBJCOPY"; then
4109 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4113 for ac_dir in $ac_dummy; do
4114 test -z "$ac_dir" && ac_dir=.
4115 if test -f $ac_dir/$ac_word; then
4116 ac_cv_prog_OBJCOPY="${ncn_progname}"
4123 OBJCOPY="$ac_cv_prog_OBJCOPY"
4124 if test -n "$OBJCOPY"; then
4125 echo "$ac_t""$OBJCOPY" 1>&6
4127 echo "$ac_t""no
" 1>&6
4131 test -n "$ac_cv_prog_OBJCOPY" && break
4134 if test -z "$ac_cv_prog_OBJCOPY" ; then
4136 if test $build = $host ; then
4139 OBJCOPY="${ncn_tool_prefix}$2"
4143 for ncn_progname in objdump; do
4144 if test -n "$ncn_tool_prefix"; then
4145 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4146 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4147 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4148 echo "configure
:4149: checking
for $ac_word" >&5
4149 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4150 echo $ac_n "(cached
) $ac_c" 1>&6
4152 if test -n "$OBJDUMP"; then
4153 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4157 for ac_dir in $ac_dummy; do
4158 test -z "$ac_dir" && ac_dir=.
4159 if test -f $ac_dir/$ac_word; then
4160 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4167 OBJDUMP="$ac_cv_prog_OBJDUMP"
4168 if test -n "$OBJDUMP"; then
4169 echo "$ac_t""$OBJDUMP" 1>&6
4171 echo "$ac_t""no
" 1>&6
4175 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4177 set dummy ${ncn_progname}; ac_word=$2
4178 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4179 echo "configure
:4180: checking
for $ac_word" >&5
4180 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4181 echo $ac_n "(cached
) $ac_c" 1>&6
4183 if test -n "$OBJDUMP"; then
4184 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4188 for ac_dir in $ac_dummy; do
4189 test -z "$ac_dir" && ac_dir=.
4190 if test -f $ac_dir/$ac_word; then
4191 ac_cv_prog_OBJDUMP="${ncn_progname}"
4198 OBJDUMP="$ac_cv_prog_OBJDUMP"
4199 if test -n "$OBJDUMP"; then
4200 echo "$ac_t""$OBJDUMP" 1>&6
4202 echo "$ac_t""no
" 1>&6
4206 test -n "$ac_cv_prog_OBJDUMP" && break
4209 if test -z "$ac_cv_prog_OBJDUMP" ; then
4211 if test $build = $host ; then
4214 OBJDUMP="${ncn_tool_prefix}$2"
4224 # Target tools. Do the tests using the names they may have passed in
4225 # the environment, then move it to CONFIGURED_*_FOR_TARGET.
4226 for ncn_progname in ar; do
4227 if test -n "$ncn_target_tool_prefix"; then
4228 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4229 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4230 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4231 echo "configure
:4232: checking
for $ac_word" >&5
4232 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4233 echo $ac_n "(cached
) $ac_c" 1>&6
4235 if test -n "$AR_FOR_TARGET"; then
4236 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4240 for ac_dir in $ac_dummy; do
4241 test -z "$ac_dir" && ac_dir=.
4242 if test -f $ac_dir/$ac_word; then
4243 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4250 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
4251 if test -n "$AR_FOR_TARGET"; then
4252 echo "$ac_t""$AR_FOR_TARGET" 1>&6
4254 echo "$ac_t""no
" 1>&6
4258 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
4259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4260 set dummy ${ncn_progname}; ac_word=$2
4261 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4262 echo "configure
:4263: checking
for $ac_word" >&5
4263 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4264 echo $ac_n "(cached
) $ac_c" 1>&6
4266 if test -n "$AR_FOR_TARGET"; then
4267 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4271 for ac_dir in $ac_dummy; do
4272 test -z "$ac_dir" && ac_dir=.
4273 if test -f $ac_dir/$ac_word; then
4274 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
4281 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
4282 if test -n "$AR_FOR_TARGET"; then
4283 echo "$ac_t""$AR_FOR_TARGET" 1>&6
4285 echo "$ac_t""no
" 1>&6
4289 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
4292 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
4294 if test $build = $target ; then
4297 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
4301 for ncn_progname in as; do
4302 if test -n "$ncn_target_tool_prefix"; then
4303 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4304 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4305 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4306 echo "configure
:4307: checking
for $ac_word" >&5
4307 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
4308 echo $ac_n "(cached
) $ac_c" 1>&6
4310 if test -n "$AS_FOR_TARGET"; then
4311 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4315 for ac_dir in $ac_dummy; do
4316 test -z "$ac_dir" && ac_dir=.
4317 if test -f $ac_dir/$ac_word; then
4318 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4325 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4326 if test -n "$AS_FOR_TARGET"; then
4327 echo "$ac_t""$AS_FOR_TARGET" 1>&6
4329 echo "$ac_t""no
" 1>&6
4333 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
4334 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4335 set dummy ${ncn_progname}; ac_word=$2
4336 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4337 echo "configure
:4338: checking
for $ac_word" >&5
4338 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
4339 echo $ac_n "(cached
) $ac_c" 1>&6
4341 if test -n "$AS_FOR_TARGET"; then
4342 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4346 for ac_dir in $ac_dummy; do
4347 test -z "$ac_dir" && ac_dir=.
4348 if test -f $ac_dir/$ac_word; then
4349 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
4356 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4357 if test -n "$AS_FOR_TARGET"; then
4358 echo "$ac_t""$AS_FOR_TARGET" 1>&6
4360 echo "$ac_t""no
" 1>&6
4364 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
4367 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
4369 if test $build = $target ; then
4372 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4376 for ncn_progname in cc gcc; do
4377 if test -n "$ncn_target_tool_prefix"; then
4378 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4379 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4380 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4381 echo "configure
:4382: checking
for $ac_word" >&5
4382 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4383 echo $ac_n "(cached
) $ac_c" 1>&6
4385 if test -n "$CC_FOR_TARGET"; then
4386 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4390 for ac_dir in $ac_dummy; do
4391 test -z "$ac_dir" && ac_dir=.
4392 if test -f $ac_dir/$ac_word; then
4393 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4400 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4401 if test -n "$CC_FOR_TARGET"; then
4402 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4404 echo "$ac_t""no
" 1>&6
4408 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4410 set dummy ${ncn_progname}; ac_word=$2
4411 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4412 echo "configure
:4413: checking
for $ac_word" >&5
4413 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4414 echo $ac_n "(cached
) $ac_c" 1>&6
4416 if test -n "$CC_FOR_TARGET"; then
4417 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4421 for ac_dir in $ac_dummy; do
4422 test -z "$ac_dir" && ac_dir=.
4423 if test -f $ac_dir/$ac_word; then
4424 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4431 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4432 if test -n "$CC_FOR_TARGET"; then
4433 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4435 echo "$ac_t""no
" 1>&6
4439 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4442 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4444 if test $build = $target ; then
4447 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4451 for ncn_progname in c++ g++ cxx gxx; do
4452 if test -n "$ncn_target_tool_prefix"; then
4453 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4454 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4455 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4456 echo "configure
:4457: checking
for $ac_word" >&5
4457 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4458 echo $ac_n "(cached
) $ac_c" 1>&6
4460 if test -n "$CXX_FOR_TARGET"; then
4461 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4463 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4465 for ac_dir in $ac_dummy; do
4466 test -z "$ac_dir" && ac_dir=.
4467 if test -f $ac_dir/$ac_word; then
4468 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4475 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4476 if test -n "$CXX_FOR_TARGET"; then
4477 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4479 echo "$ac_t""no
" 1>&6
4483 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4485 set dummy ${ncn_progname}; ac_word=$2
4486 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4487 echo "configure
:4488: checking
for $ac_word" >&5
4488 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4489 echo $ac_n "(cached
) $ac_c" 1>&6
4491 if test -n "$CXX_FOR_TARGET"; then
4492 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4496 for ac_dir in $ac_dummy; do
4497 test -z "$ac_dir" && ac_dir=.
4498 if test -f $ac_dir/$ac_word; then
4499 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4506 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4507 if test -n "$CXX_FOR_TARGET"; then
4508 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4510 echo "$ac_t""no
" 1>&6
4514 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4517 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4518 set dummy c++ g++ cxx gxx
4519 if test $build = $target ; then
4522 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4526 for ncn_progname in dlltool; do
4527 if test -n "$ncn_target_tool_prefix"; then
4528 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4529 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4530 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4531 echo "configure
:4532: checking
for $ac_word" >&5
4532 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4533 echo $ac_n "(cached
) $ac_c" 1>&6
4535 if test -n "$DLLTOOL_FOR_TARGET"; then
4536 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4540 for ac_dir in $ac_dummy; do
4541 test -z "$ac_dir" && ac_dir=.
4542 if test -f $ac_dir/$ac_word; then
4543 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4550 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4551 if test -n "$DLLTOOL_FOR_TARGET"; then
4552 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4554 echo "$ac_t""no
" 1>&6
4558 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
4559 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4560 set dummy ${ncn_progname}; ac_word=$2
4561 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4562 echo "configure
:4563: checking
for $ac_word" >&5
4563 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4564 echo $ac_n "(cached
) $ac_c" 1>&6
4566 if test -n "$DLLTOOL_FOR_TARGET"; then
4567 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4571 for ac_dir in $ac_dummy; do
4572 test -z "$ac_dir" && ac_dir=.
4573 if test -f $ac_dir/$ac_word; then
4574 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
4581 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4582 if test -n "$DLLTOOL_FOR_TARGET"; then
4583 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4585 echo "$ac_t""no
" 1>&6
4589 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
4592 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
4594 if test $build = $target ; then
4595 DLLTOOL_FOR_TARGET="$2"
4597 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
4601 for ncn_progname in gcc; do
4602 if test -n "$ncn_target_tool_prefix"; then
4603 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4604 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4605 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4606 echo "configure
:4607: checking
for $ac_word" >&5
4607 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4608 echo $ac_n "(cached
) $ac_c" 1>&6
4610 if test -n "$GCC_FOR_TARGET"; then
4611 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4615 for ac_dir in $ac_dummy; do
4616 test -z "$ac_dir" && ac_dir=.
4617 if test -f $ac_dir/$ac_word; then
4618 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4625 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4626 if test -n "$GCC_FOR_TARGET"; then
4627 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4629 echo "$ac_t""no
" 1>&6
4633 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4635 set dummy ${ncn_progname}; ac_word=$2
4636 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4637 echo "configure
:4638: checking
for $ac_word" >&5
4638 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4639 echo $ac_n "(cached
) $ac_c" 1>&6
4641 if test -n "$GCC_FOR_TARGET"; then
4642 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4646 for ac_dir in $ac_dummy; do
4647 test -z "$ac_dir" && ac_dir=.
4648 if test -f $ac_dir/$ac_word; then
4649 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4656 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4657 if test -n "$GCC_FOR_TARGET"; then
4658 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4660 echo "$ac_t""no
" 1>&6
4664 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4667 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4668 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4671 for ncn_progname in gcj; do
4672 if test -n "$ncn_target_tool_prefix"; then
4673 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4674 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4675 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4676 echo "configure
:4677: checking
for $ac_word" >&5
4677 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4678 echo $ac_n "(cached
) $ac_c" 1>&6
4680 if test -n "$GCJ_FOR_TARGET"; then
4681 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4685 for ac_dir in $ac_dummy; do
4686 test -z "$ac_dir" && ac_dir=.
4687 if test -f $ac_dir/$ac_word; then
4688 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4695 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4696 if test -n "$GCJ_FOR_TARGET"; then
4697 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4699 echo "$ac_t""no
" 1>&6
4703 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4704 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4705 set dummy ${ncn_progname}; ac_word=$2
4706 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4707 echo "configure
:4708: checking
for $ac_word" >&5
4708 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4709 echo $ac_n "(cached
) $ac_c" 1>&6
4711 if test -n "$GCJ_FOR_TARGET"; then
4712 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4716 for ac_dir in $ac_dummy; do
4717 test -z "$ac_dir" && ac_dir=.
4718 if test -f $ac_dir/$ac_word; then
4719 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4726 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4727 if test -n "$GCJ_FOR_TARGET"; then
4728 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4730 echo "$ac_t""no
" 1>&6
4734 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4737 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4739 if test $build = $target ; then
4742 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4746 for ncn_progname in gfortran; do
4747 if test -n "$ncn_target_tool_prefix"; then
4748 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4749 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4750 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4751 echo "configure
:4752: checking
for $ac_word" >&5
4752 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4753 echo $ac_n "(cached
) $ac_c" 1>&6
4755 if test -n "$GFORTRAN_FOR_TARGET"; then
4756 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4760 for ac_dir in $ac_dummy; do
4761 test -z "$ac_dir" && ac_dir=.
4762 if test -f $ac_dir/$ac_word; then
4763 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4770 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4771 if test -n "$GFORTRAN_FOR_TARGET"; then
4772 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4774 echo "$ac_t""no
" 1>&6
4778 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
4779 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4780 set dummy ${ncn_progname}; ac_word=$2
4781 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4782 echo "configure
:4783: checking
for $ac_word" >&5
4783 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4784 echo $ac_n "(cached
) $ac_c" 1>&6
4786 if test -n "$GFORTRAN_FOR_TARGET"; then
4787 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4791 for ac_dir in $ac_dummy; do
4792 test -z "$ac_dir" && ac_dir=.
4793 if test -f $ac_dir/$ac_word; then
4794 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
4801 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4802 if test -n "$GFORTRAN_FOR_TARGET"; then
4803 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4805 echo "$ac_t""no
" 1>&6
4809 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
4812 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
4814 if test $build = $target ; then
4815 GFORTRAN_FOR_TARGET="$2"
4817 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
4821 for ncn_progname in ld; do
4822 if test -n "$ncn_target_tool_prefix"; then
4823 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4824 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4825 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4826 echo "configure
:4827: checking
for $ac_word" >&5
4827 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
4828 echo $ac_n "(cached
) $ac_c" 1>&6
4830 if test -n "$LD_FOR_TARGET"; then
4831 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
4833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4835 for ac_dir in $ac_dummy; do
4836 test -z "$ac_dir" && ac_dir=.
4837 if test -f $ac_dir/$ac_word; then
4838 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4845 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4846 if test -n "$LD_FOR_TARGET"; then
4847 echo "$ac_t""$LD_FOR_TARGET" 1>&6
4849 echo "$ac_t""no
" 1>&6
4853 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
4854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4855 set dummy ${ncn_progname}; ac_word=$2
4856 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4857 echo "configure
:4858: checking
for $ac_word" >&5
4858 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
4859 echo $ac_n "(cached
) $ac_c" 1>&6
4861 if test -n "$LD_FOR_TARGET"; then
4862 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
4864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4866 for ac_dir in $ac_dummy; do
4867 test -z "$ac_dir" && ac_dir=.
4868 if test -f $ac_dir/$ac_word; then
4869 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
4876 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4877 if test -n "$LD_FOR_TARGET"; then
4878 echo "$ac_t""$LD_FOR_TARGET" 1>&6
4880 echo "$ac_t""no
" 1>&6
4884 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
4887 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
4889 if test $build = $target ; then
4892 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
4896 for ncn_progname in lipo; do
4897 if test -n "$ncn_target_tool_prefix"; then
4898 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4899 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4900 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4901 echo "configure
:4902: checking
for $ac_word" >&5
4902 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
4903 echo $ac_n "(cached
) $ac_c" 1>&6
4905 if test -n "$LIPO_FOR_TARGET"; then
4906 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
4908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4910 for ac_dir in $ac_dummy; do
4911 test -z "$ac_dir" && ac_dir=.
4912 if test -f $ac_dir/$ac_word; then
4913 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4920 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
4921 if test -n "$LIPO_FOR_TARGET"; then
4922 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
4924 echo "$ac_t""no
" 1>&6
4928 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
4929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4930 set dummy ${ncn_progname}; ac_word=$2
4931 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4932 echo "configure
:4933: checking
for $ac_word" >&5
4933 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
4934 echo $ac_n "(cached
) $ac_c" 1>&6
4936 if test -n "$LIPO_FOR_TARGET"; then
4937 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
4939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4941 for ac_dir in $ac_dummy; do
4942 test -z "$ac_dir" && ac_dir=.
4943 if test -f $ac_dir/$ac_word; then
4944 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
4951 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
4952 if test -n "$LIPO_FOR_TARGET"; then
4953 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
4955 echo "$ac_t""no
" 1>&6
4959 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
4962 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
4964 if test $build = $target ; then
4965 LIPO_FOR_TARGET="$2"
4967 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
4971 for ncn_progname in nm; do
4972 if test -n "$ncn_target_tool_prefix"; then
4973 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4974 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4975 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4976 echo "configure
:4977: checking
for $ac_word" >&5
4977 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
4978 echo $ac_n "(cached
) $ac_c" 1>&6
4980 if test -n "$NM_FOR_TARGET"; then
4981 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
4983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4985 for ac_dir in $ac_dummy; do
4986 test -z "$ac_dir" && ac_dir=.
4987 if test -f $ac_dir/$ac_word; then
4988 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4995 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
4996 if test -n "$NM_FOR_TARGET"; then
4997 echo "$ac_t""$NM_FOR_TARGET" 1>&6
4999 echo "$ac_t""no
" 1>&6
5003 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
5004 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5005 set dummy ${ncn_progname}; ac_word=$2
5006 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5007 echo "configure
:5008: checking
for $ac_word" >&5
5008 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5009 echo $ac_n "(cached
) $ac_c" 1>&6
5011 if test -n "$NM_FOR_TARGET"; then
5012 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5016 for ac_dir in $ac_dummy; do
5017 test -z "$ac_dir" && ac_dir=.
5018 if test -f $ac_dir/$ac_word; then
5019 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5026 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5027 if test -n "$NM_FOR_TARGET"; then
5028 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5030 echo "$ac_t""no
" 1>&6
5034 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
5037 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
5039 if test $build = $target ; then
5042 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
5046 for ncn_progname in objdump; do
5047 if test -n "$ncn_target_tool_prefix"; then
5048 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5049 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5050 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5051 echo "configure
:5052: checking
for $ac_word" >&5
5052 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5053 echo $ac_n "(cached
) $ac_c" 1>&6
5055 if test -n "$OBJDUMP_FOR_TARGET"; then
5056 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5058 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5060 for ac_dir in $ac_dummy; do
5061 test -z "$ac_dir" && ac_dir=.
5062 if test -f $ac_dir/$ac_word; then
5063 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5070 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5071 if test -n "$OBJDUMP_FOR_TARGET"; then
5072 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5074 echo "$ac_t""no
" 1>&6
5078 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
5079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5080 set dummy ${ncn_progname}; ac_word=$2
5081 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5082 echo "configure
:5083: checking
for $ac_word" >&5
5083 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5084 echo $ac_n "(cached
) $ac_c" 1>&6
5086 if test -n "$OBJDUMP_FOR_TARGET"; then
5087 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5091 for ac_dir in $ac_dummy; do
5092 test -z "$ac_dir" && ac_dir=.
5093 if test -f $ac_dir/$ac_word; then
5094 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5101 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5102 if test -n "$OBJDUMP_FOR_TARGET"; then
5103 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5105 echo "$ac_t""no
" 1>&6
5109 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
5112 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
5114 if test $build = $target ; then
5115 OBJDUMP_FOR_TARGET="$2"
5117 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5121 for ncn_progname in ranlib; do
5122 if test -n "$ncn_target_tool_prefix"; then
5123 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5124 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5125 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5126 echo "configure
:5127: checking
for $ac_word" >&5
5127 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5128 echo $ac_n "(cached
) $ac_c" 1>&6
5130 if test -n "$RANLIB_FOR_TARGET"; then
5131 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
5133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5135 for ac_dir in $ac_dummy; do
5136 test -z "$ac_dir" && ac_dir=.
5137 if test -f $ac_dir/$ac_word; then
5138 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5145 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
5146 if test -n "$RANLIB_FOR_TARGET"; then
5147 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
5149 echo "$ac_t""no
" 1>&6
5153 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
5154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5155 set dummy ${ncn_progname}; ac_word=$2
5156 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5157 echo "configure
:5158: checking
for $ac_word" >&5
5158 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5159 echo $ac_n "(cached
) $ac_c" 1>&6
5161 if test -n "$RANLIB_FOR_TARGET"; then
5162 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
5164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5166 for ac_dir in $ac_dummy; do
5167 test -z "$ac_dir" && ac_dir=.
5168 if test -f $ac_dir/$ac_word; then
5169 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5176 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
5177 if test -n "$RANLIB_FOR_TARGET"; then
5178 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
5180 echo "$ac_t""no
" 1>&6
5184 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
5187 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
5188 RANLIB_FOR_TARGET=":"
5191 for ncn_progname in strip; do
5192 if test -n "$ncn_target_tool_prefix"; then
5193 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5194 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5195 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5196 echo "configure
:5197: checking
for $ac_word" >&5
5197 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5198 echo $ac_n "(cached
) $ac_c" 1>&6
5200 if test -n "$STRIP_FOR_TARGET"; then
5201 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5205 for ac_dir in $ac_dummy; do
5206 test -z "$ac_dir" && ac_dir=.
5207 if test -f $ac_dir/$ac_word; then
5208 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5215 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
5216 if test -n "$STRIP_FOR_TARGET"; then
5217 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
5219 echo "$ac_t""no
" 1>&6
5223 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
5224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5225 set dummy ${ncn_progname}; ac_word=$2
5226 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5227 echo "configure
:5228: checking
for $ac_word" >&5
5228 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5229 echo $ac_n "(cached
) $ac_c" 1>&6
5231 if test -n "$STRIP_FOR_TARGET"; then
5232 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5236 for ac_dir in $ac_dummy; do
5237 test -z "$ac_dir" && ac_dir=.
5238 if test -f $ac_dir/$ac_word; then
5239 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5246 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
5247 if test -n "$STRIP_FOR_TARGET"; then
5248 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
5250 echo "$ac_t""no
" 1>&6
5254 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
5257 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
5259 if test $build = $target ; then
5260 STRIP_FOR_TARGET="$2"
5262 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5266 for ncn_progname in windres; do
5267 if test -n "$ncn_target_tool_prefix"; then
5268 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5269 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5270 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5271 echo "configure
:5272: checking
for $ac_word" >&5
5272 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5273 echo $ac_n "(cached
) $ac_c" 1>&6
5275 if test -n "$WINDRES_FOR_TARGET"; then
5276 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
5278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5280 for ac_dir in $ac_dummy; do
5281 test -z "$ac_dir" && ac_dir=.
5282 if test -f $ac_dir/$ac_word; then
5283 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5290 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
5291 if test -n "$WINDRES_FOR_TARGET"; then
5292 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
5294 echo "$ac_t""no
" 1>&6
5298 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
5299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5300 set dummy ${ncn_progname}; ac_word=$2
5301 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5302 echo "configure
:5303: checking
for $ac_word" >&5
5303 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5304 echo $ac_n "(cached
) $ac_c" 1>&6
5306 if test -n "$WINDRES_FOR_TARGET"; then
5307 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
5309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5311 for ac_dir in $ac_dummy; do
5312 test -z "$ac_dir" && ac_dir=.
5313 if test -f $ac_dir/$ac_word; then
5314 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5321 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
5322 if test -n "$WINDRES_FOR_TARGET"; then
5323 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
5325 echo "$ac_t""no
" 1>&6
5329 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
5332 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
5334 if test $build = $target ; then
5335 WINDRES_FOR_TARGET="$2"
5337 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
5342 CONFIGURED_AR_FOR_TARGET="$AR_FOR_TARGET"
5343 CONFIGURED_AS_FOR_TARGET="$AS_FOR_TARGET"
5344 CONFIGURED_CC_FOR_TARGET="$CC_FOR_TARGET"
5345 CONFIGURED_CXX_FOR_TARGET="$CXX_FOR_TARGET"
5346 CONFIGURED_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET"
5347 CONFIGURED_GCC_FOR_TARGET="$GCC_FOR_TARGET"
5348 CONFIGURED_GCJ_FOR_TARGET="$GCJ_FOR_TARGET"
5349 CONFIGURED_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET"
5350 CONFIGURED_LD_FOR_TARGET="$LD_FOR_TARGET"
5351 CONFIGURED_LIPO_FOR_TARGET="$LIPO_FOR_TARGET"
5352 CONFIGURED_NM_FOR_TARGET="$NM_FOR_TARGET"
5353 CONFIGURED_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET"
5354 CONFIGURED_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET"
5355 CONFIGURED_STRIP_FOR_TARGET="$STRIP_FOR_TARGET"
5356 CONFIGURED_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET"
5360 # Fix up target tools.
5361 if test "x
${build}" = "x
${host}" ; then
5362 # In this case, the newly built tools can and should be used,
5363 # so we override the results of the autoconf tests.
5364 # This should really only happen when the tools are actually being built,
5365 # but that's a further refinement. The new build scheme, where
5366 # tools are built into a structure paralleling where they're installed,
5367 # should also eliminate all of this cleanly.
5368 AR_FOR_TARGET="\$
(USUAL_AR_FOR_TARGET
)"
5369 AS_FOR_TARGET="\$
(USUAL_AS_FOR_TARGET
)"
5370 CC_FOR_TARGET="\$
(USUAL_CC_FOR_TARGET
)"
5371 CXX_FOR_TARGET="\$
(USUAL_CXX_FOR_TARGET
)"
5372 RAW_CXX_FOR_TARGET="\$
(USUAL_RAW_CXX_FOR_TARGET
)"
5373 DLLTOOL_FOR_TARGET="\$
(USUAL_DLLTOOL_FOR_TARGET
)"
5374 GCC_FOR_TARGET="\$
(USUAL_GCC_FOR_TARGET
)"
5375 GCJ_FOR_TARGET="\$
(USUAL_GCJ_FOR_TARGET
)"
5376 GFORTRAN_FOR_TARGET="\$
(USUAL_GFORTRAN_FOR_TARGET
)"
5377 LD_FOR_TARGET="\$
(USUAL_LD_FOR_TARGET
)"
5378 LIPO_FOR_TARGET="\$
(USUAL_LIPO_FOR_TARGET
)"
5379 NM_FOR_TARGET="\$
(USUAL_NM_FOR_TARGET
)"
5380 OBJDUMP_FOR_TARGET="\$
(USUAL_OBJDUMP_FOR_TARGET
)"
5381 RANLIB_FOR_TARGET="\$
(USUAL_RANLIB_FOR_TARGET
)"
5382 STRIP_FOR_TARGET="\$
(USUAL_STRIP_FOR_TARGET
)"
5383 WINDRES_FOR_TARGET="\$
(USUAL_WINDRES_FOR_TARGET
)"
5385 # Just use the ones we found.
5386 AR_FOR_TARGET="\$
(CONFIGURED_AR_FOR_TARGET
)"
5387 AS_FOR_TARGET="\$
(CONFIGURED_AS_FOR_TARGET
)"
5388 CC_FOR_TARGET="\$
(CONFIGURED_CC_FOR_TARGET
)"
5389 CXX_FOR_TARGET="\$
(CONFIGURED_CXX_FOR_TARGET
)"
5390 RAW_CXX_FOR_TARGET="\$
(CONFIGURED_CXX_FOR_TARGET
)"
5391 DLLTOOL_FOR_TARGET="\$
(CONFIGURED_DLLTOOL_FOR_TARGET
)"
5392 GCC_FOR_TARGET="\$
(CONFIGURED_GCC_FOR_TARGET
)"
5393 GCJ_FOR_TARGET="\$
(CONFIGURED_GCJ_FOR_TARGET
)"
5394 GFORTRAN_FOR_TARGET="\$
(CONFIGURED_GFORTRAN_FOR_TARGET
)"
5395 LD_FOR_TARGET="\$
(CONFIGURED_LD_FOR_TARGET
)"
5396 LIPO_FOR_TARGET="\$
(CONFIGURED_LIPO_FOR_TARGET
)"
5397 NM_FOR_TARGET="\$
(CONFIGURED_NM_FOR_TARGET
)"
5398 OBJDUMP_FOR_TARGET="\$
(CONFIGURED_OBJDUMP_FOR_TARGET
)"
5399 RANLIB_FOR_TARGET="\$
(CONFIGURED_RANLIB_FOR_TARGET
)"
5400 STRIP_FOR_TARGET="\$
(CONFIGURED_STRIP_FOR_TARGET
)"
5401 WINDRES_FOR_TARGET="\$
(CONFIGURED_WINDRES_FOR_TARGET
)"
5406 # Certain tools may need extra flags.
5407 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
5408 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
5409 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
5411 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
5412 echo "configure
:5413: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
5413 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5414 if test "${enable_maintainer_mode+set}" = set; then
5415 enableval="$enable_maintainer_mode"
5416 USE_MAINTAINER_MODE=$enableval
5418 USE_MAINTAINER_MODE=no
5421 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
5424 if test "$USE_MAINTAINER_MODE" = yes; then
5425 MAINTAINER_MODE_TRUE=
5426 MAINTAINER_MODE_FALSE='#'
5428 MAINTAINER_MODE_TRUE='#'
5429 MAINTAINER_MODE_FALSE=
5431 MAINT=$MAINTAINER_MODE_TRUE
5433 # ---------------------
5434 # GCC bootstrap support
5435 # ---------------------
5437 # Stage specific cflags for build.
5442 yes) stage1_cflags="-g -Wa,-J" ;;
5443 *) stage1_cflags="-g -J" ;;
5446 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
5447 # sources; use -no-cpp-precomp to get to GNU cpp.
5448 # Apple's GCC has bugs in designated initializer handling, so disable
5450 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
5455 # It makes debugging easier if we create as symlinks the stage directories
5456 # gcc for stageN-gcc and stagePREV-gcc for stage(N-1). In case this is not
5457 # possible, however, we can resort to mv.
5458 echo $ac_n "checking
if symbolic links between directories work
""...
$ac_c" 1>&6
5459 echo "configure
:5460: checking
if symbolic links between directories work
" >&5
5460 if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
5461 echo $ac_n "(cached
) $ac_c" 1>&6
5463 if test "${LN_S}" = "ln -s" \
5464 && mkdir confdir.s1 \
5465 && ln -s confdir.s1 confdir.s2 \
5466 && echo timestamp1 > confdir.s1/conftest.1 \
5467 && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \
5468 && echo timestamp2 > confdir.s2/conftest.2 \
5469 && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \
5470 && rm -f confdir.s2; then
5471 gcc_cv_prog_ln_s_dir=yes
5473 gcc_cv_prog_ln_s_dir=no
5475 rm -rf confdir.s1 confdir.s2
5478 echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6
5480 case ${gcc_cv_prog_ln_s_dir} in
5482 CREATE_LINK_TO_DIR='ln -s $$1 $$2'
5483 UNDO_LINK_TO_DIR='rm -f $$1' ;;
5485 CREATE_LINK_TO_DIR='mv $$1 $$2'
5486 UNDO_LINK_TO_DIR='mv $$1 $$2' ;;
5491 # Enable -Werror in bootstrap stage2 and later.
5492 # Change the default to "no
" on release branches.
5493 # Check whether --enable-werror or --disable-werror was given.
5494 if test "${enable_werror+set}" = set; then
5495 enableval="$enable_werror"
5501 case ${enable_werror} in
5502 yes) stage2_werror_flag="--enable-werror-always" ;;
5503 *) stage2_werror_flag="" ;;
5508 cat > confcache <<\EOF
5509 # This file is a shell script that caches the results of configure
5510 # tests run on this system so they can be shared between configure
5511 # scripts and configure runs. It is not useful on other systems.
5512 # If it contains results you don't want to keep, you may remove or edit it.
5514 # By default, configure uses ./config.cache as the cache file,
5515 # creating it if it does not exist already. You can give configure
5516 # the --cache-file=FILE option to use a different cache file; that is
5517 # what configure does when it calls configure scripts in
5518 # subdirectories, so they share the cache.
5519 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5520 # config.status only pays attention to the cache file if you give it the
5521 # --recheck option to rerun configure.
5524 # The following way of writing the cache mishandles newlines in values,
5525 # but we know of no workaround that is simple, portable, and efficient.
5526 # So, don't put newlines in cache variables' values.
5527 # Ultrix sh set writes to stderr and can't be redirected directly,
5528 # and sets the high bit in the cache file unless we assign to the vars.
5530 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5532 # `set' does not quote correctly, so add quotes (double-quote substitution
5533 # turns \\\\ into \\, and sed turns \\ into \).
5535 -e "s
/'/'\\\\''/g
" \
5536 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
5539 # `set' quotes correctly as required by POSIX, so do not add quotes.
5540 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5543 if cmp -s $cache_file confcache; then
5546 if test -w $cache_file; then
5547 echo "updating cache
$cache_file"
5548 cat confcache > $cache_file
5550 echo "not updating unwritable cache
$cache_file"
5555 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5557 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
5558 # Let make expand exec_prefix.
5559 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
5561 # Any assignment to VPATH causes Sun make to only execute
5562 # the first set of double-colon rules, so remove it if not needed.
5563 # If there is a colon in the path, we need to keep it.
5564 if test "x
$srcdir" = x.; then
5565 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5568 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5570 # Transform confdefs.h into DEFS.
5571 # Protect against shell expansion while executing Makefile rules.
5572 # Protect against Makefile macro expansion.
5574 # If the first sed substitution is executed (which looks for macros that
5575 # take arguments), then we branch to the quote section. Otherwise,
5576 # look for a macro that doesn't take arguments.
5577 cat >confdef2opt.sed <<\_ACEOF
5580 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5582 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5586 s,[ `~#$^&*(){}\\|;'"<>?
],\\&,g
5592 # We use echo to avoid assuming a particular line-breaking character.
5593 # The extra dot is to prevent the shell from consuming trailing
5594 # line-breaks from the sub-command output. A line-break within
5595 # single-quotes doesn't work because, if this script is created in a
5596 # platform that uses two characters for line-breaks (e.g., DOS), tr
5598 ac_LF_and_DOT
=`echo; echo .`
5599 DEFS
=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5600 rm -f confdef2opt.
sed
5603 # Without the "./", some shells look in PATH for config.status.
5604 : ${CONFIG_STATUS=./config.status}
5606 echo creating
$CONFIG_STATUS
5607 rm -f $CONFIG_STATUS
5608 cat > $CONFIG_STATUS <<EOF
5610 # Generated automatically by configure.
5611 # Run this file to recreate the current configuration.
5612 # This directory was configured as follows,
5613 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5615 # $0 $ac_configure_args
5617 # Compiler output produced by configure, useful for debugging
5618 # configure, is in ./config.log if it exists.
5620 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5623 case "\$ac_option" in
5624 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5625 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5626 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5627 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5628 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5630 -help | --help | --hel | --he | --h)
5631 echo "\$ac_cs_usage"; exit 0 ;;
5632 *) echo "\$ac_cs_usage"; exit 1 ;;
5636 ac_given_srcdir=$srcdir
5637 ac_given_INSTALL="$INSTALL"
5639 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5641 cat >> $CONFIG_STATUS <<EOF
5643 # Protect against being on the right side of a sed subst in config.status.
5644 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5645 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5649 s%@CFLAGS@%$CFLAGS%g
5650 s%@CPPFLAGS@%$CPPFLAGS%g
5651 s%@CXXFLAGS@%$CXXFLAGS%g
5652 s%@FFLAGS@%$FFLAGS%g
5654 s%@LDFLAGS@%$LDFLAGS%g
5656 s%@exec_prefix@%$exec_prefix%g
5657 s%@prefix@%$prefix%g
5658 s%@program_transform_name@%$program_transform_name%g
5659 s%@bindir@%$bindir%g
5660 s%@sbindir@%$sbindir%g
5661 s%@libexecdir@%$libexecdir%g
5662 s%@datadir@%$datadir%g
5663 s%@sysconfdir@%$sysconfdir%g
5664 s%@sharedstatedir@%$sharedstatedir%g
5665 s%@localstatedir@%$localstatedir%g
5666 s%@libdir@%$libdir%g
5667 s%@includedir@%$includedir%g
5668 s%@oldincludedir@%$oldincludedir%g
5669 s%@infodir@%$infodir%g
5670 s%@mandir@%$mandir%g
5672 s%@host_alias@%$host_alias%g
5673 s%@host_cpu@%$host_cpu%g
5674 s%@host_vendor@%$host_vendor%g
5675 s%@host_os@%$host_os%g
5676 s%@target@%$target%g
5677 s%@target_alias@%$target_alias%g
5678 s%@target_cpu@%$target_cpu%g
5679 s%@target_vendor@%$target_vendor%g
5680 s%@target_os@%$target_os%g
5682 s%@build_alias@%$build_alias%g
5683 s%@build_cpu@%$build_cpu%g
5684 s%@build_vendor@%$build_vendor%g
5685 s%@build_os@%$build_os%g
5686 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5687 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5688 s%@INSTALL_DATA@%$INSTALL_DATA%g
5691 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
5692 s%@build_subdir@%$build_subdir%g
5693 s%@host_subdir@%$host_subdir%g
5694 s%@target_subdir@%$target_subdir%g
5696 s%@GNATBIND@%$GNATBIND%g
5697 s%@do_compare@%$do_compare%g
5698 s%@gmplibs@%$gmplibs%g
5699 s%@gmpinc@%$gmpinc%g
5700 s%@stage1_languages@%$stage1_languages%g
5701 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
5702 s%@CONFIGURED_BISON@%$CONFIGURED_BISON%g
5703 s%@CONFIGURED_YACC@%$CONFIGURED_YACC%g
5704 s%@CONFIGURED_M4@%$CONFIGURED_M4%g
5705 s%@CONFIGURED_FLEX@%$CONFIGURED_FLEX%g
5706 s%@CONFIGURED_LEX@%$CONFIGURED_LEX%g
5707 s%@CONFIGURED_MAKEINFO@%$CONFIGURED_MAKEINFO%g
5708 s%@bootstrap_lean@%$bootstrap_lean%g
5709 /@serialization_dependencies@/r $serialization_dependencies
5710 s%@serialization_dependencies@%%g
5711 /@host_makefile_frag@/r $host_makefile_frag
5712 s%@host_makefile_frag@%%g
5713 /@target_makefile_frag@/r $target_makefile_frag
5714 s%@target_makefile_frag@%%g
5715 /@alphaieee_frag@/r $alphaieee_frag
5716 s%@alphaieee_frag@%%g
5717 /@ospace_frag@/r $ospace_frag
5719 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
5720 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
5721 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
5722 s%@tooldir@%$tooldir%g
5723 s%@build_tooldir@%$build_tooldir%g
5724 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
5725 s%@GDB_TK@%$GDB_TK%g
5726 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
5727 s%@build_configargs@%$build_configargs%g
5728 s%@build_configdirs@%$build_configdirs%g
5729 s%@host_configargs@%$host_configargs%g
5730 s%@configdirs@%$configdirs%g
5731 s%@target_configargs@%$target_configargs%g
5732 s%@target_configdirs@%$target_configdirs%g
5733 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5734 s%@config_shell@%$config_shell%g
5737 s%@DLLTOOL@%$DLLTOOL%g
5740 s%@RANLIB@%$RANLIB%g
5741 s%@WINDRES@%$WINDRES%g
5742 s%@OBJCOPY@%$OBJCOPY%g
5743 s%@OBJDUMP@%$OBJDUMP%g
5745 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
5746 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
5747 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
5748 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
5749 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
5750 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
5751 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
5752 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
5753 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
5754 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
5755 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
5756 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
5757 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
5758 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
5759 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
5760 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
5761 s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
5762 s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
5763 s%@CONFIGURED_CC_FOR_TARGET@%$CONFIGURED_CC_FOR_TARGET%g
5764 s%@CONFIGURED_CXX_FOR_TARGET@%$CONFIGURED_CXX_FOR_TARGET%g
5765 s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
5766 s%@CONFIGURED_GCC_FOR_TARGET@%$CONFIGURED_GCC_FOR_TARGET%g
5767 s%@CONFIGURED_GCJ_FOR_TARGET@%$CONFIGURED_GCJ_FOR_TARGET%g
5768 s%@CONFIGURED_GFORTRAN_FOR_TARGET@%$CONFIGURED_GFORTRAN_FOR_TARGET%g
5769 s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
5770 s%@CONFIGURED_LIPO_FOR_TARGET@%$CONFIGURED_LIPO_FOR_TARGET%g
5771 s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
5772 s%@CONFIGURED_OBJDUMP_FOR_TARGET@%$CONFIGURED_OBJDUMP_FOR_TARGET%g
5773 s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
5774 s%@CONFIGURED_STRIP_FOR_TARGET@%$CONFIGURED_STRIP_FOR_TARGET%g
5775 s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
5776 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
5777 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
5778 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5779 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5781 s%@stage1_cflags@%$stage1_cflags%g
5782 s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g
5783 s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g
5784 s%@stage2_werror_flag@%$stage2_werror_flag%g
5789 cat >> $CONFIG_STATUS <<\EOF
5791 # Split the substitutions into bite-sized pieces for seds with
5792 # small command number limits, like on Digital OSF/1 and HP-UX.
5793 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5794 ac_file
=1 # Number of current file.
5795 ac_beg
=1 # First line for current file.
5796 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5799 while $ac_more_lines; do
5800 if test $ac_beg -gt 1; then
5801 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5803 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5805 if test ! -s conftest.s
$ac_file; then
5807 rm -f conftest.s
$ac_file
5809 if test -z "$ac_sed_cmds"; then
5810 ac_sed_cmds
="sed -f conftest.s$ac_file"
5812 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5814 ac_file
=`expr $ac_file + 1`
5816 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5819 if test -z "$ac_sed_cmds"; then
5824 cat >> $CONFIG_STATUS <<EOF
5826 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5828 cat >> $CONFIG_STATUS <<\EOF
5829 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5830 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5832 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5833 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5834 *) ac_file_in
="${ac_file}.in" ;;
5837 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5839 # Remove last slash and all that follows it. Not all systems have dirname.
5840 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5841 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5842 # The file is in a subdirectory.
5843 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5844 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5845 # A "../" for each directory in $ac_dir_suffix.
5846 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5848 ac_dir_suffix
= ac_dots
=
5851 case "$ac_given_srcdir" in
5853 if test -z "$ac_dots"; then top_srcdir
=.
5854 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5855 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5857 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5858 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5861 case "$ac_given_INSTALL" in
5862 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5863 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5866 echo creating
"$ac_file"
5868 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5870 *Makefile
*) ac_comsub
="1i\\
5871 # $configure_input" ;;
5875 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5877 s%@configure_input@%$configure_input%g
5878 s%@srcdir@%$srcdir%g
5879 s%@top_srcdir@%$top_srcdir%g
5880 s%@INSTALL@%$INSTALL%g
5881 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5886 cat >> $CONFIG_STATUS <<EOF
5889 cat >> $CONFIG_STATUS <<\EOF
5893 chmod +x
$CONFIG_STATUS
5894 rm -fr confdefs
* $ac_clean_files
5895 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1