3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-build-libsubdir=[DIR] Directory where to find libraries for build system"
17 --enable-libada Builds libada directory"
19 --enable-libssp Builds libssp directory"
21 --with-mpfr-dir=PATH This option has been REMOVED"
23 --with-mpfr=PATH Specify prefix directory for installed MPFR package
24 Equivalent to --with-mpfr-include=PATH/include
25 plus --with-mpfr-lib=PATH/lib"
27 --with-mpfr-include=PATH
28 Specify directory for installed MPFR include files"
30 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library"
32 --with-gmp-dir=PATH This option has been REMOVED"
34 --with-gmp=PATH Specify prefix directory for the installed GMP package
35 Equivalent to --with-gmp-include=PATH/include
36 plus --with-gmp-lib=PATH/lib"
38 --with-gmp-include=PATH Specify directory for installed GMP include files"
40 --with-gmp-lib=PATH Specify the directory for the installed GMP library"
42 --enable-objc-gc enable the use of Boehm's garbage collector with
43 the GNU Objective-C runtime."
45 --with-build-sysroot=sysroot
46 use sysroot as the system root during the build"
48 --enable-bootstrap Enable bootstrapping [yes if native build]"
50 --enable-serial-[{host,target,build}-]configure
51 Force sequential configuration of
52 sub-packages for the host, target or build
53 machine, or all sub-packages"
55 --with-build-time-tools=path
56 use given path to find target tools during the build"
58 --enable-maintainer-mode enable make rules and dependencies not useful
59 (and sometimes confusing) to the casual installer"
61 --enable-stage1-checking[=all] choose additional checking for stage1
64 --enable-werror enable -Werror in bootstrap stage2 and later"
66 --with-datarootdir Use datarootdir as the data root directory."
68 --with-docdir Install documentation in this directory."
70 --with-htmldir Install html in this directory."
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
76 cache_file
=.
/config.cache
85 program_transform_name
=s
,x
,x
,
93 bindir
='${exec_prefix}/bin'
94 sbindir
='${exec_prefix}/sbin'
95 libexecdir
='${exec_prefix}/libexec'
96 datadir
='${prefix}/share'
97 sysconfdir
='${prefix}/etc'
98 sharedstatedir
='${prefix}/com'
99 localstatedir
='${prefix}/var'
100 libdir
='${exec_prefix}/lib'
101 includedir
='${prefix}/include'
102 oldincludedir
='/usr/include'
103 infodir
='${prefix}/info'
104 mandir
='${prefix}/man'
106 # Initialize some other variables.
109 SHELL
=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
117 # If the previous option needs an argument, assign it.
118 if test -n "$ac_prev"; then
119 eval "$ac_prev=\$ac_option"
125 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129 # Accept the important Cygnus configure options, so we can diagnose typos.
133 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
135 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
136 bindir
="$ac_optarg" ;;
138 -build |
--build |
--buil |
--bui |
--bu)
140 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
141 build
="$ac_optarg" ;;
143 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
144 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
145 ac_prev
=cache_file
;;
146 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
147 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
148 cache_file
="$ac_optarg" ;;
150 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
152 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
154 datadir
="$ac_optarg" ;;
156 -disable-* |
--disable-*)
157 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}=no" ;;
165 -enable-* |
--enable-*)
166 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
176 eval "enable_${ac_feature}='$ac_optarg'" ;;
178 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
179 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
180 |
--exec |
--exe |
--ex)
181 ac_prev
=exec_prefix
;;
182 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
183 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
184 |
--exec=* |
--exe=* |
--ex=*)
185 exec_prefix
="$ac_optarg" ;;
187 -gas |
--gas |
--ga |
--g)
188 # Obsolete; use --with-gas.
191 -help |
--help |
--hel |
--he)
192 # Omit some internal or obsolete options to make the list less imposing.
193 # This message is too long to be a string in the A/UX 3.1 sh.
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
198 --cache-file=FILE cache test results in FILE
199 --help print this message
200 --no-create do not create output files
201 --quiet, --silent do not print \`checking...' messages
202 --version print the version of autoconf that created configure
203 Directory and file names:
204 --prefix=PREFIX install architecture-independent files in PREFIX
206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
208 --bindir=DIR user executables in DIR [EPREFIX/bin]
209 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
210 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
211 --datadir=DIR read-only architecture-independent data in DIR
213 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
214 --sharedstatedir=DIR modifiable architecture-independent data in DIR
216 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
217 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
218 --includedir=DIR C header files in DIR [PREFIX/include]
219 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
220 --infodir=DIR info documentation in DIR [PREFIX/info]
221 --mandir=DIR man documentation in DIR [PREFIX/man]
222 --srcdir=DIR find the sources in DIR [configure dir or ..]
223 --program-prefix=PREFIX prepend PREFIX to installed program names
224 --program-suffix=SUFFIX append SUFFIX to installed program names
225 --program-transform-name=PROGRAM
226 run sed PROGRAM on installed program names
230 --build=BUILD configure for building on BUILD [BUILD=HOST]
231 --host=HOST configure for HOST [guessed]
232 --target=TARGET configure for TARGET [TARGET=HOST]
233 Features and packages:
234 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
235 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
238 --x-includes=DIR X include files are in DIR
239 --x-libraries=DIR X library files are in DIR
241 if test -n "$ac_help"; then
242 echo "--enable and --with options recognized:$ac_help"
246 -host |
--host |
--hos |
--ho)
248 -host=* |
--host=* |
--hos=* |
--ho=*)
251 -includedir |
--includedir |
--includedi |
--included |
--include \
252 |
--includ |
--inclu |
--incl |
--inc)
253 ac_prev
=includedir
;;
254 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
255 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
256 includedir
="$ac_optarg" ;;
258 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
260 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
261 infodir
="$ac_optarg" ;;
263 -libdir |
--libdir |
--libdi |
--libd)
265 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
266 libdir
="$ac_optarg" ;;
268 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
269 |
--libexe |
--libex |
--libe)
270 ac_prev
=libexecdir
;;
271 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
272 |
--libexe=* |
--libex=* |
--libe=*)
273 libexecdir
="$ac_optarg" ;;
275 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
276 |
--localstate |
--localstat |
--localsta |
--localst \
277 |
--locals |
--local |
--loca |
--loc |
--lo)
278 ac_prev
=localstatedir
;;
279 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
280 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
281 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
282 localstatedir
="$ac_optarg" ;;
284 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
286 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
287 mandir
="$ac_optarg" ;;
290 # Obsolete; use --without-fp.
293 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
297 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
298 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
301 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
302 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
303 |
--oldin |
--oldi |
--old |
--ol |
--o)
304 ac_prev
=oldincludedir
;;
305 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
306 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
307 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
308 oldincludedir
="$ac_optarg" ;;
310 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
312 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
313 prefix
="$ac_optarg" ;;
315 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
316 |
--program-pre |
--program-pr |
--program-p)
317 ac_prev
=program_prefix
;;
318 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
319 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
320 program_prefix
="$ac_optarg" ;;
322 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
323 |
--program-suf |
--program-su |
--program-s)
324 ac_prev
=program_suffix
;;
325 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
326 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
327 program_suffix
="$ac_optarg" ;;
329 -program-transform-name |
--program-transform-name \
330 |
--program-transform-nam |
--program-transform-na \
331 |
--program-transform-n |
--program-transform- \
332 |
--program-transform |
--program-transfor \
333 |
--program-transfo |
--program-transf \
334 |
--program-trans |
--program-tran \
335 |
--progr-tra |
--program-tr |
--program-t)
336 ac_prev
=program_transform_name
;;
337 -program-transform-name=* |
--program-transform-name=* \
338 |
--program-transform-nam=* |
--program-transform-na=* \
339 |
--program-transform-n=* |
--program-transform-=* \
340 |
--program-transform=* |
--program-transfor=* \
341 |
--program-transfo=* |
--program-transf=* \
342 |
--program-trans=* |
--program-tran=* \
343 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
344 program_transform_name
="$ac_optarg" ;;
346 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
347 |
-silent |
--silent |
--silen |
--sile |
--sil)
350 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
352 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
354 sbindir
="$ac_optarg" ;;
356 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
357 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
358 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
360 ac_prev
=sharedstatedir
;;
361 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
362 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
363 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
365 sharedstatedir
="$ac_optarg" ;;
367 -site |
--site |
--sit)
369 -site=* |
--site=* |
--sit=*)
372 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
374 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
375 srcdir
="$ac_optarg" ;;
377 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
378 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
379 ac_prev
=sysconfdir
;;
380 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
381 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
382 sysconfdir
="$ac_optarg" ;;
384 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
386 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
387 target
="$ac_optarg" ;;
389 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
392 -version |
--version |
--versio |
--versi |
--vers)
393 echo "configure generated by autoconf version 2.13"
397 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package
=`echo $ac_package| sed 's/-/_/g'`
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* |
--without-*)
410 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package
=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
419 # Obsolete; use --with-x.
422 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
423 |
--x-incl |
--x-inc |
--x-in |
--x-i)
424 ac_prev
=x_includes
;;
425 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
426 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
427 x_includes
="$ac_optarg" ;;
429 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
430 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
431 ac_prev
=x_libraries
;;
432 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
433 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
434 x_libraries
="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE
; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c) ;;
486 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
487 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
488 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest
* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file
=move-if-change
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted
=yes
516 # Try the directory containing this script, then its parent.
518 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
521 if test ! -r $srcdir/$ac_unique_file; then
525 ac_srcdir_defaulted
=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE
; then
539 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
541 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 for ac_site_file
in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
555 echo "creating cache $cache_file"
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp
='$CPP $CPPFLAGS'
562 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling
=$ac_cv_prog_cc_cross
568 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
569 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
577 ac_n
= ac_c
='\c' ac_t
=
583 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
584 if test -f $ac_dir/install-sh
; then
586 ac_install_sh
="$ac_aux_dir/install-sh -c"
588 elif test -f $ac_dir/install.sh
; then
590 ac_install_sh
="$ac_aux_dir/install.sh -c"
594 if test -z "$ac_aux_dir"; then
595 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
597 ac_config_guess
=$ac_aux_dir/config.guess
598 ac_config_sub
=$ac_aux_dir/config.sub
599 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
602 # Do some error checking and defaulting for the host and target type.
604 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
607 # 1. You are not allowed to specify --host, --target, and nonopt at the
609 # 2. Host defaults to nonopt.
610 # 3. If nonopt is not specified, then host defaults to the current host,
611 # as determined by config.guess.
612 # 4. Target and build default to nonopt.
613 # 5. If nonopt is not specified, then target and build default to host.
615 # The aliases save the names the user supplied, while $host etc.
616 # will get canonicalized.
617 case $host---$target---$nonopt in
618 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
619 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
623 # Make sure we can run config.sub.
624 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
625 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
628 echo $ac_n "checking host system type""... $ac_c" 1>&6
629 echo "configure:630: checking host system type" >&5
632 case "$host_alias" in
636 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
637 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
639 *) host_alias
=$nonopt ;;
643 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
644 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
645 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
646 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
647 echo "$ac_t""$host" 1>&6
649 echo $ac_n "checking target system type""... $ac_c" 1>&6
650 echo "configure:651: checking target system type" >&5
653 case "$target_alias" in
656 NONE
) target_alias
=$host_alias ;;
657 *) target_alias
=$nonopt ;;
661 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
662 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
663 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
664 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
665 echo "$ac_t""$target" 1>&6
667 echo $ac_n "checking build system type""... $ac_c" 1>&6
668 echo "configure:669: checking build system type" >&5
671 case "$build_alias" in
674 NONE
) build_alias
=$host_alias ;;
675 *) build_alias
=$nonopt ;;
679 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
680 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
681 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
682 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
683 echo "$ac_t""$build" 1>&6
685 test "$host_alias" != "$target_alias" &&
686 test "$program_prefix$program_suffix$program_transform_name" = \
688 program_prefix
=${target_alias}-
690 if test "$program_transform_name" = s
,x
,x
,; then
691 program_transform_name
=
693 # Double any \ or $. echo might interpret backslashes.
694 cat <<\EOF_SED
> conftestsed
695 s
,\\,\\\\,g
; s
,\$
,$$
,g
697 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
700 test "$program_prefix" != NONE
&&
701 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
702 # Use a double $ so make ignores it.
703 test "$program_suffix" != NONE
&&
704 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
706 # sed with no file args requires a program.
707 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
710 # Get 'install' or 'install-sh' and its variants.
711 # Find a good install program. We prefer a C program (faster),
712 # so one script is as good as another. But avoid the broken or
713 # incompatible versions:
714 # SysV /etc/install, /usr/sbin/install
715 # SunOS /usr/etc/install
718 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
719 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
720 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
721 # ./install, which can be erroneously created by make from ./install.sh.
722 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
723 echo "configure:724: checking for a BSD compatible install" >&5
724 if test -z "$INSTALL"; then
725 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
728 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
729 for ac_dir
in $PATH; do
730 # Account for people who put trailing slashes in PATH elements.
732 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
734 # OSF1 and SCO ODT 3.0 have their own names for install.
735 # Don't use installbsd from OSF since it installs stuff as root
737 for ac_prog
in ginstall scoinst
install; do
738 if test -f $ac_dir/$ac_prog; then
739 if test $ac_prog = install &&
740 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
741 # AIX install. It has an incompatible calling convention.
744 ac_cv_path_install
="$ac_dir/$ac_prog -c"
755 if test "${ac_cv_path_install+set}" = set; then
756 INSTALL
="$ac_cv_path_install"
758 # As a last resort, use the slow shell script. We don't cache a
759 # path for INSTALL within a source directory, because that will
760 # break other packages using the cache if that directory is
761 # removed, or if the path is relative.
762 INSTALL
="$ac_install_sh"
765 echo "$ac_t""$INSTALL" 1>&6
767 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
768 # It thinks the first close brace ends the variable substitution.
769 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
771 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
773 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
775 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
776 echo "configure:777: checking whether ln works" >&5
777 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
782 if ln conftestdata_f conftestdata_t
2>/dev
/null
788 rm -f conftestdata_f conftestdata_t
791 if test $acx_cv_prog_LN = no
; then
793 echo "$ac_t""no, using $LN" 1>&6
796 echo "$ac_t""yes" 1>&6
799 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
800 echo "configure:801: checking whether ln -s works" >&5
801 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
805 if ln -s X conftestdata
2>/dev
/null
808 ac_cv_prog_LN_S
="ln -s"
813 LN_S
="$ac_cv_prog_LN_S"
814 if test "$ac_cv_prog_LN_S" = "ln -s"; then
815 echo "$ac_t""yes" 1>&6
817 echo "$ac_t""no" 1>&6
821 ### we might need to use some other shell than /bin/sh for running subshells
822 ### If we are on Windows, search for the shell. This will permit people
823 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
824 ### without also having to set CONFIG_SHELL. This code will work when
825 ### using bash, which sets OSTYPE.
828 if test x
${CONFIG_SHELL} = x
; then
829 if test ! -f /bin
/sh
; then
830 if test x
${SHELL} != x
&& test -f ${SHELL} ; then
831 CONFIG_SHELL
=${SHELL}
834 for prog
in sh sh.exe bash bash.exe
; do
835 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
837 test -z "$dir" && dir
=.
838 if test -f $dir/$prog; then
839 CONFIG_SHELL
=$dir/$prog
845 test -n "${CONFIG_SHELL}" && break
853 config_shell
=${CONFIG_SHELL-/bin/sh}
856 # if PWD already has a value, it is probably wrong.
857 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
859 # Export original configure arguments for use by sub-configures. These
860 # will be expanded by make, so quote '$'.
862 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
865 TOPLEVEL_CONFIGURE_ARGUMENTS
=`cat conftestsed.out`
866 rm -f conftestsed.out
869 moveifchange
=${srcdir}/move-if-change
871 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
873 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
875 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
876 INSTALL
="${srcpwd}/install-sh -c"
879 # Set srcdir to "." if that's what it is.
880 # This is important for multilib support.
882 if test "${pwd}" = "${srcpwd}" ; then
890 ### To add a new directory to the tree, first choose whether it is a target
891 ### or a host dependent tool. Then put it into the appropriate list
892 ### (library or tools, host or target), doing a dependency sort.
894 # Subdirs will be configured in the order listed in build_configdirs,
895 # configdirs, or target_configdirs; see the serialization section below.
897 # Dependency sorting is only needed when *configuration* must be done in
898 # a particular order. In all cases a dependency should be specified in
899 # the Makefile, whether or not it's implicitly specified here.
901 # Double entries in build_configdirs, configdirs, or target_configdirs may
902 # cause circular dependencies and break everything horribly.
904 # these library is used by various programs built for the build
907 build_libs
="build-libiberty"
909 # these tools are built for the build environment
910 build_tools
="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
912 # these libraries are used by various programs built for the host environment
914 host_libs
="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
916 # these tools are built for the host environment
917 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
918 # know that we are building the simulator.
919 # binutils, gas and ld appear in that order because it makes sense to run
920 # "make check" in that particular order.
921 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"
923 # libgcj represents the runtime libraries only used by gcj.
924 libgcj
="target-libffi \
929 # these libraries are built for the target environment, and are built after
930 # the host libraries and the host tools (which may be a cross compiler)
932 target_libraries
="target-libiberty \
935 target-libstdc++-v3 \
945 # these tools are built using the target libraries, and are intended to
946 # run only in the target environment
948 # note: any program that *uses* libraries that are in the "target_libraries"
949 # list belongs in this list. those programs are also very likely
950 # candidates for the "native_only" list which follows
952 target_tools
="target-examples target-groff target-gperf target-rda"
954 ################################################################################
956 ## All tools belong in one of the four categories, and are assigned above
957 ## We assign ${configdirs} this way to remove all embedded newlines. This
958 ## is important because configure will choke if they ever get through.
959 ## ${configdirs} is directories we build using the host tools.
960 ## ${target_configdirs} is directories we build using the target tools.
961 configdirs
=`echo ${host_libs} ${host_tools}`
962 target_configdirs
=`echo ${target_libraries} ${target_tools}`
963 build_configdirs
=`echo ${build_libs} ${build_tools}`
965 ################################################################################
967 srcname
="gnu development package"
969 # This gets set non-empty for some net releases of packages.
972 # Define is_cross_compiler to save on calls to 'test'.
974 if test x
"${host}" = x
"${target}" ; then
977 is_cross_compiler
=yes
980 # Find the build and target subdir names.
981 case ${build_alias} in
982 "") build_noncanonical
=${build} ;;
983 *) build_noncanonical
=${build_alias} ;;
986 case ${host_alias} in
987 "") host_noncanonical
=${build_noncanonical} ;;
988 *) host_noncanonical
=${host_alias} ;;
991 case ${target_alias} in
992 "") target_noncanonical
=${host_noncanonical} ;;
993 *) target_noncanonical
=${target_alias} ;;
997 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
998 # have matching libraries, they should use host libraries: Makefile.tpl
999 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1000 # However, they still use the build modules, because the corresponding
1001 # host modules (e.g. bison) are only built for the host when bootstrap
1003 # - build_subdir is where we find build modules, and never changes.
1004 # - build_libsubdir is where we find build libraries, and can be overridden.
1006 # Prefix 'build-' so this never conflicts with target_subdir.
1007 build_subdir
="build-${build_noncanonical}"
1008 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1009 if test "${with_build_libsubdir+set}" = set; then
1010 withval
="$with_build_libsubdir"
1011 build_libsubdir
="$withval"
1013 build_libsubdir
="$build_subdir"
1016 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1017 if ( test $srcdir = .
&& test -d gcc
) \
1018 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
1019 host_subdir
="host-${host_noncanonical}"
1024 target_subdir
=${target_noncanonical}
1027 # Skipdirs are removed silently.
1029 # Noconfigdirs are removed loudly.
1033 # Make sure we don't let GNU ld be added if we didn't want it.
1034 if test x
$with_gnu_ld = xno
; then
1036 noconfigdirs
="$noconfigdirs ld"
1040 # Make sure we don't let GNU as be added if we didn't want it.
1041 if test x
$with_gnu_as = xno
; then
1043 noconfigdirs
="$noconfigdirs gas"
1046 # some tools are so dependent upon X11 that if we're not building with X,
1047 # it's not even worth trying to configure, much less build, that tool.
1050 yes |
"") ;; # the default value for this tree is that X11 is available
1052 skipdirs
="${skipdirs} tk itcl libgui"
1053 # We won't be able to build gdbtk without X.
1056 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1059 # Some tools are only suitable for building in a "native" situation.
1060 # Remove these if host!=target.
1061 native_only
="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1063 # Similarly, some are only suitable for cross toolchains.
1064 # Remove these if host=target.
1065 cross_only
="target-libgloss target-newlib target-opcodes"
1067 case $is_cross_compiler in
1068 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
1069 yes) skipdirs
="${skipdirs} ${native_only}" ;;
1072 # If both --with-headers and --with-libs are specified, default to
1074 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
1075 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
1076 if test x
"${with_newlib}" = x
; then
1081 # Recognize --with-newlib/--without-newlib.
1082 case ${with_newlib} in
1083 no
) skipdirs
="${skipdirs} target-newlib" ;;
1084 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1087 # Configure extra directories which are host specific
1091 configdirs
="$configdirs libtermcap" ;;
1094 # A target can indicate whether a language isn't supported for some reason.
1095 # Only spaces may be used in this macro; not newlines or tabs.
1096 unsupported_languages
=
1098 # Remove more programs from consideration, based on the host or
1099 # target this usually means that a port of the program doesn't
1104 noconfigdirs
="$noconfigdirs byacc"
1106 i
[3456789]86-*-vsta)
1107 noconfigdirs
="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1109 i
[3456789]86-*-go32* | i
[3456789]86-*-msdosdjgpp*)
1110 noconfigdirs
="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1112 i
[3456789]86-*-mingw32*)
1113 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1114 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1116 i
[3456789]86-*-beos*)
1117 noconfigdirs
="$noconfigdirs tk itcl libgui gdb"
1120 noconfigdirs
="$noconfigdirs autoconf automake send-pr rcs guile perl"
1123 noconfigdirs
="$noconfigdirs rcs"
1126 noconfigdirs
="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1129 noconfigdirs
="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1134 # Check whether --enable-libada or --disable-libada was given.
1135 if test "${enable_libada+set}" = set; then
1136 enableval
="$enable_libada"
1137 ENABLE_LIBADA
=$enableval
1142 if test "${ENABLE_LIBADA}" != "yes" ; then
1143 noconfigdirs
="$noconfigdirs gnattools"
1146 # Check whether --enable-libssp or --disable-libssp was given.
1147 if test "${enable_libssp+set}" = set; then
1148 enableval
="$enable_libssp"
1149 ENABLE_LIBSSP
=$enableval
1155 # Save it here so that, even in case of --enable-libgcj, if the Java
1156 # front-end isn't enabled, we still get libgcj disabled.
1157 libgcj_saved
=$libgcj
1158 case $enable_libgcj in
1160 # If we reset it here, it won't get added to noconfigdirs in the
1161 # target-specific build rules, so it will be forcibly enabled
1162 # (unless the Java language itself isn't enabled).
1166 # Make sure we get it printed in the list of not supported target libs.
1167 noconfigdirs
="$noconfigdirs ${libgcj}"
1172 # Disable libmudflap on some systems.
1173 if test x
$enable_libmudflap = x
; then
1175 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1176 # Enable libmudflap by default in GNU and friends.
1179 # Enable libmudflap by default in FreeBSD.
1182 # Disable it by default everywhere else.
1183 noconfigdirs
="$noconfigdirs target-libmudflap"
1188 # Disable libgomp on non POSIX hosted systems.
1189 if test x
$enable_libgomp = x
; then
1190 # Enable libgomp by default on hosted POSIX systems.
1192 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1194 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd*)
1196 *-*-solaris2* |
*-*-sysv4* |
*-*-irix6* |
*-*-osf* |
*-*-hpux11*)
1198 *-*-darwin* |
*-*-aix*)
1201 noconfigdirs
="$noconfigdirs target-libgomp"
1209 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1211 powerpc-
*-darwin* | i
[3456789]86-*-darwin*)
1212 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1213 noconfigdirs
="$noconfigdirs sim target-rda"
1216 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
1217 noconfigdirs
="$noconfigdirs sim target-rda"
1218 noconfigdirs
="$noconfigdirs ${libgcj}"
1220 *-*-freebsd[12] |
*-*-freebsd[12].
* |
*-*-freebsd*aout
*)
1221 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1224 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1225 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
1226 && test -f /usr
/local
/include
/gmp.h
; then
1230 # Skip some stuff that's unsupported on some FreeBSD configurations.
1235 noconfigdirs
="$noconfigdirs ${libgcj}"
1240 # Remove unsupported stuff on all kaOS configurations.
1241 skipdirs
="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1242 skipdirs
="$skipdirs target-libobjc target-examples target-groff target-gperf"
1243 skipdirs
="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1244 noconfigdirs
="$noconfigdirs target-libgloss"
1247 # Skip some stuff on all NetBSD configurations.
1248 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss"
1250 # Skip some stuff that's unsupported on some NetBSD configurations.
1252 i
*86-*-netbsdelf*) ;;
1253 arm
*-*-netbsdelf*) ;;
1255 noconfigdirs
="$noconfigdirs ${libgcj}"
1260 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1263 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1265 # The tpf target doesn't support gdb yet.
1267 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1270 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1273 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1276 # ld works, but does not support shared libraries.
1277 # newlib is not 64 bit ready. I'm not sure about fileutils.
1278 # gas doesn't generate exception information.
1279 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1282 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1285 # newlib is not 64 bit ready
1286 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1289 # newlib is not 64 bit ready
1290 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1293 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1296 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1298 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
1299 noconfigdirs
="$noconfigdirs ${libgcj}"
1300 noconfigdirs
="$noconfigdirs target-examples"
1301 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
1302 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
1303 noconfigdirs
="$noconfigdirs expect dejagnu"
1304 # the C++ libraries don't build on top of CE's C libraries
1305 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1306 noconfigdirs
="$noconfigdirs target-newlib"
1308 *-*-cygwin*) ;; # keep gdb and readline
1309 *) noconfigdirs
="$noconfigdirs gdb readline"
1314 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1318 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
1319 noconfigdirs
="$noconfigdirs ${libgcj}"
1321 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf* | arm
*-*-eabi* )
1322 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1324 arm
*-*-linux-gnueabi)
1325 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1326 noconfigdirs
="$noconfigdirs target-libjava target-libobjc"
1329 noconfigdirs
="$noconfigdirs ${libgcj} target-libiberty"
1332 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1335 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1338 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1341 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1344 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1347 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1350 noconfigdirs
="$noconfigdirs gdb"
1351 if test x
${is_cross_compiler} != xno
; then
1352 target_configdirs
="${target_configdirs} target-bsp target-cygmon"
1355 c4x-
*-* | tic4x-
*-*)
1356 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1358 c54x
*-*-* | tic54x-
*-*)
1359 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1361 cris-
*-* | crisv32-
*-*)
1362 unsupported_languages
="$unsupported_languages java"
1365 unsupported_languages
="$unsupported_languages fortran"
1366 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc";;
1368 unsupported_languages
="$unsupported_languages fortran"
1369 noconfigdirs
="$noconfigdirs target-boehm-gc";;
1371 noconfigdirs
="$noconfigdirs target-newlib target-libgloss";;
1373 unsupported_languages
="$unsupported_languages fortran"
1374 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1378 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1381 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1384 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1387 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1390 noconfigdirs
="$noconfigdirs ${libgcj}"
1393 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1396 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1398 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
1400 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
1401 # In this case, it's because the hppa64-linux target is for
1402 # the kernel only at this point and has no libc, and thus no
1403 # headers, crt*.o, etc., all of which are needed by these.
1404 noconfigdirs
="$noconfigdirs target-zlib"
1406 parisc
*-*-linux* | hppa
*-*-linux*)
1410 hppa
*-*-openbsd* | \
1412 noconfigdirs
="$noconfigdirs ${libgcj}"
1415 noconfigdirs
="$noconfigdirs ld shellutils"
1418 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1419 # build on HP-UX 10.20.
1420 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
1423 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1426 # No gdb support yet.
1427 noconfigdirs
="$noconfigdirs readline mmalloc libgui itcl gdb"
1430 # No gdb or ld support yet.
1431 noconfigdirs
="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1435 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
1436 noconfigdirs
="$noconfigdirs ${libgcj}"
1438 i
[3456789]86-*-linux*)
1439 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1440 # not build java stuff by default.
1443 noconfigdirs
="$noconfigdirs ${libgcj}";;
1446 # This section makes it possible to build newlib natively on linux.
1447 # If we are using a cross compiler then don't configure newlib.
1448 if test x
${is_cross_compiler} != xno
; then
1449 noconfigdirs
="$noconfigdirs target-newlib"
1451 noconfigdirs
="$noconfigdirs target-libgloss"
1452 # If we are not using a cross compiler, do configure newlib.
1453 # Note however, that newlib will only be configured in this situation
1454 # if the --with-newlib option has been given, because otherwise
1455 # 'target-newlib' will appear in skipdirs.
1457 i
[3456789]86-*-mingw32*)
1458 target_configdirs
="$target_configdirs target-winsup"
1459 noconfigdirs
="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1462 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
1463 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1464 # always build newlib if winsup directory is present.
1465 if test -d "$srcdir/winsup/cygwin"; then
1466 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1467 elif test -d "$srcdir/newlib"; then
1468 echo "Warning: winsup/cygwin is missing so newlib can't be built."
1471 i
[3456789]86-moss-msdos | i
[3456789]86-*-moss* | \
1472 i
[3456789]86-*-uwin* | i
[3456789]86-*-interix* )
1475 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1477 i
[3456789]86-*-sco3.2v5
*)
1478 # The linker does not yet know about weak symbols in COFF,
1479 # and is not configured to handle mixed ELF and COFF.
1480 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1482 i
[3456789]86-*-sco*)
1483 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1485 i
[3456789]86-*-solaris2*)
1486 noconfigdirs
="$noconfigdirs target-libgloss"
1488 i
[3456789]86-*-sysv4*)
1489 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1491 i
[3456789]86-*-beos*)
1492 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1494 i
[3456789]86-*-rdos*)
1495 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1498 noconfigdirs
="$noconfigdirs ${libgcj}"
1500 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
1501 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1504 noconfigdirs
="$noconfigdirs ${libgcj}"
1507 noconfigdirs
="$noconfigdirs ${libgcj}"
1510 # The EPOC C++ environment does not support exceptions or rtti,
1511 # and so building libstdc++-v3 tends not to always work.
1512 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1515 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1516 unsupported_languages
="$unsupported_languages fortran java"
1519 noconfigdirs
="$noconfigdirs ${libgcj}"
1522 noconfigdirs
="$noconfigdirs ${libgcj}"
1525 noconfigdirs
="$noconfigdirs sim"
1528 # copied from rs6000-*-* entry
1529 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1531 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
1532 target_configdirs
="$target_configdirs target-winsup"
1533 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1534 # always build newlib.
1535 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1537 # This is temporary until we can link against shared libraries
1538 powerpcle-
*-solaris*)
1539 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1542 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1545 noconfigdirs
="$noconfigdirs ${libgcj}"
1547 powerpc-
*-eabi* | powerpcle-
*-eabi* | powerpc-
*-rtems* )
1550 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
1553 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1556 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1559 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1562 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1565 # Linking libjava exceeds command-line length limits on at least
1566 # IRIX 6.2, but not on IRIX 6.5.
1567 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1568 # <oldham@codesourcery.com>
1569 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1572 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1575 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1578 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1581 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1584 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1588 i
[3456789]86-*-vsta) ;; # don't add gprof back in
1589 i
[3456789]86-*-go32*) ;; # don't add gprof back in
1590 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1591 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1593 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1596 noconfigdirs
="$noconfigdirs ${libgcj}"
1599 noconfigdirs
="$noconfigdirs ${libgcj}"
1602 noconfigdirs
="$noconfigdirs ${libgcj}"
1605 noconfigdirs
="$noconfigdirs ${libgcj}"
1606 if test x
${is_cross_compiler} != xno
; then
1607 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1612 sparc-
*-solaris2.
[0-6] | sparc-
*-solaris2.
[0-6].
*)
1613 noconfigdirs
="$noconfigdirs ${libgcj}"
1615 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
1618 skipdirs
="target-libssp"
1621 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1624 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1627 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1630 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1633 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1636 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1639 noconfigdirs
="$noconfigdirs ${libgcj}"
1642 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1644 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1645 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1648 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1651 noconfigdirs
="$noconfigdirs ${libgcj}"
1655 # If we aren't building newlib, then don't build libgloss, since libgloss
1656 # depends upon some newlib header files.
1657 case "${noconfigdirs}" in
1658 *target-libgloss
*) ;;
1659 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
1662 # Work in distributions that contain no compiler tools, like Autoconf.
1664 host_makefile_frag
=/dev
/null
1665 if test -d ${srcdir}/config
; then
1668 # Avoid "too much defining" errors from HPUX compiler.
1669 tentative_cc
="cc -Wp,-H256000"
1670 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1671 # If it's HP/UX ar, this should be harmless.
1675 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1678 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1679 # chokes on bfd, the compiler won't let you assign integers to enums, and
1680 # other problems. Defining CC to gcc is a questionable way to say "don't use
1681 # the apollo compiler" (the preferred version of GCC could be called cc,
1682 # or whatever), but I'm not sure leaving CC as cc is any better...
1683 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1684 # Used to have BISON=yacc.
1688 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1691 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1692 tentative_cc
="cc -Xa"
1693 host_makefile_frag
="config/mh-cxux"
1695 m88k-motorola-sysv
*)
1698 tentative_cc
="cc -Wf,-XNg1000"
1699 host_makefile_frag
="config/mh-decstation"
1702 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1703 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
1704 host_makefile_frag
="config/mh-necv4"
1707 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1708 # environment. Also bump switch table size so that cp-parse will
1709 # compile. Bump string length limit so linker builds.
1710 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1713 host_makefile_frag
="config/mh-sysv4"
1716 # This is for a MIPS running RISC/os 4.52C.
1718 # This is needed for GDB, but needs to be in the top-level make because
1719 # if a library is compiled with the bsd headers and gets linked with the
1720 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1721 # a different size).
1722 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1723 # known except to select the sysv environment. Could we use /proc instead?
1724 # These "sysv environments" and "bsd environments" often end up being a pain.
1726 # This is not part of CFLAGS because perhaps not all C compilers have this
1728 tentative_cc
="cc -systype sysv"
1733 i
[3456789]86-*-sysv5*)
1734 host_makefile_frag
="config/mh-sysv5"
1736 i
[3456789]86-*-dgux*)
1737 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1738 host_makefile_frag
="config/mh-dgux386"
1740 i
[3456789]86-ncr-sysv4.3
*)
1741 # The MetaWare compiler will generate a copyright message unless you
1742 # turn it off by adding the -Hnocopyr flag.
1743 tentative_cc
="cc -Hnocopyr"
1745 i
[3456789]86-ncr-sysv4*)
1746 # for an NCR 3000 (i486/SVR4) system.
1747 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1748 # This compiler not only emits obnoxious copyright messages every time
1749 # you run it, but it chokes and dies on a whole bunch of GNU source
1750 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1751 tentative_cc
="/usr/ccs/ATT/cc"
1752 host_makefile_frag
="config/mh-ncr3000"
1754 i
[3456789]86-*-sco3.2v5
*)
1756 i
[3456789]86-*-sco*)
1757 # The native C compiler botches some simple uses of const. Unfortunately,
1758 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1759 tentative_cc
="cc -Dconst="
1760 host_makefile_frag
="config/mh-sco"
1762 i
[3456789]86-*-udk*)
1763 host_makefile_frag
="config/mh-sysv5"
1765 i
[3456789]86-*-solaris2*)
1766 host_makefile_frag
="config/mh-sysv4"
1768 i
[3456789]86-*-msdosdjgpp*)
1769 host_makefile_frag
="config/mh-djgpp"
1772 host_makefile_frag
="config/mh-cygwin"
1777 host_makefile_frag
="config/mh-interix"
1780 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1784 host_makefile_frag
="config/mh-solaris"
1787 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1788 # without overflowing the jump tables (-J says to use a 32 bit table)
1789 tentative_cc
="cc -J"
1792 tentative_cc
="cc -Wp,-H256000"
1795 tentative_cc
="cc -Wp,-H256000"
1798 # /bin/cc is less than useful for our purposes. Always use GCC
1799 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
1800 host_makefile_frag
="config/mh-lynxrs6k"
1803 host_makefile_frag
="config/mh-ppc-darwin"
1806 host_makefile_frag
="config/mh-ppc-aix"
1809 host_makefile_frag
="config/mh-ppc-aix"
1812 # /bin/cc is less than useful for our purposes. Always use GCC
1813 tentative_cc
="/bin/gcc"
1816 host_makefile_frag
="config/mh-sysv4"
1818 # This is placed last to prevent interfering with the cases above.
1820 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1821 host_makefile_frag
="config/mh-x86omitfp"
1826 # If we aren't going to be using gcc, see if we can extract a definition
1827 # of CC from the fragment.
1828 # Actually, use the 'pre-extracted' version above.
1829 if test -z "${CC}" && test "${build}" = "${host}" ; then
1830 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1832 for dir
in $PATH; do
1833 test -z "$dir" && dir
=.
1834 if test -f $dir/gcc
; then
1840 if test -z "${found}" && test -n "${tentative_cc}" ; then
1845 if test "${build}" != "${host}" ; then
1846 # If we are doing a Canadian Cross, in which the host and build systems
1847 # are not the same, we set reasonable default values for the tools.
1849 CC
=${CC-${host_alias}-gcc}
1850 CFLAGS
=${CFLAGS-"-g -O2"}
1851 CXX
=${CXX-${host_alias}-c++}
1852 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1853 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1856 # Set reasonable default values for some tools even if not Canadian.
1857 # Of course, these are different reasonable default values, originally
1858 # specified directly in the Makefile.
1859 # We don't export, so that autoconf can do its job.
1860 # Note that all these settings are above the fragment inclusion point
1861 # in Makefile.in, so can still be overridden by fragments.
1862 # This is all going to change when we autoconfiscate...
1864 CC_FOR_BUILD
="\$(CC)"
1865 # Extract the first word of "gcc", so it can be a program name with args.
1866 set dummy gcc
; ac_word
=$2
1867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1868 echo "configure:1869: checking for $ac_word" >&5
1869 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1872 if test -n "$CC"; then
1873 ac_cv_prog_CC
="$CC" # Let the user override the test.
1875 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1877 for ac_dir
in $ac_dummy; do
1878 test -z "$ac_dir" && ac_dir
=.
1879 if test -f $ac_dir/$ac_word; then
1888 if test -n "$CC"; then
1889 echo "$ac_t""$CC" 1>&6
1891 echo "$ac_t""no" 1>&6
1894 if test -z "$CC"; then
1895 # Extract the first word of "cc", so it can be a program name with args.
1896 set dummy cc
; ac_word
=$2
1897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1898 echo "configure:1899: checking for $ac_word" >&5
1899 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1902 if test -n "$CC"; then
1903 ac_cv_prog_CC
="$CC" # Let the user override the test.
1905 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1908 for ac_dir
in $ac_dummy; do
1909 test -z "$ac_dir" && ac_dir
=.
1910 if test -f $ac_dir/$ac_word; then
1911 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1912 ac_prog_rejected
=yes
1920 if test $ac_prog_rejected = yes; then
1921 # We found a bogon in the path, so make sure we never use it.
1922 set dummy
$ac_cv_prog_CC
1924 if test $# -gt 0; then
1925 # We chose a different compiler from the bogus one.
1926 # However, it has the same basename, so the bogon will be chosen
1927 # first if we set CC to just the basename; use the full file name.
1929 set dummy
"$ac_dir/$ac_word" "$@"
1937 if test -n "$CC"; then
1938 echo "$ac_t""$CC" 1>&6
1940 echo "$ac_t""no" 1>&6
1943 if test -z "$CC"; then
1944 case "`uname -s`" in
1946 # Extract the first word of "cl", so it can be a program name with args.
1947 set dummy cl
; ac_word
=$2
1948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1949 echo "configure:1950: checking for $ac_word" >&5
1950 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 if test -n "$CC"; then
1954 ac_cv_prog_CC
="$CC" # Let the user override the test.
1956 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1958 for ac_dir
in $ac_dummy; do
1959 test -z "$ac_dir" && ac_dir
=.
1960 if test -f $ac_dir/$ac_word; then
1969 if test -n "$CC"; then
1970 echo "$ac_t""$CC" 1>&6
1972 echo "$ac_t""no" 1>&6
1977 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1980 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1981 echo "configure:1982: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1984 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1985 ac_cpp
='$CPP $CPPFLAGS'
1986 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1987 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1988 cross_compiling
=$ac_cv_prog_cc_cross
1990 cat > conftest.
$ac_ext << EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
1997 if { (eval echo configure
:1998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1998 ac_cv_prog_cc_works
=yes
1999 # If we can't run a trivial program, we are probably using a cross compiler.
2000 if (.
/conftest
; exit) 2>/dev
/null
; then
2001 ac_cv_prog_cc_cross
=no
2003 ac_cv_prog_cc_cross
=yes
2006 echo "configure: failed program was:" >&5
2007 cat conftest.
$ac_ext >&5
2008 ac_cv_prog_cc_works
=no
2012 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2013 ac_cpp
='$CPP $CPPFLAGS'
2014 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2015 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2016 cross_compiling
=$ac_cv_prog_cc_cross
2018 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2019 if test $ac_cv_prog_cc_works = no
; then
2020 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2022 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2023 echo "configure:2024: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2024 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2025 cross_compiling
=$ac_cv_prog_cc_cross
2027 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2028 echo "configure:2029: checking whether we are using GNU C" >&5
2029 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2032 cat > conftest.c
<<EOF
2037 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2044 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2046 if test $ac_cv_prog_gcc = yes; then
2052 ac_test_CFLAGS
="${CFLAGS+set}"
2053 ac_save_CFLAGS
="$CFLAGS"
2055 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2056 echo "configure:2057: checking whether ${CC-cc} accepts -g" >&5
2057 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2060 echo 'void f(){}' > conftest.c
2061 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2070 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2071 if test "$ac_test_CFLAGS" = set; then
2072 CFLAGS
="$ac_save_CFLAGS"
2073 elif test $ac_cv_prog_cc_g = yes; then
2074 if test "$GCC" = yes; then
2080 if test "$GCC" = yes; then
2088 # We must set the default linker to the linker used by gcc for the correct
2089 # operation of libtool. If LD is not defined and we are using gcc, try to
2090 # set the LD default to the ld used by gcc.
2091 if test -z "$LD"; then
2092 if test "$GCC" = yes; then
2095 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2097 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
2099 case $gcc_prog_ld in
2100 # Accept absolute paths.
2101 [\\/]* |
[A-Za-z
]:[\\/]*)
2102 LD
="$gcc_prog_ld" ;;
2108 CFLAGS
=${CFLAGS-"-g"}
2109 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
2112 if test $host != $build; then
2113 ac_tool_prefix
=${host_alias}-
2120 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2121 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_word" >&5
2124 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2127 if test -n "$GNATBIND"; then
2128 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2130 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2132 for ac_dir
in $ac_dummy; do
2133 test -z "$ac_dir" && ac_dir
=.
2134 if test -f $ac_dir/$ac_word; then
2135 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2142 GNATBIND
="$ac_cv_prog_GNATBIND"
2143 if test -n "$GNATBIND"; then
2144 echo "$ac_t""$GNATBIND" 1>&6
2146 echo "$ac_t""no" 1>&6
2150 if test -z "$ac_cv_prog_GNATBIND"; then
2151 if test -n "$ac_tool_prefix"; then
2152 # Extract the first word of "gnatbind", so it can be a program name with args.
2153 set dummy gnatbind
; ac_word
=$2
2154 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2155 echo "configure:2156: checking for $ac_word" >&5
2156 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2159 if test -n "$GNATBIND"; then
2160 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2162 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2164 for ac_dir
in $ac_dummy; do
2165 test -z "$ac_dir" && ac_dir
=.
2166 if test -f $ac_dir/$ac_word; then
2167 ac_cv_prog_GNATBIND
="gnatbind"
2172 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2175 GNATBIND
="$ac_cv_prog_GNATBIND"
2176 if test -n "$GNATBIND"; then
2177 echo "$ac_t""$GNATBIND" 1>&6
2179 echo "$ac_t""no" 1>&6
2187 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2188 echo "configure:2189: checking whether compiler driver understands Ada" >&5
2189 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2192 cat >conftest.adb
<<EOF
2193 procedure conftest is begin null; end conftest;
2195 acx_cv_cc_gcc_supports_ada
=no
2196 # There is a bug in old released versions of GCC which causes the
2197 # driver to exit successfully when the appropriate language module
2198 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2199 # Therefore we must check for the error message as well as an
2200 # unsuccessful exit.
2201 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2202 # given a .adb file, but produce no object file. So we must check
2203 # if an object file was really produced to guard against this.
2204 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2205 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
2206 acx_cv_cc_gcc_supports_ada
=yes
2211 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2213 if test x
$GNATBIND != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
2219 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2220 echo "configure:2221: checking how to compare bootstrapped objects" >&5
2221 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2226 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2227 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
2228 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
2231 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
2234 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2235 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2238 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
2245 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2246 do_compare
="$gcc_cv_prog_cmp_skip"
2250 # Check for GMP and MPFR
2254 # Specify a location for mpfr
2255 # check for this first so it ends up on the link line before gmp.
2256 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2257 if test "${with_mpfr_dir+set}" = set; then
2258 withval
="$with_mpfr_dir"
2259 { echo "configure: error: The --with-mpfr-dir=PATH option has been removed.
2260 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" 1>&2; exit 1; }
2264 # Check whether --with-mpfr or --without-mpfr was given.
2265 if test "${with_mpfr+set}" = set; then
2266 withval
="$with_mpfr"
2270 # Check whether --with-mpfr_include or --without-mpfr_include was given.
2271 if test "${with_mpfr_include+set}" = set; then
2272 withval
="$with_mpfr_include"
2276 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
2277 if test "${with_mpfr_lib+set}" = set; then
2278 withval
="$with_mpfr_lib"
2283 if test "x$with_mpfr" != x
; then
2284 gmplibs
="-L$with_mpfr/lib $gmplibs"
2285 gmpinc
="-I$with_mpfr/include"
2287 if test "x$with_mpfr_include" != x
; then
2288 gmpinc
="-I$with_mpfr_include"
2290 if test "x$with_mpfr_lib" != x
; then
2291 gmplibs
="-L$with_mpfr_lib $gmplibs"
2294 # Specify a location for gmp
2295 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2296 if test "${with_gmp_dir+set}" = set; then
2297 withval
="$with_gmp_dir"
2298 { echo "configure: error: The --with-gmp-dir=PATH option has been removed.
2299 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" 1>&2; exit 1; }
2303 gmplibs
="$gmplibs -lgmp"
2305 # Check whether --with-gmp or --without-gmp was given.
2306 if test "${with_gmp+set}" = set; then
2311 # Check whether --with-gmp_include or --without-gmp_include was given.
2312 if test "${with_gmp_include+set}" = set; then
2313 withval
="$with_gmp_include"
2317 # Check whether --with-gmp_lib or --without-gmp_lib was given.
2318 if test "${with_gmp_lib+set}" = set; then
2319 withval
="$with_gmp_lib"
2325 if test "x$with_gmp" != x
; then
2326 gmplibs
="-L$with_gmp/lib $gmplibs"
2327 gmpinc
="-I$with_gmp/include $gmpinc"
2329 if test "x$with_gmp_include" != x
; then
2330 gmpinc
="-I$with_gmp_include $gmpinc"
2332 if test "x$with_gmp_lib" != x
; then
2333 gmplibs
="-L$with_gmp_lib $gmplibs"
2336 saved_CFLAGS
="$CFLAGS"
2337 CFLAGS
="$CFLAGS $gmpinc"
2338 # Check GMP actually works
2339 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2340 echo "configure:2341: checking for correct version of gmp.h" >&5
2341 cat > conftest.
$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2347 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
2353 if { (eval echo configure
:2354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2355 echo "$ac_t""yes" 1>&6
2357 echo "configure: failed program was:" >&5
2358 cat conftest.
$ac_ext >&5
2360 echo "$ac_t""no" 1>&6; have_gmp
=no
2364 if test x
"$have_gmp" = xyes
; then
2366 LIBS
="$LIBS $gmplibs"
2367 echo $ac_n "checking for correct version of mpfr.h""... $ac_c" 1>&6
2368 echo "configure:2369: checking for correct version of mpfr.h" >&5
2369 cat > conftest.
$ac_ext <<EOF
2370 #line 2371 "configure"
2371 #include "confdefs.h"
2376 #if MPFR_VERSION_MAJOR < 2 || (MPFR_VERSION_MAJOR == 2 && MPFR_VERSION_MINOR < 2)
2379 mpfr_t n; mpfr_init(n);
2383 if { (eval echo configure
:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2385 echo "$ac_t""yes" 1>&6
2387 echo "configure: failed program was:" >&5
2388 cat conftest.
$ac_ext >&5
2390 echo "$ac_t""no" 1>&6; have_gmp
=no
2395 CFLAGS
="$saved_CFLAGS"
2397 if test -d ${srcdir}/gcc
&& test x
$have_gmp != xyes
; then
2398 { echo "configure: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
2399 Try the --with-gmp and/or --with-mpfr options to specify their locations.
2400 Copies of these libraries' source code can be found at their respective
2401 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
2402 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
2403 If you obtained GMP and/or MPFR from a vendor distribution package, make
2404 sure that you have installed both the libraries and the header files.
2405 They may be located in separate packages." 1>&2; exit 1; }
2408 # Flags needed for both GMP and/or MPFR
2412 # By default, C is the only stage 1 language.
2416 # Figure out what language subdirectories are present.
2417 # Look if the user specified --enable-languages="..."; if not, use
2418 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2420 # NB: embedded tabs in this IF block -- do not untabify
2421 if test -d ${srcdir}/gcc
; then
2422 if test x
"${enable_languages+set}" != xset
; then
2423 if test x
"${LANGUAGES+set}" = xset
; then
2424 enable_languages
="${LANGUAGES}"
2425 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
2427 enable_languages
=all
2430 if test x
"${enable_languages}" = x ||
2431 test x
"${enable_languages}" = xyes
;
2433 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
2437 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2439 # 'f95' is the old name for the 'fortran' language. We issue a warning
2440 # and make the substitution.
2441 case ,${enable_languages}, in
2443 echo configure.
in: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
2444 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2448 # First scan to see if an enabled language requires some other language.
2449 # We assume that a given config-lang.in will list all the language
2450 # front ends it requires, even if some are required indirectly.
2451 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2452 case ${lang_frag} in
2454 # The odd quoting in the next line works around
2455 # an apparent bug in bash 1.12 on linux.
2456 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2458 # From the config-lang.in, get $language, $lang_requires
2462 for other
in ${lang_requires} ; do
2463 case ,${enable_languages}, in
2467 echo " \`$other' language required by \`$language'; enabling" 1>&2
2468 enable_languages
="${enable_languages},${other}"
2476 new_enable_languages
=c
2477 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2478 potential_languages
=c
2480 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2481 case ${lang_frag} in
2483 # The odd quoting in the next line works around
2484 # an apparent bug in bash 1.12 on linux.
2485 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2487 # From the config-lang.in, get $language, $target_libs,
2488 # $lang_dirs, $boot_language, and $build_by_default
2496 potential_languages
="${potential_languages},${language}"
2497 # This is quite sensitive to the ordering of the case statement arms.
2498 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2500 echo "${lang_frag} doesn't set \$language." 1>&2
2504 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2507 *,${language},*:*:*:*)
2508 # Language was explicitly selected; include it.
2512 # 'all' was selected, but this is not a default language
2513 # so do not include it.
2517 # 'all' was selected and this is a default language; include it.
2525 # Disable languages that need other directories if these aren't available.
2526 for i
in $subdir_requires; do
2527 test -f "$srcdir/gcc/$i/config-lang.in" && continue
2528 case ,${enable_languages}, in
2530 # Specifically requested language; tell them.
2531 { echo "configure: error: The gcc/$i directory contains parts of $language but is missing" 1>&2; exit 1; }
2540 # Disable a language that is unsupported by the target.
2541 case " $unsupported_languages " in
2547 case $add_this_lang in
2549 # Remove language-dependent dirs.
2550 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2553 new_enable_languages
="$new_enable_languages,$language"
2554 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
2555 case ${boot_language} in
2557 # Add to (comma-separated) list of stage 1 languages.
2558 stage1_languages
="${stage1_languages},${language}"
2567 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2568 if test "x$missing_languages" != x
; then
2569 { echo "configure: error:
2570 The following requested languages could not be built: ${missing_languages}
2571 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2574 if test "x$new_enable_languages" != "x$enable_languages"; then
2575 echo The following languages will be built
: ${new_enable_languages}
2577 enable_languages
="$new_enable_languages"
2578 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2581 # Handle --disable-<component> generically.
2582 for dir
in $configdirs $build_configdirs $target_configdirs ; do
2583 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2584 if eval test x\
${enable_${dirname}} "=" xno
; then
2585 noconfigdirs
="$noconfigdirs $dir"
2589 # Check for Boehm's garbage collector
2590 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2591 if test "${enable_objc_gc+set}" = set; then
2592 enableval
="$enable_objc_gc"
2593 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
2594 *,objc
,*:*:yes:*target-boehm-gc
*)
2595 { echo "configure: error: Boehm's garbage collector was requested yet not supported in this configuration" 1>&2; exit 1; }
2601 # Make sure we only build Boehm's garbage collector if required.
2602 case ,${enable_languages},:${enable_objc_gc} in
2604 # Keep target-boehm-gc if requested for Objective-C.
2607 # Otherwise remove target-boehm-gc depending on target-libjava.
2608 if echo " ${noconfigdirs} " |
grep "target-libjava" >/dev
/null
2>&1; then
2609 noconfigdirs
="$noconfigdirs target-boehm-gc"
2614 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2615 # $build_configdirs and $target_configdirs.
2616 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2619 for dir
in .
$skipdirs $noconfigdirs ; do
2620 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2621 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2622 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2623 if test -r $srcdir/$dirname/configure
; then
2624 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2627 notsupp
="$notsupp $dir"
2631 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2632 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2633 if test -r $srcdir/$dirname/configure
; then
2634 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2637 notsupp
="$notsupp $dir"
2641 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2642 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2643 if test -r $srcdir/$dirname/configure
; then
2644 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2647 notsupp
="$notsupp $dir"
2653 # Sometimes the tools are distributed with libiberty but with no other
2654 # libraries. In that case, we don't want to build target-libiberty.
2655 if test -n "${target_configdirs}" ; then
2657 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2658 if test "$i" != "libiberty" ; then
2659 if test -r $srcdir/$i/configure
; then
2665 if test -z "${others}" ; then
2670 # Quietly strip out all directories which aren't configurable in this tree.
2671 # This relies on all configurable subdirectories being autoconfiscated, which
2673 build_configdirs_all
="$build_configdirs"
2675 for i
in ${build_configdirs_all} ; do
2676 j
=`echo $i | sed -e s/build-//g`
2677 if test -f ${srcdir}/$j/configure
; then
2678 build_configdirs
="${build_configdirs} $i"
2682 configdirs_all
="$configdirs"
2684 for i
in ${configdirs_all} ; do
2685 if test -f ${srcdir}/$i/configure
; then
2686 configdirs
="${configdirs} $i"
2690 target_configdirs_all
="$target_configdirs"
2692 for i
in ${target_configdirs_all} ; do
2693 j
=`echo $i | sed -e s/target-//g`
2694 if test -f ${srcdir}/$j/configure
; then
2695 target_configdirs
="${target_configdirs} $i"
2699 # Produce a warning message for the subdirs we can't configure.
2700 # This isn't especially interesting in the Cygnus tree, but in the individual
2701 # FSF releases, it's important to let people know when their machine isn't
2702 # supported by the one or two programs in a package.
2704 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2705 # If $appdirs is non-empty, at least one of those directories must still
2706 # be configured, or we error out. (E.g., if the gas release supports a
2707 # specified target in some subdirs but not the gas subdir, we shouldn't
2708 # pretend that all is well.)
2709 if test -n "$appdirs" ; then
2710 for dir
in $appdirs ; do
2711 if test -r $dir/Makefile.
in ; then
2712 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2716 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
2722 if test -n "$appdirs" ; then
2723 echo "*** This configuration is not supported by this package." 1>&2
2727 # Okay, some application will build, or we don't care to check. Still
2728 # notify of subdirs not getting built.
2729 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2730 echo " ${notsupp}" 1>&2
2731 echo " (Any other directories should still work fine.)" 1>&2
2741 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2742 if test "${with_build_sysroot+set}" = set; then
2743 withval
="$with_build_sysroot"
2744 if test x
"$withval" != x
; then
2745 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
2748 SYSROOT_CFLAGS_FOR_TARGET
=
2753 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2754 # the named directory are copied to $(tooldir)/sys-include.
2755 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
2756 if test x
${is_cross_compiler} = xno
; then
2757 echo 1>&2 '***' --with-headers is only supported when cross compiling
2760 if test x
"${with_headers}" != xyes
; then
2761 case "${exec_prefixoption}" in
2763 *) x
=${exec_prefix} ;;
2765 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2769 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2770 # the name directories are copied to $(tooldir)/lib. Multiple directories
2772 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2773 if test x
${is_cross_compiler} = xno
; then
2774 echo 1>&2 '***' --with-libs is only supported when cross compiling
2777 if test x
"${with_libs}" != xyes
; then
2778 # Copy the libraries in reverse order, so that files in the first named
2779 # library override files in subsequent libraries.
2780 case "${exec_prefixoption}" in
2782 *) x
=${exec_prefix} ;;
2784 for l
in ${with_libs}; do
2785 copy_dirs
="$l $x/${target_alias}/lib ${copy_dirs}"
2790 # Set with_gnu_as and with_gnu_ld as appropriate.
2792 # This is done by determining whether or not the appropriate directory
2793 # is available, and by checking whether or not specific configurations
2794 # have requested that this magic not happen.
2796 # The command line options always override the explicit settings in
2797 # configure.in, and the settings in configure.in override this magic.
2799 # If the default for a toolchain is to use GNU as and ld, and you don't
2800 # want to do that, then you should use the --without-gnu-as and
2801 # --without-gnu-ld options for the configure script.
2803 if test x
${use_gnu_as} = x
&&
2804 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
2806 extra_host_args
="$extra_host_args --with-gnu-as"
2809 if test x
${use_gnu_ld} = x
&&
2810 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
2812 extra_host_args
="$extra_host_args --with-gnu-ld"
2815 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2816 # can detect this case.
2818 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
2820 extra_host_args
="$extra_host_args --with-newlib"
2823 # Handle ${copy_dirs}
2824 set fnord
${copy_dirs}
2826 while test $# != 0 ; do
2827 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
2830 echo Copying
$1 to
$2
2832 # Use the install script to create the directory and all required
2833 # parent directories.
2834 if test -d $2 ; then
2838 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
2841 # Copy the directory, assuming we have tar.
2842 # FIXME: Should we use B in the second tar? Not all systems support it.
2843 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
2845 # It is the responsibility of the user to correctly adjust all
2846 # symlinks. If somebody can figure out how to handle them correctly
2847 # here, feel free to add the code.
2854 # Determine a target-dependent exec_prefix that the installed
2855 # gcc will search in. Keep this list sorted by triplet, with
2856 # the *-*-osname triplets last.
2860 md_exec_prefix
=/gnu
/lib
/gcc-lib
2862 i3456786-pc-msdosdjgpp
*)
2863 md_exec_prefix
=/dev
/env
/DJDIR
/bin
2865 i3456786-
*-sco3.2v5
*)
2866 if test $with_gnu_as = yes; then
2867 md_exec_prefix
=/usr
/gnu
/bin
2869 md_exec_prefix
=/usr
/ccs
/bin
/elf
2874 powerpc-
*-chorusos* | \
2875 powerpc
*-*-eabi* | \
2876 powerpc
*-*-sysv* | \
2877 powerpc
*-*-kaos* | \
2879 md_exec_prefix
=/usr
/ccs
/bin
2884 md_exec_prefix
=/usr
/ccs
/bin
2899 md_exec_prefix
=/usr
/ccs
/bin
2903 extra_arflags_for_target
=
2904 extra_nmflags_for_target
=
2905 extra_ranlibflags_for_target
=
2906 target_makefile_frag
=/dev
/null
2909 target_makefile_frag
="config/mt-spu"
2912 target_makefile_frag
="config/mt-netware"
2914 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
2915 target_makefile_frag
="config/mt-gnu"
2917 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
2918 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2919 # commands to handle both 32-bit and 64-bit objects. These flags are
2920 # harmless if we're using GNU nm or ar.
2921 extra_arflags_for_target
=" -X32_64"
2922 extra_nmflags_for_target
=" -B -X32_64"
2925 # ranlib from Darwin requires the -c flag to look at common symbols.
2926 extra_ranlibflags_for_target
=" -c"
2928 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
2929 target_makefile_frag
="config/mt-wince"
2933 alphaieee_frag
=/dev
/null
2936 # This just makes sure to use the -mieee option to build target libs.
2937 # This should probably be set individually by each library.
2938 alphaieee_frag
="config/mt-alphaieee"
2942 # If --enable-target-optspace always use -Os instead of -O2 to build
2943 # the target libraries, similarly if it is not specified, use -Os
2944 # on selected platforms.
2945 ospace_frag
=/dev
/null
2946 case "${enable_target_optspace}:${target}" in
2948 ospace_frag
="config/mt-ospace"
2951 ospace_frag
="config/mt-d30v"
2953 :m32r-
* |
:d10v-
* |
:fr30-
*)
2954 ospace_frag
="config/mt-ospace"
2959 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2963 # Default to using --with-stabs for certain targets.
2964 if test x
${with_stabs} = x
; then
2968 mips
*-*-* | alpha
*-*-osf*)
2970 extra_host_args
="${extra_host_args} --with-stabs"
2975 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2976 # them automatically.
2979 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2983 # Some systems (e.g., one of the i386-aix systems the gas testers are
2984 # using) don't handle "\$" correctly, so don't use it here.
2985 tooldir
='${exec_prefix}'/${target_alias}
2986 build_tooldir
=${tooldir}
2988 # Create a .gdbinit file which runs the one in srcdir
2989 # and tells GDB to look there for source files.
2991 if test -r ${srcdir}/.gdbinit
; then
2994 *) cat > .
/.gdbinit
<<EOF
2998 source ${srcdir}/.gdbinit
3004 # Make sure that the compiler is able to generate an executable. If it
3005 # can't, we are probably in trouble. We don't care whether we can run the
3006 # executable--we might be using a cross compiler--we only care whether it
3007 # can be created. At this point the main configure script has set CC.
3009 echo "int main () { return 0; }" > conftest.c
3010 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3011 if test $?
= 0 ; then
3012 if test -s conftest ||
test -s conftest.exe
; then
3018 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3019 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3026 # The Solaris /usr/ucb/cc compiler does not appear to work.
3028 sparc-sun-solaris2
*)
3029 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
3030 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3032 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
3033 if test -d /opt
/cygnus
/bin
; then
3034 if test "$could_use" = "" ; then
3035 could_use
="/opt/cygnus/bin"
3037 could_use
="$could_use or /opt/cygnus/bin"
3040 if test "$could_use" = "" ; then
3041 echo "Warning: compilation may fail because you're using"
3042 echo "/usr/ucb/cc. You should change your PATH or CC "
3043 echo "variable and rerun configure."
3045 echo "Warning: compilation may fail because you're using"
3046 echo "/usr/ucb/cc, when you should use the C compiler from"
3047 echo "$could_use. You should change your"
3048 echo "PATH or CC variable and rerun configure."
3055 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
3056 *-*-darwin* |
*-*-rhapsody* ) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
3057 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
3060 # Record target_configdirs and the configure arguments for target and
3061 # build configuration in Makefile.
3062 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3063 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3065 # Determine whether gdb needs tk/tcl or not.
3066 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3067 # and in that case we want gdb to be built without tk. Ugh!
3068 # In fact I believe gdb is the *only* package directly dependent on tk,
3069 # so we should be able to put the 'maybe's in unconditionally and
3070 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3071 # 100% sure that that's safe though.
3073 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3074 case "$enable_gdbtk" in
3078 GDB_TK
="${gdb_tk}" ;;
3080 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3081 # distro. Eventually someone will fix this and move Insight, nee
3082 # gdbtk to a separate directory.
3083 if test -d ${srcdir}/gdb
/gdbtk
; then
3090 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3091 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3093 # Strip out unwanted targets.
3095 # While at that, we remove Makefiles if we were started for recursive
3096 # configuration, so that the top-level Makefile reconfigures them,
3097 # like we used to do when configure itself was recursive.
3099 # Loop over modules. $extrasub must be used with care, limiting as
3100 # much as possible the usage of range addresses. That's because autoconf
3101 # splits the sed script to overcome limits in the number of commands,
3102 # and relying on carefully-timed sed passes may turn out to be very hard
3103 # to maintain later. In this particular case, you just have to be careful
3104 # not to nest @if/@endif pairs, because configure will not warn you at all.
3106 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3107 if test "${enable_bootstrap+set}" = set; then
3108 enableval
="$enable_bootstrap"
3111 enable_bootstrap
=default
3115 # Issue errors and warnings for invalid/strange bootstrap combinations.
3116 case "$configdirs" in
3117 *gcc
*) have_compiler
=yes ;;
3118 *) have_compiler
=no
;;
3121 case "$have_compiler:$host:$target:$enable_bootstrap" in
3124 # Default behavior. Enable bootstrap if we have a compiler
3125 # and we are in a native configuration.
3126 yes:$build:$build:default
)
3127 enable_bootstrap
=yes ;;
3130 enable_bootstrap
=no
;;
3132 # We have a compiler and we are in a native configuration, bootstrap is ok
3133 yes:$build:$build:yes)
3136 # Other configurations, but we have a compiler. Assume the user knows
3139 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3142 # No compiler: if they passed --enable-bootstrap explicitly, fail
3144 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3146 # Fail if wrong command line
3148 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3152 # Adjust the toplevel makefile according to whether bootstrap was selected.
3153 case "$enable_bootstrap" in
3155 bootstrap_suffix
=bootstrap
;;
3157 bootstrap_suffix
=no-bootstrap
;;
3160 for module
in ${build_configdirs} ; do
3161 if test -z "${no_recursion}" \
3162 && test -f ${build_subdir}/${module}/Makefile
; then
3163 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3164 rm -f ${build_subdir}/${module}/Makefile
3167 /^@if build-$module\$/d
3168 /^@endif build-$module\$/d
3169 /^@if build-$module-$bootstrap_suffix\$/d
3170 /^@endif build-$module-$bootstrap_suffix\$/d"
3172 for module
in ${configdirs} ; do
3173 if test -z "${no_recursion}"; then
3174 for file in stage
*-${module}/Makefile
${module}/Makefile
; do
3175 if test -f ${file}; then
3176 echo 1>&2 "*** removing ${file} to force reconfigure"
3183 /^@endif $module\$/d
3184 /^@if $module-$bootstrap_suffix\$/d
3185 /^@endif $module-$bootstrap_suffix\$/d"
3187 for module
in ${target_configdirs} ; do
3188 if test -z "${no_recursion}" \
3189 && test -f ${target_subdir}/${module}/Makefile
; then
3190 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3191 rm -f ${target_subdir}/${module}/Makefile
3194 /^@if target-$module\$/d
3195 /^@endif target-$module\$/d
3196 /^@if target-$module-$bootstrap_suffix\$/d
3197 /^@endif target-$module-$bootstrap_suffix\$/d"
3201 /^@if /,/^@endif /d"
3203 # Create the serialization dependencies. This uses a temporary file.
3205 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3206 if test "${enable_serial_configure+set}" = set; then
3207 enableval
="$enable_serial_configure"
3212 case ${enable_serial_configure} in
3214 enable_serial_build_configure
=yes
3215 enable_serial_host_configure
=yes
3216 enable_serial_target_configure
=yes
3220 # These force 'configure's to be done one at a time, to avoid problems
3221 # with contention over a shared config.cache.
3223 echo '# serdep.tmp' > serdep.tmp
3225 test "x${enable_serial_build_configure}" = xyes
&&
3226 for item
in ${build_configdirs} ; do
3229 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
3234 test "x${enable_serial_host_configure}" = xyes
&&
3235 for item
in ${configdirs} ; do
3238 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
3243 test "x${enable_serial_target_configure}" = xyes
&&
3244 for item
in ${target_configdirs} ; do
3247 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
3251 serialization_dependencies
=serdep.tmp
3254 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3255 # target and nonopt. These are the ones we might not want to pass
3256 # down to subconfigures. Also strip program-prefix, program-suffix,
3257 # and program-transform-name, so that we can pass down a consistent
3258 # program-transform-name. If autoconf has put single quotes around
3259 # any of these arguments (because they contain shell metacharacters)
3260 # then this will fail; in practice this only happens for
3261 # --program-transform-name, so be sure to override --program-transform-name
3262 # at the end of the argument list.
3263 # These will be expanded by make, so quote '$'.
3264 cat <<\EOF_SED
> conftestsed
3266 s
/ --c[a-z-
]*[= ][^
]*//g
3267 s
/ --sr[a-z-
]*[= ][^
]*//g
3268 s
/ --ho[a-z-
]*[= ][^
]*//g
3269 s
/ --bu[a-z-
]*[= ][^
]*//g
3270 s
/ --t[a-z-
]*[= ][^
]*//g
3271 s
/ --program-[pst
][a-z-
]*[= ][^
]*//g
3272 s
/ -cache-file[= ][^
]*//g
3273 s
/ -srcdir[= ][^
]*//g
3274 s
/ -host[= ][^
]*//g
3275 s
/ -build[= ][^
]*//g
3276 s
/ -target[= ][^
]*//g
3277 s
/ -program-prefix[= ][^
]*//g
3278 s
/ -program-suffix[= ][^
]*//g
3279 s
/ -program-transform-name[= ][^
]*//g
3284 sed -f conftestsed <<EOF_SED > conftestsed.out
3285 ${ac_configure_args}
3287 baseargs=`cat conftestsed.out`
3288 rm -f conftestsed conftestsed.out
3290 # Add in --program-transform-name, after --program-prefix and
3291 # --program-suffix have been applied to it. Autoconf has already
3292 # doubled dollar signs and backslashes in program_transform_name; we want
3293 # the backslashes un-doubled, and then the entire thing wrapped in single
3294 # quotes, because this will be expanded first by make and then by the shell.
3295 # Also, because we want to override the logic in subdir configure scripts to
3296 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3297 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3298 ${program_transform_name}
3300 gcc_transform_name=`cat conftestsed.out`
3301 rm -f conftestsed.out
3302 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3304 # For the build-side libraries, we just need to pretend we're native
,
3305 # and not use the same cache file. Multilibs are neither needed nor
3307 build_configargs
="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3309 # For host modules, accept cache file option, or specification as blank.
3310 case "${cache_file}" in
3312 cache_file_option
="" ;;
3313 /* |
[A-Za-z
]:[\\/]* ) # absolute path
3314 cache_file_option
="--cache-file=${cache_file}" ;;
3316 cache_file_option
="--cache-file=../${cache_file}" ;;
3319 # Host dirs don't like to share a cache file either, horribly enough.
3320 # This seems to be due to autoconf 2.5x stupidity.
3321 host_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3323 target_configargs
=${baseargs}
3325 # Passing a --with-cross-host argument lets the target libraries know
3326 # whether they are being built with a cross-compiler or being built
3327 # native. However, it would be better to use other mechanisms to make the
3328 # sorts of decisions they want to make on this basis. Please consider
3329 # this option to be deprecated. FIXME.
3330 if test x
${is_cross_compiler} = xyes
; then
3331 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3334 # Default to --enable-multilib.
3335 if test x
${enable_multilib} = x
; then
3336 target_configargs
="--enable-multilib ${target_configargs}"
3339 # Pass --with-newlib if appropriate. Note that target_configdirs has
3340 # changed from the earlier setting of with_newlib.
3341 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3342 target_configargs
="--with-newlib ${target_configargs}"
3345 # Different target subdirs use different values of certain variables
3346 # (notably CXX). Worse, multilibs use *lots* of different values.
3347 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3348 # it doesn't automatically accept command-line overrides of them.
3349 # This means it's not safe for target subdirs to share a cache file,
3350 # which is disgusting, but there you have it. Hopefully this can be
3351 # fixed in future. It's still worthwhile to use a cache file for each
3352 # directory. I think.
3354 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3355 # We need to pass --target, as newer autoconf's requires consistency
3356 # for target_alias and gcc doesn't manage it consistently.
3357 target_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3360 case " $target_configdirs " in
3362 case " $target_configargs " in
3363 *" --with-newlib "*)
3366 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' ;;
3369 # If we're not building GCC, don't discard standard headers.
3370 if test -d ${srcdir}/gcc
; then
3371 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3373 if test "${build}" != "${host}"; then
3374 # On Canadian crosses, CC_FOR_TARGET will have already been set
3375 # by `configure', so we won't have an opportunity to add -Bgcc/
3376 # to it. This is right: we don't want to search that directory
3377 # for binaries, but we want the header files in there, so add
3379 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3381 # Someone might think of using the pre-installed headers on
3382 # Canadian crosses, in case the installed compiler is not fully
3383 # compatible with the compiler being built. In this case, it
3384 # would be better to flag an error than risking having
3385 # incompatible object files being constructed. We can't
3386 # guarantee that an error will be flagged, but let's hope the
3387 # compiler will do it, when presented with incompatible header
3392 case "${target}-${is_cross_compiler}" in
3393 i
[3456789]86-*-linux*-no)
3394 # Here host == target, so we don't need to build gcc,
3395 # so we don't want to discard standard headers.
3396 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3399 # If we're building newlib, use its generic headers last, but search
3400 # for any libc-related directories first (so make it the last -B
3402 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3411 # Can't be handled as Cygwin above since Mingw does not use newlib.
3412 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;;
3415 # Allow the user to override the flags for
3416 # our build compiler if desired.
3417 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3419 # On Canadian crosses, we'll be searching the right directories for
3420 # the previously-installed cross compiler, so don't bother to add
3421 # flags for directories within the install tree of the compiler
3422 # being built; programs in there won't even run.
3423 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3424 # Search for pre-installed headers if nothing else fits.
3425 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3428 if test "x
${use_gnu_ld}" = x &&
3429 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3430 # Arrange for us to find uninstalled linker scripts.
3431 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3434 # Search for other target-specific linker scripts and such.
3437 if test -d ${srcdir}/libgloss/m32c; then
3438 # This is for crt0.o
3439 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3440 # This is for r8c.ld
3441 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3442 # This is for libnosys.a
3443 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3448 # Makefile fragments.
3449 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3451 eval fragval=\$$frag
3452 if test $fragval != /dev/null; then
3453 eval $frag=${srcdir}/$fragval
3461 # Miscellanea: directories, flags, etc.
3469 # Build module lists & subconfigure args.
3473 # Host module lists & subconfigure args.
3477 # Target module lists & subconfigure args.
3485 # Generate default definitions for YACC, M4, LEX and other programs that run
3486 # on the build machine. These are used if the Makefile can't locate these
3487 # programs in objdir.
3488 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3490 for ac_prog in 'bison -y' byacc yacc
3492 # Extract the first word of "$ac_prog", so it can be a program name with args.
3493 set dummy $ac_prog; ac_word=$2
3494 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3495 echo "configure
:3496: checking
for $ac_word" >&5
3496 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3497 echo $ac_n "(cached
) $ac_c" 1>&6
3499 if test -n "$YACC"; then
3500 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3504 for ac_dir in $ac_dummy; do
3505 test -z "$ac_dir" && ac_dir=.
3506 if test -f $ac_dir/$ac_word; then
3507 ac_cv_prog_YACC="$ac_prog"
3514 YACC="$ac_cv_prog_YACC"
3515 if test -n "$YACC"; then
3516 echo "$ac_t""$YACC" 1>&6
3518 echo "$ac_t""no
" 1>&6
3521 test -n "$YACC" && break
3523 test -n "$YACC" || YACC="$MISSING bison
-y"
3525 case " $build_configdirs " in
3526 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3527 *" byacc
"*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3530 for ac_prog in bison
3532 # Extract the first word of "$ac_prog", so it can be a program name with args.
3533 set dummy $ac_prog; ac_word=$2
3534 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3535 echo "configure
:3536: checking
for $ac_word" >&5
3536 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3537 echo $ac_n "(cached
) $ac_c" 1>&6
3539 if test -n "$BISON"; then
3540 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3544 for ac_dir in $ac_dummy; do
3545 test -z "$ac_dir" && ac_dir=.
3546 if test -f $ac_dir/$ac_word; then
3547 ac_cv_prog_BISON="$ac_prog"
3554 BISON="$ac_cv_prog_BISON"
3555 if test -n "$BISON"; then
3556 echo "$ac_t""$BISON" 1>&6
3558 echo "$ac_t""no
" 1>&6
3561 test -n "$BISON" && break
3563 test -n "$BISON" || BISON="$MISSING bison
"
3565 case " $build_configdirs " in
3566 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3569 for ac_prog in gm4 gnum4 m4
3571 # Extract the first word of "$ac_prog", so it can be a program name with args.
3572 set dummy $ac_prog; ac_word=$2
3573 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3574 echo "configure
:3575: checking
for $ac_word" >&5
3575 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3576 echo $ac_n "(cached
) $ac_c" 1>&6
3578 if test -n "$M4"; then
3579 ac_cv_prog_M4="$M4" # Let the user override the test.
3581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3583 for ac_dir in $ac_dummy; do
3584 test -z "$ac_dir" && ac_dir=.
3585 if test -f $ac_dir/$ac_word; then
3586 ac_cv_prog_M4="$ac_prog"
3594 if test -n "$M4"; then
3595 echo "$ac_t""$M4" 1>&6
3597 echo "$ac_t""no
" 1>&6
3600 test -n "$M4" && break
3602 test -n "$M4" || M4="$MISSING m4"
3604 case " $build_configdirs " in
3605 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3608 for ac_prog in flex lex
3610 # Extract the first word of "$ac_prog", so it can be a program name with args.
3611 set dummy $ac_prog; ac_word=$2
3612 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3613 echo "configure
:3614: checking
for $ac_word" >&5
3614 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3615 echo $ac_n "(cached
) $ac_c" 1>&6
3617 if test -n "$LEX"; then
3618 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3622 for ac_dir in $ac_dummy; do
3623 test -z "$ac_dir" && ac_dir=.
3624 if test -f $ac_dir/$ac_word; then
3625 ac_cv_prog_LEX="$ac_prog"
3632 LEX="$ac_cv_prog_LEX"
3633 if test -n "$LEX"; then
3634 echo "$ac_t""$LEX" 1>&6
3636 echo "$ac_t""no
" 1>&6
3639 test -n "$LEX" && break
3641 test -n "$LEX" || LEX="$MISSING flex
"
3643 case " $build_configdirs " in
3644 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3645 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651 set dummy $ac_prog; ac_word=$2
3652 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3653 echo "configure
:3654: checking
for $ac_word" >&5
3654 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3655 echo $ac_n "(cached
) $ac_c" 1>&6
3657 if test -n "$FLEX"; then
3658 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3662 for ac_dir in $ac_dummy; do
3663 test -z "$ac_dir" && ac_dir=.
3664 if test -f $ac_dir/$ac_word; then
3665 ac_cv_prog_FLEX="$ac_prog"
3672 FLEX="$ac_cv_prog_FLEX"
3673 if test -n "$FLEX"; then
3674 echo "$ac_t""$FLEX" 1>&6
3676 echo "$ac_t""no
" 1>&6
3679 test -n "$FLEX" && break
3681 test -n "$FLEX" || FLEX="$MISSING flex
"
3683 case " $build_configdirs " in
3684 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3687 for ac_prog in makeinfo
3689 # Extract the first word of "$ac_prog", so it can be a program name with args.
3690 set dummy $ac_prog; ac_word=$2
3691 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3692 echo "configure
:3693: checking
for $ac_word" >&5
3693 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3694 echo $ac_n "(cached
) $ac_c" 1>&6
3696 if test -n "$MAKEINFO"; then
3697 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3701 for ac_dir in $ac_dummy; do
3702 test -z "$ac_dir" && ac_dir=.
3703 if test -f $ac_dir/$ac_word; then
3704 ac_cv_prog_MAKEINFO="$ac_prog"
3711 MAKEINFO="$ac_cv_prog_MAKEINFO"
3712 if test -n "$MAKEINFO"; then
3713 echo "$ac_t""$MAKEINFO" 1>&6
3715 echo "$ac_t""no
" 1>&6
3718 test -n "$MAKEINFO" && break
3720 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
3722 case " $build_configdirs " in
3723 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3726 # For an installed makeinfo, we require it to be from texinfo 4.4 or
3727 # higher, else we use the "missing
" dummy.
3728 if ${MAKEINFO} --version \
3729 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
3732 MAKEINFO="$MISSING makeinfo
"
3738 # FIXME: expect and dejagnu may become build tools?
3740 for ac_prog in expect
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743 set dummy $ac_prog; ac_word=$2
3744 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3745 echo "configure
:3746: checking
for $ac_word" >&5
3746 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3747 echo $ac_n "(cached
) $ac_c" 1>&6
3749 if test -n "$EXPECT"; then
3750 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3754 for ac_dir in $ac_dummy; do
3755 test -z "$ac_dir" && ac_dir=.
3756 if test -f $ac_dir/$ac_word; then
3757 ac_cv_prog_EXPECT="$ac_prog"
3764 EXPECT="$ac_cv_prog_EXPECT"
3765 if test -n "$EXPECT"; then
3766 echo "$ac_t""$EXPECT" 1>&6
3768 echo "$ac_t""no
" 1>&6
3771 test -n "$EXPECT" && break
3773 test -n "$EXPECT" || EXPECT="expect
"
3775 case " $configdirs " in
3777 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3781 for ac_prog in runtest
3783 # Extract the first word of "$ac_prog", so it can be a program name with args.
3784 set dummy $ac_prog; ac_word=$2
3785 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3786 echo "configure
:3787: checking
for $ac_word" >&5
3787 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3788 echo $ac_n "(cached
) $ac_c" 1>&6
3790 if test -n "$RUNTEST"; then
3791 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3795 for ac_dir in $ac_dummy; do
3796 test -z "$ac_dir" && ac_dir=.
3797 if test -f $ac_dir/$ac_word; then
3798 ac_cv_prog_RUNTEST="$ac_prog"
3805 RUNTEST="$ac_cv_prog_RUNTEST"
3806 if test -n "$RUNTEST"; then
3807 echo "$ac_t""$RUNTEST" 1>&6
3809 echo "$ac_t""no
" 1>&6
3812 test -n "$RUNTEST" && break
3814 test -n "$RUNTEST" || RUNTEST="runtest
"
3816 case " $configdirs " in
3818 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
3825 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3826 ncn_target_tool_prefix=
3827 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3829 for ncn_progname in ar; do
3830 if test -n "$ncn_tool_prefix"; then
3831 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3832 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3833 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3834 echo "configure
:3835: checking
for $ac_word" >&5
3835 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3836 echo $ac_n "(cached
) $ac_c" 1>&6
3838 if test -n "$AR"; then
3839 ac_cv_prog_AR="$AR" # Let the user override the test.
3841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3843 for ac_dir in $ac_dummy; do
3844 test -z "$ac_dir" && ac_dir=.
3845 if test -f $ac_dir/$ac_word; then
3846 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3854 if test -n "$AR"; then
3855 echo "$ac_t""$AR" 1>&6
3857 echo "$ac_t""no
" 1>&6
3861 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3863 set dummy ${ncn_progname}; ac_word=$2
3864 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3865 echo "configure
:3866: checking
for $ac_word" >&5
3866 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3867 echo $ac_n "(cached
) $ac_c" 1>&6
3869 if test -n "$AR"; then
3870 ac_cv_prog_AR="$AR" # Let the user override the test.
3872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3874 for ac_dir in $ac_dummy; do
3875 test -z "$ac_dir" && ac_dir=.
3876 if test -f $ac_dir/$ac_word; then
3877 ac_cv_prog_AR="${ncn_progname}"
3885 if test -n "$AR"; then
3886 echo "$ac_t""$AR" 1>&6
3888 echo "$ac_t""no
" 1>&6
3892 test -n "$ac_cv_prog_AR" && break
3895 if test -z "$ac_cv_prog_AR" ; then
3897 if test $build = $host ; then
3900 AR="${ncn_tool_prefix}$2"
3904 for ncn_progname in as; do
3905 if test -n "$ncn_tool_prefix"; then
3906 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3907 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3908 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3909 echo "configure
:3910: checking
for $ac_word" >&5
3910 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3911 echo $ac_n "(cached
) $ac_c" 1>&6
3913 if test -n "$AS"; then
3914 ac_cv_prog_AS="$AS" # Let the user override the test.
3916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3918 for ac_dir in $ac_dummy; do
3919 test -z "$ac_dir" && ac_dir=.
3920 if test -f $ac_dir/$ac_word; then
3921 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3929 if test -n "$AS"; then
3930 echo "$ac_t""$AS" 1>&6
3932 echo "$ac_t""no
" 1>&6
3936 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3938 set dummy ${ncn_progname}; ac_word=$2
3939 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3940 echo "configure
:3941: checking
for $ac_word" >&5
3941 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3942 echo $ac_n "(cached
) $ac_c" 1>&6
3944 if test -n "$AS"; then
3945 ac_cv_prog_AS="$AS" # Let the user override the test.
3947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3949 for ac_dir in $ac_dummy; do
3950 test -z "$ac_dir" && ac_dir=.
3951 if test -f $ac_dir/$ac_word; then
3952 ac_cv_prog_AS="${ncn_progname}"
3960 if test -n "$AS"; then
3961 echo "$ac_t""$AS" 1>&6
3963 echo "$ac_t""no
" 1>&6
3967 test -n "$ac_cv_prog_AS" && break
3970 if test -z "$ac_cv_prog_AS" ; then
3972 if test $build = $host ; then
3975 AS="${ncn_tool_prefix}$2"
3979 for ncn_progname in dlltool; do
3980 if test -n "$ncn_tool_prefix"; then
3981 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3982 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3983 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3984 echo "configure
:3985: checking
for $ac_word" >&5
3985 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3986 echo $ac_n "(cached
) $ac_c" 1>&6
3988 if test -n "$DLLTOOL"; then
3989 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3993 for ac_dir in $ac_dummy; do
3994 test -z "$ac_dir" && ac_dir=.
3995 if test -f $ac_dir/$ac_word; then
3996 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
4003 DLLTOOL="$ac_cv_prog_DLLTOOL"
4004 if test -n "$DLLTOOL"; then
4005 echo "$ac_t""$DLLTOOL" 1>&6
4007 echo "$ac_t""no
" 1>&6
4011 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
4012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4013 set dummy ${ncn_progname}; ac_word=$2
4014 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4015 echo "configure
:4016: checking
for $ac_word" >&5
4016 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
4017 echo $ac_n "(cached
) $ac_c" 1>&6
4019 if test -n "$DLLTOOL"; then
4020 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4024 for ac_dir in $ac_dummy; do
4025 test -z "$ac_dir" && ac_dir=.
4026 if test -f $ac_dir/$ac_word; then
4027 ac_cv_prog_DLLTOOL="${ncn_progname}"
4034 DLLTOOL="$ac_cv_prog_DLLTOOL"
4035 if test -n "$DLLTOOL"; then
4036 echo "$ac_t""$DLLTOOL" 1>&6
4038 echo "$ac_t""no
" 1>&6
4042 test -n "$ac_cv_prog_DLLTOOL" && break
4045 if test -z "$ac_cv_prog_DLLTOOL" ; then
4047 if test $build = $host ; then
4050 DLLTOOL="${ncn_tool_prefix}$2"
4054 for ncn_progname in ld; do
4055 if test -n "$ncn_tool_prefix"; then
4056 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4057 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4058 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4059 echo "configure
:4060: checking
for $ac_word" >&5
4060 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4061 echo $ac_n "(cached
) $ac_c" 1>&6
4063 if test -n "$LD"; then
4064 ac_cv_prog_LD="$LD" # Let the user override the test.
4066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4068 for ac_dir in $ac_dummy; do
4069 test -z "$ac_dir" && ac_dir=.
4070 if test -f $ac_dir/$ac_word; then
4071 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
4079 if test -n "$LD"; then
4080 echo "$ac_t""$LD" 1>&6
4082 echo "$ac_t""no
" 1>&6
4086 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4088 set dummy ${ncn_progname}; ac_word=$2
4089 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4090 echo "configure
:4091: checking
for $ac_word" >&5
4091 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4092 echo $ac_n "(cached
) $ac_c" 1>&6
4094 if test -n "$LD"; then
4095 ac_cv_prog_LD="$LD" # Let the user override the test.
4097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4099 for ac_dir in $ac_dummy; do
4100 test -z "$ac_dir" && ac_dir=.
4101 if test -f $ac_dir/$ac_word; then
4102 ac_cv_prog_LD="${ncn_progname}"
4110 if test -n "$LD"; then
4111 echo "$ac_t""$LD" 1>&6
4113 echo "$ac_t""no
" 1>&6
4117 test -n "$ac_cv_prog_LD" && break
4120 if test -z "$ac_cv_prog_LD" ; then
4122 if test $build = $host ; then
4125 LD="${ncn_tool_prefix}$2"
4129 for ncn_progname in lipo; do
4130 if test -n "$ncn_tool_prefix"; then
4131 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4132 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4133 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4134 echo "configure
:4135: checking
for $ac_word" >&5
4135 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4136 echo $ac_n "(cached
) $ac_c" 1>&6
4138 if test -n "$LIPO"; then
4139 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4143 for ac_dir in $ac_dummy; do
4144 test -z "$ac_dir" && ac_dir=.
4145 if test -f $ac_dir/$ac_word; then
4146 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4153 LIPO="$ac_cv_prog_LIPO"
4154 if test -n "$LIPO"; then
4155 echo "$ac_t""$LIPO" 1>&6
4157 echo "$ac_t""no
" 1>&6
4161 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4163 set dummy ${ncn_progname}; ac_word=$2
4164 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4165 echo "configure
:4166: checking
for $ac_word" >&5
4166 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4167 echo $ac_n "(cached
) $ac_c" 1>&6
4169 if test -n "$LIPO"; then
4170 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4174 for ac_dir in $ac_dummy; do
4175 test -z "$ac_dir" && ac_dir=.
4176 if test -f $ac_dir/$ac_word; then
4177 ac_cv_prog_LIPO="${ncn_progname}"
4184 LIPO="$ac_cv_prog_LIPO"
4185 if test -n "$LIPO"; then
4186 echo "$ac_t""$LIPO" 1>&6
4188 echo "$ac_t""no
" 1>&6
4192 test -n "$ac_cv_prog_LIPO" && break
4195 if test -z "$ac_cv_prog_LIPO" ; then
4197 if test $build = $host ; then
4200 LIPO="${ncn_tool_prefix}$2"
4204 for ncn_progname in nm; do
4205 if test -n "$ncn_tool_prefix"; then
4206 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4207 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4208 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4209 echo "configure
:4210: checking
for $ac_word" >&5
4210 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4211 echo $ac_n "(cached
) $ac_c" 1>&6
4213 if test -n "$NM"; then
4214 ac_cv_prog_NM="$NM" # Let the user override the test.
4216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4218 for ac_dir in $ac_dummy; do
4219 test -z "$ac_dir" && ac_dir=.
4220 if test -f $ac_dir/$ac_word; then
4221 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4229 if test -n "$NM"; then
4230 echo "$ac_t""$NM" 1>&6
4232 echo "$ac_t""no
" 1>&6
4236 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4238 set dummy ${ncn_progname}; ac_word=$2
4239 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4240 echo "configure
:4241: checking
for $ac_word" >&5
4241 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4242 echo $ac_n "(cached
) $ac_c" 1>&6
4244 if test -n "$NM"; then
4245 ac_cv_prog_NM="$NM" # Let the user override the test.
4247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4249 for ac_dir in $ac_dummy; do
4250 test -z "$ac_dir" && ac_dir=.
4251 if test -f $ac_dir/$ac_word; then
4252 ac_cv_prog_NM="${ncn_progname}"
4260 if test -n "$NM"; then
4261 echo "$ac_t""$NM" 1>&6
4263 echo "$ac_t""no
" 1>&6
4267 test -n "$ac_cv_prog_NM" && break
4270 if test -z "$ac_cv_prog_NM" ; then
4272 if test $build = $host ; then
4275 NM="${ncn_tool_prefix}$2"
4279 for ncn_progname in ranlib; do
4280 if test -n "$ncn_tool_prefix"; then
4281 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4282 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4283 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4284 echo "configure
:4285: checking
for $ac_word" >&5
4285 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4286 echo $ac_n "(cached
) $ac_c" 1>&6
4288 if test -n "$RANLIB"; then
4289 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4293 for ac_dir in $ac_dummy; do
4294 test -z "$ac_dir" && ac_dir=.
4295 if test -f $ac_dir/$ac_word; then
4296 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4303 RANLIB="$ac_cv_prog_RANLIB"
4304 if test -n "$RANLIB"; then
4305 echo "$ac_t""$RANLIB" 1>&6
4307 echo "$ac_t""no
" 1>&6
4311 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4313 set dummy ${ncn_progname}; ac_word=$2
4314 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4315 echo "configure
:4316: checking
for $ac_word" >&5
4316 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4317 echo $ac_n "(cached
) $ac_c" 1>&6
4319 if test -n "$RANLIB"; then
4320 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4324 for ac_dir in $ac_dummy; do
4325 test -z "$ac_dir" && ac_dir=.
4326 if test -f $ac_dir/$ac_word; then
4327 ac_cv_prog_RANLIB="${ncn_progname}"
4334 RANLIB="$ac_cv_prog_RANLIB"
4335 if test -n "$RANLIB"; then
4336 echo "$ac_t""$RANLIB" 1>&6
4338 echo "$ac_t""no
" 1>&6
4342 test -n "$ac_cv_prog_RANLIB" && break
4345 if test -z "$ac_cv_prog_RANLIB" ; then
4349 for ncn_progname in strip; do
4350 if test -n "$ncn_tool_prefix"; then
4351 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4352 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4353 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4354 echo "configure
:4355: checking
for $ac_word" >&5
4355 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4356 echo $ac_n "(cached
) $ac_c" 1>&6
4358 if test -n "$STRIP"; then
4359 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4363 for ac_dir in $ac_dummy; do
4364 test -z "$ac_dir" && ac_dir=.
4365 if test -f $ac_dir/$ac_word; then
4366 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4373 STRIP="$ac_cv_prog_STRIP"
4374 if test -n "$STRIP"; then
4375 echo "$ac_t""$STRIP" 1>&6
4377 echo "$ac_t""no
" 1>&6
4381 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4383 set dummy ${ncn_progname}; ac_word=$2
4384 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4385 echo "configure
:4386: checking
for $ac_word" >&5
4386 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4387 echo $ac_n "(cached
) $ac_c" 1>&6
4389 if test -n "$STRIP"; then
4390 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4394 for ac_dir in $ac_dummy; do
4395 test -z "$ac_dir" && ac_dir=.
4396 if test -f $ac_dir/$ac_word; then
4397 ac_cv_prog_STRIP="${ncn_progname}"
4404 STRIP="$ac_cv_prog_STRIP"
4405 if test -n "$STRIP"; then
4406 echo "$ac_t""$STRIP" 1>&6
4408 echo "$ac_t""no
" 1>&6
4412 test -n "$ac_cv_prog_STRIP" && break
4415 if test -z "$ac_cv_prog_STRIP" ; then
4419 for ncn_progname in windres; do
4420 if test -n "$ncn_tool_prefix"; then
4421 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4422 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4423 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4424 echo "configure
:4425: checking
for $ac_word" >&5
4425 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4426 echo $ac_n "(cached
) $ac_c" 1>&6
4428 if test -n "$WINDRES"; then
4429 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4431 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4433 for ac_dir in $ac_dummy; do
4434 test -z "$ac_dir" && ac_dir=.
4435 if test -f $ac_dir/$ac_word; then
4436 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4443 WINDRES="$ac_cv_prog_WINDRES"
4444 if test -n "$WINDRES"; then
4445 echo "$ac_t""$WINDRES" 1>&6
4447 echo "$ac_t""no
" 1>&6
4451 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4453 set dummy ${ncn_progname}; ac_word=$2
4454 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4455 echo "configure
:4456: checking
for $ac_word" >&5
4456 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4457 echo $ac_n "(cached
) $ac_c" 1>&6
4459 if test -n "$WINDRES"; then
4460 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4464 for ac_dir in $ac_dummy; do
4465 test -z "$ac_dir" && ac_dir=.
4466 if test -f $ac_dir/$ac_word; then
4467 ac_cv_prog_WINDRES="${ncn_progname}"
4474 WINDRES="$ac_cv_prog_WINDRES"
4475 if test -n "$WINDRES"; then
4476 echo "$ac_t""$WINDRES" 1>&6
4478 echo "$ac_t""no
" 1>&6
4482 test -n "$ac_cv_prog_WINDRES" && break
4485 if test -z "$ac_cv_prog_WINDRES" ; then
4487 if test $build = $host ; then
4490 WINDRES="${ncn_tool_prefix}$2"
4494 for ncn_progname in objcopy; do
4495 if test -n "$ncn_tool_prefix"; then
4496 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4497 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4498 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4499 echo "configure
:4500: checking
for $ac_word" >&5
4500 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4501 echo $ac_n "(cached
) $ac_c" 1>&6
4503 if test -n "$OBJCOPY"; then
4504 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4508 for ac_dir in $ac_dummy; do
4509 test -z "$ac_dir" && ac_dir=.
4510 if test -f $ac_dir/$ac_word; then
4511 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4518 OBJCOPY="$ac_cv_prog_OBJCOPY"
4519 if test -n "$OBJCOPY"; then
4520 echo "$ac_t""$OBJCOPY" 1>&6
4522 echo "$ac_t""no
" 1>&6
4526 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4527 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4528 set dummy ${ncn_progname}; ac_word=$2
4529 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4530 echo "configure
:4531: checking
for $ac_word" >&5
4531 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4532 echo $ac_n "(cached
) $ac_c" 1>&6
4534 if test -n "$OBJCOPY"; then
4535 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4539 for ac_dir in $ac_dummy; do
4540 test -z "$ac_dir" && ac_dir=.
4541 if test -f $ac_dir/$ac_word; then
4542 ac_cv_prog_OBJCOPY="${ncn_progname}"
4549 OBJCOPY="$ac_cv_prog_OBJCOPY"
4550 if test -n "$OBJCOPY"; then
4551 echo "$ac_t""$OBJCOPY" 1>&6
4553 echo "$ac_t""no
" 1>&6
4557 test -n "$ac_cv_prog_OBJCOPY" && break
4560 if test -z "$ac_cv_prog_OBJCOPY" ; then
4562 if test $build = $host ; then
4565 OBJCOPY="${ncn_tool_prefix}$2"
4569 for ncn_progname in objdump; do
4570 if test -n "$ncn_tool_prefix"; then
4571 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4572 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4573 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4574 echo "configure
:4575: checking
for $ac_word" >&5
4575 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4576 echo $ac_n "(cached
) $ac_c" 1>&6
4578 if test -n "$OBJDUMP"; then
4579 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4583 for ac_dir in $ac_dummy; do
4584 test -z "$ac_dir" && ac_dir=.
4585 if test -f $ac_dir/$ac_word; then
4586 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4593 OBJDUMP="$ac_cv_prog_OBJDUMP"
4594 if test -n "$OBJDUMP"; then
4595 echo "$ac_t""$OBJDUMP" 1>&6
4597 echo "$ac_t""no
" 1>&6
4601 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4603 set dummy ${ncn_progname}; ac_word=$2
4604 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4605 echo "configure
:4606: checking
for $ac_word" >&5
4606 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4607 echo $ac_n "(cached
) $ac_c" 1>&6
4609 if test -n "$OBJDUMP"; then
4610 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4614 for ac_dir in $ac_dummy; do
4615 test -z "$ac_dir" && ac_dir=.
4616 if test -f $ac_dir/$ac_word; then
4617 ac_cv_prog_OBJDUMP="${ncn_progname}"
4624 OBJDUMP="$ac_cv_prog_OBJDUMP"
4625 if test -n "$OBJDUMP"; then
4626 echo "$ac_t""$OBJDUMP" 1>&6
4628 echo "$ac_t""no
" 1>&6
4632 test -n "$ac_cv_prog_OBJDUMP" && break
4635 if test -z "$ac_cv_prog_OBJDUMP" ; then
4637 if test $build = $host ; then
4640 OBJDUMP="${ncn_tool_prefix}$2"
4651 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4652 if test "${with_build_time_tools+set}" = set; then
4653 withval="$with_build_time_tools"
4657 with_build_time_tools=
4658 echo "configure
: warning
: argument to
--with-build-time-tools must be an absolute path
" 1>&2
4662 with_build_time_tools=
4666 if test -n "$with_build_time_tools"; then
4667 for ncn_progname in cc gcc; do
4668 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4669 echo "configure
:4670: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4670 if test -x $with_build_time_tools/${ncn_progname}; then
4671 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4672 echo "$ac_t""yes" 1>&6
4675 echo "$ac_t""no
" 1>&6
4680 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4681 for ncn_progname in cc gcc; do
4682 if test -n "$ncn_target_tool_prefix"; then
4683 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4684 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4685 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4686 echo "configure
:4687: checking
for $ac_word" >&5
4687 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4688 echo $ac_n "(cached
) $ac_c" 1>&6
4690 if test -n "$CC_FOR_TARGET"; then
4691 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4695 for ac_dir in $ac_dummy; do
4696 test -z "$ac_dir" && ac_dir=.
4697 if test -f $ac_dir/$ac_word; then
4698 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4705 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4706 if test -n "$CC_FOR_TARGET"; then
4707 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4709 echo "$ac_t""no
" 1>&6
4713 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4715 set dummy ${ncn_progname}; ac_word=$2
4716 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4717 echo "configure
:4718: checking
for $ac_word" >&5
4718 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4719 echo $ac_n "(cached
) $ac_c" 1>&6
4721 if test -n "$CC_FOR_TARGET"; then
4722 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4726 for ac_dir in $ac_dummy; do
4727 test -z "$ac_dir" && ac_dir=.
4728 if test -f $ac_dir/$ac_word; then
4729 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4736 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4737 if test -n "$CC_FOR_TARGET"; then
4738 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4740 echo "$ac_t""no
" 1>&6
4744 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4748 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4750 if test $build = $target ; then
4753 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4757 if test -n "$with_build_time_tools"; then
4758 for ncn_progname in c++ g++ cxx gxx; do
4759 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4760 echo "configure
:4761: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4761 if test -x $with_build_time_tools/${ncn_progname}; then
4762 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4763 echo "$ac_t""yes" 1>&6
4766 echo "$ac_t""no
" 1>&6
4771 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4772 for ncn_progname in c++ g++ cxx gxx; do
4773 if test -n "$ncn_target_tool_prefix"; then
4774 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4775 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4776 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4777 echo "configure
:4778: checking
for $ac_word" >&5
4778 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4779 echo $ac_n "(cached
) $ac_c" 1>&6
4781 if test -n "$CXX_FOR_TARGET"; then
4782 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4786 for ac_dir in $ac_dummy; do
4787 test -z "$ac_dir" && ac_dir=.
4788 if test -f $ac_dir/$ac_word; then
4789 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4796 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4797 if test -n "$CXX_FOR_TARGET"; then
4798 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4800 echo "$ac_t""no
" 1>&6
4804 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4806 set dummy ${ncn_progname}; ac_word=$2
4807 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4808 echo "configure
:4809: checking
for $ac_word" >&5
4809 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4810 echo $ac_n "(cached
) $ac_c" 1>&6
4812 if test -n "$CXX_FOR_TARGET"; then
4813 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4817 for ac_dir in $ac_dummy; do
4818 test -z "$ac_dir" && ac_dir=.
4819 if test -f $ac_dir/$ac_word; then
4820 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4827 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4828 if test -n "$CXX_FOR_TARGET"; then
4829 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4831 echo "$ac_t""no
" 1>&6
4835 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4839 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4840 set dummy c++ g++ cxx gxx
4841 if test $build = $target ; then
4844 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4848 if test -n "$with_build_time_tools"; then
4849 for ncn_progname in gcc; do
4850 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4851 echo "configure
:4852: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4852 if test -x $with_build_time_tools/${ncn_progname}; then
4853 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4854 echo "$ac_t""yes" 1>&6
4857 echo "$ac_t""no
" 1>&6
4862 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4863 for ncn_progname in gcc; do
4864 if test -n "$ncn_target_tool_prefix"; then
4865 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4866 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4867 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4868 echo "configure
:4869: checking
for $ac_word" >&5
4869 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4870 echo $ac_n "(cached
) $ac_c" 1>&6
4872 if test -n "$GCC_FOR_TARGET"; then
4873 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4877 for ac_dir in $ac_dummy; do
4878 test -z "$ac_dir" && ac_dir=.
4879 if test -f $ac_dir/$ac_word; then
4880 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4887 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4888 if test -n "$GCC_FOR_TARGET"; then
4889 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4891 echo "$ac_t""no
" 1>&6
4895 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4897 set dummy ${ncn_progname}; ac_word=$2
4898 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4899 echo "configure
:4900: checking
for $ac_word" >&5
4900 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4901 echo $ac_n "(cached
) $ac_c" 1>&6
4903 if test -n "$GCC_FOR_TARGET"; then
4904 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4908 for ac_dir in $ac_dummy; do
4909 test -z "$ac_dir" && ac_dir=.
4910 if test -f $ac_dir/$ac_word; then
4911 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4918 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4919 if test -n "$GCC_FOR_TARGET"; then
4920 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4922 echo "$ac_t""no
" 1>&6
4926 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4930 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4931 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4934 if test -n "$with_build_time_tools"; then
4935 for ncn_progname in gcj; do
4936 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4937 echo "configure
:4938: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4938 if test -x $with_build_time_tools/${ncn_progname}; then
4939 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4940 echo "$ac_t""yes" 1>&6
4943 echo "$ac_t""no
" 1>&6
4948 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4949 for ncn_progname in gcj; do
4950 if test -n "$ncn_target_tool_prefix"; then
4951 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4952 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4953 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4954 echo "configure
:4955: checking
for $ac_word" >&5
4955 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4956 echo $ac_n "(cached
) $ac_c" 1>&6
4958 if test -n "$GCJ_FOR_TARGET"; then
4959 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4963 for ac_dir in $ac_dummy; do
4964 test -z "$ac_dir" && ac_dir=.
4965 if test -f $ac_dir/$ac_word; then
4966 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4973 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4974 if test -n "$GCJ_FOR_TARGET"; then
4975 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4977 echo "$ac_t""no
" 1>&6
4981 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4983 set dummy ${ncn_progname}; ac_word=$2
4984 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4985 echo "configure
:4986: checking
for $ac_word" >&5
4986 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4987 echo $ac_n "(cached
) $ac_c" 1>&6
4989 if test -n "$GCJ_FOR_TARGET"; then
4990 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4994 for ac_dir in $ac_dummy; do
4995 test -z "$ac_dir" && ac_dir=.
4996 if test -f $ac_dir/$ac_word; then
4997 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5004 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
5005 if test -n "$GCJ_FOR_TARGET"; then
5006 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
5008 echo "$ac_t""no
" 1>&6
5012 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
5016 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
5018 if test $build = $target ; then
5021 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
5025 if test -n "$with_build_time_tools"; then
5026 for ncn_progname in gfortran; do
5027 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
5028 echo "configure
:5029: checking
for ${ncn_progname} in $with_build_time_tools" >&5
5029 if test -x $with_build_time_tools/${ncn_progname}; then
5030 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5031 echo "$ac_t""yes" 1>&6
5034 echo "$ac_t""no
" 1>&6
5039 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
5040 for ncn_progname in gfortran; do
5041 if test -n "$ncn_target_tool_prefix"; then
5042 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5043 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5044 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5045 echo "configure
:5046: checking
for $ac_word" >&5
5046 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5047 echo $ac_n "(cached
) $ac_c" 1>&6
5049 if test -n "$GFORTRAN_FOR_TARGET"; then
5050 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5054 for ac_dir in $ac_dummy; do
5055 test -z "$ac_dir" && ac_dir=.
5056 if test -f $ac_dir/$ac_word; then
5057 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5064 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5065 if test -n "$GFORTRAN_FOR_TARGET"; then
5066 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5068 echo "$ac_t""no
" 1>&6
5072 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
5073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5074 set dummy ${ncn_progname}; ac_word=$2
5075 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5076 echo "configure
:5077: checking
for $ac_word" >&5
5077 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5078 echo $ac_n "(cached
) $ac_c" 1>&6
5080 if test -n "$GFORTRAN_FOR_TARGET"; then
5081 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5085 for ac_dir in $ac_dummy; do
5086 test -z "$ac_dir" && ac_dir=.
5087 if test -f $ac_dir/$ac_word; then
5088 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5095 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5096 if test -n "$GFORTRAN_FOR_TARGET"; then
5097 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5099 echo "$ac_t""no
" 1>&6
5103 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5107 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5109 if test $build = $target ; then
5110 GFORTRAN_FOR_TARGET="$2"
5112 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5118 # The user is always right.
5119 if test "${PATH_SEPARATOR+set}" != set; then
5120 echo "#! /bin/sh" >conf$$.sh
5121 echo "exit 0" >>conf$$.sh
5123 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5133 if test "x$exec_prefix" = xNONE
; then
5134 if test "x$prefix" = xNONE
; then
5135 gcc_cv_tool_prefix
=$ac_default_prefix
5137 gcc_cv_tool_prefix
=$prefix
5140 gcc_cv_tool_prefix
=$exec_prefix
5143 # If there is no compiler in the tree, use the PATH only. In any
5144 # case, if there is no compiler in the tree nobody should use
5145 # AS_FOR_TARGET and LD_FOR_TARGET.
5146 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
5147 gcc_version
=`cat $srcdir/gcc/BASE-VER`
5148 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5149 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5150 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5151 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5152 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5153 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5158 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
5159 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5164 cat > conftest.c
<< \EOF
5169 if ($GCC_FOR_TARGET -E conftest.c |
grep gcc_yay
) > /dev
/null
2>&1; then
5170 have_gcc_for_target
=yes
5172 GCC_FOR_TARGET
=${ncn_target_tool_prefix}gcc
5173 have_gcc_for_target
=no
5180 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5181 if test -n "$with_build_time_tools"; then
5182 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5183 echo "configure:5184: checking for ar in $with_build_time_tools" >&5
5184 if test -x $with_build_time_tools/ar; then
5185 AR_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ar
5186 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5187 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5189 echo "$ac_t""no" 1>&6
5191 elif test $build != $host && test $have_gcc_for_target = yes; then
5192 AR_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ar`
5193 test $AR_FOR_TARGET=ar && AR_FOR_TARGET
=
5194 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5197 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5198 # Extract the first word of "ar", so it can be a program name with args.
5199 set dummy
ar; ac_word
=$2
5200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5201 echo "configure:5202: checking for $ac_word" >&5
5202 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5203 echo $ac_n "(cached) $ac_c" 1>&6
5205 case "$AR_FOR_TARGET" in
5207 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a path.
5210 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5213 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5214 ac_dummy
="$gcc_cv_tool_dirs"
5215 for ac_dir
in $ac_dummy; do
5216 test -z "$ac_dir" && ac_dir
=.
5217 if test -f $ac_dir/$ac_word; then
5218 ac_cv_path_AR_FOR_TARGET
="$ac_dir/$ac_word"
5226 AR_FOR_TARGET
="$ac_cv_path_AR_FOR_TARGET"
5227 if test -n "$AR_FOR_TARGET"; then
5228 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5230 echo "$ac_t""no" 1>&6
5234 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5235 if test -n "$with_build_time_tools"; then
5236 for ncn_progname
in ar; do
5237 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5238 echo "configure:5239: checking for ${ncn_progname} in $with_build_time_tools" >&5
5239 if test -x $with_build_time_tools/${ncn_progname}; then
5240 ac_cv_prog_AR_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5241 echo "$ac_t""yes" 1>&6
5244 echo "$ac_t""no" 1>&6
5249 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5250 for ncn_progname
in ar; do
5251 if test -n "$ncn_target_tool_prefix"; then
5252 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5253 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5255 echo "configure:5256: checking for $ac_word" >&5
5256 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5257 echo $ac_n "(cached) $ac_c" 1>&6
5259 if test -n "$AR_FOR_TARGET"; then
5260 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5262 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5264 for ac_dir
in $ac_dummy; do
5265 test -z "$ac_dir" && ac_dir
=.
5266 if test -f $ac_dir/$ac_word; then
5267 ac_cv_prog_AR_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5274 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5275 if test -n "$AR_FOR_TARGET"; then
5276 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5278 echo "$ac_t""no" 1>&6
5282 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5284 set dummy
${ncn_progname}; ac_word
=$2
5285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5286 echo "configure:5287: checking for $ac_word" >&5
5287 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5288 echo $ac_n "(cached) $ac_c" 1>&6
5290 if test -n "$AR_FOR_TARGET"; then
5291 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5293 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5295 for ac_dir
in $ac_dummy; do
5296 test -z "$ac_dir" && ac_dir
=.
5297 if test -f $ac_dir/$ac_word; then
5298 ac_cv_prog_AR_FOR_TARGET
="${ncn_progname}"
5305 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5306 if test -n "$AR_FOR_TARGET"; then
5307 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5309 echo "$ac_t""no" 1>&6
5313 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5317 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5319 if test $build = $target ; then
5322 AR_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5327 AR_FOR_TARGET
=$ac_cv_path_AR_FOR_TARGET
5333 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5334 if test -n "$with_build_time_tools"; then
5335 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5336 echo "configure:5337: checking for as in $with_build_time_tools" >&5
5337 if test -x $with_build_time_tools/as
; then
5338 AS_FOR_TARGET
=`cd $with_build_time_tools && pwd`/as
5339 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5340 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5342 echo "$ac_t""no" 1>&6
5344 elif test $build != $host && test $have_gcc_for_target = yes; then
5345 AS_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=as`
5346 test $AS_FOR_TARGET=as
&& AS_FOR_TARGET
=
5347 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5350 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5351 # Extract the first word of "as", so it can be a program name with args.
5352 set dummy as
; ac_word
=$2
5353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5354 echo "configure:5355: checking for $ac_word" >&5
5355 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5356 echo $ac_n "(cached) $ac_c" 1>&6
5358 case "$AS_FOR_TARGET" in
5360 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a path.
5363 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5366 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5367 ac_dummy
="$gcc_cv_tool_dirs"
5368 for ac_dir
in $ac_dummy; do
5369 test -z "$ac_dir" && ac_dir
=.
5370 if test -f $ac_dir/$ac_word; then
5371 ac_cv_path_AS_FOR_TARGET
="$ac_dir/$ac_word"
5379 AS_FOR_TARGET
="$ac_cv_path_AS_FOR_TARGET"
5380 if test -n "$AS_FOR_TARGET"; then
5381 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5383 echo "$ac_t""no" 1>&6
5387 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5388 if test -n "$with_build_time_tools"; then
5389 for ncn_progname
in as
; do
5390 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5391 echo "configure:5392: checking for ${ncn_progname} in $with_build_time_tools" >&5
5392 if test -x $with_build_time_tools/${ncn_progname}; then
5393 ac_cv_prog_AS_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5394 echo "$ac_t""yes" 1>&6
5397 echo "$ac_t""no" 1>&6
5402 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5403 for ncn_progname
in as
; do
5404 if test -n "$ncn_target_tool_prefix"; then
5405 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5406 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5407 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5408 echo "configure:5409: checking for $ac_word" >&5
5409 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5410 echo $ac_n "(cached) $ac_c" 1>&6
5412 if test -n "$AS_FOR_TARGET"; then
5413 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5415 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5417 for ac_dir
in $ac_dummy; do
5418 test -z "$ac_dir" && ac_dir
=.
5419 if test -f $ac_dir/$ac_word; then
5420 ac_cv_prog_AS_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5427 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5428 if test -n "$AS_FOR_TARGET"; then
5429 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5431 echo "$ac_t""no" 1>&6
5435 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5436 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5437 set dummy
${ncn_progname}; ac_word
=$2
5438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5439 echo "configure:5440: checking for $ac_word" >&5
5440 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5441 echo $ac_n "(cached) $ac_c" 1>&6
5443 if test -n "$AS_FOR_TARGET"; then
5444 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5446 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5448 for ac_dir
in $ac_dummy; do
5449 test -z "$ac_dir" && ac_dir
=.
5450 if test -f $ac_dir/$ac_word; then
5451 ac_cv_prog_AS_FOR_TARGET
="${ncn_progname}"
5458 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5459 if test -n "$AS_FOR_TARGET"; then
5460 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5462 echo "$ac_t""no" 1>&6
5466 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5470 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5472 if test $build = $target ; then
5475 AS_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5480 AS_FOR_TARGET
=$ac_cv_path_AS_FOR_TARGET
5486 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5487 if test -n "$with_build_time_tools"; then
5488 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5489 echo "configure:5490: checking for dlltool in $with_build_time_tools" >&5
5490 if test -x $with_build_time_tools/dlltool
; then
5491 DLLTOOL_FOR_TARGET
=`cd $with_build_time_tools && pwd`/dlltool
5492 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5493 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5495 echo "$ac_t""no" 1>&6
5497 elif test $build != $host && test $have_gcc_for_target = yes; then
5498 DLLTOOL_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5499 test $DLLTOOL_FOR_TARGET=dlltool
&& DLLTOOL_FOR_TARGET
=
5500 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5503 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5504 # Extract the first word of "dlltool", so it can be a program name with args.
5505 set dummy dlltool
; ac_word
=$2
5506 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5507 echo "configure:5508: checking for $ac_word" >&5
5508 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5509 echo $ac_n "(cached) $ac_c" 1>&6
5511 case "$DLLTOOL_FOR_TARGET" in
5513 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5516 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5519 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5520 ac_dummy
="$gcc_cv_tool_dirs"
5521 for ac_dir
in $ac_dummy; do
5522 test -z "$ac_dir" && ac_dir
=.
5523 if test -f $ac_dir/$ac_word; then
5524 ac_cv_path_DLLTOOL_FOR_TARGET
="$ac_dir/$ac_word"
5532 DLLTOOL_FOR_TARGET
="$ac_cv_path_DLLTOOL_FOR_TARGET"
5533 if test -n "$DLLTOOL_FOR_TARGET"; then
5534 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5536 echo "$ac_t""no" 1>&6
5540 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5541 if test -n "$with_build_time_tools"; then
5542 for ncn_progname
in dlltool
; do
5543 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5544 echo "configure:5545: checking for ${ncn_progname} in $with_build_time_tools" >&5
5545 if test -x $with_build_time_tools/${ncn_progname}; then
5546 ac_cv_prog_DLLTOOL_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5547 echo "$ac_t""yes" 1>&6
5550 echo "$ac_t""no" 1>&6
5555 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5556 for ncn_progname
in dlltool
; do
5557 if test -n "$ncn_target_tool_prefix"; then
5558 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5559 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5561 echo "configure:5562: checking for $ac_word" >&5
5562 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5563 echo $ac_n "(cached) $ac_c" 1>&6
5565 if test -n "$DLLTOOL_FOR_TARGET"; then
5566 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5568 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5570 for ac_dir
in $ac_dummy; do
5571 test -z "$ac_dir" && ac_dir
=.
5572 if test -f $ac_dir/$ac_word; then
5573 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5580 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5581 if test -n "$DLLTOOL_FOR_TARGET"; then
5582 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5584 echo "$ac_t""no" 1>&6
5588 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5590 set dummy
${ncn_progname}; ac_word
=$2
5591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5592 echo "configure:5593: checking for $ac_word" >&5
5593 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5594 echo $ac_n "(cached) $ac_c" 1>&6
5596 if test -n "$DLLTOOL_FOR_TARGET"; then
5597 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5599 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5601 for ac_dir
in $ac_dummy; do
5602 test -z "$ac_dir" && ac_dir
=.
5603 if test -f $ac_dir/$ac_word; then
5604 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_progname}"
5611 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5612 if test -n "$DLLTOOL_FOR_TARGET"; then
5613 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5615 echo "$ac_t""no" 1>&6
5619 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5623 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5625 if test $build = $target ; then
5626 DLLTOOL_FOR_TARGET
="$2"
5628 DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5633 DLLTOOL_FOR_TARGET
=$ac_cv_path_DLLTOOL_FOR_TARGET
5639 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5640 if test -n "$with_build_time_tools"; then
5641 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5642 echo "configure:5643: checking for ld in $with_build_time_tools" >&5
5643 if test -x $with_build_time_tools/ld
; then
5644 LD_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ld
5645 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5646 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5648 echo "$ac_t""no" 1>&6
5650 elif test $build != $host && test $have_gcc_for_target = yes; then
5651 LD_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ld`
5652 test $LD_FOR_TARGET=ld
&& LD_FOR_TARGET
=
5653 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5656 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5657 # Extract the first word of "ld", so it can be a program name with args.
5658 set dummy ld
; ac_word
=$2
5659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5660 echo "configure:5661: checking for $ac_word" >&5
5661 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5662 echo $ac_n "(cached) $ac_c" 1>&6
5664 case "$LD_FOR_TARGET" in
5666 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a path.
5669 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5672 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5673 ac_dummy
="$gcc_cv_tool_dirs"
5674 for ac_dir
in $ac_dummy; do
5675 test -z "$ac_dir" && ac_dir
=.
5676 if test -f $ac_dir/$ac_word; then
5677 ac_cv_path_LD_FOR_TARGET
="$ac_dir/$ac_word"
5685 LD_FOR_TARGET
="$ac_cv_path_LD_FOR_TARGET"
5686 if test -n "$LD_FOR_TARGET"; then
5687 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5689 echo "$ac_t""no" 1>&6
5693 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5694 if test -n "$with_build_time_tools"; then
5695 for ncn_progname
in ld
; do
5696 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5697 echo "configure:5698: checking for ${ncn_progname} in $with_build_time_tools" >&5
5698 if test -x $with_build_time_tools/${ncn_progname}; then
5699 ac_cv_prog_LD_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5700 echo "$ac_t""yes" 1>&6
5703 echo "$ac_t""no" 1>&6
5708 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5709 for ncn_progname
in ld
; do
5710 if test -n "$ncn_target_tool_prefix"; then
5711 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5712 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5714 echo "configure:5715: checking for $ac_word" >&5
5715 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5716 echo $ac_n "(cached) $ac_c" 1>&6
5718 if test -n "$LD_FOR_TARGET"; then
5719 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5721 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5723 for ac_dir
in $ac_dummy; do
5724 test -z "$ac_dir" && ac_dir
=.
5725 if test -f $ac_dir/$ac_word; then
5726 ac_cv_prog_LD_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5733 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5734 if test -n "$LD_FOR_TARGET"; then
5735 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5737 echo "$ac_t""no" 1>&6
5741 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5743 set dummy
${ncn_progname}; ac_word
=$2
5744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5745 echo "configure:5746: checking for $ac_word" >&5
5746 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5747 echo $ac_n "(cached) $ac_c" 1>&6
5749 if test -n "$LD_FOR_TARGET"; then
5750 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5752 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5754 for ac_dir
in $ac_dummy; do
5755 test -z "$ac_dir" && ac_dir
=.
5756 if test -f $ac_dir/$ac_word; then
5757 ac_cv_prog_LD_FOR_TARGET
="${ncn_progname}"
5764 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5765 if test -n "$LD_FOR_TARGET"; then
5766 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5768 echo "$ac_t""no" 1>&6
5772 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5776 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5778 if test $build = $target ; then
5781 LD_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5786 LD_FOR_TARGET
=$ac_cv_path_LD_FOR_TARGET
5792 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5793 if test -n "$with_build_time_tools"; then
5794 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5795 echo "configure:5796: checking for lipo in $with_build_time_tools" >&5
5796 if test -x $with_build_time_tools/lipo
; then
5797 LIPO_FOR_TARGET
=`cd $with_build_time_tools && pwd`/lipo
5798 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5799 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5801 echo "$ac_t""no" 1>&6
5803 elif test $build != $host && test $have_gcc_for_target = yes; then
5804 LIPO_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=lipo`
5805 test $LIPO_FOR_TARGET=lipo
&& LIPO_FOR_TARGET
=
5806 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5809 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5810 # Extract the first word of "lipo", so it can be a program name with args.
5811 set dummy lipo
; ac_word
=$2
5812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5813 echo "configure:5814: checking for $ac_word" >&5
5814 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5817 case "$LIPO_FOR_TARGET" in
5819 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5822 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5825 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5826 ac_dummy
="$gcc_cv_tool_dirs"
5827 for ac_dir
in $ac_dummy; do
5828 test -z "$ac_dir" && ac_dir
=.
5829 if test -f $ac_dir/$ac_word; then
5830 ac_cv_path_LIPO_FOR_TARGET
="$ac_dir/$ac_word"
5838 LIPO_FOR_TARGET
="$ac_cv_path_LIPO_FOR_TARGET"
5839 if test -n "$LIPO_FOR_TARGET"; then
5840 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5842 echo "$ac_t""no" 1>&6
5846 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5847 if test -n "$with_build_time_tools"; then
5848 for ncn_progname
in lipo
; do
5849 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5850 echo "configure:5851: checking for ${ncn_progname} in $with_build_time_tools" >&5
5851 if test -x $with_build_time_tools/${ncn_progname}; then
5852 ac_cv_prog_LIPO_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5853 echo "$ac_t""yes" 1>&6
5856 echo "$ac_t""no" 1>&6
5861 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5862 for ncn_progname
in lipo
; do
5863 if test -n "$ncn_target_tool_prefix"; then
5864 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5865 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5867 echo "configure:5868: checking for $ac_word" >&5
5868 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5869 echo $ac_n "(cached) $ac_c" 1>&6
5871 if test -n "$LIPO_FOR_TARGET"; then
5872 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
5874 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5876 for ac_dir
in $ac_dummy; do
5877 test -z "$ac_dir" && ac_dir
=.
5878 if test -f $ac_dir/$ac_word; then
5879 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5886 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
5887 if test -n "$LIPO_FOR_TARGET"; then
5888 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5890 echo "$ac_t""no" 1>&6
5894 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5896 set dummy
${ncn_progname}; ac_word
=$2
5897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5898 echo "configure:5899: checking for $ac_word" >&5
5899 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5900 echo $ac_n "(cached) $ac_c" 1>&6
5902 if test -n "$LIPO_FOR_TARGET"; then
5903 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
5905 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5907 for ac_dir
in $ac_dummy; do
5908 test -z "$ac_dir" && ac_dir
=.
5909 if test -f $ac_dir/$ac_word; then
5910 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_progname}"
5917 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
5918 if test -n "$LIPO_FOR_TARGET"; then
5919 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5921 echo "$ac_t""no" 1>&6
5925 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5929 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5931 if test $build = $target ; then
5932 LIPO_FOR_TARGET
="$2"
5934 LIPO_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5939 LIPO_FOR_TARGET
=$ac_cv_path_LIPO_FOR_TARGET
5945 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5946 if test -n "$with_build_time_tools"; then
5947 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
5948 echo "configure:5949: checking for nm in $with_build_time_tools" >&5
5949 if test -x $with_build_time_tools/nm
; then
5950 NM_FOR_TARGET
=`cd $with_build_time_tools && pwd`/nm
5951 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
5952 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5954 echo "$ac_t""no" 1>&6
5956 elif test $build != $host && test $have_gcc_for_target = yes; then
5957 NM_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=nm`
5958 test $NM_FOR_TARGET=nm
&& NM_FOR_TARGET
=
5959 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
5962 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5963 # Extract the first word of "nm", so it can be a program name with args.
5964 set dummy nm
; ac_word
=$2
5965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5966 echo "configure:5967: checking for $ac_word" >&5
5967 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5968 echo $ac_n "(cached) $ac_c" 1>&6
5970 case "$NM_FOR_TARGET" in
5972 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a path.
5975 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5978 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5979 ac_dummy
="$gcc_cv_tool_dirs"
5980 for ac_dir
in $ac_dummy; do
5981 test -z "$ac_dir" && ac_dir
=.
5982 if test -f $ac_dir/$ac_word; then
5983 ac_cv_path_NM_FOR_TARGET
="$ac_dir/$ac_word"
5991 NM_FOR_TARGET
="$ac_cv_path_NM_FOR_TARGET"
5992 if test -n "$NM_FOR_TARGET"; then
5993 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5995 echo "$ac_t""no" 1>&6
5999 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6000 if test -n "$with_build_time_tools"; then
6001 for ncn_progname
in nm
; do
6002 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6003 echo "configure:6004: checking for ${ncn_progname} in $with_build_time_tools" >&5
6004 if test -x $with_build_time_tools/${ncn_progname}; then
6005 ac_cv_prog_NM_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6006 echo "$ac_t""yes" 1>&6
6009 echo "$ac_t""no" 1>&6
6014 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
6015 for ncn_progname
in nm
; do
6016 if test -n "$ncn_target_tool_prefix"; then
6017 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6018 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6020 echo "configure:6021: checking for $ac_word" >&5
6021 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6022 echo $ac_n "(cached) $ac_c" 1>&6
6024 if test -n "$NM_FOR_TARGET"; then
6025 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
6027 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6029 for ac_dir
in $ac_dummy; do
6030 test -z "$ac_dir" && ac_dir
=.
6031 if test -f $ac_dir/$ac_word; then
6032 ac_cv_prog_NM_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6039 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
6040 if test -n "$NM_FOR_TARGET"; then
6041 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6043 echo "$ac_t""no" 1>&6
6047 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
6048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6049 set dummy
${ncn_progname}; ac_word
=$2
6050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6051 echo "configure:6052: checking for $ac_word" >&5
6052 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6053 echo $ac_n "(cached) $ac_c" 1>&6
6055 if test -n "$NM_FOR_TARGET"; then
6056 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
6058 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6060 for ac_dir
in $ac_dummy; do
6061 test -z "$ac_dir" && ac_dir
=.
6062 if test -f $ac_dir/$ac_word; then
6063 ac_cv_prog_NM_FOR_TARGET
="${ncn_progname}"
6070 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
6071 if test -n "$NM_FOR_TARGET"; then
6072 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6074 echo "$ac_t""no" 1>&6
6078 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6082 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6084 if test $build = $target ; then
6087 NM_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6092 NM_FOR_TARGET
=$ac_cv_path_NM_FOR_TARGET
6098 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6099 if test -n "$with_build_time_tools"; then
6100 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6101 echo "configure:6102: checking for objdump in $with_build_time_tools" >&5
6102 if test -x $with_build_time_tools/objdump
; then
6103 OBJDUMP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/objdump
6104 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6105 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6107 echo "$ac_t""no" 1>&6
6109 elif test $build != $host && test $have_gcc_for_target = yes; then
6110 OBJDUMP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=objdump`
6111 test $OBJDUMP_FOR_TARGET=objdump
&& OBJDUMP_FOR_TARGET
=
6112 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6115 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6116 # Extract the first word of "objdump", so it can be a program name with args.
6117 set dummy objdump
; ac_word
=$2
6118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6119 echo "configure:6120: checking for $ac_word" >&5
6120 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6121 echo $ac_n "(cached) $ac_c" 1>&6
6123 case "$OBJDUMP_FOR_TARGET" in
6125 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6128 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6131 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6132 ac_dummy
="$gcc_cv_tool_dirs"
6133 for ac_dir
in $ac_dummy; do
6134 test -z "$ac_dir" && ac_dir
=.
6135 if test -f $ac_dir/$ac_word; then
6136 ac_cv_path_OBJDUMP_FOR_TARGET
="$ac_dir/$ac_word"
6144 OBJDUMP_FOR_TARGET
="$ac_cv_path_OBJDUMP_FOR_TARGET"
6145 if test -n "$OBJDUMP_FOR_TARGET"; then
6146 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6148 echo "$ac_t""no" 1>&6
6152 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6153 if test -n "$with_build_time_tools"; then
6154 for ncn_progname
in objdump
; do
6155 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6156 echo "configure:6157: checking for ${ncn_progname} in $with_build_time_tools" >&5
6157 if test -x $with_build_time_tools/${ncn_progname}; then
6158 ac_cv_prog_OBJDUMP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6159 echo "$ac_t""yes" 1>&6
6162 echo "$ac_t""no" 1>&6
6167 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6168 for ncn_progname
in objdump
; do
6169 if test -n "$ncn_target_tool_prefix"; then
6170 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6171 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6173 echo "configure:6174: checking for $ac_word" >&5
6174 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6175 echo $ac_n "(cached) $ac_c" 1>&6
6177 if test -n "$OBJDUMP_FOR_TARGET"; then
6178 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6180 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6182 for ac_dir
in $ac_dummy; do
6183 test -z "$ac_dir" && ac_dir
=.
6184 if test -f $ac_dir/$ac_word; then
6185 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6192 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6193 if test -n "$OBJDUMP_FOR_TARGET"; then
6194 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6196 echo "$ac_t""no" 1>&6
6200 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6202 set dummy
${ncn_progname}; ac_word
=$2
6203 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6204 echo "configure:6205: checking for $ac_word" >&5
6205 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6206 echo $ac_n "(cached) $ac_c" 1>&6
6208 if test -n "$OBJDUMP_FOR_TARGET"; then
6209 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6211 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6213 for ac_dir
in $ac_dummy; do
6214 test -z "$ac_dir" && ac_dir
=.
6215 if test -f $ac_dir/$ac_word; then
6216 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_progname}"
6223 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6224 if test -n "$OBJDUMP_FOR_TARGET"; then
6225 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6227 echo "$ac_t""no" 1>&6
6231 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6235 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6237 if test $build = $target ; then
6238 OBJDUMP_FOR_TARGET
="$2"
6240 OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6245 OBJDUMP_FOR_TARGET
=$ac_cv_path_OBJDUMP_FOR_TARGET
6251 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6252 if test -n "$with_build_time_tools"; then
6253 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6254 echo "configure:6255: checking for ranlib in $with_build_time_tools" >&5
6255 if test -x $with_build_time_tools/ranlib
; then
6256 RANLIB_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ranlib
6257 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6258 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6260 echo "$ac_t""no" 1>&6
6262 elif test $build != $host && test $have_gcc_for_target = yes; then
6263 RANLIB_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6264 test $RANLIB_FOR_TARGET=ranlib
&& RANLIB_FOR_TARGET
=
6265 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6268 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6269 # Extract the first word of "ranlib", so it can be a program name with args.
6270 set dummy ranlib
; ac_word
=$2
6271 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6272 echo "configure:6273: checking for $ac_word" >&5
6273 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6274 echo $ac_n "(cached) $ac_c" 1>&6
6276 case "$RANLIB_FOR_TARGET" in
6278 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6281 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6284 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6285 ac_dummy
="$gcc_cv_tool_dirs"
6286 for ac_dir
in $ac_dummy; do
6287 test -z "$ac_dir" && ac_dir
=.
6288 if test -f $ac_dir/$ac_word; then
6289 ac_cv_path_RANLIB_FOR_TARGET
="$ac_dir/$ac_word"
6297 RANLIB_FOR_TARGET
="$ac_cv_path_RANLIB_FOR_TARGET"
6298 if test -n "$RANLIB_FOR_TARGET"; then
6299 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6301 echo "$ac_t""no" 1>&6
6305 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6306 if test -n "$with_build_time_tools"; then
6307 for ncn_progname
in ranlib
; do
6308 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6309 echo "configure:6310: checking for ${ncn_progname} in $with_build_time_tools" >&5
6310 if test -x $with_build_time_tools/${ncn_progname}; then
6311 ac_cv_prog_RANLIB_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6312 echo "$ac_t""yes" 1>&6
6315 echo "$ac_t""no" 1>&6
6320 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6321 for ncn_progname
in ranlib
; do
6322 if test -n "$ncn_target_tool_prefix"; then
6323 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6324 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6326 echo "configure:6327: checking for $ac_word" >&5
6327 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6328 echo $ac_n "(cached) $ac_c" 1>&6
6330 if test -n "$RANLIB_FOR_TARGET"; then
6331 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6333 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6335 for ac_dir
in $ac_dummy; do
6336 test -z "$ac_dir" && ac_dir
=.
6337 if test -f $ac_dir/$ac_word; then
6338 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6345 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6346 if test -n "$RANLIB_FOR_TARGET"; then
6347 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6349 echo "$ac_t""no" 1>&6
6353 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6354 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6355 set dummy
${ncn_progname}; ac_word
=$2
6356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6357 echo "configure:6358: checking for $ac_word" >&5
6358 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6359 echo $ac_n "(cached) $ac_c" 1>&6
6361 if test -n "$RANLIB_FOR_TARGET"; then
6362 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6364 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6366 for ac_dir
in $ac_dummy; do
6367 test -z "$ac_dir" && ac_dir
=.
6368 if test -f $ac_dir/$ac_word; then
6369 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_progname}"
6376 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6377 if test -n "$RANLIB_FOR_TARGET"; then
6378 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6380 echo "$ac_t""no" 1>&6
6384 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6388 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6390 if test $build = $target ; then
6391 RANLIB_FOR_TARGET
="$2"
6393 RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6398 RANLIB_FOR_TARGET
=$ac_cv_path_RANLIB_FOR_TARGET
6404 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6405 if test -n "$with_build_time_tools"; then
6406 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6407 echo "configure:6408: checking for strip in $with_build_time_tools" >&5
6408 if test -x $with_build_time_tools/strip
; then
6409 STRIP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/strip
6410 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6411 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6413 echo "$ac_t""no" 1>&6
6415 elif test $build != $host && test $have_gcc_for_target = yes; then
6416 STRIP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=strip`
6417 test $STRIP_FOR_TARGET=strip
&& STRIP_FOR_TARGET
=
6418 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6421 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6422 # Extract the first word of "strip", so it can be a program name with args.
6423 set dummy strip
; ac_word
=$2
6424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6425 echo "configure:6426: checking for $ac_word" >&5
6426 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6427 echo $ac_n "(cached) $ac_c" 1>&6
6429 case "$STRIP_FOR_TARGET" in
6431 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6434 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6437 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6438 ac_dummy
="$gcc_cv_tool_dirs"
6439 for ac_dir
in $ac_dummy; do
6440 test -z "$ac_dir" && ac_dir
=.
6441 if test -f $ac_dir/$ac_word; then
6442 ac_cv_path_STRIP_FOR_TARGET
="$ac_dir/$ac_word"
6450 STRIP_FOR_TARGET
="$ac_cv_path_STRIP_FOR_TARGET"
6451 if test -n "$STRIP_FOR_TARGET"; then
6452 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6454 echo "$ac_t""no" 1>&6
6458 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6459 if test -n "$with_build_time_tools"; then
6460 for ncn_progname
in strip
; do
6461 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6462 echo "configure:6463: checking for ${ncn_progname} in $with_build_time_tools" >&5
6463 if test -x $with_build_time_tools/${ncn_progname}; then
6464 ac_cv_prog_STRIP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6465 echo "$ac_t""yes" 1>&6
6468 echo "$ac_t""no" 1>&6
6473 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6474 for ncn_progname
in strip
; do
6475 if test -n "$ncn_target_tool_prefix"; then
6476 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6477 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6479 echo "configure:6480: checking for $ac_word" >&5
6480 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6481 echo $ac_n "(cached) $ac_c" 1>&6
6483 if test -n "$STRIP_FOR_TARGET"; then
6484 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6486 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6488 for ac_dir
in $ac_dummy; do
6489 test -z "$ac_dir" && ac_dir
=.
6490 if test -f $ac_dir/$ac_word; then
6491 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6498 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6499 if test -n "$STRIP_FOR_TARGET"; then
6500 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6502 echo "$ac_t""no" 1>&6
6506 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6508 set dummy
${ncn_progname}; ac_word
=$2
6509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6510 echo "configure:6511: checking for $ac_word" >&5
6511 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6512 echo $ac_n "(cached) $ac_c" 1>&6
6514 if test -n "$STRIP_FOR_TARGET"; then
6515 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6517 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6519 for ac_dir
in $ac_dummy; do
6520 test -z "$ac_dir" && ac_dir
=.
6521 if test -f $ac_dir/$ac_word; then
6522 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_progname}"
6529 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6530 if test -n "$STRIP_FOR_TARGET"; then
6531 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6533 echo "$ac_t""no" 1>&6
6537 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6541 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6543 if test $build = $target ; then
6544 STRIP_FOR_TARGET
="$2"
6546 STRIP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6551 STRIP_FOR_TARGET
=$ac_cv_path_STRIP_FOR_TARGET
6557 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6558 if test -n "$with_build_time_tools"; then
6559 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6560 echo "configure:6561: checking for windres in $with_build_time_tools" >&5
6561 if test -x $with_build_time_tools/windres
; then
6562 WINDRES_FOR_TARGET
=`cd $with_build_time_tools && pwd`/windres
6563 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6564 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6566 echo "$ac_t""no" 1>&6
6568 elif test $build != $host && test $have_gcc_for_target = yes; then
6569 WINDRES_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=windres`
6570 test $WINDRES_FOR_TARGET=windres
&& WINDRES_FOR_TARGET
=
6571 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6574 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6575 # Extract the first word of "windres", so it can be a program name with args.
6576 set dummy windres
; ac_word
=$2
6577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6578 echo "configure:6579: checking for $ac_word" >&5
6579 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6580 echo $ac_n "(cached) $ac_c" 1>&6
6582 case "$WINDRES_FOR_TARGET" in
6584 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6587 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6590 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6591 ac_dummy
="$gcc_cv_tool_dirs"
6592 for ac_dir
in $ac_dummy; do
6593 test -z "$ac_dir" && ac_dir
=.
6594 if test -f $ac_dir/$ac_word; then
6595 ac_cv_path_WINDRES_FOR_TARGET
="$ac_dir/$ac_word"
6603 WINDRES_FOR_TARGET
="$ac_cv_path_WINDRES_FOR_TARGET"
6604 if test -n "$WINDRES_FOR_TARGET"; then
6605 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6607 echo "$ac_t""no" 1>&6
6611 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6612 if test -n "$with_build_time_tools"; then
6613 for ncn_progname
in windres
; do
6614 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6615 echo "configure:6616: checking for ${ncn_progname} in $with_build_time_tools" >&5
6616 if test -x $with_build_time_tools/${ncn_progname}; then
6617 ac_cv_prog_WINDRES_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6618 echo "$ac_t""yes" 1>&6
6621 echo "$ac_t""no" 1>&6
6626 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6627 for ncn_progname
in windres
; do
6628 if test -n "$ncn_target_tool_prefix"; then
6629 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6630 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6632 echo "configure:6633: checking for $ac_word" >&5
6633 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6634 echo $ac_n "(cached) $ac_c" 1>&6
6636 if test -n "$WINDRES_FOR_TARGET"; then
6637 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6639 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6641 for ac_dir
in $ac_dummy; do
6642 test -z "$ac_dir" && ac_dir
=.
6643 if test -f $ac_dir/$ac_word; then
6644 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6651 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6652 if test -n "$WINDRES_FOR_TARGET"; then
6653 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6655 echo "$ac_t""no" 1>&6
6659 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6660 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6661 set dummy
${ncn_progname}; ac_word
=$2
6662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6663 echo "configure:6664: checking for $ac_word" >&5
6664 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6667 if test -n "$WINDRES_FOR_TARGET"; then
6668 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6670 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6672 for ac_dir
in $ac_dummy; do
6673 test -z "$ac_dir" && ac_dir
=.
6674 if test -f $ac_dir/$ac_word; then
6675 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_progname}"
6682 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6683 if test -n "$WINDRES_FOR_TARGET"; then
6684 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6686 echo "$ac_t""no" 1>&6
6690 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6694 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6696 if test $build = $target ; then
6697 WINDRES_FOR_TARGET
="$2"
6699 WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6704 WINDRES_FOR_TARGET
=$ac_cv_path_WINDRES_FOR_TARGET
6708 RAW_CXX_FOR_TARGET
="$CXX_FOR_TARGET"
6710 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6711 echo "configure:6712: checking where to find the target ar" >&5
6712 if test "x${build}" != "x${host}" ; then
6713 if expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6714 # We already found the complete path
6715 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6717 # Canadian cross, just use what we found
6718 echo "$ac_t""pre-installed" 1>&6
6722 case " ${configdirs} " in
6727 if test $ok = yes; then
6728 # An in-tree tool is available and we can use it
6729 AR_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ar'
6730 echo "$ac_t""just compiled" 1>&6
6731 elif expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6732 # We already found the complete path
6733 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6734 elif test "x$target" = "x$host"; then
6735 # We can use an host tool
6736 AR_FOR_TARGET
='$(AR)'
6737 echo "$ac_t""host tool" 1>&6
6739 # We need a cross tool
6740 echo "$ac_t""pre-installed" 1>&6
6743 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6744 echo "configure:6745: checking where to find the target as" >&5
6745 if test "x${build}" != "x${host}" ; then
6746 if expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6747 # We already found the complete path
6748 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6750 # Canadian cross, just use what we found
6751 echo "$ac_t""pre-installed" 1>&6
6755 case " ${configdirs} " in
6760 if test $ok = yes; then
6761 # An in-tree tool is available and we can use it
6762 AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gas/as-new'
6763 echo "$ac_t""just compiled" 1>&6
6764 elif expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6765 # We already found the complete path
6766 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6767 elif test "x$target" = "x$host"; then
6768 # We can use an host tool
6769 AS_FOR_TARGET
='$(AS)'
6770 echo "$ac_t""host tool" 1>&6
6772 # We need a cross tool
6773 echo "$ac_t""pre-installed" 1>&6
6776 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6777 echo "configure:6778: checking where to find the target cc" >&5
6778 if test "x${build}" != "x${host}" ; then
6779 if expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6780 # We already found the complete path
6781 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6783 # Canadian cross, just use what we found
6784 echo "$ac_t""pre-installed" 1>&6
6788 case " ${configdirs} " in
6793 if test $ok = yes; then
6794 # An in-tree tool is available and we can use it
6795 CC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6796 echo "$ac_t""just compiled" 1>&6
6797 elif expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6798 # We already found the complete path
6799 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6800 elif test "x$target" = "x$host"; then
6801 # We can use an host tool
6802 CC_FOR_TARGET
='$(CC)'
6803 echo "$ac_t""host tool" 1>&6
6805 # We need a cross tool
6806 echo "$ac_t""pre-installed" 1>&6
6809 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6810 echo "configure:6811: checking where to find the target c++" >&5
6811 if test "x${build}" != "x${host}" ; then
6812 if expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6813 # We already found the complete path
6814 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6816 # Canadian cross, just use what we found
6817 echo "$ac_t""pre-installed" 1>&6
6821 case " ${configdirs} " in
6825 case ,${enable_languages}, in
6829 if test $ok = yes; then
6830 # An in-tree tool is available and we can use it
6831 CXX_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
6832 echo "$ac_t""just compiled" 1>&6
6833 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6834 # We already found the complete path
6835 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6836 elif test "x$target" = "x$host"; then
6837 # We can use an host tool
6838 CXX_FOR_TARGET
='$(CXX)'
6839 echo "$ac_t""host tool" 1>&6
6841 # We need a cross tool
6842 echo "$ac_t""pre-installed" 1>&6
6845 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6846 echo "configure:6847: checking where to find the target c++ for libstdc++" >&5
6847 if test "x${build}" != "x${host}" ; then
6848 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6849 # We already found the complete path
6850 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6852 # Canadian cross, just use what we found
6853 echo "$ac_t""pre-installed" 1>&6
6857 case " ${configdirs} " in
6861 case ,${enable_languages}, in
6865 if test $ok = yes; then
6866 # An in-tree tool is available and we can use it
6867 RAW_CXX_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
6868 echo "$ac_t""just compiled" 1>&6
6869 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6870 # We already found the complete path
6871 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6872 elif test "x$target" = "x$host"; then
6873 # We can use an host tool
6874 RAW_CXX_FOR_TARGET
='$(CXX)'
6875 echo "$ac_t""host tool" 1>&6
6877 # We need a cross tool
6878 echo "$ac_t""pre-installed" 1>&6
6881 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6882 echo "configure:6883: checking where to find the target dlltool" >&5
6883 if test "x${build}" != "x${host}" ; then
6884 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
6885 # We already found the complete path
6886 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6888 # Canadian cross, just use what we found
6889 echo "$ac_t""pre-installed" 1>&6
6893 case " ${configdirs} " in
6898 if test $ok = yes; then
6899 # An in-tree tool is available and we can use it
6900 DLLTOOL_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6901 echo "$ac_t""just compiled" 1>&6
6902 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
6903 # We already found the complete path
6904 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6905 elif test "x$target" = "x$host"; then
6906 # We can use an host tool
6907 DLLTOOL_FOR_TARGET
='$(DLLTOOL)'
6908 echo "$ac_t""host tool" 1>&6
6910 # We need a cross tool
6911 echo "$ac_t""pre-installed" 1>&6
6914 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6915 echo "configure:6916: checking where to find the target gcc" >&5
6916 if test "x${build}" != "x${host}" ; then
6917 if expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
6918 # We already found the complete path
6919 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6921 # Canadian cross, just use what we found
6922 echo "$ac_t""pre-installed" 1>&6
6926 case " ${configdirs} " in
6931 if test $ok = yes; then
6932 # An in-tree tool is available and we can use it
6933 GCC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6934 echo "$ac_t""just compiled" 1>&6
6935 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
6936 # We already found the complete path
6937 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6938 elif test "x$target" = "x$host"; then
6939 # We can use an host tool
6940 GCC_FOR_TARGET
='$()'
6941 echo "$ac_t""host tool" 1>&6
6943 # We need a cross tool
6944 echo "$ac_t""pre-installed" 1>&6
6947 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6948 echo "configure:6949: checking where to find the target gcj" >&5
6949 if test "x${build}" != "x${host}" ; then
6950 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
6951 # We already found the complete path
6952 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6954 # Canadian cross, just use what we found
6955 echo "$ac_t""pre-installed" 1>&6
6959 case " ${configdirs} " in
6963 case ,${enable_languages}, in
6967 if test $ok = yes; then
6968 # An in-tree tool is available and we can use it
6969 GCJ_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6970 echo "$ac_t""just compiled" 1>&6
6971 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
6972 # We already found the complete path
6973 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6974 elif test "x$target" = "x$host"; then
6975 # We can use an host tool
6976 GCJ_FOR_TARGET
='$(GCJ)'
6977 echo "$ac_t""host tool" 1>&6
6979 # We need a cross tool
6980 echo "$ac_t""pre-installed" 1>&6
6983 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
6984 echo "configure:6985: checking where to find the target gfortran" >&5
6985 if test "x${build}" != "x${host}" ; then
6986 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
6987 # We already found the complete path
6988 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6990 # Canadian cross, just use what we found
6991 echo "$ac_t""pre-installed" 1>&6
6995 case " ${configdirs} " in
6999 case ,${enable_languages}, in
7003 if test $ok = yes; then
7004 # An in-tree tool is available and we can use it
7005 GFORTRAN_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
7006 echo "$ac_t""just compiled" 1>&6
7007 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
7008 # We already found the complete path
7009 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
7010 elif test "x$target" = "x$host"; then
7011 # We can use an host tool
7012 GFORTRAN_FOR_TARGET
='$(GFORTRAN)'
7013 echo "$ac_t""host tool" 1>&6
7015 # We need a cross tool
7016 echo "$ac_t""pre-installed" 1>&6
7019 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
7020 echo "configure:7021: checking where to find the target ld" >&5
7021 if test "x${build}" != "x${host}" ; then
7022 if expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
7023 # We already found the complete path
7024 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7026 # Canadian cross, just use what we found
7027 echo "$ac_t""pre-installed" 1>&6
7031 case " ${configdirs} " in
7036 if test $ok = yes; then
7037 # An in-tree tool is available and we can use it
7038 LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/ld/ld-new'
7039 echo "$ac_t""just compiled" 1>&6
7040 elif expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
7041 # We already found the complete path
7042 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7043 elif test "x$target" = "x$host"; then
7044 # We can use an host tool
7045 LD_FOR_TARGET
='$(LD)'
7046 echo "$ac_t""host tool" 1>&6
7048 # We need a cross tool
7049 echo "$ac_t""pre-installed" 1>&6
7052 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
7053 echo "configure:7054: checking where to find the target lipo" >&5
7054 if test "x${build}" != "x${host}" ; then
7055 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
7056 # We already found the complete path
7057 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7059 # Canadian cross, just use what we found
7060 echo "$ac_t""pre-installed" 1>&6
7063 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
7064 # We already found the complete path
7065 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7066 elif test "x$target" = "x$host"; then
7067 # We can use an host tool
7068 LIPO_FOR_TARGET
='$(LIPO)'
7069 echo "$ac_t""host tool" 1>&6
7071 # We need a cross tool
7072 echo "$ac_t""pre-installed" 1>&6
7075 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
7076 echo "configure:7077: checking where to find the target nm" >&5
7077 if test "x${build}" != "x${host}" ; then
7078 if expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
7079 # We already found the complete path
7080 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7082 # Canadian cross, just use what we found
7083 echo "$ac_t""pre-installed" 1>&6
7087 case " ${configdirs} " in
7092 if test $ok = yes; then
7093 # An in-tree tool is available and we can use it
7094 NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7095 echo "$ac_t""just compiled" 1>&6
7096 elif expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
7097 # We already found the complete path
7098 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7099 elif test "x$target" = "x$host"; then
7100 # We can use an host tool
7101 NM_FOR_TARGET
='$(NM)'
7102 echo "$ac_t""host tool" 1>&6
7104 # We need a cross tool
7105 echo "$ac_t""pre-installed" 1>&6
7108 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7109 echo "configure:7110: checking where to find the target objdump" >&5
7110 if test "x${build}" != "x${host}" ; then
7111 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7112 # We already found the complete path
7113 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7115 # Canadian cross, just use what we found
7116 echo "$ac_t""pre-installed" 1>&6
7120 case " ${configdirs} " in
7125 if test $ok = yes; then
7126 # An in-tree tool is available and we can use it
7127 OBJDUMP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/objdump'
7128 echo "$ac_t""just compiled" 1>&6
7129 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7130 # We already found the complete path
7131 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7132 elif test "x$target" = "x$host"; then
7133 # We can use an host tool
7134 OBJDUMP_FOR_TARGET
='$(OBJDUMP)'
7135 echo "$ac_t""host tool" 1>&6
7137 # We need a cross tool
7138 echo "$ac_t""pre-installed" 1>&6
7141 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7142 echo "configure:7143: checking where to find the target ranlib" >&5
7143 if test "x${build}" != "x${host}" ; then
7144 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7145 # We already found the complete path
7146 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7148 # Canadian cross, just use what we found
7149 echo "$ac_t""pre-installed" 1>&6
7153 case " ${configdirs} " in
7158 if test $ok = yes; then
7159 # An in-tree tool is available and we can use it
7160 RANLIB_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7161 echo "$ac_t""just compiled" 1>&6
7162 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7163 # We already found the complete path
7164 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7165 elif test "x$target" = "x$host"; then
7166 # We can use an host tool
7167 RANLIB_FOR_TARGET
='$(RANLIB)'
7168 echo "$ac_t""host tool" 1>&6
7170 # We need a cross tool
7171 echo "$ac_t""pre-installed" 1>&6
7174 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7175 echo "configure:7176: checking where to find the target strip" >&5
7176 if test "x${build}" != "x${host}" ; then
7177 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7178 # We already found the complete path
7179 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7181 # Canadian cross, just use what we found
7182 echo "$ac_t""pre-installed" 1>&6
7186 case " ${configdirs} " in
7191 if test $ok = yes; then
7192 # An in-tree tool is available and we can use it
7193 STRIP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/strip'
7194 echo "$ac_t""just compiled" 1>&6
7195 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7196 # We already found the complete path
7197 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7198 elif test "x$target" = "x$host"; then
7199 # We can use an host tool
7200 STRIP_FOR_TARGET
='$(STRIP)'
7201 echo "$ac_t""host tool" 1>&6
7203 # We need a cross tool
7204 echo "$ac_t""pre-installed" 1>&6
7207 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7208 echo "configure:7209: checking where to find the target windres" >&5
7209 if test "x${build}" != "x${host}" ; then
7210 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7211 # We already found the complete path
7212 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7214 # Canadian cross, just use what we found
7215 echo "$ac_t""pre-installed" 1>&6
7219 case " ${configdirs} " in
7224 if test $ok = yes; then
7225 # An in-tree tool is available and we can use it
7226 WINDRES_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/windres'
7227 echo "$ac_t""just compiled" 1>&6
7228 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7229 # We already found the complete path
7230 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7231 elif test "x$target" = "x$host"; then
7232 # We can use an host tool
7233 WINDRES_FOR_TARGET
='$(WINDRES)'
7234 echo "$ac_t""host tool" 1>&6
7236 # We need a cross tool
7237 echo "$ac_t""pre-installed" 1>&6
7244 # Certain tools may need extra flags.
7245 AR_FOR_TARGET
=${AR_FOR_TARGET}${extra_arflags_for_target}
7246 RANLIB_FOR_TARGET
=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7247 NM_FOR_TARGET
=${NM_FOR_TARGET}${extra_nmflags_for_target}
7249 # When building target libraries, except in a Canadian cross, we use
7250 # the same toolchain as the compiler we just built.
7251 COMPILER_AS_FOR_TARGET
='$(AS_FOR_TARGET)'
7252 COMPILER_LD_FOR_TARGET
='$(LD_FOR_TARGET)'
7253 COMPILER_NM_FOR_TARGET
='$(NM_FOR_TARGET)'
7254 if test $host = $build; then
7255 case " $configdirs " in
7257 COMPILER_AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/as'
7258 COMPILER_LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7259 COMPILER_NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7268 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7269 echo "configure:7270: checking whether to enable maintainer-specific portions of Makefiles" >&5
7270 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7271 if test "${enable_maintainer_mode+set}" = set; then
7272 enableval
="$enable_maintainer_mode"
7273 USE_MAINTAINER_MODE
=$enableval
7275 USE_MAINTAINER_MODE
=no
7278 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7281 if test "$USE_MAINTAINER_MODE" = yes; then
7282 MAINTAINER_MODE_TRUE
=
7283 MAINTAINER_MODE_FALSE
='#'
7285 MAINTAINER_MODE_TRUE
='#'
7286 MAINTAINER_MODE_FALSE
=
7288 MAINT
=$MAINTAINER_MODE_TRUE
7290 # ---------------------
7291 # GCC bootstrap support
7292 # ---------------------
7294 # Stage specific cflags for build.
7299 yes) stage1_cflags
="-g -Wa,-J" ;;
7300 *) stage1_cflags
="-g -J" ;;
7304 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
7305 if test "$GCC" = yes; then
7306 saved_CFLAGS
="$CFLAGS"
7308 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
7309 CFLAGS
="$CFLAGS -fkeep-inline-functions"
7310 echo $ac_n "checking whether -fkeep-inline-functions is supported""... $ac_c" 1>&6
7311 echo "configure:7312: checking whether -fkeep-inline-functions is supported" >&5
7312 cat > conftest.
$ac_ext <<EOF
7313 #line 7314 "configure"
7314 #include "confdefs.h"
7320 if { (eval echo configure
:7321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7322 echo "$ac_t""yes" 1>&6; stage1_cflags
="$stage1_cflags -fkeep-inline-functions"
7324 echo "configure: failed program was:" >&5
7325 cat conftest.
$ac_ext >&5
7327 echo "$ac_t""no" 1>&6
7331 CFLAGS
="$saved_CFLAGS"
7336 # Enable --enable-checking in stage1 of the compiler.
7337 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
7338 if test "${enable_stage1_checking+set}" = set; then
7339 enableval
="$enable_stage1_checking"
7340 stage1_checking
=--enable-checking=${enable_stage1_checking}
7342 if test "x$enable_checking" = xno
; then
7343 stage1_checking
=--enable-checking
7345 stage1_checking
=--enable-checking${enable_checking+=}$enable_checking
7351 # Enable -Werror in bootstrap stage2 and later.
7352 # Change the default to "no" on release branches.
7353 # Check whether --enable-werror or --disable-werror was given.
7354 if test "${enable_werror+set}" = set; then
7355 enableval
="$enable_werror"
7361 case ${enable_werror} in
7362 yes) stage2_werror_flag
="--enable-werror-always" ;;
7363 *) stage2_werror_flag
="" ;;
7367 # Flags needed to enable html installing and building
7368 # Check whether --with-datarootdir or --without-datarootdir was given.
7369 if test "${with_datarootdir+set}" = set; then
7370 withval
="$with_datarootdir"
7371 datarootdir
="\${prefix}/${withval}"
7373 datarootdir
="\${prefix}/share"
7377 # Check whether --with-docdir or --without-docdir was given.
7378 if test "${with_docdir+set}" = set; then
7379 withval
="$with_docdir"
7380 docdir
="\${prefix}/${withval}"
7382 docdir
="\${datarootdir}/doc"
7386 # Check whether --with-htmldir or --without-htmldir was given.
7387 if test "${with_htmldir+set}" = set; then
7388 withval
="$with_htmldir"
7389 htmldir
="\${prefix}/${withval}"
7391 htmldir
="\${docdir}"
7400 cat > confcache
<<\EOF
7401 # This file is a shell script that caches the results of configure
7402 # tests run on this system so they can be shared between configure
7403 # scripts and configure runs. It is not useful on other systems.
7404 # If it contains results you don't want to keep, you may remove or edit it.
7406 # By default, configure uses ./config.cache as the cache file,
7407 # creating it if it does not exist already. You can give configure
7408 # the --cache-file=FILE option to use a different cache file; that is
7409 # what configure does when it calls configure scripts in
7410 # subdirectories, so they share the cache.
7411 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7412 # config.status only pays attention to the cache file if you give it the
7413 # --recheck option to rerun configure.
7416 # The following way of writing the cache mishandles newlines in values,
7417 # but we know of no workaround that is simple, portable, and efficient.
7418 # So, don't put newlines in cache variables' values.
7419 # Ultrix sh set writes to stderr and can't be redirected directly,
7420 # and sets the high bit in the cache file unless we assign to the vars.
7422 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7424 # `set' does not quote correctly, so add quotes (double-quote substitution
7425 # turns \\\\ into \\, and sed turns \\ into \).
7427 -e "s/'/'\\\\''/g" \
7428 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7431 # `set' quotes correctly as required by POSIX, so do not add quotes.
7432 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7435 if cmp -s $cache_file confcache
; then
7438 if test -w $cache_file; then
7439 echo "updating cache $cache_file"
7440 cat confcache
> $cache_file
7442 echo "not updating unwritable cache $cache_file"
7447 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7449 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7450 # Let make expand exec_prefix.
7451 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7453 # Any assignment to VPATH causes Sun make to only execute
7454 # the first set of double-colon rules, so remove it if not needed.
7455 # If there is a colon in the path, we need to keep it.
7456 if test "x$srcdir" = x.
; then
7457 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7460 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7462 # Transform confdefs.h into DEFS.
7463 # Protect against shell expansion while executing Makefile rules.
7464 # Protect against Makefile macro expansion.
7465 cat > conftest.defs
<<\EOF
7466 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7467 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7472 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
7476 # Without the "./", some shells look in PATH for config.status.
7477 : ${CONFIG_STATUS=./config.status}
7479 echo creating $CONFIG_STATUS
7480 rm -f $CONFIG_STATUS
7481 cat > $CONFIG_STATUS <<EOF
7483 # Generated automatically by configure.
7484 # Run this file to recreate the current configuration.
7485 # This directory was configured as follows,
7486 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
7488 # $0 $ac_configure_args
7490 # Compiler output produced by configure, useful for debugging
7491 # configure, is in ./config.log if it exists.
7493 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7496 case "\$ac_option" in
7497 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7498 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7499 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7500 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7501 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7503 -help | --help | --hel | --he | --h)
7504 echo "\$ac_cs_usage"; exit 0 ;;
7505 *) echo "\$ac_cs_usage"; exit 1 ;;
7509 ac_given_srcdir=$srcdir
7510 ac_given_INSTALL="$INSTALL"
7512 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7514 cat >> $CONFIG_STATUS <<EOF
7516 # Protect against being on the right side of a sed subst in config.status.
7517 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7518 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7522 s%@CFLAGS@%$CFLAGS%g
7523 s%@CPPFLAGS@%$CPPFLAGS%g
7524 s%@CXXFLAGS@%$CXXFLAGS%g
7525 s%@FFLAGS@%$FFLAGS%g
7527 s%@LDFLAGS@%$LDFLAGS%g
7529 s%@exec_prefix@%$exec_prefix%g
7530 s%@prefix@%$prefix%g
7531 s%@program_transform_name@%$program_transform_name%g
7532 s%@bindir@%$bindir%g
7533 s%@sbindir@%$sbindir%g
7534 s%@libexecdir@%$libexecdir%g
7535 s%@datadir@%$datadir%g
7536 s%@sysconfdir@%$sysconfdir%g
7537 s%@sharedstatedir@%$sharedstatedir%g
7538 s%@localstatedir@%$localstatedir%g
7539 s%@libdir@%$libdir%g
7540 s%@includedir@%$includedir%g
7541 s%@oldincludedir@%$oldincludedir%g
7542 s%@infodir@%$infodir%g
7543 s%@mandir@%$mandir%g
7545 s%@host_alias@%$host_alias%g
7546 s%@host_cpu@%$host_cpu%g
7547 s%@host_vendor@%$host_vendor%g
7548 s%@host_os@%$host_os%g
7549 s%@target@%$target%g
7550 s%@target_alias@%$target_alias%g
7551 s%@target_cpu@%$target_cpu%g
7552 s%@target_vendor@%$target_vendor%g
7553 s%@target_os@%$target_os%g
7555 s%@build_alias@%$build_alias%g
7556 s%@build_cpu@%$build_cpu%g
7557 s%@build_vendor@%$build_vendor%g
7558 s%@build_os@%$build_os%g
7559 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7560 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7561 s%@INSTALL_DATA@%$INSTALL_DATA%g
7564 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7565 s%@build_libsubdir@%$build_libsubdir%g
7566 s%@build_subdir@%$build_subdir%g
7567 s%@host_subdir@%$host_subdir%g
7568 s%@target_subdir@%$target_subdir%g
7570 s%@GNATBIND@%$GNATBIND%g
7571 s%@do_compare@%$do_compare%g
7572 s%@gmplibs@%$gmplibs%g
7573 s%@gmpinc@%$gmpinc%g
7574 s%@stage1_languages@%$stage1_languages%g
7575 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7576 /@serialization_dependencies@/r $serialization_dependencies
7577 s%@serialization_dependencies@%%g
7578 /@host_makefile_frag@/r $host_makefile_frag
7579 s%@host_makefile_frag@%%g
7580 /@target_makefile_frag@/r $target_makefile_frag
7581 s%@target_makefile_frag@%%g
7582 /@alphaieee_frag@/r $alphaieee_frag
7583 s%@alphaieee_frag@%%g
7584 /@ospace_frag@/r $ospace_frag
7586 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7587 s%@tooldir@%$tooldir%g
7588 s%@build_tooldir@%$build_tooldir%g
7589 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7590 s%@GDB_TK@%$GDB_TK%g
7591 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7592 s%@build_configargs@%$build_configargs%g
7593 s%@build_configdirs@%$build_configdirs%g
7594 s%@host_configargs@%$host_configargs%g
7595 s%@configdirs@%$configdirs%g
7596 s%@target_configargs@%$target_configargs%g
7597 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7598 s%@config_shell@%$config_shell%g
7604 s%@MAKEINFO@%$MAKEINFO%g
7605 s%@EXPECT@%$EXPECT%g
7606 s%@RUNTEST@%$RUNTEST%g
7609 s%@DLLTOOL@%$DLLTOOL%g
7613 s%@RANLIB@%$RANLIB%g
7615 s%@WINDRES@%$WINDRES%g
7616 s%@OBJCOPY@%$OBJCOPY%g
7617 s%@OBJDUMP@%$OBJDUMP%g
7619 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7620 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7621 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7622 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7623 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7624 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7625 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7626 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7627 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7628 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7629 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7630 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7631 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7632 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7633 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7634 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7635 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7636 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7637 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7638 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7639 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7640 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7641 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7643 s%@stage1_cflags@%$stage1_cflags%g
7644 s%@stage1_checking@%$stage1_checking%g
7645 s%@stage2_werror_flag@%$stage2_werror_flag%g
7646 s%@datarootdir@%$datarootdir%g
7647 s%@docdir@%$docdir%g
7648 s%@htmldir@%$htmldir%g
7653 cat >> $CONFIG_STATUS <<\EOF
7655 # Split the substitutions into bite-sized pieces for seds with
7656 # small command number limits, like on Digital OSF/1 and HP-UX.
7657 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7658 ac_file=1 # Number of current file.
7659 ac_beg=1 # First line for current file.
7660 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7663 while $ac_more_lines; do
7664 if test $ac_beg -gt 1; then
7665 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7667 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7669 if test ! -s conftest.s$ac_file; then
7671 rm -f conftest.s$ac_file
7673 if test -z "$ac_sed_cmds"; then
7674 ac_sed_cmds="sed -f conftest.s$ac_file"
7676 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7678 ac_file=`expr $ac_file + 1`
7680 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7683 if test -z "$ac_sed_cmds"; then
7688 cat >> $CONFIG_STATUS <<EOF
7690 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7692 cat >> $CONFIG_STATUS <<\EOF
7693 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7694 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7696 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
7697 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
7698 *) ac_file_in="${ac_file}.in" ;;
7701 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7703 # Remove last slash and all that follows it. Not all systems have dirname.
7704 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7705 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7706 # The file is in a subdirectory.
7707 test ! -d "$ac_dir" && mkdir "$ac_dir"
7708 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
7709 # A "../" for each directory in $ac_dir_suffix.
7710 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
7712 ac_dir_suffix= ac_dots=
7715 case "$ac_given_srcdir" in
7717 if test -z "$ac_dots"; then top_srcdir=.
7718 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
7719 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7721 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7722 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7725 case "$ac_given_INSTALL" in
7726 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7727 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7730 echo creating "$ac_file"
7732 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
7734 *Makefile*) ac_comsub="1i\\
7735 # $configure_input" ;;
7739 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7741 s%@configure_input@%$configure_input%g
7742 s%@srcdir@%$srcdir%g
7743 s%@top_srcdir@%$top_srcdir%g
7744 s%@INSTALL@%$INSTALL%g
7745 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7750 cat >> $CONFIG_STATUS <<EOF
7753 cat >> $CONFIG_STATUS <<\EOF
7757 chmod +x $CONFIG_STATUS
7758 rm -fr confdefs* $ac_clean_files
7759 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1