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 Specify source directory for MPFR library"
23 --with-mpfr=PATH Specify directory for installed MPFR library"
25 --with-gmp-dir=PATH Specify source directory for GMP library"
27 --with-gmp=PATH Specify directory for installed GMP library"
29 --enable-objc-gc enable the use of Boehm's garbage collector with
30 the GNU Objective-C runtime."
32 --with-build-sysroot=sysroot
33 use sysroot as the system root during the build"
35 --enable-bootstrap Enable bootstrapping [yes if native build]"
37 --enable-serial-[{host,target,build}-]configure
38 Force sequential configuration of
39 sub-packages for the host, target or build
40 machine, or all sub-packages"
42 --with-build-time-tools=path
43 use given path to find target tools during the build"
45 --enable-maintainer-mode enable make rules and dependencies not useful
46 (and sometimes confusing) to the casual installer"
48 --enable-werror enable -Werror in bootstrap stage2 and later"
50 --with-datarootdir Use datarootdir as the data root directory."
52 --with-docdir Install documentation in this directory."
54 --with-htmldir Install html in this directory."
56 # Initialize some variables set by options.
57 # The variables have the same names as the options, with
58 # dashes changed to underlines.
60 cache_file
=.
/config.cache
69 program_transform_name
=s
,x
,x
,
77 bindir
='${exec_prefix}/bin'
78 sbindir
='${exec_prefix}/sbin'
79 libexecdir
='${exec_prefix}/libexec'
80 datadir
='${prefix}/share'
81 sysconfdir
='${prefix}/etc'
82 sharedstatedir
='${prefix}/com'
83 localstatedir
='${prefix}/var'
84 libdir
='${exec_prefix}/lib'
85 includedir
='${prefix}/include'
86 oldincludedir
='/usr/include'
87 infodir
='${prefix}/info'
88 mandir
='${prefix}/man'
90 # Initialize some other variables.
93 SHELL
=${CONFIG_SHELL-/bin/sh}
94 # Maximum number of lines to put in a shell here document.
101 # If the previous option needs an argument, assign it.
102 if test -n "$ac_prev"; then
103 eval "$ac_prev=\$ac_option"
109 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
113 # Accept the important Cygnus configure options, so we can diagnose typos.
117 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
119 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
120 bindir
="$ac_optarg" ;;
122 -build |
--build |
--buil |
--bui |
--bu)
124 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
125 build
="$ac_optarg" ;;
127 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
128 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
129 ac_prev
=cache_file
;;
130 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
131 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
132 cache_file
="$ac_optarg" ;;
134 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
136 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
138 datadir
="$ac_optarg" ;;
140 -disable-* |
--disable-*)
141 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}=no" ;;
149 -enable-* |
--enable-*)
150 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}='$ac_optarg'" ;;
162 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
163 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
164 |
--exec |
--exe |
--ex)
165 ac_prev
=exec_prefix
;;
166 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
167 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
168 |
--exec=* |
--exe=* |
--ex=*)
169 exec_prefix
="$ac_optarg" ;;
171 -gas |
--gas |
--ga |
--g)
172 # Obsolete; use --with-gas.
175 -help |
--help |
--hel |
--he)
176 # Omit some internal or obsolete options to make the list less imposing.
177 # This message is too long to be a string in the A/UX 3.1 sh.
179 Usage: configure [options] [host]
180 Options: [defaults in brackets after descriptions]
182 --cache-file=FILE cache test results in FILE
183 --help print this message
184 --no-create do not create output files
185 --quiet, --silent do not print \`checking...' messages
186 --version print the version of autoconf that created configure
187 Directory and file names:
188 --prefix=PREFIX install architecture-independent files in PREFIX
190 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
192 --bindir=DIR user executables in DIR [EPREFIX/bin]
193 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
194 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
195 --datadir=DIR read-only architecture-independent data in DIR
197 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
198 --sharedstatedir=DIR modifiable architecture-independent data in DIR
200 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
201 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
202 --includedir=DIR C header files in DIR [PREFIX/include]
203 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
204 --infodir=DIR info documentation in DIR [PREFIX/info]
205 --mandir=DIR man documentation in DIR [PREFIX/man]
206 --srcdir=DIR find the sources in DIR [configure dir or ..]
207 --program-prefix=PREFIX prepend PREFIX to installed program names
208 --program-suffix=SUFFIX append SUFFIX to installed program names
209 --program-transform-name=PROGRAM
210 run sed PROGRAM on installed program names
214 --build=BUILD configure for building on BUILD [BUILD=HOST]
215 --host=HOST configure for HOST [guessed]
216 --target=TARGET configure for TARGET [TARGET=HOST]
217 Features and packages:
218 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
219 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
220 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
221 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
222 --x-includes=DIR X include files are in DIR
223 --x-libraries=DIR X library files are in DIR
225 if test -n "$ac_help"; then
226 echo "--enable and --with options recognized:$ac_help"
230 -host |
--host |
--hos |
--ho)
232 -host=* |
--host=* |
--hos=* |
--ho=*)
235 -includedir |
--includedir |
--includedi |
--included |
--include \
236 |
--includ |
--inclu |
--incl |
--inc)
237 ac_prev
=includedir
;;
238 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
239 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
240 includedir
="$ac_optarg" ;;
242 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
244 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
245 infodir
="$ac_optarg" ;;
247 -libdir |
--libdir |
--libdi |
--libd)
249 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
250 libdir
="$ac_optarg" ;;
252 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
253 |
--libexe |
--libex |
--libe)
254 ac_prev
=libexecdir
;;
255 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
256 |
--libexe=* |
--libex=* |
--libe=*)
257 libexecdir
="$ac_optarg" ;;
259 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
260 |
--localstate |
--localstat |
--localsta |
--localst \
261 |
--locals |
--local |
--loca |
--loc |
--lo)
262 ac_prev
=localstatedir
;;
263 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
264 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
265 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
266 localstatedir
="$ac_optarg" ;;
268 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
270 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
271 mandir
="$ac_optarg" ;;
274 # Obsolete; use --without-fp.
277 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
281 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
282 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
285 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
286 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
287 |
--oldin |
--oldi |
--old |
--ol |
--o)
288 ac_prev
=oldincludedir
;;
289 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
290 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
291 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
292 oldincludedir
="$ac_optarg" ;;
294 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
296 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
297 prefix
="$ac_optarg" ;;
299 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
300 |
--program-pre |
--program-pr |
--program-p)
301 ac_prev
=program_prefix
;;
302 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
303 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
304 program_prefix
="$ac_optarg" ;;
306 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
307 |
--program-suf |
--program-su |
--program-s)
308 ac_prev
=program_suffix
;;
309 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
310 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
311 program_suffix
="$ac_optarg" ;;
313 -program-transform-name |
--program-transform-name \
314 |
--program-transform-nam |
--program-transform-na \
315 |
--program-transform-n |
--program-transform- \
316 |
--program-transform |
--program-transfor \
317 |
--program-transfo |
--program-transf \
318 |
--program-trans |
--program-tran \
319 |
--progr-tra |
--program-tr |
--program-t)
320 ac_prev
=program_transform_name
;;
321 -program-transform-name=* |
--program-transform-name=* \
322 |
--program-transform-nam=* |
--program-transform-na=* \
323 |
--program-transform-n=* |
--program-transform-=* \
324 |
--program-transform=* |
--program-transfor=* \
325 |
--program-transfo=* |
--program-transf=* \
326 |
--program-trans=* |
--program-tran=* \
327 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
328 program_transform_name
="$ac_optarg" ;;
330 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
331 |
-silent |
--silent |
--silen |
--sile |
--sil)
334 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
336 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
338 sbindir
="$ac_optarg" ;;
340 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
341 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
342 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
344 ac_prev
=sharedstatedir
;;
345 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
346 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
347 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
349 sharedstatedir
="$ac_optarg" ;;
351 -site |
--site |
--sit)
353 -site=* |
--site=* |
--sit=*)
356 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
358 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
359 srcdir
="$ac_optarg" ;;
361 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
362 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
363 ac_prev
=sysconfdir
;;
364 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
365 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
366 sysconfdir
="$ac_optarg" ;;
368 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
370 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
371 target
="$ac_optarg" ;;
373 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
376 -version |
--version |
--versio |
--versi |
--vers)
377 echo "configure generated by autoconf version 2.13"
381 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package
=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}='$ac_optarg'" ;;
393 -without-* |
--without-*)
394 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
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'`
400 eval "with_${ac_package}=no" ;;
403 # Obsolete; use --with-x.
406 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
407 |
--x-incl |
--x-inc |
--x-in |
--x-i)
408 ac_prev
=x_includes
;;
409 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
410 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
411 x_includes
="$ac_optarg" ;;
413 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
414 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
415 ac_prev
=x_libraries
;;
416 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
417 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
418 x_libraries
="$ac_optarg" ;;
420 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
424 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
425 echo "configure: warning: $ac_option: invalid host type" 1>&2
427 if test "x$nonopt" != xNONE
; then
428 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
436 if test -n "$ac_prev"; then
437 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
440 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
442 # File descriptor usage:
445 # 2 errors and warnings
446 # 3 some systems may open it to /dev/tty
447 # 4 used on the Kubota Titan
448 # 6 checking for... messages and results
449 # 5 compiler messages saved in config.log
450 if test "$silent" = yes; then
458 This file contains any messages produced by compilers while
459 running configure, to aid debugging if configure makes a mistake.
462 # Strip out --no-create and --no-recursion so they do not pile up.
463 # Also quote any args containing shell metacharacters.
468 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
469 |
--no-cr |
--no-c) ;;
470 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
471 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
472 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
473 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
474 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
479 # Only set these to C if already set. These must not be set unconditionally
480 # because not all systems understand e.g. LANG=C (notably SCO).
481 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
482 # Non-C LC_CTYPE values break the ctype check.
483 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
484 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
485 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
486 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
488 # confdefs.h avoids OS command line length limits that DEFS can exceed.
489 rm -rf conftest
* confdefs.h
490 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
493 # A filename unique to this package, relative to the directory that
494 # configure is in, which we can look for to find out if srcdir is correct.
495 ac_unique_file
=move-if-change
497 # Find the source files, if location was not specified.
498 if test -z "$srcdir"; then
499 ac_srcdir_defaulted
=yes
500 # Try the directory containing this script, then its parent.
502 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
503 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
505 if test ! -r $srcdir/$ac_unique_file; then
509 ac_srcdir_defaulted
=no
511 if test ! -r $srcdir/$ac_unique_file; then
512 if test "$ac_srcdir_defaulted" = yes; then
513 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
515 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
518 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
520 # Prefer explicitly selected file to automatically selected ones.
521 if test -z "$CONFIG_SITE"; then
522 if test "x$prefix" != xNONE
; then
523 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
525 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
528 for ac_site_file
in $CONFIG_SITE; do
529 if test -r "$ac_site_file"; then
530 echo "loading site script $ac_site_file"
535 if test -r "$cache_file"; then
536 echo "loading cache $cache_file"
539 echo "creating cache $cache_file"
544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
545 ac_cpp
='$CPP $CPPFLAGS'
546 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
547 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
548 cross_compiling
=$ac_cv_prog_cc_cross
552 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
553 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
554 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
561 ac_n
= ac_c
='\c' ac_t
=
567 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
568 if test -f $ac_dir/install-sh
; then
570 ac_install_sh
="$ac_aux_dir/install-sh -c"
572 elif test -f $ac_dir/install.sh
; then
574 ac_install_sh
="$ac_aux_dir/install.sh -c"
578 if test -z "$ac_aux_dir"; then
579 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
581 ac_config_guess
=$ac_aux_dir/config.guess
582 ac_config_sub
=$ac_aux_dir/config.sub
583 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
586 # Do some error checking and defaulting for the host and target type.
588 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
591 # 1. You are not allowed to specify --host, --target, and nonopt at the
593 # 2. Host defaults to nonopt.
594 # 3. If nonopt is not specified, then host defaults to the current host,
595 # as determined by config.guess.
596 # 4. Target and build default to nonopt.
597 # 5. If nonopt is not specified, then target and build default to host.
599 # The aliases save the names the user supplied, while $host etc.
600 # will get canonicalized.
601 case $host---$target---$nonopt in
602 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
603 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
607 # Make sure we can run config.sub.
608 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
609 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
612 echo $ac_n "checking host system type""... $ac_c" 1>&6
613 echo "configure:614: checking host system type" >&5
616 case "$host_alias" in
620 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
621 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
623 *) host_alias
=$nonopt ;;
627 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
628 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
629 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
630 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
631 echo "$ac_t""$host" 1>&6
633 echo $ac_n "checking target system type""... $ac_c" 1>&6
634 echo "configure:635: checking target system type" >&5
637 case "$target_alias" in
640 NONE
) target_alias
=$host_alias ;;
641 *) target_alias
=$nonopt ;;
645 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
646 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
647 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
648 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
649 echo "$ac_t""$target" 1>&6
651 echo $ac_n "checking build system type""... $ac_c" 1>&6
652 echo "configure:653: checking build system type" >&5
655 case "$build_alias" in
658 NONE
) build_alias
=$host_alias ;;
659 *) build_alias
=$nonopt ;;
663 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
664 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
665 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
666 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
667 echo "$ac_t""$build" 1>&6
669 test "$host_alias" != "$target_alias" &&
670 test "$program_prefix$program_suffix$program_transform_name" = \
672 program_prefix
=${target_alias}-
674 if test "$program_transform_name" = s
,x
,x
,; then
675 program_transform_name
=
677 # Double any \ or $. echo might interpret backslashes.
678 cat <<\EOF_SED
> conftestsed
679 s
,\\,\\\\,g
; s
,\$
,$$
,g
681 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
684 test "$program_prefix" != NONE
&&
685 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
686 # Use a double $ so make ignores it.
687 test "$program_suffix" != NONE
&&
688 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
690 # sed with no file args requires a program.
691 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
694 # Get 'install' or 'install-sh' and its variants.
695 # Find a good install program. We prefer a C program (faster),
696 # so one script is as good as another. But avoid the broken or
697 # incompatible versions:
698 # SysV /etc/install, /usr/sbin/install
699 # SunOS /usr/etc/install
702 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
703 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
704 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
705 # ./install, which can be erroneously created by make from ./install.sh.
706 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
707 echo "configure:708: checking for a BSD compatible install" >&5
708 if test -z "$INSTALL"; then
709 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
710 echo $ac_n "(cached) $ac_c" 1>&6
712 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
713 for ac_dir
in $PATH; do
714 # Account for people who put trailing slashes in PATH elements.
716 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
718 # OSF1 and SCO ODT 3.0 have their own names for install.
719 # Don't use installbsd from OSF since it installs stuff as root
721 for ac_prog
in ginstall scoinst
install; do
722 if test -f $ac_dir/$ac_prog; then
723 if test $ac_prog = install &&
724 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
725 # AIX install. It has an incompatible calling convention.
728 ac_cv_path_install
="$ac_dir/$ac_prog -c"
739 if test "${ac_cv_path_install+set}" = set; then
740 INSTALL
="$ac_cv_path_install"
742 # As a last resort, use the slow shell script. We don't cache a
743 # path for INSTALL within a source directory, because that will
744 # break other packages using the cache if that directory is
745 # removed, or if the path is relative.
746 INSTALL
="$ac_install_sh"
749 echo "$ac_t""$INSTALL" 1>&6
751 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
752 # It thinks the first close brace ends the variable substitution.
753 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
755 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
757 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
759 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
760 echo "configure:761: checking whether ln works" >&5
761 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
766 if ln conftestdata_f conftestdata_t
2>/dev
/null
772 rm -f conftestdata_f conftestdata_t
775 if test $acx_cv_prog_LN = no
; then
777 echo "$ac_t""no, using $LN" 1>&6
780 echo "$ac_t""yes" 1>&6
783 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
784 echo "configure:785: checking whether ln -s works" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
789 if ln -s X conftestdata
2>/dev
/null
792 ac_cv_prog_LN_S
="ln -s"
797 LN_S
="$ac_cv_prog_LN_S"
798 if test "$ac_cv_prog_LN_S" = "ln -s"; then
799 echo "$ac_t""yes" 1>&6
801 echo "$ac_t""no" 1>&6
805 ### we might need to use some other shell than /bin/sh for running subshells
806 ### If we are on Windows, search for the shell. This will permit people
807 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
808 ### without also having to set CONFIG_SHELL. This code will work when
809 ### using bash, which sets OSTYPE.
812 if test x
${CONFIG_SHELL} = x
; then
813 if test ! -f /bin
/sh
; then
814 if test x
${SHELL} != x
&& test -f ${SHELL} ; then
815 CONFIG_SHELL
=${SHELL}
818 for prog
in sh sh.exe bash bash.exe
; do
819 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
821 test -z "$dir" && dir
=.
822 if test -f $dir/$prog; then
823 CONFIG_SHELL
=$dir/$prog
829 test -n "${CONFIG_SHELL}" && break
837 config_shell
=${CONFIG_SHELL-/bin/sh}
840 # if PWD already has a value, it is probably wrong.
841 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
843 # Export original configure arguments for use by sub-configures. These
844 # will be expanded by make, so quote '$'.
846 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
849 TOPLEVEL_CONFIGURE_ARGUMENTS
=`cat conftestsed.out`
850 rm -f conftestsed.out
853 moveifchange
=${srcdir}/move-if-change
855 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
857 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
859 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
860 INSTALL
="${srcpwd}/install-sh -c"
863 # Set srcdir to "." if that's what it is.
864 # This is important for multilib support.
866 if test "${pwd}" = "${srcpwd}" ; then
874 ### To add a new directory to the tree, first choose whether it is a target
875 ### or a host dependent tool. Then put it into the appropriate list
876 ### (library or tools, host or target), doing a dependency sort.
878 # Subdirs will be configured in the order listed in build_configdirs,
879 # configdirs, or target_configdirs; see the serialization section below.
881 # Dependency sorting is only needed when *configuration* must be done in
882 # a particular order. In all cases a dependency should be specified in
883 # the Makefile, whether or not it's implicitly specified here.
885 # Double entries in build_configdirs, configdirs, or target_configdirs may
886 # cause circular dependencies and break everything horribly.
888 # these library is used by various programs built for the build
891 build_libs
="build-libiberty"
893 # these tools are built for the build environment
894 build_tools
="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
896 # these libraries are used by various programs built for the host environment
898 host_libs
="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
900 # these tools are built for the host environment
901 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
902 # know that we are building the simulator.
903 # binutils, gas and ld appear in that order because it makes sense to run
904 # "make check" in that particular order.
905 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"
907 # libgcj represents the runtime libraries only used by gcj.
908 libgcj
="target-libffi \
913 # these libraries are built for the target environment, and are built after
914 # the host libraries and the host tools (which may be a cross compiler)
916 target_libraries
="target-libiberty \
919 target-libstdc++-v3 \
929 # these tools are built using the target libraries, and are intended to
930 # run only in the target environment
932 # note: any program that *uses* libraries that are in the "target_libraries"
933 # list belongs in this list. those programs are also very likely
934 # candidates for the "native_only" list which follows
936 target_tools
="target-examples target-groff target-gperf target-rda"
938 ################################################################################
940 ## All tools belong in one of the four categories, and are assigned above
941 ## We assign ${configdirs} this way to remove all embedded newlines. This
942 ## is important because configure will choke if they ever get through.
943 ## ${configdirs} is directories we build using the host tools.
944 ## ${target_configdirs} is directories we build using the target tools.
945 configdirs
=`echo ${host_libs} ${host_tools}`
946 target_configdirs
=`echo ${target_libraries} ${target_tools}`
947 build_configdirs
=`echo ${build_libs} ${build_tools}`
949 ################################################################################
951 srcname
="gnu development package"
953 # This gets set non-empty for some net releases of packages.
956 # Define is_cross_compiler to save on calls to 'test'.
958 if test x
"${host}" = x
"${target}" ; then
961 is_cross_compiler
=yes
964 # Find the build and target subdir names.
965 case ${build_alias} in
966 "") build_noncanonical
=${build} ;;
967 *) build_noncanonical
=${build_alias} ;;
970 case ${host_alias} in
971 "") host_noncanonical
=${build_noncanonical} ;;
972 *) host_noncanonical
=${host_alias} ;;
975 case ${target_alias} in
976 "") target_noncanonical
=${host_noncanonical} ;;
977 *) target_noncanonical
=${target_alias} ;;
981 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
982 # have matching libraries, they should use host libraries: Makefile.tpl
983 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
984 # However, they still use the build modules, because the corresponding
985 # host modules (e.g. bison) are only built for the host when bootstrap
987 # - build_subdir is where we find build modules, and never changes.
988 # - build_libsubdir is where we find build libraries, and can be overridden.
990 # Prefix 'build-' so this never conflicts with target_subdir.
991 build_subdir
="build-${build_noncanonical}"
992 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
993 if test "${with_build_libsubdir+set}" = set; then
994 withval
="$with_build_libsubdir"
995 build_libsubdir
="$withval"
997 build_libsubdir
="$build_subdir"
1000 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1001 if ( test $srcdir = .
&& test -d gcc
) \
1002 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
1003 host_subdir
="host-${host_noncanonical}"
1008 target_subdir
=${target_noncanonical}
1011 # Skipdirs are removed silently.
1013 # Noconfigdirs are removed loudly.
1017 # Make sure we don't let GNU ld be added if we didn't want it.
1018 if test x
$with_gnu_ld = xno
; then
1020 noconfigdirs
="$noconfigdirs ld"
1024 # Make sure we don't let GNU as be added if we didn't want it.
1025 if test x
$with_gnu_as = xno
; then
1027 noconfigdirs
="$noconfigdirs gas"
1030 # some tools are so dependent upon X11 that if we're not building with X,
1031 # it's not even worth trying to configure, much less build, that tool.
1034 yes |
"") ;; # the default value for this tree is that X11 is available
1036 skipdirs
="${skipdirs} tk itcl libgui"
1037 # We won't be able to build gdbtk without X.
1040 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1043 # Some tools are only suitable for building in a "native" situation.
1044 # Remove these if host!=target.
1045 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"
1047 # Similarly, some are only suitable for cross toolchains.
1048 # Remove these if host=target.
1049 cross_only
="target-libgloss target-newlib target-opcodes"
1051 case $is_cross_compiler in
1052 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
1053 yes) skipdirs
="${skipdirs} ${native_only}" ;;
1056 # If both --with-headers and --with-libs are specified, default to
1058 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
1059 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
1060 if test x
"${with_newlib}" = x
; then
1065 # Recognize --with-newlib/--without-newlib.
1066 case ${with_newlib} in
1067 no
) skipdirs
="${skipdirs} target-newlib" ;;
1068 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1071 # Configure extra directories which are host specific
1075 configdirs
="$configdirs libtermcap" ;;
1078 # A target can indicate whether a language isn't supported for some reason.
1079 # Only spaces may be used in this macro; not newlines or tabs.
1080 unsupported_languages
=
1082 # Remove more programs from consideration, based on the host or
1083 # target this usually means that a port of the program doesn't
1088 noconfigdirs
="$noconfigdirs byacc"
1090 i
[3456789]86-*-vsta)
1091 noconfigdirs
="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1093 i
[3456789]86-*-go32* | i
[3456789]86-*-msdosdjgpp*)
1094 noconfigdirs
="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1096 i
[3456789]86-*-mingw32*)
1097 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1098 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1100 i
[3456789]86-*-beos*)
1101 noconfigdirs
="$noconfigdirs tk itcl libgui gdb"
1104 noconfigdirs
="$noconfigdirs autoconf automake send-pr rcs guile perl"
1107 noconfigdirs
="$noconfigdirs rcs"
1110 noconfigdirs
="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1113 noconfigdirs
="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1118 # Check whether --enable-libada or --disable-libada was given.
1119 if test "${enable_libada+set}" = set; then
1120 enableval
="$enable_libada"
1121 ENABLE_LIBADA
=$enableval
1126 if test "${ENABLE_LIBADA}" != "yes" ; then
1127 noconfigdirs
="$noconfigdirs gnattools"
1130 # Check whether --enable-libssp or --disable-libssp was given.
1131 if test "${enable_libssp+set}" = set; then
1132 enableval
="$enable_libssp"
1133 ENABLE_LIBSSP
=$enableval
1139 # Save it here so that, even in case of --enable-libgcj, if the Java
1140 # front-end isn't enabled, we still get libgcj disabled.
1141 libgcj_saved
=$libgcj
1142 case $enable_libgcj in
1144 # If we reset it here, it won't get added to noconfigdirs in the
1145 # target-specific build rules, so it will be forcibly enabled
1146 # (unless the Java language itself isn't enabled).
1150 # Make sure we get it printed in the list of not supported target libs.
1151 noconfigdirs
="$noconfigdirs ${libgcj}"
1156 # Disable libmudflap on some systems.
1157 if test x
$enable_libmudflap = x
; then
1159 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1160 # Enable libmudflap by default in GNU and friends.
1163 # Enable libmudflap by default in FreeBSD.
1166 # Disable it by default everywhere else.
1167 noconfigdirs
="$noconfigdirs target-libmudflap"
1172 # Disable libgomp on non POSIX hosted systems.
1173 if test x
$enable_libgomp = x
; then
1174 # Enable libgomp by default on hosted POSIX systems.
1176 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1178 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd*)
1180 *-*-solaris2* |
*-*-sysv4* |
*-*-irix6* |
*-*-osf* |
*-*-hpux11*)
1182 *-*-darwin* |
*-*-aix*)
1185 noconfigdirs
="$noconfigdirs target-libgomp"
1193 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1196 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1197 noconfigdirs
="$noconfigdirs sim target-rda"
1200 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
1201 noconfigdirs
="$noconfigdirs sim target-rda"
1202 noconfigdirs
="$noconfigdirs ${libgcj}"
1204 *-*-freebsd[12] |
*-*-freebsd[12].
* |
*-*-freebsd*aout
*)
1205 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1208 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1209 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
1210 && test -f /usr
/local
/include
/gmp.h
; then
1214 # Skip some stuff that's unsupported on some FreeBSD configurations.
1219 noconfigdirs
="$noconfigdirs ${libgcj}"
1224 # Remove unsupported stuff on all kaOS configurations.
1225 skipdirs
="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1226 skipdirs
="$skipdirs target-libobjc target-examples target-groff target-gperf"
1227 skipdirs
="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1228 noconfigdirs
="$noconfigdirs target-libgloss"
1231 # Skip some stuff on all NetBSD configurations.
1232 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss"
1234 # Skip some stuff that's unsupported on some NetBSD configurations.
1236 i
*86-*-netbsdelf*) ;;
1237 arm
*-*-netbsdelf*) ;;
1239 noconfigdirs
="$noconfigdirs ${libgcj}"
1244 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1247 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1249 # The tpf target doesn't support gdb yet.
1251 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1254 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1257 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1260 # ld works, but does not support shared libraries.
1261 # newlib is not 64 bit ready. I'm not sure about fileutils.
1262 # gas doesn't generate exception information.
1263 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1266 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1269 # newlib is not 64 bit ready
1270 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1273 # newlib is not 64 bit ready
1274 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1277 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1280 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1282 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
1283 noconfigdirs
="$noconfigdirs ${libgcj}"
1284 noconfigdirs
="$noconfigdirs target-examples"
1285 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
1286 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
1287 noconfigdirs
="$noconfigdirs expect dejagnu"
1288 # the C++ libraries don't build on top of CE's C libraries
1289 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1290 noconfigdirs
="$noconfigdirs target-newlib"
1292 *-*-cygwin*) ;; # keep gdb and readline
1293 *) noconfigdirs
="$noconfigdirs gdb readline"
1298 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1302 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
1303 noconfigdirs
="$noconfigdirs ${libgcj}"
1305 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf* | arm
*-*-eabi* )
1306 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1308 arm
*-*-linux-gnueabi)
1309 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1310 noconfigdirs
="$noconfigdirs target-libjava target-libobjc"
1313 noconfigdirs
="$noconfigdirs ${libgcj} target-libiberty"
1316 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1319 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1322 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1325 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1328 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1331 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1334 noconfigdirs
="$noconfigdirs gdb"
1335 if test x
${is_cross_compiler} != xno
; then
1336 target_configdirs
="${target_configdirs} target-bsp target-cygmon"
1339 c4x-
*-* | tic4x-
*-*)
1340 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1342 c54x
*-*-* | tic54x-
*-*)
1343 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1345 cris-
*-* | crisv32-
*-*)
1346 unsupported_languages
="$unsupported_languages java"
1349 unsupported_languages
="$unsupported_languages fortran"
1350 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc";;
1352 unsupported_languages
="$unsupported_languages fortran"
1353 noconfigdirs
="$noconfigdirs target-boehm-gc";;
1355 noconfigdirs
="$noconfigdirs target-newlib target-libgloss";;
1357 unsupported_languages
="$unsupported_languages fortran"
1358 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1362 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1365 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1368 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1371 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1374 noconfigdirs
="$noconfigdirs ${libgcj}"
1377 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1380 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1382 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
1384 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
1385 # In this case, it's because the hppa64-linux target is for
1386 # the kernel only at this point and has no libc, and thus no
1387 # headers, crt*.o, etc., all of which are needed by these.
1388 noconfigdirs
="$noconfigdirs target-zlib"
1390 parisc
*-*-linux* | hppa
*-*-linux*)
1394 hppa
*-*-openbsd* | \
1396 noconfigdirs
="$noconfigdirs ${libgcj}"
1399 noconfigdirs
="$noconfigdirs ld shellutils"
1402 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1403 # build on HP-UX 10.20.
1404 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
1407 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1410 # No gdb support yet.
1411 noconfigdirs
="$noconfigdirs readline mmalloc libgui itcl gdb"
1414 # No gdb or ld support yet.
1415 noconfigdirs
="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1419 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
1420 noconfigdirs
="$noconfigdirs ${libgcj}"
1422 i
[3456789]86-*-linux*)
1423 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1424 # not build java stuff by default.
1427 noconfigdirs
="$noconfigdirs ${libgcj}";;
1430 # This section makes it possible to build newlib natively on linux.
1431 # If we are using a cross compiler then don't configure newlib.
1432 if test x
${is_cross_compiler} != xno
; then
1433 noconfigdirs
="$noconfigdirs target-newlib"
1435 noconfigdirs
="$noconfigdirs target-libgloss"
1436 # If we are not using a cross compiler, do configure newlib.
1437 # Note however, that newlib will only be configured in this situation
1438 # if the --with-newlib option has been given, because otherwise
1439 # 'target-newlib' will appear in skipdirs.
1441 i
[3456789]86-*-mingw32*)
1442 target_configdirs
="$target_configdirs target-winsup"
1443 noconfigdirs
="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1446 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
1447 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1448 # always build newlib if winsup directory is present.
1449 if test -d "$srcdir/winsup/cygwin"; then
1450 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1451 elif test -d "$srcdir/newlib"; then
1452 echo "Warning: winsup/cygwin is missing so newlib can't be built."
1455 i
[3456789]86-moss-msdos | i
[3456789]86-*-moss* | \
1456 i
[3456789]86-*-uwin* | i
[3456789]86-*-interix* )
1459 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1461 i
[3456789]86-*-sco3.2v5
*)
1462 # The linker does not yet know about weak symbols in COFF,
1463 # and is not configured to handle mixed ELF and COFF.
1464 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1466 i
[3456789]86-*-sco*)
1467 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1469 i
[3456789]86-*-solaris2*)
1470 noconfigdirs
="$noconfigdirs target-libgloss"
1472 i
[3456789]86-*-sysv4*)
1473 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1475 i
[3456789]86-*-beos*)
1476 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1478 i
[3456789]86-*-rdos*)
1479 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1482 noconfigdirs
="$noconfigdirs ${libgcj}"
1484 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
1485 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1488 noconfigdirs
="$noconfigdirs ${libgcj}"
1491 noconfigdirs
="$noconfigdirs ${libgcj}"
1494 # The EPOC C++ environment does not support exceptions or rtti,
1495 # and so building libstdc++-v3 tends not to always work.
1496 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1499 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1500 unsupported_languages
="$unsupported_languages fortran java"
1503 noconfigdirs
="$noconfigdirs ${libgcj}"
1506 noconfigdirs
="$noconfigdirs ${libgcj}"
1509 noconfigdirs
="$noconfigdirs sim"
1512 # copied from rs6000-*-* entry
1513 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1515 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
1516 target_configdirs
="$target_configdirs target-winsup"
1517 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1518 # always build newlib.
1519 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1521 # This is temporary until we can link against shared libraries
1522 powerpcle-
*-solaris*)
1523 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1526 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1529 noconfigdirs
="$noconfigdirs ${libgcj}"
1531 powerpc-
*-eabi* | powerpcle-
*-eabi* | powerpc-
*-rtems* )
1534 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
1537 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1540 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1543 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1546 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1549 # Linking libjava exceeds command-line length limits on at least
1550 # IRIX 6.2, but not on IRIX 6.5.
1551 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1552 # <oldham@codesourcery.com>
1553 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1556 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1559 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1562 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1565 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1568 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1572 i
[3456789]86-*-vsta) ;; # don't add gprof back in
1573 i
[3456789]86-*-go32*) ;; # don't add gprof back in
1574 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1575 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1577 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1580 noconfigdirs
="$noconfigdirs ${libgcj}"
1583 noconfigdirs
="$noconfigdirs ${libgcj}"
1586 noconfigdirs
="$noconfigdirs ${libgcj}"
1589 noconfigdirs
="$noconfigdirs ${libgcj}"
1590 if test x
${is_cross_compiler} != xno
; then
1591 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1596 sparc-
*-solaris2.
[0-6] | sparc-
*-solaris2.
[0-6].
*)
1597 noconfigdirs
="$noconfigdirs ${libgcj}"
1599 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
1602 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1605 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1608 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1611 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1614 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1617 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1620 noconfigdirs
="$noconfigdirs ${libgcj}"
1623 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1625 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1626 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1629 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1632 noconfigdirs
="$noconfigdirs ${libgcj}"
1636 # If we aren't building newlib, then don't build libgloss, since libgloss
1637 # depends upon some newlib header files.
1638 case "${noconfigdirs}" in
1639 *target-libgloss
*) ;;
1640 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
1643 # Work in distributions that contain no compiler tools, like Autoconf.
1645 host_makefile_frag
=/dev
/null
1646 if test -d ${srcdir}/config
; then
1649 # Avoid "too much defining" errors from HPUX compiler.
1650 tentative_cc
="cc -Wp,-H256000"
1651 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1652 # If it's HP/UX ar, this should be harmless.
1656 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1659 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1660 # chokes on bfd, the compiler won't let you assign integers to enums, and
1661 # other problems. Defining CC to gcc is a questionable way to say "don't use
1662 # the apollo compiler" (the preferred version of GCC could be called cc,
1663 # or whatever), but I'm not sure leaving CC as cc is any better...
1664 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1665 # Used to have BISON=yacc.
1669 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1672 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1673 tentative_cc
="cc -Xa"
1674 host_makefile_frag
="config/mh-cxux"
1676 m88k-motorola-sysv
*)
1679 tentative_cc
="cc -Wf,-XNg1000"
1680 host_makefile_frag
="config/mh-decstation"
1683 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1684 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
1685 host_makefile_frag
="config/mh-necv4"
1688 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1689 # environment. Also bump switch table size so that cp-parse will
1690 # compile. Bump string length limit so linker builds.
1691 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1694 host_makefile_frag
="config/mh-sysv4"
1697 # This is for a MIPS running RISC/os 4.52C.
1699 # This is needed for GDB, but needs to be in the top-level make because
1700 # if a library is compiled with the bsd headers and gets linked with the
1701 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1702 # a different size).
1703 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1704 # known except to select the sysv environment. Could we use /proc instead?
1705 # These "sysv environments" and "bsd environments" often end up being a pain.
1707 # This is not part of CFLAGS because perhaps not all C compilers have this
1709 tentative_cc
="cc -systype sysv"
1714 i
[3456789]86-*-sysv5*)
1715 host_makefile_frag
="config/mh-sysv5"
1717 i
[3456789]86-*-dgux*)
1718 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1719 host_makefile_frag
="config/mh-dgux386"
1721 i
[3456789]86-ncr-sysv4.3
*)
1722 # The MetaWare compiler will generate a copyright message unless you
1723 # turn it off by adding the -Hnocopyr flag.
1724 tentative_cc
="cc -Hnocopyr"
1726 i
[3456789]86-ncr-sysv4*)
1727 # for an NCR 3000 (i486/SVR4) system.
1728 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1729 # This compiler not only emits obnoxious copyright messages every time
1730 # you run it, but it chokes and dies on a whole bunch of GNU source
1731 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1732 tentative_cc
="/usr/ccs/ATT/cc"
1733 host_makefile_frag
="config/mh-ncr3000"
1735 i
[3456789]86-*-sco3.2v5
*)
1737 i
[3456789]86-*-sco*)
1738 # The native C compiler botches some simple uses of const. Unfortunately,
1739 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1740 tentative_cc
="cc -Dconst="
1741 host_makefile_frag
="config/mh-sco"
1743 i
[3456789]86-*-udk*)
1744 host_makefile_frag
="config/mh-sysv5"
1746 i
[3456789]86-*-solaris2*)
1747 host_makefile_frag
="config/mh-sysv4"
1749 i
[3456789]86-*-msdosdjgpp*)
1750 host_makefile_frag
="config/mh-djgpp"
1753 host_makefile_frag
="config/mh-cygwin"
1758 host_makefile_frag
="config/mh-interix"
1761 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1765 host_makefile_frag
="config/mh-solaris"
1768 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1769 # without overflowing the jump tables (-J says to use a 32 bit table)
1770 tentative_cc
="cc -J"
1773 tentative_cc
="cc -Wp,-H256000"
1776 tentative_cc
="cc -Wp,-H256000"
1779 # /bin/cc is less than useful for our purposes. Always use GCC
1780 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
1781 host_makefile_frag
="config/mh-lynxrs6k"
1784 host_makefile_frag
="config/mh-ppc-darwin"
1787 host_makefile_frag
="config/mh-ppc-aix"
1790 host_makefile_frag
="config/mh-ppc-aix"
1793 # /bin/cc is less than useful for our purposes. Always use GCC
1794 tentative_cc
="/bin/gcc"
1797 host_makefile_frag
="config/mh-sysv4"
1799 # This is placed last to prevent interfering with the cases above.
1801 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1802 host_makefile_frag
="config/mh-x86omitfp"
1807 # If we aren't going to be using gcc, see if we can extract a definition
1808 # of CC from the fragment.
1809 # Actually, use the 'pre-extracted' version above.
1810 if test -z "${CC}" && test "${build}" = "${host}" ; then
1811 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1813 for dir
in $PATH; do
1814 test -z "$dir" && dir
=.
1815 if test -f $dir/gcc
; then
1821 if test -z "${found}" && test -n "${tentative_cc}" ; then
1826 if test "${build}" != "${host}" ; then
1827 # If we are doing a Canadian Cross, in which the host and build systems
1828 # are not the same, we set reasonable default values for the tools.
1830 CC
=${CC-${host_alias}-gcc}
1831 CFLAGS
=${CFLAGS-"-g -O2"}
1832 CXX
=${CXX-${host_alias}-c++}
1833 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1834 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1837 # Set reasonable default values for some tools even if not Canadian.
1838 # Of course, these are different reasonable default values, originally
1839 # specified directly in the Makefile.
1840 # We don't export, so that autoconf can do its job.
1841 # Note that all these settings are above the fragment inclusion point
1842 # in Makefile.in, so can still be overridden by fragments.
1843 # This is all going to change when we autoconfiscate...
1845 CC_FOR_BUILD
="\$(CC)"
1846 # Extract the first word of "gcc", so it can be a program name with args.
1847 set dummy gcc
; ac_word
=$2
1848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_word" >&5
1850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 if test -n "$CC"; then
1854 ac_cv_prog_CC
="$CC" # Let the user override the test.
1856 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1858 for ac_dir
in $ac_dummy; do
1859 test -z "$ac_dir" && ac_dir
=.
1860 if test -f $ac_dir/$ac_word; then
1869 if test -n "$CC"; then
1870 echo "$ac_t""$CC" 1>&6
1872 echo "$ac_t""no" 1>&6
1875 if test -z "$CC"; then
1876 # Extract the first word of "cc", so it can be a program name with args.
1877 set dummy cc
; ac_word
=$2
1878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1879 echo "configure:1880: checking for $ac_word" >&5
1880 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 if test -n "$CC"; then
1884 ac_cv_prog_CC
="$CC" # Let the user override the test.
1886 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1889 for ac_dir
in $ac_dummy; do
1890 test -z "$ac_dir" && ac_dir
=.
1891 if test -f $ac_dir/$ac_word; then
1892 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1893 ac_prog_rejected
=yes
1901 if test $ac_prog_rejected = yes; then
1902 # We found a bogon in the path, so make sure we never use it.
1903 set dummy
$ac_cv_prog_CC
1905 if test $# -gt 0; then
1906 # We chose a different compiler from the bogus one.
1907 # However, it has the same basename, so the bogon will be chosen
1908 # first if we set CC to just the basename; use the full file name.
1910 set dummy
"$ac_dir/$ac_word" "$@"
1918 if test -n "$CC"; then
1919 echo "$ac_t""$CC" 1>&6
1921 echo "$ac_t""no" 1>&6
1924 if test -z "$CC"; then
1925 case "`uname -s`" in
1927 # Extract the first word of "cl", so it can be a program name with args.
1928 set dummy cl
; ac_word
=$2
1929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1930 echo "configure:1931: checking for $ac_word" >&5
1931 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC
="$CC" # Let the user override the test.
1937 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1939 for ac_dir
in $ac_dummy; do
1940 test -z "$ac_dir" && ac_dir
=.
1941 if test -f $ac_dir/$ac_word; then
1950 if test -n "$CC"; then
1951 echo "$ac_t""$CC" 1>&6
1953 echo "$ac_t""no" 1>&6
1958 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1962 echo "configure:1963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1965 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1966 ac_cpp
='$CPP $CPPFLAGS'
1967 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1968 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1969 cross_compiling
=$ac_cv_prog_cc_cross
1971 cat > conftest.
$ac_ext << EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1978 if { (eval echo configure
:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1979 ac_cv_prog_cc_works
=yes
1980 # If we can't run a trivial program, we are probably using a cross compiler.
1981 if (.
/conftest
; exit) 2>/dev
/null
; then
1982 ac_cv_prog_cc_cross
=no
1984 ac_cv_prog_cc_cross
=yes
1987 echo "configure: failed program was:" >&5
1988 cat conftest.
$ac_ext >&5
1989 ac_cv_prog_cc_works
=no
1993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1994 ac_cpp
='$CPP $CPPFLAGS'
1995 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1996 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1997 cross_compiling
=$ac_cv_prog_cc_cross
1999 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2000 if test $ac_cv_prog_cc_works = no
; then
2001 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2003 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2004 echo "configure:2005: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2005 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2006 cross_compiling
=$ac_cv_prog_cc_cross
2008 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2009 echo "configure:2010: checking whether we are using GNU C" >&5
2010 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 cat > conftest.c
<<EOF
2018 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2025 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2027 if test $ac_cv_prog_gcc = yes; then
2033 ac_test_CFLAGS
="${CFLAGS+set}"
2034 ac_save_CFLAGS
="$CFLAGS"
2036 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2037 echo "configure:2038: checking whether ${CC-cc} accepts -g" >&5
2038 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 echo 'void f(){}' > conftest.c
2042 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2051 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2052 if test "$ac_test_CFLAGS" = set; then
2053 CFLAGS
="$ac_save_CFLAGS"
2054 elif test $ac_cv_prog_cc_g = yes; then
2055 if test "$GCC" = yes; then
2061 if test "$GCC" = yes; then
2069 # We must set the default linker to the linker used by gcc for the correct
2070 # operation of libtool. If LD is not defined and we are using gcc, try to
2071 # set the LD default to the ld used by gcc.
2072 if test -z "$LD"; then
2073 if test "$GCC" = yes; then
2076 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2078 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
2080 case $gcc_prog_ld in
2081 # Accept absolute paths.
2082 [\\/]* |
[A-Za-z
]:[\\/]*)
2083 LD
="$gcc_prog_ld" ;;
2089 CFLAGS
=${CFLAGS-"-g"}
2090 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
2093 if test $host != $build; then
2094 ac_tool_prefix
=${host_alias}-
2101 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2102 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2104 echo "configure:2105: checking for $ac_word" >&5
2105 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2108 if test -n "$GNATBIND"; then
2109 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2111 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2113 for ac_dir
in $ac_dummy; do
2114 test -z "$ac_dir" && ac_dir
=.
2115 if test -f $ac_dir/$ac_word; then
2116 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2123 GNATBIND
="$ac_cv_prog_GNATBIND"
2124 if test -n "$GNATBIND"; then
2125 echo "$ac_t""$GNATBIND" 1>&6
2127 echo "$ac_t""no" 1>&6
2131 if test -z "$ac_cv_prog_GNATBIND"; then
2132 if test -n "$ac_tool_prefix"; then
2133 # Extract the first word of "gnatbind", so it can be a program name with args.
2134 set dummy gnatbind
; ac_word
=$2
2135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2136 echo "configure:2137: checking for $ac_word" >&5
2137 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2140 if test -n "$GNATBIND"; then
2141 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2143 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2145 for ac_dir
in $ac_dummy; do
2146 test -z "$ac_dir" && ac_dir
=.
2147 if test -f $ac_dir/$ac_word; then
2148 ac_cv_prog_GNATBIND
="gnatbind"
2153 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2156 GNATBIND
="$ac_cv_prog_GNATBIND"
2157 if test -n "$GNATBIND"; then
2158 echo "$ac_t""$GNATBIND" 1>&6
2160 echo "$ac_t""no" 1>&6
2168 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2169 echo "configure:2170: checking whether compiler driver understands Ada" >&5
2170 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 cat >conftest.adb
<<EOF
2174 procedure conftest is begin null; end conftest;
2176 acx_cv_cc_gcc_supports_ada
=no
2177 # There is a bug in old released versions of GCC which causes the
2178 # driver to exit successfully when the appropriate language module
2179 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2180 # Therefore we must check for the error message as well as an
2181 # unsuccessful exit.
2182 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2183 # given a .adb file, but produce no object file. So we must check
2184 # if an object file was really produced to guard against this.
2185 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2186 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
2187 acx_cv_cc_gcc_supports_ada
=yes
2192 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2194 if test x
$GNATBIND != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
2200 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2201 echo "configure:2202: checking how to compare bootstrapped objects" >&5
2202 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2207 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2208 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
2209 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
2212 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
2215 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2216 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2219 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
2226 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2227 do_compare
="$gcc_cv_prog_cmp_skip"
2231 # Check for GMP and MPFR
2235 # Specify a location for mpfr
2236 # check for this first so it ends up on the link line before gmp.
2237 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2238 if test "${with_mpfr_dir+set}" = set; then
2239 withval
="$with_mpfr_dir"
2244 if test "x$with_mpfr_dir" != x
; then
2245 gmpinc
="-I$with_mpfr_dir"
2246 gmplibs
="$with_mpfr_dir/libmpfr.a"
2251 # Check whether --with-mpfr or --without-mpfr was given.
2252 if test "${with_mpfr+set}" = set; then
2253 withval
="$with_mpfr"
2258 if test "x$with_mpfr" != x
; then
2259 gmplibs
="-L$with_mpfr/lib $gmplibs"
2260 gmpinc
="-I$with_mpfr/include"
2263 # Specify a location for gmp
2264 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2265 if test "${with_gmp_dir+set}" = set; then
2266 withval
="$with_gmp_dir"
2271 if test "x$with_gmp_dir" != x
; then
2272 gmpinc
="$gmpinc -I$with_gmp_dir"
2273 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2274 gmplibs
="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2275 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2276 gmplibs
="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2278 # One of the later tests will catch the error if neither library is present.
2280 gmplibs
="$gmplibs -lgmp"
2283 # Check whether --with-gmp or --without-gmp was given.
2284 if test "${with_gmp+set}" = set; then
2290 if test "x$with_gmp" != x
; then
2291 gmplibs
="-L$with_gmp/lib $gmplibs"
2292 gmpinc
="-I$with_gmp/include $gmpinc"
2295 saved_CFLAGS
="$CFLAGS"
2296 CFLAGS
="$CFLAGS $gmpinc"
2297 # Check GMP actually works
2298 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2299 echo "configure:2300: checking for correct version of gmp.h" >&5
2300 cat > conftest.
$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2306 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
2312 if { (eval echo configure
:2313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2314 echo "$ac_t""yes" 1>&6
2316 echo "configure: failed program was:" >&5
2317 cat conftest.
$ac_ext >&5
2319 echo "$ac_t""no" 1>&6; have_gmp
=no
2323 if test x
"$have_gmp" = xyes
; then
2325 LIBS
="$LIBS $gmplibs"
2326 echo $ac_n "checking for correct version of mpfr.h""... $ac_c" 1>&6
2327 echo "configure:2328: checking for correct version of mpfr.h" >&5
2328 cat > conftest.
$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2335 #if MPFR_VERSION_MAJOR < 2 || (MPFR_VERSION_MAJOR == 2 && MPFR_VERSION_MINOR < 2)
2338 mpfr_t n; mpfr_init(n);
2342 if { (eval echo configure
:2343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2344 echo "$ac_t""yes" 1>&6
2346 echo "configure: failed program was:" >&5
2347 cat conftest.
$ac_ext >&5
2349 echo "$ac_t""no" 1>&6; have_gmp
=no
2354 CFLAGS
="$saved_CFLAGS"
2356 if test -d ${srcdir}/gcc
&& test x
$have_gmp != xyes
; then
2357 { echo "configure: error: Building GCC requires GMP 4.1+ and MPFR 2.2+.
2358 Try the --with-gmp and/or --with-mpfr options to specify their locations.
2359 Copies of these libraries' source code can be found at their respective
2360 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
2361 See also http://gcc.gnu.org/install/prerequisites.html for additional info." 1>&2; exit 1; }
2364 # Flags needed for both GMP and/or MPFR
2368 # By default, C is the only stage 1 language.
2372 # Figure out what language subdirectories are present.
2373 # Look if the user specified --enable-languages="..."; if not, use
2374 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2376 # NB: embedded tabs in this IF block -- do not untabify
2377 if test -d ${srcdir}/gcc
; then
2378 if test x
"${enable_languages+set}" != xset
; then
2379 if test x
"${LANGUAGES+set}" = xset
; then
2380 enable_languages
="${LANGUAGES}"
2381 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
2383 enable_languages
=all
2386 if test x
"${enable_languages}" = x ||
2387 test x
"${enable_languages}" = xyes
;
2389 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
2393 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2395 # 'f95' is the old name for the 'fortran' language. We issue a warning
2396 # and make the substitution.
2397 case ,${enable_languages}, in
2399 echo configure.
in: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
2400 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2404 # First scan to see if an enabled language requires some other language.
2405 # We assume that a given config-lang.in will list all the language
2406 # front ends it requires, even if some are required indirectly.
2407 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2408 case ${lang_frag} in
2410 # The odd quoting in the next line works around
2411 # an apparent bug in bash 1.12 on linux.
2412 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2414 # From the config-lang.in, get $language, $lang_requires
2418 for other
in ${lang_requires} ; do
2419 case ,${enable_languages}, in
2423 echo " \`$other' language required by \`$language'; enabling" 1>&2
2424 enable_languages
="${enable_languages},${other}"
2432 new_enable_languages
=c
2433 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2434 potential_languages
=c
2436 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2437 case ${lang_frag} in
2439 # The odd quoting in the next line works around
2440 # an apparent bug in bash 1.12 on linux.
2441 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2443 # From the config-lang.in, get $language, $target_libs,
2444 # $lang_dirs, $boot_language, and $build_by_default
2452 potential_languages
="${potential_languages},${language}"
2453 # This is quite sensitive to the ordering of the case statement arms.
2454 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2456 echo "${lang_frag} doesn't set \$language." 1>&2
2460 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2463 *,${language},*:*:*:*)
2464 # Language was explicitly selected; include it.
2468 # 'all' was selected, but this is not a default language
2469 # so do not include it.
2473 # 'all' was selected and this is a default language; include it.
2481 # Disable languages that need other directories if these aren't available.
2482 for i
in $subdir_requires; do
2483 test -f "$srcdir/gcc/$i/config-lang.in" && continue
2484 case ,${enable_languages}, in
2486 # Specifically requested language; tell them.
2487 { echo "configure: error: The gcc/$i directory contains parts of $language but is missing" 1>&2; exit 1; }
2496 # Disable a language that is unsupported by the target.
2497 case " $unsupported_languages " in
2503 case $add_this_lang in
2505 # Remove language-dependent dirs.
2506 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2509 new_enable_languages
="$new_enable_languages,$language"
2510 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
2511 case ${boot_language} in
2513 # Add to (comma-separated) list of stage 1 languages.
2514 stage1_languages
="${stage1_languages},${language}"
2523 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2524 if test "x$missing_languages" != x
; then
2525 { echo "configure: error:
2526 The following requested languages could not be built: ${missing_languages}
2527 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2530 if test "x$new_enable_languages" != "x$enable_languages"; then
2531 echo The following languages will be built
: ${new_enable_languages}
2533 enable_languages
="$new_enable_languages"
2534 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2537 # Handle --disable-<component> generically.
2538 for dir
in $configdirs $build_configdirs $target_configdirs ; do
2539 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2540 if eval test x\
${enable_${dirname}} "=" xno
; then
2541 noconfigdirs
="$noconfigdirs $dir"
2545 # Check for Boehm's garbage collector
2546 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2547 if test "${enable_objc_gc+set}" = set; then
2548 enableval
="$enable_objc_gc"
2549 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
2550 *,objc
,*:*:yes:*target-boehm-gc
*)
2551 { echo "configure: error: Boehm's garbage collector was requested yet not supported in this configuration" 1>&2; exit 1; }
2557 # Make sure we only build Boehm's garbage collector if required.
2558 case ,${enable_languages},:${enable_objc_gc} in
2560 # Keep target-boehm-gc if requested for Objective-C.
2563 # Otherwise remove target-boehm-gc depending on target-libjava.
2564 if echo " ${noconfigdirs} " |
grep "target-libjava" >/dev
/null
2>&1; then
2565 noconfigdirs
="$noconfigdirs target-boehm-gc"
2570 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2571 # $build_configdirs and $target_configdirs.
2572 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2575 for dir
in .
$skipdirs $noconfigdirs ; do
2576 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2577 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2578 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2579 if test -r $srcdir/$dirname/configure
; then
2580 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2583 notsupp
="$notsupp $dir"
2587 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2588 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2589 if test -r $srcdir/$dirname/configure
; then
2590 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2593 notsupp
="$notsupp $dir"
2597 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2598 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2599 if test -r $srcdir/$dirname/configure
; then
2600 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2603 notsupp
="$notsupp $dir"
2609 # Sometimes the tools are distributed with libiberty but with no other
2610 # libraries. In that case, we don't want to build target-libiberty.
2611 if test -n "${target_configdirs}" ; then
2613 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2614 if test "$i" != "libiberty" ; then
2615 if test -r $srcdir/$i/configure
; then
2621 if test -z "${others}" ; then
2626 # Quietly strip out all directories which aren't configurable in this tree.
2627 # This relies on all configurable subdirectories being autoconfiscated, which
2629 build_configdirs_all
="$build_configdirs"
2631 for i
in ${build_configdirs_all} ; do
2632 j
=`echo $i | sed -e s/build-//g`
2633 if test -f ${srcdir}/$j/configure
; then
2634 build_configdirs
="${build_configdirs} $i"
2638 configdirs_all
="$configdirs"
2640 for i
in ${configdirs_all} ; do
2641 if test -f ${srcdir}/$i/configure
; then
2642 configdirs
="${configdirs} $i"
2646 target_configdirs_all
="$target_configdirs"
2648 for i
in ${target_configdirs_all} ; do
2649 j
=`echo $i | sed -e s/target-//g`
2650 if test -f ${srcdir}/$j/configure
; then
2651 target_configdirs
="${target_configdirs} $i"
2655 # Produce a warning message for the subdirs we can't configure.
2656 # This isn't especially interesting in the Cygnus tree, but in the individual
2657 # FSF releases, it's important to let people know when their machine isn't
2658 # supported by the one or two programs in a package.
2660 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2661 # If $appdirs is non-empty, at least one of those directories must still
2662 # be configured, or we error out. (E.g., if the gas release supports a
2663 # specified target in some subdirs but not the gas subdir, we shouldn't
2664 # pretend that all is well.)
2665 if test -n "$appdirs" ; then
2666 for dir
in $appdirs ; do
2667 if test -r $dir/Makefile.
in ; then
2668 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2672 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
2678 if test -n "$appdirs" ; then
2679 echo "*** This configuration is not supported by this package." 1>&2
2683 # Okay, some application will build, or we don't care to check. Still
2684 # notify of subdirs not getting built.
2685 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2686 echo " ${notsupp}" 1>&2
2687 echo " (Any other directories should still work fine.)" 1>&2
2697 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2698 if test "${with_build_sysroot+set}" = set; then
2699 withval
="$with_build_sysroot"
2700 if test x
"$withval" != x
; then
2701 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
2704 SYSROOT_CFLAGS_FOR_TARGET
=
2709 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2710 # the named directory are copied to $(tooldir)/sys-include.
2711 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
2712 if test x
${is_cross_compiler} = xno
; then
2713 echo 1>&2 '***' --with-headers is only supported when cross compiling
2716 if test x
"${with_headers}" != xyes
; then
2717 case "${exec_prefixoption}" in
2719 *) x
=${exec_prefix} ;;
2721 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2725 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2726 # the name directories are copied to $(tooldir)/lib. Multiple directories
2728 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2729 if test x
${is_cross_compiler} = xno
; then
2730 echo 1>&2 '***' --with-libs is only supported when cross compiling
2733 if test x
"${with_libs}" != xyes
; then
2734 # Copy the libraries in reverse order, so that files in the first named
2735 # library override files in subsequent libraries.
2736 case "${exec_prefixoption}" in
2738 *) x
=${exec_prefix} ;;
2740 for l
in ${with_libs}; do
2741 copy_dirs
="$l $x/${target_alias}/lib ${copy_dirs}"
2746 # Set with_gnu_as and with_gnu_ld as appropriate.
2748 # This is done by determining whether or not the appropriate directory
2749 # is available, and by checking whether or not specific configurations
2750 # have requested that this magic not happen.
2752 # The command line options always override the explicit settings in
2753 # configure.in, and the settings in configure.in override this magic.
2755 # If the default for a toolchain is to use GNU as and ld, and you don't
2756 # want to do that, then you should use the --without-gnu-as and
2757 # --without-gnu-ld options for the configure script.
2759 if test x
${use_gnu_as} = x
&&
2760 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
2762 extra_host_args
="$extra_host_args --with-gnu-as"
2765 if test x
${use_gnu_ld} = x
&&
2766 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
2768 extra_host_args
="$extra_host_args --with-gnu-ld"
2771 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2772 # can detect this case.
2774 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
2776 extra_host_args
="$extra_host_args --with-newlib"
2779 # Handle ${copy_dirs}
2780 set fnord
${copy_dirs}
2782 while test $# != 0 ; do
2783 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
2786 echo Copying
$1 to
$2
2788 # Use the install script to create the directory and all required
2789 # parent directories.
2790 if test -d $2 ; then
2794 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
2797 # Copy the directory, assuming we have tar.
2798 # FIXME: Should we use B in the second tar? Not all systems support it.
2799 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
2801 # It is the responsibility of the user to correctly adjust all
2802 # symlinks. If somebody can figure out how to handle them correctly
2803 # here, feel free to add the code.
2810 # Determine a target-dependent exec_prefix that the installed
2811 # gcc will search in. Keep this list sorted by triplet, with
2812 # the *-*-osname triplets last.
2816 md_exec_prefix
=/gnu
/lib
/gcc-lib
2818 i3456786-pc-msdosdjgpp
*)
2819 md_exec_prefix
=/dev
/env
/DJDIR
/bin
2821 i3456786-
*-sco3.2v5
*)
2822 if test $with_gnu_as = yes; then
2823 md_exec_prefix
=/usr
/gnu
/bin
2825 md_exec_prefix
=/usr
/ccs
/bin
/elf
2830 powerpc-
*-chorusos* | \
2831 powerpc
*-*-eabi* | \
2832 powerpc
*-*-sysv* | \
2833 powerpc
*-*-kaos* | \
2835 md_exec_prefix
=/usr
/ccs
/bin
2840 md_exec_prefix
=/usr
/ccs
/bin
2855 md_exec_prefix
=/usr
/ccs
/bin
2859 extra_arflags_for_target
=
2860 extra_nmflags_for_target
=
2861 extra_ranlibflags_for_target
=
2862 target_makefile_frag
=/dev
/null
2865 target_makefile_frag
="config/mt-netware"
2867 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
2868 target_makefile_frag
="config/mt-gnu"
2870 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
2871 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2872 # commands to handle both 32-bit and 64-bit objects. These flags are
2873 # harmless if we're using GNU nm or ar.
2874 extra_arflags_for_target
=" -X32_64"
2875 extra_nmflags_for_target
=" -B -X32_64"
2878 # ranlib from Darwin requires the -c flag to look at common symbols.
2879 extra_ranlibflags_for_target
=" -c"
2881 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
2882 target_makefile_frag
="config/mt-wince"
2886 alphaieee_frag
=/dev
/null
2889 # This just makes sure to use the -mieee option to build target libs.
2890 # This should probably be set individually by each library.
2891 alphaieee_frag
="config/mt-alphaieee"
2895 # If --enable-target-optspace always use -Os instead of -O2 to build
2896 # the target libraries, similarly if it is not specified, use -Os
2897 # on selected platforms.
2898 ospace_frag
=/dev
/null
2899 case "${enable_target_optspace}:${target}" in
2901 ospace_frag
="config/mt-ospace"
2904 ospace_frag
="config/mt-d30v"
2906 :m32r-
* |
:d10v-
* |
:fr30-
*)
2907 ospace_frag
="config/mt-ospace"
2912 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2916 # Default to using --with-stabs for certain targets.
2917 if test x
${with_stabs} = x
; then
2921 mips
*-*-* | alpha
*-*-osf*)
2923 extra_host_args
="${extra_host_args} --with-stabs"
2928 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2929 # them automatically.
2932 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2936 # Some systems (e.g., one of the i386-aix systems the gas testers are
2937 # using) don't handle "\$" correctly, so don't use it here.
2938 tooldir
='${exec_prefix}'/${target_alias}
2939 build_tooldir
=${tooldir}
2941 # Create a .gdbinit file which runs the one in srcdir
2942 # and tells GDB to look there for source files.
2944 if test -r ${srcdir}/.gdbinit
; then
2947 *) cat > .
/.gdbinit
<<EOF
2951 source ${srcdir}/.gdbinit
2957 # Make sure that the compiler is able to generate an executable. If it
2958 # can't, we are probably in trouble. We don't care whether we can run the
2959 # executable--we might be using a cross compiler--we only care whether it
2960 # can be created. At this point the main configure script has set CC.
2962 echo "int main () { return 0; }" > conftest.c
2963 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2964 if test $?
= 0 ; then
2965 if test -s conftest ||
test -s conftest.exe
; then
2971 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2972 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2979 # The Solaris /usr/ucb/cc compiler does not appear to work.
2981 sparc-sun-solaris2
*)
2982 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
2983 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2985 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
2986 if test -d /opt
/cygnus
/bin
; then
2987 if test "$could_use" = "" ; then
2988 could_use
="/opt/cygnus/bin"
2990 could_use
="$could_use or /opt/cygnus/bin"
2993 if test "$could_use" = "" ; then
2994 echo "Warning: compilation may fail because you're using"
2995 echo "/usr/ucb/cc. You should change your PATH or CC "
2996 echo "variable and rerun configure."
2998 echo "Warning: compilation may fail because you're using"
2999 echo "/usr/ucb/cc, when you should use the C compiler from"
3000 echo "$could_use. You should change your"
3001 echo "PATH or CC variable and rerun configure."
3008 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
3009 *-*-darwin* |
*-*-rhapsody* ) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
3010 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
3013 # Record target_configdirs and the configure arguments for target and
3014 # build configuration in Makefile.
3015 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3016 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3018 # Determine whether gdb needs tk/tcl or not.
3019 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3020 # and in that case we want gdb to be built without tk. Ugh!
3021 # In fact I believe gdb is the *only* package directly dependent on tk,
3022 # so we should be able to put the 'maybe's in unconditionally and
3023 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3024 # 100% sure that that's safe though.
3026 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3027 case "$enable_gdbtk" in
3031 GDB_TK
="${gdb_tk}" ;;
3033 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3034 # distro. Eventually someone will fix this and move Insight, nee
3035 # gdbtk to a separate directory.
3036 if test -d ${srcdir}/gdb
/gdbtk
; then
3043 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3044 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3046 # Strip out unwanted targets.
3048 # While at that, we remove Makefiles if we were started for recursive
3049 # configuration, so that the top-level Makefile reconfigures them,
3050 # like we used to do when configure itself was recursive.
3052 # Loop over modules. $extrasub must be used with care, limiting as
3053 # much as possible the usage of range addresses. That's because autoconf
3054 # splits the sed script to overcome limits in the number of commands,
3055 # and relying on carefully-timed sed passes may turn out to be very hard
3056 # to maintain later. In this particular case, you just have to be careful
3057 # not to nest @if/@endif pairs, because configure will not warn you at all.
3059 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3060 if test "${enable_bootstrap+set}" = set; then
3061 enableval
="$enable_bootstrap"
3064 enable_bootstrap
=default
3068 # Issue errors and warnings for invalid/strange bootstrap combinations.
3069 case "$configdirs" in
3070 *gcc
*) have_compiler
=yes ;;
3071 *) have_compiler
=no
;;
3074 case "$have_compiler:$host:$target:$enable_bootstrap" in
3077 # Default behavior. Enable bootstrap if we have a compiler
3078 # and we are in a native configuration.
3079 yes:$build:$build:default
)
3080 enable_bootstrap
=yes ;;
3083 enable_bootstrap
=no
;;
3085 # We have a compiler and we are in a native configuration, bootstrap is ok
3086 yes:$build:$build:yes)
3089 # Other configurations, but we have a compiler. Assume the user knows
3092 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3095 # No compiler: if they passed --enable-bootstrap explicitly, fail
3097 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3099 # Fail if wrong command line
3101 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3105 # Adjust the toplevel makefile according to whether bootstrap was selected.
3106 case "$enable_bootstrap" in
3108 bootstrap_suffix
=bootstrap
;;
3110 bootstrap_suffix
=no-bootstrap
;;
3113 for module
in ${build_configdirs} ; do
3114 if test -z "${no_recursion}" \
3115 && test -f ${build_subdir}/${module}/Makefile
; then
3116 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3117 rm -f ${build_subdir}/${module}/Makefile
3120 /^@if build-$module\$/d
3121 /^@endif build-$module\$/d
3122 /^@if build-$module-$bootstrap_suffix\$/d
3123 /^@endif build-$module-$bootstrap_suffix\$/d"
3125 for module
in ${configdirs} ; do
3126 if test -z "${no_recursion}"; then
3127 for file in stage
*-${module}/Makefile
${module}/Makefile
; do
3128 if test -f ${file}; then
3129 echo 1>&2 "*** removing ${file} to force reconfigure"
3136 /^@endif $module\$/d
3137 /^@if $module-$bootstrap_suffix\$/d
3138 /^@endif $module-$bootstrap_suffix\$/d"
3140 for module
in ${target_configdirs} ; do
3141 if test -z "${no_recursion}" \
3142 && test -f ${target_subdir}/${module}/Makefile
; then
3143 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3144 rm -f ${target_subdir}/${module}/Makefile
3147 /^@if target-$module\$/d
3148 /^@endif target-$module\$/d
3149 /^@if target-$module-$bootstrap_suffix\$/d
3150 /^@endif target-$module-$bootstrap_suffix\$/d"
3154 /^@if /,/^@endif /d"
3156 # Create the serialization dependencies. This uses a temporary file.
3158 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3159 if test "${enable_serial_configure+set}" = set; then
3160 enableval
="$enable_serial_configure"
3165 case ${enable_serial_configure} in
3167 enable_serial_build_configure
=yes
3168 enable_serial_host_configure
=yes
3169 enable_serial_target_configure
=yes
3173 # These force 'configure's to be done one at a time, to avoid problems
3174 # with contention over a shared config.cache.
3176 echo '# serdep.tmp' > serdep.tmp
3178 test "x${enable_serial_build_configure}" = xyes
&&
3179 for item
in ${build_configdirs} ; do
3182 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
3187 test "x${enable_serial_host_configure}" = xyes
&&
3188 for item
in ${configdirs} ; do
3191 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
3196 test "x${enable_serial_target_configure}" = xyes
&&
3197 for item
in ${target_configdirs} ; do
3200 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
3204 serialization_dependencies
=serdep.tmp
3207 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3208 # target and nonopt. These are the ones we might not want to pass
3209 # down to subconfigures. Also strip program-prefix, program-suffix,
3210 # and program-transform-name, so that we can pass down a consistent
3211 # program-transform-name. If autoconf has put single quotes around
3212 # any of these arguments (because they contain shell metacharacters)
3213 # then this will fail; in practice this only happens for
3214 # --program-transform-name, so be sure to override --program-transform-name
3215 # at the end of the argument list.
3216 # These will be expanded by make, so quote '$'.
3217 cat <<\EOF_SED
> conftestsed
3219 s
/ --c[a-z-
]*[= ][^
]*//g
3220 s
/ --sr[a-z-
]*[= ][^
]*//g
3221 s
/ --ho[a-z-
]*[= ][^
]*//g
3222 s
/ --bu[a-z-
]*[= ][^
]*//g
3223 s
/ --t[a-z-
]*[= ][^
]*//g
3224 s
/ --program-[pst
][a-z-
]*[= ][^
]*//g
3225 s
/ -cache-file[= ][^
]*//g
3226 s
/ -srcdir[= ][^
]*//g
3227 s
/ -host[= ][^
]*//g
3228 s
/ -build[= ][^
]*//g
3229 s
/ -target[= ][^
]*//g
3230 s
/ -program-prefix[= ][^
]*//g
3231 s
/ -program-suffix[= ][^
]*//g
3232 s
/ -program-transform-name[= ][^
]*//g
3237 sed -f conftestsed <<EOF_SED > conftestsed.out
3238 ${ac_configure_args}
3240 baseargs=`cat conftestsed.out`
3241 rm -f conftestsed conftestsed.out
3243 # Add in --program-transform-name, after --program-prefix and
3244 # --program-suffix have been applied to it. Autoconf has already
3245 # doubled dollar signs and backslashes in program_transform_name; we want
3246 # the backslashes un-doubled, and then the entire thing wrapped in single
3247 # quotes, because this will be expanded first by make and then by the shell.
3248 # Also, because we want to override the logic in subdir configure scripts to
3249 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3250 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3251 ${program_transform_name}
3253 gcc_transform_name=`cat conftestsed.out`
3254 rm -f conftestsed.out
3255 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3257 # For the build-side libraries, we just need to pretend we're native
,
3258 # and not use the same cache file. Multilibs are neither needed nor
3260 build_configargs
="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3262 # For host modules, accept cache file option, or specification as blank.
3263 case "${cache_file}" in
3265 cache_file_option
="" ;;
3266 /* |
[A-Za-z
]:[\\/]* ) # absolute path
3267 cache_file_option
="--cache-file=${cache_file}" ;;
3269 cache_file_option
="--cache-file=../${cache_file}" ;;
3272 # Host dirs don't like to share a cache file either, horribly enough.
3273 # This seems to be due to autoconf 2.5x stupidity.
3274 host_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3276 target_configargs
=${baseargs}
3278 # Passing a --with-cross-host argument lets the target libraries know
3279 # whether they are being built with a cross-compiler or being built
3280 # native. However, it would be better to use other mechanisms to make the
3281 # sorts of decisions they want to make on this basis. Please consider
3282 # this option to be deprecated. FIXME.
3283 if test x
${is_cross_compiler} = xyes
; then
3284 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3287 # Default to --enable-multilib.
3288 if test x
${enable_multilib} = x
; then
3289 target_configargs
="--enable-multilib ${target_configargs}"
3292 # Pass --with-newlib if appropriate. Note that target_configdirs has
3293 # changed from the earlier setting of with_newlib.
3294 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3295 target_configargs
="--with-newlib ${target_configargs}"
3298 # Different target subdirs use different values of certain variables
3299 # (notably CXX). Worse, multilibs use *lots* of different values.
3300 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3301 # it doesn't automatically accept command-line overrides of them.
3302 # This means it's not safe for target subdirs to share a cache file,
3303 # which is disgusting, but there you have it. Hopefully this can be
3304 # fixed in future. It's still worthwhile to use a cache file for each
3305 # directory. I think.
3307 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3308 # We need to pass --target, as newer autoconf's requires consistency
3309 # for target_alias and gcc doesn't manage it consistently.
3310 target_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3313 case " $target_configdirs " in
3315 case " $target_configargs " in
3316 *" --with-newlib "*)
3319 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' ;;
3322 # If we're not building GCC, don't discard standard headers.
3323 if test -d ${srcdir}/gcc
; then
3324 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3326 if test "${build}" != "${host}"; then
3327 # On Canadian crosses, CC_FOR_TARGET will have already been set
3328 # by `configure', so we won't have an opportunity to add -Bgcc/
3329 # to it. This is right: we don't want to search that directory
3330 # for binaries, but we want the header files in there, so add
3332 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3334 # Someone might think of using the pre-installed headers on
3335 # Canadian crosses, in case the installed compiler is not fully
3336 # compatible with the compiler being built. In this case, it
3337 # would be better to flag an error than risking having
3338 # incompatible object files being constructed. We can't
3339 # guarantee that an error will be flagged, but let's hope the
3340 # compiler will do it, when presented with incompatible header
3345 case "${target}-${is_cross_compiler}" in
3346 i
[3456789]86-*-linux*-no)
3347 # Here host == target, so we don't need to build gcc,
3348 # so we don't want to discard standard headers.
3349 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3352 # If we're building newlib, use its generic headers last, but search
3353 # for any libc-related directories first (so make it the last -B
3355 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3364 # Can't be handled as Cygwin above since Mingw does not use newlib.
3365 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' ;;
3368 # Allow the user to override the flags for
3369 # our build compiler if desired.
3370 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3372 # On Canadian crosses, we'll be searching the right directories for
3373 # the previously-installed cross compiler, so don't bother to add
3374 # flags for directories within the install tree of the compiler
3375 # being built; programs in there won't even run.
3376 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3377 # Search for pre-installed headers if nothing else fits.
3378 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3381 if test "x
${use_gnu_ld}" = x &&
3382 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3383 # Arrange for us to find uninstalled linker scripts.
3384 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3387 # Search for other target-specific linker scripts and such.
3390 if test -d ${srcdir}/libgloss/m32c; then
3391 # This is for crt0.o
3392 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3393 # This is for r8c.ld
3394 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3395 # This is for libnosys.a
3396 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3401 # Makefile fragments.
3402 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3404 eval fragval=\$$frag
3405 if test $fragval != /dev/null; then
3406 eval $frag=${srcdir}/$fragval
3414 # Miscellanea: directories, flags, etc.
3422 # Build module lists & subconfigure args.
3426 # Host module lists & subconfigure args.
3430 # Target module lists & subconfigure args.
3438 # Generate default definitions for YACC, M4, LEX and other programs that run
3439 # on the build machine. These are used if the Makefile can't locate these
3440 # programs in objdir.
3441 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3443 for ac_prog in 'bison -y' byacc yacc
3445 # Extract the first word of "$ac_prog", so it can be a program name with args.
3446 set dummy $ac_prog; ac_word=$2
3447 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3448 echo "configure
:3449: checking
for $ac_word" >&5
3449 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3450 echo $ac_n "(cached
) $ac_c" 1>&6
3452 if test -n "$YACC"; then
3453 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3457 for ac_dir in $ac_dummy; do
3458 test -z "$ac_dir" && ac_dir=.
3459 if test -f $ac_dir/$ac_word; then
3460 ac_cv_prog_YACC="$ac_prog"
3467 YACC="$ac_cv_prog_YACC"
3468 if test -n "$YACC"; then
3469 echo "$ac_t""$YACC" 1>&6
3471 echo "$ac_t""no
" 1>&6
3474 test -n "$YACC" && break
3476 test -n "$YACC" || YACC="$MISSING bison
-y"
3478 case " $build_configdirs " in
3479 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3480 *" byacc
"*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3483 for ac_prog in bison
3485 # Extract the first word of "$ac_prog", so it can be a program name with args.
3486 set dummy $ac_prog; ac_word=$2
3487 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3488 echo "configure
:3489: checking
for $ac_word" >&5
3489 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3490 echo $ac_n "(cached
) $ac_c" 1>&6
3492 if test -n "$BISON"; then
3493 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3497 for ac_dir in $ac_dummy; do
3498 test -z "$ac_dir" && ac_dir=.
3499 if test -f $ac_dir/$ac_word; then
3500 ac_cv_prog_BISON="$ac_prog"
3507 BISON="$ac_cv_prog_BISON"
3508 if test -n "$BISON"; then
3509 echo "$ac_t""$BISON" 1>&6
3511 echo "$ac_t""no
" 1>&6
3514 test -n "$BISON" && break
3516 test -n "$BISON" || BISON="$MISSING bison
"
3518 case " $build_configdirs " in
3519 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3522 for ac_prog in gm4 gnum4 m4
3524 # Extract the first word of "$ac_prog", so it can be a program name with args.
3525 set dummy $ac_prog; ac_word=$2
3526 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3527 echo "configure
:3528: checking
for $ac_word" >&5
3528 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3529 echo $ac_n "(cached
) $ac_c" 1>&6
3531 if test -n "$M4"; then
3532 ac_cv_prog_M4="$M4" # Let the user override the test.
3534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3536 for ac_dir in $ac_dummy; do
3537 test -z "$ac_dir" && ac_dir=.
3538 if test -f $ac_dir/$ac_word; then
3539 ac_cv_prog_M4="$ac_prog"
3547 if test -n "$M4"; then
3548 echo "$ac_t""$M4" 1>&6
3550 echo "$ac_t""no
" 1>&6
3553 test -n "$M4" && break
3555 test -n "$M4" || M4="$MISSING m4"
3557 case " $build_configdirs " in
3558 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3561 for ac_prog in flex lex
3563 # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy $ac_prog; ac_word=$2
3565 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3566 echo "configure
:3567: checking
for $ac_word" >&5
3567 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3568 echo $ac_n "(cached
) $ac_c" 1>&6
3570 if test -n "$LEX"; then
3571 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3575 for ac_dir in $ac_dummy; do
3576 test -z "$ac_dir" && ac_dir=.
3577 if test -f $ac_dir/$ac_word; then
3578 ac_cv_prog_LEX="$ac_prog"
3585 LEX="$ac_cv_prog_LEX"
3586 if test -n "$LEX"; then
3587 echo "$ac_t""$LEX" 1>&6
3589 echo "$ac_t""no
" 1>&6
3592 test -n "$LEX" && break
3594 test -n "$LEX" || LEX="$MISSING flex
"
3596 case " $build_configdirs " in
3597 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3598 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3603 # Extract the first word of "$ac_prog", so it can be a program name with args.
3604 set dummy $ac_prog; ac_word=$2
3605 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3606 echo "configure
:3607: checking
for $ac_word" >&5
3607 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3608 echo $ac_n "(cached
) $ac_c" 1>&6
3610 if test -n "$FLEX"; then
3611 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3615 for ac_dir in $ac_dummy; do
3616 test -z "$ac_dir" && ac_dir=.
3617 if test -f $ac_dir/$ac_word; then
3618 ac_cv_prog_FLEX="$ac_prog"
3625 FLEX="$ac_cv_prog_FLEX"
3626 if test -n "$FLEX"; then
3627 echo "$ac_t""$FLEX" 1>&6
3629 echo "$ac_t""no
" 1>&6
3632 test -n "$FLEX" && break
3634 test -n "$FLEX" || FLEX="$MISSING flex
"
3636 case " $build_configdirs " in
3637 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3640 for ac_prog in makeinfo
3642 # Extract the first word of "$ac_prog", so it can be a program name with args.
3643 set dummy $ac_prog; ac_word=$2
3644 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3645 echo "configure
:3646: checking
for $ac_word" >&5
3646 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3647 echo $ac_n "(cached
) $ac_c" 1>&6
3649 if test -n "$MAKEINFO"; then
3650 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3654 for ac_dir in $ac_dummy; do
3655 test -z "$ac_dir" && ac_dir=.
3656 if test -f $ac_dir/$ac_word; then
3657 ac_cv_prog_MAKEINFO="$ac_prog"
3664 MAKEINFO="$ac_cv_prog_MAKEINFO"
3665 if test -n "$MAKEINFO"; then
3666 echo "$ac_t""$MAKEINFO" 1>&6
3668 echo "$ac_t""no
" 1>&6
3671 test -n "$MAKEINFO" && break
3673 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
3675 case " $build_configdirs " in
3676 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3679 # For an installed makeinfo, we require it to be from texinfo 4.4 or
3680 # higher, else we use the "missing
" dummy.
3681 if ${MAKEINFO} --version \
3682 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
3685 MAKEINFO="$MISSING makeinfo
"
3691 # FIXME: expect and dejagnu may become build tools?
3693 for ac_prog in expect
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3698 echo "configure
:3699: checking
for $ac_word" >&5
3699 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3700 echo $ac_n "(cached
) $ac_c" 1>&6
3702 if test -n "$EXPECT"; then
3703 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3707 for ac_dir in $ac_dummy; do
3708 test -z "$ac_dir" && ac_dir=.
3709 if test -f $ac_dir/$ac_word; then
3710 ac_cv_prog_EXPECT="$ac_prog"
3717 EXPECT="$ac_cv_prog_EXPECT"
3718 if test -n "$EXPECT"; then
3719 echo "$ac_t""$EXPECT" 1>&6
3721 echo "$ac_t""no
" 1>&6
3724 test -n "$EXPECT" && break
3726 test -n "$EXPECT" || EXPECT="expect
"
3728 case " $configdirs " in
3730 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3734 for ac_prog in runtest
3736 # Extract the first word of "$ac_prog", so it can be a program name with args.
3737 set dummy $ac_prog; ac_word=$2
3738 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3739 echo "configure
:3740: checking
for $ac_word" >&5
3740 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3741 echo $ac_n "(cached
) $ac_c" 1>&6
3743 if test -n "$RUNTEST"; then
3744 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3748 for ac_dir in $ac_dummy; do
3749 test -z "$ac_dir" && ac_dir=.
3750 if test -f $ac_dir/$ac_word; then
3751 ac_cv_prog_RUNTEST="$ac_prog"
3758 RUNTEST="$ac_cv_prog_RUNTEST"
3759 if test -n "$RUNTEST"; then
3760 echo "$ac_t""$RUNTEST" 1>&6
3762 echo "$ac_t""no
" 1>&6
3765 test -n "$RUNTEST" && break
3767 test -n "$RUNTEST" || RUNTEST="runtest
"
3769 case " $configdirs " in
3771 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
3778 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3779 ncn_target_tool_prefix=
3780 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3782 for ncn_progname in ar; do
3783 if test -n "$ncn_tool_prefix"; then
3784 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3785 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3786 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3787 echo "configure
:3788: checking
for $ac_word" >&5
3788 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3789 echo $ac_n "(cached
) $ac_c" 1>&6
3791 if test -n "$AR"; then
3792 ac_cv_prog_AR="$AR" # Let the user override the test.
3794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3796 for ac_dir in $ac_dummy; do
3797 test -z "$ac_dir" && ac_dir=.
3798 if test -f $ac_dir/$ac_word; then
3799 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3807 if test -n "$AR"; then
3808 echo "$ac_t""$AR" 1>&6
3810 echo "$ac_t""no
" 1>&6
3814 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3816 set dummy ${ncn_progname}; ac_word=$2
3817 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3818 echo "configure
:3819: checking
for $ac_word" >&5
3819 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3820 echo $ac_n "(cached
) $ac_c" 1>&6
3822 if test -n "$AR"; then
3823 ac_cv_prog_AR="$AR" # Let the user override the test.
3825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3827 for ac_dir in $ac_dummy; do
3828 test -z "$ac_dir" && ac_dir=.
3829 if test -f $ac_dir/$ac_word; then
3830 ac_cv_prog_AR="${ncn_progname}"
3838 if test -n "$AR"; then
3839 echo "$ac_t""$AR" 1>&6
3841 echo "$ac_t""no
" 1>&6
3845 test -n "$ac_cv_prog_AR" && break
3848 if test -z "$ac_cv_prog_AR" ; then
3850 if test $build = $host ; then
3853 AR="${ncn_tool_prefix}$2"
3857 for ncn_progname in as; do
3858 if test -n "$ncn_tool_prefix"; then
3859 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3860 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3861 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3862 echo "configure
:3863: checking
for $ac_word" >&5
3863 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3864 echo $ac_n "(cached
) $ac_c" 1>&6
3866 if test -n "$AS"; then
3867 ac_cv_prog_AS="$AS" # Let the user override the test.
3869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3871 for ac_dir in $ac_dummy; do
3872 test -z "$ac_dir" && ac_dir=.
3873 if test -f $ac_dir/$ac_word; then
3874 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3882 if test -n "$AS"; then
3883 echo "$ac_t""$AS" 1>&6
3885 echo "$ac_t""no
" 1>&6
3889 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3890 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3891 set dummy ${ncn_progname}; ac_word=$2
3892 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3893 echo "configure
:3894: checking
for $ac_word" >&5
3894 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3895 echo $ac_n "(cached
) $ac_c" 1>&6
3897 if test -n "$AS"; then
3898 ac_cv_prog_AS="$AS" # Let the user override the test.
3900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3902 for ac_dir in $ac_dummy; do
3903 test -z "$ac_dir" && ac_dir=.
3904 if test -f $ac_dir/$ac_word; then
3905 ac_cv_prog_AS="${ncn_progname}"
3913 if test -n "$AS"; then
3914 echo "$ac_t""$AS" 1>&6
3916 echo "$ac_t""no
" 1>&6
3920 test -n "$ac_cv_prog_AS" && break
3923 if test -z "$ac_cv_prog_AS" ; then
3925 if test $build = $host ; then
3928 AS="${ncn_tool_prefix}$2"
3932 for ncn_progname in dlltool; do
3933 if test -n "$ncn_tool_prefix"; then
3934 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3935 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3936 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3937 echo "configure
:3938: checking
for $ac_word" >&5
3938 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3939 echo $ac_n "(cached
) $ac_c" 1>&6
3941 if test -n "$DLLTOOL"; then
3942 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3946 for ac_dir in $ac_dummy; do
3947 test -z "$ac_dir" && ac_dir=.
3948 if test -f $ac_dir/$ac_word; then
3949 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3956 DLLTOOL="$ac_cv_prog_DLLTOOL"
3957 if test -n "$DLLTOOL"; then
3958 echo "$ac_t""$DLLTOOL" 1>&6
3960 echo "$ac_t""no
" 1>&6
3964 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3966 set dummy ${ncn_progname}; ac_word=$2
3967 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3968 echo "configure
:3969: checking
for $ac_word" >&5
3969 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3970 echo $ac_n "(cached
) $ac_c" 1>&6
3972 if test -n "$DLLTOOL"; then
3973 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3977 for ac_dir in $ac_dummy; do
3978 test -z "$ac_dir" && ac_dir=.
3979 if test -f $ac_dir/$ac_word; then
3980 ac_cv_prog_DLLTOOL="${ncn_progname}"
3987 DLLTOOL="$ac_cv_prog_DLLTOOL"
3988 if test -n "$DLLTOOL"; then
3989 echo "$ac_t""$DLLTOOL" 1>&6
3991 echo "$ac_t""no
" 1>&6
3995 test -n "$ac_cv_prog_DLLTOOL" && break
3998 if test -z "$ac_cv_prog_DLLTOOL" ; then
4000 if test $build = $host ; then
4003 DLLTOOL="${ncn_tool_prefix}$2"
4007 for ncn_progname in ld; do
4008 if test -n "$ncn_tool_prefix"; then
4009 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4010 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4011 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4012 echo "configure
:4013: checking
for $ac_word" >&5
4013 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4014 echo $ac_n "(cached
) $ac_c" 1>&6
4016 if test -n "$LD"; then
4017 ac_cv_prog_LD="$LD" # Let the user override the test.
4019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4021 for ac_dir in $ac_dummy; do
4022 test -z "$ac_dir" && ac_dir=.
4023 if test -f $ac_dir/$ac_word; then
4024 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
4032 if test -n "$LD"; then
4033 echo "$ac_t""$LD" 1>&6
4035 echo "$ac_t""no
" 1>&6
4039 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4041 set dummy ${ncn_progname}; ac_word=$2
4042 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4043 echo "configure
:4044: checking
for $ac_word" >&5
4044 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4045 echo $ac_n "(cached
) $ac_c" 1>&6
4047 if test -n "$LD"; then
4048 ac_cv_prog_LD="$LD" # Let the user override the test.
4050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4052 for ac_dir in $ac_dummy; do
4053 test -z "$ac_dir" && ac_dir=.
4054 if test -f $ac_dir/$ac_word; then
4055 ac_cv_prog_LD="${ncn_progname}"
4063 if test -n "$LD"; then
4064 echo "$ac_t""$LD" 1>&6
4066 echo "$ac_t""no
" 1>&6
4070 test -n "$ac_cv_prog_LD" && break
4073 if test -z "$ac_cv_prog_LD" ; then
4075 if test $build = $host ; then
4078 LD="${ncn_tool_prefix}$2"
4082 for ncn_progname in lipo; do
4083 if test -n "$ncn_tool_prefix"; then
4084 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4085 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4086 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4087 echo "configure
:4088: checking
for $ac_word" >&5
4088 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4089 echo $ac_n "(cached
) $ac_c" 1>&6
4091 if test -n "$LIPO"; then
4092 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4096 for ac_dir in $ac_dummy; do
4097 test -z "$ac_dir" && ac_dir=.
4098 if test -f $ac_dir/$ac_word; then
4099 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4106 LIPO="$ac_cv_prog_LIPO"
4107 if test -n "$LIPO"; then
4108 echo "$ac_t""$LIPO" 1>&6
4110 echo "$ac_t""no
" 1>&6
4114 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4116 set dummy ${ncn_progname}; ac_word=$2
4117 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4118 echo "configure
:4119: checking
for $ac_word" >&5
4119 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4120 echo $ac_n "(cached
) $ac_c" 1>&6
4122 if test -n "$LIPO"; then
4123 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4127 for ac_dir in $ac_dummy; do
4128 test -z "$ac_dir" && ac_dir=.
4129 if test -f $ac_dir/$ac_word; then
4130 ac_cv_prog_LIPO="${ncn_progname}"
4137 LIPO="$ac_cv_prog_LIPO"
4138 if test -n "$LIPO"; then
4139 echo "$ac_t""$LIPO" 1>&6
4141 echo "$ac_t""no
" 1>&6
4145 test -n "$ac_cv_prog_LIPO" && break
4148 if test -z "$ac_cv_prog_LIPO" ; then
4150 if test $build = $host ; then
4153 LIPO="${ncn_tool_prefix}$2"
4157 for ncn_progname in nm; do
4158 if test -n "$ncn_tool_prefix"; then
4159 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4160 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4161 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4162 echo "configure
:4163: checking
for $ac_word" >&5
4163 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4164 echo $ac_n "(cached
) $ac_c" 1>&6
4166 if test -n "$NM"; then
4167 ac_cv_prog_NM="$NM" # Let the user override the test.
4169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4171 for ac_dir in $ac_dummy; do
4172 test -z "$ac_dir" && ac_dir=.
4173 if test -f $ac_dir/$ac_word; then
4174 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4182 if test -n "$NM"; then
4183 echo "$ac_t""$NM" 1>&6
4185 echo "$ac_t""no
" 1>&6
4189 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4191 set dummy ${ncn_progname}; ac_word=$2
4192 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4193 echo "configure
:4194: checking
for $ac_word" >&5
4194 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4195 echo $ac_n "(cached
) $ac_c" 1>&6
4197 if test -n "$NM"; then
4198 ac_cv_prog_NM="$NM" # Let the user override the test.
4200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4202 for ac_dir in $ac_dummy; do
4203 test -z "$ac_dir" && ac_dir=.
4204 if test -f $ac_dir/$ac_word; then
4205 ac_cv_prog_NM="${ncn_progname}"
4213 if test -n "$NM"; then
4214 echo "$ac_t""$NM" 1>&6
4216 echo "$ac_t""no
" 1>&6
4220 test -n "$ac_cv_prog_NM" && break
4223 if test -z "$ac_cv_prog_NM" ; then
4225 if test $build = $host ; then
4228 NM="${ncn_tool_prefix}$2"
4232 for ncn_progname in ranlib; do
4233 if test -n "$ncn_tool_prefix"; then
4234 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4235 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4236 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4237 echo "configure
:4238: checking
for $ac_word" >&5
4238 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4239 echo $ac_n "(cached
) $ac_c" 1>&6
4241 if test -n "$RANLIB"; then
4242 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4246 for ac_dir in $ac_dummy; do
4247 test -z "$ac_dir" && ac_dir=.
4248 if test -f $ac_dir/$ac_word; then
4249 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4256 RANLIB="$ac_cv_prog_RANLIB"
4257 if test -n "$RANLIB"; then
4258 echo "$ac_t""$RANLIB" 1>&6
4260 echo "$ac_t""no
" 1>&6
4264 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4265 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4266 set dummy ${ncn_progname}; ac_word=$2
4267 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4268 echo "configure
:4269: checking
for $ac_word" >&5
4269 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4270 echo $ac_n "(cached
) $ac_c" 1>&6
4272 if test -n "$RANLIB"; then
4273 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4277 for ac_dir in $ac_dummy; do
4278 test -z "$ac_dir" && ac_dir=.
4279 if test -f $ac_dir/$ac_word; then
4280 ac_cv_prog_RANLIB="${ncn_progname}"
4287 RANLIB="$ac_cv_prog_RANLIB"
4288 if test -n "$RANLIB"; then
4289 echo "$ac_t""$RANLIB" 1>&6
4291 echo "$ac_t""no
" 1>&6
4295 test -n "$ac_cv_prog_RANLIB" && break
4298 if test -z "$ac_cv_prog_RANLIB" ; then
4302 for ncn_progname in strip; do
4303 if test -n "$ncn_tool_prefix"; then
4304 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4305 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4306 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4307 echo "configure
:4308: checking
for $ac_word" >&5
4308 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4309 echo $ac_n "(cached
) $ac_c" 1>&6
4311 if test -n "$STRIP"; then
4312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4316 for ac_dir in $ac_dummy; do
4317 test -z "$ac_dir" && ac_dir=.
4318 if test -f $ac_dir/$ac_word; then
4319 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4326 STRIP="$ac_cv_prog_STRIP"
4327 if test -n "$STRIP"; then
4328 echo "$ac_t""$STRIP" 1>&6
4330 echo "$ac_t""no
" 1>&6
4334 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4336 set dummy ${ncn_progname}; ac_word=$2
4337 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4338 echo "configure
:4339: checking
for $ac_word" >&5
4339 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4340 echo $ac_n "(cached
) $ac_c" 1>&6
4342 if test -n "$STRIP"; then
4343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4347 for ac_dir in $ac_dummy; do
4348 test -z "$ac_dir" && ac_dir=.
4349 if test -f $ac_dir/$ac_word; then
4350 ac_cv_prog_STRIP="${ncn_progname}"
4357 STRIP="$ac_cv_prog_STRIP"
4358 if test -n "$STRIP"; then
4359 echo "$ac_t""$STRIP" 1>&6
4361 echo "$ac_t""no
" 1>&6
4365 test -n "$ac_cv_prog_STRIP" && break
4368 if test -z "$ac_cv_prog_STRIP" ; then
4372 for ncn_progname in windres; do
4373 if test -n "$ncn_tool_prefix"; then
4374 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4375 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4376 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4377 echo "configure
:4378: checking
for $ac_word" >&5
4378 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4379 echo $ac_n "(cached
) $ac_c" 1>&6
4381 if test -n "$WINDRES"; then
4382 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4386 for ac_dir in $ac_dummy; do
4387 test -z "$ac_dir" && ac_dir=.
4388 if test -f $ac_dir/$ac_word; then
4389 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4396 WINDRES="$ac_cv_prog_WINDRES"
4397 if test -n "$WINDRES"; then
4398 echo "$ac_t""$WINDRES" 1>&6
4400 echo "$ac_t""no
" 1>&6
4404 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4406 set dummy ${ncn_progname}; ac_word=$2
4407 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4408 echo "configure
:4409: checking
for $ac_word" >&5
4409 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4410 echo $ac_n "(cached
) $ac_c" 1>&6
4412 if test -n "$WINDRES"; then
4413 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4417 for ac_dir in $ac_dummy; do
4418 test -z "$ac_dir" && ac_dir=.
4419 if test -f $ac_dir/$ac_word; then
4420 ac_cv_prog_WINDRES="${ncn_progname}"
4427 WINDRES="$ac_cv_prog_WINDRES"
4428 if test -n "$WINDRES"; then
4429 echo "$ac_t""$WINDRES" 1>&6
4431 echo "$ac_t""no
" 1>&6
4435 test -n "$ac_cv_prog_WINDRES" && break
4438 if test -z "$ac_cv_prog_WINDRES" ; then
4440 if test $build = $host ; then
4443 WINDRES="${ncn_tool_prefix}$2"
4447 for ncn_progname in objcopy; do
4448 if test -n "$ncn_tool_prefix"; then
4449 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4450 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4451 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4452 echo "configure
:4453: checking
for $ac_word" >&5
4453 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4454 echo $ac_n "(cached
) $ac_c" 1>&6
4456 if test -n "$OBJCOPY"; then
4457 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4461 for ac_dir in $ac_dummy; do
4462 test -z "$ac_dir" && ac_dir=.
4463 if test -f $ac_dir/$ac_word; then
4464 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4471 OBJCOPY="$ac_cv_prog_OBJCOPY"
4472 if test -n "$OBJCOPY"; then
4473 echo "$ac_t""$OBJCOPY" 1>&6
4475 echo "$ac_t""no
" 1>&6
4479 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4481 set dummy ${ncn_progname}; ac_word=$2
4482 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4483 echo "configure
:4484: checking
for $ac_word" >&5
4484 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4485 echo $ac_n "(cached
) $ac_c" 1>&6
4487 if test -n "$OBJCOPY"; then
4488 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4492 for ac_dir in $ac_dummy; do
4493 test -z "$ac_dir" && ac_dir=.
4494 if test -f $ac_dir/$ac_word; then
4495 ac_cv_prog_OBJCOPY="${ncn_progname}"
4502 OBJCOPY="$ac_cv_prog_OBJCOPY"
4503 if test -n "$OBJCOPY"; then
4504 echo "$ac_t""$OBJCOPY" 1>&6
4506 echo "$ac_t""no
" 1>&6
4510 test -n "$ac_cv_prog_OBJCOPY" && break
4513 if test -z "$ac_cv_prog_OBJCOPY" ; then
4515 if test $build = $host ; then
4518 OBJCOPY="${ncn_tool_prefix}$2"
4522 for ncn_progname in objdump; do
4523 if test -n "$ncn_tool_prefix"; then
4524 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4525 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4526 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4527 echo "configure
:4528: checking
for $ac_word" >&5
4528 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4529 echo $ac_n "(cached
) $ac_c" 1>&6
4531 if test -n "$OBJDUMP"; then
4532 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4536 for ac_dir in $ac_dummy; do
4537 test -z "$ac_dir" && ac_dir=.
4538 if test -f $ac_dir/$ac_word; then
4539 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4546 OBJDUMP="$ac_cv_prog_OBJDUMP"
4547 if test -n "$OBJDUMP"; then
4548 echo "$ac_t""$OBJDUMP" 1>&6
4550 echo "$ac_t""no
" 1>&6
4554 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4556 set dummy ${ncn_progname}; ac_word=$2
4557 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4558 echo "configure
:4559: checking
for $ac_word" >&5
4559 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4560 echo $ac_n "(cached
) $ac_c" 1>&6
4562 if test -n "$OBJDUMP"; then
4563 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4567 for ac_dir in $ac_dummy; do
4568 test -z "$ac_dir" && ac_dir=.
4569 if test -f $ac_dir/$ac_word; then
4570 ac_cv_prog_OBJDUMP="${ncn_progname}"
4577 OBJDUMP="$ac_cv_prog_OBJDUMP"
4578 if test -n "$OBJDUMP"; then
4579 echo "$ac_t""$OBJDUMP" 1>&6
4581 echo "$ac_t""no
" 1>&6
4585 test -n "$ac_cv_prog_OBJDUMP" && break
4588 if test -z "$ac_cv_prog_OBJDUMP" ; then
4590 if test $build = $host ; then
4593 OBJDUMP="${ncn_tool_prefix}$2"
4604 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4605 if test "${with_build_time_tools+set}" = set; then
4606 withval="$with_build_time_tools"
4610 with_build_time_tools=
4611 echo "configure
: warning
: argument to
--with-build-time-tools must be an absolute path
" 1>&2
4615 with_build_time_tools=
4619 if test -n "$with_build_time_tools"; then
4620 for ncn_progname in cc gcc; do
4621 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4622 echo "configure
:4623: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4623 if test -x $with_build_time_tools/${ncn_progname}; then
4624 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4625 echo "$ac_t""yes" 1>&6
4628 echo "$ac_t""no
" 1>&6
4633 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4634 for ncn_progname in cc gcc; do
4635 if test -n "$ncn_target_tool_prefix"; then
4636 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4637 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4638 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4639 echo "configure
:4640: checking
for $ac_word" >&5
4640 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4641 echo $ac_n "(cached
) $ac_c" 1>&6
4643 if test -n "$CC_FOR_TARGET"; then
4644 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4648 for ac_dir in $ac_dummy; do
4649 test -z "$ac_dir" && ac_dir=.
4650 if test -f $ac_dir/$ac_word; then
4651 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4658 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4659 if test -n "$CC_FOR_TARGET"; then
4660 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4662 echo "$ac_t""no
" 1>&6
4666 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4668 set dummy ${ncn_progname}; ac_word=$2
4669 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4670 echo "configure
:4671: checking
for $ac_word" >&5
4671 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4672 echo $ac_n "(cached
) $ac_c" 1>&6
4674 if test -n "$CC_FOR_TARGET"; then
4675 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4679 for ac_dir in $ac_dummy; do
4680 test -z "$ac_dir" && ac_dir=.
4681 if test -f $ac_dir/$ac_word; then
4682 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4689 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4690 if test -n "$CC_FOR_TARGET"; then
4691 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4693 echo "$ac_t""no
" 1>&6
4697 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4701 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4703 if test $build = $target ; then
4706 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4710 if test -n "$with_build_time_tools"; then
4711 for ncn_progname in c++ g++ cxx gxx; do
4712 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4713 echo "configure
:4714: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4714 if test -x $with_build_time_tools/${ncn_progname}; then
4715 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4716 echo "$ac_t""yes" 1>&6
4719 echo "$ac_t""no
" 1>&6
4724 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4725 for ncn_progname in c++ g++ cxx gxx; do
4726 if test -n "$ncn_target_tool_prefix"; then
4727 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4728 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4729 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4730 echo "configure
:4731: checking
for $ac_word" >&5
4731 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4732 echo $ac_n "(cached
) $ac_c" 1>&6
4734 if test -n "$CXX_FOR_TARGET"; then
4735 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4739 for ac_dir in $ac_dummy; do
4740 test -z "$ac_dir" && ac_dir=.
4741 if test -f $ac_dir/$ac_word; then
4742 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4749 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4750 if test -n "$CXX_FOR_TARGET"; then
4751 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4753 echo "$ac_t""no
" 1>&6
4757 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4758 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4759 set dummy ${ncn_progname}; ac_word=$2
4760 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4761 echo "configure
:4762: checking
for $ac_word" >&5
4762 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4763 echo $ac_n "(cached
) $ac_c" 1>&6
4765 if test -n "$CXX_FOR_TARGET"; then
4766 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4770 for ac_dir in $ac_dummy; do
4771 test -z "$ac_dir" && ac_dir=.
4772 if test -f $ac_dir/$ac_word; then
4773 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4780 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4781 if test -n "$CXX_FOR_TARGET"; then
4782 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4784 echo "$ac_t""no
" 1>&6
4788 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4792 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4793 set dummy c++ g++ cxx gxx
4794 if test $build = $target ; then
4797 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4801 if test -n "$with_build_time_tools"; then
4802 for ncn_progname in gcc; do
4803 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4804 echo "configure
:4805: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4805 if test -x $with_build_time_tools/${ncn_progname}; then
4806 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4807 echo "$ac_t""yes" 1>&6
4810 echo "$ac_t""no
" 1>&6
4815 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4816 for ncn_progname in gcc; do
4817 if test -n "$ncn_target_tool_prefix"; then
4818 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4819 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4820 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4821 echo "configure
:4822: checking
for $ac_word" >&5
4822 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4823 echo $ac_n "(cached
) $ac_c" 1>&6
4825 if test -n "$GCC_FOR_TARGET"; then
4826 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4830 for ac_dir in $ac_dummy; do
4831 test -z "$ac_dir" && ac_dir=.
4832 if test -f $ac_dir/$ac_word; then
4833 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4840 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4841 if test -n "$GCC_FOR_TARGET"; then
4842 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4844 echo "$ac_t""no
" 1>&6
4848 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4849 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4850 set dummy ${ncn_progname}; ac_word=$2
4851 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4852 echo "configure
:4853: checking
for $ac_word" >&5
4853 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4854 echo $ac_n "(cached
) $ac_c" 1>&6
4856 if test -n "$GCC_FOR_TARGET"; then
4857 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4861 for ac_dir in $ac_dummy; do
4862 test -z "$ac_dir" && ac_dir=.
4863 if test -f $ac_dir/$ac_word; then
4864 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4871 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4872 if test -n "$GCC_FOR_TARGET"; then
4873 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4875 echo "$ac_t""no
" 1>&6
4879 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4883 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4884 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4887 if test -n "$with_build_time_tools"; then
4888 for ncn_progname in gcj; do
4889 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4890 echo "configure
:4891: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4891 if test -x $with_build_time_tools/${ncn_progname}; then
4892 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4893 echo "$ac_t""yes" 1>&6
4896 echo "$ac_t""no
" 1>&6
4901 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4902 for ncn_progname in gcj; do
4903 if test -n "$ncn_target_tool_prefix"; then
4904 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4905 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4906 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4907 echo "configure
:4908: checking
for $ac_word" >&5
4908 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4909 echo $ac_n "(cached
) $ac_c" 1>&6
4911 if test -n "$GCJ_FOR_TARGET"; then
4912 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4916 for ac_dir in $ac_dummy; do
4917 test -z "$ac_dir" && ac_dir=.
4918 if test -f $ac_dir/$ac_word; then
4919 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4926 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4927 if test -n "$GCJ_FOR_TARGET"; then
4928 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4930 echo "$ac_t""no
" 1>&6
4934 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4936 set dummy ${ncn_progname}; ac_word=$2
4937 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4938 echo "configure
:4939: checking
for $ac_word" >&5
4939 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4940 echo $ac_n "(cached
) $ac_c" 1>&6
4942 if test -n "$GCJ_FOR_TARGET"; then
4943 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4947 for ac_dir in $ac_dummy; do
4948 test -z "$ac_dir" && ac_dir=.
4949 if test -f $ac_dir/$ac_word; then
4950 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4957 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4958 if test -n "$GCJ_FOR_TARGET"; then
4959 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4961 echo "$ac_t""no
" 1>&6
4965 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4969 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4971 if test $build = $target ; then
4974 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4978 if test -n "$with_build_time_tools"; then
4979 for ncn_progname in gfortran; do
4980 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4981 echo "configure
:4982: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4982 if test -x $with_build_time_tools/${ncn_progname}; then
4983 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4984 echo "$ac_t""yes" 1>&6
4987 echo "$ac_t""no
" 1>&6
4992 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
4993 for ncn_progname in gfortran; do
4994 if test -n "$ncn_target_tool_prefix"; then
4995 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4996 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4997 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4998 echo "configure
:4999: checking
for $ac_word" >&5
4999 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5000 echo $ac_n "(cached
) $ac_c" 1>&6
5002 if test -n "$GFORTRAN_FOR_TARGET"; then
5003 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5007 for ac_dir in $ac_dummy; do
5008 test -z "$ac_dir" && ac_dir=.
5009 if test -f $ac_dir/$ac_word; then
5010 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5017 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5018 if test -n "$GFORTRAN_FOR_TARGET"; then
5019 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5021 echo "$ac_t""no
" 1>&6
5025 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
5026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5027 set dummy ${ncn_progname}; ac_word=$2
5028 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5029 echo "configure
:5030: checking
for $ac_word" >&5
5030 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5031 echo $ac_n "(cached
) $ac_c" 1>&6
5033 if test -n "$GFORTRAN_FOR_TARGET"; then
5034 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5038 for ac_dir in $ac_dummy; do
5039 test -z "$ac_dir" && ac_dir=.
5040 if test -f $ac_dir/$ac_word; then
5041 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5048 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5049 if test -n "$GFORTRAN_FOR_TARGET"; then
5050 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5052 echo "$ac_t""no
" 1>&6
5056 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5060 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5062 if test $build = $target ; then
5063 GFORTRAN_FOR_TARGET="$2"
5065 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5071 # The user is always right.
5072 if test "${PATH_SEPARATOR+set}" != set; then
5073 echo "#! /bin/sh" >conf$$.sh
5074 echo "exit 0" >>conf$$.sh
5076 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5086 if test "x$exec_prefix" = xNONE
; then
5087 if test "x$prefix" = xNONE
; then
5088 gcc_cv_tool_prefix
=$ac_default_prefix
5090 gcc_cv_tool_prefix
=$prefix
5093 gcc_cv_tool_prefix
=$exec_prefix
5096 # If there is no compiler in the tree, use the PATH only. In any
5097 # case, if there is no compiler in the tree nobody should use
5098 # AS_FOR_TARGET and LD_FOR_TARGET.
5099 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
5100 gcc_version
=`cat $srcdir/gcc/BASE-VER`
5101 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5102 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5103 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5104 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5105 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5106 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5111 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
5112 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5117 cat > conftest.c
<< \EOF
5122 if ($GCC_FOR_TARGET -E conftest.c |
grep gcc_yay
) > /dev
/null
2>&1; then
5123 have_gcc_for_target
=yes
5125 GCC_FOR_TARGET
=${ncn_target_tool_prefix}gcc
5126 have_gcc_for_target
=no
5133 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5134 if test -n "$with_build_time_tools"; then
5135 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5136 echo "configure:5137: checking for ar in $with_build_time_tools" >&5
5137 if test -x $with_build_time_tools/ar; then
5138 AR_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ar
5139 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5140 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5142 echo "$ac_t""no" 1>&6
5144 elif test $build != $host && test $have_gcc_for_target = yes; then
5145 AR_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ar`
5146 test $AR_FOR_TARGET=ar && AR_FOR_TARGET
=
5147 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5150 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5151 # Extract the first word of "ar", so it can be a program name with args.
5152 set dummy
ar; ac_word
=$2
5153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5154 echo "configure:5155: checking for $ac_word" >&5
5155 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5158 case "$AR_FOR_TARGET" in
5160 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a path.
5163 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5166 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5167 ac_dummy
="$gcc_cv_tool_dirs"
5168 for ac_dir
in $ac_dummy; do
5169 test -z "$ac_dir" && ac_dir
=.
5170 if test -f $ac_dir/$ac_word; then
5171 ac_cv_path_AR_FOR_TARGET
="$ac_dir/$ac_word"
5179 AR_FOR_TARGET
="$ac_cv_path_AR_FOR_TARGET"
5180 if test -n "$AR_FOR_TARGET"; then
5181 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5183 echo "$ac_t""no" 1>&6
5187 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5188 if test -n "$with_build_time_tools"; then
5189 for ncn_progname
in ar; do
5190 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5191 echo "configure:5192: checking for ${ncn_progname} in $with_build_time_tools" >&5
5192 if test -x $with_build_time_tools/${ncn_progname}; then
5193 ac_cv_prog_AR_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5194 echo "$ac_t""yes" 1>&6
5197 echo "$ac_t""no" 1>&6
5202 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5203 for ncn_progname
in ar; do
5204 if test -n "$ncn_target_tool_prefix"; then
5205 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5206 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5208 echo "configure:5209: checking for $ac_word" >&5
5209 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5210 echo $ac_n "(cached) $ac_c" 1>&6
5212 if test -n "$AR_FOR_TARGET"; then
5213 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5215 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5217 for ac_dir
in $ac_dummy; do
5218 test -z "$ac_dir" && ac_dir
=.
5219 if test -f $ac_dir/$ac_word; then
5220 ac_cv_prog_AR_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5227 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5228 if test -n "$AR_FOR_TARGET"; then
5229 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5231 echo "$ac_t""no" 1>&6
5235 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5237 set dummy
${ncn_progname}; ac_word
=$2
5238 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5239 echo "configure:5240: checking for $ac_word" >&5
5240 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5241 echo $ac_n "(cached) $ac_c" 1>&6
5243 if test -n "$AR_FOR_TARGET"; then
5244 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5246 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5248 for ac_dir
in $ac_dummy; do
5249 test -z "$ac_dir" && ac_dir
=.
5250 if test -f $ac_dir/$ac_word; then
5251 ac_cv_prog_AR_FOR_TARGET
="${ncn_progname}"
5258 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5259 if test -n "$AR_FOR_TARGET"; then
5260 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5262 echo "$ac_t""no" 1>&6
5266 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5270 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5272 if test $build = $target ; then
5275 AR_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5280 AR_FOR_TARGET
=$ac_cv_path_AR_FOR_TARGET
5286 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5287 if test -n "$with_build_time_tools"; then
5288 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5289 echo "configure:5290: checking for as in $with_build_time_tools" >&5
5290 if test -x $with_build_time_tools/as
; then
5291 AS_FOR_TARGET
=`cd $with_build_time_tools && pwd`/as
5292 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5293 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5295 echo "$ac_t""no" 1>&6
5297 elif test $build != $host && test $have_gcc_for_target = yes; then
5298 AS_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=as`
5299 test $AS_FOR_TARGET=as
&& AS_FOR_TARGET
=
5300 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5303 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5304 # Extract the first word of "as", so it can be a program name with args.
5305 set dummy as
; ac_word
=$2
5306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5307 echo "configure:5308: checking for $ac_word" >&5
5308 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5309 echo $ac_n "(cached) $ac_c" 1>&6
5311 case "$AS_FOR_TARGET" in
5313 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a path.
5316 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5319 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5320 ac_dummy
="$gcc_cv_tool_dirs"
5321 for ac_dir
in $ac_dummy; do
5322 test -z "$ac_dir" && ac_dir
=.
5323 if test -f $ac_dir/$ac_word; then
5324 ac_cv_path_AS_FOR_TARGET
="$ac_dir/$ac_word"
5332 AS_FOR_TARGET
="$ac_cv_path_AS_FOR_TARGET"
5333 if test -n "$AS_FOR_TARGET"; then
5334 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5336 echo "$ac_t""no" 1>&6
5340 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5341 if test -n "$with_build_time_tools"; then
5342 for ncn_progname
in as
; do
5343 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5344 echo "configure:5345: checking for ${ncn_progname} in $with_build_time_tools" >&5
5345 if test -x $with_build_time_tools/${ncn_progname}; then
5346 ac_cv_prog_AS_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5347 echo "$ac_t""yes" 1>&6
5350 echo "$ac_t""no" 1>&6
5355 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5356 for ncn_progname
in as
; do
5357 if test -n "$ncn_target_tool_prefix"; then
5358 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5359 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5361 echo "configure:5362: checking for $ac_word" >&5
5362 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5363 echo $ac_n "(cached) $ac_c" 1>&6
5365 if test -n "$AS_FOR_TARGET"; then
5366 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5368 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5370 for ac_dir
in $ac_dummy; do
5371 test -z "$ac_dir" && ac_dir
=.
5372 if test -f $ac_dir/$ac_word; then
5373 ac_cv_prog_AS_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5380 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5381 if test -n "$AS_FOR_TARGET"; then
5382 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5384 echo "$ac_t""no" 1>&6
5388 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5390 set dummy
${ncn_progname}; ac_word
=$2
5391 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5392 echo "configure:5393: checking for $ac_word" >&5
5393 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5396 if test -n "$AS_FOR_TARGET"; then
5397 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5399 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5401 for ac_dir
in $ac_dummy; do
5402 test -z "$ac_dir" && ac_dir
=.
5403 if test -f $ac_dir/$ac_word; then
5404 ac_cv_prog_AS_FOR_TARGET
="${ncn_progname}"
5411 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5412 if test -n "$AS_FOR_TARGET"; then
5413 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5415 echo "$ac_t""no" 1>&6
5419 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5423 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5425 if test $build = $target ; then
5428 AS_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5433 AS_FOR_TARGET
=$ac_cv_path_AS_FOR_TARGET
5439 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5440 if test -n "$with_build_time_tools"; then
5441 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5442 echo "configure:5443: checking for dlltool in $with_build_time_tools" >&5
5443 if test -x $with_build_time_tools/dlltool
; then
5444 DLLTOOL_FOR_TARGET
=`cd $with_build_time_tools && pwd`/dlltool
5445 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5446 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5448 echo "$ac_t""no" 1>&6
5450 elif test $build != $host && test $have_gcc_for_target = yes; then
5451 DLLTOOL_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5452 test $DLLTOOL_FOR_TARGET=dlltool
&& DLLTOOL_FOR_TARGET
=
5453 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5456 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5457 # Extract the first word of "dlltool", so it can be a program name with args.
5458 set dummy dlltool
; ac_word
=$2
5459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5460 echo "configure:5461: checking for $ac_word" >&5
5461 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5462 echo $ac_n "(cached) $ac_c" 1>&6
5464 case "$DLLTOOL_FOR_TARGET" in
5466 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5469 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5472 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5473 ac_dummy
="$gcc_cv_tool_dirs"
5474 for ac_dir
in $ac_dummy; do
5475 test -z "$ac_dir" && ac_dir
=.
5476 if test -f $ac_dir/$ac_word; then
5477 ac_cv_path_DLLTOOL_FOR_TARGET
="$ac_dir/$ac_word"
5485 DLLTOOL_FOR_TARGET
="$ac_cv_path_DLLTOOL_FOR_TARGET"
5486 if test -n "$DLLTOOL_FOR_TARGET"; then
5487 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5489 echo "$ac_t""no" 1>&6
5493 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5494 if test -n "$with_build_time_tools"; then
5495 for ncn_progname
in dlltool
; do
5496 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5497 echo "configure:5498: checking for ${ncn_progname} in $with_build_time_tools" >&5
5498 if test -x $with_build_time_tools/${ncn_progname}; then
5499 ac_cv_prog_DLLTOOL_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5500 echo "$ac_t""yes" 1>&6
5503 echo "$ac_t""no" 1>&6
5508 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5509 for ncn_progname
in dlltool
; do
5510 if test -n "$ncn_target_tool_prefix"; then
5511 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5512 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5514 echo "configure:5515: checking for $ac_word" >&5
5515 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5516 echo $ac_n "(cached) $ac_c" 1>&6
5518 if test -n "$DLLTOOL_FOR_TARGET"; then
5519 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5521 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5523 for ac_dir
in $ac_dummy; do
5524 test -z "$ac_dir" && ac_dir
=.
5525 if test -f $ac_dir/$ac_word; then
5526 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5533 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5534 if test -n "$DLLTOOL_FOR_TARGET"; then
5535 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5537 echo "$ac_t""no" 1>&6
5541 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5543 set dummy
${ncn_progname}; ac_word
=$2
5544 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5545 echo "configure:5546: checking for $ac_word" >&5
5546 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5547 echo $ac_n "(cached) $ac_c" 1>&6
5549 if test -n "$DLLTOOL_FOR_TARGET"; then
5550 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5552 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5554 for ac_dir
in $ac_dummy; do
5555 test -z "$ac_dir" && ac_dir
=.
5556 if test -f $ac_dir/$ac_word; then
5557 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_progname}"
5564 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5565 if test -n "$DLLTOOL_FOR_TARGET"; then
5566 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5568 echo "$ac_t""no" 1>&6
5572 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5576 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5578 if test $build = $target ; then
5579 DLLTOOL_FOR_TARGET
="$2"
5581 DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5586 DLLTOOL_FOR_TARGET
=$ac_cv_path_DLLTOOL_FOR_TARGET
5592 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5593 if test -n "$with_build_time_tools"; then
5594 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5595 echo "configure:5596: checking for ld in $with_build_time_tools" >&5
5596 if test -x $with_build_time_tools/ld
; then
5597 LD_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ld
5598 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5599 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5601 echo "$ac_t""no" 1>&6
5603 elif test $build != $host && test $have_gcc_for_target = yes; then
5604 LD_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ld`
5605 test $LD_FOR_TARGET=ld
&& LD_FOR_TARGET
=
5606 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5609 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5610 # Extract the first word of "ld", so it can be a program name with args.
5611 set dummy ld
; ac_word
=$2
5612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5613 echo "configure:5614: checking for $ac_word" >&5
5614 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5615 echo $ac_n "(cached) $ac_c" 1>&6
5617 case "$LD_FOR_TARGET" in
5619 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a path.
5622 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5625 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5626 ac_dummy
="$gcc_cv_tool_dirs"
5627 for ac_dir
in $ac_dummy; do
5628 test -z "$ac_dir" && ac_dir
=.
5629 if test -f $ac_dir/$ac_word; then
5630 ac_cv_path_LD_FOR_TARGET
="$ac_dir/$ac_word"
5638 LD_FOR_TARGET
="$ac_cv_path_LD_FOR_TARGET"
5639 if test -n "$LD_FOR_TARGET"; then
5640 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5642 echo "$ac_t""no" 1>&6
5646 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5647 if test -n "$with_build_time_tools"; then
5648 for ncn_progname
in ld
; do
5649 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5650 echo "configure:5651: checking for ${ncn_progname} in $with_build_time_tools" >&5
5651 if test -x $with_build_time_tools/${ncn_progname}; then
5652 ac_cv_prog_LD_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5653 echo "$ac_t""yes" 1>&6
5656 echo "$ac_t""no" 1>&6
5661 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5662 for ncn_progname
in ld
; do
5663 if test -n "$ncn_target_tool_prefix"; then
5664 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5665 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5667 echo "configure:5668: checking for $ac_word" >&5
5668 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5669 echo $ac_n "(cached) $ac_c" 1>&6
5671 if test -n "$LD_FOR_TARGET"; then
5672 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5674 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5676 for ac_dir
in $ac_dummy; do
5677 test -z "$ac_dir" && ac_dir
=.
5678 if test -f $ac_dir/$ac_word; then
5679 ac_cv_prog_LD_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5686 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5687 if test -n "$LD_FOR_TARGET"; then
5688 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5690 echo "$ac_t""no" 1>&6
5694 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5696 set dummy
${ncn_progname}; ac_word
=$2
5697 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5698 echo "configure:5699: checking for $ac_word" >&5
5699 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5700 echo $ac_n "(cached) $ac_c" 1>&6
5702 if test -n "$LD_FOR_TARGET"; then
5703 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5705 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5707 for ac_dir
in $ac_dummy; do
5708 test -z "$ac_dir" && ac_dir
=.
5709 if test -f $ac_dir/$ac_word; then
5710 ac_cv_prog_LD_FOR_TARGET
="${ncn_progname}"
5717 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5718 if test -n "$LD_FOR_TARGET"; then
5719 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5721 echo "$ac_t""no" 1>&6
5725 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5729 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5731 if test $build = $target ; then
5734 LD_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5739 LD_FOR_TARGET
=$ac_cv_path_LD_FOR_TARGET
5745 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5746 if test -n "$with_build_time_tools"; then
5747 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5748 echo "configure:5749: checking for lipo in $with_build_time_tools" >&5
5749 if test -x $with_build_time_tools/lipo
; then
5750 LIPO_FOR_TARGET
=`cd $with_build_time_tools && pwd`/lipo
5751 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5752 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5754 echo "$ac_t""no" 1>&6
5756 elif test $build != $host && test $have_gcc_for_target = yes; then
5757 LIPO_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=lipo`
5758 test $LIPO_FOR_TARGET=lipo
&& LIPO_FOR_TARGET
=
5759 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5762 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5763 # Extract the first word of "lipo", so it can be a program name with args.
5764 set dummy lipo
; ac_word
=$2
5765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5766 echo "configure:5767: checking for $ac_word" >&5
5767 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5768 echo $ac_n "(cached) $ac_c" 1>&6
5770 case "$LIPO_FOR_TARGET" in
5772 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5775 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5778 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5779 ac_dummy
="$gcc_cv_tool_dirs"
5780 for ac_dir
in $ac_dummy; do
5781 test -z "$ac_dir" && ac_dir
=.
5782 if test -f $ac_dir/$ac_word; then
5783 ac_cv_path_LIPO_FOR_TARGET
="$ac_dir/$ac_word"
5791 LIPO_FOR_TARGET
="$ac_cv_path_LIPO_FOR_TARGET"
5792 if test -n "$LIPO_FOR_TARGET"; then
5793 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5795 echo "$ac_t""no" 1>&6
5799 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5800 if test -n "$with_build_time_tools"; then
5801 for ncn_progname
in lipo
; do
5802 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5803 echo "configure:5804: checking for ${ncn_progname} in $with_build_time_tools" >&5
5804 if test -x $with_build_time_tools/${ncn_progname}; then
5805 ac_cv_prog_LIPO_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5806 echo "$ac_t""yes" 1>&6
5809 echo "$ac_t""no" 1>&6
5814 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5815 for ncn_progname
in lipo
; do
5816 if test -n "$ncn_target_tool_prefix"; then
5817 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5818 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5820 echo "configure:5821: checking for $ac_word" >&5
5821 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5822 echo $ac_n "(cached) $ac_c" 1>&6
5824 if test -n "$LIPO_FOR_TARGET"; then
5825 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
5827 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5829 for ac_dir
in $ac_dummy; do
5830 test -z "$ac_dir" && ac_dir
=.
5831 if test -f $ac_dir/$ac_word; then
5832 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5839 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
5840 if test -n "$LIPO_FOR_TARGET"; then
5841 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5843 echo "$ac_t""no" 1>&6
5847 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5849 set dummy
${ncn_progname}; ac_word
=$2
5850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5851 echo "configure:5852: checking for $ac_word" >&5
5852 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5853 echo $ac_n "(cached) $ac_c" 1>&6
5855 if test -n "$LIPO_FOR_TARGET"; then
5856 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
5858 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5860 for ac_dir
in $ac_dummy; do
5861 test -z "$ac_dir" && ac_dir
=.
5862 if test -f $ac_dir/$ac_word; then
5863 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_progname}"
5870 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
5871 if test -n "$LIPO_FOR_TARGET"; then
5872 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5874 echo "$ac_t""no" 1>&6
5878 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5882 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5884 if test $build = $target ; then
5885 LIPO_FOR_TARGET
="$2"
5887 LIPO_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5892 LIPO_FOR_TARGET
=$ac_cv_path_LIPO_FOR_TARGET
5898 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5899 if test -n "$with_build_time_tools"; then
5900 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
5901 echo "configure:5902: checking for nm in $with_build_time_tools" >&5
5902 if test -x $with_build_time_tools/nm
; then
5903 NM_FOR_TARGET
=`cd $with_build_time_tools && pwd`/nm
5904 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
5905 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5907 echo "$ac_t""no" 1>&6
5909 elif test $build != $host && test $have_gcc_for_target = yes; then
5910 NM_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=nm`
5911 test $NM_FOR_TARGET=nm
&& NM_FOR_TARGET
=
5912 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
5915 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5916 # Extract the first word of "nm", so it can be a program name with args.
5917 set dummy nm
; ac_word
=$2
5918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5919 echo "configure:5920: checking for $ac_word" >&5
5920 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5921 echo $ac_n "(cached) $ac_c" 1>&6
5923 case "$NM_FOR_TARGET" in
5925 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a path.
5928 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5931 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5932 ac_dummy
="$gcc_cv_tool_dirs"
5933 for ac_dir
in $ac_dummy; do
5934 test -z "$ac_dir" && ac_dir
=.
5935 if test -f $ac_dir/$ac_word; then
5936 ac_cv_path_NM_FOR_TARGET
="$ac_dir/$ac_word"
5944 NM_FOR_TARGET
="$ac_cv_path_NM_FOR_TARGET"
5945 if test -n "$NM_FOR_TARGET"; then
5946 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5948 echo "$ac_t""no" 1>&6
5952 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5953 if test -n "$with_build_time_tools"; then
5954 for ncn_progname
in nm
; do
5955 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5956 echo "configure:5957: checking for ${ncn_progname} in $with_build_time_tools" >&5
5957 if test -x $with_build_time_tools/${ncn_progname}; then
5958 ac_cv_prog_NM_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5959 echo "$ac_t""yes" 1>&6
5962 echo "$ac_t""no" 1>&6
5967 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
5968 for ncn_progname
in nm
; do
5969 if test -n "$ncn_target_tool_prefix"; then
5970 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5971 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5973 echo "configure:5974: checking for $ac_word" >&5
5974 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5975 echo $ac_n "(cached) $ac_c" 1>&6
5977 if test -n "$NM_FOR_TARGET"; then
5978 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
5980 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5982 for ac_dir
in $ac_dummy; do
5983 test -z "$ac_dir" && ac_dir
=.
5984 if test -f $ac_dir/$ac_word; then
5985 ac_cv_prog_NM_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5992 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
5993 if test -n "$NM_FOR_TARGET"; then
5994 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5996 echo "$ac_t""no" 1>&6
6000 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
6001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6002 set dummy
${ncn_progname}; ac_word
=$2
6003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6004 echo "configure:6005: checking for $ac_word" >&5
6005 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6006 echo $ac_n "(cached) $ac_c" 1>&6
6008 if test -n "$NM_FOR_TARGET"; then
6009 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
6011 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6013 for ac_dir
in $ac_dummy; do
6014 test -z "$ac_dir" && ac_dir
=.
6015 if test -f $ac_dir/$ac_word; then
6016 ac_cv_prog_NM_FOR_TARGET
="${ncn_progname}"
6023 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
6024 if test -n "$NM_FOR_TARGET"; then
6025 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6027 echo "$ac_t""no" 1>&6
6031 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6035 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6037 if test $build = $target ; then
6040 NM_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6045 NM_FOR_TARGET
=$ac_cv_path_NM_FOR_TARGET
6051 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6052 if test -n "$with_build_time_tools"; then
6053 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6054 echo "configure:6055: checking for objdump in $with_build_time_tools" >&5
6055 if test -x $with_build_time_tools/objdump
; then
6056 OBJDUMP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/objdump
6057 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6058 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6060 echo "$ac_t""no" 1>&6
6062 elif test $build != $host && test $have_gcc_for_target = yes; then
6063 OBJDUMP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=objdump`
6064 test $OBJDUMP_FOR_TARGET=objdump
&& OBJDUMP_FOR_TARGET
=
6065 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6068 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6069 # Extract the first word of "objdump", so it can be a program name with args.
6070 set dummy objdump
; ac_word
=$2
6071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6072 echo "configure:6073: checking for $ac_word" >&5
6073 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6074 echo $ac_n "(cached) $ac_c" 1>&6
6076 case "$OBJDUMP_FOR_TARGET" in
6078 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6081 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6084 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6085 ac_dummy
="$gcc_cv_tool_dirs"
6086 for ac_dir
in $ac_dummy; do
6087 test -z "$ac_dir" && ac_dir
=.
6088 if test -f $ac_dir/$ac_word; then
6089 ac_cv_path_OBJDUMP_FOR_TARGET
="$ac_dir/$ac_word"
6097 OBJDUMP_FOR_TARGET
="$ac_cv_path_OBJDUMP_FOR_TARGET"
6098 if test -n "$OBJDUMP_FOR_TARGET"; then
6099 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6101 echo "$ac_t""no" 1>&6
6105 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6106 if test -n "$with_build_time_tools"; then
6107 for ncn_progname
in objdump
; do
6108 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6109 echo "configure:6110: checking for ${ncn_progname} in $with_build_time_tools" >&5
6110 if test -x $with_build_time_tools/${ncn_progname}; then
6111 ac_cv_prog_OBJDUMP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6112 echo "$ac_t""yes" 1>&6
6115 echo "$ac_t""no" 1>&6
6120 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6121 for ncn_progname
in objdump
; do
6122 if test -n "$ncn_target_tool_prefix"; then
6123 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6124 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6126 echo "configure:6127: checking for $ac_word" >&5
6127 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6128 echo $ac_n "(cached) $ac_c" 1>&6
6130 if test -n "$OBJDUMP_FOR_TARGET"; then
6131 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6133 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6135 for ac_dir
in $ac_dummy; do
6136 test -z "$ac_dir" && ac_dir
=.
6137 if test -f $ac_dir/$ac_word; then
6138 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6145 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6146 if test -n "$OBJDUMP_FOR_TARGET"; then
6147 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6149 echo "$ac_t""no" 1>&6
6153 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6155 set dummy
${ncn_progname}; ac_word
=$2
6156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6157 echo "configure:6158: checking for $ac_word" >&5
6158 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6159 echo $ac_n "(cached) $ac_c" 1>&6
6161 if test -n "$OBJDUMP_FOR_TARGET"; then
6162 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6164 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6166 for ac_dir
in $ac_dummy; do
6167 test -z "$ac_dir" && ac_dir
=.
6168 if test -f $ac_dir/$ac_word; then
6169 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_progname}"
6176 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6177 if test -n "$OBJDUMP_FOR_TARGET"; then
6178 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6180 echo "$ac_t""no" 1>&6
6184 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6188 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6190 if test $build = $target ; then
6191 OBJDUMP_FOR_TARGET
="$2"
6193 OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6198 OBJDUMP_FOR_TARGET
=$ac_cv_path_OBJDUMP_FOR_TARGET
6204 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6205 if test -n "$with_build_time_tools"; then
6206 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6207 echo "configure:6208: checking for ranlib in $with_build_time_tools" >&5
6208 if test -x $with_build_time_tools/ranlib
; then
6209 RANLIB_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ranlib
6210 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6211 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6213 echo "$ac_t""no" 1>&6
6215 elif test $build != $host && test $have_gcc_for_target = yes; then
6216 RANLIB_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6217 test $RANLIB_FOR_TARGET=ranlib
&& RANLIB_FOR_TARGET
=
6218 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6221 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6222 # Extract the first word of "ranlib", so it can be a program name with args.
6223 set dummy ranlib
; ac_word
=$2
6224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6225 echo "configure:6226: checking for $ac_word" >&5
6226 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6227 echo $ac_n "(cached) $ac_c" 1>&6
6229 case "$RANLIB_FOR_TARGET" in
6231 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6234 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6237 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6238 ac_dummy
="$gcc_cv_tool_dirs"
6239 for ac_dir
in $ac_dummy; do
6240 test -z "$ac_dir" && ac_dir
=.
6241 if test -f $ac_dir/$ac_word; then
6242 ac_cv_path_RANLIB_FOR_TARGET
="$ac_dir/$ac_word"
6250 RANLIB_FOR_TARGET
="$ac_cv_path_RANLIB_FOR_TARGET"
6251 if test -n "$RANLIB_FOR_TARGET"; then
6252 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6254 echo "$ac_t""no" 1>&6
6258 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6259 if test -n "$with_build_time_tools"; then
6260 for ncn_progname
in ranlib
; do
6261 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6262 echo "configure:6263: checking for ${ncn_progname} in $with_build_time_tools" >&5
6263 if test -x $with_build_time_tools/${ncn_progname}; then
6264 ac_cv_prog_RANLIB_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6265 echo "$ac_t""yes" 1>&6
6268 echo "$ac_t""no" 1>&6
6273 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6274 for ncn_progname
in ranlib
; do
6275 if test -n "$ncn_target_tool_prefix"; then
6276 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6277 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6279 echo "configure:6280: checking for $ac_word" >&5
6280 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6281 echo $ac_n "(cached) $ac_c" 1>&6
6283 if test -n "$RANLIB_FOR_TARGET"; then
6284 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6286 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6288 for ac_dir
in $ac_dummy; do
6289 test -z "$ac_dir" && ac_dir
=.
6290 if test -f $ac_dir/$ac_word; then
6291 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6298 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6299 if test -n "$RANLIB_FOR_TARGET"; then
6300 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6302 echo "$ac_t""no" 1>&6
6306 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6308 set dummy
${ncn_progname}; ac_word
=$2
6309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6310 echo "configure:6311: checking for $ac_word" >&5
6311 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6312 echo $ac_n "(cached) $ac_c" 1>&6
6314 if test -n "$RANLIB_FOR_TARGET"; then
6315 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6317 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6319 for ac_dir
in $ac_dummy; do
6320 test -z "$ac_dir" && ac_dir
=.
6321 if test -f $ac_dir/$ac_word; then
6322 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_progname}"
6329 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6330 if test -n "$RANLIB_FOR_TARGET"; then
6331 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6333 echo "$ac_t""no" 1>&6
6337 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6341 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6343 if test $build = $target ; then
6344 RANLIB_FOR_TARGET
="$2"
6346 RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6351 RANLIB_FOR_TARGET
=$ac_cv_path_RANLIB_FOR_TARGET
6357 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6358 if test -n "$with_build_time_tools"; then
6359 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6360 echo "configure:6361: checking for strip in $with_build_time_tools" >&5
6361 if test -x $with_build_time_tools/strip
; then
6362 STRIP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/strip
6363 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6364 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6366 echo "$ac_t""no" 1>&6
6368 elif test $build != $host && test $have_gcc_for_target = yes; then
6369 STRIP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=strip`
6370 test $STRIP_FOR_TARGET=strip
&& STRIP_FOR_TARGET
=
6371 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6374 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6375 # Extract the first word of "strip", so it can be a program name with args.
6376 set dummy strip
; ac_word
=$2
6377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6378 echo "configure:6379: checking for $ac_word" >&5
6379 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6
6382 case "$STRIP_FOR_TARGET" in
6384 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6387 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6390 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6391 ac_dummy
="$gcc_cv_tool_dirs"
6392 for ac_dir
in $ac_dummy; do
6393 test -z "$ac_dir" && ac_dir
=.
6394 if test -f $ac_dir/$ac_word; then
6395 ac_cv_path_STRIP_FOR_TARGET
="$ac_dir/$ac_word"
6403 STRIP_FOR_TARGET
="$ac_cv_path_STRIP_FOR_TARGET"
6404 if test -n "$STRIP_FOR_TARGET"; then
6405 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6407 echo "$ac_t""no" 1>&6
6411 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6412 if test -n "$with_build_time_tools"; then
6413 for ncn_progname
in strip
; do
6414 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6415 echo "configure:6416: checking for ${ncn_progname} in $with_build_time_tools" >&5
6416 if test -x $with_build_time_tools/${ncn_progname}; then
6417 ac_cv_prog_STRIP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6418 echo "$ac_t""yes" 1>&6
6421 echo "$ac_t""no" 1>&6
6426 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6427 for ncn_progname
in strip
; do
6428 if test -n "$ncn_target_tool_prefix"; then
6429 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6430 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6432 echo "configure:6433: checking for $ac_word" >&5
6433 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6434 echo $ac_n "(cached) $ac_c" 1>&6
6436 if test -n "$STRIP_FOR_TARGET"; then
6437 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6439 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6441 for ac_dir
in $ac_dummy; do
6442 test -z "$ac_dir" && ac_dir
=.
6443 if test -f $ac_dir/$ac_word; then
6444 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6451 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6452 if test -n "$STRIP_FOR_TARGET"; then
6453 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6455 echo "$ac_t""no" 1>&6
6459 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6461 set dummy
${ncn_progname}; ac_word
=$2
6462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6463 echo "configure:6464: checking for $ac_word" >&5
6464 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6465 echo $ac_n "(cached) $ac_c" 1>&6
6467 if test -n "$STRIP_FOR_TARGET"; then
6468 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6470 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6472 for ac_dir
in $ac_dummy; do
6473 test -z "$ac_dir" && ac_dir
=.
6474 if test -f $ac_dir/$ac_word; then
6475 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_progname}"
6482 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6483 if test -n "$STRIP_FOR_TARGET"; then
6484 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6486 echo "$ac_t""no" 1>&6
6490 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6494 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6496 if test $build = $target ; then
6497 STRIP_FOR_TARGET
="$2"
6499 STRIP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6504 STRIP_FOR_TARGET
=$ac_cv_path_STRIP_FOR_TARGET
6510 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6511 if test -n "$with_build_time_tools"; then
6512 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6513 echo "configure:6514: checking for windres in $with_build_time_tools" >&5
6514 if test -x $with_build_time_tools/windres
; then
6515 WINDRES_FOR_TARGET
=`cd $with_build_time_tools && pwd`/windres
6516 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6517 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6519 echo "$ac_t""no" 1>&6
6521 elif test $build != $host && test $have_gcc_for_target = yes; then
6522 WINDRES_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=windres`
6523 test $WINDRES_FOR_TARGET=windres
&& WINDRES_FOR_TARGET
=
6524 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6527 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6528 # Extract the first word of "windres", so it can be a program name with args.
6529 set dummy windres
; ac_word
=$2
6530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6531 echo "configure:6532: checking for $ac_word" >&5
6532 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6533 echo $ac_n "(cached) $ac_c" 1>&6
6535 case "$WINDRES_FOR_TARGET" in
6537 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6540 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6543 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6544 ac_dummy
="$gcc_cv_tool_dirs"
6545 for ac_dir
in $ac_dummy; do
6546 test -z "$ac_dir" && ac_dir
=.
6547 if test -f $ac_dir/$ac_word; then
6548 ac_cv_path_WINDRES_FOR_TARGET
="$ac_dir/$ac_word"
6556 WINDRES_FOR_TARGET
="$ac_cv_path_WINDRES_FOR_TARGET"
6557 if test -n "$WINDRES_FOR_TARGET"; then
6558 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6560 echo "$ac_t""no" 1>&6
6564 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6565 if test -n "$with_build_time_tools"; then
6566 for ncn_progname
in windres
; do
6567 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6568 echo "configure:6569: checking for ${ncn_progname} in $with_build_time_tools" >&5
6569 if test -x $with_build_time_tools/${ncn_progname}; then
6570 ac_cv_prog_WINDRES_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6571 echo "$ac_t""yes" 1>&6
6574 echo "$ac_t""no" 1>&6
6579 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6580 for ncn_progname
in windres
; do
6581 if test -n "$ncn_target_tool_prefix"; then
6582 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6583 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6585 echo "configure:6586: checking for $ac_word" >&5
6586 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6587 echo $ac_n "(cached) $ac_c" 1>&6
6589 if test -n "$WINDRES_FOR_TARGET"; then
6590 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6592 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6594 for ac_dir
in $ac_dummy; do
6595 test -z "$ac_dir" && ac_dir
=.
6596 if test -f $ac_dir/$ac_word; then
6597 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6604 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6605 if test -n "$WINDRES_FOR_TARGET"; then
6606 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6608 echo "$ac_t""no" 1>&6
6612 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6614 set dummy
${ncn_progname}; ac_word
=$2
6615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6616 echo "configure:6617: checking for $ac_word" >&5
6617 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6618 echo $ac_n "(cached) $ac_c" 1>&6
6620 if test -n "$WINDRES_FOR_TARGET"; then
6621 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6623 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6625 for ac_dir
in $ac_dummy; do
6626 test -z "$ac_dir" && ac_dir
=.
6627 if test -f $ac_dir/$ac_word; then
6628 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_progname}"
6635 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6636 if test -n "$WINDRES_FOR_TARGET"; then
6637 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6639 echo "$ac_t""no" 1>&6
6643 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6647 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6649 if test $build = $target ; then
6650 WINDRES_FOR_TARGET
="$2"
6652 WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6657 WINDRES_FOR_TARGET
=$ac_cv_path_WINDRES_FOR_TARGET
6661 RAW_CXX_FOR_TARGET
="$CXX_FOR_TARGET"
6663 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6664 echo "configure:6665: checking where to find the target ar" >&5
6665 if test "x${build}" != "x${host}" ; then
6666 if expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6667 # We already found the complete path
6668 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6670 # Canadian cross, just use what we found
6671 echo "$ac_t""pre-installed" 1>&6
6675 case " ${configdirs} " in
6680 if test $ok = yes; then
6681 # An in-tree tool is available and we can use it
6682 AR_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ar'
6683 echo "$ac_t""just compiled" 1>&6
6684 elif expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6685 # We already found the complete path
6686 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6687 elif test "x$target" = "x$host"; then
6688 # We can use an host tool
6689 AR_FOR_TARGET
='$(AR)'
6690 echo "$ac_t""host tool" 1>&6
6692 # We need a cross tool
6693 echo "$ac_t""pre-installed" 1>&6
6696 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6697 echo "configure:6698: checking where to find the target as" >&5
6698 if test "x${build}" != "x${host}" ; then
6699 if expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6700 # We already found the complete path
6701 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6703 # Canadian cross, just use what we found
6704 echo "$ac_t""pre-installed" 1>&6
6708 case " ${configdirs} " in
6713 if test $ok = yes; then
6714 # An in-tree tool is available and we can use it
6715 AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gas/as-new'
6716 echo "$ac_t""just compiled" 1>&6
6717 elif expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6718 # We already found the complete path
6719 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6720 elif test "x$target" = "x$host"; then
6721 # We can use an host tool
6722 AS_FOR_TARGET
='$(AS)'
6723 echo "$ac_t""host tool" 1>&6
6725 # We need a cross tool
6726 echo "$ac_t""pre-installed" 1>&6
6729 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6730 echo "configure:6731: checking where to find the target cc" >&5
6731 if test "x${build}" != "x${host}" ; then
6732 if expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6733 # We already found the complete path
6734 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6736 # Canadian cross, just use what we found
6737 echo "$ac_t""pre-installed" 1>&6
6741 case " ${configdirs} " in
6746 if test $ok = yes; then
6747 # An in-tree tool is available and we can use it
6748 CC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6749 echo "$ac_t""just compiled" 1>&6
6750 elif expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6751 # We already found the complete path
6752 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6753 elif test "x$target" = "x$host"; then
6754 # We can use an host tool
6755 CC_FOR_TARGET
='$(CC)'
6756 echo "$ac_t""host tool" 1>&6
6758 # We need a cross tool
6759 echo "$ac_t""pre-installed" 1>&6
6762 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6763 echo "configure:6764: checking where to find the target c++" >&5
6764 if test "x${build}" != "x${host}" ; then
6765 if expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6766 # We already found the complete path
6767 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6769 # Canadian cross, just use what we found
6770 echo "$ac_t""pre-installed" 1>&6
6774 case " ${configdirs} " in
6778 case ,${enable_languages}, in
6782 if test $ok = yes; then
6783 # An in-tree tool is available and we can use it
6784 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'
6785 echo "$ac_t""just compiled" 1>&6
6786 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6787 # We already found the complete path
6788 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6789 elif test "x$target" = "x$host"; then
6790 # We can use an host tool
6791 CXX_FOR_TARGET
='$(CXX)'
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++ for libstdc++""... $ac_c" 1>&6
6799 echo "configure:6800: checking where to find the target c++ for libstdc++" >&5
6800 if test "x${build}" != "x${host}" ; then
6801 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6802 # We already found the complete path
6803 echo "$ac_t""pre-installed in `dirname $RAW_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 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'
6821 echo "$ac_t""just compiled" 1>&6
6822 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6823 # We already found the complete path
6824 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6825 elif test "x$target" = "x$host"; then
6826 # We can use an host tool
6827 RAW_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 dlltool""... $ac_c" 1>&6
6835 echo "configure:6836: checking where to find the target dlltool" >&5
6836 if test "x${build}" != "x${host}" ; then
6837 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
6838 # We already found the complete path
6839 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6841 # Canadian cross, just use what we found
6842 echo "$ac_t""pre-installed" 1>&6
6846 case " ${configdirs} " in
6851 if test $ok = yes; then
6852 # An in-tree tool is available and we can use it
6853 DLLTOOL_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6854 echo "$ac_t""just compiled" 1>&6
6855 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
6856 # We already found the complete path
6857 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6858 elif test "x$target" = "x$host"; then
6859 # We can use an host tool
6860 DLLTOOL_FOR_TARGET
='$(DLLTOOL)'
6861 echo "$ac_t""host tool" 1>&6
6863 # We need a cross tool
6864 echo "$ac_t""pre-installed" 1>&6
6867 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6868 echo "configure:6869: checking where to find the target gcc" >&5
6869 if test "x${build}" != "x${host}" ; then
6870 if expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
6871 # We already found the complete path
6872 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6874 # Canadian cross, just use what we found
6875 echo "$ac_t""pre-installed" 1>&6
6879 case " ${configdirs} " in
6884 if test $ok = yes; then
6885 # An in-tree tool is available and we can use it
6886 GCC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6887 echo "$ac_t""just compiled" 1>&6
6888 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
6889 # We already found the complete path
6890 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6891 elif test "x$target" = "x$host"; then
6892 # We can use an host tool
6893 GCC_FOR_TARGET
='$()'
6894 echo "$ac_t""host tool" 1>&6
6896 # We need a cross tool
6897 echo "$ac_t""pre-installed" 1>&6
6900 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6901 echo "configure:6902: checking where to find the target gcj" >&5
6902 if test "x${build}" != "x${host}" ; then
6903 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
6904 # We already found the complete path
6905 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6907 # Canadian cross, just use what we found
6908 echo "$ac_t""pre-installed" 1>&6
6912 case " ${configdirs} " in
6916 case ,${enable_languages}, in
6920 if test $ok = yes; then
6921 # An in-tree tool is available and we can use it
6922 GCJ_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6923 echo "$ac_t""just compiled" 1>&6
6924 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
6925 # We already found the complete path
6926 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6927 elif test "x$target" = "x$host"; then
6928 # We can use an host tool
6929 GCJ_FOR_TARGET
='$(GCJ)'
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 gfortran""... $ac_c" 1>&6
6937 echo "configure:6938: checking where to find the target gfortran" >&5
6938 if test "x${build}" != "x${host}" ; then
6939 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
6940 # We already found the complete path
6941 echo "$ac_t""pre-installed in `dirname $GFORTRAN_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 GFORTRAN_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
6959 echo "$ac_t""just compiled" 1>&6
6960 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
6961 # We already found the complete path
6962 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6963 elif test "x$target" = "x$host"; then
6964 # We can use an host tool
6965 GFORTRAN_FOR_TARGET
='$(GFORTRAN)'
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 ld""... $ac_c" 1>&6
6973 echo "configure:6974: checking where to find the target ld" >&5
6974 if test "x${build}" != "x${host}" ; then
6975 if expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
6976 # We already found the complete path
6977 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6979 # Canadian cross, just use what we found
6980 echo "$ac_t""pre-installed" 1>&6
6984 case " ${configdirs} " in
6989 if test $ok = yes; then
6990 # An in-tree tool is available and we can use it
6991 LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/ld/ld-new'
6992 echo "$ac_t""just compiled" 1>&6
6993 elif expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
6994 # We already found the complete path
6995 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6996 elif test "x$target" = "x$host"; then
6997 # We can use an host tool
6998 LD_FOR_TARGET
='$(LD)'
6999 echo "$ac_t""host tool" 1>&6
7001 # We need a cross tool
7002 echo "$ac_t""pre-installed" 1>&6
7005 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
7006 echo "configure:7007: checking where to find the target lipo" >&5
7007 if test "x${build}" != "x${host}" ; then
7008 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
7009 # We already found the complete path
7010 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7012 # Canadian cross, just use what we found
7013 echo "$ac_t""pre-installed" 1>&6
7016 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
7017 # We already found the complete path
7018 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7019 elif test "x$target" = "x$host"; then
7020 # We can use an host tool
7021 LIPO_FOR_TARGET
='$(LIPO)'
7022 echo "$ac_t""host tool" 1>&6
7024 # We need a cross tool
7025 echo "$ac_t""pre-installed" 1>&6
7028 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
7029 echo "configure:7030: checking where to find the target nm" >&5
7030 if test "x${build}" != "x${host}" ; then
7031 if expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
7032 # We already found the complete path
7033 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7035 # Canadian cross, just use what we found
7036 echo "$ac_t""pre-installed" 1>&6
7040 case " ${configdirs} " in
7045 if test $ok = yes; then
7046 # An in-tree tool is available and we can use it
7047 NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7048 echo "$ac_t""just compiled" 1>&6
7049 elif expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
7050 # We already found the complete path
7051 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7052 elif test "x$target" = "x$host"; then
7053 # We can use an host tool
7054 NM_FOR_TARGET
='$(NM)'
7055 echo "$ac_t""host tool" 1>&6
7057 # We need a cross tool
7058 echo "$ac_t""pre-installed" 1>&6
7061 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7062 echo "configure:7063: checking where to find the target objdump" >&5
7063 if test "x${build}" != "x${host}" ; then
7064 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7065 # We already found the complete path
7066 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7068 # Canadian cross, just use what we found
7069 echo "$ac_t""pre-installed" 1>&6
7073 case " ${configdirs} " in
7078 if test $ok = yes; then
7079 # An in-tree tool is available and we can use it
7080 OBJDUMP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/objdump'
7081 echo "$ac_t""just compiled" 1>&6
7082 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7083 # We already found the complete path
7084 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7085 elif test "x$target" = "x$host"; then
7086 # We can use an host tool
7087 OBJDUMP_FOR_TARGET
='$(OBJDUMP)'
7088 echo "$ac_t""host tool" 1>&6
7090 # We need a cross tool
7091 echo "$ac_t""pre-installed" 1>&6
7094 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7095 echo "configure:7096: checking where to find the target ranlib" >&5
7096 if test "x${build}" != "x${host}" ; then
7097 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7098 # We already found the complete path
7099 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7101 # Canadian cross, just use what we found
7102 echo "$ac_t""pre-installed" 1>&6
7106 case " ${configdirs} " in
7111 if test $ok = yes; then
7112 # An in-tree tool is available and we can use it
7113 RANLIB_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7114 echo "$ac_t""just compiled" 1>&6
7115 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7116 # We already found the complete path
7117 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7118 elif test "x$target" = "x$host"; then
7119 # We can use an host tool
7120 RANLIB_FOR_TARGET
='$(RANLIB)'
7121 echo "$ac_t""host tool" 1>&6
7123 # We need a cross tool
7124 echo "$ac_t""pre-installed" 1>&6
7127 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7128 echo "configure:7129: checking where to find the target strip" >&5
7129 if test "x${build}" != "x${host}" ; then
7130 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7131 # We already found the complete path
7132 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7134 # Canadian cross, just use what we found
7135 echo "$ac_t""pre-installed" 1>&6
7139 case " ${configdirs} " in
7144 if test $ok = yes; then
7145 # An in-tree tool is available and we can use it
7146 STRIP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/strip'
7147 echo "$ac_t""just compiled" 1>&6
7148 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7149 # We already found the complete path
7150 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7151 elif test "x$target" = "x$host"; then
7152 # We can use an host tool
7153 STRIP_FOR_TARGET
='$(STRIP)'
7154 echo "$ac_t""host tool" 1>&6
7156 # We need a cross tool
7157 echo "$ac_t""pre-installed" 1>&6
7160 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7161 echo "configure:7162: checking where to find the target windres" >&5
7162 if test "x${build}" != "x${host}" ; then
7163 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7164 # We already found the complete path
7165 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7167 # Canadian cross, just use what we found
7168 echo "$ac_t""pre-installed" 1>&6
7172 case " ${configdirs} " in
7177 if test $ok = yes; then
7178 # An in-tree tool is available and we can use it
7179 WINDRES_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/windres'
7180 echo "$ac_t""just compiled" 1>&6
7181 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7182 # We already found the complete path
7183 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7184 elif test "x$target" = "x$host"; then
7185 # We can use an host tool
7186 WINDRES_FOR_TARGET
='$(WINDRES)'
7187 echo "$ac_t""host tool" 1>&6
7189 # We need a cross tool
7190 echo "$ac_t""pre-installed" 1>&6
7197 # Certain tools may need extra flags.
7198 AR_FOR_TARGET
=${AR_FOR_TARGET}${extra_arflags_for_target}
7199 RANLIB_FOR_TARGET
=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7200 NM_FOR_TARGET
=${NM_FOR_TARGET}${extra_nmflags_for_target}
7202 # When building target libraries, except in a Canadian cross, we use
7203 # the same toolchain as the compiler we just built.
7204 COMPILER_AS_FOR_TARGET
='$(AS_FOR_TARGET)'
7205 COMPILER_LD_FOR_TARGET
='$(LD_FOR_TARGET)'
7206 COMPILER_NM_FOR_TARGET
='$(NM_FOR_TARGET)'
7207 if test $host = $build; then
7208 case " $configdirs " in
7210 COMPILER_AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/as'
7211 COMPILER_LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7212 COMPILER_NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7221 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7222 echo "configure:7223: checking whether to enable maintainer-specific portions of Makefiles" >&5
7223 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7224 if test "${enable_maintainer_mode+set}" = set; then
7225 enableval
="$enable_maintainer_mode"
7226 USE_MAINTAINER_MODE
=$enableval
7228 USE_MAINTAINER_MODE
=no
7231 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7234 if test "$USE_MAINTAINER_MODE" = yes; then
7235 MAINTAINER_MODE_TRUE
=
7236 MAINTAINER_MODE_FALSE
='#'
7238 MAINTAINER_MODE_TRUE
='#'
7239 MAINTAINER_MODE_FALSE
=
7241 MAINT
=$MAINTAINER_MODE_TRUE
7243 # ---------------------
7244 # GCC bootstrap support
7245 # ---------------------
7247 # Stage specific cflags for build.
7252 yes) stage1_cflags
="-g -Wa,-J" ;;
7253 *) stage1_cflags
="-g -J" ;;
7256 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7257 # sources; use -no-cpp-precomp to get to GNU cpp.
7258 # Apple's GCC has bugs in designated initializer handling, so disable
7260 stage1_cflags
="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7264 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
7265 if test "$GCC" = yes; then
7266 saved_CFLAGS
="$CFLAGS"
7268 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
7269 CFLAGS
="$CFLAGS -fkeep-inline-functions"
7270 echo $ac_n "checking whether -fkeep-inline-functions is supported""... $ac_c" 1>&6
7271 echo "configure:7272: checking whether -fkeep-inline-functions is supported" >&5
7272 cat > conftest.
$ac_ext <<EOF
7273 #line 7274 "configure"
7274 #include "confdefs.h"
7280 if { (eval echo configure
:7281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7282 echo "$ac_t""yes" 1>&6; stage1_cflags
="$stage1_cflags -fkeep-inline-functions"
7284 echo "configure: failed program was:" >&5
7285 cat conftest.
$ac_ext >&5
7287 echo "$ac_t""no" 1>&6
7291 CFLAGS
="$saved_CFLAGS"
7296 # Enable -Werror in bootstrap stage2 and later.
7297 # Change the default to "no" on release branches.
7298 # Check whether --enable-werror or --disable-werror was given.
7299 if test "${enable_werror+set}" = set; then
7300 enableval
="$enable_werror"
7306 case ${enable_werror} in
7307 yes) stage2_werror_flag
="--enable-werror-always" ;;
7308 *) stage2_werror_flag
="" ;;
7312 # Flags needed to enable html installing and building
7313 # Check whether --with-datarootdir or --without-datarootdir was given.
7314 if test "${with_datarootdir+set}" = set; then
7315 withval
="$with_datarootdir"
7316 datarootdir
="\${prefix}/${withval}"
7318 datarootdir
="\${prefix}/share"
7322 # Check whether --with-docdir or --without-docdir was given.
7323 if test "${with_docdir+set}" = set; then
7324 withval
="$with_docdir"
7325 docdir
="\${prefix}/${withval}"
7327 docdir
="\${datarootdir}/doc"
7331 # Check whether --with-htmldir or --without-htmldir was given.
7332 if test "${with_htmldir+set}" = set; then
7333 withval
="$with_htmldir"
7334 htmldir
="\${prefix}/${withval}"
7336 htmldir
="\${docdir}"
7345 cat > confcache
<<\EOF
7346 # This file is a shell script that caches the results of configure
7347 # tests run on this system so they can be shared between configure
7348 # scripts and configure runs. It is not useful on other systems.
7349 # If it contains results you don't want to keep, you may remove or edit it.
7351 # By default, configure uses ./config.cache as the cache file,
7352 # creating it if it does not exist already. You can give configure
7353 # the --cache-file=FILE option to use a different cache file; that is
7354 # what configure does when it calls configure scripts in
7355 # subdirectories, so they share the cache.
7356 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7357 # config.status only pays attention to the cache file if you give it the
7358 # --recheck option to rerun configure.
7361 # The following way of writing the cache mishandles newlines in values,
7362 # but we know of no workaround that is simple, portable, and efficient.
7363 # So, don't put newlines in cache variables' values.
7364 # Ultrix sh set writes to stderr and can't be redirected directly,
7365 # and sets the high bit in the cache file unless we assign to the vars.
7367 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7369 # `set' does not quote correctly, so add quotes (double-quote substitution
7370 # turns \\\\ into \\, and sed turns \\ into \).
7372 -e "s/'/'\\\\''/g" \
7373 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7376 # `set' quotes correctly as required by POSIX, so do not add quotes.
7377 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7380 if cmp -s $cache_file confcache
; then
7383 if test -w $cache_file; then
7384 echo "updating cache $cache_file"
7385 cat confcache
> $cache_file
7387 echo "not updating unwritable cache $cache_file"
7392 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7394 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7395 # Let make expand exec_prefix.
7396 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7398 # Any assignment to VPATH causes Sun make to only execute
7399 # the first set of double-colon rules, so remove it if not needed.
7400 # If there is a colon in the path, we need to keep it.
7401 if test "x$srcdir" = x.
; then
7402 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7405 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7407 # Transform confdefs.h into DEFS.
7408 # Protect against shell expansion while executing Makefile rules.
7409 # Protect against Makefile macro expansion.
7410 cat > conftest.defs
<<\EOF
7411 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7412 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7417 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
7421 # Without the "./", some shells look in PATH for config.status.
7422 : ${CONFIG_STATUS=./config.status}
7424 echo creating $CONFIG_STATUS
7425 rm -f $CONFIG_STATUS
7426 cat > $CONFIG_STATUS <<EOF
7428 # Generated automatically by configure.
7429 # Run this file to recreate the current configuration.
7430 # This directory was configured as follows,
7431 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
7433 # $0 $ac_configure_args
7435 # Compiler output produced by configure, useful for debugging
7436 # configure, is in ./config.log if it exists.
7438 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7441 case "\$ac_option" in
7442 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7443 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7444 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7445 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7446 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7448 -help | --help | --hel | --he | --h)
7449 echo "\$ac_cs_usage"; exit 0 ;;
7450 *) echo "\$ac_cs_usage"; exit 1 ;;
7454 ac_given_srcdir=$srcdir
7455 ac_given_INSTALL="$INSTALL"
7457 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7459 cat >> $CONFIG_STATUS <<EOF
7461 # Protect against being on the right side of a sed subst in config.status.
7462 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7463 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7467 s%@CFLAGS@%$CFLAGS%g
7468 s%@CPPFLAGS@%$CPPFLAGS%g
7469 s%@CXXFLAGS@%$CXXFLAGS%g
7470 s%@FFLAGS@%$FFLAGS%g
7472 s%@LDFLAGS@%$LDFLAGS%g
7474 s%@exec_prefix@%$exec_prefix%g
7475 s%@prefix@%$prefix%g
7476 s%@program_transform_name@%$program_transform_name%g
7477 s%@bindir@%$bindir%g
7478 s%@sbindir@%$sbindir%g
7479 s%@libexecdir@%$libexecdir%g
7480 s%@datadir@%$datadir%g
7481 s%@sysconfdir@%$sysconfdir%g
7482 s%@sharedstatedir@%$sharedstatedir%g
7483 s%@localstatedir@%$localstatedir%g
7484 s%@libdir@%$libdir%g
7485 s%@includedir@%$includedir%g
7486 s%@oldincludedir@%$oldincludedir%g
7487 s%@infodir@%$infodir%g
7488 s%@mandir@%$mandir%g
7490 s%@host_alias@%$host_alias%g
7491 s%@host_cpu@%$host_cpu%g
7492 s%@host_vendor@%$host_vendor%g
7493 s%@host_os@%$host_os%g
7494 s%@target@%$target%g
7495 s%@target_alias@%$target_alias%g
7496 s%@target_cpu@%$target_cpu%g
7497 s%@target_vendor@%$target_vendor%g
7498 s%@target_os@%$target_os%g
7500 s%@build_alias@%$build_alias%g
7501 s%@build_cpu@%$build_cpu%g
7502 s%@build_vendor@%$build_vendor%g
7503 s%@build_os@%$build_os%g
7504 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7505 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7506 s%@INSTALL_DATA@%$INSTALL_DATA%g
7509 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7510 s%@build_libsubdir@%$build_libsubdir%g
7511 s%@build_subdir@%$build_subdir%g
7512 s%@host_subdir@%$host_subdir%g
7513 s%@target_subdir@%$target_subdir%g
7515 s%@GNATBIND@%$GNATBIND%g
7516 s%@do_compare@%$do_compare%g
7517 s%@gmplibs@%$gmplibs%g
7518 s%@gmpinc@%$gmpinc%g
7519 s%@stage1_languages@%$stage1_languages%g
7520 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7521 /@serialization_dependencies@/r $serialization_dependencies
7522 s%@serialization_dependencies@%%g
7523 /@host_makefile_frag@/r $host_makefile_frag
7524 s%@host_makefile_frag@%%g
7525 /@target_makefile_frag@/r $target_makefile_frag
7526 s%@target_makefile_frag@%%g
7527 /@alphaieee_frag@/r $alphaieee_frag
7528 s%@alphaieee_frag@%%g
7529 /@ospace_frag@/r $ospace_frag
7531 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7532 s%@tooldir@%$tooldir%g
7533 s%@build_tooldir@%$build_tooldir%g
7534 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7535 s%@GDB_TK@%$GDB_TK%g
7536 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7537 s%@build_configargs@%$build_configargs%g
7538 s%@build_configdirs@%$build_configdirs%g
7539 s%@host_configargs@%$host_configargs%g
7540 s%@configdirs@%$configdirs%g
7541 s%@target_configargs@%$target_configargs%g
7542 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7543 s%@config_shell@%$config_shell%g
7549 s%@MAKEINFO@%$MAKEINFO%g
7550 s%@EXPECT@%$EXPECT%g
7551 s%@RUNTEST@%$RUNTEST%g
7554 s%@DLLTOOL@%$DLLTOOL%g
7558 s%@RANLIB@%$RANLIB%g
7560 s%@WINDRES@%$WINDRES%g
7561 s%@OBJCOPY@%$OBJCOPY%g
7562 s%@OBJDUMP@%$OBJDUMP%g
7564 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7565 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7566 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7567 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7568 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7569 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7570 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7571 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7572 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7573 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7574 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7575 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7576 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7577 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7578 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7579 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7580 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7581 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7582 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7583 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7584 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7585 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7586 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7588 s%@stage1_cflags@%$stage1_cflags%g
7589 s%@stage2_werror_flag@%$stage2_werror_flag%g
7590 s%@datarootdir@%$datarootdir%g
7591 s%@docdir@%$docdir%g
7592 s%@htmldir@%$htmldir%g
7597 cat >> $CONFIG_STATUS <<\EOF
7599 # Split the substitutions into bite-sized pieces for seds with
7600 # small command number limits, like on Digital OSF/1 and HP-UX.
7601 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7602 ac_file=1 # Number of current file.
7603 ac_beg=1 # First line for current file.
7604 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7607 while $ac_more_lines; do
7608 if test $ac_beg -gt 1; then
7609 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7611 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7613 if test ! -s conftest.s$ac_file; then
7615 rm -f conftest.s$ac_file
7617 if test -z "$ac_sed_cmds"; then
7618 ac_sed_cmds="sed -f conftest.s$ac_file"
7620 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7622 ac_file=`expr $ac_file + 1`
7624 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7627 if test -z "$ac_sed_cmds"; then
7632 cat >> $CONFIG_STATUS <<EOF
7634 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7636 cat >> $CONFIG_STATUS <<\EOF
7637 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7638 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7640 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
7641 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
7642 *) ac_file_in="${ac_file}.in" ;;
7645 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7647 # Remove last slash and all that follows it. Not all systems have dirname.
7648 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7649 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7650 # The file is in a subdirectory.
7651 test ! -d "$ac_dir" && mkdir "$ac_dir"
7652 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
7653 # A "../" for each directory in $ac_dir_suffix.
7654 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
7656 ac_dir_suffix= ac_dots=
7659 case "$ac_given_srcdir" in
7661 if test -z "$ac_dots"; then top_srcdir=.
7662 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
7663 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7665 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7666 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7669 case "$ac_given_INSTALL" in
7670 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7671 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7674 echo creating "$ac_file"
7676 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
7678 *Makefile*) ac_comsub="1i\\
7679 # $configure_input" ;;
7683 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7685 s%@configure_input@%$configure_input%g
7686 s%@srcdir@%$srcdir%g
7687 s%@top_srcdir@%$top_srcdir%g
7688 s%@INSTALL@%$INSTALL%g
7689 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7694 cat >> $CONFIG_STATUS <<EOF
7697 cat >> $CONFIG_STATUS <<\EOF
7701 chmod +x $CONFIG_STATUS
7702 rm -fr confdefs* $ac_clean_files
7703 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1