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-werror enable -Werror in bootstrap stage2 and later"
63 --with-datarootdir Use datarootdir as the data root directory."
65 --with-docdir Install documentation in this directory."
67 --with-htmldir Install html in this directory."
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
73 cache_file
=.
/config.cache
82 program_transform_name
=s
,x
,x
,
90 bindir
='${exec_prefix}/bin'
91 sbindir
='${exec_prefix}/sbin'
92 libexecdir
='${exec_prefix}/libexec'
93 datadir
='${prefix}/share'
94 sysconfdir
='${prefix}/etc'
95 sharedstatedir
='${prefix}/com'
96 localstatedir
='${prefix}/var'
97 libdir
='${exec_prefix}/lib'
98 includedir
='${prefix}/include'
99 oldincludedir
='/usr/include'
100 infodir
='${prefix}/info'
101 mandir
='${prefix}/man'
103 # Initialize some other variables.
106 SHELL
=${CONFIG_SHELL-/bin/sh}
107 # Maximum number of lines to put in a shell here document.
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
122 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 # Accept the important Cygnus configure options, so we can diagnose typos.
130 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
132 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
133 bindir
="$ac_optarg" ;;
135 -build |
--build |
--buil |
--bui |
--bu)
137 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
138 build
="$ac_optarg" ;;
140 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
141 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
142 ac_prev
=cache_file
;;
143 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
144 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
145 cache_file
="$ac_optarg" ;;
147 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
149 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
151 datadir
="$ac_optarg" ;;
153 -disable-* |
--disable-*)
154 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* |
--enable-*)
163 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
176 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
177 |
--exec |
--exe |
--ex)
178 ac_prev
=exec_prefix
;;
179 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
180 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
181 |
--exec=* |
--exe=* |
--ex=*)
182 exec_prefix
="$ac_optarg" ;;
184 -gas |
--gas |
--ga |
--g)
185 # Obsolete; use --with-gas.
188 -help |
--help |
--hel |
--he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200 Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230 Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
243 -host |
--host |
--hos |
--ho)
245 -host=* |
--host=* |
--hos=* |
--ho=*)
248 -includedir |
--includedir |
--includedi |
--included |
--include \
249 |
--includ |
--inclu |
--incl |
--inc)
250 ac_prev
=includedir
;;
251 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
252 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
253 includedir
="$ac_optarg" ;;
255 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
257 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
258 infodir
="$ac_optarg" ;;
260 -libdir |
--libdir |
--libdi |
--libd)
262 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
263 libdir
="$ac_optarg" ;;
265 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
266 |
--libexe |
--libex |
--libe)
267 ac_prev
=libexecdir
;;
268 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
269 |
--libexe=* |
--libex=* |
--libe=*)
270 libexecdir
="$ac_optarg" ;;
272 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
273 |
--localstate |
--localstat |
--localsta |
--localst \
274 |
--locals |
--local |
--loca |
--loc |
--lo)
275 ac_prev
=localstatedir
;;
276 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
277 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
278 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
279 localstatedir
="$ac_optarg" ;;
281 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
283 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
284 mandir
="$ac_optarg" ;;
287 # Obsolete; use --without-fp.
290 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
294 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
295 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
298 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
299 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
300 |
--oldin |
--oldi |
--old |
--ol |
--o)
301 ac_prev
=oldincludedir
;;
302 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
303 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
304 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
305 oldincludedir
="$ac_optarg" ;;
307 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
309 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
310 prefix
="$ac_optarg" ;;
312 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
313 |
--program-pre |
--program-pr |
--program-p)
314 ac_prev
=program_prefix
;;
315 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
316 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
317 program_prefix
="$ac_optarg" ;;
319 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
320 |
--program-suf |
--program-su |
--program-s)
321 ac_prev
=program_suffix
;;
322 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
323 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
324 program_suffix
="$ac_optarg" ;;
326 -program-transform-name |
--program-transform-name \
327 |
--program-transform-nam |
--program-transform-na \
328 |
--program-transform-n |
--program-transform- \
329 |
--program-transform |
--program-transfor \
330 |
--program-transfo |
--program-transf \
331 |
--program-trans |
--program-tran \
332 |
--progr-tra |
--program-tr |
--program-t)
333 ac_prev
=program_transform_name
;;
334 -program-transform-name=* |
--program-transform-name=* \
335 |
--program-transform-nam=* |
--program-transform-na=* \
336 |
--program-transform-n=* |
--program-transform-=* \
337 |
--program-transform=* |
--program-transfor=* \
338 |
--program-transfo=* |
--program-transf=* \
339 |
--program-trans=* |
--program-tran=* \
340 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
341 program_transform_name
="$ac_optarg" ;;
343 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
344 |
-silent |
--silent |
--silen |
--sile |
--sil)
347 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
349 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
351 sbindir
="$ac_optarg" ;;
353 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
354 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
355 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
357 ac_prev
=sharedstatedir
;;
358 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
359 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
360 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
362 sharedstatedir
="$ac_optarg" ;;
364 -site |
--site |
--sit)
366 -site=* |
--site=* |
--sit=*)
369 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
371 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
372 srcdir
="$ac_optarg" ;;
374 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
375 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
376 ac_prev
=sysconfdir
;;
377 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
378 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
379 sysconfdir
="$ac_optarg" ;;
381 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
383 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
384 target
="$ac_optarg" ;;
386 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
389 -version |
--version |
--versio |
--versi |
--vers)
390 echo "configure generated by autoconf version 2.13"
394 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package
=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* |
--without-*)
407 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package
=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
416 # Obsolete; use --with-x.
419 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
420 |
--x-incl |
--x-inc |
--x-in |
--x-i)
421 ac_prev
=x_includes
;;
422 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
423 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
424 x_includes
="$ac_optarg" ;;
426 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
427 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
428 ac_prev
=x_libraries
;;
429 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
430 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
431 x_libraries
="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE
; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
481 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
482 |
--no-cr |
--no-c) ;;
483 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
484 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
485 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest
* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file
=move-if-change
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted
=yes
513 # Try the directory containing this script, then its parent.
515 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
518 if test ! -r $srcdir/$ac_unique_file; then
522 ac_srcdir_defaulted
=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE
; then
536 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
538 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
541 for ac_site_file
in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
548 if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
552 echo "creating cache $cache_file"
557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558 ac_cpp
='$CPP $CPPFLAGS'
559 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561 cross_compiling
=$ac_cv_prog_cc_cross
565 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
574 ac_n
= ac_c
='\c' ac_t
=
580 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
581 if test -f $ac_dir/install-sh
; then
583 ac_install_sh
="$ac_aux_dir/install-sh -c"
585 elif test -f $ac_dir/install.sh
; then
587 ac_install_sh
="$ac_aux_dir/install.sh -c"
591 if test -z "$ac_aux_dir"; then
592 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
594 ac_config_guess
=$ac_aux_dir/config.guess
595 ac_config_sub
=$ac_aux_dir/config.sub
596 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
599 # Do some error checking and defaulting for the host and target type.
601 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
604 # 1. You are not allowed to specify --host, --target, and nonopt at the
606 # 2. Host defaults to nonopt.
607 # 3. If nonopt is not specified, then host defaults to the current host,
608 # as determined by config.guess.
609 # 4. Target and build default to nonopt.
610 # 5. If nonopt is not specified, then target and build default to host.
612 # The aliases save the names the user supplied, while $host etc.
613 # will get canonicalized.
614 case $host---$target---$nonopt in
615 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
616 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
620 # Make sure we can run config.sub.
621 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
622 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
625 echo $ac_n "checking host system type""... $ac_c" 1>&6
626 echo "configure:627: checking host system type" >&5
629 case "$host_alias" in
633 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
634 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
636 *) host_alias
=$nonopt ;;
640 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
641 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
642 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
643 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
644 echo "$ac_t""$host" 1>&6
646 echo $ac_n "checking target system type""... $ac_c" 1>&6
647 echo "configure:648: checking target system type" >&5
650 case "$target_alias" in
653 NONE
) target_alias
=$host_alias ;;
654 *) target_alias
=$nonopt ;;
658 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
659 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
660 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
661 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
662 echo "$ac_t""$target" 1>&6
664 echo $ac_n "checking build system type""... $ac_c" 1>&6
665 echo "configure:666: checking build system type" >&5
668 case "$build_alias" in
671 NONE
) build_alias
=$host_alias ;;
672 *) build_alias
=$nonopt ;;
676 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
677 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
678 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
679 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
680 echo "$ac_t""$build" 1>&6
682 test "$host_alias" != "$target_alias" &&
683 test "$program_prefix$program_suffix$program_transform_name" = \
685 program_prefix
=${target_alias}-
687 if test "$program_transform_name" = s
,x
,x
,; then
688 program_transform_name
=
690 # Double any \ or $. echo might interpret backslashes.
691 cat <<\EOF_SED
> conftestsed
692 s
,\\,\\\\,g
; s
,\$
,$$
,g
694 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
697 test "$program_prefix" != NONE
&&
698 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
699 # Use a double $ so make ignores it.
700 test "$program_suffix" != NONE
&&
701 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
703 # sed with no file args requires a program.
704 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
707 # Get 'install' or 'install-sh' and its variants.
708 # Find a good install program. We prefer a C program (faster),
709 # so one script is as good as another. But avoid the broken or
710 # incompatible versions:
711 # SysV /etc/install, /usr/sbin/install
712 # SunOS /usr/etc/install
715 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
716 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
717 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
718 # ./install, which can be erroneously created by make from ./install.sh.
719 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
720 echo "configure:721: checking for a BSD compatible install" >&5
721 if test -z "$INSTALL"; then
722 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
723 echo $ac_n "(cached) $ac_c" 1>&6
725 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
726 for ac_dir
in $PATH; do
727 # Account for people who put trailing slashes in PATH elements.
729 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
731 # OSF1 and SCO ODT 3.0 have their own names for install.
732 # Don't use installbsd from OSF since it installs stuff as root
734 for ac_prog
in ginstall scoinst
install; do
735 if test -f $ac_dir/$ac_prog; then
736 if test $ac_prog = install &&
737 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
738 # AIX install. It has an incompatible calling convention.
741 ac_cv_path_install
="$ac_dir/$ac_prog -c"
752 if test "${ac_cv_path_install+set}" = set; then
753 INSTALL
="$ac_cv_path_install"
755 # As a last resort, use the slow shell script. We don't cache a
756 # path for INSTALL within a source directory, because that will
757 # break other packages using the cache if that directory is
758 # removed, or if the path is relative.
759 INSTALL
="$ac_install_sh"
762 echo "$ac_t""$INSTALL" 1>&6
764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
765 # It thinks the first close brace ends the variable substitution.
766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
770 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
772 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
773 echo "configure:774: checking whether ln works" >&5
774 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
775 echo $ac_n "(cached) $ac_c" 1>&6
779 if ln conftestdata_f conftestdata_t
2>/dev
/null
785 rm -f conftestdata_f conftestdata_t
788 if test $acx_cv_prog_LN = no
; then
790 echo "$ac_t""no, using $LN" 1>&6
793 echo "$ac_t""yes" 1>&6
796 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
797 echo "configure:798: checking whether ln -s works" >&5
798 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
802 if ln -s X conftestdata
2>/dev
/null
805 ac_cv_prog_LN_S
="ln -s"
810 LN_S
="$ac_cv_prog_LN_S"
811 if test "$ac_cv_prog_LN_S" = "ln -s"; then
812 echo "$ac_t""yes" 1>&6
814 echo "$ac_t""no" 1>&6
818 ### we might need to use some other shell than /bin/sh for running subshells
819 ### If we are on Windows, search for the shell. This will permit people
820 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
821 ### without also having to set CONFIG_SHELL. This code will work when
822 ### using bash, which sets OSTYPE.
825 if test x
${CONFIG_SHELL} = x
; then
826 if test ! -f /bin
/sh
; then
827 if test x
${SHELL} != x
&& test -f ${SHELL} ; then
828 CONFIG_SHELL
=${SHELL}
831 for prog
in sh sh.exe bash bash.exe
; do
832 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
834 test -z "$dir" && dir
=.
835 if test -f $dir/$prog; then
836 CONFIG_SHELL
=$dir/$prog
842 test -n "${CONFIG_SHELL}" && break
850 config_shell
=${CONFIG_SHELL-/bin/sh}
853 # if PWD already has a value, it is probably wrong.
854 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
856 # Export original configure arguments for use by sub-configures. These
857 # will be expanded by make, so quote '$'.
859 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
862 TOPLEVEL_CONFIGURE_ARGUMENTS
=`cat conftestsed.out`
863 rm -f conftestsed.out
866 moveifchange
=${srcdir}/move-if-change
868 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
870 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
872 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
873 INSTALL
="${srcpwd}/install-sh -c"
876 # Set srcdir to "." if that's what it is.
877 # This is important for multilib support.
879 if test "${pwd}" = "${srcpwd}" ; then
887 ### To add a new directory to the tree, first choose whether it is a target
888 ### or a host dependent tool. Then put it into the appropriate list
889 ### (library or tools, host or target), doing a dependency sort.
891 # Subdirs will be configured in the order listed in build_configdirs,
892 # configdirs, or target_configdirs; see the serialization section below.
894 # Dependency sorting is only needed when *configuration* must be done in
895 # a particular order. In all cases a dependency should be specified in
896 # the Makefile, whether or not it's implicitly specified here.
898 # Double entries in build_configdirs, configdirs, or target_configdirs may
899 # cause circular dependencies and break everything horribly.
901 # these library is used by various programs built for the build
904 build_libs
="build-libiberty"
906 # these tools are built for the build environment
907 build_tools
="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
909 # these libraries are used by various programs built for the host environment
911 host_libs
="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
913 # these tools are built for the host environment
914 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
915 # know that we are building the simulator.
916 # binutils, gas and ld appear in that order because it makes sense to run
917 # "make check" in that particular order.
918 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"
920 # libgcj represents the runtime libraries only used by gcj.
921 libgcj
="target-libffi \
926 # these libraries are built for the target environment, and are built after
927 # the host libraries and the host tools (which may be a cross compiler)
929 target_libraries
="target-libiberty \
932 target-libstdc++-v3 \
942 # these tools are built using the target libraries, and are intended to
943 # run only in the target environment
945 # note: any program that *uses* libraries that are in the "target_libraries"
946 # list belongs in this list. those programs are also very likely
947 # candidates for the "native_only" list which follows
949 target_tools
="target-examples target-groff target-gperf target-rda"
951 ################################################################################
953 ## All tools belong in one of the four categories, and are assigned above
954 ## We assign ${configdirs} this way to remove all embedded newlines. This
955 ## is important because configure will choke if they ever get through.
956 ## ${configdirs} is directories we build using the host tools.
957 ## ${target_configdirs} is directories we build using the target tools.
958 configdirs
=`echo ${host_libs} ${host_tools}`
959 target_configdirs
=`echo ${target_libraries} ${target_tools}`
960 build_configdirs
=`echo ${build_libs} ${build_tools}`
962 ################################################################################
964 srcname
="gnu development package"
966 # This gets set non-empty for some net releases of packages.
969 # Define is_cross_compiler to save on calls to 'test'.
971 if test x
"${host}" = x
"${target}" ; then
974 is_cross_compiler
=yes
977 # Find the build and target subdir names.
978 case ${build_alias} in
979 "") build_noncanonical
=${build} ;;
980 *) build_noncanonical
=${build_alias} ;;
983 case ${host_alias} in
984 "") host_noncanonical
=${build_noncanonical} ;;
985 *) host_noncanonical
=${host_alias} ;;
988 case ${target_alias} in
989 "") target_noncanonical
=${host_noncanonical} ;;
990 *) target_noncanonical
=${target_alias} ;;
994 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
995 # have matching libraries, they should use host libraries: Makefile.tpl
996 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
997 # However, they still use the build modules, because the corresponding
998 # host modules (e.g. bison) are only built for the host when bootstrap
1000 # - build_subdir is where we find build modules, and never changes.
1001 # - build_libsubdir is where we find build libraries, and can be overridden.
1003 # Prefix 'build-' so this never conflicts with target_subdir.
1004 build_subdir
="build-${build_noncanonical}"
1005 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1006 if test "${with_build_libsubdir+set}" = set; then
1007 withval
="$with_build_libsubdir"
1008 build_libsubdir
="$withval"
1010 build_libsubdir
="$build_subdir"
1013 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1014 if ( test $srcdir = .
&& test -d gcc
) \
1015 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
1016 host_subdir
="host-${host_noncanonical}"
1021 target_subdir
=${target_noncanonical}
1024 # Skipdirs are removed silently.
1026 # Noconfigdirs are removed loudly.
1030 # Make sure we don't let GNU ld be added if we didn't want it.
1031 if test x
$with_gnu_ld = xno
; then
1033 noconfigdirs
="$noconfigdirs ld"
1037 # Make sure we don't let GNU as be added if we didn't want it.
1038 if test x
$with_gnu_as = xno
; then
1040 noconfigdirs
="$noconfigdirs gas"
1043 # some tools are so dependent upon X11 that if we're not building with X,
1044 # it's not even worth trying to configure, much less build, that tool.
1047 yes |
"") ;; # the default value for this tree is that X11 is available
1049 skipdirs
="${skipdirs} tk itcl libgui"
1050 # We won't be able to build gdbtk without X.
1053 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1056 # Some tools are only suitable for building in a "native" situation.
1057 # Remove these if host!=target.
1058 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"
1060 # Similarly, some are only suitable for cross toolchains.
1061 # Remove these if host=target.
1062 cross_only
="target-libgloss target-newlib target-opcodes"
1064 case $is_cross_compiler in
1065 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
1066 yes) skipdirs
="${skipdirs} ${native_only}" ;;
1069 # If both --with-headers and --with-libs are specified, default to
1071 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
1072 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
1073 if test x
"${with_newlib}" = x
; then
1078 # Recognize --with-newlib/--without-newlib.
1079 case ${with_newlib} in
1080 no
) skipdirs
="${skipdirs} target-newlib" ;;
1081 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1084 # Configure extra directories which are host specific
1088 configdirs
="$configdirs libtermcap" ;;
1091 # A target can indicate whether a language isn't supported for some reason.
1092 # Only spaces may be used in this macro; not newlines or tabs.
1093 unsupported_languages
=
1095 # Remove more programs from consideration, based on the host or
1096 # target this usually means that a port of the program doesn't
1101 noconfigdirs
="$noconfigdirs byacc"
1103 i
[3456789]86-*-vsta)
1104 noconfigdirs
="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1106 i
[3456789]86-*-go32* | i
[3456789]86-*-msdosdjgpp*)
1107 noconfigdirs
="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1109 i
[3456789]86-*-mingw32*)
1110 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1111 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1113 i
[3456789]86-*-beos*)
1114 noconfigdirs
="$noconfigdirs tk itcl libgui gdb"
1117 noconfigdirs
="$noconfigdirs autoconf automake send-pr rcs guile perl"
1120 noconfigdirs
="$noconfigdirs rcs"
1123 noconfigdirs
="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1126 noconfigdirs
="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1131 # Check whether --enable-libada or --disable-libada was given.
1132 if test "${enable_libada+set}" = set; then
1133 enableval
="$enable_libada"
1134 ENABLE_LIBADA
=$enableval
1139 if test "${ENABLE_LIBADA}" != "yes" ; then
1140 noconfigdirs
="$noconfigdirs gnattools"
1143 # Check whether --enable-libssp or --disable-libssp was given.
1144 if test "${enable_libssp+set}" = set; then
1145 enableval
="$enable_libssp"
1146 ENABLE_LIBSSP
=$enableval
1152 # Save it here so that, even in case of --enable-libgcj, if the Java
1153 # front-end isn't enabled, we still get libgcj disabled.
1154 libgcj_saved
=$libgcj
1155 case $enable_libgcj in
1157 # If we reset it here, it won't get added to noconfigdirs in the
1158 # target-specific build rules, so it will be forcibly enabled
1159 # (unless the Java language itself isn't enabled).
1163 # Make sure we get it printed in the list of not supported target libs.
1164 noconfigdirs
="$noconfigdirs ${libgcj}"
1169 # Disable libmudflap on some systems.
1170 if test x
$enable_libmudflap = x
; then
1172 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1173 # Enable libmudflap by default in GNU and friends.
1176 # Enable libmudflap by default in FreeBSD.
1179 # Disable it by default everywhere else.
1180 noconfigdirs
="$noconfigdirs target-libmudflap"
1185 # Disable libgomp on non POSIX hosted systems.
1186 if test x
$enable_libgomp = x
; then
1187 # Enable libgomp by default on hosted POSIX systems.
1189 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1191 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd*)
1193 *-*-solaris2* |
*-*-sysv4* |
*-*-irix6* |
*-*-osf* |
*-*-hpux11*)
1195 *-*-darwin* |
*-*-aix*)
1198 noconfigdirs
="$noconfigdirs target-libgomp"
1206 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1209 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1210 noconfigdirs
="$noconfigdirs sim target-rda"
1212 *-*-freebsd[12] |
*-*-freebsd[12].
* |
*-*-freebsd*aout
*)
1213 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1216 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1217 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
1218 && test -f /usr
/local
/include
/gmp.h
; then
1222 # Skip some stuff that's unsupported on some FreeBSD configurations.
1227 noconfigdirs
="$noconfigdirs ${libgcj}"
1232 # Remove unsupported stuff on all kaOS configurations.
1233 skipdirs
="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1234 skipdirs
="$skipdirs target-libobjc target-examples target-groff target-gperf"
1235 skipdirs
="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1236 noconfigdirs
="$noconfigdirs target-libgloss"
1239 # Skip some stuff on all NetBSD configurations.
1240 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss"
1242 # Skip some stuff that's unsupported on some NetBSD configurations.
1244 i
*86-*-netbsdelf*) ;;
1245 arm
*-*-netbsdelf*) ;;
1247 noconfigdirs
="$noconfigdirs ${libgcj}"
1252 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1255 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1257 # The tpf target doesn't support gdb yet.
1259 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1262 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1265 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1268 # ld works, but does not support shared libraries.
1269 # newlib is not 64 bit ready. I'm not sure about fileutils.
1270 # gas doesn't generate exception information.
1271 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1274 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1277 # newlib is not 64 bit ready
1278 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1281 # newlib is not 64 bit ready
1282 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1285 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1288 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1290 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
1291 noconfigdirs
="$noconfigdirs ${libgcj}"
1292 noconfigdirs
="$noconfigdirs target-examples"
1293 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
1294 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
1295 noconfigdirs
="$noconfigdirs expect dejagnu"
1296 # the C++ libraries don't build on top of CE's C libraries
1297 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1298 noconfigdirs
="$noconfigdirs target-newlib"
1300 *-*-cygwin*) ;; # keep gdb and readline
1301 *) noconfigdirs
="$noconfigdirs gdb readline"
1306 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1310 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
1311 noconfigdirs
="$noconfigdirs ${libgcj}"
1313 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf* | arm
*-*-eabi* )
1314 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1316 arm
*-*-linux-gnueabi)
1317 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1318 noconfigdirs
="$noconfigdirs target-libjava target-libobjc"
1321 noconfigdirs
="$noconfigdirs ${libgcj} target-libiberty"
1324 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1327 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1330 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1333 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1336 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1339 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1342 noconfigdirs
="$noconfigdirs gdb"
1343 if test x
${is_cross_compiler} != xno
; then
1344 target_configdirs
="${target_configdirs} target-bsp target-cygmon"
1347 c4x-
*-* | tic4x-
*-*)
1348 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1350 c54x
*-*-* | tic54x-
*-*)
1351 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1353 cris-
*-* | crisv32-
*-*)
1354 unsupported_languages
="$unsupported_languages java"
1357 unsupported_languages
="$unsupported_languages fortran"
1358 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc";;
1360 unsupported_languages
="$unsupported_languages fortran"
1361 noconfigdirs
="$noconfigdirs target-boehm-gc";;
1363 noconfigdirs
="$noconfigdirs target-newlib target-libgloss";;
1365 unsupported_languages
="$unsupported_languages fortran"
1366 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1370 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1373 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1376 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1379 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1382 noconfigdirs
="$noconfigdirs ${libgcj}"
1385 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1388 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1390 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
1392 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
1393 # In this case, it's because the hppa64-linux target is for
1394 # the kernel only at this point and has no libc, and thus no
1395 # headers, crt*.o, etc., all of which are needed by these.
1396 noconfigdirs
="$noconfigdirs target-zlib"
1398 parisc
*-*-linux* | hppa
*-*-linux*)
1402 hppa
*-*-openbsd* | \
1404 noconfigdirs
="$noconfigdirs ${libgcj}"
1407 noconfigdirs
="$noconfigdirs ld shellutils"
1410 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1411 # build on HP-UX 10.20.
1412 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
1415 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1418 # No gdb support yet.
1419 noconfigdirs
="$noconfigdirs readline mmalloc libgui itcl gdb"
1422 # No gdb or ld support yet.
1423 noconfigdirs
="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1427 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
1428 noconfigdirs
="$noconfigdirs ${libgcj}"
1430 i
[3456789]86-*-linux*)
1431 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1432 # not build java stuff by default.
1435 noconfigdirs
="$noconfigdirs ${libgcj}";;
1438 # This section makes it possible to build newlib natively on linux.
1439 # If we are using a cross compiler then don't configure newlib.
1440 if test x
${is_cross_compiler} != xno
; then
1441 noconfigdirs
="$noconfigdirs target-newlib"
1443 noconfigdirs
="$noconfigdirs target-libgloss"
1444 # If we are not using a cross compiler, do configure newlib.
1445 # Note however, that newlib will only be configured in this situation
1446 # if the --with-newlib option has been given, because otherwise
1447 # 'target-newlib' will appear in skipdirs.
1449 i
[3456789]86-*-mingw32*)
1450 target_configdirs
="$target_configdirs target-winsup"
1451 noconfigdirs
="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1454 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
1455 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1456 # always build newlib if winsup directory is present.
1457 if test -d "$srcdir/winsup/cygwin"; then
1458 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1459 elif test -d "$srcdir/newlib"; then
1460 echo "Warning: winsup/cygwin is missing so newlib can't be built."
1463 i
[3456789]86-moss-msdos | i
[3456789]86-*-moss* | \
1464 i
[3456789]86-*-uwin* | i
[3456789]86-*-interix* )
1467 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1469 i
[3456789]86-*-sco3.2v5
*)
1470 # The linker does not yet know about weak symbols in COFF,
1471 # and is not configured to handle mixed ELF and COFF.
1472 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1474 i
[3456789]86-*-sco*)
1475 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1477 i
[3456789]86-*-solaris2*)
1478 noconfigdirs
="$noconfigdirs target-libgloss"
1480 i
[3456789]86-*-sysv4*)
1481 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1483 i
[3456789]86-*-beos*)
1484 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1486 i
[3456789]86-*-rdos*)
1487 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1490 noconfigdirs
="$noconfigdirs ${libgcj}"
1492 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
1493 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1496 noconfigdirs
="$noconfigdirs ${libgcj}"
1499 noconfigdirs
="$noconfigdirs ${libgcj}"
1502 # The EPOC C++ environment does not support exceptions or rtti,
1503 # and so building libstdc++-v3 tends not to always work.
1504 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1507 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1508 unsupported_languages
="$unsupported_languages fortran java"
1511 noconfigdirs
="$noconfigdirs ${libgcj}"
1514 noconfigdirs
="$noconfigdirs ${libgcj}"
1517 noconfigdirs
="$noconfigdirs sim"
1520 # copied from rs6000-*-* entry
1521 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1523 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
1524 target_configdirs
="$target_configdirs target-winsup"
1525 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1526 # always build newlib.
1527 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1529 # This is temporary until we can link against shared libraries
1530 powerpcle-
*-solaris*)
1531 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1534 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1537 noconfigdirs
="$noconfigdirs ${libgcj}"
1539 powerpc-
*-eabi* | powerpcle-
*-eabi* | powerpc-
*-rtems* )
1542 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
1545 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1548 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1551 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1554 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1557 # Linking libjava exceeds command-line length limits on at least
1558 # IRIX 6.2, but not on IRIX 6.5.
1559 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1560 # <oldham@codesourcery.com>
1561 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1564 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1567 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1570 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1573 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1576 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1580 i
[3456789]86-*-vsta) ;; # don't add gprof back in
1581 i
[3456789]86-*-go32*) ;; # don't add gprof back in
1582 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1583 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1585 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1588 noconfigdirs
="$noconfigdirs ${libgcj}"
1591 noconfigdirs
="$noconfigdirs ${libgcj}"
1594 noconfigdirs
="$noconfigdirs ${libgcj}"
1597 noconfigdirs
="$noconfigdirs ${libgcj}"
1598 if test x
${is_cross_compiler} != xno
; then
1599 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1604 sparc-
*-solaris2.
[0-6] | sparc-
*-solaris2.
[0-6].
*)
1605 noconfigdirs
="$noconfigdirs ${libgcj}"
1607 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
1610 skipdirs
="target-libiberty target-libssp"
1613 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1616 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1619 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1622 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1625 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1628 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1631 noconfigdirs
="$noconfigdirs ${libgcj}"
1634 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1636 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1637 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1640 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1643 noconfigdirs
="$noconfigdirs ${libgcj}"
1647 # If we aren't building newlib, then don't build libgloss, since libgloss
1648 # depends upon some newlib header files.
1649 case "${noconfigdirs}" in
1650 *target-libgloss
*) ;;
1651 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
1654 # Work in distributions that contain no compiler tools, like Autoconf.
1656 host_makefile_frag
=/dev
/null
1657 if test -d ${srcdir}/config
; then
1660 # Avoid "too much defining" errors from HPUX compiler.
1661 tentative_cc
="cc -Wp,-H256000"
1662 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1663 # If it's HP/UX ar, this should be harmless.
1667 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1670 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1671 # chokes on bfd, the compiler won't let you assign integers to enums, and
1672 # other problems. Defining CC to gcc is a questionable way to say "don't use
1673 # the apollo compiler" (the preferred version of GCC could be called cc,
1674 # or whatever), but I'm not sure leaving CC as cc is any better...
1675 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1676 # Used to have BISON=yacc.
1680 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1683 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1684 tentative_cc
="cc -Xa"
1685 host_makefile_frag
="config/mh-cxux"
1687 m88k-motorola-sysv
*)
1690 tentative_cc
="cc -Wf,-XNg1000"
1691 host_makefile_frag
="config/mh-decstation"
1694 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1695 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
1696 host_makefile_frag
="config/mh-necv4"
1699 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1700 # environment. Also bump switch table size so that cp-parse will
1701 # compile. Bump string length limit so linker builds.
1702 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1705 host_makefile_frag
="config/mh-sysv4"
1708 # This is for a MIPS running RISC/os 4.52C.
1710 # This is needed for GDB, but needs to be in the top-level make because
1711 # if a library is compiled with the bsd headers and gets linked with the
1712 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1713 # a different size).
1714 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1715 # known except to select the sysv environment. Could we use /proc instead?
1716 # These "sysv environments" and "bsd environments" often end up being a pain.
1718 # This is not part of CFLAGS because perhaps not all C compilers have this
1720 tentative_cc
="cc -systype sysv"
1725 i
[3456789]86-*-sysv5*)
1726 host_makefile_frag
="config/mh-sysv5"
1728 i
[3456789]86-*-dgux*)
1729 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1730 host_makefile_frag
="config/mh-dgux386"
1732 i
[3456789]86-ncr-sysv4.3
*)
1733 # The MetaWare compiler will generate a copyright message unless you
1734 # turn it off by adding the -Hnocopyr flag.
1735 tentative_cc
="cc -Hnocopyr"
1737 i
[3456789]86-ncr-sysv4*)
1738 # for an NCR 3000 (i486/SVR4) system.
1739 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1740 # This compiler not only emits obnoxious copyright messages every time
1741 # you run it, but it chokes and dies on a whole bunch of GNU source
1742 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1743 tentative_cc
="/usr/ccs/ATT/cc"
1744 host_makefile_frag
="config/mh-ncr3000"
1746 i
[3456789]86-*-sco3.2v5
*)
1748 i
[3456789]86-*-sco*)
1749 # The native C compiler botches some simple uses of const. Unfortunately,
1750 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1751 tentative_cc
="cc -Dconst="
1752 host_makefile_frag
="config/mh-sco"
1754 i
[3456789]86-*-udk*)
1755 host_makefile_frag
="config/mh-sysv5"
1757 i
[3456789]86-*-solaris2*)
1758 host_makefile_frag
="config/mh-sysv4"
1760 i
[3456789]86-*-msdosdjgpp*)
1761 host_makefile_frag
="config/mh-djgpp"
1764 host_makefile_frag
="config/mh-cygwin"
1769 host_makefile_frag
="config/mh-interix"
1772 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1776 host_makefile_frag
="config/mh-solaris"
1779 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1780 # without overflowing the jump tables (-J says to use a 32 bit table)
1781 tentative_cc
="cc -J"
1784 tentative_cc
="cc -Wp,-H256000"
1787 tentative_cc
="cc -Wp,-H256000"
1790 # /bin/cc is less than useful for our purposes. Always use GCC
1791 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
1792 host_makefile_frag
="config/mh-lynxrs6k"
1795 host_makefile_frag
="config/mh-ppc-darwin"
1798 host_makefile_frag
="config/mh-ppc-aix"
1801 host_makefile_frag
="config/mh-ppc-aix"
1804 # /bin/cc is less than useful for our purposes. Always use GCC
1805 tentative_cc
="/bin/gcc"
1808 host_makefile_frag
="config/mh-sysv4"
1810 # This is placed last to prevent interfering with the cases above.
1812 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1813 host_makefile_frag
="config/mh-x86omitfp"
1818 # If we aren't going to be using gcc, see if we can extract a definition
1819 # of CC from the fragment.
1820 # Actually, use the 'pre-extracted' version above.
1821 if test -z "${CC}" && test "${build}" = "${host}" ; then
1822 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1824 for dir
in $PATH; do
1825 test -z "$dir" && dir
=.
1826 if test -f $dir/gcc
; then
1832 if test -z "${found}" && test -n "${tentative_cc}" ; then
1837 if test "${build}" != "${host}" ; then
1838 # If we are doing a Canadian Cross, in which the host and build systems
1839 # are not the same, we set reasonable default values for the tools.
1841 CC
=${CC-${host_alias}-gcc}
1842 CFLAGS
=${CFLAGS-"-g -O2"}
1843 CXX
=${CXX-${host_alias}-c++}
1844 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1845 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1848 # Set reasonable default values for some tools even if not Canadian.
1849 # Of course, these are different reasonable default values, originally
1850 # specified directly in the Makefile.
1851 # We don't export, so that autoconf can do its job.
1852 # Note that all these settings are above the fragment inclusion point
1853 # in Makefile.in, so can still be overridden by fragments.
1854 # This is all going to change when we autoconfiscate...
1856 CC_FOR_BUILD
="\$(CC)"
1857 # Extract the first word of "gcc", so it can be a program name with args.
1858 set dummy gcc
; ac_word
=$2
1859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1860 echo "configure:1861: checking for $ac_word" >&5
1861 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1864 if test -n "$CC"; then
1865 ac_cv_prog_CC
="$CC" # Let the user override the test.
1867 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1869 for ac_dir
in $ac_dummy; do
1870 test -z "$ac_dir" && ac_dir
=.
1871 if test -f $ac_dir/$ac_word; then
1880 if test -n "$CC"; then
1881 echo "$ac_t""$CC" 1>&6
1883 echo "$ac_t""no" 1>&6
1886 if test -z "$CC"; then
1887 # Extract the first word of "cc", so it can be a program name with args.
1888 set dummy cc
; ac_word
=$2
1889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1890 echo "configure:1891: checking for $ac_word" >&5
1891 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&6
1894 if test -n "$CC"; then
1895 ac_cv_prog_CC
="$CC" # Let the user override the test.
1897 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1900 for ac_dir
in $ac_dummy; do
1901 test -z "$ac_dir" && ac_dir
=.
1902 if test -f $ac_dir/$ac_word; then
1903 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1904 ac_prog_rejected
=yes
1912 if test $ac_prog_rejected = yes; then
1913 # We found a bogon in the path, so make sure we never use it.
1914 set dummy
$ac_cv_prog_CC
1916 if test $# -gt 0; then
1917 # We chose a different compiler from the bogus one.
1918 # However, it has the same basename, so the bogon will be chosen
1919 # first if we set CC to just the basename; use the full file name.
1921 set dummy
"$ac_dir/$ac_word" "$@"
1929 if test -n "$CC"; then
1930 echo "$ac_t""$CC" 1>&6
1932 echo "$ac_t""no" 1>&6
1935 if test -z "$CC"; then
1936 case "`uname -s`" in
1938 # Extract the first word of "cl", so it can be a program name with args.
1939 set dummy cl
; ac_word
=$2
1940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1941 echo "configure:1942: checking for $ac_word" >&5
1942 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1945 if test -n "$CC"; then
1946 ac_cv_prog_CC
="$CC" # Let the user override the test.
1948 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1950 for ac_dir
in $ac_dummy; do
1951 test -z "$ac_dir" && ac_dir
=.
1952 if test -f $ac_dir/$ac_word; then
1961 if test -n "$CC"; then
1962 echo "$ac_t""$CC" 1>&6
1964 echo "$ac_t""no" 1>&6
1969 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1972 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1973 echo "configure:1974: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1976 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1977 ac_cpp
='$CPP $CPPFLAGS'
1978 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1979 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1980 cross_compiling
=$ac_cv_prog_cc_cross
1982 cat > conftest.
$ac_ext << EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1989 if { (eval echo configure
:1990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1990 ac_cv_prog_cc_works
=yes
1991 # If we can't run a trivial program, we are probably using a cross compiler.
1992 if (.
/conftest
; exit) 2>/dev
/null
; then
1993 ac_cv_prog_cc_cross
=no
1995 ac_cv_prog_cc_cross
=yes
1998 echo "configure: failed program was:" >&5
1999 cat conftest.
$ac_ext >&5
2000 ac_cv_prog_cc_works
=no
2004 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2005 ac_cpp
='$CPP $CPPFLAGS'
2006 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2007 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2008 cross_compiling
=$ac_cv_prog_cc_cross
2010 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2011 if test $ac_cv_prog_cc_works = no
; then
2012 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2014 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2015 echo "configure:2016: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2016 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2017 cross_compiling
=$ac_cv_prog_cc_cross
2019 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2020 echo "configure:2021: checking whether we are using GNU C" >&5
2021 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2024 cat > conftest.c
<<EOF
2029 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2036 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2038 if test $ac_cv_prog_gcc = yes; then
2044 ac_test_CFLAGS
="${CFLAGS+set}"
2045 ac_save_CFLAGS
="$CFLAGS"
2047 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2048 echo "configure:2049: checking whether ${CC-cc} accepts -g" >&5
2049 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2052 echo 'void f(){}' > conftest.c
2053 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2062 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2063 if test "$ac_test_CFLAGS" = set; then
2064 CFLAGS
="$ac_save_CFLAGS"
2065 elif test $ac_cv_prog_cc_g = yes; then
2066 if test "$GCC" = yes; then
2072 if test "$GCC" = yes; then
2080 # We must set the default linker to the linker used by gcc for the correct
2081 # operation of libtool. If LD is not defined and we are using gcc, try to
2082 # set the LD default to the ld used by gcc.
2083 if test -z "$LD"; then
2084 if test "$GCC" = yes; then
2087 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2089 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
2091 case $gcc_prog_ld in
2092 # Accept absolute paths.
2093 [\\/]* |
[A-Za-z
]:[\\/]*)
2094 LD
="$gcc_prog_ld" ;;
2100 CFLAGS
=${CFLAGS-"-g"}
2101 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
2104 if test $host != $build; then
2105 ac_tool_prefix
=${host_alias}-
2112 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2113 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2115 echo "configure:2116: checking for $ac_word" >&5
2116 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2119 if test -n "$GNATBIND"; then
2120 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2122 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2124 for ac_dir
in $ac_dummy; do
2125 test -z "$ac_dir" && ac_dir
=.
2126 if test -f $ac_dir/$ac_word; then
2127 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2134 GNATBIND
="$ac_cv_prog_GNATBIND"
2135 if test -n "$GNATBIND"; then
2136 echo "$ac_t""$GNATBIND" 1>&6
2138 echo "$ac_t""no" 1>&6
2142 if test -z "$ac_cv_prog_GNATBIND"; then
2143 if test -n "$ac_tool_prefix"; then
2144 # Extract the first word of "gnatbind", so it can be a program name with args.
2145 set dummy gnatbind
; ac_word
=$2
2146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2147 echo "configure:2148: checking for $ac_word" >&5
2148 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2151 if test -n "$GNATBIND"; then
2152 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2154 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2156 for ac_dir
in $ac_dummy; do
2157 test -z "$ac_dir" && ac_dir
=.
2158 if test -f $ac_dir/$ac_word; then
2159 ac_cv_prog_GNATBIND
="gnatbind"
2164 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2167 GNATBIND
="$ac_cv_prog_GNATBIND"
2168 if test -n "$GNATBIND"; then
2169 echo "$ac_t""$GNATBIND" 1>&6
2171 echo "$ac_t""no" 1>&6
2179 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2180 echo "configure:2181: checking whether compiler driver understands Ada" >&5
2181 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 cat >conftest.adb
<<EOF
2185 procedure conftest is begin null; end conftest;
2187 acx_cv_cc_gcc_supports_ada
=no
2188 # There is a bug in old released versions of GCC which causes the
2189 # driver to exit successfully when the appropriate language module
2190 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2191 # Therefore we must check for the error message as well as an
2192 # unsuccessful exit.
2193 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2194 # given a .adb file, but produce no object file. So we must check
2195 # if an object file was really produced to guard against this.
2196 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2197 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
2198 acx_cv_cc_gcc_supports_ada
=yes
2203 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2205 if test x
$GNATBIND != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
2211 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2212 echo "configure:2213: checking how to compare bootstrapped objects" >&5
2213 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2218 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2219 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
2220 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
2223 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
2226 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2227 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2230 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
2237 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2238 do_compare
="$gcc_cv_prog_cmp_skip"
2242 # Check for GMP and MPFR
2246 # Specify a location for mpfr
2247 # check for this first so it ends up on the link line before gmp.
2248 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2249 if test "${with_mpfr_dir+set}" = set; then
2250 withval
="$with_mpfr_dir"
2251 { echo "configure: error: The --with-mpfr-dir=PATH option has been removed.
2252 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" 1>&2; exit 1; }
2256 # Check whether --with-mpfr or --without-mpfr was given.
2257 if test "${with_mpfr+set}" = set; then
2258 withval
="$with_mpfr"
2262 # Check whether --with-mpfr_include or --without-mpfr_include was given.
2263 if test "${with_mpfr_include+set}" = set; then
2264 withval
="$with_mpfr_include"
2268 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
2269 if test "${with_mpfr_lib+set}" = set; then
2270 withval
="$with_mpfr_lib"
2275 if test "x$with_mpfr" != x
; then
2276 gmplibs
="-L$with_mpfr/lib $gmplibs"
2277 gmpinc
="-I$with_mpfr/include"
2279 if test "x$with_mpfr_include" != x
; then
2280 gmpinc
="-I$with_mpfr_include"
2282 if test "x$with_mpfr_lib" != x
; then
2283 gmplibs
="-L$with_mpfr_lib $gmplibs"
2286 # Specify a location for gmp
2287 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2288 if test "${with_gmp_dir+set}" = set; then
2289 withval
="$with_gmp_dir"
2290 { echo "configure: error: The --with-gmp-dir=PATH option has been removed.
2291 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" 1>&2; exit 1; }
2295 gmplibs
="$gmplibs -lgmp"
2297 # Check whether --with-gmp or --without-gmp was given.
2298 if test "${with_gmp+set}" = set; then
2303 # Check whether --with-gmp_include or --without-gmp_include was given.
2304 if test "${with_gmp_include+set}" = set; then
2305 withval
="$with_gmp_include"
2309 # Check whether --with-gmp_lib or --without-gmp_lib was given.
2310 if test "${with_gmp_lib+set}" = set; then
2311 withval
="$with_gmp_lib"
2317 if test "x$with_gmp" != x
; then
2318 gmplibs
="-L$with_gmp/lib $gmplibs"
2319 gmpinc
="-I$with_gmp/include $gmpinc"
2321 if test "x$with_gmp_include" != x
; then
2322 gmpinc
="-I$with_gmp_include $gmpinc"
2324 if test "x$with_gmp_lib" != x
; then
2325 gmplibs
="-L$with_gmp_lib $gmplibs"
2328 saved_CFLAGS
="$CFLAGS"
2329 CFLAGS
="$CFLAGS $gmpinc"
2330 # Check GMP actually works
2331 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2332 echo "configure:2333: checking for correct version of gmp.h" >&5
2333 cat > conftest.
$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2339 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
2345 if { (eval echo configure
:2346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2347 echo "$ac_t""yes" 1>&6
2349 echo "configure: failed program was:" >&5
2350 cat conftest.
$ac_ext >&5
2352 echo "$ac_t""no" 1>&6; have_gmp
=no
2356 if test x
"$have_gmp" = xyes
; then
2358 LIBS
="$LIBS $gmplibs"
2359 echo $ac_n "checking for correct version of mpfr.h""... $ac_c" 1>&6
2360 echo "configure:2361: checking for correct version of mpfr.h" >&5
2361 cat > conftest.
$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2368 #if MPFR_VERSION_MAJOR < 2 || (MPFR_VERSION_MAJOR == 2 && MPFR_VERSION_MINOR < 2)
2371 mpfr_t n; mpfr_init(n);
2375 if { (eval echo configure
:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2377 echo "$ac_t""yes" 1>&6
2379 echo "configure: failed program was:" >&5
2380 cat conftest.
$ac_ext >&5
2382 echo "$ac_t""no" 1>&6; have_gmp
=no
2387 CFLAGS
="$saved_CFLAGS"
2389 if test -d ${srcdir}/gcc
&& test x
$have_gmp != xyes
; then
2390 { echo "configure: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
2391 Try the --with-gmp and/or --with-mpfr options to specify their locations.
2392 Copies of these libraries' source code can be found at their respective
2393 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
2394 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
2395 If you obtained GMP and/or MPFR from a vendor distribution package, make
2396 sure that you have installed both the libraries and the header files.
2397 They may be located in separate packages." 1>&2; exit 1; }
2400 # Flags needed for both GMP and/or MPFR
2404 # By default, C is the only stage 1 language.
2408 # Figure out what language subdirectories are present.
2409 # Look if the user specified --enable-languages="..."; if not, use
2410 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2412 # NB: embedded tabs in this IF block -- do not untabify
2413 if test -d ${srcdir}/gcc
; then
2414 if test x
"${enable_languages+set}" != xset
; then
2415 if test x
"${LANGUAGES+set}" = xset
; then
2416 enable_languages
="${LANGUAGES}"
2417 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
2419 enable_languages
=all
2422 if test x
"${enable_languages}" = x ||
2423 test x
"${enable_languages}" = xyes
;
2425 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
2429 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2431 # 'f95' is the old name for the 'fortran' language. We issue a warning
2432 # and make the substitution.
2433 case ,${enable_languages}, in
2435 echo configure.
in: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
2436 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2440 # First scan to see if an enabled language requires some other language.
2441 # We assume that a given config-lang.in will list all the language
2442 # front ends it requires, even if some are required indirectly.
2443 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2444 case ${lang_frag} in
2446 # The odd quoting in the next line works around
2447 # an apparent bug in bash 1.12 on linux.
2448 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2450 # From the config-lang.in, get $language, $lang_requires
2454 for other
in ${lang_requires} ; do
2455 case ,${enable_languages}, in
2459 echo " \`$other' language required by \`$language'; enabling" 1>&2
2460 enable_languages
="${enable_languages},${other}"
2468 new_enable_languages
=c
2469 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2470 potential_languages
=c
2472 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2473 case ${lang_frag} in
2475 # The odd quoting in the next line works around
2476 # an apparent bug in bash 1.12 on linux.
2477 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2479 # From the config-lang.in, get $language, $target_libs,
2480 # $lang_dirs, $boot_language, and $build_by_default
2488 potential_languages
="${potential_languages},${language}"
2489 # This is quite sensitive to the ordering of the case statement arms.
2490 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2492 echo "${lang_frag} doesn't set \$language." 1>&2
2496 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2499 *,${language},*:*:*:*)
2500 # Language was explicitly selected; include it.
2504 # 'all' was selected, but this is not a default language
2505 # so do not include it.
2509 # 'all' was selected and this is a default language; include it.
2517 # Disable languages that need other directories if these aren't available.
2518 for i
in $subdir_requires; do
2519 test -f "$srcdir/gcc/$i/config-lang.in" && continue
2520 case ,${enable_languages}, in
2522 # Specifically requested language; tell them.
2523 { echo "configure: error: The gcc/$i directory contains parts of $language but is missing" 1>&2; exit 1; }
2532 # Disable a language that is unsupported by the target.
2533 case " $unsupported_languages " in
2539 case $add_this_lang in
2541 # Remove language-dependent dirs.
2542 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2545 new_enable_languages
="$new_enable_languages,$language"
2546 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
2547 case ${boot_language} in
2549 # Add to (comma-separated) list of stage 1 languages.
2550 stage1_languages
="${stage1_languages},${language}"
2559 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2560 if test "x$missing_languages" != x
; then
2561 { echo "configure: error:
2562 The following requested languages could not be built: ${missing_languages}
2563 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2566 if test "x$new_enable_languages" != "x$enable_languages"; then
2567 echo The following languages will be built
: ${new_enable_languages}
2569 enable_languages
="$new_enable_languages"
2570 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2573 # Handle --disable-<component> generically.
2574 for dir
in $configdirs $build_configdirs $target_configdirs ; do
2575 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2576 if eval test x\
${enable_${dirname}} "=" xno
; then
2577 noconfigdirs
="$noconfigdirs $dir"
2581 # Check for Boehm's garbage collector
2582 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2583 if test "${enable_objc_gc+set}" = set; then
2584 enableval
="$enable_objc_gc"
2585 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
2586 *,objc
,*:*:yes:*target-boehm-gc
*)
2587 { echo "configure: error: Boehm's garbage collector was requested yet not supported in this configuration" 1>&2; exit 1; }
2593 # Make sure we only build Boehm's garbage collector if required.
2594 case ,${enable_languages},:${enable_objc_gc} in
2596 # Keep target-boehm-gc if requested for Objective-C.
2599 # Otherwise remove target-boehm-gc depending on target-libjava.
2600 if echo " ${noconfigdirs} " |
grep "target-libjava" >/dev
/null
2>&1; then
2601 noconfigdirs
="$noconfigdirs target-boehm-gc"
2606 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2607 # $build_configdirs and $target_configdirs.
2608 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2611 for dir
in .
$skipdirs $noconfigdirs ; do
2612 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2613 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2614 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2615 if test -r $srcdir/$dirname/configure
; then
2616 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2619 notsupp
="$notsupp $dir"
2623 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2624 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2625 if test -r $srcdir/$dirname/configure
; then
2626 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2629 notsupp
="$notsupp $dir"
2633 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2634 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2635 if test -r $srcdir/$dirname/configure
; then
2636 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2639 notsupp
="$notsupp $dir"
2645 # Sometimes the tools are distributed with libiberty but with no other
2646 # libraries. In that case, we don't want to build target-libiberty.
2647 if test -n "${target_configdirs}" ; then
2649 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2650 if test "$i" != "libiberty" ; then
2651 if test -r $srcdir/$i/configure
; then
2657 if test -z "${others}" ; then
2662 # Quietly strip out all directories which aren't configurable in this tree.
2663 # This relies on all configurable subdirectories being autoconfiscated, which
2665 build_configdirs_all
="$build_configdirs"
2667 for i
in ${build_configdirs_all} ; do
2668 j
=`echo $i | sed -e s/build-//g`
2669 if test -f ${srcdir}/$j/configure
; then
2670 build_configdirs
="${build_configdirs} $i"
2674 configdirs_all
="$configdirs"
2676 for i
in ${configdirs_all} ; do
2677 if test -f ${srcdir}/$i/configure
; then
2678 configdirs
="${configdirs} $i"
2682 target_configdirs_all
="$target_configdirs"
2684 for i
in ${target_configdirs_all} ; do
2685 j
=`echo $i | sed -e s/target-//g`
2686 if test -f ${srcdir}/$j/configure
; then
2687 target_configdirs
="${target_configdirs} $i"
2691 # Produce a warning message for the subdirs we can't configure.
2692 # This isn't especially interesting in the Cygnus tree, but in the individual
2693 # FSF releases, it's important to let people know when their machine isn't
2694 # supported by the one or two programs in a package.
2696 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2697 # If $appdirs is non-empty, at least one of those directories must still
2698 # be configured, or we error out. (E.g., if the gas release supports a
2699 # specified target in some subdirs but not the gas subdir, we shouldn't
2700 # pretend that all is well.)
2701 if test -n "$appdirs" ; then
2702 for dir
in $appdirs ; do
2703 if test -r $dir/Makefile.
in ; then
2704 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2708 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
2714 if test -n "$appdirs" ; then
2715 echo "*** This configuration is not supported by this package." 1>&2
2719 # Okay, some application will build, or we don't care to check. Still
2720 # notify of subdirs not getting built.
2721 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2722 echo " ${notsupp}" 1>&2
2723 echo " (Any other directories should still work fine.)" 1>&2
2733 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2734 if test "${with_build_sysroot+set}" = set; then
2735 withval
="$with_build_sysroot"
2736 if test x
"$withval" != x
; then
2737 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
2740 SYSROOT_CFLAGS_FOR_TARGET
=
2745 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2746 # the named directory are copied to $(tooldir)/sys-include.
2747 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
2748 if test x
${is_cross_compiler} = xno
; then
2749 echo 1>&2 '***' --with-headers is only supported when cross compiling
2752 if test x
"${with_headers}" != xyes
; then
2753 case "${exec_prefixoption}" in
2755 *) x
=${exec_prefix} ;;
2757 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2761 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2762 # the name directories are copied to $(tooldir)/lib. Multiple directories
2764 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2765 if test x
${is_cross_compiler} = xno
; then
2766 echo 1>&2 '***' --with-libs is only supported when cross compiling
2769 if test x
"${with_libs}" != xyes
; then
2770 # Copy the libraries in reverse order, so that files in the first named
2771 # library override files in subsequent libraries.
2772 case "${exec_prefixoption}" in
2774 *) x
=${exec_prefix} ;;
2776 for l
in ${with_libs}; do
2777 copy_dirs
="$l $x/${target_alias}/lib ${copy_dirs}"
2782 # Set with_gnu_as and with_gnu_ld as appropriate.
2784 # This is done by determining whether or not the appropriate directory
2785 # is available, and by checking whether or not specific configurations
2786 # have requested that this magic not happen.
2788 # The command line options always override the explicit settings in
2789 # configure.in, and the settings in configure.in override this magic.
2791 # If the default for a toolchain is to use GNU as and ld, and you don't
2792 # want to do that, then you should use the --without-gnu-as and
2793 # --without-gnu-ld options for the configure script.
2795 if test x
${use_gnu_as} = x
&&
2796 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
2798 extra_host_args
="$extra_host_args --with-gnu-as"
2801 if test x
${use_gnu_ld} = x
&&
2802 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
2804 extra_host_args
="$extra_host_args --with-gnu-ld"
2807 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2808 # can detect this case.
2810 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
2812 extra_host_args
="$extra_host_args --with-newlib"
2815 # Handle ${copy_dirs}
2816 set fnord
${copy_dirs}
2818 while test $# != 0 ; do
2819 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
2822 echo Copying
$1 to
$2
2824 # Use the install script to create the directory and all required
2825 # parent directories.
2826 if test -d $2 ; then
2830 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
2833 # Copy the directory, assuming we have tar.
2834 # FIXME: Should we use B in the second tar? Not all systems support it.
2835 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
2837 # It is the responsibility of the user to correctly adjust all
2838 # symlinks. If somebody can figure out how to handle them correctly
2839 # here, feel free to add the code.
2846 # Determine a target-dependent exec_prefix that the installed
2847 # gcc will search in. Keep this list sorted by triplet, with
2848 # the *-*-osname triplets last.
2852 md_exec_prefix
=/gnu
/lib
/gcc-lib
2854 i3456786-pc-msdosdjgpp
*)
2855 md_exec_prefix
=/dev
/env
/DJDIR
/bin
2857 i3456786-
*-sco3.2v5
*)
2858 if test $with_gnu_as = yes; then
2859 md_exec_prefix
=/usr
/gnu
/bin
2861 md_exec_prefix
=/usr
/ccs
/bin
/elf
2866 powerpc-
*-chorusos* | \
2867 powerpc
*-*-eabi* | \
2868 powerpc
*-*-sysv* | \
2869 powerpc
*-*-kaos* | \
2871 md_exec_prefix
=/usr
/ccs
/bin
2876 md_exec_prefix
=/usr
/ccs
/bin
2891 md_exec_prefix
=/usr
/ccs
/bin
2895 extra_arflags_for_target
=
2896 extra_nmflags_for_target
=
2897 extra_ranlibflags_for_target
=
2898 target_makefile_frag
=/dev
/null
2901 target_makefile_frag
="config/mt-netware"
2903 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
2904 target_makefile_frag
="config/mt-gnu"
2906 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
2907 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2908 # commands to handle both 32-bit and 64-bit objects. These flags are
2909 # harmless if we're using GNU nm or ar.
2910 extra_arflags_for_target
=" -X32_64"
2911 extra_nmflags_for_target
=" -B -X32_64"
2914 # ranlib from Darwin requires the -c flag to look at common symbols.
2915 extra_ranlibflags_for_target
=" -c"
2917 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
2918 target_makefile_frag
="config/mt-wince"
2922 alphaieee_frag
=/dev
/null
2925 # This just makes sure to use the -mieee option to build target libs.
2926 # This should probably be set individually by each library.
2927 alphaieee_frag
="config/mt-alphaieee"
2931 # If --enable-target-optspace always use -Os instead of -O2 to build
2932 # the target libraries, similarly if it is not specified, use -Os
2933 # on selected platforms.
2934 ospace_frag
=/dev
/null
2935 case "${enable_target_optspace}:${target}" in
2937 ospace_frag
="config/mt-ospace"
2940 ospace_frag
="config/mt-d30v"
2942 :m32r-
* |
:d10v-
* |
:fr30-
*)
2943 ospace_frag
="config/mt-ospace"
2948 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2952 # Default to using --with-stabs for certain targets.
2953 if test x
${with_stabs} = x
; then
2957 mips
*-*-* | alpha
*-*-osf*)
2959 extra_host_args
="${extra_host_args} --with-stabs"
2964 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2965 # them automatically.
2968 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2972 # Some systems (e.g., one of the i386-aix systems the gas testers are
2973 # using) don't handle "\$" correctly, so don't use it here.
2974 tooldir
='${exec_prefix}'/${target_alias}
2975 build_tooldir
=${tooldir}
2977 # Create a .gdbinit file which runs the one in srcdir
2978 # and tells GDB to look there for source files.
2980 if test -r ${srcdir}/.gdbinit
; then
2983 *) cat > .
/.gdbinit
<<EOF
2987 source ${srcdir}/.gdbinit
2993 # Make sure that the compiler is able to generate an executable. If it
2994 # can't, we are probably in trouble. We don't care whether we can run the
2995 # executable--we might be using a cross compiler--we only care whether it
2996 # can be created. At this point the main configure script has set CC.
2998 echo "int main () { return 0; }" > conftest.c
2999 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3000 if test $?
= 0 ; then
3001 if test -s conftest ||
test -s conftest.exe
; then
3007 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3008 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3015 # The Solaris /usr/ucb/cc compiler does not appear to work.
3017 sparc-sun-solaris2
*)
3018 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
3019 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3021 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
3022 if test -d /opt
/cygnus
/bin
; then
3023 if test "$could_use" = "" ; then
3024 could_use
="/opt/cygnus/bin"
3026 could_use
="$could_use or /opt/cygnus/bin"
3029 if test "$could_use" = "" ; then
3030 echo "Warning: compilation may fail because you're using"
3031 echo "/usr/ucb/cc. You should change your PATH or CC "
3032 echo "variable and rerun configure."
3034 echo "Warning: compilation may fail because you're using"
3035 echo "/usr/ucb/cc, when you should use the C compiler from"
3036 echo "$could_use. You should change your"
3037 echo "PATH or CC variable and rerun configure."
3044 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
3045 *-*-darwin* |
*-*-rhapsody* ) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
3046 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
3049 # Record target_configdirs and the configure arguments for target and
3050 # build configuration in Makefile.
3051 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3052 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3054 # Determine whether gdb needs tk/tcl or not.
3055 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3056 # and in that case we want gdb to be built without tk. Ugh!
3057 # In fact I believe gdb is the *only* package directly dependent on tk,
3058 # so we should be able to put the 'maybe's in unconditionally and
3059 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3060 # 100% sure that that's safe though.
3062 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3063 case "$enable_gdbtk" in
3067 GDB_TK
="${gdb_tk}" ;;
3069 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3070 # distro. Eventually someone will fix this and move Insight, nee
3071 # gdbtk to a separate directory.
3072 if test -d ${srcdir}/gdb
/gdbtk
; then
3079 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3080 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3082 # Strip out unwanted targets.
3084 # While at that, we remove Makefiles if we were started for recursive
3085 # configuration, so that the top-level Makefile reconfigures them,
3086 # like we used to do when configure itself was recursive.
3088 # Loop over modules. $extrasub must be used with care, limiting as
3089 # much as possible the usage of range addresses. That's because autoconf
3090 # splits the sed script to overcome limits in the number of commands,
3091 # and relying on carefully-timed sed passes may turn out to be very hard
3092 # to maintain later. In this particular case, you just have to be careful
3093 # not to nest @if/@endif pairs, because configure will not warn you at all.
3095 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3096 if test "${enable_bootstrap+set}" = set; then
3097 enableval
="$enable_bootstrap"
3100 enable_bootstrap
=default
3104 # Issue errors and warnings for invalid/strange bootstrap combinations.
3105 case "$configdirs" in
3106 *gcc
*) have_compiler
=yes ;;
3107 *) have_compiler
=no
;;
3110 case "$have_compiler:$host:$target:$enable_bootstrap" in
3113 # Default behavior. Enable bootstrap if we have a compiler
3114 # and we are in a native configuration.
3115 yes:$build:$build:default
)
3116 enable_bootstrap
=yes ;;
3119 enable_bootstrap
=no
;;
3121 # We have a compiler and we are in a native configuration, bootstrap is ok
3122 yes:$build:$build:yes)
3125 # Other configurations, but we have a compiler. Assume the user knows
3128 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3131 # No compiler: if they passed --enable-bootstrap explicitly, fail
3133 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3135 # Fail if wrong command line
3137 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3141 # Adjust the toplevel makefile according to whether bootstrap was selected.
3142 case "$enable_bootstrap" in
3144 bootstrap_suffix
=bootstrap
;;
3146 bootstrap_suffix
=no-bootstrap
;;
3149 for module
in ${build_configdirs} ; do
3150 if test -z "${no_recursion}" \
3151 && test -f ${build_subdir}/${module}/Makefile
; then
3152 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3153 rm -f ${build_subdir}/${module}/Makefile
3156 /^@if build-$module\$/d
3157 /^@endif build-$module\$/d
3158 /^@if build-$module-$bootstrap_suffix\$/d
3159 /^@endif build-$module-$bootstrap_suffix\$/d"
3161 for module
in ${configdirs} ; do
3162 if test -z "${no_recursion}"; then
3163 for file in stage
*-${module}/Makefile
${module}/Makefile
; do
3164 if test -f ${file}; then
3165 echo 1>&2 "*** removing ${file} to force reconfigure"
3172 /^@endif $module\$/d
3173 /^@if $module-$bootstrap_suffix\$/d
3174 /^@endif $module-$bootstrap_suffix\$/d"
3176 for module
in ${target_configdirs} ; do
3177 if test -z "${no_recursion}" \
3178 && test -f ${target_subdir}/${module}/Makefile
; then
3179 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3180 rm -f ${target_subdir}/${module}/Makefile
3183 /^@if target-$module\$/d
3184 /^@endif target-$module\$/d
3185 /^@if target-$module-$bootstrap_suffix\$/d
3186 /^@endif target-$module-$bootstrap_suffix\$/d"
3190 /^@if /,/^@endif /d"
3192 # Create the serialization dependencies. This uses a temporary file.
3194 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3195 if test "${enable_serial_configure+set}" = set; then
3196 enableval
="$enable_serial_configure"
3201 case ${enable_serial_configure} in
3203 enable_serial_build_configure
=yes
3204 enable_serial_host_configure
=yes
3205 enable_serial_target_configure
=yes
3209 # These force 'configure's to be done one at a time, to avoid problems
3210 # with contention over a shared config.cache.
3212 echo '# serdep.tmp' > serdep.tmp
3214 test "x${enable_serial_build_configure}" = xyes
&&
3215 for item
in ${build_configdirs} ; do
3218 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
3223 test "x${enable_serial_host_configure}" = xyes
&&
3224 for item
in ${configdirs} ; do
3227 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
3232 test "x${enable_serial_target_configure}" = xyes
&&
3233 for item
in ${target_configdirs} ; do
3236 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
3240 serialization_dependencies
=serdep.tmp
3243 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3244 # target and nonopt. These are the ones we might not want to pass
3245 # down to subconfigures. Also strip program-prefix, program-suffix,
3246 # and program-transform-name, so that we can pass down a consistent
3247 # program-transform-name. If autoconf has put single quotes around
3248 # any of these arguments (because they contain shell metacharacters)
3249 # then this will fail; in practice this only happens for
3250 # --program-transform-name, so be sure to override --program-transform-name
3251 # at the end of the argument list.
3252 # These will be expanded by make, so quote '$'.
3253 cat <<\EOF_SED
> conftestsed
3255 s
/ --c[a-z-
]*[= ][^
]*//g
3256 s
/ --sr[a-z-
]*[= ][^
]*//g
3257 s
/ --ho[a-z-
]*[= ][^
]*//g
3258 s
/ --bu[a-z-
]*[= ][^
]*//g
3259 s
/ --t[a-z-
]*[= ][^
]*//g
3260 s
/ --program-[pst
][a-z-
]*[= ][^
]*//g
3261 s
/ -cache-file[= ][^
]*//g
3262 s
/ -srcdir[= ][^
]*//g
3263 s
/ -host[= ][^
]*//g
3264 s
/ -build[= ][^
]*//g
3265 s
/ -target[= ][^
]*//g
3266 s
/ -program-prefix[= ][^
]*//g
3267 s
/ -program-suffix[= ][^
]*//g
3268 s
/ -program-transform-name[= ][^
]*//g
3273 sed -f conftestsed <<EOF_SED > conftestsed.out
3274 ${ac_configure_args}
3276 baseargs=`cat conftestsed.out`
3277 rm -f conftestsed conftestsed.out
3279 # Add in --program-transform-name, after --program-prefix and
3280 # --program-suffix have been applied to it. Autoconf has already
3281 # doubled dollar signs and backslashes in program_transform_name; we want
3282 # the backslashes un-doubled, and then the entire thing wrapped in single
3283 # quotes, because this will be expanded first by make and then by the shell.
3284 # Also, because we want to override the logic in subdir configure scripts to
3285 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3286 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3287 ${program_transform_name}
3289 gcc_transform_name=`cat conftestsed.out`
3290 rm -f conftestsed.out
3291 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3293 # For the build-side libraries, we just need to pretend we're native
,
3294 # and not use the same cache file. Multilibs are neither needed nor
3296 build_configargs
="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3298 # For host modules, accept cache file option, or specification as blank.
3299 case "${cache_file}" in
3301 cache_file_option
="" ;;
3302 /* |
[A-Za-z
]:[\\/]* ) # absolute path
3303 cache_file_option
="--cache-file=${cache_file}" ;;
3305 cache_file_option
="--cache-file=../${cache_file}" ;;
3308 # Host dirs don't like to share a cache file either, horribly enough.
3309 # This seems to be due to autoconf 2.5x stupidity.
3310 host_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3312 target_configargs
=${baseargs}
3314 # Passing a --with-cross-host argument lets the target libraries know
3315 # whether they are being built with a cross-compiler or being built
3316 # native. However, it would be better to use other mechanisms to make the
3317 # sorts of decisions they want to make on this basis. Please consider
3318 # this option to be deprecated. FIXME.
3319 if test x
${is_cross_compiler} = xyes
; then
3320 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3323 # Default to --enable-multilib.
3324 if test x
${enable_multilib} = x
; then
3325 target_configargs
="--enable-multilib ${target_configargs}"
3328 # Pass --with-newlib if appropriate. Note that target_configdirs has
3329 # changed from the earlier setting of with_newlib.
3330 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3331 target_configargs
="--with-newlib ${target_configargs}"
3334 # Different target subdirs use different values of certain variables
3335 # (notably CXX). Worse, multilibs use *lots* of different values.
3336 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3337 # it doesn't automatically accept command-line overrides of them.
3338 # This means it's not safe for target subdirs to share a cache file,
3339 # which is disgusting, but there you have it. Hopefully this can be
3340 # fixed in future. It's still worthwhile to use a cache file for each
3341 # directory. I think.
3343 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3344 # We need to pass --target, as newer autoconf's requires consistency
3345 # for target_alias and gcc doesn't manage it consistently.
3346 target_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3349 case " $target_configdirs " in
3351 case " $target_configargs " in
3352 *" --with-newlib "*)
3355 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' ;;
3358 # If we're not building GCC, don't discard standard headers.
3359 if test -d ${srcdir}/gcc
; then
3360 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3362 if test "${build}" != "${host}"; then
3363 # On Canadian crosses, CC_FOR_TARGET will have already been set
3364 # by `configure', so we won't have an opportunity to add -Bgcc/
3365 # to it. This is right: we don't want to search that directory
3366 # for binaries, but we want the header files in there, so add
3368 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3370 # Someone might think of using the pre-installed headers on
3371 # Canadian crosses, in case the installed compiler is not fully
3372 # compatible with the compiler being built. In this case, it
3373 # would be better to flag an error than risking having
3374 # incompatible object files being constructed. We can't
3375 # guarantee that an error will be flagged, but let's hope the
3376 # compiler will do it, when presented with incompatible header
3381 case "${target}-${is_cross_compiler}" in
3382 i
[3456789]86-*-linux*-no)
3383 # Here host == target, so we don't need to build gcc,
3384 # so we don't want to discard standard headers.
3385 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3388 # If we're building newlib, use its generic headers last, but search
3389 # for any libc-related directories first (so make it the last -B
3391 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3400 # Can't be handled as Cygwin above since Mingw does not use newlib.
3401 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' ;;
3404 # Allow the user to override the flags for
3405 # our build compiler if desired.
3406 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3408 # On Canadian crosses, we'll be searching the right directories for
3409 # the previously-installed cross compiler, so don't bother to add
3410 # flags for directories within the install tree of the compiler
3411 # being built; programs in there won't even run.
3412 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3413 # Search for pre-installed headers if nothing else fits.
3414 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3417 if test "x
${use_gnu_ld}" = x &&
3418 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3419 # Arrange for us to find uninstalled linker scripts.
3420 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3423 # Search for other target-specific linker scripts and such.
3426 if test -d ${srcdir}/libgloss/m32c; then
3427 # This is for crt0.o
3428 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3429 # This is for r8c.ld
3430 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3431 # This is for libnosys.a
3432 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3437 # Makefile fragments.
3438 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3440 eval fragval=\$$frag
3441 if test $fragval != /dev/null; then
3442 eval $frag=${srcdir}/$fragval
3450 # Miscellanea: directories, flags, etc.
3458 # Build module lists & subconfigure args.
3462 # Host module lists & subconfigure args.
3466 # Target module lists & subconfigure args.
3474 # Generate default definitions for YACC, M4, LEX and other programs that run
3475 # on the build machine. These are used if the Makefile can't locate these
3476 # programs in objdir.
3477 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3479 for ac_prog in 'bison -y' byacc yacc
3481 # Extract the first word of "$ac_prog", so it can be a program name with args.
3482 set dummy $ac_prog; ac_word=$2
3483 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3484 echo "configure
:3485: checking
for $ac_word" >&5
3485 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3486 echo $ac_n "(cached
) $ac_c" 1>&6
3488 if test -n "$YACC"; then
3489 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3493 for ac_dir in $ac_dummy; do
3494 test -z "$ac_dir" && ac_dir=.
3495 if test -f $ac_dir/$ac_word; then
3496 ac_cv_prog_YACC="$ac_prog"
3503 YACC="$ac_cv_prog_YACC"
3504 if test -n "$YACC"; then
3505 echo "$ac_t""$YACC" 1>&6
3507 echo "$ac_t""no
" 1>&6
3510 test -n "$YACC" && break
3512 test -n "$YACC" || YACC="$MISSING bison
-y"
3514 case " $build_configdirs " in
3515 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3516 *" byacc
"*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3519 for ac_prog in bison
3521 # Extract the first word of "$ac_prog", so it can be a program name with args.
3522 set dummy $ac_prog; ac_word=$2
3523 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3524 echo "configure
:3525: checking
for $ac_word" >&5
3525 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3526 echo $ac_n "(cached
) $ac_c" 1>&6
3528 if test -n "$BISON"; then
3529 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3533 for ac_dir in $ac_dummy; do
3534 test -z "$ac_dir" && ac_dir=.
3535 if test -f $ac_dir/$ac_word; then
3536 ac_cv_prog_BISON="$ac_prog"
3543 BISON="$ac_cv_prog_BISON"
3544 if test -n "$BISON"; then
3545 echo "$ac_t""$BISON" 1>&6
3547 echo "$ac_t""no
" 1>&6
3550 test -n "$BISON" && break
3552 test -n "$BISON" || BISON="$MISSING bison
"
3554 case " $build_configdirs " in
3555 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3558 for ac_prog in gm4 gnum4 m4
3560 # Extract the first word of "$ac_prog", so it can be a program name with args.
3561 set dummy $ac_prog; ac_word=$2
3562 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3563 echo "configure
:3564: checking
for $ac_word" >&5
3564 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3565 echo $ac_n "(cached
) $ac_c" 1>&6
3567 if test -n "$M4"; then
3568 ac_cv_prog_M4="$M4" # Let the user override the test.
3570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3572 for ac_dir in $ac_dummy; do
3573 test -z "$ac_dir" && ac_dir=.
3574 if test -f $ac_dir/$ac_word; then
3575 ac_cv_prog_M4="$ac_prog"
3583 if test -n "$M4"; then
3584 echo "$ac_t""$M4" 1>&6
3586 echo "$ac_t""no
" 1>&6
3589 test -n "$M4" && break
3591 test -n "$M4" || M4="$MISSING m4"
3593 case " $build_configdirs " in
3594 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3597 for ac_prog in flex lex
3599 # Extract the first word of "$ac_prog", so it can be a program name with args.
3600 set dummy $ac_prog; ac_word=$2
3601 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3602 echo "configure
:3603: checking
for $ac_word" >&5
3603 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3604 echo $ac_n "(cached
) $ac_c" 1>&6
3606 if test -n "$LEX"; then
3607 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3611 for ac_dir in $ac_dummy; do
3612 test -z "$ac_dir" && ac_dir=.
3613 if test -f $ac_dir/$ac_word; then
3614 ac_cv_prog_LEX="$ac_prog"
3621 LEX="$ac_cv_prog_LEX"
3622 if test -n "$LEX"; then
3623 echo "$ac_t""$LEX" 1>&6
3625 echo "$ac_t""no
" 1>&6
3628 test -n "$LEX" && break
3630 test -n "$LEX" || LEX="$MISSING flex
"
3632 case " $build_configdirs " in
3633 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3634 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3639 # Extract the first word of "$ac_prog", so it can be a program name with args.
3640 set dummy $ac_prog; ac_word=$2
3641 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3642 echo "configure
:3643: checking
for $ac_word" >&5
3643 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3644 echo $ac_n "(cached
) $ac_c" 1>&6
3646 if test -n "$FLEX"; then
3647 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3651 for ac_dir in $ac_dummy; do
3652 test -z "$ac_dir" && ac_dir=.
3653 if test -f $ac_dir/$ac_word; then
3654 ac_cv_prog_FLEX="$ac_prog"
3661 FLEX="$ac_cv_prog_FLEX"
3662 if test -n "$FLEX"; then
3663 echo "$ac_t""$FLEX" 1>&6
3665 echo "$ac_t""no
" 1>&6
3668 test -n "$FLEX" && break
3670 test -n "$FLEX" || FLEX="$MISSING flex
"
3672 case " $build_configdirs " in
3673 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3676 for ac_prog in makeinfo
3678 # Extract the first word of "$ac_prog", so it can be a program name with args.
3679 set dummy $ac_prog; ac_word=$2
3680 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3681 echo "configure
:3682: checking
for $ac_word" >&5
3682 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3683 echo $ac_n "(cached
) $ac_c" 1>&6
3685 if test -n "$MAKEINFO"; then
3686 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3690 for ac_dir in $ac_dummy; do
3691 test -z "$ac_dir" && ac_dir=.
3692 if test -f $ac_dir/$ac_word; then
3693 ac_cv_prog_MAKEINFO="$ac_prog"
3700 MAKEINFO="$ac_cv_prog_MAKEINFO"
3701 if test -n "$MAKEINFO"; then
3702 echo "$ac_t""$MAKEINFO" 1>&6
3704 echo "$ac_t""no
" 1>&6
3707 test -n "$MAKEINFO" && break
3709 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
3711 case " $build_configdirs " in
3712 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3715 # For an installed makeinfo, we require it to be from texinfo 4.4 or
3716 # higher, else we use the "missing
" dummy.
3717 if ${MAKEINFO} --version \
3718 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
3721 MAKEINFO="$MISSING makeinfo
"
3727 # FIXME: expect and dejagnu may become build tools?
3729 for ac_prog in expect
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3734 echo "configure
:3735: checking
for $ac_word" >&5
3735 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3736 echo $ac_n "(cached
) $ac_c" 1>&6
3738 if test -n "$EXPECT"; then
3739 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3743 for ac_dir in $ac_dummy; do
3744 test -z "$ac_dir" && ac_dir=.
3745 if test -f $ac_dir/$ac_word; then
3746 ac_cv_prog_EXPECT="$ac_prog"
3753 EXPECT="$ac_cv_prog_EXPECT"
3754 if test -n "$EXPECT"; then
3755 echo "$ac_t""$EXPECT" 1>&6
3757 echo "$ac_t""no
" 1>&6
3760 test -n "$EXPECT" && break
3762 test -n "$EXPECT" || EXPECT="expect
"
3764 case " $configdirs " in
3766 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3770 for ac_prog in runtest
3772 # Extract the first word of "$ac_prog", so it can be a program name with args.
3773 set dummy $ac_prog; ac_word=$2
3774 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3775 echo "configure
:3776: checking
for $ac_word" >&5
3776 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3777 echo $ac_n "(cached
) $ac_c" 1>&6
3779 if test -n "$RUNTEST"; then
3780 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3784 for ac_dir in $ac_dummy; do
3785 test -z "$ac_dir" && ac_dir=.
3786 if test -f $ac_dir/$ac_word; then
3787 ac_cv_prog_RUNTEST="$ac_prog"
3794 RUNTEST="$ac_cv_prog_RUNTEST"
3795 if test -n "$RUNTEST"; then
3796 echo "$ac_t""$RUNTEST" 1>&6
3798 echo "$ac_t""no
" 1>&6
3801 test -n "$RUNTEST" && break
3803 test -n "$RUNTEST" || RUNTEST="runtest
"
3805 case " $configdirs " in
3807 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
3814 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3815 ncn_target_tool_prefix=
3816 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3818 for ncn_progname in ar; do
3819 if test -n "$ncn_tool_prefix"; then
3820 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3821 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3822 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3823 echo "configure
:3824: checking
for $ac_word" >&5
3824 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3825 echo $ac_n "(cached
) $ac_c" 1>&6
3827 if test -n "$AR"; then
3828 ac_cv_prog_AR="$AR" # Let the user override the test.
3830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3832 for ac_dir in $ac_dummy; do
3833 test -z "$ac_dir" && ac_dir=.
3834 if test -f $ac_dir/$ac_word; then
3835 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3843 if test -n "$AR"; then
3844 echo "$ac_t""$AR" 1>&6
3846 echo "$ac_t""no
" 1>&6
3850 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3852 set dummy ${ncn_progname}; ac_word=$2
3853 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3854 echo "configure
:3855: checking
for $ac_word" >&5
3855 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3856 echo $ac_n "(cached
) $ac_c" 1>&6
3858 if test -n "$AR"; then
3859 ac_cv_prog_AR="$AR" # Let the user override the test.
3861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3863 for ac_dir in $ac_dummy; do
3864 test -z "$ac_dir" && ac_dir=.
3865 if test -f $ac_dir/$ac_word; then
3866 ac_cv_prog_AR="${ncn_progname}"
3874 if test -n "$AR"; then
3875 echo "$ac_t""$AR" 1>&6
3877 echo "$ac_t""no
" 1>&6
3881 test -n "$ac_cv_prog_AR" && break
3884 if test -z "$ac_cv_prog_AR" ; then
3886 if test $build = $host ; then
3889 AR="${ncn_tool_prefix}$2"
3893 for ncn_progname in as; do
3894 if test -n "$ncn_tool_prefix"; then
3895 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3896 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3897 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3898 echo "configure
:3899: checking
for $ac_word" >&5
3899 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3900 echo $ac_n "(cached
) $ac_c" 1>&6
3902 if test -n "$AS"; then
3903 ac_cv_prog_AS="$AS" # Let the user override the test.
3905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3907 for ac_dir in $ac_dummy; do
3908 test -z "$ac_dir" && ac_dir=.
3909 if test -f $ac_dir/$ac_word; then
3910 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3918 if test -n "$AS"; then
3919 echo "$ac_t""$AS" 1>&6
3921 echo "$ac_t""no
" 1>&6
3925 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3927 set dummy ${ncn_progname}; ac_word=$2
3928 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3929 echo "configure
:3930: checking
for $ac_word" >&5
3930 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3931 echo $ac_n "(cached
) $ac_c" 1>&6
3933 if test -n "$AS"; then
3934 ac_cv_prog_AS="$AS" # Let the user override the test.
3936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3938 for ac_dir in $ac_dummy; do
3939 test -z "$ac_dir" && ac_dir=.
3940 if test -f $ac_dir/$ac_word; then
3941 ac_cv_prog_AS="${ncn_progname}"
3949 if test -n "$AS"; then
3950 echo "$ac_t""$AS" 1>&6
3952 echo "$ac_t""no
" 1>&6
3956 test -n "$ac_cv_prog_AS" && break
3959 if test -z "$ac_cv_prog_AS" ; then
3961 if test $build = $host ; then
3964 AS="${ncn_tool_prefix}$2"
3968 for ncn_progname in dlltool; do
3969 if test -n "$ncn_tool_prefix"; then
3970 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3971 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3972 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3973 echo "configure
:3974: checking
for $ac_word" >&5
3974 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3975 echo $ac_n "(cached
) $ac_c" 1>&6
3977 if test -n "$DLLTOOL"; then
3978 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3982 for ac_dir in $ac_dummy; do
3983 test -z "$ac_dir" && ac_dir=.
3984 if test -f $ac_dir/$ac_word; then
3985 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3992 DLLTOOL="$ac_cv_prog_DLLTOOL"
3993 if test -n "$DLLTOOL"; then
3994 echo "$ac_t""$DLLTOOL" 1>&6
3996 echo "$ac_t""no
" 1>&6
4000 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
4001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4002 set dummy ${ncn_progname}; ac_word=$2
4003 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4004 echo "configure
:4005: checking
for $ac_word" >&5
4005 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
4006 echo $ac_n "(cached
) $ac_c" 1>&6
4008 if test -n "$DLLTOOL"; then
4009 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4013 for ac_dir in $ac_dummy; do
4014 test -z "$ac_dir" && ac_dir=.
4015 if test -f $ac_dir/$ac_word; then
4016 ac_cv_prog_DLLTOOL="${ncn_progname}"
4023 DLLTOOL="$ac_cv_prog_DLLTOOL"
4024 if test -n "$DLLTOOL"; then
4025 echo "$ac_t""$DLLTOOL" 1>&6
4027 echo "$ac_t""no
" 1>&6
4031 test -n "$ac_cv_prog_DLLTOOL" && break
4034 if test -z "$ac_cv_prog_DLLTOOL" ; then
4036 if test $build = $host ; then
4039 DLLTOOL="${ncn_tool_prefix}$2"
4043 for ncn_progname in ld; do
4044 if test -n "$ncn_tool_prefix"; then
4045 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4046 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4047 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4048 echo "configure
:4049: checking
for $ac_word" >&5
4049 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4050 echo $ac_n "(cached
) $ac_c" 1>&6
4052 if test -n "$LD"; then
4053 ac_cv_prog_LD="$LD" # Let the user override the test.
4055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4057 for ac_dir in $ac_dummy; do
4058 test -z "$ac_dir" && ac_dir=.
4059 if test -f $ac_dir/$ac_word; then
4060 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
4068 if test -n "$LD"; then
4069 echo "$ac_t""$LD" 1>&6
4071 echo "$ac_t""no
" 1>&6
4075 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4077 set dummy ${ncn_progname}; ac_word=$2
4078 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4079 echo "configure
:4080: checking
for $ac_word" >&5
4080 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4081 echo $ac_n "(cached
) $ac_c" 1>&6
4083 if test -n "$LD"; then
4084 ac_cv_prog_LD="$LD" # Let the user override the test.
4086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4088 for ac_dir in $ac_dummy; do
4089 test -z "$ac_dir" && ac_dir=.
4090 if test -f $ac_dir/$ac_word; then
4091 ac_cv_prog_LD="${ncn_progname}"
4099 if test -n "$LD"; then
4100 echo "$ac_t""$LD" 1>&6
4102 echo "$ac_t""no
" 1>&6
4106 test -n "$ac_cv_prog_LD" && break
4109 if test -z "$ac_cv_prog_LD" ; then
4111 if test $build = $host ; then
4114 LD="${ncn_tool_prefix}$2"
4118 for ncn_progname in lipo; do
4119 if test -n "$ncn_tool_prefix"; then
4120 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4121 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4122 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4123 echo "configure
:4124: checking
for $ac_word" >&5
4124 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4125 echo $ac_n "(cached
) $ac_c" 1>&6
4127 if test -n "$LIPO"; then
4128 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4132 for ac_dir in $ac_dummy; do
4133 test -z "$ac_dir" && ac_dir=.
4134 if test -f $ac_dir/$ac_word; then
4135 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4142 LIPO="$ac_cv_prog_LIPO"
4143 if test -n "$LIPO"; then
4144 echo "$ac_t""$LIPO" 1>&6
4146 echo "$ac_t""no
" 1>&6
4150 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4152 set dummy ${ncn_progname}; ac_word=$2
4153 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4154 echo "configure
:4155: checking
for $ac_word" >&5
4155 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4156 echo $ac_n "(cached
) $ac_c" 1>&6
4158 if test -n "$LIPO"; then
4159 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4163 for ac_dir in $ac_dummy; do
4164 test -z "$ac_dir" && ac_dir=.
4165 if test -f $ac_dir/$ac_word; then
4166 ac_cv_prog_LIPO="${ncn_progname}"
4173 LIPO="$ac_cv_prog_LIPO"
4174 if test -n "$LIPO"; then
4175 echo "$ac_t""$LIPO" 1>&6
4177 echo "$ac_t""no
" 1>&6
4181 test -n "$ac_cv_prog_LIPO" && break
4184 if test -z "$ac_cv_prog_LIPO" ; then
4186 if test $build = $host ; then
4189 LIPO="${ncn_tool_prefix}$2"
4193 for ncn_progname in nm; do
4194 if test -n "$ncn_tool_prefix"; then
4195 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4196 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4197 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4198 echo "configure
:4199: checking
for $ac_word" >&5
4199 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4200 echo $ac_n "(cached
) $ac_c" 1>&6
4202 if test -n "$NM"; then
4203 ac_cv_prog_NM="$NM" # Let the user override the test.
4205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4207 for ac_dir in $ac_dummy; do
4208 test -z "$ac_dir" && ac_dir=.
4209 if test -f $ac_dir/$ac_word; then
4210 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4218 if test -n "$NM"; then
4219 echo "$ac_t""$NM" 1>&6
4221 echo "$ac_t""no
" 1>&6
4225 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4227 set dummy ${ncn_progname}; ac_word=$2
4228 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4229 echo "configure
:4230: checking
for $ac_word" >&5
4230 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4231 echo $ac_n "(cached
) $ac_c" 1>&6
4233 if test -n "$NM"; then
4234 ac_cv_prog_NM="$NM" # Let the user override the test.
4236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4238 for ac_dir in $ac_dummy; do
4239 test -z "$ac_dir" && ac_dir=.
4240 if test -f $ac_dir/$ac_word; then
4241 ac_cv_prog_NM="${ncn_progname}"
4249 if test -n "$NM"; then
4250 echo "$ac_t""$NM" 1>&6
4252 echo "$ac_t""no
" 1>&6
4256 test -n "$ac_cv_prog_NM" && break
4259 if test -z "$ac_cv_prog_NM" ; then
4261 if test $build = $host ; then
4264 NM="${ncn_tool_prefix}$2"
4268 for ncn_progname in ranlib; do
4269 if test -n "$ncn_tool_prefix"; then
4270 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4271 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4272 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4273 echo "configure
:4274: checking
for $ac_word" >&5
4274 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4275 echo $ac_n "(cached
) $ac_c" 1>&6
4277 if test -n "$RANLIB"; then
4278 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4282 for ac_dir in $ac_dummy; do
4283 test -z "$ac_dir" && ac_dir=.
4284 if test -f $ac_dir/$ac_word; then
4285 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4292 RANLIB="$ac_cv_prog_RANLIB"
4293 if test -n "$RANLIB"; then
4294 echo "$ac_t""$RANLIB" 1>&6
4296 echo "$ac_t""no
" 1>&6
4300 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4302 set dummy ${ncn_progname}; ac_word=$2
4303 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4304 echo "configure
:4305: checking
for $ac_word" >&5
4305 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4306 echo $ac_n "(cached
) $ac_c" 1>&6
4308 if test -n "$RANLIB"; then
4309 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4313 for ac_dir in $ac_dummy; do
4314 test -z "$ac_dir" && ac_dir=.
4315 if test -f $ac_dir/$ac_word; then
4316 ac_cv_prog_RANLIB="${ncn_progname}"
4323 RANLIB="$ac_cv_prog_RANLIB"
4324 if test -n "$RANLIB"; then
4325 echo "$ac_t""$RANLIB" 1>&6
4327 echo "$ac_t""no
" 1>&6
4331 test -n "$ac_cv_prog_RANLIB" && break
4334 if test -z "$ac_cv_prog_RANLIB" ; then
4338 for ncn_progname in strip; do
4339 if test -n "$ncn_tool_prefix"; then
4340 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4341 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4342 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4343 echo "configure
:4344: checking
for $ac_word" >&5
4344 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4345 echo $ac_n "(cached
) $ac_c" 1>&6
4347 if test -n "$STRIP"; then
4348 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4352 for ac_dir in $ac_dummy; do
4353 test -z "$ac_dir" && ac_dir=.
4354 if test -f $ac_dir/$ac_word; then
4355 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4362 STRIP="$ac_cv_prog_STRIP"
4363 if test -n "$STRIP"; then
4364 echo "$ac_t""$STRIP" 1>&6
4366 echo "$ac_t""no
" 1>&6
4370 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4372 set dummy ${ncn_progname}; ac_word=$2
4373 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4374 echo "configure
:4375: checking
for $ac_word" >&5
4375 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4376 echo $ac_n "(cached
) $ac_c" 1>&6
4378 if test -n "$STRIP"; then
4379 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4383 for ac_dir in $ac_dummy; do
4384 test -z "$ac_dir" && ac_dir=.
4385 if test -f $ac_dir/$ac_word; then
4386 ac_cv_prog_STRIP="${ncn_progname}"
4393 STRIP="$ac_cv_prog_STRIP"
4394 if test -n "$STRIP"; then
4395 echo "$ac_t""$STRIP" 1>&6
4397 echo "$ac_t""no
" 1>&6
4401 test -n "$ac_cv_prog_STRIP" && break
4404 if test -z "$ac_cv_prog_STRIP" ; then
4408 for ncn_progname in windres; do
4409 if test -n "$ncn_tool_prefix"; then
4410 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4411 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4412 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4413 echo "configure
:4414: checking
for $ac_word" >&5
4414 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4415 echo $ac_n "(cached
) $ac_c" 1>&6
4417 if test -n "$WINDRES"; then
4418 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4422 for ac_dir in $ac_dummy; do
4423 test -z "$ac_dir" && ac_dir=.
4424 if test -f $ac_dir/$ac_word; then
4425 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4432 WINDRES="$ac_cv_prog_WINDRES"
4433 if test -n "$WINDRES"; then
4434 echo "$ac_t""$WINDRES" 1>&6
4436 echo "$ac_t""no
" 1>&6
4440 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4442 set dummy ${ncn_progname}; ac_word=$2
4443 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4444 echo "configure
:4445: checking
for $ac_word" >&5
4445 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4446 echo $ac_n "(cached
) $ac_c" 1>&6
4448 if test -n "$WINDRES"; then
4449 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4453 for ac_dir in $ac_dummy; do
4454 test -z "$ac_dir" && ac_dir=.
4455 if test -f $ac_dir/$ac_word; then
4456 ac_cv_prog_WINDRES="${ncn_progname}"
4463 WINDRES="$ac_cv_prog_WINDRES"
4464 if test -n "$WINDRES"; then
4465 echo "$ac_t""$WINDRES" 1>&6
4467 echo "$ac_t""no
" 1>&6
4471 test -n "$ac_cv_prog_WINDRES" && break
4474 if test -z "$ac_cv_prog_WINDRES" ; then
4476 if test $build = $host ; then
4479 WINDRES="${ncn_tool_prefix}$2"
4483 for ncn_progname in objcopy; do
4484 if test -n "$ncn_tool_prefix"; then
4485 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4486 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4487 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4488 echo "configure
:4489: checking
for $ac_word" >&5
4489 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4490 echo $ac_n "(cached
) $ac_c" 1>&6
4492 if test -n "$OBJCOPY"; then
4493 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4497 for ac_dir in $ac_dummy; do
4498 test -z "$ac_dir" && ac_dir=.
4499 if test -f $ac_dir/$ac_word; then
4500 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4507 OBJCOPY="$ac_cv_prog_OBJCOPY"
4508 if test -n "$OBJCOPY"; then
4509 echo "$ac_t""$OBJCOPY" 1>&6
4511 echo "$ac_t""no
" 1>&6
4515 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4517 set dummy ${ncn_progname}; ac_word=$2
4518 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4519 echo "configure
:4520: checking
for $ac_word" >&5
4520 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4521 echo $ac_n "(cached
) $ac_c" 1>&6
4523 if test -n "$OBJCOPY"; then
4524 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4526 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4528 for ac_dir in $ac_dummy; do
4529 test -z "$ac_dir" && ac_dir=.
4530 if test -f $ac_dir/$ac_word; then
4531 ac_cv_prog_OBJCOPY="${ncn_progname}"
4538 OBJCOPY="$ac_cv_prog_OBJCOPY"
4539 if test -n "$OBJCOPY"; then
4540 echo "$ac_t""$OBJCOPY" 1>&6
4542 echo "$ac_t""no
" 1>&6
4546 test -n "$ac_cv_prog_OBJCOPY" && break
4549 if test -z "$ac_cv_prog_OBJCOPY" ; then
4551 if test $build = $host ; then
4554 OBJCOPY="${ncn_tool_prefix}$2"
4558 for ncn_progname in objdump; do
4559 if test -n "$ncn_tool_prefix"; then
4560 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4561 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4562 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4563 echo "configure
:4564: checking
for $ac_word" >&5
4564 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4565 echo $ac_n "(cached
) $ac_c" 1>&6
4567 if test -n "$OBJDUMP"; then
4568 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4572 for ac_dir in $ac_dummy; do
4573 test -z "$ac_dir" && ac_dir=.
4574 if test -f $ac_dir/$ac_word; then
4575 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4582 OBJDUMP="$ac_cv_prog_OBJDUMP"
4583 if test -n "$OBJDUMP"; then
4584 echo "$ac_t""$OBJDUMP" 1>&6
4586 echo "$ac_t""no
" 1>&6
4590 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4592 set dummy ${ncn_progname}; ac_word=$2
4593 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4594 echo "configure
:4595: checking
for $ac_word" >&5
4595 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4596 echo $ac_n "(cached
) $ac_c" 1>&6
4598 if test -n "$OBJDUMP"; then
4599 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4603 for ac_dir in $ac_dummy; do
4604 test -z "$ac_dir" && ac_dir=.
4605 if test -f $ac_dir/$ac_word; then
4606 ac_cv_prog_OBJDUMP="${ncn_progname}"
4613 OBJDUMP="$ac_cv_prog_OBJDUMP"
4614 if test -n "$OBJDUMP"; then
4615 echo "$ac_t""$OBJDUMP" 1>&6
4617 echo "$ac_t""no
" 1>&6
4621 test -n "$ac_cv_prog_OBJDUMP" && break
4624 if test -z "$ac_cv_prog_OBJDUMP" ; then
4626 if test $build = $host ; then
4629 OBJDUMP="${ncn_tool_prefix}$2"
4640 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4641 if test "${with_build_time_tools+set}" = set; then
4642 withval="$with_build_time_tools"
4646 with_build_time_tools=
4647 echo "configure
: warning
: argument to
--with-build-time-tools must be an absolute path
" 1>&2
4651 with_build_time_tools=
4655 if test -n "$with_build_time_tools"; then
4656 for ncn_progname in cc gcc; do
4657 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4658 echo "configure
:4659: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4659 if test -x $with_build_time_tools/${ncn_progname}; then
4660 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4661 echo "$ac_t""yes" 1>&6
4664 echo "$ac_t""no
" 1>&6
4669 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4670 for ncn_progname in cc gcc; do
4671 if test -n "$ncn_target_tool_prefix"; then
4672 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4673 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4674 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4675 echo "configure
:4676: checking
for $ac_word" >&5
4676 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4677 echo $ac_n "(cached
) $ac_c" 1>&6
4679 if test -n "$CC_FOR_TARGET"; then
4680 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4684 for ac_dir in $ac_dummy; do
4685 test -z "$ac_dir" && ac_dir=.
4686 if test -f $ac_dir/$ac_word; then
4687 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4694 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4695 if test -n "$CC_FOR_TARGET"; then
4696 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4698 echo "$ac_t""no
" 1>&6
4702 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4704 set dummy ${ncn_progname}; ac_word=$2
4705 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4706 echo "configure
:4707: checking
for $ac_word" >&5
4707 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4708 echo $ac_n "(cached
) $ac_c" 1>&6
4710 if test -n "$CC_FOR_TARGET"; then
4711 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4715 for ac_dir in $ac_dummy; do
4716 test -z "$ac_dir" && ac_dir=.
4717 if test -f $ac_dir/$ac_word; then
4718 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4725 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4726 if test -n "$CC_FOR_TARGET"; then
4727 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4729 echo "$ac_t""no
" 1>&6
4733 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4737 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4739 if test $build = $target ; then
4742 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4746 if test -n "$with_build_time_tools"; then
4747 for ncn_progname in c++ g++ cxx gxx; do
4748 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4749 echo "configure
:4750: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4750 if test -x $with_build_time_tools/${ncn_progname}; then
4751 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4752 echo "$ac_t""yes" 1>&6
4755 echo "$ac_t""no
" 1>&6
4760 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4761 for ncn_progname in c++ g++ cxx gxx; do
4762 if test -n "$ncn_target_tool_prefix"; then
4763 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4764 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4765 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4766 echo "configure
:4767: checking
for $ac_word" >&5
4767 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4768 echo $ac_n "(cached
) $ac_c" 1>&6
4770 if test -n "$CXX_FOR_TARGET"; then
4771 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4775 for ac_dir in $ac_dummy; do
4776 test -z "$ac_dir" && ac_dir=.
4777 if test -f $ac_dir/$ac_word; then
4778 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4785 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4786 if test -n "$CXX_FOR_TARGET"; then
4787 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4789 echo "$ac_t""no
" 1>&6
4793 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4795 set dummy ${ncn_progname}; ac_word=$2
4796 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4797 echo "configure
:4798: checking
for $ac_word" >&5
4798 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4799 echo $ac_n "(cached
) $ac_c" 1>&6
4801 if test -n "$CXX_FOR_TARGET"; then
4802 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4806 for ac_dir in $ac_dummy; do
4807 test -z "$ac_dir" && ac_dir=.
4808 if test -f $ac_dir/$ac_word; then
4809 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4816 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4817 if test -n "$CXX_FOR_TARGET"; then
4818 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4820 echo "$ac_t""no
" 1>&6
4824 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4828 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4829 set dummy c++ g++ cxx gxx
4830 if test $build = $target ; then
4833 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4837 if test -n "$with_build_time_tools"; then
4838 for ncn_progname in gcc; do
4839 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4840 echo "configure
:4841: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4841 if test -x $with_build_time_tools/${ncn_progname}; then
4842 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4843 echo "$ac_t""yes" 1>&6
4846 echo "$ac_t""no
" 1>&6
4851 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4852 for ncn_progname in gcc; do
4853 if test -n "$ncn_target_tool_prefix"; then
4854 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4855 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4856 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4857 echo "configure
:4858: checking
for $ac_word" >&5
4858 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4859 echo $ac_n "(cached
) $ac_c" 1>&6
4861 if test -n "$GCC_FOR_TARGET"; then
4862 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4866 for ac_dir in $ac_dummy; do
4867 test -z "$ac_dir" && ac_dir=.
4868 if test -f $ac_dir/$ac_word; then
4869 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4876 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4877 if test -n "$GCC_FOR_TARGET"; then
4878 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4880 echo "$ac_t""no
" 1>&6
4884 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4886 set dummy ${ncn_progname}; ac_word=$2
4887 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4888 echo "configure
:4889: checking
for $ac_word" >&5
4889 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4890 echo $ac_n "(cached
) $ac_c" 1>&6
4892 if test -n "$GCC_FOR_TARGET"; then
4893 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4897 for ac_dir in $ac_dummy; do
4898 test -z "$ac_dir" && ac_dir=.
4899 if test -f $ac_dir/$ac_word; then
4900 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4907 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4908 if test -n "$GCC_FOR_TARGET"; then
4909 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4911 echo "$ac_t""no
" 1>&6
4915 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4919 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4920 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4923 if test -n "$with_build_time_tools"; then
4924 for ncn_progname in gcj; do
4925 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4926 echo "configure
:4927: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4927 if test -x $with_build_time_tools/${ncn_progname}; then
4928 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4929 echo "$ac_t""yes" 1>&6
4932 echo "$ac_t""no
" 1>&6
4937 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4938 for ncn_progname in gcj; do
4939 if test -n "$ncn_target_tool_prefix"; then
4940 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4941 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4942 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4943 echo "configure
:4944: checking
for $ac_word" >&5
4944 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4945 echo $ac_n "(cached
) $ac_c" 1>&6
4947 if test -n "$GCJ_FOR_TARGET"; then
4948 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4952 for ac_dir in $ac_dummy; do
4953 test -z "$ac_dir" && ac_dir=.
4954 if test -f $ac_dir/$ac_word; then
4955 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4962 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4963 if test -n "$GCJ_FOR_TARGET"; then
4964 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4966 echo "$ac_t""no
" 1>&6
4970 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4972 set dummy ${ncn_progname}; ac_word=$2
4973 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4974 echo "configure
:4975: checking
for $ac_word" >&5
4975 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4976 echo $ac_n "(cached
) $ac_c" 1>&6
4978 if test -n "$GCJ_FOR_TARGET"; then
4979 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4983 for ac_dir in $ac_dummy; do
4984 test -z "$ac_dir" && ac_dir=.
4985 if test -f $ac_dir/$ac_word; then
4986 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4993 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4994 if test -n "$GCJ_FOR_TARGET"; then
4995 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4997 echo "$ac_t""no
" 1>&6
5001 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
5005 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
5007 if test $build = $target ; then
5010 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
5014 if test -n "$with_build_time_tools"; then
5015 for ncn_progname in gfortran; do
5016 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
5017 echo "configure
:5018: checking
for ${ncn_progname} in $with_build_time_tools" >&5
5018 if test -x $with_build_time_tools/${ncn_progname}; then
5019 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5020 echo "$ac_t""yes" 1>&6
5023 echo "$ac_t""no
" 1>&6
5028 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
5029 for ncn_progname in gfortran; do
5030 if test -n "$ncn_target_tool_prefix"; then
5031 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5032 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5033 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5034 echo "configure
:5035: checking
for $ac_word" >&5
5035 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5036 echo $ac_n "(cached
) $ac_c" 1>&6
5038 if test -n "$GFORTRAN_FOR_TARGET"; then
5039 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5043 for ac_dir in $ac_dummy; do
5044 test -z "$ac_dir" && ac_dir=.
5045 if test -f $ac_dir/$ac_word; then
5046 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5053 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5054 if test -n "$GFORTRAN_FOR_TARGET"; then
5055 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5057 echo "$ac_t""no
" 1>&6
5061 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
5062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5063 set dummy ${ncn_progname}; ac_word=$2
5064 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5065 echo "configure
:5066: checking
for $ac_word" >&5
5066 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5067 echo $ac_n "(cached
) $ac_c" 1>&6
5069 if test -n "$GFORTRAN_FOR_TARGET"; then
5070 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5074 for ac_dir in $ac_dummy; do
5075 test -z "$ac_dir" && ac_dir=.
5076 if test -f $ac_dir/$ac_word; then
5077 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5084 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5085 if test -n "$GFORTRAN_FOR_TARGET"; then
5086 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5088 echo "$ac_t""no
" 1>&6
5092 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5096 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5098 if test $build = $target ; then
5099 GFORTRAN_FOR_TARGET="$2"
5101 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5107 # The user is always right.
5108 if test "${PATH_SEPARATOR+set}" != set; then
5109 echo "#! /bin/sh" >conf$$.sh
5110 echo "exit 0" >>conf$$.sh
5112 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5122 if test "x$exec_prefix" = xNONE
; then
5123 if test "x$prefix" = xNONE
; then
5124 gcc_cv_tool_prefix
=$ac_default_prefix
5126 gcc_cv_tool_prefix
=$prefix
5129 gcc_cv_tool_prefix
=$exec_prefix
5132 # If there is no compiler in the tree, use the PATH only. In any
5133 # case, if there is no compiler in the tree nobody should use
5134 # AS_FOR_TARGET and LD_FOR_TARGET.
5135 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
5136 gcc_version
=`cat $srcdir/gcc/BASE-VER`
5137 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5138 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5139 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5140 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5141 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5142 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5147 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
5148 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5153 cat > conftest.c
<< \EOF
5158 if ($GCC_FOR_TARGET -E conftest.c |
grep gcc_yay
) > /dev
/null
2>&1; then
5159 have_gcc_for_target
=yes
5161 GCC_FOR_TARGET
=${ncn_target_tool_prefix}gcc
5162 have_gcc_for_target
=no
5169 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5170 if test -n "$with_build_time_tools"; then
5171 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5172 echo "configure:5173: checking for ar in $with_build_time_tools" >&5
5173 if test -x $with_build_time_tools/ar; then
5174 AR_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ar
5175 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5176 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5178 echo "$ac_t""no" 1>&6
5180 elif test $build != $host && test $have_gcc_for_target = yes; then
5181 AR_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ar`
5182 test $AR_FOR_TARGET=ar && AR_FOR_TARGET
=
5183 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5186 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5187 # Extract the first word of "ar", so it can be a program name with args.
5188 set dummy
ar; ac_word
=$2
5189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5190 echo "configure:5191: checking for $ac_word" >&5
5191 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5192 echo $ac_n "(cached) $ac_c" 1>&6
5194 case "$AR_FOR_TARGET" in
5196 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a path.
5199 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5202 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5203 ac_dummy
="$gcc_cv_tool_dirs"
5204 for ac_dir
in $ac_dummy; do
5205 test -z "$ac_dir" && ac_dir
=.
5206 if test -f $ac_dir/$ac_word; then
5207 ac_cv_path_AR_FOR_TARGET
="$ac_dir/$ac_word"
5215 AR_FOR_TARGET
="$ac_cv_path_AR_FOR_TARGET"
5216 if test -n "$AR_FOR_TARGET"; then
5217 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5219 echo "$ac_t""no" 1>&6
5223 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5224 if test -n "$with_build_time_tools"; then
5225 for ncn_progname
in ar; do
5226 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5227 echo "configure:5228: checking for ${ncn_progname} in $with_build_time_tools" >&5
5228 if test -x $with_build_time_tools/${ncn_progname}; then
5229 ac_cv_prog_AR_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5230 echo "$ac_t""yes" 1>&6
5233 echo "$ac_t""no" 1>&6
5238 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5239 for ncn_progname
in ar; do
5240 if test -n "$ncn_target_tool_prefix"; then
5241 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5242 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5243 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5244 echo "configure:5245: checking for $ac_word" >&5
5245 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5246 echo $ac_n "(cached) $ac_c" 1>&6
5248 if test -n "$AR_FOR_TARGET"; then
5249 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5251 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5253 for ac_dir
in $ac_dummy; do
5254 test -z "$ac_dir" && ac_dir
=.
5255 if test -f $ac_dir/$ac_word; then
5256 ac_cv_prog_AR_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5263 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5264 if test -n "$AR_FOR_TARGET"; then
5265 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5267 echo "$ac_t""no" 1>&6
5271 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5273 set dummy
${ncn_progname}; ac_word
=$2
5274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5275 echo "configure:5276: checking for $ac_word" >&5
5276 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5277 echo $ac_n "(cached) $ac_c" 1>&6
5279 if test -n "$AR_FOR_TARGET"; then
5280 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5282 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5284 for ac_dir
in $ac_dummy; do
5285 test -z "$ac_dir" && ac_dir
=.
5286 if test -f $ac_dir/$ac_word; then
5287 ac_cv_prog_AR_FOR_TARGET
="${ncn_progname}"
5294 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5295 if test -n "$AR_FOR_TARGET"; then
5296 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5298 echo "$ac_t""no" 1>&6
5302 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5306 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5308 if test $build = $target ; then
5311 AR_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5316 AR_FOR_TARGET
=$ac_cv_path_AR_FOR_TARGET
5322 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5323 if test -n "$with_build_time_tools"; then
5324 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5325 echo "configure:5326: checking for as in $with_build_time_tools" >&5
5326 if test -x $with_build_time_tools/as
; then
5327 AS_FOR_TARGET
=`cd $with_build_time_tools && pwd`/as
5328 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5329 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5331 echo "$ac_t""no" 1>&6
5333 elif test $build != $host && test $have_gcc_for_target = yes; then
5334 AS_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=as`
5335 test $AS_FOR_TARGET=as
&& AS_FOR_TARGET
=
5336 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5339 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5340 # Extract the first word of "as", so it can be a program name with args.
5341 set dummy as
; ac_word
=$2
5342 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5343 echo "configure:5344: checking for $ac_word" >&5
5344 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5345 echo $ac_n "(cached) $ac_c" 1>&6
5347 case "$AS_FOR_TARGET" in
5349 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a path.
5352 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5355 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5356 ac_dummy
="$gcc_cv_tool_dirs"
5357 for ac_dir
in $ac_dummy; do
5358 test -z "$ac_dir" && ac_dir
=.
5359 if test -f $ac_dir/$ac_word; then
5360 ac_cv_path_AS_FOR_TARGET
="$ac_dir/$ac_word"
5368 AS_FOR_TARGET
="$ac_cv_path_AS_FOR_TARGET"
5369 if test -n "$AS_FOR_TARGET"; then
5370 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5372 echo "$ac_t""no" 1>&6
5376 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5377 if test -n "$with_build_time_tools"; then
5378 for ncn_progname
in as
; do
5379 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5380 echo "configure:5381: checking for ${ncn_progname} in $with_build_time_tools" >&5
5381 if test -x $with_build_time_tools/${ncn_progname}; then
5382 ac_cv_prog_AS_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5383 echo "$ac_t""yes" 1>&6
5386 echo "$ac_t""no" 1>&6
5391 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5392 for ncn_progname
in as
; do
5393 if test -n "$ncn_target_tool_prefix"; then
5394 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5395 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5396 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5397 echo "configure:5398: checking for $ac_word" >&5
5398 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5399 echo $ac_n "(cached) $ac_c" 1>&6
5401 if test -n "$AS_FOR_TARGET"; then
5402 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5404 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5406 for ac_dir
in $ac_dummy; do
5407 test -z "$ac_dir" && ac_dir
=.
5408 if test -f $ac_dir/$ac_word; then
5409 ac_cv_prog_AS_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5416 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5417 if test -n "$AS_FOR_TARGET"; then
5418 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5420 echo "$ac_t""no" 1>&6
5424 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5426 set dummy
${ncn_progname}; ac_word
=$2
5427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5428 echo "configure:5429: checking for $ac_word" >&5
5429 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5430 echo $ac_n "(cached) $ac_c" 1>&6
5432 if test -n "$AS_FOR_TARGET"; then
5433 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5435 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5437 for ac_dir
in $ac_dummy; do
5438 test -z "$ac_dir" && ac_dir
=.
5439 if test -f $ac_dir/$ac_word; then
5440 ac_cv_prog_AS_FOR_TARGET
="${ncn_progname}"
5447 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5448 if test -n "$AS_FOR_TARGET"; then
5449 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5451 echo "$ac_t""no" 1>&6
5455 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5459 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5461 if test $build = $target ; then
5464 AS_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5469 AS_FOR_TARGET
=$ac_cv_path_AS_FOR_TARGET
5475 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5476 if test -n "$with_build_time_tools"; then
5477 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5478 echo "configure:5479: checking for dlltool in $with_build_time_tools" >&5
5479 if test -x $with_build_time_tools/dlltool
; then
5480 DLLTOOL_FOR_TARGET
=`cd $with_build_time_tools && pwd`/dlltool
5481 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5482 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5484 echo "$ac_t""no" 1>&6
5486 elif test $build != $host && test $have_gcc_for_target = yes; then
5487 DLLTOOL_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5488 test $DLLTOOL_FOR_TARGET=dlltool
&& DLLTOOL_FOR_TARGET
=
5489 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5492 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5493 # Extract the first word of "dlltool", so it can be a program name with args.
5494 set dummy dlltool
; ac_word
=$2
5495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5496 echo "configure:5497: checking for $ac_word" >&5
5497 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5498 echo $ac_n "(cached) $ac_c" 1>&6
5500 case "$DLLTOOL_FOR_TARGET" in
5502 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5505 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5508 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5509 ac_dummy
="$gcc_cv_tool_dirs"
5510 for ac_dir
in $ac_dummy; do
5511 test -z "$ac_dir" && ac_dir
=.
5512 if test -f $ac_dir/$ac_word; then
5513 ac_cv_path_DLLTOOL_FOR_TARGET
="$ac_dir/$ac_word"
5521 DLLTOOL_FOR_TARGET
="$ac_cv_path_DLLTOOL_FOR_TARGET"
5522 if test -n "$DLLTOOL_FOR_TARGET"; then
5523 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5525 echo "$ac_t""no" 1>&6
5529 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5530 if test -n "$with_build_time_tools"; then
5531 for ncn_progname
in dlltool
; do
5532 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5533 echo "configure:5534: checking for ${ncn_progname} in $with_build_time_tools" >&5
5534 if test -x $with_build_time_tools/${ncn_progname}; then
5535 ac_cv_prog_DLLTOOL_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5536 echo "$ac_t""yes" 1>&6
5539 echo "$ac_t""no" 1>&6
5544 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5545 for ncn_progname
in dlltool
; do
5546 if test -n "$ncn_target_tool_prefix"; then
5547 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5548 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5549 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5550 echo "configure:5551: checking for $ac_word" >&5
5551 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5552 echo $ac_n "(cached) $ac_c" 1>&6
5554 if test -n "$DLLTOOL_FOR_TARGET"; then
5555 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5557 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5559 for ac_dir
in $ac_dummy; do
5560 test -z "$ac_dir" && ac_dir
=.
5561 if test -f $ac_dir/$ac_word; then
5562 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5569 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5570 if test -n "$DLLTOOL_FOR_TARGET"; then
5571 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5573 echo "$ac_t""no" 1>&6
5577 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5579 set dummy
${ncn_progname}; ac_word
=$2
5580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5581 echo "configure:5582: checking for $ac_word" >&5
5582 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5583 echo $ac_n "(cached) $ac_c" 1>&6
5585 if test -n "$DLLTOOL_FOR_TARGET"; then
5586 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5588 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5590 for ac_dir
in $ac_dummy; do
5591 test -z "$ac_dir" && ac_dir
=.
5592 if test -f $ac_dir/$ac_word; then
5593 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_progname}"
5600 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5601 if test -n "$DLLTOOL_FOR_TARGET"; then
5602 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5604 echo "$ac_t""no" 1>&6
5608 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5612 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5614 if test $build = $target ; then
5615 DLLTOOL_FOR_TARGET
="$2"
5617 DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5622 DLLTOOL_FOR_TARGET
=$ac_cv_path_DLLTOOL_FOR_TARGET
5628 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5629 if test -n "$with_build_time_tools"; then
5630 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5631 echo "configure:5632: checking for ld in $with_build_time_tools" >&5
5632 if test -x $with_build_time_tools/ld
; then
5633 LD_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ld
5634 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5635 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5637 echo "$ac_t""no" 1>&6
5639 elif test $build != $host && test $have_gcc_for_target = yes; then
5640 LD_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ld`
5641 test $LD_FOR_TARGET=ld
&& LD_FOR_TARGET
=
5642 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5645 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5646 # Extract the first word of "ld", so it can be a program name with args.
5647 set dummy ld
; ac_word
=$2
5648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5649 echo "configure:5650: checking for $ac_word" >&5
5650 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5651 echo $ac_n "(cached) $ac_c" 1>&6
5653 case "$LD_FOR_TARGET" in
5655 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a path.
5658 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5661 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5662 ac_dummy
="$gcc_cv_tool_dirs"
5663 for ac_dir
in $ac_dummy; do
5664 test -z "$ac_dir" && ac_dir
=.
5665 if test -f $ac_dir/$ac_word; then
5666 ac_cv_path_LD_FOR_TARGET
="$ac_dir/$ac_word"
5674 LD_FOR_TARGET
="$ac_cv_path_LD_FOR_TARGET"
5675 if test -n "$LD_FOR_TARGET"; then
5676 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5678 echo "$ac_t""no" 1>&6
5682 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5683 if test -n "$with_build_time_tools"; then
5684 for ncn_progname
in ld
; do
5685 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5686 echo "configure:5687: checking for ${ncn_progname} in $with_build_time_tools" >&5
5687 if test -x $with_build_time_tools/${ncn_progname}; then
5688 ac_cv_prog_LD_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5689 echo "$ac_t""yes" 1>&6
5692 echo "$ac_t""no" 1>&6
5697 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5698 for ncn_progname
in ld
; do
5699 if test -n "$ncn_target_tool_prefix"; then
5700 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5701 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5703 echo "configure:5704: checking for $ac_word" >&5
5704 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5705 echo $ac_n "(cached) $ac_c" 1>&6
5707 if test -n "$LD_FOR_TARGET"; then
5708 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5710 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5712 for ac_dir
in $ac_dummy; do
5713 test -z "$ac_dir" && ac_dir
=.
5714 if test -f $ac_dir/$ac_word; then
5715 ac_cv_prog_LD_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5722 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5723 if test -n "$LD_FOR_TARGET"; then
5724 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5726 echo "$ac_t""no" 1>&6
5730 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5732 set dummy
${ncn_progname}; ac_word
=$2
5733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5734 echo "configure:5735: checking for $ac_word" >&5
5735 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5736 echo $ac_n "(cached) $ac_c" 1>&6
5738 if test -n "$LD_FOR_TARGET"; then
5739 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5741 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5743 for ac_dir
in $ac_dummy; do
5744 test -z "$ac_dir" && ac_dir
=.
5745 if test -f $ac_dir/$ac_word; then
5746 ac_cv_prog_LD_FOR_TARGET
="${ncn_progname}"
5753 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5754 if test -n "$LD_FOR_TARGET"; then
5755 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5757 echo "$ac_t""no" 1>&6
5761 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5765 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5767 if test $build = $target ; then
5770 LD_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5775 LD_FOR_TARGET
=$ac_cv_path_LD_FOR_TARGET
5781 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5782 if test -n "$with_build_time_tools"; then
5783 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5784 echo "configure:5785: checking for lipo in $with_build_time_tools" >&5
5785 if test -x $with_build_time_tools/lipo
; then
5786 LIPO_FOR_TARGET
=`cd $with_build_time_tools && pwd`/lipo
5787 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5788 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5790 echo "$ac_t""no" 1>&6
5792 elif test $build != $host && test $have_gcc_for_target = yes; then
5793 LIPO_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=lipo`
5794 test $LIPO_FOR_TARGET=lipo
&& LIPO_FOR_TARGET
=
5795 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5798 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5799 # Extract the first word of "lipo", so it can be a program name with args.
5800 set dummy lipo
; ac_word
=$2
5801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5802 echo "configure:5803: checking for $ac_word" >&5
5803 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5804 echo $ac_n "(cached) $ac_c" 1>&6
5806 case "$LIPO_FOR_TARGET" in
5808 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5811 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5814 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5815 ac_dummy
="$gcc_cv_tool_dirs"
5816 for ac_dir
in $ac_dummy; do
5817 test -z "$ac_dir" && ac_dir
=.
5818 if test -f $ac_dir/$ac_word; then
5819 ac_cv_path_LIPO_FOR_TARGET
="$ac_dir/$ac_word"
5827 LIPO_FOR_TARGET
="$ac_cv_path_LIPO_FOR_TARGET"
5828 if test -n "$LIPO_FOR_TARGET"; then
5829 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5831 echo "$ac_t""no" 1>&6
5835 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5836 if test -n "$with_build_time_tools"; then
5837 for ncn_progname
in lipo
; do
5838 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5839 echo "configure:5840: checking for ${ncn_progname} in $with_build_time_tools" >&5
5840 if test -x $with_build_time_tools/${ncn_progname}; then
5841 ac_cv_prog_LIPO_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5842 echo "$ac_t""yes" 1>&6
5845 echo "$ac_t""no" 1>&6
5850 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5851 for ncn_progname
in lipo
; do
5852 if test -n "$ncn_target_tool_prefix"; then
5853 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5854 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5856 echo "configure:5857: checking for $ac_word" >&5
5857 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5858 echo $ac_n "(cached) $ac_c" 1>&6
5860 if test -n "$LIPO_FOR_TARGET"; then
5861 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
5863 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5865 for ac_dir
in $ac_dummy; do
5866 test -z "$ac_dir" && ac_dir
=.
5867 if test -f $ac_dir/$ac_word; then
5868 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5875 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
5876 if test -n "$LIPO_FOR_TARGET"; then
5877 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5879 echo "$ac_t""no" 1>&6
5883 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5885 set dummy
${ncn_progname}; ac_word
=$2
5886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5887 echo "configure:5888: checking for $ac_word" >&5
5888 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5889 echo $ac_n "(cached) $ac_c" 1>&6
5891 if test -n "$LIPO_FOR_TARGET"; then
5892 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
5894 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5896 for ac_dir
in $ac_dummy; do
5897 test -z "$ac_dir" && ac_dir
=.
5898 if test -f $ac_dir/$ac_word; then
5899 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_progname}"
5906 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
5907 if test -n "$LIPO_FOR_TARGET"; then
5908 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5910 echo "$ac_t""no" 1>&6
5914 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5918 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5920 if test $build = $target ; then
5921 LIPO_FOR_TARGET
="$2"
5923 LIPO_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5928 LIPO_FOR_TARGET
=$ac_cv_path_LIPO_FOR_TARGET
5934 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5935 if test -n "$with_build_time_tools"; then
5936 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
5937 echo "configure:5938: checking for nm in $with_build_time_tools" >&5
5938 if test -x $with_build_time_tools/nm
; then
5939 NM_FOR_TARGET
=`cd $with_build_time_tools && pwd`/nm
5940 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
5941 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5943 echo "$ac_t""no" 1>&6
5945 elif test $build != $host && test $have_gcc_for_target = yes; then
5946 NM_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=nm`
5947 test $NM_FOR_TARGET=nm
&& NM_FOR_TARGET
=
5948 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
5951 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5952 # Extract the first word of "nm", so it can be a program name with args.
5953 set dummy nm
; ac_word
=$2
5954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5955 echo "configure:5956: checking for $ac_word" >&5
5956 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5959 case "$NM_FOR_TARGET" in
5961 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a path.
5964 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5967 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5968 ac_dummy
="$gcc_cv_tool_dirs"
5969 for ac_dir
in $ac_dummy; do
5970 test -z "$ac_dir" && ac_dir
=.
5971 if test -f $ac_dir/$ac_word; then
5972 ac_cv_path_NM_FOR_TARGET
="$ac_dir/$ac_word"
5980 NM_FOR_TARGET
="$ac_cv_path_NM_FOR_TARGET"
5981 if test -n "$NM_FOR_TARGET"; then
5982 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5984 echo "$ac_t""no" 1>&6
5988 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5989 if test -n "$with_build_time_tools"; then
5990 for ncn_progname
in nm
; do
5991 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5992 echo "configure:5993: checking for ${ncn_progname} in $with_build_time_tools" >&5
5993 if test -x $with_build_time_tools/${ncn_progname}; then
5994 ac_cv_prog_NM_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5995 echo "$ac_t""yes" 1>&6
5998 echo "$ac_t""no" 1>&6
6003 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
6004 for ncn_progname
in nm
; do
6005 if test -n "$ncn_target_tool_prefix"; then
6006 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6007 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6009 echo "configure:6010: checking for $ac_word" >&5
6010 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6011 echo $ac_n "(cached) $ac_c" 1>&6
6013 if test -n "$NM_FOR_TARGET"; then
6014 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
6016 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6018 for ac_dir
in $ac_dummy; do
6019 test -z "$ac_dir" && ac_dir
=.
6020 if test -f $ac_dir/$ac_word; then
6021 ac_cv_prog_NM_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6028 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
6029 if test -n "$NM_FOR_TARGET"; then
6030 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6032 echo "$ac_t""no" 1>&6
6036 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
6037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6038 set dummy
${ncn_progname}; ac_word
=$2
6039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6040 echo "configure:6041: checking for $ac_word" >&5
6041 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6042 echo $ac_n "(cached) $ac_c" 1>&6
6044 if test -n "$NM_FOR_TARGET"; then
6045 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
6047 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6049 for ac_dir
in $ac_dummy; do
6050 test -z "$ac_dir" && ac_dir
=.
6051 if test -f $ac_dir/$ac_word; then
6052 ac_cv_prog_NM_FOR_TARGET
="${ncn_progname}"
6059 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
6060 if test -n "$NM_FOR_TARGET"; then
6061 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6063 echo "$ac_t""no" 1>&6
6067 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6071 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6073 if test $build = $target ; then
6076 NM_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6081 NM_FOR_TARGET
=$ac_cv_path_NM_FOR_TARGET
6087 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6088 if test -n "$with_build_time_tools"; then
6089 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6090 echo "configure:6091: checking for objdump in $with_build_time_tools" >&5
6091 if test -x $with_build_time_tools/objdump
; then
6092 OBJDUMP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/objdump
6093 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6094 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6096 echo "$ac_t""no" 1>&6
6098 elif test $build != $host && test $have_gcc_for_target = yes; then
6099 OBJDUMP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=objdump`
6100 test $OBJDUMP_FOR_TARGET=objdump
&& OBJDUMP_FOR_TARGET
=
6101 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6104 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6105 # Extract the first word of "objdump", so it can be a program name with args.
6106 set dummy objdump
; ac_word
=$2
6107 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6108 echo "configure:6109: checking for $ac_word" >&5
6109 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6110 echo $ac_n "(cached) $ac_c" 1>&6
6112 case "$OBJDUMP_FOR_TARGET" in
6114 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6117 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6120 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6121 ac_dummy
="$gcc_cv_tool_dirs"
6122 for ac_dir
in $ac_dummy; do
6123 test -z "$ac_dir" && ac_dir
=.
6124 if test -f $ac_dir/$ac_word; then
6125 ac_cv_path_OBJDUMP_FOR_TARGET
="$ac_dir/$ac_word"
6133 OBJDUMP_FOR_TARGET
="$ac_cv_path_OBJDUMP_FOR_TARGET"
6134 if test -n "$OBJDUMP_FOR_TARGET"; then
6135 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6137 echo "$ac_t""no" 1>&6
6141 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6142 if test -n "$with_build_time_tools"; then
6143 for ncn_progname
in objdump
; do
6144 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6145 echo "configure:6146: checking for ${ncn_progname} in $with_build_time_tools" >&5
6146 if test -x $with_build_time_tools/${ncn_progname}; then
6147 ac_cv_prog_OBJDUMP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6148 echo "$ac_t""yes" 1>&6
6151 echo "$ac_t""no" 1>&6
6156 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6157 for ncn_progname
in objdump
; do
6158 if test -n "$ncn_target_tool_prefix"; then
6159 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6160 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6162 echo "configure:6163: checking for $ac_word" >&5
6163 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6164 echo $ac_n "(cached) $ac_c" 1>&6
6166 if test -n "$OBJDUMP_FOR_TARGET"; then
6167 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6169 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6171 for ac_dir
in $ac_dummy; do
6172 test -z "$ac_dir" && ac_dir
=.
6173 if test -f $ac_dir/$ac_word; then
6174 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6181 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6182 if test -n "$OBJDUMP_FOR_TARGET"; then
6183 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6185 echo "$ac_t""no" 1>&6
6189 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6191 set dummy
${ncn_progname}; ac_word
=$2
6192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6193 echo "configure:6194: checking for $ac_word" >&5
6194 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6197 if test -n "$OBJDUMP_FOR_TARGET"; then
6198 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6200 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6202 for ac_dir
in $ac_dummy; do
6203 test -z "$ac_dir" && ac_dir
=.
6204 if test -f $ac_dir/$ac_word; then
6205 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_progname}"
6212 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6213 if test -n "$OBJDUMP_FOR_TARGET"; then
6214 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6216 echo "$ac_t""no" 1>&6
6220 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6224 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6226 if test $build = $target ; then
6227 OBJDUMP_FOR_TARGET
="$2"
6229 OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6234 OBJDUMP_FOR_TARGET
=$ac_cv_path_OBJDUMP_FOR_TARGET
6240 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6241 if test -n "$with_build_time_tools"; then
6242 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6243 echo "configure:6244: checking for ranlib in $with_build_time_tools" >&5
6244 if test -x $with_build_time_tools/ranlib
; then
6245 RANLIB_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ranlib
6246 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6247 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6249 echo "$ac_t""no" 1>&6
6251 elif test $build != $host && test $have_gcc_for_target = yes; then
6252 RANLIB_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6253 test $RANLIB_FOR_TARGET=ranlib
&& RANLIB_FOR_TARGET
=
6254 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6257 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6258 # Extract the first word of "ranlib", so it can be a program name with args.
6259 set dummy ranlib
; ac_word
=$2
6260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6261 echo "configure:6262: checking for $ac_word" >&5
6262 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6263 echo $ac_n "(cached) $ac_c" 1>&6
6265 case "$RANLIB_FOR_TARGET" in
6267 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6270 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6273 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6274 ac_dummy
="$gcc_cv_tool_dirs"
6275 for ac_dir
in $ac_dummy; do
6276 test -z "$ac_dir" && ac_dir
=.
6277 if test -f $ac_dir/$ac_word; then
6278 ac_cv_path_RANLIB_FOR_TARGET
="$ac_dir/$ac_word"
6286 RANLIB_FOR_TARGET
="$ac_cv_path_RANLIB_FOR_TARGET"
6287 if test -n "$RANLIB_FOR_TARGET"; then
6288 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6290 echo "$ac_t""no" 1>&6
6294 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6295 if test -n "$with_build_time_tools"; then
6296 for ncn_progname
in ranlib
; do
6297 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6298 echo "configure:6299: checking for ${ncn_progname} in $with_build_time_tools" >&5
6299 if test -x $with_build_time_tools/${ncn_progname}; then
6300 ac_cv_prog_RANLIB_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6301 echo "$ac_t""yes" 1>&6
6304 echo "$ac_t""no" 1>&6
6309 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6310 for ncn_progname
in ranlib
; do
6311 if test -n "$ncn_target_tool_prefix"; then
6312 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6313 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6315 echo "configure:6316: checking for $ac_word" >&5
6316 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6317 echo $ac_n "(cached) $ac_c" 1>&6
6319 if test -n "$RANLIB_FOR_TARGET"; then
6320 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6322 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6324 for ac_dir
in $ac_dummy; do
6325 test -z "$ac_dir" && ac_dir
=.
6326 if test -f $ac_dir/$ac_word; then
6327 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6334 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6335 if test -n "$RANLIB_FOR_TARGET"; then
6336 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6338 echo "$ac_t""no" 1>&6
6342 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6344 set dummy
${ncn_progname}; ac_word
=$2
6345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6346 echo "configure:6347: checking for $ac_word" >&5
6347 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6348 echo $ac_n "(cached) $ac_c" 1>&6
6350 if test -n "$RANLIB_FOR_TARGET"; then
6351 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6353 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6355 for ac_dir
in $ac_dummy; do
6356 test -z "$ac_dir" && ac_dir
=.
6357 if test -f $ac_dir/$ac_word; then
6358 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_progname}"
6365 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6366 if test -n "$RANLIB_FOR_TARGET"; then
6367 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6369 echo "$ac_t""no" 1>&6
6373 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6377 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6379 if test $build = $target ; then
6380 RANLIB_FOR_TARGET
="$2"
6382 RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6387 RANLIB_FOR_TARGET
=$ac_cv_path_RANLIB_FOR_TARGET
6393 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6394 if test -n "$with_build_time_tools"; then
6395 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6396 echo "configure:6397: checking for strip in $with_build_time_tools" >&5
6397 if test -x $with_build_time_tools/strip
; then
6398 STRIP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/strip
6399 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6400 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6402 echo "$ac_t""no" 1>&6
6404 elif test $build != $host && test $have_gcc_for_target = yes; then
6405 STRIP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=strip`
6406 test $STRIP_FOR_TARGET=strip
&& STRIP_FOR_TARGET
=
6407 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6410 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6411 # Extract the first word of "strip", so it can be a program name with args.
6412 set dummy strip
; ac_word
=$2
6413 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6414 echo "configure:6415: checking for $ac_word" >&5
6415 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6416 echo $ac_n "(cached) $ac_c" 1>&6
6418 case "$STRIP_FOR_TARGET" in
6420 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6423 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6426 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6427 ac_dummy
="$gcc_cv_tool_dirs"
6428 for ac_dir
in $ac_dummy; do
6429 test -z "$ac_dir" && ac_dir
=.
6430 if test -f $ac_dir/$ac_word; then
6431 ac_cv_path_STRIP_FOR_TARGET
="$ac_dir/$ac_word"
6439 STRIP_FOR_TARGET
="$ac_cv_path_STRIP_FOR_TARGET"
6440 if test -n "$STRIP_FOR_TARGET"; then
6441 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6443 echo "$ac_t""no" 1>&6
6447 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6448 if test -n "$with_build_time_tools"; then
6449 for ncn_progname
in strip
; do
6450 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6451 echo "configure:6452: checking for ${ncn_progname} in $with_build_time_tools" >&5
6452 if test -x $with_build_time_tools/${ncn_progname}; then
6453 ac_cv_prog_STRIP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6454 echo "$ac_t""yes" 1>&6
6457 echo "$ac_t""no" 1>&6
6462 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6463 for ncn_progname
in strip
; do
6464 if test -n "$ncn_target_tool_prefix"; then
6465 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6466 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6468 echo "configure:6469: checking for $ac_word" >&5
6469 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6470 echo $ac_n "(cached) $ac_c" 1>&6
6472 if test -n "$STRIP_FOR_TARGET"; then
6473 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6475 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6477 for ac_dir
in $ac_dummy; do
6478 test -z "$ac_dir" && ac_dir
=.
6479 if test -f $ac_dir/$ac_word; then
6480 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6487 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6488 if test -n "$STRIP_FOR_TARGET"; then
6489 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6491 echo "$ac_t""no" 1>&6
6495 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6497 set dummy
${ncn_progname}; ac_word
=$2
6498 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6499 echo "configure:6500: checking for $ac_word" >&5
6500 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6501 echo $ac_n "(cached) $ac_c" 1>&6
6503 if test -n "$STRIP_FOR_TARGET"; then
6504 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6506 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6508 for ac_dir
in $ac_dummy; do
6509 test -z "$ac_dir" && ac_dir
=.
6510 if test -f $ac_dir/$ac_word; then
6511 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_progname}"
6518 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6519 if test -n "$STRIP_FOR_TARGET"; then
6520 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6522 echo "$ac_t""no" 1>&6
6526 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6530 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6532 if test $build = $target ; then
6533 STRIP_FOR_TARGET
="$2"
6535 STRIP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6540 STRIP_FOR_TARGET
=$ac_cv_path_STRIP_FOR_TARGET
6546 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6547 if test -n "$with_build_time_tools"; then
6548 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6549 echo "configure:6550: checking for windres in $with_build_time_tools" >&5
6550 if test -x $with_build_time_tools/windres
; then
6551 WINDRES_FOR_TARGET
=`cd $with_build_time_tools && pwd`/windres
6552 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6553 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6555 echo "$ac_t""no" 1>&6
6557 elif test $build != $host && test $have_gcc_for_target = yes; then
6558 WINDRES_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=windres`
6559 test $WINDRES_FOR_TARGET=windres
&& WINDRES_FOR_TARGET
=
6560 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6563 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6564 # Extract the first word of "windres", so it can be a program name with args.
6565 set dummy windres
; ac_word
=$2
6566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6567 echo "configure:6568: checking for $ac_word" >&5
6568 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6569 echo $ac_n "(cached) $ac_c" 1>&6
6571 case "$WINDRES_FOR_TARGET" in
6573 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6576 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6579 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6580 ac_dummy
="$gcc_cv_tool_dirs"
6581 for ac_dir
in $ac_dummy; do
6582 test -z "$ac_dir" && ac_dir
=.
6583 if test -f $ac_dir/$ac_word; then
6584 ac_cv_path_WINDRES_FOR_TARGET
="$ac_dir/$ac_word"
6592 WINDRES_FOR_TARGET
="$ac_cv_path_WINDRES_FOR_TARGET"
6593 if test -n "$WINDRES_FOR_TARGET"; then
6594 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6596 echo "$ac_t""no" 1>&6
6600 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6601 if test -n "$with_build_time_tools"; then
6602 for ncn_progname
in windres
; do
6603 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6604 echo "configure:6605: checking for ${ncn_progname} in $with_build_time_tools" >&5
6605 if test -x $with_build_time_tools/${ncn_progname}; then
6606 ac_cv_prog_WINDRES_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6607 echo "$ac_t""yes" 1>&6
6610 echo "$ac_t""no" 1>&6
6615 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6616 for ncn_progname
in windres
; do
6617 if test -n "$ncn_target_tool_prefix"; then
6618 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6619 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6621 echo "configure:6622: checking for $ac_word" >&5
6622 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6623 echo $ac_n "(cached) $ac_c" 1>&6
6625 if test -n "$WINDRES_FOR_TARGET"; then
6626 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6628 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6630 for ac_dir
in $ac_dummy; do
6631 test -z "$ac_dir" && ac_dir
=.
6632 if test -f $ac_dir/$ac_word; then
6633 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6640 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6641 if test -n "$WINDRES_FOR_TARGET"; then
6642 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6644 echo "$ac_t""no" 1>&6
6648 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6650 set dummy
${ncn_progname}; ac_word
=$2
6651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6652 echo "configure:6653: checking for $ac_word" >&5
6653 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6654 echo $ac_n "(cached) $ac_c" 1>&6
6656 if test -n "$WINDRES_FOR_TARGET"; then
6657 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6659 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6661 for ac_dir
in $ac_dummy; do
6662 test -z "$ac_dir" && ac_dir
=.
6663 if test -f $ac_dir/$ac_word; then
6664 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_progname}"
6671 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6672 if test -n "$WINDRES_FOR_TARGET"; then
6673 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6675 echo "$ac_t""no" 1>&6
6679 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6683 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6685 if test $build = $target ; then
6686 WINDRES_FOR_TARGET
="$2"
6688 WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6693 WINDRES_FOR_TARGET
=$ac_cv_path_WINDRES_FOR_TARGET
6697 RAW_CXX_FOR_TARGET
="$CXX_FOR_TARGET"
6699 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6700 echo "configure:6701: checking where to find the target ar" >&5
6701 if test "x${build}" != "x${host}" ; then
6702 if expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6703 # We already found the complete path
6704 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6706 # Canadian cross, just use what we found
6707 echo "$ac_t""pre-installed" 1>&6
6711 case " ${configdirs} " in
6716 if test $ok = yes; then
6717 # An in-tree tool is available and we can use it
6718 AR_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ar'
6719 echo "$ac_t""just compiled" 1>&6
6720 elif expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6721 # We already found the complete path
6722 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6723 elif test "x$target" = "x$host"; then
6724 # We can use an host tool
6725 AR_FOR_TARGET
='$(AR)'
6726 echo "$ac_t""host tool" 1>&6
6728 # We need a cross tool
6729 echo "$ac_t""pre-installed" 1>&6
6732 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6733 echo "configure:6734: checking where to find the target as" >&5
6734 if test "x${build}" != "x${host}" ; then
6735 if expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6736 # We already found the complete path
6737 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6739 # Canadian cross, just use what we found
6740 echo "$ac_t""pre-installed" 1>&6
6744 case " ${configdirs} " in
6749 if test $ok = yes; then
6750 # An in-tree tool is available and we can use it
6751 AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gas/as-new'
6752 echo "$ac_t""just compiled" 1>&6
6753 elif expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6754 # We already found the complete path
6755 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6756 elif test "x$target" = "x$host"; then
6757 # We can use an host tool
6758 AS_FOR_TARGET
='$(AS)'
6759 echo "$ac_t""host tool" 1>&6
6761 # We need a cross tool
6762 echo "$ac_t""pre-installed" 1>&6
6765 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6766 echo "configure:6767: checking where to find the target cc" >&5
6767 if test "x${build}" != "x${host}" ; then
6768 if expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6769 # We already found the complete path
6770 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6772 # Canadian cross, just use what we found
6773 echo "$ac_t""pre-installed" 1>&6
6777 case " ${configdirs} " in
6782 if test $ok = yes; then
6783 # An in-tree tool is available and we can use it
6784 CC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6785 echo "$ac_t""just compiled" 1>&6
6786 elif expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6787 # We already found the complete path
6788 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6789 elif test "x$target" = "x$host"; then
6790 # We can use an host tool
6791 CC_FOR_TARGET
='$(CC)'
6792 echo "$ac_t""host tool" 1>&6
6794 # We need a cross tool
6795 echo "$ac_t""pre-installed" 1>&6
6798 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6799 echo "configure:6800: checking where to find the target c++" >&5
6800 if test "x${build}" != "x${host}" ; then
6801 if expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6802 # We already found the complete path
6803 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6805 # Canadian cross, just use what we found
6806 echo "$ac_t""pre-installed" 1>&6
6810 case " ${configdirs} " in
6814 case ,${enable_languages}, in
6818 if test $ok = yes; then
6819 # An in-tree tool is available and we can use it
6820 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'
6821 echo "$ac_t""just compiled" 1>&6
6822 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6823 # We already found the complete path
6824 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6825 elif test "x$target" = "x$host"; then
6826 # We can use an host tool
6827 CXX_FOR_TARGET
='$(CXX)'
6828 echo "$ac_t""host tool" 1>&6
6830 # We need a cross tool
6831 echo "$ac_t""pre-installed" 1>&6
6834 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6835 echo "configure:6836: checking where to find the target c++ for libstdc++" >&5
6836 if test "x${build}" != "x${host}" ; then
6837 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6838 # We already found the complete path
6839 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6841 # Canadian cross, just use what we found
6842 echo "$ac_t""pre-installed" 1>&6
6846 case " ${configdirs} " in
6850 case ,${enable_languages}, in
6854 if test $ok = yes; then
6855 # An in-tree tool is available and we can use it
6856 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'
6857 echo "$ac_t""just compiled" 1>&6
6858 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6859 # We already found the complete path
6860 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6861 elif test "x$target" = "x$host"; then
6862 # We can use an host tool
6863 RAW_CXX_FOR_TARGET
='$(CXX)'
6864 echo "$ac_t""host tool" 1>&6
6866 # We need a cross tool
6867 echo "$ac_t""pre-installed" 1>&6
6870 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6871 echo "configure:6872: checking where to find the target dlltool" >&5
6872 if test "x${build}" != "x${host}" ; then
6873 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
6874 # We already found the complete path
6875 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6877 # Canadian cross, just use what we found
6878 echo "$ac_t""pre-installed" 1>&6
6882 case " ${configdirs} " in
6887 if test $ok = yes; then
6888 # An in-tree tool is available and we can use it
6889 DLLTOOL_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6890 echo "$ac_t""just compiled" 1>&6
6891 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
6892 # We already found the complete path
6893 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6894 elif test "x$target" = "x$host"; then
6895 # We can use an host tool
6896 DLLTOOL_FOR_TARGET
='$(DLLTOOL)'
6897 echo "$ac_t""host tool" 1>&6
6899 # We need a cross tool
6900 echo "$ac_t""pre-installed" 1>&6
6903 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6904 echo "configure:6905: checking where to find the target gcc" >&5
6905 if test "x${build}" != "x${host}" ; then
6906 if expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
6907 # We already found the complete path
6908 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6910 # Canadian cross, just use what we found
6911 echo "$ac_t""pre-installed" 1>&6
6915 case " ${configdirs} " in
6920 if test $ok = yes; then
6921 # An in-tree tool is available and we can use it
6922 GCC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6923 echo "$ac_t""just compiled" 1>&6
6924 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
6925 # We already found the complete path
6926 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6927 elif test "x$target" = "x$host"; then
6928 # We can use an host tool
6929 GCC_FOR_TARGET
='$()'
6930 echo "$ac_t""host tool" 1>&6
6932 # We need a cross tool
6933 echo "$ac_t""pre-installed" 1>&6
6936 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6937 echo "configure:6938: checking where to find the target gcj" >&5
6938 if test "x${build}" != "x${host}" ; then
6939 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
6940 # We already found the complete path
6941 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6943 # Canadian cross, just use what we found
6944 echo "$ac_t""pre-installed" 1>&6
6948 case " ${configdirs} " in
6952 case ,${enable_languages}, in
6956 if test $ok = yes; then
6957 # An in-tree tool is available and we can use it
6958 GCJ_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6959 echo "$ac_t""just compiled" 1>&6
6960 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
6961 # We already found the complete path
6962 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6963 elif test "x$target" = "x$host"; then
6964 # We can use an host tool
6965 GCJ_FOR_TARGET
='$(GCJ)'
6966 echo "$ac_t""host tool" 1>&6
6968 # We need a cross tool
6969 echo "$ac_t""pre-installed" 1>&6
6972 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
6973 echo "configure:6974: checking where to find the target gfortran" >&5
6974 if test "x${build}" != "x${host}" ; then
6975 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
6976 # We already found the complete path
6977 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6979 # Canadian cross, just use what we found
6980 echo "$ac_t""pre-installed" 1>&6
6984 case " ${configdirs} " in
6988 case ,${enable_languages}, in
6992 if test $ok = yes; then
6993 # An in-tree tool is available and we can use it
6994 GFORTRAN_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
6995 echo "$ac_t""just compiled" 1>&6
6996 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
6997 # We already found the complete path
6998 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6999 elif test "x$target" = "x$host"; then
7000 # We can use an host tool
7001 GFORTRAN_FOR_TARGET
='$(GFORTRAN)'
7002 echo "$ac_t""host tool" 1>&6
7004 # We need a cross tool
7005 echo "$ac_t""pre-installed" 1>&6
7008 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
7009 echo "configure:7010: checking where to find the target ld" >&5
7010 if test "x${build}" != "x${host}" ; then
7011 if expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
7012 # We already found the complete path
7013 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7015 # Canadian cross, just use what we found
7016 echo "$ac_t""pre-installed" 1>&6
7020 case " ${configdirs} " in
7025 if test $ok = yes; then
7026 # An in-tree tool is available and we can use it
7027 LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/ld/ld-new'
7028 echo "$ac_t""just compiled" 1>&6
7029 elif expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
7030 # We already found the complete path
7031 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7032 elif test "x$target" = "x$host"; then
7033 # We can use an host tool
7034 LD_FOR_TARGET
='$(LD)'
7035 echo "$ac_t""host tool" 1>&6
7037 # We need a cross tool
7038 echo "$ac_t""pre-installed" 1>&6
7041 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
7042 echo "configure:7043: checking where to find the target lipo" >&5
7043 if test "x${build}" != "x${host}" ; then
7044 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
7045 # We already found the complete path
7046 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7048 # Canadian cross, just use what we found
7049 echo "$ac_t""pre-installed" 1>&6
7052 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
7053 # We already found the complete path
7054 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7055 elif test "x$target" = "x$host"; then
7056 # We can use an host tool
7057 LIPO_FOR_TARGET
='$(LIPO)'
7058 echo "$ac_t""host tool" 1>&6
7060 # We need a cross tool
7061 echo "$ac_t""pre-installed" 1>&6
7064 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
7065 echo "configure:7066: checking where to find the target nm" >&5
7066 if test "x${build}" != "x${host}" ; then
7067 if expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
7068 # We already found the complete path
7069 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7071 # Canadian cross, just use what we found
7072 echo "$ac_t""pre-installed" 1>&6
7076 case " ${configdirs} " in
7081 if test $ok = yes; then
7082 # An in-tree tool is available and we can use it
7083 NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7084 echo "$ac_t""just compiled" 1>&6
7085 elif expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
7086 # We already found the complete path
7087 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7088 elif test "x$target" = "x$host"; then
7089 # We can use an host tool
7090 NM_FOR_TARGET
='$(NM)'
7091 echo "$ac_t""host tool" 1>&6
7093 # We need a cross tool
7094 echo "$ac_t""pre-installed" 1>&6
7097 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7098 echo "configure:7099: checking where to find the target objdump" >&5
7099 if test "x${build}" != "x${host}" ; then
7100 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7101 # We already found the complete path
7102 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7104 # Canadian cross, just use what we found
7105 echo "$ac_t""pre-installed" 1>&6
7109 case " ${configdirs} " in
7114 if test $ok = yes; then
7115 # An in-tree tool is available and we can use it
7116 OBJDUMP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/objdump'
7117 echo "$ac_t""just compiled" 1>&6
7118 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7119 # We already found the complete path
7120 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7121 elif test "x$target" = "x$host"; then
7122 # We can use an host tool
7123 OBJDUMP_FOR_TARGET
='$(OBJDUMP)'
7124 echo "$ac_t""host tool" 1>&6
7126 # We need a cross tool
7127 echo "$ac_t""pre-installed" 1>&6
7130 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7131 echo "configure:7132: checking where to find the target ranlib" >&5
7132 if test "x${build}" != "x${host}" ; then
7133 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7134 # We already found the complete path
7135 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7137 # Canadian cross, just use what we found
7138 echo "$ac_t""pre-installed" 1>&6
7142 case " ${configdirs} " in
7147 if test $ok = yes; then
7148 # An in-tree tool is available and we can use it
7149 RANLIB_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7150 echo "$ac_t""just compiled" 1>&6
7151 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7152 # We already found the complete path
7153 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7154 elif test "x$target" = "x$host"; then
7155 # We can use an host tool
7156 RANLIB_FOR_TARGET
='$(RANLIB)'
7157 echo "$ac_t""host tool" 1>&6
7159 # We need a cross tool
7160 echo "$ac_t""pre-installed" 1>&6
7163 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7164 echo "configure:7165: checking where to find the target strip" >&5
7165 if test "x${build}" != "x${host}" ; then
7166 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7167 # We already found the complete path
7168 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7170 # Canadian cross, just use what we found
7171 echo "$ac_t""pre-installed" 1>&6
7175 case " ${configdirs} " in
7180 if test $ok = yes; then
7181 # An in-tree tool is available and we can use it
7182 STRIP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/strip'
7183 echo "$ac_t""just compiled" 1>&6
7184 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7185 # We already found the complete path
7186 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7187 elif test "x$target" = "x$host"; then
7188 # We can use an host tool
7189 STRIP_FOR_TARGET
='$(STRIP)'
7190 echo "$ac_t""host tool" 1>&6
7192 # We need a cross tool
7193 echo "$ac_t""pre-installed" 1>&6
7196 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7197 echo "configure:7198: checking where to find the target windres" >&5
7198 if test "x${build}" != "x${host}" ; then
7199 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7200 # We already found the complete path
7201 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7203 # Canadian cross, just use what we found
7204 echo "$ac_t""pre-installed" 1>&6
7208 case " ${configdirs} " in
7213 if test $ok = yes; then
7214 # An in-tree tool is available and we can use it
7215 WINDRES_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/windres'
7216 echo "$ac_t""just compiled" 1>&6
7217 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7218 # We already found the complete path
7219 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7220 elif test "x$target" = "x$host"; then
7221 # We can use an host tool
7222 WINDRES_FOR_TARGET
='$(WINDRES)'
7223 echo "$ac_t""host tool" 1>&6
7225 # We need a cross tool
7226 echo "$ac_t""pre-installed" 1>&6
7233 # Certain tools may need extra flags.
7234 AR_FOR_TARGET
=${AR_FOR_TARGET}${extra_arflags_for_target}
7235 RANLIB_FOR_TARGET
=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7236 NM_FOR_TARGET
=${NM_FOR_TARGET}${extra_nmflags_for_target}
7238 # When building target libraries, except in a Canadian cross, we use
7239 # the same toolchain as the compiler we just built.
7240 COMPILER_AS_FOR_TARGET
='$(AS_FOR_TARGET)'
7241 COMPILER_LD_FOR_TARGET
='$(LD_FOR_TARGET)'
7242 COMPILER_NM_FOR_TARGET
='$(NM_FOR_TARGET)'
7243 if test $host = $build; then
7244 case " $configdirs " in
7246 COMPILER_AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/as'
7247 COMPILER_LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7248 COMPILER_NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7257 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7258 echo "configure:7259: checking whether to enable maintainer-specific portions of Makefiles" >&5
7259 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7260 if test "${enable_maintainer_mode+set}" = set; then
7261 enableval
="$enable_maintainer_mode"
7262 USE_MAINTAINER_MODE
=$enableval
7264 USE_MAINTAINER_MODE
=no
7267 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7270 if test "$USE_MAINTAINER_MODE" = yes; then
7271 MAINTAINER_MODE_TRUE
=
7272 MAINTAINER_MODE_FALSE
='#'
7274 MAINTAINER_MODE_TRUE
='#'
7275 MAINTAINER_MODE_FALSE
=
7277 MAINT
=$MAINTAINER_MODE_TRUE
7279 # ---------------------
7280 # GCC bootstrap support
7281 # ---------------------
7283 # Stage specific cflags for build.
7288 yes) stage1_cflags
="-g -Wa,-J" ;;
7289 *) stage1_cflags
="-g -J" ;;
7292 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7293 # sources; use -no-cpp-precomp to get to GNU cpp.
7294 # Apple's GCC has bugs in designated initializer handling, so disable
7296 stage1_cflags
="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7300 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
7301 if test "$GCC" = yes; then
7302 saved_CFLAGS
="$CFLAGS"
7304 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
7305 CFLAGS
="$CFLAGS -fkeep-inline-functions"
7306 echo $ac_n "checking whether -fkeep-inline-functions is supported""... $ac_c" 1>&6
7307 echo "configure:7308: checking whether -fkeep-inline-functions is supported" >&5
7308 cat > conftest.
$ac_ext <<EOF
7309 #line 7310 "configure"
7310 #include "confdefs.h"
7316 if { (eval echo configure
:7317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7318 echo "$ac_t""yes" 1>&6; stage1_cflags
="$stage1_cflags -fkeep-inline-functions"
7320 echo "configure: failed program was:" >&5
7321 cat conftest.
$ac_ext >&5
7323 echo "$ac_t""no" 1>&6
7327 CFLAGS
="$saved_CFLAGS"
7332 # Enable -Werror in bootstrap stage2 and later.
7333 # Change the default to "no" on release branches.
7334 # Check whether --enable-werror or --disable-werror was given.
7335 if test "${enable_werror+set}" = set; then
7336 enableval
="$enable_werror"
7342 case ${enable_werror} in
7343 yes) stage2_werror_flag
="--enable-werror-always" ;;
7344 *) stage2_werror_flag
="" ;;
7348 # Flags needed to enable html installing and building
7349 # Check whether --with-datarootdir or --without-datarootdir was given.
7350 if test "${with_datarootdir+set}" = set; then
7351 withval
="$with_datarootdir"
7352 datarootdir
="\${prefix}/${withval}"
7354 datarootdir
="\${prefix}/share"
7358 # Check whether --with-docdir or --without-docdir was given.
7359 if test "${with_docdir+set}" = set; then
7360 withval
="$with_docdir"
7361 docdir
="\${prefix}/${withval}"
7363 docdir
="\${datarootdir}/doc"
7367 # Check whether --with-htmldir or --without-htmldir was given.
7368 if test "${with_htmldir+set}" = set; then
7369 withval
="$with_htmldir"
7370 htmldir
="\${prefix}/${withval}"
7372 htmldir
="\${docdir}"
7381 cat > confcache
<<\EOF
7382 # This file is a shell script that caches the results of configure
7383 # tests run on this system so they can be shared between configure
7384 # scripts and configure runs. It is not useful on other systems.
7385 # If it contains results you don't want to keep, you may remove or edit it.
7387 # By default, configure uses ./config.cache as the cache file,
7388 # creating it if it does not exist already. You can give configure
7389 # the --cache-file=FILE option to use a different cache file; that is
7390 # what configure does when it calls configure scripts in
7391 # subdirectories, so they share the cache.
7392 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7393 # config.status only pays attention to the cache file if you give it the
7394 # --recheck option to rerun configure.
7397 # The following way of writing the cache mishandles newlines in values,
7398 # but we know of no workaround that is simple, portable, and efficient.
7399 # So, don't put newlines in cache variables' values.
7400 # Ultrix sh set writes to stderr and can't be redirected directly,
7401 # and sets the high bit in the cache file unless we assign to the vars.
7403 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7405 # `set' does not quote correctly, so add quotes (double-quote substitution
7406 # turns \\\\ into \\, and sed turns \\ into \).
7408 -e "s/'/'\\\\''/g" \
7409 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7412 # `set' quotes correctly as required by POSIX, so do not add quotes.
7413 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7416 if cmp -s $cache_file confcache
; then
7419 if test -w $cache_file; then
7420 echo "updating cache $cache_file"
7421 cat confcache
> $cache_file
7423 echo "not updating unwritable cache $cache_file"
7428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7430 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7431 # Let make expand exec_prefix.
7432 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7434 # Any assignment to VPATH causes Sun make to only execute
7435 # the first set of double-colon rules, so remove it if not needed.
7436 # If there is a colon in the path, we need to keep it.
7437 if test "x$srcdir" = x.
; then
7438 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7441 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7443 # Transform confdefs.h into DEFS.
7444 # Protect against shell expansion while executing Makefile rules.
7445 # Protect against Makefile macro expansion.
7446 cat > conftest.defs
<<\EOF
7447 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7448 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7453 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
7457 # Without the "./", some shells look in PATH for config.status.
7458 : ${CONFIG_STATUS=./config.status}
7460 echo creating $CONFIG_STATUS
7461 rm -f $CONFIG_STATUS
7462 cat > $CONFIG_STATUS <<EOF
7464 # Generated automatically by configure.
7465 # Run this file to recreate the current configuration.
7466 # This directory was configured as follows,
7467 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
7469 # $0 $ac_configure_args
7471 # Compiler output produced by configure, useful for debugging
7472 # configure, is in ./config.log if it exists.
7474 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7477 case "\$ac_option" in
7478 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7479 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7480 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7481 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7482 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7484 -help | --help | --hel | --he | --h)
7485 echo "\$ac_cs_usage"; exit 0 ;;
7486 *) echo "\$ac_cs_usage"; exit 1 ;;
7490 ac_given_srcdir=$srcdir
7491 ac_given_INSTALL="$INSTALL"
7493 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7495 cat >> $CONFIG_STATUS <<EOF
7497 # Protect against being on the right side of a sed subst in config.status.
7498 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7499 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7503 s%@CFLAGS@%$CFLAGS%g
7504 s%@CPPFLAGS@%$CPPFLAGS%g
7505 s%@CXXFLAGS@%$CXXFLAGS%g
7506 s%@FFLAGS@%$FFLAGS%g
7508 s%@LDFLAGS@%$LDFLAGS%g
7510 s%@exec_prefix@%$exec_prefix%g
7511 s%@prefix@%$prefix%g
7512 s%@program_transform_name@%$program_transform_name%g
7513 s%@bindir@%$bindir%g
7514 s%@sbindir@%$sbindir%g
7515 s%@libexecdir@%$libexecdir%g
7516 s%@datadir@%$datadir%g
7517 s%@sysconfdir@%$sysconfdir%g
7518 s%@sharedstatedir@%$sharedstatedir%g
7519 s%@localstatedir@%$localstatedir%g
7520 s%@libdir@%$libdir%g
7521 s%@includedir@%$includedir%g
7522 s%@oldincludedir@%$oldincludedir%g
7523 s%@infodir@%$infodir%g
7524 s%@mandir@%$mandir%g
7526 s%@host_alias@%$host_alias%g
7527 s%@host_cpu@%$host_cpu%g
7528 s%@host_vendor@%$host_vendor%g
7529 s%@host_os@%$host_os%g
7530 s%@target@%$target%g
7531 s%@target_alias@%$target_alias%g
7532 s%@target_cpu@%$target_cpu%g
7533 s%@target_vendor@%$target_vendor%g
7534 s%@target_os@%$target_os%g
7536 s%@build_alias@%$build_alias%g
7537 s%@build_cpu@%$build_cpu%g
7538 s%@build_vendor@%$build_vendor%g
7539 s%@build_os@%$build_os%g
7540 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7541 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7542 s%@INSTALL_DATA@%$INSTALL_DATA%g
7545 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7546 s%@build_libsubdir@%$build_libsubdir%g
7547 s%@build_subdir@%$build_subdir%g
7548 s%@host_subdir@%$host_subdir%g
7549 s%@target_subdir@%$target_subdir%g
7551 s%@GNATBIND@%$GNATBIND%g
7552 s%@do_compare@%$do_compare%g
7553 s%@gmplibs@%$gmplibs%g
7554 s%@gmpinc@%$gmpinc%g
7555 s%@stage1_languages@%$stage1_languages%g
7556 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7557 /@serialization_dependencies@/r $serialization_dependencies
7558 s%@serialization_dependencies@%%g
7559 /@host_makefile_frag@/r $host_makefile_frag
7560 s%@host_makefile_frag@%%g
7561 /@target_makefile_frag@/r $target_makefile_frag
7562 s%@target_makefile_frag@%%g
7563 /@alphaieee_frag@/r $alphaieee_frag
7564 s%@alphaieee_frag@%%g
7565 /@ospace_frag@/r $ospace_frag
7567 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7568 s%@tooldir@%$tooldir%g
7569 s%@build_tooldir@%$build_tooldir%g
7570 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7571 s%@GDB_TK@%$GDB_TK%g
7572 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7573 s%@build_configargs@%$build_configargs%g
7574 s%@build_configdirs@%$build_configdirs%g
7575 s%@host_configargs@%$host_configargs%g
7576 s%@configdirs@%$configdirs%g
7577 s%@target_configargs@%$target_configargs%g
7578 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7579 s%@config_shell@%$config_shell%g
7585 s%@MAKEINFO@%$MAKEINFO%g
7586 s%@EXPECT@%$EXPECT%g
7587 s%@RUNTEST@%$RUNTEST%g
7590 s%@DLLTOOL@%$DLLTOOL%g
7594 s%@RANLIB@%$RANLIB%g
7596 s%@WINDRES@%$WINDRES%g
7597 s%@OBJCOPY@%$OBJCOPY%g
7598 s%@OBJDUMP@%$OBJDUMP%g
7600 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7601 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7602 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7603 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7604 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7605 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7606 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7607 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7608 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7609 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7610 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7611 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7612 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7613 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7614 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7615 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7616 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7617 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7618 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7619 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7620 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7621 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7622 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7624 s%@stage1_cflags@%$stage1_cflags%g
7625 s%@stage2_werror_flag@%$stage2_werror_flag%g
7626 s%@datarootdir@%$datarootdir%g
7627 s%@docdir@%$docdir%g
7628 s%@htmldir@%$htmldir%g
7633 cat >> $CONFIG_STATUS <<\EOF
7635 # Split the substitutions into bite-sized pieces for seds with
7636 # small command number limits, like on Digital OSF/1 and HP-UX.
7637 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7638 ac_file=1 # Number of current file.
7639 ac_beg=1 # First line for current file.
7640 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7643 while $ac_more_lines; do
7644 if test $ac_beg -gt 1; then
7645 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7647 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7649 if test ! -s conftest.s$ac_file; then
7651 rm -f conftest.s$ac_file
7653 if test -z "$ac_sed_cmds"; then
7654 ac_sed_cmds="sed -f conftest.s$ac_file"
7656 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7658 ac_file=`expr $ac_file + 1`
7660 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7663 if test -z "$ac_sed_cmds"; then
7668 cat >> $CONFIG_STATUS <<EOF
7670 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7672 cat >> $CONFIG_STATUS <<\EOF
7673 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7674 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7676 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
7677 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
7678 *) ac_file_in="${ac_file}.in" ;;
7681 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7683 # Remove last slash and all that follows it. Not all systems have dirname.
7684 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7685 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7686 # The file is in a subdirectory.
7687 test ! -d "$ac_dir" && mkdir "$ac_dir"
7688 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
7689 # A "../" for each directory in $ac_dir_suffix.
7690 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
7692 ac_dir_suffix= ac_dots=
7695 case "$ac_given_srcdir" in
7697 if test -z "$ac_dots"; then top_srcdir=.
7698 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
7699 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7701 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7702 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7705 case "$ac_given_INSTALL" in
7706 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7707 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7710 echo creating "$ac_file"
7712 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
7714 *Makefile*) ac_comsub="1i\\
7715 # $configure_input" ;;
7719 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7721 s%@configure_input@%$configure_input%g
7722 s%@srcdir@%$srcdir%g
7723 s%@top_srcdir@%$top_srcdir%g
7724 s%@INSTALL@%$INSTALL%g
7725 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7730 cat >> $CONFIG_STATUS <<EOF
7733 cat >> $CONFIG_STATUS <<\EOF
7737 chmod +x $CONFIG_STATUS
7738 rm -fr confdefs* $ac_clean_files
7739 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1