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 --without-libbanshee Don't build with libbanshee"
17 --enable-libada Builds libada directory"
19 --with-gmp-dir=PATH Specify source directory for GMP library"
21 --with-gmp=PATH Specify directory for installed GMP library"
23 --enable-serial-[{host,target,build}-]configure
24 Force sequential configuration of
25 sub-packages for the host, target or build
26 machine, or all sub-packages"
28 --enable-maintainer-mode enable make rules and dependencies not useful
29 (and sometimes confusing) to the casual installer"
31 --enable-werror enable -Werror in bootstrap stage2 and later"
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
37 cache_file
=.
/config.cache
46 program_transform_name
=s
,x
,x
,
54 bindir
='${exec_prefix}/bin'
55 sbindir
='${exec_prefix}/sbin'
56 libexecdir
='${exec_prefix}/libexec'
57 datadir
='${prefix}/share'
58 sysconfdir
='${prefix}/etc'
59 sharedstatedir
='${prefix}/com'
60 localstatedir
='${prefix}/var'
61 libdir
='${exec_prefix}/lib'
62 includedir
='${prefix}/include'
63 oldincludedir
='/usr/include'
64 infodir
='${prefix}/info'
65 mandir
='${prefix}/man'
67 # Initialize some other variables.
70 SHELL
=${CONFIG_SHELL-/bin/sh}
71 # Maximum number of lines to put in a shell here document.
78 # If the previous option needs an argument, assign it.
79 if test -n "$ac_prev"; then
80 eval "$ac_prev=\$ac_option"
86 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 # Accept the important Cygnus configure options, so we can diagnose typos.
94 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
96 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
97 bindir
="$ac_optarg" ;;
99 -build |
--build |
--buil |
--bui |
--bu)
101 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
102 build
="$ac_optarg" ;;
104 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
105 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
106 ac_prev
=cache_file
;;
107 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
108 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
109 cache_file
="$ac_optarg" ;;
111 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
113 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
115 datadir
="$ac_optarg" ;;
117 -disable-* |
--disable-*)
118 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}=no" ;;
126 -enable-* |
--enable-*)
127 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}='$ac_optarg'" ;;
139 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
140 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
141 |
--exec |
--exe |
--ex)
142 ac_prev
=exec_prefix
;;
143 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
144 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
145 |
--exec=* |
--exe=* |
--ex=*)
146 exec_prefix
="$ac_optarg" ;;
148 -gas |
--gas |
--ga |
--g)
149 # Obsolete; use --with-gas.
152 -help |
--help |
--hel |
--he)
153 # Omit some internal or obsolete options to make the list less imposing.
154 # This message is too long to be a string in the A/UX 3.1 sh.
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
159 --cache-file=FILE cache test results in FILE
160 --help print this message
161 --no-create do not create output files
162 --quiet, --silent do not print \`checking...' messages
163 --version print the version of autoconf that created configure
164 Directory and file names:
165 --prefix=PREFIX install architecture-independent files in PREFIX
167 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
169 --bindir=DIR user executables in DIR [EPREFIX/bin]
170 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
171 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
172 --datadir=DIR read-only architecture-independent data in DIR
174 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
175 --sharedstatedir=DIR modifiable architecture-independent data in DIR
177 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
178 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
179 --includedir=DIR C header files in DIR [PREFIX/include]
180 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
181 --infodir=DIR info documentation in DIR [PREFIX/info]
182 --mandir=DIR man documentation in DIR [PREFIX/man]
183 --srcdir=DIR find the sources in DIR [configure dir or ..]
184 --program-prefix=PREFIX prepend PREFIX to installed program names
185 --program-suffix=SUFFIX append SUFFIX to installed program names
186 --program-transform-name=PROGRAM
187 run sed PROGRAM on installed program names
191 --build=BUILD configure for building on BUILD [BUILD=HOST]
192 --host=HOST configure for HOST [guessed]
193 --target=TARGET configure for TARGET [TARGET=HOST]
194 Features and packages:
195 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
196 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
197 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
198 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
199 --x-includes=DIR X include files are in DIR
200 --x-libraries=DIR X library files are in DIR
202 if test -n "$ac_help"; then
203 echo "--enable and --with options recognized:$ac_help"
207 -host |
--host |
--hos |
--ho)
209 -host=* |
--host=* |
--hos=* |
--ho=*)
212 -includedir |
--includedir |
--includedi |
--included |
--include \
213 |
--includ |
--inclu |
--incl |
--inc)
214 ac_prev
=includedir
;;
215 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
216 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
217 includedir
="$ac_optarg" ;;
219 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
221 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
222 infodir
="$ac_optarg" ;;
224 -libdir |
--libdir |
--libdi |
--libd)
226 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
227 libdir
="$ac_optarg" ;;
229 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
230 |
--libexe |
--libex |
--libe)
231 ac_prev
=libexecdir
;;
232 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
233 |
--libexe=* |
--libex=* |
--libe=*)
234 libexecdir
="$ac_optarg" ;;
236 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
237 |
--localstate |
--localstat |
--localsta |
--localst \
238 |
--locals |
--local |
--loca |
--loc |
--lo)
239 ac_prev
=localstatedir
;;
240 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
241 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
242 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
243 localstatedir
="$ac_optarg" ;;
245 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
247 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
248 mandir
="$ac_optarg" ;;
251 # Obsolete; use --without-fp.
254 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
258 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
259 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
262 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
263 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
264 |
--oldin |
--oldi |
--old |
--ol |
--o)
265 ac_prev
=oldincludedir
;;
266 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
267 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
268 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
269 oldincludedir
="$ac_optarg" ;;
271 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
273 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
274 prefix
="$ac_optarg" ;;
276 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
277 |
--program-pre |
--program-pr |
--program-p)
278 ac_prev
=program_prefix
;;
279 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
280 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
281 program_prefix
="$ac_optarg" ;;
283 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
284 |
--program-suf |
--program-su |
--program-s)
285 ac_prev
=program_suffix
;;
286 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
287 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
288 program_suffix
="$ac_optarg" ;;
290 -program-transform-name |
--program-transform-name \
291 |
--program-transform-nam |
--program-transform-na \
292 |
--program-transform-n |
--program-transform- \
293 |
--program-transform |
--program-transfor \
294 |
--program-transfo |
--program-transf \
295 |
--program-trans |
--program-tran \
296 |
--progr-tra |
--program-tr |
--program-t)
297 ac_prev
=program_transform_name
;;
298 -program-transform-name=* |
--program-transform-name=* \
299 |
--program-transform-nam=* |
--program-transform-na=* \
300 |
--program-transform-n=* |
--program-transform-=* \
301 |
--program-transform=* |
--program-transfor=* \
302 |
--program-transfo=* |
--program-transf=* \
303 |
--program-trans=* |
--program-tran=* \
304 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
305 program_transform_name
="$ac_optarg" ;;
307 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
308 |
-silent |
--silent |
--silen |
--sile |
--sil)
311 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
313 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
315 sbindir
="$ac_optarg" ;;
317 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
318 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
319 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
321 ac_prev
=sharedstatedir
;;
322 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
323 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
324 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
326 sharedstatedir
="$ac_optarg" ;;
328 -site |
--site |
--sit)
330 -site=* |
--site=* |
--sit=*)
333 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
335 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
336 srcdir
="$ac_optarg" ;;
338 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
339 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
340 ac_prev
=sysconfdir
;;
341 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
342 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
343 sysconfdir
="$ac_optarg" ;;
345 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
347 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
348 target
="$ac_optarg" ;;
350 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
353 -version |
--version |
--versio |
--versi |
--vers)
354 echo "configure generated by autoconf version 2.13"
358 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
359 # Reject names that are not valid shell variable names.
360 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
361 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363 ac_package
=`echo $ac_package| sed 's/-/_/g'`
368 eval "with_${ac_package}='$ac_optarg'" ;;
370 -without-* |
--without-*)
371 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package
=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}=no" ;;
380 # Obsolete; use --with-x.
383 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
384 |
--x-incl |
--x-inc |
--x-in |
--x-i)
385 ac_prev
=x_includes
;;
386 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
387 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
388 x_includes
="$ac_optarg" ;;
390 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
391 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
392 ac_prev
=x_libraries
;;
393 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
394 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
395 x_libraries
="$ac_optarg" ;;
397 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402 echo "configure: warning: $ac_option: invalid host type" 1>&2
404 if test "x$nonopt" != xNONE
; then
405 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413 if test -n "$ac_prev"; then
414 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419 # File descriptor usage:
422 # 2 errors and warnings
423 # 3 some systems may open it to /dev/tty
424 # 4 used on the Kubota Titan
425 # 6 checking for... messages and results
426 # 5 compiler messages saved in config.log
427 if test "$silent" = yes; then
435 This file contains any messages produced by compilers while
436 running configure, to aid debugging if configure makes a mistake.
439 # Strip out --no-create and --no-recursion so they do not pile up.
440 # Also quote any args containing shell metacharacters.
445 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
446 |
--no-cr |
--no-c) ;;
447 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
448 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
449 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
451 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
456 # Only set these to C if already set. These must not be set unconditionally
457 # because not all systems understand e.g. LANG=C (notably SCO).
458 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459 # Non-C LC_CTYPE values break the ctype check.
460 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
461 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
462 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
463 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
466 rm -rf conftest
* confdefs.h
467 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
470 # A filename unique to this package, relative to the directory that
471 # configure is in, which we can look for to find out if srcdir is correct.
472 ac_unique_file
=move-if-change
474 # Find the source files, if location was not specified.
475 if test -z "$srcdir"; then
476 ac_srcdir_defaulted
=yes
477 # Try the directory containing this script, then its parent.
479 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
482 if test ! -r $srcdir/$ac_unique_file; then
486 ac_srcdir_defaulted
=no
488 if test ! -r $srcdir/$ac_unique_file; then
489 if test "$ac_srcdir_defaulted" = yes; then
490 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
495 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497 # Prefer explicitly selected file to automatically selected ones.
498 if test -z "$CONFIG_SITE"; then
499 if test "x$prefix" != xNONE
; then
500 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
502 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505 for ac_site_file
in $CONFIG_SITE; do
506 if test -r "$ac_site_file"; then
507 echo "loading site script $ac_site_file"
512 if test -r "$cache_file"; then
513 echo "loading cache $cache_file"
516 echo "creating cache $cache_file"
521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522 ac_cpp
='$CPP $CPPFLAGS'
523 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
524 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525 cross_compiling
=$ac_cv_prog_cc_cross
529 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
530 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
531 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
538 ac_n
= ac_c
='\c' ac_t
=
544 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
545 if test -f $ac_dir/install-sh
; then
547 ac_install_sh
="$ac_aux_dir/install-sh -c"
549 elif test -f $ac_dir/install.sh
; then
551 ac_install_sh
="$ac_aux_dir/install.sh -c"
555 if test -z "$ac_aux_dir"; then
556 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
558 ac_config_guess
=$ac_aux_dir/config.guess
559 ac_config_sub
=$ac_aux_dir/config.sub
560 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
563 # Do some error checking and defaulting for the host and target type.
565 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
568 # 1. You are not allowed to specify --host, --target, and nonopt at the
570 # 2. Host defaults to nonopt.
571 # 3. If nonopt is not specified, then host defaults to the current host,
572 # as determined by config.guess.
573 # 4. Target and build default to nonopt.
574 # 5. If nonopt is not specified, then target and build default to host.
576 # The aliases save the names the user supplied, while $host etc.
577 # will get canonicalized.
578 case $host---$target---$nonopt in
579 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
580 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
584 # Make sure we can run config.sub.
585 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
586 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
589 echo $ac_n "checking host system type""... $ac_c" 1>&6
590 echo "configure:591: checking host system type" >&5
593 case "$host_alias" in
597 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
598 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
600 *) host_alias
=$nonopt ;;
604 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
605 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
606 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
607 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
608 echo "$ac_t""$host" 1>&6
610 echo $ac_n "checking target system type""... $ac_c" 1>&6
611 echo "configure:612: checking target system type" >&5
614 case "$target_alias" in
617 NONE
) target_alias
=$host_alias ;;
618 *) target_alias
=$nonopt ;;
622 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
623 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
624 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
625 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
626 echo "$ac_t""$target" 1>&6
628 echo $ac_n "checking build system type""... $ac_c" 1>&6
629 echo "configure:630: checking build system type" >&5
632 case "$build_alias" in
635 NONE
) build_alias
=$host_alias ;;
636 *) build_alias
=$nonopt ;;
640 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
641 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
642 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
643 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
644 echo "$ac_t""$build" 1>&6
646 test "$host_alias" != "$target_alias" &&
647 test "$program_prefix$program_suffix$program_transform_name" = \
649 program_prefix
=${target_alias}-
651 if test "$program_transform_name" = s
,x
,x
,; then
652 program_transform_name
=
654 # Double any \ or $. echo might interpret backslashes.
655 cat <<\EOF_SED
> conftestsed
656 s
,\\,\\\\,g
; s
,\$
,$$
,g
658 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
661 test "$program_prefix" != NONE
&&
662 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
663 # Use a double $ so make ignores it.
664 test "$program_suffix" != NONE
&&
665 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
667 # sed with no file args requires a program.
668 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
671 # Get 'install' or 'install-sh' and its variants.
672 # Find a good install program. We prefer a C program (faster),
673 # so one script is as good as another. But avoid the broken or
674 # incompatible versions:
675 # SysV /etc/install, /usr/sbin/install
676 # SunOS /usr/etc/install
679 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
680 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
681 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
682 # ./install, which can be erroneously created by make from ./install.sh.
683 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
684 echo "configure:685: checking for a BSD compatible install" >&5
685 if test -z "$INSTALL"; then
686 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
687 echo $ac_n "(cached) $ac_c" 1>&6
689 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
690 for ac_dir
in $PATH; do
691 # Account for people who put trailing slashes in PATH elements.
693 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
695 # OSF1 and SCO ODT 3.0 have their own names for install.
696 # Don't use installbsd from OSF since it installs stuff as root
698 for ac_prog
in ginstall scoinst
install; do
699 if test -f $ac_dir/$ac_prog; then
700 if test $ac_prog = install &&
701 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
702 # AIX install. It has an incompatible calling convention.
705 ac_cv_path_install
="$ac_dir/$ac_prog -c"
716 if test "${ac_cv_path_install+set}" = set; then
717 INSTALL
="$ac_cv_path_install"
719 # As a last resort, use the slow shell script. We don't cache a
720 # path for INSTALL within a source directory, because that will
721 # break other packages using the cache if that directory is
722 # removed, or if the path is relative.
723 INSTALL
="$ac_install_sh"
726 echo "$ac_t""$INSTALL" 1>&6
728 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
729 # It thinks the first close brace ends the variable substitution.
730 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
732 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
734 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
736 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
737 echo "configure:738: checking whether ln -s works" >&5
738 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
739 echo $ac_n "(cached) $ac_c" 1>&6
742 if ln -s X conftestdata
2>/dev
/null
745 ac_cv_prog_LN_S
="ln -s"
750 LN_S
="$ac_cv_prog_LN_S"
751 if test "$ac_cv_prog_LN_S" = "ln -s"; then
752 echo "$ac_t""yes" 1>&6
754 echo "$ac_t""no" 1>&6
758 # Autoconf M4 include file defining utility macros for complex Canadian
767 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
769 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
772 # NCN_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
773 # Like AC_CHECK_TOOL, but tries a prefix of the target, not the host.
774 # Code is pretty much lifted from autoconf2.53.
779 # NCN_STRICT_CHECK_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
780 # Like AC_CHECK_TOOL, but requires the prefix if build!=host.
785 # NCN_STRICT_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
786 # Like NCN_CHECK_TARGET_TOOL, but requires the prefix if build!=target.
791 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
792 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
793 # For now, using this also overrides header checks to use only the
794 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
795 # bit harder from here).
796 # Eventually autoconf will default to checking headers with the compiler
797 # instead, and we'll have to do this differently.
802 # We require the gnatbind program, and a compiler driver that
803 # understands Ada. We use the user's CC setting, already found.
805 # Sets the shell variable have_gnat to yes or no as appropriate, and
806 # substitutes GNATBIND.
817 ### we might need to use some other shell than /bin/sh for running subshells
818 ### If we are on Windows, search for the shell. This will permit people
819 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
820 ### without also having to set CONFIG_SHELL. This code will work when
821 ### using bash, which sets OSTYPE.
824 if test x
${CONFIG_SHELL} = x
; then
825 if test ! -f /bin
/sh
; then
826 if test x
${SHELL} != x
&& test -f ${SHELL} ; then
827 CONFIG_SHELL
=${SHELL}
830 for prog
in sh sh.exe bash bash.exe
; do
831 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
833 test -z "$dir" && dir
=.
834 if test -f $dir/$prog; then
835 CONFIG_SHELL
=$dir/$prog
841 test -n "${CONFIG_SHELL}" && break
849 config_shell
=${CONFIG_SHELL-/bin/sh}
852 # if PWD already has a value, it is probably wrong.
853 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
855 # Export original configure arguments for use by sub-configures. These
856 # will be expanded by make, so quote '$'.
858 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
861 TOPLEVEL_CONFIGURE_ARGUMENTS
=`cat conftestsed.out`
862 rm -f conftestsed.out
865 moveifchange
=${srcdir}/move-if-change
867 # Set srcdir to "." if that's what it is.
868 # This is important for multilib support.
870 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
871 if test "${pwd}" = "${srcpwd}" ; then
878 # Define the trigger file to make sure configure will re-run whenever
879 # the gcc version number changes.
880 if test "${with_gcc_version_trigger+set}" = set ; then
881 gcc_version_trigger
="$with_gcc_version_trigger"
882 gcc_version
=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
884 # If gcc's sources are available, define the trigger file.
885 if test -f ${topsrcdir}/gcc
/version.c
; then
886 gcc_version_trigger
=${topsrcdir}/gcc
/version.c
887 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
888 case "$ac_configure_args" in
889 *--with-gcc-version-trigger=$gcc_version_trigger* )
892 # Add to all subconfigure arguments: build, host, and target.
893 ac_configure_args
="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger"
899 ### To add a new directory to the tree, first choose whether it is a target
900 ### or a host dependent tool. Then put it into the appropriate list
901 ### (library or tools, host or target), doing a dependency sort.
903 # Subdirs will be configured in the order listed in build_configdirs,
904 # configdirs, or target_configdirs; see the serialization section below.
906 # Dependency sorting is only needed when *configuration* must be done in
907 # a particular order. In all cases a dependency should be specified in
908 # the Makefile, whether or not it's implicitly specified here.
910 # Double entries in build_configdirs, configdirs, or target_configdirs may
911 # cause circular dependencies and break everything horribly.
913 # these libraries are used by various programs built for the host environment
915 host_libs
="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib libbanshee libcpp"
917 # these tools are built for the host environment
918 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
919 # know that we are building the simulator.
920 # binutils, gas and ld appear in that order because it makes sense to run
921 # "make check" in that particular order.
922 host_tools
="texinfo byacc flex bison binutils gas ld 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"
924 # libgcj represents the runtime libraries only used by gcj.
925 libgcj
="target-libffi \
931 # these libraries are built for the target environment, and are built after
932 # the host libraries and the host tools (which may be a cross compiler)
934 target_libraries
="target-libiberty \
937 target-libstdc++-v3 \
944 # these tools are built using the target libraries, and are intended to
945 # run only in the target environment
947 # note: any program that *uses* libraries that are in the "target_libraries"
948 # list belongs in this list. those programs are also very likely
949 # candidates for the "native_only" list which follows
951 target_tools
="target-examples target-groff target-gperf target-rda"
953 ################################################################################
955 ## All tools belong in one of the four categories, and are assigned above
956 ## We assign ${configdirs} this way to remove all embedded newlines. This
957 ## is important because configure will choke if they ever get through.
958 ## ${configdirs} is directories we build using the host tools.
959 ## ${target_configdirs} is directories we build using the target tools.
961 configdirs
=`echo ${host_libs} ${host_tools}`
962 target_configdirs
=`echo ${target_libraries} ${target_tools}`
964 # Only make build modules if build != host.
965 # This should be done more generally, but at the moment it doesn't matter.
966 if test ${host_alias} != ${build_alias} ; then
967 # This is the only build module.
968 build_modules
=libiberty
974 ################################################################################
976 srcname
="gnu development package"
978 # This gets set non-empty for some net releases of packages.
981 # Define is_cross_compiler to save on calls to 'test'.
983 if test x
"${host}" = x
"${target}" ; then
986 is_cross_compiler
=yes
989 # Find the build and target subdir names.
990 case ${build_alias} in
991 "") build_noncanonical
=${build} ;;
992 *) build_noncanonical
=${build_alias} ;;
995 case ${host_alias} in
996 "") host_noncanonical
=${build_noncanonical} ;;
997 *) host_noncanonical
=${host_alias} ;;
1000 case ${target_alias} in
1001 "") target_noncanonical
=${host_noncanonical} ;;
1002 *) target_noncanonical
=${target_alias} ;;
1005 # Prefix 'build-' so this never conflicts with target_subdir.
1006 build_subdir
="build-${build_noncanonical}"
1007 # Not really a subdirectory, but here for completeness.
1010 target_subdir
=${target_noncanonical}
1013 # Skipdirs are removed silently.
1015 # Noconfigdirs are removed loudly.
1019 # Make sure we don't let GNU ld be added if we didn't want it.
1020 if test x
$with_gnu_ld = xno
; then
1022 noconfigdirs
="$noconfigdirs ld"
1026 # Make sure we don't let GNU as be added if we didn't want it.
1027 if test x
$with_gnu_as = xno
; then
1029 noconfigdirs
="$noconfigdirs gas"
1032 # some tools are so dependent upon X11 that if we're not building with X,
1033 # it's not even worth trying to configure, much less build, that tool.
1036 yes |
"") ;; # the default value for this tree is that X11 is available
1038 skipdirs
="${skipdirs} tk tix itcl libgui"
1039 # We won't be able to build gdbtk without X.
1042 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1045 # Some tools are only suitable for building in a "native" situation.
1046 # Remove these if host!=target.
1047 native_only
="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1049 # Similarly, some are only suitable for cross toolchains.
1050 # Remove these if host=target.
1051 cross_only
="target-libgloss target-newlib target-opcodes"
1053 case $is_cross_compiler in
1054 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
1055 yes) skipdirs
="${skipdirs} ${native_only}" ;;
1058 # If both --with-headers and --with-libs are specified, default to
1060 if test x
"${with_headers}" != x
&& test x
"${with_headers} != xno \
1061 && test x"${with_libs}" != x && test x"${with_libs} != xno
; then
1062 if test x
"${with_newlib}" = x
; then
1067 # Recognize --with-newlib/--without-newlib.
1068 case ${with_newlib} in
1069 no
) skipdirs
="${skipdirs} target-newlib" ;;
1070 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1073 # Configure extra directories which are host specific
1077 configdirs
="$configdirs libtermcap" ;;
1080 # Remove more programs from consideration, based on the host or
1081 # target this usually means that a port of the program doesn't
1086 noconfigdirs
="$noconfigdirs byacc"
1088 i
[3456789]86-*-vsta)
1089 noconfigdirs
="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix gnuserv gettext"
1091 i
[3456789]86-*-go32* | i
[3456789]86-*-msdosdjgpp*)
1092 noconfigdirs
="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl tix gnuserv libffi"
1094 i
[3456789]86-*-mingw32*)
1095 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix gnuserv"
1096 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1098 i
[3456789]86-*-beos*)
1099 noconfigdirs
="$noconfigdirs tk itcl tix libgui gdb"
1102 noconfigdirs
="$noconfigdirs autoconf automake send-pr rcs guile perl"
1105 noconfigdirs
="$noconfigdirs rcs"
1108 noconfigdirs
="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv"
1111 noconfigdirs
="$noconfigdirs tk itcl tix libgui gdb dejagnu readline"
1114 noconfigdirs
="$noconfigdirs tk itcl tix libgui"
1118 # Check whether --with-libbanshee or --without-libbanshee was given.
1119 if test "${with_libbanshee+set}" = set; then
1120 withval
="$with_libbanshee"
1124 case ${with_libbanshee} in
1126 noconfigdirs
="$noconfigdirs libbanshee" ;;
1131 { echo "configure: error: --with-libbanshee can only be empty, "yes" or "no
" (empty defaults to "yes"." 1>&2; exit 1; }
1134 # Check whether --enable-libada or --disable-libada was given.
1135 if test "${enable_libada+set}" = set; then
1136 enableval
="$enable_libada"
1137 ENABLE_LIBADA
=$enableval
1142 if test "${ENABLE_LIBADA}" != "yes" ; then
1143 noconfigdirs
="$noconfigdirs target-libada"
1146 # Save it here so that, even in case of --enable-libgcj, if the Java
1147 # front-end isn't enabled, we still get libgcj disabled.
1148 libgcj_saved
=$libgcj
1149 case $enable_libgcj in
1151 # If we reset it here, it won't get added to noconfigdirs in the
1152 # target-specific build rules, so it will be forcibly enabled
1153 # (unless the Java language itself isn't enabled).
1157 # Make sure we get it printed in the list of not supported target libs.
1158 noconfigdirs
="$noconfigdirs ${libgcj}"
1163 # Allow --disable-libmudflap to exclude target-libmudflap
1164 case $enable_libmudflap in
1166 # By default it's enabled
1169 noconfigdirs
="$noconfigdirs target-libmudflap"
1176 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1179 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1180 noconfigdirs
="$noconfigdirs target-libobjc"
1183 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1184 noconfigdirs
="$noconfigdirs target-libobjc ${libgcj}"
1186 *-*-freebsd[12] |
*-*-freebsd[12].
* |
*-*-freebsd*aout
*)
1187 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1189 *-*-freebsd* |
*-*-kfreebsd*-gnu)
1190 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1191 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
1192 && test -f /usr
/local
/include
/gmp.h
; then
1196 # Skip some stuff that's unsupported on some FreeBSD configurations.
1201 noconfigdirs
="$noconfigdirs ${libgcj}"
1206 # Remove unsupported stuff on all kaOS configurations.
1207 skipdirs
="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1208 skipdirs
="$skipdirs target-libobjc target-examples target-groff target-gperf"
1209 skipdirs
="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1210 noconfigdirs
="$noconfigdirs target-libgloss"
1213 # Skip some stuff on all NetBSD configurations.
1214 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss"
1216 # Skip some stuff that's unsupported on some NetBSD configurations.
1218 i
*86-*-netbsdelf*) ;;
1219 arm
*-*-netbsdelf*) ;;
1221 noconfigdirs
="$noconfigdirs ${libgcj}"
1226 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}"
1229 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1232 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1235 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}"
1238 # ld works, but does not support shared libraries.
1239 # newlib is not 64 bit ready. I'm not sure about fileutils.
1240 # gas doesn't generate exception information.
1241 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1244 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1247 # newlib is not 64 bit ready
1248 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1251 # newlib is not 64 bit ready
1252 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1255 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1258 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1260 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
1261 noconfigdirs
="$noconfigdirs ${libgcj}"
1262 noconfigdirs
="$noconfigdirs target-examples"
1263 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
1264 noconfigdirs
="$noconfigdirs tcl tix tk itcl libgui sim"
1265 noconfigdirs
="$noconfigdirs expect dejagnu"
1266 # the C++ libraries don't build on top of CE's C libraries
1267 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1268 noconfigdirs
="$noconfigdirs target-newlib"
1270 *-*-cygwin*) ;; # keep gdb and readline
1271 *) noconfigdirs
="$noconfigdirs gdb readline"
1276 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1278 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
1279 noconfigdirs
="$noconfigdirs ${libgcj}"
1281 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf*)
1282 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1285 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1288 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1291 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1294 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1297 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1300 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1303 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1306 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1308 c4x-
*-* | tic4x-
*-*)
1309 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1311 c54x
*-*-* | tic54x-
*-*)
1312 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1315 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1318 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1321 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1324 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1327 noconfigdirs
="$noconfigdirs ${libgcj}"
1330 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1333 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1335 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
1336 # In this case, it's because the hppa64-linux target is for
1337 # the kernel only at this point and has no libc, and thus no
1338 # headers, crt*.o, etc., all of which are needed by these.
1339 noconfigdirs
="$noconfigdirs target-zlib"
1342 parisc
*-*-linux* | hppa
*-*-linux* | \
1344 hppa
*-*-openbsd* | \
1346 noconfigdirs
="$noconfigdirs ${libgcj}"
1347 # Do configure ld/binutils/gas for this case.
1350 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1351 # build on HP-UX 10.20.
1352 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
1355 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1358 # No gdb support yet.
1359 noconfigdirs
="$noconfigdirs tix readline mmalloc libgui itcl gdb"
1362 # No gdb or ld support yet.
1363 noconfigdirs
="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
1365 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
1366 noconfigdirs
="$noconfigdirs ${libgcj}"
1368 i
[3456789]86-*-linux*)
1369 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1370 # not build java stuff by default.
1373 noconfigdirs
="$noconfigdirs ${libgcj}";;
1376 # This section makes it possible to build newlib natively on linux.
1377 # If we are using a cross compiler then don't configure newlib.
1378 if test x
${is_cross_compiler} != xno
; then
1379 noconfigdirs
="$noconfigdirs target-newlib"
1381 noconfigdirs
="$noconfigdirs target-libgloss"
1382 # If we are not using a cross compiler, do configure newlib.
1383 # Note however, that newlib will only be configured in this situation
1384 # if the --with-newlib option has been given, because otherwise
1385 # 'target-newlib' will appear in skipdirs.
1387 i
[3456789]86-*-mingw32*)
1388 target_configdirs
="$target_configdirs target-mingw"
1389 noconfigdirs
="$noconfigdirs expect target-libgloss ${libgcj}"
1391 # Can't build gdb for mingw32 if not native.
1393 i
[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1394 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl tix gnuserv"
1399 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
1400 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1401 # always build newlib.
1402 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1404 # Can't build gdb for Cygwin if not native.
1406 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1407 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl tix libgui gnuserv"
1412 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1414 i
[3456789]86-*-sco3.2v5
*)
1415 # The linker does not yet know about weak symbols in COFF,
1416 # and is not configured to handle mixed ELF and COFF.
1417 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1419 i
[3456789]86-*-sco*)
1420 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1422 i
[3456789]86-*-solaris2*)
1423 noconfigdirs
="$noconfigdirs target-libgloss"
1425 i
[3456789]86-*-sysv4*)
1426 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1428 i
[3456789]86-*-beos*)
1429 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1432 noconfigdirs
="$noconfigdirs ${libgcj}"
1434 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
1435 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1438 noconfigdirs
="$noconfigdirs ${libgcj}"
1441 noconfigdirs
="$noconfigdirs ${libgcj}"
1444 # The EPOC C++ environment does not support exceptions or rtti,
1445 # and so building libstdc++-v3 tends not to always work.
1446 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1449 noconfigdirs
="$noconfigdirs ${libgcj} gdb libgloss"
1452 noconfigdirs
="$noconfigdirs ${libgcj}"
1455 noconfigdirs
="$noconfigdirs ${libgcj}"
1458 # copied from rs6000-*-* entry
1459 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1461 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
1462 target_configdirs
="$target_configdirs target-winsup"
1463 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix gnuserv ${libgcj}"
1464 # always build newlib.
1465 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1467 # This is temporary until we can link against shared libraries
1468 powerpcle-
*-solaris*)
1469 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl tix gnuserv ${libgcj}"
1472 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1475 noconfigdirs
="$noconfigdirs ${libgcj}"
1478 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
1481 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1484 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1487 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1490 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1493 # Linking libjava exceeds command-line length limits on at least
1494 # IRIX 6.2, but not on IRIX 6.5.
1495 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1496 # <oldham@codesourcery.com>
1497 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1500 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1503 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1506 noconfigdirs
="$noconfigdirs gprof ${libgcj}" # same as generic mips
1509 noconfigdirs
="$noconfigdirs target-newlib ${libgcj}"
1512 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1515 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1518 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1522 i
[3456789]86-*-vsta) ;; # don't add gprof back in
1523 i
[3456789]86-*-go32*) ;; # don't add gprof back in
1524 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1525 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1527 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1530 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1533 noconfigdirs
="$noconfigdirs ${libgcj}"
1536 noconfigdirs
="$noconfigdirs ${libgcj}"
1539 noconfigdirs
="$noconfigdirs ${libgcj}"
1542 noconfigdirs
="$noconfigdirs ${libgcj}"
1543 if test x
${is_cross_compiler} != xno
; then
1544 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1549 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
1552 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1555 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1558 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1561 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1564 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1567 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1570 noconfigdirs
="$noconfigdirs ${libgcj}"
1573 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1576 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1579 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1582 noconfigdirs
="$noconfigdirs ${libgcj}"
1586 # If we aren't building newlib, then don't build libgloss, since libgloss
1587 # depends upon some newlib header files.
1588 case "${noconfigdirs}" in
1589 *target-libgloss
*) ;;
1590 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
1593 # Work in distributions that contain no compiler tools, like Autoconf.
1595 host_makefile_frag
=/dev
/null
1596 if test -d ${srcdir}/config
; then
1599 # Avoid "too much defining" errors from HPUX compiler.
1600 tentative_cc
="cc -Wp,-H256000"
1601 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1602 # If it's HP/UX ar, this should be harmless.
1606 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1609 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1610 # chokes on bfd, the compiler won't let you assign integers to enums, and
1611 # other problems. Defining CC to gcc is a questionable way to say "don't use
1612 # the apollo compiler" (the preferred version of GCC could be called cc,
1613 # or whatever), but I'm not sure leaving CC as cc is any better...
1614 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1615 # Used to have BISON=yacc.
1619 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1622 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1623 tentative_cc
="cc -Xa"
1624 host_makefile_frag
="config/mh-cxux"
1626 m88k-motorola-sysv
*)
1629 tentative_cc
="cc -Wf,-XNg1000"
1630 host_makefile_frag
="config/mh-decstation"
1633 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1634 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
1635 host_makefile_frag
="config/mh-necv4"
1638 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1639 # environment. Also bump switch table size so that cp-parse will
1640 # compile. Bump string length limit so linker builds.
1641 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1644 host_makefile_frag
="config/mh-sysv4"
1647 # This is for a MIPS running RISC/os 4.52C.
1649 # This is needed for GDB, but needs to be in the top-level make because
1650 # if a library is compiled with the bsd headers and gets linked with the
1651 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1652 # a different size).
1653 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1654 # known except to select the sysv environment. Could we use /proc instead?
1655 # These "sysv environments" and "bsd environments" often end up being a pain.
1657 # This is not part of CFLAGS because perhaps not all C compilers have this
1659 tentative_cc
="cc -systype sysv"
1664 i
[3456789]86-*-sysv5*)
1665 host_makefile_frag
="config/mh-sysv5"
1667 i
[3456789]86-*-dgux*)
1668 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1669 host_makefile_frag
="config/mh-dgux386"
1671 i
[3456789]86-ncr-sysv4.3
*)
1672 # The MetaWare compiler will generate a copyright message unless you
1673 # turn it off by adding the -Hnocopyr flag.
1674 tentative_cc
="cc -Hnocopyr"
1676 i
[3456789]86-ncr-sysv4*)
1677 # for an NCR 3000 (i486/SVR4) system.
1678 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1679 # This compiler not only emits obnoxious copyright messages every time
1680 # you run it, but it chokes and dies on a whole bunch of GNU source
1681 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1682 tentative_cc
="/usr/ccs/ATT/cc"
1683 host_makefile_frag
="config/mh-ncr3000"
1685 i
[3456789]86-*-sco3.2v5
*)
1687 i
[3456789]86-*-sco*)
1688 # The native C compiler botches some simple uses of const. Unfortunately,
1689 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1690 tentative_cc
="cc -Dconst="
1691 host_makefile_frag
="config/mh-sco"
1693 i
[3456789]86-*-udk*)
1694 host_makefile_frag
="config/mh-sysv5"
1696 i
[3456789]86-*-solaris2*)
1697 host_makefile_frag
="config/mh-sysv4"
1699 i
[3456789]86-*-msdosdjgpp*)
1700 host_makefile_frag
="config/mh-djgpp"
1703 host_makefile_frag
="config/mh-cygwin"
1706 host_makefile_frag
="config/mh-mingw32"
1709 host_makefile_frag
="config/mh-interix"
1712 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1716 host_makefile_frag
="config/mh-solaris"
1719 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1720 # without overflowing the jump tables (-J says to use a 32 bit table)
1721 tentative_cc
="cc -J"
1724 tentative_cc
="cc -Wp,-H256000"
1727 tentative_cc
="cc -Wp,-H256000"
1730 # /bin/cc is less than useful for our purposes. Always use GCC
1731 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
1732 host_makefile_frag
="config/mh-lynxrs6k"
1735 # /bin/cc is less than useful for our purposes. Always use GCC
1736 tentative_cc
="/bin/gcc"
1739 host_makefile_frag
="config/mh-sysv4"
1744 # If we aren't going to be using gcc, see if we can extract a definition
1745 # of CC from the fragment.
1746 # Actually, use the 'pre-extracted' version above.
1747 if test -z "${CC}" && test "${build}" = "${host}" ; then
1748 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1750 for dir
in $PATH; do
1751 test -z "$dir" && dir
=.
1752 if test -f $dir/gcc
; then
1758 if test -z "${found}" && test -n "${tentative_cc}" ; then
1763 if test "${build}" != "${host}" ; then
1764 # If we are doing a Canadian Cross, in which the host and build systems
1765 # are not the same, we set reasonable default values for the tools.
1767 BISON
=${BISON-bison}
1768 CC
=${CC-${host_alias}-gcc}
1769 CFLAGS
=${CFLAGS-"-g -O2"}
1770 CXX
=${CXX-${host_alias}-c++}
1771 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1772 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1773 CC_FOR_TARGET
=${CC_FOR_TARGET-${target_alias}-gcc}
1774 CXX_FOR_TARGET
=${CXX_FOR_TARGET-${target_alias}-c++}
1775 GCJ_FOR_TARGET
=${GCJ_FOR_TARGET-${target_alias}-gcj}
1776 GCC_FOR_TARGET
=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
1777 BUILD_PREFIX
=${build_alias}-
1778 BUILD_PREFIX_1
=${build_alias}-
1779 MAKEINFO
=${MAKEINFO-makeinfo}
1781 if test -z "${YACC}" ; then
1782 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1783 for dir
in $PATH; do
1784 test -z "$dir" && dir
=.
1785 if test -f $dir/bison
; then
1789 if test -f $dir/byacc
; then
1793 if test -f $dir/yacc; then
1799 if test -z "${YACC}" ; then
1804 if test -z "${LEX}" ; then
1805 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1806 for dir
in $PATH; do
1807 test -z "$dir" && dir
=.
1808 if test -f $dir/flex
; then
1812 if test -f $dir/lex; then
1822 # Set reasonable default values for some tools even if not Canadian.
1823 # Of course, these are different reasonable default values, originally
1824 # specified directly in the Makefile.
1825 # We don't export, so that autoconf can do its job.
1826 # Note that all these settings are above the fragment inclusion point
1827 # in Makefile.in, so can still be overridden by fragments.
1828 # This is all going to change when we autoconfiscate...
1830 BISON
="\$(USUAL_BISON)"
1831 CC_FOR_BUILD
="\$(CC)"
1832 GCC_FOR_TARGET
="\$(USUAL_GCC_FOR_TARGET)"
1834 BUILD_PREFIX_1
=loser-
1835 MAKEINFO
="\$(USUAL_MAKEINFO)"
1837 YACC
="\$(USUAL_YACC)"
1839 # If CC is still not set, try to get gcc.
1841 if test -z "${CC}" ; then
1842 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1843 for dir
in $PATH; do
1844 test -z "$dir" && dir
=.
1845 if test -f $dir/gcc
; then
1848 echo 'void f(){}' > conftest.c
1849 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1850 CFLAGS
=${CFLAGS-"-g -O2"}
1851 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1853 CFLAGS
=${CFLAGS-"-O2"}
1854 CXXFLAGS
=${CXXFLAGS-"-O2"}
1863 # Determine if we are using gcc.
1864 cat > conftest.c
<<EOF
1869 if ${CC} -E conftest.c |
grep yes >/dev
/null
2>&1; then
1873 if test -z "${CFLAGS}"; then
1874 # Here CC is set but CFLAGS is not. Use a quick hack to use -O2 if CC
1875 # is set to a version of gcc.
1876 if test "$cc_prog_is_gcc" = yes; then
1877 echo 'void f(){}' > conftest.c
1878 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1879 CFLAGS
=${CFLAGS-"-g -O2"}
1880 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1882 CFLAGS
=${CFLAGS-"-O2"}
1883 CXXFLAGS
=${CXXFLAGS-"-O2"}
1890 # We must set the default linker to the linker used by gcc for the correct
1891 # operation of libtool. If LD is not defined and we are using gcc, try to
1892 # set the LD default to the ld used by gcc.
1893 if test -z "$LD"; then
1894 if test "$cc_prog_is_gcc" = yes; then
1897 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
1899 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
1901 case $gcc_prog_ld in
1902 # Accept absolute paths.
1903 [\\/]* |
[A-Za-z
]:[\\/]*)
1904 LD
="$gcc_prog_ld" ;;
1910 CFLAGS
=${CFLAGS-"-g"}
1911 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1914 if test $host != $build; then
1915 ac_tool_prefix
=${host_alias}-
1920 # Extract the first word of "gcc", so it can be a program name with args.
1921 set dummy gcc
; ac_word
=$2
1922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1923 echo "configure:1924: checking for $ac_word" >&5
1924 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1925 echo $ac_n "(cached) $ac_c" 1>&6
1927 if test -n "$CC"; then
1928 ac_cv_prog_CC
="$CC" # Let the user override the test.
1930 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1932 for ac_dir
in $ac_dummy; do
1933 test -z "$ac_dir" && ac_dir
=.
1934 if test -f $ac_dir/$ac_word; then
1943 if test -n "$CC"; then
1944 echo "$ac_t""$CC" 1>&6
1946 echo "$ac_t""no" 1>&6
1949 if test -z "$CC"; then
1950 # Extract the first word of "cc", so it can be a program name with args.
1951 set dummy cc
; ac_word
=$2
1952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1953 echo "configure:1954: checking for $ac_word" >&5
1954 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1957 if test -n "$CC"; then
1958 ac_cv_prog_CC
="$CC" # Let the user override the test.
1960 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1963 for ac_dir
in $ac_dummy; do
1964 test -z "$ac_dir" && ac_dir
=.
1965 if test -f $ac_dir/$ac_word; then
1966 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1967 ac_prog_rejected
=yes
1975 if test $ac_prog_rejected = yes; then
1976 # We found a bogon in the path, so make sure we never use it.
1977 set dummy
$ac_cv_prog_CC
1979 if test $# -gt 0; then
1980 # We chose a different compiler from the bogus one.
1981 # However, it has the same basename, so the bogon will be chosen
1982 # first if we set CC to just the basename; use the full file name.
1984 set dummy
"$ac_dir/$ac_word" "$@"
1992 if test -n "$CC"; then
1993 echo "$ac_t""$CC" 1>&6
1995 echo "$ac_t""no" 1>&6
1998 if test -z "$CC"; then
1999 case "`uname -s`" in
2001 # Extract the first word of "cl", so it can be a program name with args.
2002 set dummy cl
; ac_word
=$2
2003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2004 echo "configure:2005: checking for $ac_word" >&5
2005 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2008 if test -n "$CC"; then
2009 ac_cv_prog_CC
="$CC" # Let the user override the test.
2011 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2013 for ac_dir
in $ac_dummy; do
2014 test -z "$ac_dir" && ac_dir
=.
2015 if test -f $ac_dir/$ac_word; then
2024 if test -n "$CC"; then
2025 echo "$ac_t""$CC" 1>&6
2027 echo "$ac_t""no" 1>&6
2032 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2035 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2036 echo "configure:2037: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2039 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2040 ac_cpp
='$CPP $CPPFLAGS'
2041 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2042 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2043 cross_compiling
=$ac_cv_prog_cc_cross
2045 cat > conftest.
$ac_ext << EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2052 if { (eval echo configure
:2053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2053 ac_cv_prog_cc_works
=yes
2054 # If we can't run a trivial program, we are probably using a cross compiler.
2055 if (.
/conftest
; exit) 2>/dev
/null
; then
2056 ac_cv_prog_cc_cross
=no
2058 ac_cv_prog_cc_cross
=yes
2061 echo "configure: failed program was:" >&5
2062 cat conftest.
$ac_ext >&5
2063 ac_cv_prog_cc_works
=no
2067 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2068 ac_cpp
='$CPP $CPPFLAGS'
2069 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2070 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2071 cross_compiling
=$ac_cv_prog_cc_cross
2073 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2074 if test $ac_cv_prog_cc_works = no
; then
2075 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2077 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2078 echo "configure:2079: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2079 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2080 cross_compiling
=$ac_cv_prog_cc_cross
2082 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2083 echo "configure:2084: checking whether we are using GNU C" >&5
2084 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 cat > conftest.c
<<EOF
2092 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2099 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2101 if test $ac_cv_prog_gcc = yes; then
2107 ac_test_CFLAGS
="${CFLAGS+set}"
2108 ac_save_CFLAGS
="$CFLAGS"
2110 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2111 echo "configure:2112: checking whether ${CC-cc} accepts -g" >&5
2112 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2115 echo 'void f(){}' > conftest.c
2116 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2125 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2126 if test "$ac_test_CFLAGS" = set; then
2127 CFLAGS
="$ac_save_CFLAGS"
2128 elif test $ac_cv_prog_cc_g = yes; then
2129 if test "$GCC" = yes; then
2135 if test "$GCC" = yes; then
2144 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2145 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2147 echo "configure:2148: checking for $ac_word" >&5
2148 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2151 if test -n "$GNATBIND"; then
2152 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2154 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2156 for ac_dir
in $ac_dummy; do
2157 test -z "$ac_dir" && ac_dir
=.
2158 if test -f $ac_dir/$ac_word; then
2159 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2166 GNATBIND
="$ac_cv_prog_GNATBIND"
2167 if test -n "$GNATBIND"; then
2168 echo "$ac_t""$GNATBIND" 1>&6
2170 echo "$ac_t""no" 1>&6
2174 if test -z "$ac_cv_prog_GNATBIND"; then
2175 if test -n "$ac_tool_prefix"; then
2176 # Extract the first word of "gnatbind", so it can be a program name with args.
2177 set dummy gnatbind
; ac_word
=$2
2178 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2179 echo "configure:2180: checking for $ac_word" >&5
2180 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2183 if test -n "$GNATBIND"; then
2184 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2186 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2188 for ac_dir
in $ac_dummy; do
2189 test -z "$ac_dir" && ac_dir
=.
2190 if test -f $ac_dir/$ac_word; then
2191 ac_cv_prog_GNATBIND
="gnatbind"
2196 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2199 GNATBIND
="$ac_cv_prog_GNATBIND"
2200 if test -n "$GNATBIND"; then
2201 echo "$ac_t""$GNATBIND" 1>&6
2203 echo "$ac_t""no" 1>&6
2211 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2212 echo "configure:2213: checking whether compiler driver understands Ada" >&5
2213 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 cat >conftest.adb
<<EOF
2217 procedure conftest is begin null; end conftest;
2219 acx_cv_cc_gcc_supports_ada
=no
2220 # There is a bug in old released versions of GCC which causes the
2221 # driver to exit successfully when the appropriate language module
2222 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2223 # Therefore we must check for the error message as well as an
2224 # unsuccessful exit.
2225 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2226 # given a .adb file, but produce no object file. So we must check
2227 # if an object file was really produced to guard against this.
2228 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2229 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
2230 acx_cv_cc_gcc_supports_ada
=yes
2236 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2238 if test x
$GNATBIND != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
2244 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2245 echo "configure:2246: checking how to compare bootstrapped objects" >&5
2246 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2247 echo $ac_n "(cached) $ac_c" 1>&6
2251 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2252 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
2253 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
2256 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
2259 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2260 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2263 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
2270 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2271 do_compare
="$gcc_cv_prog_cmp_skip"
2279 # Specify a location for gmp
2280 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2281 if test "${with_gmp_dir+set}" = set; then
2282 withval
="$with_gmp_dir"
2287 if test "x$with_gmp_dir" != x
&& test -f "$with_gmp_dir/gmp.h"; then
2288 gmpinc
="-I$with_gmp_dir"
2289 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2290 gmplibs
="$with_gmp_dir/.libs/libgmp.a"
2291 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2292 gmplibs
="$with_gmp_dir/_libs/libgmp.a"
2294 # One of the later tests will catch the error if neither library is present.
2297 # Check whether --with-gmp or --without-gmp was given.
2298 if test "${with_gmp+set}" = set; then
2304 if test "x$with_gmp" != x
&& test -d "$with_gmp"; then
2305 gmplibs
="-L$with_gmp/lib -lgmp"
2306 gmpinc
="-I$with_gmp/include"
2309 # Use system gmp if nothing else specified
2310 if test "x$gmplibs" = x
; then
2314 saved_CFLAGS
="$CFLAGS"
2315 CFLAGS
="$CFLAGS $gmpinc"
2316 # Check GMP actually works
2317 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2318 echo "configure:2319: checking for correct version of gmp.h" >&5
2319 cat > conftest.
$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2325 #if __GNU_MP_VERSION < 3
2331 if { (eval echo configure
:2332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2333 echo "$ac_t""yes" 1>&6
2335 echo "configure: failed program was:" >&5
2336 cat conftest.
$ac_ext >&5
2338 echo "$ac_t""no" 1>&6; have_gmp
=no
2342 if test x
"$have_gmp" = xyes
; then
2343 echo $ac_n "checking for mpf_init in -lgmp""... $ac_c" 1>&6
2344 echo "configure:2345: checking for mpf_init in -lgmp" >&5
2347 LIBS
="$LIBS $gmplibs"
2348 cat > conftest.
$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2353 mpf_t n; mpf_init(n);
2356 if { (eval echo configure
:2357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2358 echo "$ac_t""yes" 1>&6
2360 echo "configure: failed program was:" >&5
2361 cat conftest.
$ac_ext >&5
2363 echo "$ac_t""no" 1>&6; have_gmp
=no
2367 CFLAGS
="$saved_CFLAGS"
2373 # By default, C is the only stage 1 language.
2377 # Figure out what language subdirectories are present.
2378 # Look if the user specified --enable-languages="..."; if not, use
2379 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2381 # NB: embedded tabs in this IF block -- do not untabify
2382 if test -d ${srcdir}/gcc
; then
2383 if test x
"${enable_languages+set}" != xset
; then
2384 if test x
"${LANGUAGES+set}" = xset
; then
2385 enable_languages
="${LANGUAGES}"
2386 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
2388 enable_languages
=all
2391 if test x
"${enable_languages}" = x ||
2392 test x
"${enable_languages}" = xyes
;
2394 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
2398 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2400 # First scan to see if an enabled language requires some other language.
2401 # We assume that a given config-lang.in will list all the language
2402 # front ends it requires, even if some are required indirectly.
2403 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2404 case ${lang_frag} in
2406 # The odd quoting in the next line works around
2407 # an apparent bug in bash 1.12 on linux.
2408 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2410 # From the config-lang.in, get $language, $lang_requires
2414 for other
in ${lang_requires} ; do
2415 case ,${enable_languages}, in
2419 echo " \`$other' language required by \`$language'; enabling" 1>&2
2420 enable_languages
="${enable_languages},${other}"
2428 new_enable_languages
=c
2429 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2431 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2432 case ${lang_frag} in
2434 # The odd quoting in the next line works around
2435 # an apparent bug in bash 1.12 on linux.
2436 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2438 # From the config-lang.in, get $language, $target_libs,
2439 # $lang_dirs, $boot_language, and $build_by_default
2447 # This is quite sensitive to the ordering of the case statement arms.
2448 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2450 echo "${lang_frag} doesn't set \$language." 1>&2
2454 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2457 *,${language},*:*:*:*)
2458 # Language was explicitly selected; include it.
2462 # 'all' was selected, but this is not a default language
2463 # so do not include it.
2467 # 'all' was selected and this is a default language; include it.
2475 # Disable language that need GMP if it isn't available.
2476 if test x
"$need_gmp" = xyes
&& test x
"$have_gmp" = xno
; then
2480 case $add_this_lang in
2482 # Remove language-dependent dirs.
2483 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2486 new_enable_languages
="$new_enable_languages,$language"
2487 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
2488 case ${boot_language} in
2490 # Add to (comma-separated) list of stage 1 languages.
2491 stage1_languages
="${stage1_languages},${language}"
2500 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2501 if test "x$missing_languages" != x
; then
2502 { echo "configure: error:
2503 The following requested languages were not found: ${missing_languages}" 1>&2; exit 1; }
2506 if test "x$new_enable_languages" != "x$enable_languages"; then
2507 echo The following languages will be built
: ${new_enable_languages}
2509 enable_languages
="$new_enable_languages"
2510 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2513 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
2514 # $target_configdirs.
2515 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2518 for dir
in .
$skipdirs $noconfigdirs ; do
2519 dirname=`echo $dir | sed -e s/target-//g`
2520 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2521 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2522 if test -r $srcdir/$dirname/configure
; then
2523 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2526 notsupp
="$notsupp $dir"
2530 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2531 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2532 if test -r $srcdir/$dirname/configure
; then
2533 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2536 notsupp
="$notsupp $dir"
2542 # Sometimes the tools are distributed with libiberty but with no other
2543 # libraries. In that case, we don't want to build target-libiberty.
2544 if test -n "${target_configdirs}" ; then
2546 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2547 if test "$i" != "libiberty" ; then
2548 if test -r $srcdir/$i/configure
; then
2554 if test -z "${others}" ; then
2559 # Quietly strip out all directories which aren't configurable in this tree.
2560 # This relies on all configurable subdirectories being autoconfiscated, which
2562 configdirs_all
="$configdirs"
2564 for i
in ${configdirs_all} ; do
2565 if test -f ${srcdir}/$i/configure
; then
2566 configdirs
="${configdirs} $i"
2569 target_configdirs_all
="$target_configdirs"
2571 for i
in ${target_configdirs_all} ; do
2572 j
=`echo $i | sed -e s/target-//g`
2573 if test -f ${srcdir}/$j/configure
; then
2574 target_configdirs
="${target_configdirs} $i"
2578 # Produce a warning message for the subdirs we can't configure.
2579 # This isn't especially interesting in the Cygnus tree, but in the individual
2580 # FSF releases, it's important to let people know when their machine isn't
2581 # supported by the one or two programs in a package.
2583 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2584 # If $appdirs is non-empty, at least one of those directories must still
2585 # be configured, or we error out. (E.g., if the gas release supports a
2586 # specified target in some subdirs but not the gas subdir, we shouldn't
2587 # pretend that all is well.)
2588 if test -n "$appdirs" ; then
2589 for dir
in $appdirs ; do
2590 if test -r $dir/Makefile.
in ; then
2591 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2595 if echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2601 if test -n "$appdirs" ; then
2602 echo "*** This configuration is not supported by this package." 1>&2
2606 # Okay, some application will build, or we don't care to check. Still
2607 # notify of subdirs not getting built.
2608 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2609 echo " ${notsupp}" 1>&2
2610 echo " (Any other directories should still work fine.)" 1>&2
2620 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2621 # the named directory are copied to $(tooldir)/sys-include.
2622 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
2623 if test x
${is_cross_compiler} = xno
; then
2624 echo 1>&2 '***' --with-headers is only supported when cross compiling
2627 if test x
"${with_headers}" != xyes
; then
2628 case "${exec_prefixoption}" in
2630 *) x
=${exec_prefix} ;;
2632 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2636 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2637 # the name directories are copied to $(tooldir)/lib. Multiple directories
2639 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2640 if test x
${is_cross_compiler} = xno
; then
2641 echo 1>&2 '***' --with-libs is only supported when cross compiling
2644 if test x
"${with_libs}" != xyes
; then
2645 # Copy the libraries in reverse order, so that files in the first named
2646 # library override files in subsequent libraries.
2647 case "${exec_prefixoption}" in
2649 *) x
=${exec_prefix} ;;
2651 for l
in ${with_libs}; do
2652 copy_dirs
="$l $x/${target_alias}/lib ${copy_dirs}"
2657 # Handle ${copy_dirs}
2658 set fnord
${copy_dirs}
2660 while test $# != 0 ; do
2661 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
2664 echo Copying
$1 to
$2
2666 # Use the install script to create the directory and all required
2667 # parent directories.
2668 if test -d $2 ; then
2672 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
2675 # Copy the directory, assuming we have tar.
2676 # FIXME: Should we use B in the second tar? Not all systems support it.
2677 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
2679 # It is the responsibility of the user to correctly adjust all
2680 # symlinks. If somebody can figure out how to handle them correctly
2681 # here, feel free to add the code.
2688 extra_arflags_for_target
=
2689 extra_nmflags_for_target
=
2690 extra_ranlibflags_for_target
=
2691 target_makefile_frag
=/dev
/null
2693 i
[3456789]86-*-netware*)
2694 target_makefile_frag
="config/mt-netware"
2697 target_makefile_frag
="config/mt-netware"
2700 target_makefile_frag
="config/mt-linux"
2702 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
2703 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2704 # commands to handle both 32-bit and 64-bit objects. These flags are
2705 # harmless if we're using GNU nm or ar.
2706 extra_arflags_for_target
=" -X32_64"
2707 extra_nmflags_for_target
=" -B -X32_64"
2710 # ranlib from Darwin requires the -c flag to look at common symbols.
2711 extra_ranlibflags_for_target
=" -c"
2713 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
2714 target_makefile_frag
="config/mt-wince"
2718 alphaieee_frag
=/dev
/null
2721 # This just makes sure to use the -mieee option to build target libs.
2722 # This should probably be set individually by each library.
2723 alphaieee_frag
="config/mt-alphaieee"
2727 # If --enable-target-optspace always use -Os instead of -O2 to build
2728 # the target libraries, similarly if it is not specified, use -Os
2729 # on selected platforms.
2730 ospace_frag
=/dev
/null
2731 case "${enable_target_optspace}:${target}" in
2733 ospace_frag
="config/mt-ospace"
2736 ospace_frag
="config/mt-d30v"
2738 :m32r-
* |
:d10v-
* |
:fr30-
*)
2739 ospace_frag
="config/mt-ospace"
2744 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2748 # Set with_gnu_as and with_gnu_ld as appropriate.
2750 # This is done by determining whether or not the appropriate directory
2751 # is available, and by checking whether or not specific configurations
2752 # have requested that this magic not happen.
2754 # The command line options always override the explicit settings in
2755 # configure.in, and the settings in configure.in override this magic.
2757 # If the default for a toolchain is to use GNU as and ld, and you don't
2758 # want to do that, then you should use the --without-gnu-as and
2759 # --without-gnu-ld options for the configure script.
2761 if test x
${use_gnu_as} = x
&&
2762 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
2764 extra_host_args
="$extra_host_args --with-gnu-as"
2767 if test x
${use_gnu_ld} = x
&&
2768 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
2770 extra_host_args
="$extra_host_args --with-gnu-ld"
2773 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2774 # can detect this case.
2776 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
2778 extra_host_args
="$extra_host_args --with-newlib"
2781 if test x
${with_libbanshee} = xyes
&& echo " ${configdirs} " |
grep " libbanshee " >/dev
/null
2>&1; then
2782 extra_host_args
="$extra_host_args --with-libbanshee"
2785 # Default to using --with-stabs for certain targets.
2786 if test x
${with_stabs} = x
; then
2790 mips
*-*-* | alpha
*-*-osf*)
2792 extra_host_args
="${extra_host_args} --with-stabs"
2797 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2798 # them automatically.
2801 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2805 # Some systems (e.g., one of the i386-aix systems the gas testers are
2806 # using) don't handle "\$" correctly, so don't use it here.
2807 tooldir
='${exec_prefix}'/${target_alias}
2808 build_tooldir
=${tooldir}
2810 # Generate default definitions for YACC, M4, LEX. These are used if the
2811 # Makefile can't locate these programs in objdir.
2812 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2813 for ac_prog
in 'bison -y' byacc
yacc
2815 # Extract the first word of "$ac_prog", so it can be a program name with args.
2816 set dummy
$ac_prog; ac_word
=$2
2817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2818 echo "configure:2819: checking for $ac_word" >&5
2819 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_YACC'+set}'`\" = set"; then
2820 echo $ac_n "(cached) $ac_c" 1>&6
2822 if test -n "$DEFAULT_YACC"; then
2823 ac_cv_prog_DEFAULT_YACC
="$DEFAULT_YACC" # Let the user override the test.
2825 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2827 for ac_dir
in $ac_dummy; do
2828 test -z "$ac_dir" && ac_dir
=.
2829 if test -f $ac_dir/$ac_word; then
2830 ac_cv_prog_DEFAULT_YACC
="$ac_prog"
2837 DEFAULT_YACC
="$ac_cv_prog_DEFAULT_YACC"
2838 if test -n "$DEFAULT_YACC"; then
2839 echo "$ac_t""$DEFAULT_YACC" 1>&6
2841 echo "$ac_t""no" 1>&6
2844 test -n "$DEFAULT_YACC" && break
2846 test -n "$DEFAULT_YACC" || DEFAULT_YACC
="$MISSING bison"
2848 for ac_prog
in gm4 gnum4
m4
2850 # Extract the first word of "$ac_prog", so it can be a program name with args.
2851 set dummy
$ac_prog; ac_word
=$2
2852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2853 echo "configure:2854: checking for $ac_word" >&5
2854 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_M4'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2857 if test -n "$DEFAULT_M4"; then
2858 ac_cv_prog_DEFAULT_M4
="$DEFAULT_M4" # Let the user override the test.
2860 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2862 for ac_dir
in $ac_dummy; do
2863 test -z "$ac_dir" && ac_dir
=.
2864 if test -f $ac_dir/$ac_word; then
2865 ac_cv_prog_DEFAULT_M4
="$ac_prog"
2872 DEFAULT_M4
="$ac_cv_prog_DEFAULT_M4"
2873 if test -n "$DEFAULT_M4"; then
2874 echo "$ac_t""$DEFAULT_M4" 1>&6
2876 echo "$ac_t""no" 1>&6
2879 test -n "$DEFAULT_M4" && break
2881 test -n "$DEFAULT_M4" || DEFAULT_M4
="$MISSING m4"
2883 for ac_prog
in flex
lex
2885 # Extract the first word of "$ac_prog", so it can be a program name with args.
2886 set dummy
$ac_prog; ac_word
=$2
2887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2888 echo "configure:2889: checking for $ac_word" >&5
2889 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_LEX'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2892 if test -n "$DEFAULT_LEX"; then
2893 ac_cv_prog_DEFAULT_LEX
="$DEFAULT_LEX" # Let the user override the test.
2895 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2897 for ac_dir
in $ac_dummy; do
2898 test -z "$ac_dir" && ac_dir
=.
2899 if test -f $ac_dir/$ac_word; then
2900 ac_cv_prog_DEFAULT_LEX
="$ac_prog"
2907 DEFAULT_LEX
="$ac_cv_prog_DEFAULT_LEX"
2908 if test -n "$DEFAULT_LEX"; then
2909 echo "$ac_t""$DEFAULT_LEX" 1>&6
2911 echo "$ac_t""no" 1>&6
2914 test -n "$DEFAULT_LEX" && break
2916 test -n "$DEFAULT_LEX" || DEFAULT_LEX
="$MISSING flex"
2919 # Create a .gdbinit file which runs the one in srcdir
2920 # and tells GDB to look there for source files.
2922 if test -r ${srcdir}/.gdbinit
; then
2925 *) cat > .
/.gdbinit
<<EOF
2929 source ${srcdir}/.gdbinit
2935 # Make sure that the compiler is able to generate an executable. If it
2936 # can't, we are probably in trouble. We don't care whether we can run the
2937 # executable--we might be using a cross compiler--we only care whether it
2938 # can be created. At this point the main configure script has set CC.
2940 echo "int main () { return 0; }" > conftest.c
2941 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2942 if test $?
= 0 ; then
2943 if test -s conftest ||
test -s conftest.exe
; then
2949 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2950 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2957 # The Solaris /usr/ucb/cc compiler does not appear to work.
2959 sparc-sun-solaris2
*)
2960 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
2961 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2963 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
2964 if test -d /opt
/cygnus
/bin
; then
2965 if test "$could_use" = "" ; then
2966 could_use
="/opt/cygnus/bin"
2968 could_use
="$could_use or /opt/cygnus/bin"
2971 if test "$could_use" = "" ; then
2972 echo "Warning: compilation may fail because you're using"
2973 echo "/usr/ucb/cc. You should change your PATH or CC "
2974 echo "variable and rerun configure."
2976 echo "Warning: compilation may fail because you're using"
2977 echo "/usr/ucb/cc, when you should use the C compiler from"
2978 echo "$could_use. You should change your"
2979 echo "PATH or CC variable and rerun configure."
2985 # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
2986 # binutils tools will find libbfd.so.
2987 case "${enable_shared}" in
2988 no |
"") SET_LIB_PATH
= ;;
2989 *) SET_LIB_PATH
="\$(REALLY_SET_LIB_PATH)" ;;
2993 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
2994 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
2997 # Record target_configdirs and the configure arguments for target and
2998 # build configuration in Makefile.
2999 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3001 # This is the final value for target_configdirs. configdirs already
3002 # has its final value, as does build_modules. It's time to create some
3003 # lists of valid targets.
3006 configure_build_modules
=
3007 for module
in ${build_modules} ; do
3008 all_build_modules
=all-build-
${module}
3009 configure_build_modules
=configure-build-
${module}
3012 # Determine whether gdb needs tk/tcl or not.
3013 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3014 # and in that case we want gdb to be built without tk. Ugh!
3015 # In fact I believe gdb is the *only* package directly dependent on tk,
3016 # so we should be able to put the 'maybe's in unconditionally and
3017 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3018 # 100% sure that that's safe though.
3020 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui"
3021 case "$enable_gdbtk" in
3025 GDB_TK
="${gdb_tk}" ;;
3027 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3028 # distro. Eventually someone will fix this and move Insight, nee
3029 # gdbtk to a separate directory.
3030 if test -d ${srcdir}/gdb
/gdbtk
; then
3038 # Strip out unwanted targets.
3040 # While at that, we remove Makefiles if we were started for recursive
3041 # configuration, so that the top-level Makefile reconfigures them,
3042 # like we used to do when configure itself was recursive.
3044 # Loop over modules. $extrasub must be used with care, limiting as
3045 # much as possible the usage of range addresses. That's because autoconf
3046 # splits the sed script to overcome limits in the number of commands,
3047 # and relying on carefully-timed sed passes may turn out to be very hard
3048 # to maintain later. In this particular case, you just have to be careful
3049 # not to nest @if/@endif pairs, because configure will not warn you at all.
3051 for module
in ${build_modules} ; do
3052 if test -z "${no_recursion}" \
3053 && test -f ${build_subdir}/${module}/Makefile
; then
3054 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3055 rm -f ${build_subdir}/${module}/Makefile
3058 /^@if build-$module\$/d
3059 /^@endif build-$module\$/d"
3061 for module
in ${configdirs} ; do
3062 if test -z "${no_recursion}" \
3063 && test -f ${module}/Makefile
; then
3064 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3065 rm -f ${module}/Makefile
3069 /^@endif $module\$/d"
3071 for module
in ${target_configdirs} ; do
3072 if test -z "${no_recursion}" \
3073 && test -f ${target_subdir}/${module}/Makefile
; then
3074 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3075 rm -f ${target_subdir}/${module}/Makefile
3078 /^@if target-$module\$/d
3079 /^@endif target-$module\$/d"
3082 /^@if /,/^@endif /d"
3084 # Create the serialization dependencies. This uses a temporary file.
3086 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3087 if test "${enable_serial_configure+set}" = set; then
3088 enableval
="$enable_serial_configure"
3093 case ${enable_serial_configure} in
3095 enable_serial_build_configure
=yes
3096 enable_serial_host_configure
=yes
3097 enable_serial_target_configure
=yes
3101 # These force 'configure's to be done one at a time, to avoid problems
3102 # with contention over a shared config.cache.
3104 echo '# serdep.tmp' > serdep.tmp
3106 test "x${enable_serial_build_configure}" = xyes
&&
3107 for item
in ${build_configdirs} ; do
3110 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
3115 test "x${enable_serial_host_configure}" = xyes
&&
3116 for item
in ${configdirs} ; do
3119 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
3124 test "x${enable_serial_target_configure}" = xyes
&&
3125 for item
in ${target_configdirs} ; do
3128 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
3132 serialization_dependencies
=serdep.tmp
3135 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3136 # target and nonopt. These are the ones we might not want to pass
3137 # down to subconfigures. Also strip program-prefix, program-suffix,
3138 # and program-transform-name, so that we can pass down a consistent
3139 # program-transform-name. If autoconf has put single quotes around
3140 # any of these arguments (because they contain shell metacharacters)
3141 # then this will fail; in practice this only happens for
3142 # --program-transform-name, so be sure to override --program-transform-name
3143 # at the end of the argument list.
3144 # These will be expanded by make, so quote '$'.
3145 cat <<\EOF_SED
> conftestsed
3147 s
/ --c[a-z-
]*[= ][^
]*//g
3148 s
/ --sr[a-z-
]*[= ][^
]*//g
3149 s
/ --ho[a-z-
]*[= ][^
]*//g
3150 s
/ --bu[a-z-
]*[= ][^
]*//g
3151 s
/ --t[a-z-
]*[= ][^
]*//g
3152 s
/ --program-[pst
][a-z-
]*[= ][^
]*//g
3153 s
/ -cache-file[= ][^
]*//g
3154 s
/ -srcdir[= ][^
]*//g
3155 s
/ -host[= ][^
]*//g
3156 s
/ -build[= ][^
]*//g
3157 s
/ -target[= ][^
]*//g
3158 s
/ -program-prefix[= ][^
]*//g
3159 s
/ -program-suffix[= ][^
]*//g
3160 s
/ -program-transform-name[= ][^
]*//g
3165 sed -f conftestsed <<EOF_SED > conftestsed.out
3166 ${ac_configure_args}
3168 baseargs=`cat conftestsed.out`
3169 rm -f conftestsed conftestsed.out
3171 # Add in --program-transform-name, after --program-prefix and
3172 # --program-suffix have been applied to it. Autoconf has already
3173 # doubled dollar signs and backslashes in program_transform_name; we want
3174 # the backslashes un-doubled, and then the entire thing wrapped in single
3175 # quotes, because this will be expanded first by make and then by the shell.
3176 # Also, because we want to override the logic in subdir configure scripts to
3177 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3178 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3179 ${program_transform_name}
3181 gcc_transform_name=`cat conftestsed.out`
3182 rm -f conftestsed.out
3183 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3185 # For the build-side libraries, we just need to pretend we're native
,
3186 # and not use the same cache file. Multilibs are neither needed nor
3188 build_configargs
="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
3190 # For host modules, accept cache file option, or specification as blank.
3191 case "${cache_file}" in
3193 cache_file_option
="" ;;
3194 /* |
[A-Za-z
]:[\\/]* ) # absolute path
3195 cache_file_option
="--cache-file=${cache_file}" ;;
3197 cache_file_option
="--cache-file=../${cache_file}" ;;
3200 # Host dirs don't like to share a cache file either, horribly enough.
3201 # This seems to be due to autoconf 2.5x stupidity.
3202 host_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3204 target_configargs
=${baseargs}
3206 # Passing a --with-cross-host argument lets the target libraries know
3207 # whether they are being built with a cross-compiler or being built
3208 # native. However, it would be better to use other mechanisms to make the
3209 # sorts of decisions they want to make on this basis. Please consider
3210 # this option to be deprecated. FIXME.
3211 if test x
${is_cross_compiler} = xyes
; then
3212 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3215 # Default to --enable-multilib.
3216 if test x
${enable_multilib} = x
; then
3217 target_configargs
="--enable-multilib ${target_configargs}"
3220 # Pass --with-newlib if appropriate. Note that target_configdirs has
3221 # changed from the earlier setting of with_newlib.
3222 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3223 target_configargs
="--with-newlib ${target_configargs}"
3226 # Different target subdirs use different values of certain variables
3227 # (notably CXX). Worse, multilibs use *lots* of different values.
3228 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3229 # it doesn't automatically accept command-line overrides of them.
3230 # This means it's not safe for target subdirs to share a cache file,
3231 # which is disgusting, but there you have it. Hopefully this can be
3232 # fixed in future. It's still worthwhile to use a cache file for each
3233 # directory. I think.
3235 # Pass the appropriate --host, --build, and --cache-file arguments.
3236 target_configargs
="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}"
3238 # provide a proper gxx_include_dir.
3239 # Note, if you change the default, make sure to fix both here and in
3240 # the gcc and libstdc++-v3 subdirectories.
3241 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
3242 case "${with_gxx_include_dir}" in
3244 { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; }
3247 case "${enable_version_specific_runtime_libs}" in
3248 yes) gxx_include_dir
='${libsubdir}/include/c++' ;;
3250 .
${srcdir}/config.
if
3251 gxx_include_dir
='${prefix}/include/'${libstdcxx_incdir} ;;
3253 *) gxx_include_dir
=${with_gxx_include_dir} ;;
3257 case " $target_configdirs " in
3259 case " $target_configargs " in
3260 *" --with-newlib "*)
3263 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' ;;
3266 # If we're not building GCC, don't discard standard headers.
3267 if test -d ${srcdir}/gcc
; then
3268 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3270 if test "${build}" != "${host}"; then
3271 # On Canadian crosses, CC_FOR_TARGET will have already been set
3272 # by `configure', so we won't have an opportunity to add -Bgcc/
3273 # to it. This is right: we don't want to search that directory
3274 # for binaries, but we want the header files in there, so add
3276 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
3278 # Someone might think of using the pre-installed headers on
3279 # Canadian crosses, in case the installed compiler is not fully
3280 # compatible with the compiler being built. In this case, it
3281 # would be better to flag an error than risking having
3282 # incompatible object files being constructed. We can't
3283 # guarantee that an error will be flagged, but let's hope the
3284 # compiler will do it, when presented with incompatible header
3289 case "${target}-${is_cross_compiler}" in
3290 i
[3456789]86-*-linux*-no)
3291 # Here host == target, so we don't need to build gcc,
3292 # so we don't want to discard standard headers.
3293 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3296 # If we're building newlib, use its generic headers last, but search
3297 # for any libc-related directories first (so make it the last -B
3299 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3307 # Allow the user to override the flags for
3308 # our build compiler if desired.
3309 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3311 # On Canadian crosses, we'll be searching the right directories for
3312 # the previously-installed cross compiler, so don't bother to add
3313 # flags for directories within the install tree of the compiler
3314 # being built; programs in there won't even run.
3315 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3316 # Search for pre-installed headers if nothing else fits.
3317 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3320 if test "x
${use_gnu_ld}" = x &&
3321 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3322 # Arrange for us to find uninstalled linker scripts.
3323 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
3326 if test "x
${CC_FOR_TARGET+set}" = xset; then
3328 elif test -d ${srcdir}/gcc; then
3329 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
3330 elif test "$host" = "$target"; then
3331 CC_FOR_TARGET='$(CC)'
3333 CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"`
3335 CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3337 if test "x
${GCJ_FOR_TARGET+set}" = xset; then
3339 elif test -d ${srcdir}/gcc; then
3340 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
3341 elif test "$host" = "$target"; then
3342 GCJ_FOR_TARGET='gcj'
3344 GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"`
3346 GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3348 if test "x
${GFORTRAN_FOR_TARGET+set}" = xset; then
3350 elif test -d ${srcdir}/gcc; then
3351 GFORTRAN_FOR_TARGET='$$r/gcc/gfortran -B$$r/gcc/'
3352 elif test "$host" = "$target"; then
3353 GFORTRAN_FOR_TARGET='gfortran'
3355 GFORTRAN_FOR_TARGET=`echo gfortran | sed "${program_transform_name}"`
3357 case $GFORTRAN_FOR_TARGET in
3358 *' $(FLAGS_FOR_TARGET)') ;;
3359 *) GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET' $(FLAGS_FOR_TARGET)' ;;
3362 # Don't use libstdc++-v3's flags to configure/build itself.
3363 libstdcxx_flags='`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'
3364 raw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
3366 if test "x
${CXX_FOR_TARGET+set}" = xset; then
3367 if test "x
${RAW_CXX_FOR_TARGET+set}" != xset; then
3368 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3370 elif test -d ${srcdir}/gcc; then
3371 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
3372 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
3373 # default whereas gcc does not.
3374 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
3376 CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
3377 RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags
3378 elif test "$host" = "$target"; then
3379 CXX_FOR_TARGET='$(CXX)'
3380 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3382 CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"`
3383 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3385 CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3386 RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3388 qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3389 qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3391 # We want to defer the evaluation of `cmd`s and shell variables in
3392 # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
3393 # bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
3394 # quotes, but we still have to duplicate `$'s so that shell variables
3395 # can be expanded by the nested make as shell variables, not as make
3397 qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3398 qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3400 # Wrap CC_FOR_TARGET and friends, for certain types of builds.
3401 CC_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${CC_FOR_TARGET}"
3402 GCJ_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${GCJ_FOR_TARGET}"
3403 GFORTRAN_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${GFORTRAN_FOR_TARGET}"
3404 CXX_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${qCXX_FOR_TARGET}"
3405 RAW_CXX_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${qRAW_CXX_FOR_TARGET}"
3406 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$
(STAGE_CC_WRAPPER
) ${qqCXX_FOR_TARGET}"
3407 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$
(STAGE_CC_WRAPPER
) ${qqRAW_CXX_FOR_TARGET}"
3409 # Makefile fragments.
3410 host_makefile_frag=${srcdir}/${host_makefile_frag}
3411 target_makefile_frag=${srcdir}/${target_makefile_frag}
3412 alphaieee_frag=${srcdir}/${alphaieee_frag}
3413 ospace_frag=${srcdir}/${ospace_frag}
3419 # Miscellanea: directories, flags, etc.
3432 # Build module lists & subconfigure args.
3437 # Host module lists & subconfigure args.
3441 # Target module lists & subconfigure args.
3455 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3456 ncn_target_tool_prefix=
3457 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3459 if test -n "$ncn_tool_prefix"; then
3460 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
3461 set dummy ${ncn_tool_prefix}ar; ac_word=$2
3462 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3463 echo "configure
:3464: checking
for $ac_word" >&5
3464 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3465 echo $ac_n "(cached
) $ac_c" 1>&6
3467 if test -n "$AR"; then
3468 ac_cv_prog_AR="$AR" # Let the user override the test.
3470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3472 for ac_dir in $ac_dummy; do
3473 test -z "$ac_dir" && ac_dir=.
3474 if test -f $ac_dir/$ac_word; then
3475 ac_cv_prog_AR="${ncn_tool_prefix}ar"
3483 if test -n "$AR"; then
3484 echo "$ac_t""$AR" 1>&6
3486 echo "$ac_t""no
" 1>&6
3490 if test -z "$ac_cv_prog_AR" ; then
3491 if test $build = $host ; then
3493 # Extract the first word of "ar", so it can be a program name with args.
3494 set dummy ar; ac_word=$2
3495 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3496 echo "configure
:3497: checking
for $ac_word" >&5
3497 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
3498 echo $ac_n "(cached
) $ac_c" 1>&6
3500 if test -n "$ncn_cv_AR"; then
3501 ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test.
3503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3505 for ac_dir in $ac_dummy; do
3506 test -z "$ac_dir" && ac_dir=.
3507 if test -f $ac_dir/$ac_word; then
3508 ac_cv_prog_ncn_cv_AR="ar"
3513 test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar"
3516 ncn_cv_AR="$ac_cv_prog_ncn_cv_AR"
3517 if test -n "$ncn_cv_AR"; then
3518 echo "$ac_t""$ncn_cv_AR" 1>&6
3520 echo "$ac_t""no
" 1>&6
3525 AR="${ncn_tool_prefix}ar"
3531 if test -n "$ncn_tool_prefix"; then
3532 # Extract the first word of "${ncn_tool_prefix}as
", so it can be a program name with args.
3533 set dummy ${ncn_tool_prefix}as; ac_word=$2
3534 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3535 echo "configure
:3536: checking
for $ac_word" >&5
3536 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3537 echo $ac_n "(cached
) $ac_c" 1>&6
3539 if test -n "$AS"; then
3540 ac_cv_prog_AS="$AS" # Let the user override the test.
3542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3544 for ac_dir in $ac_dummy; do
3545 test -z "$ac_dir" && ac_dir=.
3546 if test -f $ac_dir/$ac_word; then
3547 ac_cv_prog_AS="${ncn_tool_prefix}as
"
3555 if test -n "$AS"; then
3556 echo "$ac_t""$AS" 1>&6
3558 echo "$ac_t""no
" 1>&6
3562 if test -z "$ac_cv_prog_AS" ; then
3563 if test $build = $host ; then
3565 # Extract the first word of "as
", so it can be a program name with args.
3566 set dummy as; ac_word=$2
3567 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3568 echo "configure
:3569: checking
for $ac_word" >&5
3569 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
3570 echo $ac_n "(cached
) $ac_c" 1>&6
3572 if test -n "$ncn_cv_AS"; then
3573 ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test.
3575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3577 for ac_dir in $ac_dummy; do
3578 test -z "$ac_dir" && ac_dir=.
3579 if test -f $ac_dir/$ac_word; then
3580 ac_cv_prog_ncn_cv_AS="as
"
3585 test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as
"
3588 ncn_cv_AS="$ac_cv_prog_ncn_cv_AS"
3589 if test -n "$ncn_cv_AS"; then
3590 echo "$ac_t""$ncn_cv_AS" 1>&6
3592 echo "$ac_t""no
" 1>&6
3597 AS="${ncn_tool_prefix}as
"
3603 if test -n "$ncn_tool_prefix"; then
3604 # Extract the first word of "${ncn_tool_prefix}dlltool
", so it can be a program name with args.
3605 set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
3606 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3607 echo "configure
:3608: checking
for $ac_word" >&5
3608 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3609 echo $ac_n "(cached
) $ac_c" 1>&6
3611 if test -n "$DLLTOOL"; then
3612 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3616 for ac_dir in $ac_dummy; do
3617 test -z "$ac_dir" && ac_dir=.
3618 if test -f $ac_dir/$ac_word; then
3619 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool
"
3626 DLLTOOL="$ac_cv_prog_DLLTOOL"
3627 if test -n "$DLLTOOL"; then
3628 echo "$ac_t""$DLLTOOL" 1>&6
3630 echo "$ac_t""no
" 1>&6
3634 if test -z "$ac_cv_prog_DLLTOOL" ; then
3635 if test $build = $host ; then
3636 ncn_cv_DLLTOOL=$DLLTOOL
3637 # Extract the first word of "dlltool
", so it can be a program name with args.
3638 set dummy dlltool; ac_word=$2
3639 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3640 echo "configure
:3641: checking
for $ac_word" >&5
3641 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
3642 echo $ac_n "(cached
) $ac_c" 1>&6
3644 if test -n "$ncn_cv_DLLTOOL"; then
3645 ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test.
3647 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3649 for ac_dir in $ac_dummy; do
3650 test -z "$ac_dir" && ac_dir=.
3651 if test -f $ac_dir/$ac_word; then
3652 ac_cv_prog_ncn_cv_DLLTOOL="dlltool
"
3657 test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool
"
3660 ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL"
3661 if test -n "$ncn_cv_DLLTOOL"; then
3662 echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6
3664 echo "$ac_t""no
" 1>&6
3667 DLLTOOL=$ncn_cv_DLLTOOL
3669 DLLTOOL="${ncn_tool_prefix}dlltool
"
3672 DLLTOOL="$ac_cv_prog_DLLTOOL"
3675 if test -n "$ncn_tool_prefix"; then
3676 # Extract the first word of "${ncn_tool_prefix}ld
", so it can be a program name with args.
3677 set dummy ${ncn_tool_prefix}ld; ac_word=$2
3678 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3679 echo "configure
:3680: checking
for $ac_word" >&5
3680 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3681 echo $ac_n "(cached
) $ac_c" 1>&6
3683 if test -n "$LD"; then
3684 ac_cv_prog_LD="$LD" # Let the user override the test.
3686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3688 for ac_dir in $ac_dummy; do
3689 test -z "$ac_dir" && ac_dir=.
3690 if test -f $ac_dir/$ac_word; then
3691 ac_cv_prog_LD="${ncn_tool_prefix}ld
"
3699 if test -n "$LD"; then
3700 echo "$ac_t""$LD" 1>&6
3702 echo "$ac_t""no
" 1>&6
3706 if test -z "$ac_cv_prog_LD" ; then
3707 if test $build = $host ; then
3709 # Extract the first word of "ld
", so it can be a program name with args.
3710 set dummy ld; ac_word=$2
3711 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3712 echo "configure
:3713: checking
for $ac_word" >&5
3713 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
3714 echo $ac_n "(cached
) $ac_c" 1>&6
3716 if test -n "$ncn_cv_LD"; then
3717 ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test.
3719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3721 for ac_dir in $ac_dummy; do
3722 test -z "$ac_dir" && ac_dir=.
3723 if test -f $ac_dir/$ac_word; then
3724 ac_cv_prog_ncn_cv_LD="ld
"
3729 test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld
"
3732 ncn_cv_LD="$ac_cv_prog_ncn_cv_LD"
3733 if test -n "$ncn_cv_LD"; then
3734 echo "$ac_t""$ncn_cv_LD" 1>&6
3736 echo "$ac_t""no
" 1>&6
3741 LD="${ncn_tool_prefix}ld
"
3747 if test -n "$ncn_tool_prefix"; then
3748 # Extract the first word of "${ncn_tool_prefix}nm
", so it can be a program name with args.
3749 set dummy ${ncn_tool_prefix}nm; ac_word=$2
3750 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3751 echo "configure
:3752: checking
for $ac_word" >&5
3752 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3753 echo $ac_n "(cached
) $ac_c" 1>&6
3755 if test -n "$NM"; then
3756 ac_cv_prog_NM="$NM" # Let the user override the test.
3758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3760 for ac_dir in $ac_dummy; do
3761 test -z "$ac_dir" && ac_dir=.
3762 if test -f $ac_dir/$ac_word; then
3763 ac_cv_prog_NM="${ncn_tool_prefix}nm
"
3771 if test -n "$NM"; then
3772 echo "$ac_t""$NM" 1>&6
3774 echo "$ac_t""no
" 1>&6
3778 if test -z "$ac_cv_prog_NM" ; then
3779 if test $build = $host ; then
3781 # Extract the first word of "nm
", so it can be a program name with args.
3782 set dummy nm; ac_word=$2
3783 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3784 echo "configure
:3785: checking
for $ac_word" >&5
3785 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
3786 echo $ac_n "(cached
) $ac_c" 1>&6
3788 if test -n "$ncn_cv_NM"; then
3789 ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test.
3791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3793 for ac_dir in $ac_dummy; do
3794 test -z "$ac_dir" && ac_dir=.
3795 if test -f $ac_dir/$ac_word; then
3796 ac_cv_prog_ncn_cv_NM="nm
"
3801 test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm
"
3804 ncn_cv_NM="$ac_cv_prog_ncn_cv_NM"
3805 if test -n "$ncn_cv_NM"; then
3806 echo "$ac_t""$ncn_cv_NM" 1>&6
3808 echo "$ac_t""no
" 1>&6
3813 NM="${ncn_tool_prefix}nm
"
3819 if test -n "$ncn_tool_prefix"; then
3820 # Extract the first word of "${ncn_tool_prefix}ranlib
", so it can be a program name with args.
3821 set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3822 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3823 echo "configure
:3824: checking
for $ac_word" >&5
3824 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3825 echo $ac_n "(cached
) $ac_c" 1>&6
3827 if test -n "$RANLIB"; then
3828 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3832 for ac_dir in $ac_dummy; do
3833 test -z "$ac_dir" && ac_dir=.
3834 if test -f $ac_dir/$ac_word; then
3835 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib
"
3842 RANLIB="$ac_cv_prog_RANLIB"
3843 if test -n "$RANLIB"; then
3844 echo "$ac_t""$RANLIB" 1>&6
3846 echo "$ac_t""no
" 1>&6
3850 if test -z "$ac_cv_prog_RANLIB" ; then
3851 if test $build = $host ; then
3852 ncn_cv_RANLIB=$RANLIB
3853 # Extract the first word of "ranlib
", so it can be a program name with args.
3854 set dummy ranlib; ac_word=$2
3855 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3856 echo "configure
:3857: checking
for $ac_word" >&5
3857 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
3858 echo $ac_n "(cached
) $ac_c" 1>&6
3860 if test -n "$ncn_cv_RANLIB"; then
3861 ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test.
3863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3865 for ac_dir in $ac_dummy; do
3866 test -z "$ac_dir" && ac_dir=.
3867 if test -f $ac_dir/$ac_word; then
3868 ac_cv_prog_ncn_cv_RANLIB="ranlib
"
3873 test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":"
3876 ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB"
3877 if test -n "$ncn_cv_RANLIB"; then
3878 echo "$ac_t""$ncn_cv_RANLIB" 1>&6
3880 echo "$ac_t""no
" 1>&6
3883 RANLIB=$ncn_cv_RANLIB
3888 RANLIB="$ac_cv_prog_RANLIB"
3891 if test -n "$ncn_tool_prefix"; then
3892 # Extract the first word of "${ncn_tool_prefix}windres
", so it can be a program name with args.
3893 set dummy ${ncn_tool_prefix}windres; ac_word=$2
3894 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3895 echo "configure
:3896: checking
for $ac_word" >&5
3896 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3897 echo $ac_n "(cached
) $ac_c" 1>&6
3899 if test -n "$WINDRES"; then
3900 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3904 for ac_dir in $ac_dummy; do
3905 test -z "$ac_dir" && ac_dir=.
3906 if test -f $ac_dir/$ac_word; then
3907 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres
"
3914 WINDRES="$ac_cv_prog_WINDRES"
3915 if test -n "$WINDRES"; then
3916 echo "$ac_t""$WINDRES" 1>&6
3918 echo "$ac_t""no
" 1>&6
3922 if test -z "$ac_cv_prog_WINDRES" ; then
3923 if test $build = $host ; then
3924 ncn_cv_WINDRES=$WINDRES
3925 # Extract the first word of "windres
", so it can be a program name with args.
3926 set dummy windres; ac_word=$2
3927 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3928 echo "configure
:3929: checking
for $ac_word" >&5
3929 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
3930 echo $ac_n "(cached
) $ac_c" 1>&6
3932 if test -n "$ncn_cv_WINDRES"; then
3933 ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test.
3935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3937 for ac_dir in $ac_dummy; do
3938 test -z "$ac_dir" && ac_dir=.
3939 if test -f $ac_dir/$ac_word; then
3940 ac_cv_prog_ncn_cv_WINDRES="windres
"
3945 test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres
"
3948 ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES"
3949 if test -n "$ncn_cv_WINDRES"; then
3950 echo "$ac_t""$ncn_cv_WINDRES" 1>&6
3952 echo "$ac_t""no
" 1>&6
3955 WINDRES=$ncn_cv_WINDRES
3957 WINDRES="${ncn_tool_prefix}windres
"
3960 WINDRES="$ac_cv_prog_WINDRES"
3963 if test -n "$ncn_tool_prefix"; then
3964 # Extract the first word of "${ncn_tool_prefix}objcopy
", so it can be a program name with args.
3965 set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
3966 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3967 echo "configure
:3968: checking
for $ac_word" >&5
3968 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
3969 echo $ac_n "(cached
) $ac_c" 1>&6
3971 if test -n "$OBJCOPY"; then
3972 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
3974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3976 for ac_dir in $ac_dummy; do
3977 test -z "$ac_dir" && ac_dir=.
3978 if test -f $ac_dir/$ac_word; then
3979 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy
"
3986 OBJCOPY="$ac_cv_prog_OBJCOPY"
3987 if test -n "$OBJCOPY"; then
3988 echo "$ac_t""$OBJCOPY" 1>&6
3990 echo "$ac_t""no
" 1>&6
3994 if test -z "$ac_cv_prog_OBJCOPY" ; then
3995 if test $build = $host ; then
3996 ncn_cv_OBJCOPY=$OBJCOPY
3997 # Extract the first word of "objcopy
", so it can be a program name with args.
3998 set dummy objcopy; ac_word=$2
3999 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4000 echo "configure
:4001: checking
for $ac_word" >&5
4001 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
4002 echo $ac_n "(cached
) $ac_c" 1>&6
4004 if test -n "$ncn_cv_OBJCOPY"; then
4005 ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test.
4007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4009 for ac_dir in $ac_dummy; do
4010 test -z "$ac_dir" && ac_dir=.
4011 if test -f $ac_dir/$ac_word; then
4012 ac_cv_prog_ncn_cv_OBJCOPY="objcopy
"
4017 test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy
"
4020 ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY"
4021 if test -n "$ncn_cv_OBJCOPY"; then
4022 echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6
4024 echo "$ac_t""no
" 1>&6
4027 OBJCOPY=$ncn_cv_OBJCOPY
4029 OBJCOPY="${ncn_tool_prefix}objcopy
"
4032 OBJCOPY="$ac_cv_prog_OBJCOPY"
4035 if test -n "$ncn_tool_prefix"; then
4036 # Extract the first word of "${ncn_tool_prefix}objdump
", so it can be a program name with args.
4037 set dummy ${ncn_tool_prefix}objdump; ac_word=$2
4038 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4039 echo "configure
:4040: checking
for $ac_word" >&5
4040 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4041 echo $ac_n "(cached
) $ac_c" 1>&6
4043 if test -n "$OBJDUMP"; then
4044 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4048 for ac_dir in $ac_dummy; do
4049 test -z "$ac_dir" && ac_dir=.
4050 if test -f $ac_dir/$ac_word; then
4051 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump
"
4058 OBJDUMP="$ac_cv_prog_OBJDUMP"
4059 if test -n "$OBJDUMP"; then
4060 echo "$ac_t""$OBJDUMP" 1>&6
4062 echo "$ac_t""no
" 1>&6
4066 if test -z "$ac_cv_prog_OBJDUMP" ; then
4067 if test $build = $host ; then
4068 ncn_cv_OBJDUMP=$OBJDUMP
4069 # Extract the first word of "objdump
", so it can be a program name with args.
4070 set dummy objdump; ac_word=$2
4071 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4072 echo "configure
:4073: checking
for $ac_word" >&5
4073 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
4074 echo $ac_n "(cached
) $ac_c" 1>&6
4076 if test -n "$ncn_cv_OBJDUMP"; then
4077 ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test.
4079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4081 for ac_dir in $ac_dummy; do
4082 test -z "$ac_dir" && ac_dir=.
4083 if test -f $ac_dir/$ac_word; then
4084 ac_cv_prog_ncn_cv_OBJDUMP="objdump
"
4089 test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump
"
4092 ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP"
4093 if test -n "$ncn_cv_OBJDUMP"; then
4094 echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6
4096 echo "$ac_t""no
" 1>&6
4099 OBJDUMP=$ncn_cv_OBJDUMP
4101 OBJDUMP="${ncn_tool_prefix}objdump
"
4104 OBJDUMP="$ac_cv_prog_OBJDUMP"
4117 if test -n "$ncn_target_tool_prefix"; then
4118 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
4119 set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
4120 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4121 echo "configure
:4122: checking
for $ac_word" >&5
4122 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
4123 echo $ac_n "(cached
) $ac_c" 1>&6
4125 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4126 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="$CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
4128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4130 for ac_dir in $ac_dummy; do
4131 test -z "$ac_dir" && ac_dir=.
4132 if test -f $ac_dir/$ac_word; then
4133 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
4140 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
4141 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4142 echo "$ac_t""$CONFIGURED_AR_FOR_TARGET" 1>&6
4144 echo "$ac_t""no
" 1>&6
4148 if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then
4149 if test $build = $target ; then
4150 ncn_cv_CONFIGURED_AR_FOR_TARGET=$CONFIGURED_AR_FOR_TARGET
4151 # Extract the first word of "ar", so it can be a program name with args.
4152 set dummy ar; ac_word=$2
4153 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4154 echo "configure
:4155: checking
for $ac_word" >&5
4155 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
4156 echo $ac_n "(cached
) $ac_c" 1>&6
4158 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4159 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="$ncn_cv_CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
4161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4163 for ac_dir in $ac_dummy; do
4164 test -z "$ac_dir" && ac_dir=.
4165 if test -f $ac_dir/$ac_word; then
4166 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
4171 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
4174 ncn_cv_CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET"
4175 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4176 echo "$ac_t""$ncn_cv_CONFIGURED_AR_FOR_TARGET" 1>&6
4178 echo "$ac_t""no
" 1>&6
4181 CONFIGURED_AR_FOR_TARGET=$ncn_cv_CONFIGURED_AR_FOR_TARGET
4183 CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
4186 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
4189 if test -n "$ncn_target_tool_prefix"; then
4190 # Extract the first word of "${ncn_target_tool_prefix}as
", so it can be a program name with args.
4191 set dummy ${ncn_target_tool_prefix}as; 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_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4195 echo $ac_n "(cached
) $ac_c" 1>&6
4197 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4198 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="$CONFIGURED_AS_FOR_TARGET" # 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_CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as
"
4212 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4213 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4214 echo "$ac_t""$CONFIGURED_AS_FOR_TARGET" 1>&6
4216 echo "$ac_t""no
" 1>&6
4220 if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then
4221 if test $build = $target ; then
4222 ncn_cv_CONFIGURED_AS_FOR_TARGET=$CONFIGURED_AS_FOR_TARGET
4223 # Extract the first word of "as
", so it can be a program name with args.
4224 set dummy as; ac_word=$2
4225 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4226 echo "configure
:4227: checking
for $ac_word" >&5
4227 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4228 echo $ac_n "(cached
) $ac_c" 1>&6
4230 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4231 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="$ncn_cv_CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
4233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4235 for ac_dir in $ac_dummy; do
4236 test -z "$ac_dir" && ac_dir=.
4237 if test -f $ac_dir/$ac_word; then
4238 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as
"
4243 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as
"
4246 ncn_cv_CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET"
4247 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4248 echo "$ac_t""$ncn_cv_CONFIGURED_AS_FOR_TARGET" 1>&6
4250 echo "$ac_t""no
" 1>&6
4253 CONFIGURED_AS_FOR_TARGET=$ncn_cv_CONFIGURED_AS_FOR_TARGET
4255 CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as
"
4258 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4261 if test -n "$ncn_target_tool_prefix"; then
4262 # Extract the first word of "${ncn_target_tool_prefix}dlltool
", so it can be a program name with args.
4263 set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
4264 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4265 echo "configure
:4266: checking
for $ac_word" >&5
4266 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4267 echo $ac_n "(cached
) $ac_c" 1>&6
4269 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4270 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="$CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4274 for ac_dir in $ac_dummy; do
4275 test -z "$ac_dir" && ac_dir=.
4276 if test -f $ac_dir/$ac_word; then
4277 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool
"
4284 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4285 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4286 echo "$ac_t""$CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4288 echo "$ac_t""no
" 1>&6
4292 if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then
4293 if test $build = $target ; then
4294 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET=$CONFIGURED_DLLTOOL_FOR_TARGET
4295 # Extract the first word of "dlltool
", so it can be a program name with args.
4296 set dummy dlltool; ac_word=$2
4297 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4298 echo "configure
:4299: checking
for $ac_word" >&5
4299 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4300 echo $ac_n "(cached
) $ac_c" 1>&6
4302 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4303 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4307 for ac_dir in $ac_dummy; do
4308 test -z "$ac_dir" && ac_dir=.
4309 if test -f $ac_dir/$ac_word; then
4310 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool
"
4315 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool
"
4318 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"
4319 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4320 echo "$ac_t""$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4322 echo "$ac_t""no
" 1>&6
4325 CONFIGURED_DLLTOOL_FOR_TARGET=$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET
4327 CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool
"
4330 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4333 if test -n "$ncn_target_tool_prefix"; then
4334 # Extract the first word of "${ncn_target_tool_prefix}ld
", so it can be a program name with args.
4335 set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
4336 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4337 echo "configure
:4338: checking
for $ac_word" >&5
4338 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4339 echo $ac_n "(cached
) $ac_c" 1>&6
4341 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4342 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="$CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4346 for ac_dir in $ac_dummy; do
4347 test -z "$ac_dir" && ac_dir=.
4348 if test -f $ac_dir/$ac_word; then
4349 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld
"
4356 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4357 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4358 echo "$ac_t""$CONFIGURED_LD_FOR_TARGET" 1>&6
4360 echo "$ac_t""no
" 1>&6
4364 if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then
4365 if test $build = $target ; then
4366 ncn_cv_CONFIGURED_LD_FOR_TARGET=$CONFIGURED_LD_FOR_TARGET
4367 # Extract the first word of "ld
", so it can be a program name with args.
4368 set dummy ld; ac_word=$2
4369 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4370 echo "configure
:4371: checking
for $ac_word" >&5
4371 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4372 echo $ac_n "(cached
) $ac_c" 1>&6
4374 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4375 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="$ncn_cv_CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4379 for ac_dir in $ac_dummy; do
4380 test -z "$ac_dir" && ac_dir=.
4381 if test -f $ac_dir/$ac_word; then
4382 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld
"
4387 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld
"
4390 ncn_cv_CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET"
4391 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4392 echo "$ac_t""$ncn_cv_CONFIGURED_LD_FOR_TARGET" 1>&6
4394 echo "$ac_t""no
" 1>&6
4397 CONFIGURED_LD_FOR_TARGET=$ncn_cv_CONFIGURED_LD_FOR_TARGET
4399 CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld
"
4402 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4405 if test -n "$ncn_target_tool_prefix"; then
4406 # Extract the first word of "${ncn_target_tool_prefix}nm
", so it can be a program name with args.
4407 set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
4408 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4409 echo "configure
:4410: checking
for $ac_word" >&5
4410 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4411 echo $ac_n "(cached
) $ac_c" 1>&6
4413 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4414 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="$CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4418 for ac_dir in $ac_dummy; do
4419 test -z "$ac_dir" && ac_dir=.
4420 if test -f $ac_dir/$ac_word; then
4421 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm
"
4428 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4429 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4430 echo "$ac_t""$CONFIGURED_NM_FOR_TARGET" 1>&6
4432 echo "$ac_t""no
" 1>&6
4436 if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then
4437 if test $build = $target ; then
4438 ncn_cv_CONFIGURED_NM_FOR_TARGET=$CONFIGURED_NM_FOR_TARGET
4439 # Extract the first word of "nm
", so it can be a program name with args.
4440 set dummy nm; ac_word=$2
4441 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4442 echo "configure
:4443: checking
for $ac_word" >&5
4443 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4444 echo $ac_n "(cached
) $ac_c" 1>&6
4446 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4447 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="$ncn_cv_CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4449 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4451 for ac_dir in $ac_dummy; do
4452 test -z "$ac_dir" && ac_dir=.
4453 if test -f $ac_dir/$ac_word; then
4454 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm
"
4459 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm
"
4462 ncn_cv_CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET"
4463 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4464 echo "$ac_t""$ncn_cv_CONFIGURED_NM_FOR_TARGET" 1>&6
4466 echo "$ac_t""no
" 1>&6
4469 CONFIGURED_NM_FOR_TARGET=$ncn_cv_CONFIGURED_NM_FOR_TARGET
4471 CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm
"
4474 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4477 if test -n "$ncn_target_tool_prefix"; then
4478 # Extract the first word of "${ncn_target_tool_prefix}ranlib
", so it can be a program name with args.
4479 set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
4480 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4481 echo "configure
:4482: checking
for $ac_word" >&5
4482 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4483 echo $ac_n "(cached
) $ac_c" 1>&6
4485 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4486 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="$CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4490 for ac_dir in $ac_dummy; do
4491 test -z "$ac_dir" && ac_dir=.
4492 if test -f $ac_dir/$ac_word; then
4493 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib
"
4500 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4501 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4502 echo "$ac_t""$CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4504 echo "$ac_t""no
" 1>&6
4508 if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then
4509 if test $build = $target ; then
4510 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=$CONFIGURED_RANLIB_FOR_TARGET
4511 # Extract the first word of "ranlib
", so it can be a program name with args.
4512 set dummy ranlib; ac_word=$2
4513 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4514 echo "configure
:4515: checking
for $ac_word" >&5
4515 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4516 echo $ac_n "(cached
) $ac_c" 1>&6
4518 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4519 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4523 for ac_dir in $ac_dummy; do
4524 test -z "$ac_dir" && ac_dir=.
4525 if test -f $ac_dir/$ac_word; then
4526 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="ranlib
"
4531 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=":"
4534 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"
4535 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4536 echo "$ac_t""$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4538 echo "$ac_t""no
" 1>&6
4541 CONFIGURED_RANLIB_FOR_TARGET=$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET
4543 CONFIGURED_RANLIB_FOR_TARGET=":"
4546 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4549 if test -n "$ncn_target_tool_prefix"; then
4550 # Extract the first word of "${ncn_target_tool_prefix}windres
", so it can be a program name with args.
4551 set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
4552 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4553 echo "configure
:4554: checking
for $ac_word" >&5
4554 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4555 echo $ac_n "(cached
) $ac_c" 1>&6
4557 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4558 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="$CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4560 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4562 for ac_dir in $ac_dummy; do
4563 test -z "$ac_dir" && ac_dir=.
4564 if test -f $ac_dir/$ac_word; then
4565 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres
"
4572 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4573 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4574 echo "$ac_t""$CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4576 echo "$ac_t""no
" 1>&6
4580 if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then
4581 if test $build = $target ; then
4582 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET=$CONFIGURED_WINDRES_FOR_TARGET
4583 # Extract the first word of "windres
", so it can be a program name with args.
4584 set dummy windres; ac_word=$2
4585 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4586 echo "configure
:4587: checking
for $ac_word" >&5
4587 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4588 echo $ac_n "(cached
) $ac_c" 1>&6
4590 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4591 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4595 for ac_dir in $ac_dummy; do
4596 test -z "$ac_dir" && ac_dir=.
4597 if test -f $ac_dir/$ac_word; then
4598 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres
"
4603 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres
"
4606 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"
4607 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4608 echo "$ac_t""$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4610 echo "$ac_t""no
" 1>&6
4613 CONFIGURED_WINDRES_FOR_TARGET=$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET
4615 CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres
"
4618 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4632 # Fix up target tools.
4633 if test "x
${build}" = "x
${host}" ; then
4634 # In this case, the newly built tools can and should be used,
4635 # so we override the results of the autoconf tests.
4636 # This should really only happen when the tools are actually being built,
4637 # but that's a further refinement. The new build scheme, where
4638 # tools are built into a structure paralleling where they're installed,
4639 # should also eliminate all of this cleanly.
4640 AR_FOR_TARGET="\$
(USUAL_AR_FOR_TARGET
)"
4641 AS_FOR_TARGET="\$
(USUAL_AS_FOR_TARGET
)"
4642 DLLTOOL_FOR_TARGET="\$
(USUAL_DLLTOOL_FOR_TARGET
)"
4643 LD_FOR_TARGET="\$
(USUAL_LD_FOR_TARGET
)"
4644 NM_FOR_TARGET="\$
(USUAL_NM_FOR_TARGET
)"
4645 RANLIB_FOR_TARGET="\$
(USUAL_RANLIB_FOR_TARGET
)"
4646 WINDRES_FOR_TARGET="\$
(USUAL_WINDRES_FOR_TARGET
)"
4648 # Just use the ones we found.
4649 AR_FOR_TARGET="\$
(CONFIGURED_AR_FOR_TARGET
)"
4650 AS_FOR_TARGET="\$
(CONFIGURED_AS_FOR_TARGET
)"
4651 DLLTOOL_FOR_TARGET="\$
(CONFIGURED_DLLTOOL_FOR_TARGET
)"
4652 LD_FOR_TARGET="\$
(CONFIGURED_LD_FOR_TARGET
)"
4653 NM_FOR_TARGET="\$
(CONFIGURED_NM_FOR_TARGET
)"
4654 RANLIB_FOR_TARGET="\$
(CONFIGURED_RANLIB_FOR_TARGET
)"
4655 WINDRES_FOR_TARGET="\$
(CONFIGURED_WINDRES_FOR_TARGET
)"
4665 # Certain tools may need extra flags.
4666 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
4667 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
4668 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
4670 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
4671 echo "configure
:4672: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
4672 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4673 if test "${enable_maintainer_mode+set}" = set; then
4674 enableval="$enable_maintainer_mode"
4675 USE_MAINTAINER_MODE=$enableval
4677 USE_MAINTAINER_MODE=no
4680 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4683 if test "$USE_MAINTAINER_MODE" = yes; then
4684 MAINTAINER_MODE_TRUE=
4685 MAINTAINER_MODE_FALSE='#'
4687 MAINTAINER_MODE_TRUE='#'
4688 MAINTAINER_MODE_FALSE=
4690 MAINT=$MAINTAINER_MODE_TRUE
4692 # ---------------------
4693 # GCC bootstrap support
4694 # ---------------------
4696 # Stage specific cflags for build.
4701 yes) stage1_cflags="-g -Wa,-J" ;;
4702 *) stage1_cflags="-g -J" ;;
4705 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
4706 # sources; use -no-cpp-precomp to get to GNU cpp.
4707 # Apple's GCC has bugs in designated initializer handling, so disable
4709 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
4714 # It makes debugging easier if we create as symlinks the stage directories
4715 # gcc for stageN-gcc and stage-prev for stage(N-1). In case this is not
4716 # possible, however, we can resort to mv.
4717 echo $ac_n "checking
if symbolic links between directories work
""...
$ac_c" 1>&6
4718 echo "configure
:4719: checking
if symbolic links between directories work
" >&5
4719 if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
4720 echo $ac_n "(cached
) $ac_c" 1>&6
4722 if test "${LN_S}" = "ln -s" \
4723 && mkdir confdir.s1 \
4724 && ln -s confdir.s1 confdir.s2 \
4725 && echo timestamp1 > confdir.s1/conftest.1 \
4726 && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \
4727 && echo timestamp2 > confdir.s2/conftest.2 \
4728 && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \
4729 && rm -f confdir.s2; then
4730 gcc_cv_prog_ln_s_dir=yes
4732 gcc_cv_prog_ln_s_dir=yes
4734 rm -rf confdir.s1 confdir.s2
4737 echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6
4739 case ${gcc_cv_prog_ln_s_dir} in
4741 CREATE_LINK_TO_DIR='ln -s $$1 $$2'
4742 UNDO_LINK_TO_DIR='rm -f $$1' ;;
4744 CREATE_LINK_TO_DIR='mv $$1 $$2'
4745 UNDO_LINK_TO_DIR='mv $$1 $$2' ;;
4750 # Enable -Werror in bootstrap stage2 and later.
4751 # Change the default to "no
" on release branches.
4752 # Check whether --enable-werror or --disable-werror was given.
4753 if test "${enable_werror+set}" = set; then
4754 enableval="$enable_werror"
4760 case ${enable_werror} in
4761 yes) stage2_werror_flag="--enable-werror-always" ;;
4762 *) stage2_werror_flag="" ;;
4767 cat > confcache <<\EOF
4768 # This file is a shell script that caches the results of configure
4769 # tests run on this system so they can be shared between configure
4770 # scripts and configure runs. It is not useful on other systems.
4771 # If it contains results you don't want to keep, you may remove or edit it.
4773 # By default, configure uses ./config.cache as the cache file,
4774 # creating it if it does not exist already. You can give configure
4775 # the --cache-file=FILE option to use a different cache file; that is
4776 # what configure does when it calls configure scripts in
4777 # subdirectories, so they share the cache.
4778 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4779 # config.status only pays attention to the cache file if you give it the
4780 # --recheck option to rerun configure.
4783 # The following way of writing the cache mishandles newlines in values,
4784 # but we know of no workaround that is simple, portable, and efficient.
4785 # So, don't put newlines in cache variables' values.
4786 # Ultrix sh set writes to stderr and can't be redirected directly,
4787 # and sets the high bit in the cache file unless we assign to the vars.
4789 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4791 # `set' does not quote correctly, so add quotes (double-quote substitution
4792 # turns \\\\ into \\, and sed turns \\ into \).
4794 -e "s
/'/'\\\\''/g
" \
4795 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
4798 # `set' quotes correctly as required by POSIX, so do not add quotes.
4799 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4802 if cmp -s $cache_file confcache; then
4805 if test -w $cache_file; then
4806 echo "updating cache
$cache_file"
4807 cat confcache > $cache_file
4809 echo "not updating unwritable cache
$cache_file"
4814 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4816 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
4817 # Let make expand exec_prefix.
4818 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
4820 # Any assignment to VPATH causes Sun make to only execute
4821 # the first set of double-colon rules, so remove it if not needed.
4822 # If there is a colon in the path, we need to keep it.
4823 if test "x
$srcdir" = x.; then
4824 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4827 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4829 # Transform confdefs.h into DEFS.
4830 # Protect against shell expansion while executing Makefile rules.
4831 # Protect against Makefile macro expansion.
4832 cat > conftest.defs <<\EOF
4833 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4834 s%[ `~#$^&*(){}\\|;'"<>?
]%\\&%g
4839 DEFS
=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4843 # Without the "./", some shells look in PATH for config.status.
4844 : ${CONFIG_STATUS=./config.status}
4846 echo creating
$CONFIG_STATUS
4847 rm -f $CONFIG_STATUS
4848 cat > $CONFIG_STATUS <<EOF
4850 # Generated automatically by configure.
4851 # Run this file to recreate the current configuration.
4852 # This directory was configured as follows,
4853 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4855 # $0 $ac_configure_args
4857 # Compiler output produced by configure, useful for debugging
4858 # configure, is in ./config.log if it exists.
4860 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4863 case "\$ac_option" in
4864 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4865 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4866 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4867 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4868 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4870 -help | --help | --hel | --he | --h)
4871 echo "\$ac_cs_usage"; exit 0 ;;
4872 *) echo "\$ac_cs_usage"; exit 1 ;;
4876 ac_given_srcdir=$srcdir
4877 ac_given_INSTALL="$INSTALL"
4879 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4881 cat >> $CONFIG_STATUS <<EOF
4883 # Protect against being on the right side of a sed subst in config.status.
4884 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4885 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4889 s%@CFLAGS@%$CFLAGS%g
4890 s%@CPPFLAGS@%$CPPFLAGS%g
4891 s%@CXXFLAGS@%$CXXFLAGS%g
4892 s%@FFLAGS@%$FFLAGS%g
4894 s%@LDFLAGS@%$LDFLAGS%g
4896 s%@exec_prefix@%$exec_prefix%g
4897 s%@prefix@%$prefix%g
4898 s%@program_transform_name@%$program_transform_name%g
4899 s%@bindir@%$bindir%g
4900 s%@sbindir@%$sbindir%g
4901 s%@libexecdir@%$libexecdir%g
4902 s%@datadir@%$datadir%g
4903 s%@sysconfdir@%$sysconfdir%g
4904 s%@sharedstatedir@%$sharedstatedir%g
4905 s%@localstatedir@%$localstatedir%g
4906 s%@libdir@%$libdir%g
4907 s%@includedir@%$includedir%g
4908 s%@oldincludedir@%$oldincludedir%g
4909 s%@infodir@%$infodir%g
4910 s%@mandir@%$mandir%g
4912 s%@host_alias@%$host_alias%g
4913 s%@host_cpu@%$host_cpu%g
4914 s%@host_vendor@%$host_vendor%g
4915 s%@host_os@%$host_os%g
4916 s%@target@%$target%g
4917 s%@target_alias@%$target_alias%g
4918 s%@target_cpu@%$target_cpu%g
4919 s%@target_vendor@%$target_vendor%g
4920 s%@target_os@%$target_os%g
4922 s%@build_alias@%$build_alias%g
4923 s%@build_cpu@%$build_cpu%g
4924 s%@build_vendor@%$build_vendor%g
4925 s%@build_os@%$build_os%g
4926 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4927 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4928 s%@INSTALL_DATA@%$INSTALL_DATA%g
4930 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
4931 s%@build_subdir@%$build_subdir%g
4932 s%@host_subdir@%$host_subdir%g
4933 s%@target_subdir@%$target_subdir%g
4935 s%@GNATBIND@%$GNATBIND%g
4936 s%@do_compare@%$do_compare%g
4937 s%@gmplibs@%$gmplibs%g
4938 s%@gmpinc@%$gmpinc%g
4939 s%@stage1_languages@%$stage1_languages%g
4940 s%@DEFAULT_YACC@%$DEFAULT_YACC%g
4941 s%@DEFAULT_M4@%$DEFAULT_M4%g
4942 s%@DEFAULT_LEX@%$DEFAULT_LEX%g
4943 /@serialization_dependencies@/r $serialization_dependencies
4944 s%@serialization_dependencies@%%g
4945 /@host_makefile_frag@/r $host_makefile_frag
4946 s%@host_makefile_frag@%%g
4947 /@target_makefile_frag@/r $target_makefile_frag
4948 s%@target_makefile_frag@%%g
4949 /@alphaieee_frag@/r $alphaieee_frag
4950 s%@alphaieee_frag@%%g
4951 /@ospace_frag@/r $ospace_frag
4953 s%@SET_LIB_PATH@%$SET_LIB_PATH%g
4954 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
4955 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
4956 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
4957 s%@gcc_version_trigger@%$gcc_version_trigger%g
4958 s%@gcc_version@%$gcc_version%g
4959 s%@tooldir@%$tooldir%g
4960 s%@build_tooldir@%$build_tooldir%g
4961 s%@GDB_TK@%$GDB_TK%g
4962 s%@gxx_include_dir@%$gxx_include_dir%g
4963 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
4964 s%@build_configargs@%$build_configargs%g
4965 s%@configure_build_modules@%$configure_build_modules%g
4966 s%@all_build_modules@%$all_build_modules%g
4967 s%@host_configargs@%$host_configargs%g
4968 s%@configdirs@%$configdirs%g
4969 s%@target_configargs@%$target_configargs%g
4970 s%@target_configdirs@%$target_configdirs%g
4972 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4974 s%@MAKEINFO@%$MAKEINFO%g
4976 s%@config_shell@%$config_shell%g
4978 s%@ncn_cv_AR@%$ncn_cv_AR%g
4980 s%@ncn_cv_AS@%$ncn_cv_AS%g
4981 s%@DLLTOOL@%$DLLTOOL%g
4982 s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g
4984 s%@ncn_cv_LD@%$ncn_cv_LD%g
4986 s%@ncn_cv_NM@%$ncn_cv_NM%g
4987 s%@RANLIB@%$RANLIB%g
4988 s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g
4989 s%@WINDRES@%$WINDRES%g
4990 s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g
4991 s%@OBJCOPY@%$OBJCOPY%g
4992 s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g
4993 s%@OBJDUMP@%$OBJDUMP%g
4994 s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g
4996 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
4997 s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
4998 s%@ncn_cv_CONFIGURED_AR_FOR_TARGET@%$ncn_cv_CONFIGURED_AR_FOR_TARGET%g
4999 s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
5000 s%@ncn_cv_CONFIGURED_AS_FOR_TARGET@%$ncn_cv_CONFIGURED_AS_FOR_TARGET%g
5001 s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
5002 s%@ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET@%$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET%g
5003 s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
5004 s%@ncn_cv_CONFIGURED_LD_FOR_TARGET@%$ncn_cv_CONFIGURED_LD_FOR_TARGET%g
5005 s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
5006 s%@ncn_cv_CONFIGURED_NM_FOR_TARGET@%$ncn_cv_CONFIGURED_NM_FOR_TARGET%g
5007 s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
5008 s%@ncn_cv_CONFIGURED_RANLIB_FOR_TARGET@%$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET%g
5009 s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
5010 s%@ncn_cv_CONFIGURED_WINDRES_FOR_TARGET@%$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET%g
5011 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
5012 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
5013 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
5014 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
5015 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
5016 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
5017 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
5018 s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
5019 s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
5020 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
5021 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
5022 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
5023 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
5024 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
5025 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
5026 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
5027 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5028 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5030 s%@stage1_cflags@%$stage1_cflags%g
5031 s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g
5032 s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g
5033 s%@stage2_werror_flag@%$stage2_werror_flag%g
5038 cat >> $CONFIG_STATUS <<\EOF
5040 # Split the substitutions into bite-sized pieces for seds with
5041 # small command number limits, like on Digital OSF/1 and HP-UX.
5042 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5043 ac_file
=1 # Number of current file.
5044 ac_beg
=1 # First line for current file.
5045 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5048 while $ac_more_lines; do
5049 if test $ac_beg -gt 1; then
5050 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5052 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5054 if test ! -s conftest.s
$ac_file; then
5056 rm -f conftest.s
$ac_file
5058 if test -z "$ac_sed_cmds"; then
5059 ac_sed_cmds
="sed -f conftest.s$ac_file"
5061 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5063 ac_file
=`expr $ac_file + 1`
5065 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5068 if test -z "$ac_sed_cmds"; then
5073 cat >> $CONFIG_STATUS <<EOF
5075 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5077 cat >> $CONFIG_STATUS <<\EOF
5078 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5079 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5081 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5082 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5083 *) ac_file_in
="${ac_file}.in" ;;
5086 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5088 # Remove last slash and all that follows it. Not all systems have dirname.
5089 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5090 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5091 # The file is in a subdirectory.
5092 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5093 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5094 # A "../" for each directory in $ac_dir_suffix.
5095 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5097 ac_dir_suffix
= ac_dots
=
5100 case "$ac_given_srcdir" in
5102 if test -z "$ac_dots"; then top_srcdir
=.
5103 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5104 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5106 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5107 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5110 case "$ac_given_INSTALL" in
5111 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5112 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5115 echo creating
"$ac_file"
5117 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5119 *Makefile
*) ac_comsub
="1i\\
5120 # $configure_input" ;;
5124 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5126 s%@configure_input@%$configure_input%g
5127 s%@srcdir@%$srcdir%g
5128 s%@top_srcdir@%$top_srcdir%g
5129 s%@INSTALL@%$INSTALL%g
5130 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5135 cat >> $CONFIG_STATUS <<EOF
5138 cat >> $CONFIG_STATUS <<\EOF
5142 chmod +x
$CONFIG_STATUS
5143 rm -fr confdefs
* $ac_clean_files
5144 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1