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-mpfr-dir=PATH Specify source directory for MPFR library"
21 --with-mpfr=PATH Specify directory for installed MPFR library"
23 --with-gmp-dir=PATH Specify source directory for GMP library"
25 --with-gmp=PATH Specify directory for installed GMP library"
27 --enable-bootstrap[=lean] Enable bootstrapping [no]"
29 --enable-serial-[{host,target,build}-]configure
30 Force sequential configuration of
31 sub-packages for the host, target or build
32 machine, or all sub-packages"
34 --enable-maintainer-mode enable make rules and dependencies not useful
35 (and sometimes confusing) to the casual installer"
37 --enable-werror enable -Werror in bootstrap stage2 and later"
39 # Initialize some variables set by options.
40 # The variables have the same names as the options, with
41 # dashes changed to underlines.
43 cache_file
=.
/config.cache
52 program_transform_name
=s
,x
,x
,
60 bindir
='${exec_prefix}/bin'
61 sbindir
='${exec_prefix}/sbin'
62 libexecdir
='${exec_prefix}/libexec'
63 datadir
='${prefix}/share'
64 sysconfdir
='${prefix}/etc'
65 sharedstatedir
='${prefix}/com'
66 localstatedir
='${prefix}/var'
67 libdir
='${exec_prefix}/lib'
68 includedir
='${prefix}/include'
69 oldincludedir
='/usr/include'
70 infodir
='${prefix}/info'
71 mandir
='${prefix}/man'
73 # Initialize some other variables.
76 SHELL
=${CONFIG_SHELL-/bin/sh}
77 # Maximum number of lines to put in a shell here document.
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
92 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 # Accept the important Cygnus configure options, so we can diagnose typos.
100 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
102 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
103 bindir
="$ac_optarg" ;;
105 -build |
--build |
--buil |
--bui |
--bu)
107 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
108 build
="$ac_optarg" ;;
110 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
111 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
112 ac_prev
=cache_file
;;
113 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
114 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
115 cache_file
="$ac_optarg" ;;
117 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
119 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
121 datadir
="$ac_optarg" ;;
123 -disable-* |
--disable-*)
124 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* |
--enable-*)
133 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
146 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
147 |
--exec |
--exe |
--ex)
148 ac_prev
=exec_prefix
;;
149 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
150 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
151 |
--exec=* |
--exe=* |
--ex=*)
152 exec_prefix
="$ac_optarg" ;;
154 -gas |
--gas |
--ga |
--g)
155 # Obsolete; use --with-gas.
158 -help |
--help |
--hel |
--he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --version print the version of autoconf that created configure
170 Directory and file names:
171 --prefix=PREFIX install architecture-independent files in PREFIX
173 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
175 --bindir=DIR user executables in DIR [EPREFIX/bin]
176 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
177 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
178 --datadir=DIR read-only architecture-independent data in DIR
180 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
181 --sharedstatedir=DIR modifiable architecture-independent data in DIR
183 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
184 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
185 --includedir=DIR C header files in DIR [PREFIX/include]
186 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
187 --infodir=DIR info documentation in DIR [PREFIX/info]
188 --mandir=DIR man documentation in DIR [PREFIX/man]
189 --srcdir=DIR find the sources in DIR [configure dir or ..]
190 --program-prefix=PREFIX prepend PREFIX to installed program names
191 --program-suffix=SUFFIX append SUFFIX to installed program names
192 --program-transform-name=PROGRAM
193 run sed PROGRAM on installed program names
197 --build=BUILD configure for building on BUILD [BUILD=HOST]
198 --host=HOST configure for HOST [guessed]
199 --target=TARGET configure for TARGET [TARGET=HOST]
200 Features and packages:
201 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
202 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
203 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
204 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
205 --x-includes=DIR X include files are in DIR
206 --x-libraries=DIR X library files are in DIR
208 if test -n "$ac_help"; then
209 echo "--enable and --with options recognized:$ac_help"
213 -host |
--host |
--hos |
--ho)
215 -host=* |
--host=* |
--hos=* |
--ho=*)
218 -includedir |
--includedir |
--includedi |
--included |
--include \
219 |
--includ |
--inclu |
--incl |
--inc)
220 ac_prev
=includedir
;;
221 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
222 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
223 includedir
="$ac_optarg" ;;
225 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
227 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
228 infodir
="$ac_optarg" ;;
230 -libdir |
--libdir |
--libdi |
--libd)
232 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
233 libdir
="$ac_optarg" ;;
235 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
236 |
--libexe |
--libex |
--libe)
237 ac_prev
=libexecdir
;;
238 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
239 |
--libexe=* |
--libex=* |
--libe=*)
240 libexecdir
="$ac_optarg" ;;
242 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
243 |
--localstate |
--localstat |
--localsta |
--localst \
244 |
--locals |
--local |
--loca |
--loc |
--lo)
245 ac_prev
=localstatedir
;;
246 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
247 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
248 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
249 localstatedir
="$ac_optarg" ;;
251 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
253 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
254 mandir
="$ac_optarg" ;;
257 # Obsolete; use --without-fp.
260 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
264 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
265 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
268 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
269 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
270 |
--oldin |
--oldi |
--old |
--ol |
--o)
271 ac_prev
=oldincludedir
;;
272 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
273 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
274 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
275 oldincludedir
="$ac_optarg" ;;
277 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
279 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
280 prefix
="$ac_optarg" ;;
282 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
283 |
--program-pre |
--program-pr |
--program-p)
284 ac_prev
=program_prefix
;;
285 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
286 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
287 program_prefix
="$ac_optarg" ;;
289 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
290 |
--program-suf |
--program-su |
--program-s)
291 ac_prev
=program_suffix
;;
292 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
293 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
294 program_suffix
="$ac_optarg" ;;
296 -program-transform-name |
--program-transform-name \
297 |
--program-transform-nam |
--program-transform-na \
298 |
--program-transform-n |
--program-transform- \
299 |
--program-transform |
--program-transfor \
300 |
--program-transfo |
--program-transf \
301 |
--program-trans |
--program-tran \
302 |
--progr-tra |
--program-tr |
--program-t)
303 ac_prev
=program_transform_name
;;
304 -program-transform-name=* |
--program-transform-name=* \
305 |
--program-transform-nam=* |
--program-transform-na=* \
306 |
--program-transform-n=* |
--program-transform-=* \
307 |
--program-transform=* |
--program-transfor=* \
308 |
--program-transfo=* |
--program-transf=* \
309 |
--program-trans=* |
--program-tran=* \
310 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
311 program_transform_name
="$ac_optarg" ;;
313 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
314 |
-silent |
--silent |
--silen |
--sile |
--sil)
317 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
319 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
321 sbindir
="$ac_optarg" ;;
323 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
324 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
325 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
327 ac_prev
=sharedstatedir
;;
328 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
329 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
330 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
332 sharedstatedir
="$ac_optarg" ;;
334 -site |
--site |
--sit)
336 -site=* |
--site=* |
--sit=*)
339 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
341 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
342 srcdir
="$ac_optarg" ;;
344 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
345 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
346 ac_prev
=sysconfdir
;;
347 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
348 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
349 sysconfdir
="$ac_optarg" ;;
351 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
353 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
354 target
="$ac_optarg" ;;
356 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
359 -version |
--version |
--versio |
--versi |
--vers)
360 echo "configure generated by autoconf version 2.13"
364 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package
=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}='$ac_optarg'" ;;
376 -without-* |
--without-*)
377 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package
=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
386 # Obsolete; use --with-x.
389 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
390 |
--x-incl |
--x-inc |
--x-in |
--x-i)
391 ac_prev
=x_includes
;;
392 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
393 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
394 x_includes
="$ac_optarg" ;;
396 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
397 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
398 ac_prev
=x_libraries
;;
399 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
400 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
401 x_libraries
="$ac_optarg" ;;
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 if test "x$nonopt" != xNONE
; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425 # File descriptor usage:
428 # 2 errors and warnings
429 # 3 some systems may open it to /dev/tty
430 # 4 used on the Kubota Titan
431 # 6 checking for... messages and results
432 # 5 compiler messages saved in config.log
433 if test "$silent" = yes; then
441 This file contains any messages produced by compilers while
442 running configure, to aid debugging if configure makes a mistake.
445 # Strip out --no-create and --no-recursion so they do not pile up.
446 # Also quote any args containing shell metacharacters.
451 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
452 |
--no-cr |
--no-c) ;;
453 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
454 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
455 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
462 # Only set these to C if already set. These must not be set unconditionally
463 # because not all systems understand e.g. LANG=C (notably SCO).
464 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465 # Non-C LC_CTYPE values break the ctype check.
466 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
467 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
468 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
469 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
472 rm -rf conftest
* confdefs.h
473 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
476 # A filename unique to this package, relative to the directory that
477 # configure is in, which we can look for to find out if srcdir is correct.
478 ac_unique_file
=move-if-change
480 # Find the source files, if location was not specified.
481 if test -z "$srcdir"; then
482 ac_srcdir_defaulted
=yes
483 # Try the directory containing this script, then its parent.
485 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
488 if test ! -r $srcdir/$ac_unique_file; then
492 ac_srcdir_defaulted
=no
494 if test ! -r $srcdir/$ac_unique_file; then
495 if test "$ac_srcdir_defaulted" = yes; then
496 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503 # Prefer explicitly selected file to automatically selected ones.
504 if test -z "$CONFIG_SITE"; then
505 if test "x$prefix" != xNONE
; then
506 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
508 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
511 for ac_site_file
in $CONFIG_SITE; do
512 if test -r "$ac_site_file"; then
513 echo "loading site script $ac_site_file"
518 if test -r "$cache_file"; then
519 echo "loading cache $cache_file"
522 echo "creating cache $cache_file"
527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
528 ac_cpp
='$CPP $CPPFLAGS'
529 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
530 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
531 cross_compiling
=$ac_cv_prog_cc_cross
535 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
536 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
544 ac_n
= ac_c
='\c' ac_t
=
550 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
551 if test -f $ac_dir/install-sh
; then
553 ac_install_sh
="$ac_aux_dir/install-sh -c"
555 elif test -f $ac_dir/install.sh
; then
557 ac_install_sh
="$ac_aux_dir/install.sh -c"
561 if test -z "$ac_aux_dir"; then
562 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
564 ac_config_guess
=$ac_aux_dir/config.guess
565 ac_config_sub
=$ac_aux_dir/config.sub
566 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
569 # Do some error checking and defaulting for the host and target type.
571 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
574 # 1. You are not allowed to specify --host, --target, and nonopt at the
576 # 2. Host defaults to nonopt.
577 # 3. If nonopt is not specified, then host defaults to the current host,
578 # as determined by config.guess.
579 # 4. Target and build default to nonopt.
580 # 5. If nonopt is not specified, then target and build default to host.
582 # The aliases save the names the user supplied, while $host etc.
583 # will get canonicalized.
584 case $host---$target---$nonopt in
585 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
586 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
590 # Make sure we can run config.sub.
591 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
592 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
595 echo $ac_n "checking host system type""... $ac_c" 1>&6
596 echo "configure:597: checking host system type" >&5
599 case "$host_alias" in
603 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
604 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
606 *) host_alias
=$nonopt ;;
610 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
611 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
612 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
613 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
614 echo "$ac_t""$host" 1>&6
616 echo $ac_n "checking target system type""... $ac_c" 1>&6
617 echo "configure:618: checking target system type" >&5
620 case "$target_alias" in
623 NONE
) target_alias
=$host_alias ;;
624 *) target_alias
=$nonopt ;;
628 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
629 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
630 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
631 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
632 echo "$ac_t""$target" 1>&6
634 echo $ac_n "checking build system type""... $ac_c" 1>&6
635 echo "configure:636: checking build system type" >&5
638 case "$build_alias" in
641 NONE
) build_alias
=$host_alias ;;
642 *) build_alias
=$nonopt ;;
646 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
647 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
648 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
649 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
650 echo "$ac_t""$build" 1>&6
652 test "$host_alias" != "$target_alias" &&
653 test "$program_prefix$program_suffix$program_transform_name" = \
655 program_prefix
=${target_alias}-
657 if test "$program_transform_name" = s
,x
,x
,; then
658 program_transform_name
=
660 # Double any \ or $. echo might interpret backslashes.
661 cat <<\EOF_SED
> conftestsed
662 s
,\\,\\\\,g
; s
,\$
,$$
,g
664 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
667 test "$program_prefix" != NONE
&&
668 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
669 # Use a double $ so make ignores it.
670 test "$program_suffix" != NONE
&&
671 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
673 # sed with no file args requires a program.
674 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
677 # Get 'install' or 'install-sh' and its variants.
678 # Find a good install program. We prefer a C program (faster),
679 # so one script is as good as another. But avoid the broken or
680 # incompatible versions:
681 # SysV /etc/install, /usr/sbin/install
682 # SunOS /usr/etc/install
685 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
686 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
687 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
688 # ./install, which can be erroneously created by make from ./install.sh.
689 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
690 echo "configure:691: checking for a BSD compatible install" >&5
691 if test -z "$INSTALL"; then
692 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
695 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
696 for ac_dir
in $PATH; do
697 # Account for people who put trailing slashes in PATH elements.
699 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
701 # OSF1 and SCO ODT 3.0 have their own names for install.
702 # Don't use installbsd from OSF since it installs stuff as root
704 for ac_prog
in ginstall scoinst
install; do
705 if test -f $ac_dir/$ac_prog; then
706 if test $ac_prog = install &&
707 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
708 # AIX install. It has an incompatible calling convention.
711 ac_cv_path_install
="$ac_dir/$ac_prog -c"
722 if test "${ac_cv_path_install+set}" = set; then
723 INSTALL
="$ac_cv_path_install"
725 # As a last resort, use the slow shell script. We don't cache a
726 # path for INSTALL within a source directory, because that will
727 # break other packages using the cache if that directory is
728 # removed, or if the path is relative.
729 INSTALL
="$ac_install_sh"
732 echo "$ac_t""$INSTALL" 1>&6
734 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
735 # It thinks the first close brace ends the variable substitution.
736 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
738 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
740 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
742 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
743 echo "configure:744: checking whether ln works" >&5
744 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
749 if ln conftestdata_f conftestdata_t
2>/dev
/null
755 rm -f conftestdata_f conftestdata_t
758 if test $acx_cv_prog_LN = no
; then
760 echo "$ac_t""no, using $LN" 1>&6
763 echo "$ac_t""yes" 1>&6
766 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
767 echo "configure:768: checking whether ln -s works" >&5
768 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
769 echo $ac_n "(cached) $ac_c" 1>&6
772 if ln -s X conftestdata
2>/dev
/null
775 ac_cv_prog_LN_S
="ln -s"
780 LN_S
="$ac_cv_prog_LN_S"
781 if test "$ac_cv_prog_LN_S" = "ln -s"; then
782 echo "$ac_t""yes" 1>&6
784 echo "$ac_t""no" 1>&6
788 ### we might need to use some other shell than /bin/sh for running subshells
789 ### If we are on Windows, search for the shell. This will permit people
790 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
791 ### without also having to set CONFIG_SHELL. This code will work when
792 ### using bash, which sets OSTYPE.
795 if test x
${CONFIG_SHELL} = x
; then
796 if test ! -f /bin
/sh
; then
797 if test x
${SHELL} != x
&& test -f ${SHELL} ; then
798 CONFIG_SHELL
=${SHELL}
801 for prog
in sh sh.exe bash bash.exe
; do
802 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
804 test -z "$dir" && dir
=.
805 if test -f $dir/$prog; then
806 CONFIG_SHELL
=$dir/$prog
812 test -n "${CONFIG_SHELL}" && break
820 config_shell
=${CONFIG_SHELL-/bin/sh}
823 # if PWD already has a value, it is probably wrong.
824 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
826 # Export original configure arguments for use by sub-configures. These
827 # will be expanded by make, so quote '$'.
829 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
832 TOPLEVEL_CONFIGURE_ARGUMENTS
=`cat conftestsed.out`
833 rm -f conftestsed.out
836 moveifchange
=${srcdir}/move-if-change
838 # Set srcdir to "." if that's what it is.
839 # This is important for multilib support.
841 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
842 if test "${pwd}" = "${srcpwd}" ; then
849 # Define the trigger file to make sure configure will re-run whenever
850 # the gcc version number changes.
851 if test "${with_gcc_version_trigger+set}" = set ; then
852 gcc_version_trigger
="$with_gcc_version_trigger"
853 gcc_version
=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
855 # If gcc's sources are available, define the trigger file.
856 if test -f ${topsrcdir}/gcc
/version.c
; then
857 gcc_version_trigger
=${topsrcdir}/gcc
/version.c
858 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
859 case "$ac_configure_args" in
860 *--with-gcc-version-trigger=$gcc_version_trigger* )
863 # Add to all subconfigure arguments: build, host, and target.
864 ac_configure_args
="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger"
870 ### To add a new directory to the tree, first choose whether it is a target
871 ### or a host dependent tool. Then put it into the appropriate list
872 ### (library or tools, host or target), doing a dependency sort.
874 # Subdirs will be configured in the order listed in build_configdirs,
875 # configdirs, or target_configdirs; see the serialization section below.
877 # Dependency sorting is only needed when *configuration* must be done in
878 # a particular order. In all cases a dependency should be specified in
879 # the Makefile, whether or not it's implicitly specified here.
881 # Double entries in build_configdirs, configdirs, or target_configdirs may
882 # cause circular dependencies and break everything horribly.
884 # these library is used by various programs built for the build
887 build_libs
="build-libiberty"
889 # these tools are built for the build environment
890 build_tools
="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
892 # these libraries are used by various programs built for the host environment
894 host_libs
="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libbanshee libcpp"
896 # these tools are built for the host environment
897 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
898 # know that we are building the simulator.
899 # binutils, gas and ld appear in that order because it makes sense to run
900 # "make check" in that particular order.
901 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"
903 # libgcj represents the runtime libraries only used by gcj.
904 libgcj
="target-libffi \
910 # these libraries are built for the target environment, and are built after
911 # the host libraries and the host tools (which may be a cross compiler)
913 target_libraries
="target-libiberty \
916 target-libstdc++-v3 \
923 # these tools are built using the target libraries, and are intended to
924 # run only in the target environment
926 # note: any program that *uses* libraries that are in the "target_libraries"
927 # list belongs in this list. those programs are also very likely
928 # candidates for the "native_only" list which follows
930 target_tools
="target-examples target-groff target-gperf target-rda"
932 ################################################################################
934 ## All tools belong in one of the four categories, and are assigned above
935 ## We assign ${configdirs} this way to remove all embedded newlines. This
936 ## is important because configure will choke if they ever get through.
937 ## ${configdirs} is directories we build using the host tools.
938 ## ${target_configdirs} is directories we build using the target tools.
939 configdirs
=`echo ${host_libs} ${host_tools}`
940 target_configdirs
=`echo ${target_libraries} ${target_tools}`
941 build_configdirs
=`echo ${build_libs} ${build_tools}`
943 ################################################################################
945 srcname
="gnu development package"
947 # This gets set non-empty for some net releases of packages.
950 # Define is_cross_compiler to save on calls to 'test'.
952 if test x
"${host}" = x
"${target}" ; then
955 is_cross_compiler
=yes
958 # Find the build and target subdir names.
959 case ${build_alias} in
960 "") build_noncanonical
=${build} ;;
961 *) build_noncanonical
=${build_alias} ;;
964 case ${host_alias} in
965 "") host_noncanonical
=${build_noncanonical} ;;
966 *) host_noncanonical
=${host_alias} ;;
969 case ${target_alias} in
970 "") target_noncanonical
=${host_noncanonical} ;;
971 *) target_noncanonical
=${target_alias} ;;
974 # Prefix 'build-' so this never conflicts with target_subdir.
975 build_subdir
="build-${build_noncanonical}"
976 # Not really a subdirectory, but here for completeness.
979 target_subdir
=${target_noncanonical}
982 # Skipdirs are removed silently.
984 # Noconfigdirs are removed loudly.
988 # Make sure we don't let GNU ld be added if we didn't want it.
989 if test x
$with_gnu_ld = xno
; then
991 noconfigdirs
="$noconfigdirs ld"
995 # Make sure we don't let GNU as be added if we didn't want it.
996 if test x
$with_gnu_as = xno
; then
998 noconfigdirs
="$noconfigdirs gas"
1001 # some tools are so dependent upon X11 that if we're not building with X,
1002 # it's not even worth trying to configure, much less build, that tool.
1005 yes |
"") ;; # the default value for this tree is that X11 is available
1007 skipdirs
="${skipdirs} tk itcl libgui"
1008 # We won't be able to build gdbtk without X.
1011 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1014 # Some tools are only suitable for building in a "native" situation.
1015 # Remove these if host!=target.
1016 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"
1018 # Similarly, some are only suitable for cross toolchains.
1019 # Remove these if host=target.
1020 cross_only
="target-libgloss target-newlib target-opcodes"
1022 case $is_cross_compiler in
1023 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
1024 yes) skipdirs
="${skipdirs} ${native_only}" ;;
1027 # If both --with-headers and --with-libs are specified, default to
1029 if test x
"${with_headers}" != x
&& test x
"${with_headers} != xno \
1030 && test x"${with_libs}" != x && test x"${with_libs} != xno
; then
1031 if test x
"${with_newlib}" = x
; then
1036 # Recognize --with-newlib/--without-newlib.
1037 case ${with_newlib} in
1038 no
) skipdirs
="${skipdirs} target-newlib" ;;
1039 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1042 # Configure extra directories which are host specific
1046 configdirs
="$configdirs libtermcap" ;;
1049 # Remove more programs from consideration, based on the host or
1050 # target this usually means that a port of the program doesn't
1055 noconfigdirs
="$noconfigdirs byacc"
1057 i
[3456789]86-*-vsta)
1058 noconfigdirs
="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1060 i
[3456789]86-*-go32* | i
[3456789]86-*-msdosdjgpp*)
1061 noconfigdirs
="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1063 i
[3456789]86-*-mingw32*)
1064 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1065 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1067 i
[3456789]86-*-beos*)
1068 noconfigdirs
="$noconfigdirs tk itcl libgui gdb"
1071 noconfigdirs
="$noconfigdirs autoconf automake send-pr rcs guile perl"
1074 noconfigdirs
="$noconfigdirs rcs"
1077 noconfigdirs
="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1080 noconfigdirs
="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1083 noconfigdirs
="$noconfigdirs tk itcl libgui"
1087 # Check whether --with-libbanshee or --without-libbanshee was given.
1088 if test "${with_libbanshee+set}" = set; then
1089 withval
="$with_libbanshee"
1093 case ${with_libbanshee} in
1095 noconfigdirs
="$noconfigdirs libbanshee" ;;
1100 { echo "configure: error: --with-libbanshee can only be empty, "yes" or "no
" (empty defaults to "yes"." 1>&2; exit 1; }
1103 # Check whether --enable-libada or --disable-libada was given.
1104 if test "${enable_libada+set}" = set; then
1105 enableval
="$enable_libada"
1106 ENABLE_LIBADA
=$enableval
1111 if test "${ENABLE_LIBADA}" != "yes" ; then
1112 noconfigdirs
="$noconfigdirs target-libada"
1115 # Save it here so that, even in case of --enable-libgcj, if the Java
1116 # front-end isn't enabled, we still get libgcj disabled.
1117 libgcj_saved
=$libgcj
1118 case $enable_libgcj in
1120 # If we reset it here, it won't get added to noconfigdirs in the
1121 # target-specific build rules, so it will be forcibly enabled
1122 # (unless the Java language itself isn't enabled).
1126 # Make sure we get it printed in the list of not supported target libs.
1127 noconfigdirs
="$noconfigdirs ${libgcj}"
1132 # Allow --disable-libmudflap to exclude target-libmudflap
1133 case $enable_libmudflap in
1137 noconfigdirs
="$noconfigdirs target-libmudflap"
1141 *-*-linux*-gnu |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1142 # Enable libmudflap by default in GNU and friends.
1145 # Enable libmudflap by default in FreeBSD.
1148 # Disable it by default everywhere else.
1149 noconfigdirs
="$noconfigdirs target-libmudflap"
1157 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1160 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1161 noconfigdirs
="$noconfigdirs target-libobjc"
1164 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1165 noconfigdirs
="$noconfigdirs target-libobjc ${libgcj}"
1167 *-*-freebsd[12] |
*-*-freebsd[12].
* |
*-*-freebsd*aout
*)
1168 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1171 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1172 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
1173 && test -f /usr
/local
/include
/gmp.h
; then
1177 # Skip some stuff that's unsupported on some FreeBSD configurations.
1182 noconfigdirs
="$noconfigdirs ${libgcj}"
1187 # Remove unsupported stuff on all kaOS configurations.
1188 skipdirs
="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1189 skipdirs
="$skipdirs target-libobjc target-examples target-groff target-gperf"
1190 skipdirs
="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1191 noconfigdirs
="$noconfigdirs target-libgloss"
1194 # Skip some stuff on all NetBSD configurations.
1195 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss"
1197 # Skip some stuff that's unsupported on some NetBSD configurations.
1199 i
*86-*-netbsdelf*) ;;
1200 arm
*-*-netbsdelf*) ;;
1202 noconfigdirs
="$noconfigdirs ${libgcj}"
1207 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}"
1210 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1213 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1216 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}"
1219 # ld works, but does not support shared libraries.
1220 # newlib is not 64 bit ready. I'm not sure about fileutils.
1221 # gas doesn't generate exception information.
1222 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1225 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1228 # newlib is not 64 bit ready
1229 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1232 # newlib is not 64 bit ready
1233 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1236 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1239 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1241 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
1242 noconfigdirs
="$noconfigdirs ${libgcj}"
1243 noconfigdirs
="$noconfigdirs target-examples"
1244 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
1245 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
1246 noconfigdirs
="$noconfigdirs expect dejagnu"
1247 # the C++ libraries don't build on top of CE's C libraries
1248 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1249 noconfigdirs
="$noconfigdirs target-newlib"
1251 *-*-cygwin*) ;; # keep gdb and readline
1252 *) noconfigdirs
="$noconfigdirs gdb readline"
1257 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1259 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
1260 noconfigdirs
="$noconfigdirs ${libgcj}"
1262 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf* | arm
*-*-eabi* )
1263 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1266 noconfigdirs
="$noconfigdirs ${libgcj} target-libiberty"
1269 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1272 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1275 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1278 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1281 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1284 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1287 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1290 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1292 c4x-
*-* | tic4x-
*-*)
1293 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1295 c54x
*-*-* | tic54x-
*-*)
1296 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1299 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1302 noconfigdirs
="$noconfigdirs target-libgloss target-libstdc++-v3 target-mudflap ${libgcj}"
1305 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1308 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1311 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1314 noconfigdirs
="$noconfigdirs ${libgcj}"
1317 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1320 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1322 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
1323 # In this case, it's because the hppa64-linux target is for
1324 # the kernel only at this point and has no libc, and thus no
1325 # headers, crt*.o, etc., all of which are needed by these.
1326 noconfigdirs
="$noconfigdirs target-zlib"
1329 parisc
*-*-linux* | hppa
*-*-linux* | \
1331 hppa
*-*-openbsd* | \
1333 noconfigdirs
="$noconfigdirs ${libgcj}"
1334 # Do configure ld/binutils/gas for this case.
1337 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1338 # build on HP-UX 10.20.
1339 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
1342 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1345 # No gdb support yet.
1346 noconfigdirs
="$noconfigdirs readline mmalloc libgui itcl gdb"
1349 # No gdb or ld support yet.
1350 noconfigdirs
="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1352 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
1353 noconfigdirs
="$noconfigdirs ${libgcj}"
1355 i
[3456789]86-*-linux*)
1356 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1357 # not build java stuff by default.
1360 noconfigdirs
="$noconfigdirs ${libgcj}";;
1363 # This section makes it possible to build newlib natively on linux.
1364 # If we are using a cross compiler then don't configure newlib.
1365 if test x
${is_cross_compiler} != xno
; then
1366 noconfigdirs
="$noconfigdirs target-newlib"
1368 noconfigdirs
="$noconfigdirs target-libgloss"
1369 # If we are not using a cross compiler, do configure newlib.
1370 # Note however, that newlib will only be configured in this situation
1371 # if the --with-newlib option has been given, because otherwise
1372 # 'target-newlib' will appear in skipdirs.
1374 i
[3456789]86-*-mingw32*)
1375 target_configdirs
="$target_configdirs target-mingw"
1376 noconfigdirs
="$noconfigdirs expect target-libgloss ${libgcj}"
1378 # Can't build gdb for mingw32 if not native.
1380 i
[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1381 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1386 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
1387 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1388 # always build newlib if winsup directory is present.
1389 if test -d "$srcdir/winsup"
1391 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1393 echo "Warning: winsup is missing so newlib can't be built."
1396 # Can't build gdb for Cygwin if not native.
1398 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1399 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1404 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1406 i
[3456789]86-*-sco3.2v5
*)
1407 # The linker does not yet know about weak symbols in COFF,
1408 # and is not configured to handle mixed ELF and COFF.
1409 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1411 i
[3456789]86-*-sco*)
1412 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1414 i
[3456789]86-*-solaris2*)
1415 noconfigdirs
="$noconfigdirs target-libgloss"
1417 i
[3456789]86-*-sysv4*)
1418 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1420 i
[3456789]86-*-beos*)
1421 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1424 noconfigdirs
="$noconfigdirs ${libgcj}"
1426 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
1427 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1430 noconfigdirs
="$noconfigdirs ${libgcj}"
1433 noconfigdirs
="$noconfigdirs ${libgcj}"
1436 # The EPOC C++ environment does not support exceptions or rtti,
1437 # and so building libstdc++-v3 tends not to always work.
1438 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1441 noconfigdirs
="$noconfigdirs ${libgcj} gdb libgloss"
1444 noconfigdirs
="$noconfigdirs ${libgcj}"
1447 noconfigdirs
="$noconfigdirs ${libgcj}"
1450 # copied from rs6000-*-* entry
1451 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1453 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
1454 target_configdirs
="$target_configdirs target-winsup"
1455 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1456 # always build newlib.
1457 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1459 # This is temporary until we can link against shared libraries
1460 powerpcle-
*-solaris*)
1461 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1464 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1467 noconfigdirs
="$noconfigdirs ${libgcj}"
1470 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
1473 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1476 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1479 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1482 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1485 # Linking libjava exceeds command-line length limits on at least
1486 # IRIX 6.2, but not on IRIX 6.5.
1487 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1488 # <oldham@codesourcery.com>
1489 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1492 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1495 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1498 noconfigdirs
="$noconfigdirs gprof ${libgcj}" # same as generic mips
1501 noconfigdirs
="$noconfigdirs target-newlib ${libgcj}"
1504 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1507 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1510 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1514 i
[3456789]86-*-vsta) ;; # don't add gprof back in
1515 i
[3456789]86-*-go32*) ;; # don't add gprof back in
1516 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1517 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1519 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1522 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1525 noconfigdirs
="$noconfigdirs ${libgcj}"
1528 noconfigdirs
="$noconfigdirs ${libgcj}"
1531 noconfigdirs
="$noconfigdirs ${libgcj}"
1534 noconfigdirs
="$noconfigdirs ${libgcj}"
1535 if test x
${is_cross_compiler} != xno
; then
1536 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1541 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
1544 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1547 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1550 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1553 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1556 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1559 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1562 noconfigdirs
="$noconfigdirs ${libgcj}"
1565 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1567 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1568 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1571 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1574 noconfigdirs
="$noconfigdirs ${libgcj}"
1578 # If we aren't building newlib, then don't build libgloss, since libgloss
1579 # depends upon some newlib header files.
1580 case "${noconfigdirs}" in
1581 *target-libgloss
*) ;;
1582 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
1585 # Work in distributions that contain no compiler tools, like Autoconf.
1587 host_makefile_frag
=/dev
/null
1588 if test -d ${srcdir}/config
; then
1591 # Avoid "too much defining" errors from HPUX compiler.
1592 tentative_cc
="cc -Wp,-H256000"
1593 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1594 # If it's HP/UX ar, this should be harmless.
1598 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1601 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1602 # chokes on bfd, the compiler won't let you assign integers to enums, and
1603 # other problems. Defining CC to gcc is a questionable way to say "don't use
1604 # the apollo compiler" (the preferred version of GCC could be called cc,
1605 # or whatever), but I'm not sure leaving CC as cc is any better...
1606 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1607 # Used to have BISON=yacc.
1611 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1614 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1615 tentative_cc
="cc -Xa"
1616 host_makefile_frag
="config/mh-cxux"
1618 m88k-motorola-sysv
*)
1621 tentative_cc
="cc -Wf,-XNg1000"
1622 host_makefile_frag
="config/mh-decstation"
1625 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1626 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
1627 host_makefile_frag
="config/mh-necv4"
1630 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1631 # environment. Also bump switch table size so that cp-parse will
1632 # compile. Bump string length limit so linker builds.
1633 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1636 host_makefile_frag
="config/mh-sysv4"
1639 # This is for a MIPS running RISC/os 4.52C.
1641 # This is needed for GDB, but needs to be in the top-level make because
1642 # if a library is compiled with the bsd headers and gets linked with the
1643 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1644 # a different size).
1645 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1646 # known except to select the sysv environment. Could we use /proc instead?
1647 # These "sysv environments" and "bsd environments" often end up being a pain.
1649 # This is not part of CFLAGS because perhaps not all C compilers have this
1651 tentative_cc
="cc -systype sysv"
1656 i
[3456789]86-*-sysv5*)
1657 host_makefile_frag
="config/mh-sysv5"
1659 i
[3456789]86-*-dgux*)
1660 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1661 host_makefile_frag
="config/mh-dgux386"
1663 i
[3456789]86-ncr-sysv4.3
*)
1664 # The MetaWare compiler will generate a copyright message unless you
1665 # turn it off by adding the -Hnocopyr flag.
1666 tentative_cc
="cc -Hnocopyr"
1668 i
[3456789]86-ncr-sysv4*)
1669 # for an NCR 3000 (i486/SVR4) system.
1670 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1671 # This compiler not only emits obnoxious copyright messages every time
1672 # you run it, but it chokes and dies on a whole bunch of GNU source
1673 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1674 tentative_cc
="/usr/ccs/ATT/cc"
1675 host_makefile_frag
="config/mh-ncr3000"
1677 i
[3456789]86-*-sco3.2v5
*)
1679 i
[3456789]86-*-sco*)
1680 # The native C compiler botches some simple uses of const. Unfortunately,
1681 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1682 tentative_cc
="cc -Dconst="
1683 host_makefile_frag
="config/mh-sco"
1685 i
[3456789]86-*-udk*)
1686 host_makefile_frag
="config/mh-sysv5"
1688 i
[3456789]86-*-solaris2*)
1689 host_makefile_frag
="config/mh-sysv4"
1691 i
[3456789]86-*-msdosdjgpp*)
1692 host_makefile_frag
="config/mh-djgpp"
1695 host_makefile_frag
="config/mh-cygwin"
1698 host_makefile_frag
="config/mh-mingw32"
1701 host_makefile_frag
="config/mh-interix"
1704 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1708 host_makefile_frag
="config/mh-solaris"
1711 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1712 # without overflowing the jump tables (-J says to use a 32 bit table)
1713 tentative_cc
="cc -J"
1716 tentative_cc
="cc -Wp,-H256000"
1719 tentative_cc
="cc -Wp,-H256000"
1722 # /bin/cc is less than useful for our purposes. Always use GCC
1723 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
1724 host_makefile_frag
="config/mh-lynxrs6k"
1727 host_makefile_frag
="config/mh-ppc-darwin"
1730 # /bin/cc is less than useful for our purposes. Always use GCC
1731 tentative_cc
="/bin/gcc"
1734 host_makefile_frag
="config/mh-sysv4"
1739 # If we aren't going to be using gcc, see if we can extract a definition
1740 # of CC from the fragment.
1741 # Actually, use the 'pre-extracted' version above.
1742 if test -z "${CC}" && test "${build}" = "${host}" ; then
1743 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1745 for dir
in $PATH; do
1746 test -z "$dir" && dir
=.
1747 if test -f $dir/gcc
; then
1753 if test -z "${found}" && test -n "${tentative_cc}" ; then
1758 if test "${build}" != "${host}" ; then
1759 # If we are doing a Canadian Cross, in which the host and build systems
1760 # are not the same, we set reasonable default values for the tools.
1762 CC
=${CC-${host_alias}-gcc}
1763 CFLAGS
=${CFLAGS-"-g -O2"}
1764 CXX
=${CXX-${host_alias}-c++}
1765 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1766 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1767 CC_FOR_TARGET
=${CC_FOR_TARGET-${target_alias}-gcc}
1768 CXX_FOR_TARGET
=${CXX_FOR_TARGET-${target_alias}-c++}
1769 GCJ_FOR_TARGET
=${GCJ_FOR_TARGET-${target_alias}-gcj}
1770 GCC_FOR_TARGET
=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
1771 BUILD_PREFIX
=${build_alias}-
1772 BUILD_PREFIX_1
=${build_alias}-
1775 # Set reasonable default values for some tools even if not Canadian.
1776 # Of course, these are different reasonable default values, originally
1777 # specified directly in the Makefile.
1778 # We don't export, so that autoconf can do its job.
1779 # Note that all these settings are above the fragment inclusion point
1780 # in Makefile.in, so can still be overridden by fragments.
1781 # This is all going to change when we autoconfiscate...
1783 CC_FOR_BUILD
="\$(CC)"
1784 GCC_FOR_TARGET
="\$(USUAL_GCC_FOR_TARGET)"
1786 BUILD_PREFIX_1
=loser-
1788 # Extract the first word of "gcc", so it can be a program name with args.
1789 set dummy gcc
; ac_word
=$2
1790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1791 echo "configure:1792: checking for $ac_word" >&5
1792 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1795 if test -n "$CC"; then
1796 ac_cv_prog_CC
="$CC" # Let the user override the test.
1798 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1800 for ac_dir
in $ac_dummy; do
1801 test -z "$ac_dir" && ac_dir
=.
1802 if test -f $ac_dir/$ac_word; then
1811 if test -n "$CC"; then
1812 echo "$ac_t""$CC" 1>&6
1814 echo "$ac_t""no" 1>&6
1817 if test -z "$CC"; then
1818 # Extract the first word of "cc", so it can be a program name with args.
1819 set dummy cc
; ac_word
=$2
1820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1821 echo "configure:1822: checking for $ac_word" >&5
1822 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1825 if test -n "$CC"; then
1826 ac_cv_prog_CC
="$CC" # Let the user override the test.
1828 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1831 for ac_dir
in $ac_dummy; do
1832 test -z "$ac_dir" && ac_dir
=.
1833 if test -f $ac_dir/$ac_word; then
1834 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1835 ac_prog_rejected
=yes
1843 if test $ac_prog_rejected = yes; then
1844 # We found a bogon in the path, so make sure we never use it.
1845 set dummy
$ac_cv_prog_CC
1847 if test $# -gt 0; then
1848 # We chose a different compiler from the bogus one.
1849 # However, it has the same basename, so the bogon will be chosen
1850 # first if we set CC to just the basename; use the full file name.
1852 set dummy
"$ac_dir/$ac_word" "$@"
1860 if test -n "$CC"; then
1861 echo "$ac_t""$CC" 1>&6
1863 echo "$ac_t""no" 1>&6
1866 if test -z "$CC"; then
1867 case "`uname -s`" in
1869 # Extract the first word of "cl", so it can be a program name with args.
1870 set dummy cl
; ac_word
=$2
1871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1872 echo "configure:1873: checking for $ac_word" >&5
1873 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 if test -n "$CC"; then
1877 ac_cv_prog_CC
="$CC" # Let the user override the test.
1879 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1881 for ac_dir
in $ac_dummy; do
1882 test -z "$ac_dir" && ac_dir
=.
1883 if test -f $ac_dir/$ac_word; then
1892 if test -n "$CC"; then
1893 echo "$ac_t""$CC" 1>&6
1895 echo "$ac_t""no" 1>&6
1900 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1903 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1904 echo "configure:1905: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1907 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1908 ac_cpp
='$CPP $CPPFLAGS'
1909 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1910 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1911 cross_compiling
=$ac_cv_prog_cc_cross
1913 cat > conftest.
$ac_ext << EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1920 if { (eval echo configure
:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1921 ac_cv_prog_cc_works
=yes
1922 # If we can't run a trivial program, we are probably using a cross compiler.
1923 if (.
/conftest
; exit) 2>/dev
/null
; then
1924 ac_cv_prog_cc_cross
=no
1926 ac_cv_prog_cc_cross
=yes
1929 echo "configure: failed program was:" >&5
1930 cat conftest.
$ac_ext >&5
1931 ac_cv_prog_cc_works
=no
1935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1936 ac_cpp
='$CPP $CPPFLAGS'
1937 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1938 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1939 cross_compiling
=$ac_cv_prog_cc_cross
1941 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1942 if test $ac_cv_prog_cc_works = no
; then
1943 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1945 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1946 echo "configure:1947: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1947 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1948 cross_compiling
=$ac_cv_prog_cc_cross
1950 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1951 echo "configure:1952: checking whether we are using GNU C" >&5
1952 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 cat > conftest.c
<<EOF
1960 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1967 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1969 if test $ac_cv_prog_gcc = yes; then
1975 ac_test_CFLAGS
="${CFLAGS+set}"
1976 ac_save_CFLAGS
="$CFLAGS"
1978 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1979 echo "configure:1980: checking whether ${CC-cc} accepts -g" >&5
1980 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1983 echo 'void f(){}' > conftest.c
1984 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1993 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1994 if test "$ac_test_CFLAGS" = set; then
1995 CFLAGS
="$ac_save_CFLAGS"
1996 elif test $ac_cv_prog_cc_g = yes; then
1997 if test "$GCC" = yes; then
2003 if test "$GCC" = yes; then
2011 # We must set the default linker to the linker used by gcc for the correct
2012 # operation of libtool. If LD is not defined and we are using gcc, try to
2013 # set the LD default to the ld used by gcc.
2014 if test -z "$LD"; then
2015 if test "$GCC" = yes; then
2018 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2020 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
2022 case $gcc_prog_ld in
2023 # Accept absolute paths.
2024 [\\/]* |
[A-Za-z
]:[\\/]*)
2025 LD
="$gcc_prog_ld" ;;
2031 CFLAGS
=${CFLAGS-"-g"}
2032 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
2035 if test $host != $build; then
2036 ac_tool_prefix
=${host_alias}-
2043 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2044 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2046 echo "configure:2047: checking for $ac_word" >&5
2047 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2048 echo $ac_n "(cached) $ac_c" 1>&6
2050 if test -n "$GNATBIND"; then
2051 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2053 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2055 for ac_dir
in $ac_dummy; do
2056 test -z "$ac_dir" && ac_dir
=.
2057 if test -f $ac_dir/$ac_word; then
2058 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2065 GNATBIND
="$ac_cv_prog_GNATBIND"
2066 if test -n "$GNATBIND"; then
2067 echo "$ac_t""$GNATBIND" 1>&6
2069 echo "$ac_t""no" 1>&6
2073 if test -z "$ac_cv_prog_GNATBIND"; then
2074 if test -n "$ac_tool_prefix"; then
2075 # Extract the first word of "gnatbind", so it can be a program name with args.
2076 set dummy gnatbind
; ac_word
=$2
2077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2078 echo "configure:2079: checking for $ac_word" >&5
2079 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2080 echo $ac_n "(cached) $ac_c" 1>&6
2082 if test -n "$GNATBIND"; then
2083 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2085 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2087 for ac_dir
in $ac_dummy; do
2088 test -z "$ac_dir" && ac_dir
=.
2089 if test -f $ac_dir/$ac_word; then
2090 ac_cv_prog_GNATBIND
="gnatbind"
2095 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2098 GNATBIND
="$ac_cv_prog_GNATBIND"
2099 if test -n "$GNATBIND"; then
2100 echo "$ac_t""$GNATBIND" 1>&6
2102 echo "$ac_t""no" 1>&6
2110 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2111 echo "configure:2112: checking whether compiler driver understands Ada" >&5
2112 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2115 cat >conftest.adb
<<EOF
2116 procedure conftest is begin null; end conftest;
2118 acx_cv_cc_gcc_supports_ada
=no
2119 # There is a bug in old released versions of GCC which causes the
2120 # driver to exit successfully when the appropriate language module
2121 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2122 # Therefore we must check for the error message as well as an
2123 # unsuccessful exit.
2124 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2125 # given a .adb file, but produce no object file. So we must check
2126 # if an object file was really produced to guard against this.
2127 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2128 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
2129 acx_cv_cc_gcc_supports_ada
=yes
2135 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2137 if test x
$GNATBIND != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
2143 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2144 echo "configure:2145: checking how to compare bootstrapped objects" >&5
2145 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2150 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2151 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
2152 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
2155 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
2158 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2159 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2162 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
2169 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2170 do_compare
="$gcc_cv_prog_cmp_skip"
2174 # Check for GMP and MPFR
2178 # Specify a location for mpfr
2179 # check for this first so it ends up on the link line before gmp.
2180 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2181 if test "${with_mpfr_dir+set}" = set; then
2182 withval
="$with_mpfr_dir"
2187 if test "x$with_mpfr_dir" != x
; then
2188 gmpinc
="-I$with_mpfr_dir/mpfr"
2189 gmplibs
="$with_mpfr_dir/libmpfr.a"
2194 # Check whether --with-mpfr or --without-mpfr was given.
2195 if test "${with_mpfr+set}" = set; then
2196 withval
="$with_mpfr"
2201 if test "x$with_mpfr" != x
; then
2202 gmplibs
="-L$with_mpfr/lib $gmplibs"
2203 gmpinc
="-I$with_mpfr/include"
2206 # Specify a location for gmp
2207 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2208 if test "${with_gmp_dir+set}" = set; then
2209 withval
="$with_gmp_dir"
2214 if test "x$with_gmp_dir" != x
; then
2215 gmpinc
="$gmpinc -I$with_gmp_dir"
2216 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2217 gmplibs
="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2218 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2219 gmplibs
="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2221 # One of the later tests will catch the error if neither library is present.
2223 gmplibs
="$gmplibs -lgmp"
2226 # Check whether --with-gmp or --without-gmp was given.
2227 if test "${with_gmp+set}" = set; then
2233 if test "x$with_gmp" != x
; then
2234 gmplibs
="-L$with_gmp/lib $gmplibs"
2235 gmpinc
="-I$with_gmp/include $gmpinc"
2238 saved_CFLAGS
="$CFLAGS"
2239 CFLAGS
="$CFLAGS $gmpinc"
2240 # Check GMP actually works
2241 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2242 echo "configure:2243: checking for correct version of gmp.h" >&5
2243 cat > conftest.
$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2249 #if __GNU_MP_VERSION < 3
2255 if { (eval echo configure
:2256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2257 echo "$ac_t""yes" 1>&6
2259 echo "configure: failed program was:" >&5
2260 cat conftest.
$ac_ext >&5
2262 echo "$ac_t""no" 1>&6; have_gmp
=no
2266 if test x
"$have_gmp" = xyes
; then
2267 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2268 echo "configure:2269: checking for MPFR" >&5
2271 LIBS
="$LIBS $gmplibs"
2272 cat > conftest.
$ac_ext <<EOF
2273 #line 2274 "configure"
2274 #include "confdefs.h"
2278 mpfr_t n; mpfr_init(n);
2281 if { (eval echo configure
:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2283 echo "$ac_t""yes" 1>&6
2285 echo "configure: failed program was:" >&5
2286 cat conftest.
$ac_ext >&5
2288 echo "$ac_t""no" 1>&6; have_gmp
=no
2292 CFLAGS
="$saved_CFLAGS"
2295 # Flags needed for both GMP and/or MPFR
2299 # By default, C is the only stage 1 language.
2303 # Figure out what language subdirectories are present.
2304 # Look if the user specified --enable-languages="..."; if not, use
2305 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2307 # NB: embedded tabs in this IF block -- do not untabify
2308 if test -d ${srcdir}/gcc
; then
2309 if test x
"${enable_languages+set}" != xset
; then
2310 if test x
"${LANGUAGES+set}" = xset
; then
2311 enable_languages
="${LANGUAGES}"
2312 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
2314 enable_languages
=all
2317 if test x
"${enable_languages}" = x ||
2318 test x
"${enable_languages}" = xyes
;
2320 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
2324 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2326 # First scan to see if an enabled language requires some other language.
2327 # We assume that a given config-lang.in will list all the language
2328 # front ends it requires, even if some are required indirectly.
2329 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2330 case ${lang_frag} in
2332 # The odd quoting in the next line works around
2333 # an apparent bug in bash 1.12 on linux.
2334 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2336 # From the config-lang.in, get $language, $lang_requires
2340 for other
in ${lang_requires} ; do
2341 case ,${enable_languages}, in
2345 echo " \`$other' language required by \`$language'; enabling" 1>&2
2346 enable_languages
="${enable_languages},${other}"
2354 new_enable_languages
=c
2355 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2356 potential_languages
=c
2358 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2359 case ${lang_frag} in
2361 # The odd quoting in the next line works around
2362 # an apparent bug in bash 1.12 on linux.
2363 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2365 # From the config-lang.in, get $language, $target_libs,
2366 # $lang_dirs, $boot_language, and $build_by_default
2374 potential_languages
="${potential_languages},${language}"
2375 # This is quite sensitive to the ordering of the case statement arms.
2376 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2378 echo "${lang_frag} doesn't set \$language." 1>&2
2382 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2385 *,${language},*:*:*:*)
2386 # Language was explicitly selected; include it.
2390 # 'all' was selected, but this is not a default language
2391 # so do not include it.
2395 # 'all' was selected and this is a default language; include it.
2403 # Disable languages that need GMP if it isn't available.
2404 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2405 *,${language},*:no
:yes)
2406 # Specifically requested language; tell them.
2407 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2415 case $add_this_lang in
2417 # Remove language-dependent dirs.
2418 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2421 new_enable_languages
="$new_enable_languages,$language"
2422 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
2423 case ${boot_language} in
2425 # Add to (comma-separated) list of stage 1 languages.
2426 stage1_languages
="${stage1_languages},${language}"
2435 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2436 if test "x$missing_languages" != x
; then
2437 { echo "configure: error:
2438 The following requested languages were not found: ${missing_languages}
2439 The available languages are: ${potential_languages}" 1>&2; exit 1; }
2442 if test "x$new_enable_languages" != "x$enable_languages"; then
2443 echo The following languages will be built
: ${new_enable_languages}
2445 enable_languages
="$new_enable_languages"
2446 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2449 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
2450 # $target_configdirs.
2451 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2454 for dir
in .
$skipdirs $noconfigdirs ; do
2455 dirname=`echo $dir | sed -e s/target-//g`
2456 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2457 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2458 if test -r $srcdir/$dirname/configure
; then
2459 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2462 notsupp
="$notsupp $dir"
2466 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2467 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2468 if test -r $srcdir/$dirname/configure
; then
2469 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2472 notsupp
="$notsupp $dir"
2478 # Sometimes the tools are distributed with libiberty but with no other
2479 # libraries. In that case, we don't want to build target-libiberty.
2480 if test -n "${target_configdirs}" ; then
2482 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2483 if test "$i" != "libiberty" ; then
2484 if test -r $srcdir/$i/configure
; then
2490 if test -z "${others}" ; then
2495 # Quietly strip out all directories which aren't configurable in this tree.
2496 # This relies on all configurable subdirectories being autoconfiscated, which
2498 build_configdirs_all
="$build_configdirs"
2500 for i
in ${build_configdirs_all} ; do
2501 j
=`echo $i | sed -e s/build-//g`
2502 if test -f ${srcdir}/$j/configure
; then
2503 build_configdirs
="${build_configdirs} $i"
2507 configdirs_all
="$configdirs"
2509 for i
in ${configdirs_all} ; do
2510 if test -f ${srcdir}/$i/configure
; then
2511 configdirs
="${configdirs} $i"
2515 target_configdirs_all
="$target_configdirs"
2517 for i
in ${target_configdirs_all} ; do
2518 j
=`echo $i | sed -e s/target-//g`
2519 if test -f ${srcdir}/$j/configure
; then
2520 target_configdirs
="${target_configdirs} $i"
2524 # Produce a warning message for the subdirs we can't configure.
2525 # This isn't especially interesting in the Cygnus tree, but in the individual
2526 # FSF releases, it's important to let people know when their machine isn't
2527 # supported by the one or two programs in a package.
2529 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2530 # If $appdirs is non-empty, at least one of those directories must still
2531 # be configured, or we error out. (E.g., if the gas release supports a
2532 # specified target in some subdirs but not the gas subdir, we shouldn't
2533 # pretend that all is well.)
2534 if test -n "$appdirs" ; then
2535 for dir
in $appdirs ; do
2536 if test -r $dir/Makefile.
in ; then
2537 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2541 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
2547 if test -n "$appdirs" ; then
2548 echo "*** This configuration is not supported by this package." 1>&2
2552 # Okay, some application will build, or we don't care to check. Still
2553 # notify of subdirs not getting built.
2554 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2555 echo " ${notsupp}" 1>&2
2556 echo " (Any other directories should still work fine.)" 1>&2
2566 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2567 # the named directory are copied to $(tooldir)/sys-include.
2568 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
2569 if test x
${is_cross_compiler} = xno
; then
2570 echo 1>&2 '***' --with-headers is only supported when cross compiling
2573 if test x
"${with_headers}" != xyes
; then
2574 case "${exec_prefixoption}" in
2576 *) x
=${exec_prefix} ;;
2578 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2582 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2583 # the name directories are copied to $(tooldir)/lib. Multiple directories
2585 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2586 if test x
${is_cross_compiler} = xno
; then
2587 echo 1>&2 '***' --with-libs is only supported when cross compiling
2590 if test x
"${with_libs}" != xyes
; then
2591 # Copy the libraries in reverse order, so that files in the first named
2592 # library override files in subsequent libraries.
2593 case "${exec_prefixoption}" in
2595 *) x
=${exec_prefix} ;;
2597 for l
in ${with_libs}; do
2598 copy_dirs
="$l $x/${target_alias}/lib ${copy_dirs}"
2603 # Handle ${copy_dirs}
2604 set fnord
${copy_dirs}
2606 while test $# != 0 ; do
2607 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
2610 echo Copying
$1 to
$2
2612 # Use the install script to create the directory and all required
2613 # parent directories.
2614 if test -d $2 ; then
2618 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
2621 # Copy the directory, assuming we have tar.
2622 # FIXME: Should we use B in the second tar? Not all systems support it.
2623 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
2625 # It is the responsibility of the user to correctly adjust all
2626 # symlinks. If somebody can figure out how to handle them correctly
2627 # here, feel free to add the code.
2634 extra_arflags_for_target
=
2635 extra_nmflags_for_target
=
2636 extra_ranlibflags_for_target
=
2637 target_makefile_frag
=/dev
/null
2639 i
[3456789]86-*-netware*)
2640 target_makefile_frag
="config/mt-netware"
2643 target_makefile_frag
="config/mt-netware"
2645 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
2646 target_makefile_frag
="config/mt-gnu"
2648 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
2649 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2650 # commands to handle both 32-bit and 64-bit objects. These flags are
2651 # harmless if we're using GNU nm or ar.
2652 extra_arflags_for_target
=" -X32_64"
2653 extra_nmflags_for_target
=" -B -X32_64"
2656 # ranlib from Darwin requires the -c flag to look at common symbols.
2657 extra_ranlibflags_for_target
=" -c"
2659 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
2660 target_makefile_frag
="config/mt-wince"
2664 alphaieee_frag
=/dev
/null
2667 # This just makes sure to use the -mieee option to build target libs.
2668 # This should probably be set individually by each library.
2669 alphaieee_frag
="config/mt-alphaieee"
2673 # If --enable-target-optspace always use -Os instead of -O2 to build
2674 # the target libraries, similarly if it is not specified, use -Os
2675 # on selected platforms.
2676 ospace_frag
=/dev
/null
2677 case "${enable_target_optspace}:${target}" in
2679 ospace_frag
="config/mt-ospace"
2682 ospace_frag
="config/mt-d30v"
2684 :m32r-
* |
:d10v-
* |
:fr30-
*)
2685 ospace_frag
="config/mt-ospace"
2690 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2694 # Set with_gnu_as and with_gnu_ld as appropriate.
2696 # This is done by determining whether or not the appropriate directory
2697 # is available, and by checking whether or not specific configurations
2698 # have requested that this magic not happen.
2700 # The command line options always override the explicit settings in
2701 # configure.in, and the settings in configure.in override this magic.
2703 # If the default for a toolchain is to use GNU as and ld, and you don't
2704 # want to do that, then you should use the --without-gnu-as and
2705 # --without-gnu-ld options for the configure script.
2707 if test x
${use_gnu_as} = x
&&
2708 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
2710 extra_host_args
="$extra_host_args --with-gnu-as"
2713 if test x
${use_gnu_ld} = x
&&
2714 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
2716 extra_host_args
="$extra_host_args --with-gnu-ld"
2719 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2720 # can detect this case.
2722 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
2724 extra_host_args
="$extra_host_args --with-newlib"
2727 if test x
${with_libbanshee} = xyes
&& echo " ${configdirs} " |
grep " libbanshee " >/dev
/null
2>&1; then
2728 extra_host_args
="$extra_host_args --with-libbanshee"
2731 # Default to using --with-stabs for certain targets.
2732 if test x
${with_stabs} = x
; then
2736 mips
*-*-* | alpha
*-*-osf*)
2738 extra_host_args
="${extra_host_args} --with-stabs"
2743 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2744 # them automatically.
2747 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2751 # Some systems (e.g., one of the i386-aix systems the gas testers are
2752 # using) don't handle "\$" correctly, so don't use it here.
2753 tooldir
='${exec_prefix}'/${target_alias}
2754 build_tooldir
=${tooldir}
2756 # Generate default definitions for YACC, M4, LEX and other programs that run
2757 # on the build machine. These are used if the Makefile can't locate these
2758 # programs in objdir.
2759 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2760 for ac_prog
in bison
2762 # Extract the first word of "$ac_prog", so it can be a program name with args.
2763 set dummy
$ac_prog; ac_word
=$2
2764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2765 echo "configure:2766: checking for $ac_word" >&5
2766 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" = set"; then
2767 echo $ac_n "(cached) $ac_c" 1>&6
2769 if test -n "$CONFIGURED_BISON"; then
2770 ac_cv_prog_CONFIGURED_BISON
="$CONFIGURED_BISON" # Let the user override the test.
2772 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2774 for ac_dir
in $ac_dummy; do
2775 test -z "$ac_dir" && ac_dir
=.
2776 if test -f $ac_dir/$ac_word; then
2777 ac_cv_prog_CONFIGURED_BISON
="$ac_prog"
2784 CONFIGURED_BISON
="$ac_cv_prog_CONFIGURED_BISON"
2785 if test -n "$CONFIGURED_BISON"; then
2786 echo "$ac_t""$CONFIGURED_BISON" 1>&6
2788 echo "$ac_t""no" 1>&6
2791 test -n "$CONFIGURED_BISON" && break
2793 test -n "$CONFIGURED_BISON" || CONFIGURED_BISON
="$MISSING bison"
2795 for ac_prog
in 'bison -y' byacc
yacc
2797 # Extract the first word of "$ac_prog", so it can be a program name with args.
2798 set dummy
$ac_prog; ac_word
=$2
2799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2800 echo "configure:2801: checking for $ac_word" >&5
2801 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" = set"; then
2802 echo $ac_n "(cached) $ac_c" 1>&6
2804 if test -n "$CONFIGURED_YACC"; then
2805 ac_cv_prog_CONFIGURED_YACC
="$CONFIGURED_YACC" # Let the user override the test.
2807 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2809 for ac_dir
in $ac_dummy; do
2810 test -z "$ac_dir" && ac_dir
=.
2811 if test -f $ac_dir/$ac_word; then
2812 ac_cv_prog_CONFIGURED_YACC
="$ac_prog"
2819 CONFIGURED_YACC
="$ac_cv_prog_CONFIGURED_YACC"
2820 if test -n "$CONFIGURED_YACC"; then
2821 echo "$ac_t""$CONFIGURED_YACC" 1>&6
2823 echo "$ac_t""no" 1>&6
2826 test -n "$CONFIGURED_YACC" && break
2828 test -n "$CONFIGURED_YACC" || CONFIGURED_YACC
="$MISSING bison -y"
2830 for ac_prog
in gm4 gnum4
m4
2832 # Extract the first word of "$ac_prog", so it can be a program name with args.
2833 set dummy
$ac_prog; ac_word
=$2
2834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2835 echo "configure:2836: checking for $ac_word" >&5
2836 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2839 if test -n "$CONFIGURED_M4"; then
2840 ac_cv_prog_CONFIGURED_M4
="$CONFIGURED_M4" # Let the user override the test.
2842 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2844 for ac_dir
in $ac_dummy; do
2845 test -z "$ac_dir" && ac_dir
=.
2846 if test -f $ac_dir/$ac_word; then
2847 ac_cv_prog_CONFIGURED_M4
="$ac_prog"
2854 CONFIGURED_M4
="$ac_cv_prog_CONFIGURED_M4"
2855 if test -n "$CONFIGURED_M4"; then
2856 echo "$ac_t""$CONFIGURED_M4" 1>&6
2858 echo "$ac_t""no" 1>&6
2861 test -n "$CONFIGURED_M4" && break
2863 test -n "$CONFIGURED_M4" || CONFIGURED_M4
="$MISSING m4"
2867 # Extract the first word of "$ac_prog", so it can be a program name with args.
2868 set dummy
$ac_prog; ac_word
=$2
2869 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2870 echo "configure:2871: checking for $ac_word" >&5
2871 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" = set"; then
2872 echo $ac_n "(cached) $ac_c" 1>&6
2874 if test -n "$CONFIGURED_FLEX"; then
2875 ac_cv_prog_CONFIGURED_FLEX
="$CONFIGURED_FLEX" # Let the user override the test.
2877 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2879 for ac_dir
in $ac_dummy; do
2880 test -z "$ac_dir" && ac_dir
=.
2881 if test -f $ac_dir/$ac_word; then
2882 ac_cv_prog_CONFIGURED_FLEX
="$ac_prog"
2889 CONFIGURED_FLEX
="$ac_cv_prog_CONFIGURED_FLEX"
2890 if test -n "$CONFIGURED_FLEX"; then
2891 echo "$ac_t""$CONFIGURED_FLEX" 1>&6
2893 echo "$ac_t""no" 1>&6
2896 test -n "$CONFIGURED_FLEX" && break
2898 test -n "$CONFIGURED_FLEX" || CONFIGURED_FLEX
="$MISSING flex"
2900 for ac_prog
in flex
lex
2902 # Extract the first word of "$ac_prog", so it can be a program name with args.
2903 set dummy
$ac_prog; ac_word
=$2
2904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2905 echo "configure:2906: checking for $ac_word" >&5
2906 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2909 if test -n "$CONFIGURED_LEX"; then
2910 ac_cv_prog_CONFIGURED_LEX
="$CONFIGURED_LEX" # Let the user override the test.
2912 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2914 for ac_dir
in $ac_dummy; do
2915 test -z "$ac_dir" && ac_dir
=.
2916 if test -f $ac_dir/$ac_word; then
2917 ac_cv_prog_CONFIGURED_LEX
="$ac_prog"
2924 CONFIGURED_LEX
="$ac_cv_prog_CONFIGURED_LEX"
2925 if test -n "$CONFIGURED_LEX"; then
2926 echo "$ac_t""$CONFIGURED_LEX" 1>&6
2928 echo "$ac_t""no" 1>&6
2931 test -n "$CONFIGURED_LEX" && break
2933 test -n "$CONFIGURED_LEX" || CONFIGURED_LEX
="$MISSING flex"
2935 for ac_prog
in makeinfo
2937 # Extract the first word of "$ac_prog", so it can be a program name with args.
2938 set dummy
$ac_prog; ac_word
=$2
2939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2940 echo "configure:2941: checking for $ac_word" >&5
2941 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\" = set"; then
2942 echo $ac_n "(cached) $ac_c" 1>&6
2944 if test -n "$CONFIGURED_MAKEINFO"; then
2945 ac_cv_prog_CONFIGURED_MAKEINFO
="$CONFIGURED_MAKEINFO" # Let the user override the test.
2947 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2949 for ac_dir
in $ac_dummy; do
2950 test -z "$ac_dir" && ac_dir
=.
2951 if test -f $ac_dir/$ac_word; then
2952 ac_cv_prog_CONFIGURED_MAKEINFO
="$ac_prog"
2959 CONFIGURED_MAKEINFO
="$ac_cv_prog_CONFIGURED_MAKEINFO"
2960 if test -n "$CONFIGURED_MAKEINFO"; then
2961 echo "$ac_t""$CONFIGURED_MAKEINFO" 1>&6
2963 echo "$ac_t""no" 1>&6
2966 test -n "$CONFIGURED_MAKEINFO" && break
2968 test -n "$CONFIGURED_MAKEINFO" || CONFIGURED_MAKEINFO
="$MISSING makeinfo"
2971 # Create a .gdbinit file which runs the one in srcdir
2972 # and tells GDB to look there for source files.
2974 if test -r ${srcdir}/.gdbinit
; then
2977 *) cat > .
/.gdbinit
<<EOF
2981 source ${srcdir}/.gdbinit
2987 # Make sure that the compiler is able to generate an executable. If it
2988 # can't, we are probably in trouble. We don't care whether we can run the
2989 # executable--we might be using a cross compiler--we only care whether it
2990 # can be created. At this point the main configure script has set CC.
2992 echo "int main () { return 0; }" > conftest.c
2993 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2994 if test $?
= 0 ; then
2995 if test -s conftest ||
test -s conftest.exe
; then
3001 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3002 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3009 # The Solaris /usr/ucb/cc compiler does not appear to work.
3011 sparc-sun-solaris2
*)
3012 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
3013 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3015 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
3016 if test -d /opt
/cygnus
/bin
; then
3017 if test "$could_use" = "" ; then
3018 could_use
="/opt/cygnus/bin"
3020 could_use
="$could_use or /opt/cygnus/bin"
3023 if test "$could_use" = "" ; then
3024 echo "Warning: compilation may fail because you're using"
3025 echo "/usr/ucb/cc. You should change your PATH or CC "
3026 echo "variable and rerun configure."
3028 echo "Warning: compilation may fail because you're using"
3029 echo "/usr/ucb/cc, when you should use the C compiler from"
3030 echo "$could_use. You should change your"
3031 echo "PATH or CC variable and rerun configure."
3037 # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
3038 # binutils tools will find libbfd.so.
3039 case "${enable_shared}" in
3040 no |
"") SET_LIB_PATH
= ;;
3041 *) SET_LIB_PATH
="\$(REALLY_SET_LIB_PATH)" ;;
3045 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
3046 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
3049 # Record target_configdirs and the configure arguments for target and
3050 # build configuration in Makefile.
3051 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3052 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3054 # Determine whether gdb needs tk/tcl or not.
3055 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3056 # and in that case we want gdb to be built without tk. Ugh!
3057 # In fact I believe gdb is the *only* package directly dependent on tk,
3058 # so we should be able to put the 'maybe's in unconditionally and
3059 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3060 # 100% sure that that's safe though.
3062 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3063 case "$enable_gdbtk" in
3067 GDB_TK
="${gdb_tk}" ;;
3069 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3070 # distro. Eventually someone will fix this and move Insight, nee
3071 # gdbtk to a separate directory.
3072 if test -d ${srcdir}/gdb
/gdbtk
; then
3080 # Strip out unwanted targets.
3082 # While at that, we remove Makefiles if we were started for recursive
3083 # configuration, so that the top-level Makefile reconfigures them,
3084 # like we used to do when configure itself was recursive.
3086 # Loop over modules. $extrasub must be used with care, limiting as
3087 # much as possible the usage of range addresses. That's because autoconf
3088 # splits the sed script to overcome limits in the number of commands,
3089 # and relying on carefully-timed sed passes may turn out to be very hard
3090 # to maintain later. In this particular case, you just have to be careful
3091 # not to nest @if/@endif pairs, because configure will not warn you at all.
3093 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3094 if test "${enable_bootstrap+set}" = set; then
3095 enableval
="$enable_bootstrap"
3098 enable_bootstrap
=default
3102 # Issue errors and warnings for invalid/strange bootstrap combinations.
3103 case "$configdirs" in
3104 *gcc
*) have_compiler
=yes ;;
3105 *) have_compiler
=no
;;
3108 case "$have_compiler:$host:$target:$enable_bootstrap" in
3111 # Default behavior. (We'll) enable bootstrap if we have a compiler
3112 # and we are in a native configuration.
3113 yes:$build:$build:default
)
3114 # This will become 'yes'
3115 enable_bootstrap
=no
;;
3118 enable_bootstrap
=no
;;
3120 # We have a compiler and we are in a native configuration, bootstrap is ok
3121 yes:$build:$build:yes |
yes:$build:$build:lean
)
3124 # Other configurations, but we have a compiler. Assume the user knows
3126 yes:*:*:yes |
yes:*:*:lean
)
3127 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3130 # No compiler: if they passed --enable-bootstrap explicitly, fail
3131 no
:*:*:yes | no
:*:*:lean
)
3132 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3134 # Fail if wrong command line
3136 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3140 # Adjust the toplevel makefile according to whether bootstrap was selected.
3141 case "$enable_bootstrap" in
3144 default_target
=bootstrap
3145 bootstrap_suffix
=bootstrap
;;
3148 default_target
=bootstrap
3149 bootstrap_suffix
=bootstrap
;;
3152 bootstrap_suffix
=no-bootstrap
;;
3157 for module
in ${build_configdirs} ; do
3158 if test -z "${no_recursion}" \
3159 && test -f ${build_subdir}/${module}/Makefile
; then
3160 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3161 rm -f ${build_subdir}/${module}/Makefile
3164 /^@if build-$module\$/d
3165 /^@endif build-$module\$/d
3166 /^@if build-$module-$bootstrap_suffix\$/d
3167 /^@endif build-$module-$bootstrap_suffix\$/d"
3169 for module
in ${configdirs} ; do
3170 if test -z "${no_recursion}" \
3171 && test -f ${module}/Makefile
; then
3172 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3173 rm -f ${module}/Makefile
3177 /^@endif $module\$/d
3178 /^@if $module-$bootstrap_suffix\$/d
3179 /^@endif $module-$bootstrap_suffix\$/d"
3181 for module
in ${target_configdirs} ; do
3182 if test -z "${no_recursion}" \
3183 && test -f ${target_subdir}/${module}/Makefile
; then
3184 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3185 rm -f ${target_subdir}/${module}/Makefile
3188 /^@if target-$module\$/d
3189 /^@endif target-$module\$/d
3190 /^@if target-$module-$bootstrap_suffix\$/d
3191 /^@endif target-$module-$bootstrap_suffix\$/d"
3195 /^@if /,/^@endif /d"
3197 # Create the serialization dependencies. This uses a temporary file.
3199 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3200 if test "${enable_serial_configure+set}" = set; then
3201 enableval
="$enable_serial_configure"
3206 case ${enable_serial_configure} in
3208 enable_serial_build_configure
=yes
3209 enable_serial_host_configure
=yes
3210 enable_serial_target_configure
=yes
3214 # These force 'configure's to be done one at a time, to avoid problems
3215 # with contention over a shared config.cache.
3217 echo '# serdep.tmp' > serdep.tmp
3219 test "x${enable_serial_build_configure}" = xyes
&&
3220 for item
in ${build_configdirs} ; do
3223 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
3228 test "x${enable_serial_host_configure}" = xyes
&&
3229 for item
in ${configdirs} ; do
3232 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
3237 test "x${enable_serial_target_configure}" = xyes
&&
3238 for item
in ${target_configdirs} ; do
3241 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
3245 serialization_dependencies
=serdep.tmp
3248 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3249 # target and nonopt. These are the ones we might not want to pass
3250 # down to subconfigures. Also strip program-prefix, program-suffix,
3251 # and program-transform-name, so that we can pass down a consistent
3252 # program-transform-name. If autoconf has put single quotes around
3253 # any of these arguments (because they contain shell metacharacters)
3254 # then this will fail; in practice this only happens for
3255 # --program-transform-name, so be sure to override --program-transform-name
3256 # at the end of the argument list.
3257 # These will be expanded by make, so quote '$'.
3258 cat <<\EOF_SED
> conftestsed
3260 s
/ --c[a-z-
]*[= ][^
]*//g
3261 s
/ --sr[a-z-
]*[= ][^
]*//g
3262 s
/ --ho[a-z-
]*[= ][^
]*//g
3263 s
/ --bu[a-z-
]*[= ][^
]*//g
3264 s
/ --t[a-z-
]*[= ][^
]*//g
3265 s
/ --program-[pst
][a-z-
]*[= ][^
]*//g
3266 s
/ -cache-file[= ][^
]*//g
3267 s
/ -srcdir[= ][^
]*//g
3268 s
/ -host[= ][^
]*//g
3269 s
/ -build[= ][^
]*//g
3270 s
/ -target[= ][^
]*//g
3271 s
/ -program-prefix[= ][^
]*//g
3272 s
/ -program-suffix[= ][^
]*//g
3273 s
/ -program-transform-name[= ][^
]*//g
3278 sed -f conftestsed <<EOF_SED > conftestsed.out
3279 ${ac_configure_args}
3281 baseargs=`cat conftestsed.out`
3282 rm -f conftestsed conftestsed.out
3284 # Add in --program-transform-name, after --program-prefix and
3285 # --program-suffix have been applied to it. Autoconf has already
3286 # doubled dollar signs and backslashes in program_transform_name; we want
3287 # the backslashes un-doubled, and then the entire thing wrapped in single
3288 # quotes, because this will be expanded first by make and then by the shell.
3289 # Also, because we want to override the logic in subdir configure scripts to
3290 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3291 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3292 ${program_transform_name}
3294 gcc_transform_name=`cat conftestsed.out`
3295 rm -f conftestsed.out
3296 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3298 # For the build-side libraries, we just need to pretend we're native
,
3299 # and not use the same cache file. Multilibs are neither needed nor
3301 build_configargs
="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
3303 # For host modules, accept cache file option, or specification as blank.
3304 case "${cache_file}" in
3306 cache_file_option
="" ;;
3307 /* |
[A-Za-z
]:[\\/]* ) # absolute path
3308 cache_file_option
="--cache-file=${cache_file}" ;;
3310 cache_file_option
="--cache-file=../${cache_file}" ;;
3313 # Host dirs don't like to share a cache file either, horribly enough.
3314 # This seems to be due to autoconf 2.5x stupidity.
3315 host_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3317 target_configargs
=${baseargs}
3319 # Passing a --with-cross-host argument lets the target libraries know
3320 # whether they are being built with a cross-compiler or being built
3321 # native. However, it would be better to use other mechanisms to make the
3322 # sorts of decisions they want to make on this basis. Please consider
3323 # this option to be deprecated. FIXME.
3324 if test x
${is_cross_compiler} = xyes
; then
3325 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3328 # Default to --enable-multilib.
3329 if test x
${enable_multilib} = x
; then
3330 target_configargs
="--enable-multilib ${target_configargs}"
3333 # Pass --with-newlib if appropriate. Note that target_configdirs has
3334 # changed from the earlier setting of with_newlib.
3335 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3336 target_configargs
="--with-newlib ${target_configargs}"
3339 # Different target subdirs use different values of certain variables
3340 # (notably CXX). Worse, multilibs use *lots* of different values.
3341 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3342 # it doesn't automatically accept command-line overrides of them.
3343 # This means it's not safe for target subdirs to share a cache file,
3344 # which is disgusting, but there you have it. Hopefully this can be
3345 # fixed in future. It's still worthwhile to use a cache file for each
3346 # directory. I think.
3348 # Pass the appropriate --host, --build, and --cache-file arguments.
3349 target_configargs
="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}"
3351 # provide a proper gxx_include_dir.
3352 # Note, if you change the default, make sure to fix both here and in
3353 # the gcc and libstdc++-v3 subdirectories.
3354 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
3355 case "${with_gxx_include_dir}" in
3357 { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; }
3360 case "${enable_version_specific_runtime_libs}" in
3361 yes) gxx_include_dir
='${libsubdir}/include/c++' ;;
3363 .
${srcdir}/config.
if
3364 gxx_include_dir
='${prefix}/include/'${libstdcxx_incdir} ;;
3366 *) gxx_include_dir
=${with_gxx_include_dir} ;;
3370 case " $target_configdirs " in
3372 case " $target_configargs " in
3373 *" --with-newlib "*)
3376 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' ;;
3379 # If we're not building GCC, don't discard standard headers.
3380 if test -d ${srcdir}/gcc
; then
3381 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3383 if test "${build}" != "${host}"; then
3384 # On Canadian crosses, CC_FOR_TARGET will have already been set
3385 # by `configure', so we won't have an opportunity to add -Bgcc/
3386 # to it. This is right: we don't want to search that directory
3387 # for binaries, but we want the header files in there, so add
3389 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
3391 # Someone might think of using the pre-installed headers on
3392 # Canadian crosses, in case the installed compiler is not fully
3393 # compatible with the compiler being built. In this case, it
3394 # would be better to flag an error than risking having
3395 # incompatible object files being constructed. We can't
3396 # guarantee that an error will be flagged, but let's hope the
3397 # compiler will do it, when presented with incompatible header
3402 case "${target}-${is_cross_compiler}" in
3403 i
[3456789]86-*-linux*-no)
3404 # Here host == target, so we don't need to build gcc,
3405 # so we don't want to discard standard headers.
3406 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3409 # If we're building newlib, use its generic headers last, but search
3410 # for any libc-related directories first (so make it the last -B
3412 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3420 # Allow the user to override the flags for
3421 # our build compiler if desired.
3422 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3424 # On Canadian crosses, we'll be searching the right directories for
3425 # the previously-installed cross compiler, so don't bother to add
3426 # flags for directories within the install tree of the compiler
3427 # being built; programs in there won't even run.
3428 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3429 # Search for pre-installed headers if nothing else fits.
3430 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3433 if test "x
${use_gnu_ld}" = x &&
3434 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3435 # Arrange for us to find uninstalled linker scripts.
3436 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
3439 if test "x
${CC_FOR_TARGET+set}" = xset; then
3441 elif test -d ${srcdir}/gcc; then
3442 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
3443 elif test "$host" = "$target"; then
3444 CC_FOR_TARGET='$(CC)'
3446 CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"`
3448 CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3450 if test "x
${GCJ_FOR_TARGET+set}" = xset; then
3452 elif test -d ${srcdir}/gcc; then
3453 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
3454 elif test "$host" = "$target"; then
3455 GCJ_FOR_TARGET='gcj'
3457 GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"`
3459 GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3461 if test "x
${GFORTRAN_FOR_TARGET+set}" = xset; then
3463 elif test -d ${srcdir}/gcc; then
3464 GFORTRAN_FOR_TARGET='$$r/gcc/gfortran -B$$r/gcc/'
3465 elif test "$host" = "$target"; then
3466 GFORTRAN_FOR_TARGET='gfortran'
3468 GFORTRAN_FOR_TARGET=`echo gfortran | sed "${program_transform_name}"`
3470 case $GFORTRAN_FOR_TARGET in
3471 *' $(FLAGS_FOR_TARGET)') ;;
3472 *) GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET' $(FLAGS_FOR_TARGET)' ;;
3475 # Don't use libstdc++-v3's flags to configure/build itself.
3476 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'
3477 raw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
3479 if test "x
${CXX_FOR_TARGET+set}" = xset; then
3480 if test "x
${RAW_CXX_FOR_TARGET+set}" != xset; then
3481 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3483 elif test -d ${srcdir}/gcc; then
3484 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
3485 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
3486 # default whereas gcc does not.
3487 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
3489 CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
3490 RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags
3491 elif test "$host" = "$target"; then
3492 CXX_FOR_TARGET='$(CXX)'
3493 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3495 CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"`
3496 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3498 CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3499 RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3501 qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3502 qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3504 # We want to defer the evaluation of `cmd`s and shell variables in
3505 # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
3506 # bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
3507 # quotes, but we still have to duplicate `$'s so that shell variables
3508 # can be expanded by the nested make as shell variables, not as make
3510 qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3511 qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3513 # Wrap CC_FOR_TARGET and friends, for certain types of builds.
3514 CC_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${CC_FOR_TARGET}"
3515 GCJ_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${GCJ_FOR_TARGET}"
3516 GFORTRAN_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${GFORTRAN_FOR_TARGET}"
3517 CXX_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${qCXX_FOR_TARGET}"
3518 RAW_CXX_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${qRAW_CXX_FOR_TARGET}"
3519 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$
(STAGE_CC_WRAPPER
) ${qqCXX_FOR_TARGET}"
3520 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$
(STAGE_CC_WRAPPER
) ${qqRAW_CXX_FOR_TARGET}"
3522 # Makefile fragments.
3523 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3525 eval fragval=\$$frag
3526 if test $fragval != /dev/null; then
3527 eval $frag=${srcdir}/$fragval
3535 # Miscellanea: directories, flags, etc.
3548 # Build module lists & subconfigure args.
3552 # Host module lists & subconfigure args.
3556 # Target module lists & subconfigure args.
3566 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3567 ncn_target_tool_prefix=
3568 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3570 if test -n "$ncn_tool_prefix"; then
3571 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
3572 set dummy ${ncn_tool_prefix}ar; ac_word=$2
3573 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3574 echo "configure
:3575: checking
for $ac_word" >&5
3575 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3576 echo $ac_n "(cached
) $ac_c" 1>&6
3578 if test -n "$AR"; then
3579 ac_cv_prog_AR="$AR" # Let the user override the test.
3581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3583 for ac_dir in $ac_dummy; do
3584 test -z "$ac_dir" && ac_dir=.
3585 if test -f $ac_dir/$ac_word; then
3586 ac_cv_prog_AR="${ncn_tool_prefix}ar"
3594 if test -n "$AR"; then
3595 echo "$ac_t""$AR" 1>&6
3597 echo "$ac_t""no
" 1>&6
3601 if test -z "$ac_cv_prog_AR" ; then
3602 if test $build = $host ; then
3604 # Extract the first word of "ar", so it can be a program name with args.
3605 set dummy ar; 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_ncn_cv_AR'+set}'`\" = set"; then
3609 echo $ac_n "(cached
) $ac_c" 1>&6
3611 if test -n "$ncn_cv_AR"; then
3612 ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # 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_ncn_cv_AR="ar"
3624 test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar"
3627 ncn_cv_AR="$ac_cv_prog_ncn_cv_AR"
3628 if test -n "$ncn_cv_AR"; then
3629 echo "$ac_t""$ncn_cv_AR" 1>&6
3631 echo "$ac_t""no
" 1>&6
3636 AR="${ncn_tool_prefix}ar"
3642 if test -n "$ncn_tool_prefix"; then
3643 # Extract the first word of "${ncn_tool_prefix}as
", so it can be a program name with args.
3644 set dummy ${ncn_tool_prefix}as; ac_word=$2
3645 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3646 echo "configure
:3647: checking
for $ac_word" >&5
3647 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3648 echo $ac_n "(cached
) $ac_c" 1>&6
3650 if test -n "$AS"; then
3651 ac_cv_prog_AS="$AS" # Let the user override the test.
3653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3655 for ac_dir in $ac_dummy; do
3656 test -z "$ac_dir" && ac_dir=.
3657 if test -f $ac_dir/$ac_word; then
3658 ac_cv_prog_AS="${ncn_tool_prefix}as
"
3666 if test -n "$AS"; then
3667 echo "$ac_t""$AS" 1>&6
3669 echo "$ac_t""no
" 1>&6
3673 if test -z "$ac_cv_prog_AS" ; then
3674 if test $build = $host ; then
3676 # Extract the first word of "as
", so it can be a program name with args.
3677 set dummy as; 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_ncn_cv_AS'+set}'`\" = set"; then
3681 echo $ac_n "(cached
) $ac_c" 1>&6
3683 if test -n "$ncn_cv_AS"; then
3684 ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # 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_ncn_cv_AS="as
"
3696 test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as
"
3699 ncn_cv_AS="$ac_cv_prog_ncn_cv_AS"
3700 if test -n "$ncn_cv_AS"; then
3701 echo "$ac_t""$ncn_cv_AS" 1>&6
3703 echo "$ac_t""no
" 1>&6
3708 AS="${ncn_tool_prefix}as
"
3714 if test -n "$ncn_tool_prefix"; then
3715 # Extract the first word of "${ncn_tool_prefix}dlltool
", so it can be a program name with args.
3716 set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
3717 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3718 echo "configure
:3719: checking
for $ac_word" >&5
3719 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3720 echo $ac_n "(cached
) $ac_c" 1>&6
3722 if test -n "$DLLTOOL"; then
3723 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3727 for ac_dir in $ac_dummy; do
3728 test -z "$ac_dir" && ac_dir=.
3729 if test -f $ac_dir/$ac_word; then
3730 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool
"
3737 DLLTOOL="$ac_cv_prog_DLLTOOL"
3738 if test -n "$DLLTOOL"; then
3739 echo "$ac_t""$DLLTOOL" 1>&6
3741 echo "$ac_t""no
" 1>&6
3745 if test -z "$ac_cv_prog_DLLTOOL" ; then
3746 if test $build = $host ; then
3747 ncn_cv_DLLTOOL=$DLLTOOL
3748 # Extract the first word of "dlltool
", so it can be a program name with args.
3749 set dummy dlltool; 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_ncn_cv_DLLTOOL'+set}'`\" = set"; then
3753 echo $ac_n "(cached
) $ac_c" 1>&6
3755 if test -n "$ncn_cv_DLLTOOL"; then
3756 ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # 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_ncn_cv_DLLTOOL="dlltool
"
3768 test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool
"
3771 ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL"
3772 if test -n "$ncn_cv_DLLTOOL"; then
3773 echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6
3775 echo "$ac_t""no
" 1>&6
3778 DLLTOOL=$ncn_cv_DLLTOOL
3780 DLLTOOL="${ncn_tool_prefix}dlltool
"
3783 DLLTOOL="$ac_cv_prog_DLLTOOL"
3786 if test -n "$ncn_tool_prefix"; then
3787 # Extract the first word of "${ncn_tool_prefix}ld
", so it can be a program name with args.
3788 set dummy ${ncn_tool_prefix}ld; ac_word=$2
3789 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3790 echo "configure
:3791: checking
for $ac_word" >&5
3791 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3792 echo $ac_n "(cached
) $ac_c" 1>&6
3794 if test -n "$LD"; then
3795 ac_cv_prog_LD="$LD" # Let the user override the test.
3797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3799 for ac_dir in $ac_dummy; do
3800 test -z "$ac_dir" && ac_dir=.
3801 if test -f $ac_dir/$ac_word; then
3802 ac_cv_prog_LD="${ncn_tool_prefix}ld
"
3810 if test -n "$LD"; then
3811 echo "$ac_t""$LD" 1>&6
3813 echo "$ac_t""no
" 1>&6
3817 if test -z "$ac_cv_prog_LD" ; then
3818 if test $build = $host ; then
3820 # Extract the first word of "ld
", so it can be a program name with args.
3821 set dummy ld; 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_ncn_cv_LD'+set}'`\" = set"; then
3825 echo $ac_n "(cached
) $ac_c" 1>&6
3827 if test -n "$ncn_cv_LD"; then
3828 ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # 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_ncn_cv_LD="ld
"
3840 test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld
"
3843 ncn_cv_LD="$ac_cv_prog_ncn_cv_LD"
3844 if test -n "$ncn_cv_LD"; then
3845 echo "$ac_t""$ncn_cv_LD" 1>&6
3847 echo "$ac_t""no
" 1>&6
3852 LD="${ncn_tool_prefix}ld
"
3858 if test -n "$ncn_tool_prefix"; then
3859 # Extract the first word of "${ncn_tool_prefix}nm
", so it can be a program name with args.
3860 set dummy ${ncn_tool_prefix}nm; ac_word=$2
3861 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3862 echo "configure
:3863: checking
for $ac_word" >&5
3863 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3864 echo $ac_n "(cached
) $ac_c" 1>&6
3866 if test -n "$NM"; then
3867 ac_cv_prog_NM="$NM" # Let the user override the test.
3869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3871 for ac_dir in $ac_dummy; do
3872 test -z "$ac_dir" && ac_dir=.
3873 if test -f $ac_dir/$ac_word; then
3874 ac_cv_prog_NM="${ncn_tool_prefix}nm
"
3882 if test -n "$NM"; then
3883 echo "$ac_t""$NM" 1>&6
3885 echo "$ac_t""no
" 1>&6
3889 if test -z "$ac_cv_prog_NM" ; then
3890 if test $build = $host ; then
3892 # Extract the first word of "nm
", so it can be a program name with args.
3893 set dummy nm; 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_ncn_cv_NM'+set}'`\" = set"; then
3897 echo $ac_n "(cached
) $ac_c" 1>&6
3899 if test -n "$ncn_cv_NM"; then
3900 ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # 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_ncn_cv_NM="nm
"
3912 test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm
"
3915 ncn_cv_NM="$ac_cv_prog_ncn_cv_NM"
3916 if test -n "$ncn_cv_NM"; then
3917 echo "$ac_t""$ncn_cv_NM" 1>&6
3919 echo "$ac_t""no
" 1>&6
3924 NM="${ncn_tool_prefix}nm
"
3930 if test -n "$ncn_tool_prefix"; then
3931 # Extract the first word of "${ncn_tool_prefix}ranlib
", so it can be a program name with args.
3932 set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3933 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3934 echo "configure
:3935: checking
for $ac_word" >&5
3935 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3936 echo $ac_n "(cached
) $ac_c" 1>&6
3938 if test -n "$RANLIB"; then
3939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3943 for ac_dir in $ac_dummy; do
3944 test -z "$ac_dir" && ac_dir=.
3945 if test -f $ac_dir/$ac_word; then
3946 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib
"
3953 RANLIB="$ac_cv_prog_RANLIB"
3954 if test -n "$RANLIB"; then
3955 echo "$ac_t""$RANLIB" 1>&6
3957 echo "$ac_t""no
" 1>&6
3961 if test -z "$ac_cv_prog_RANLIB" ; then
3962 if test $build = $host ; then
3963 ncn_cv_RANLIB=$RANLIB
3964 # Extract the first word of "ranlib
", so it can be a program name with args.
3965 set dummy ranlib; 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_ncn_cv_RANLIB'+set}'`\" = set"; then
3969 echo $ac_n "(cached
) $ac_c" 1>&6
3971 if test -n "$ncn_cv_RANLIB"; then
3972 ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # 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_ncn_cv_RANLIB="ranlib
"
3984 test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":"
3987 ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB"
3988 if test -n "$ncn_cv_RANLIB"; then
3989 echo "$ac_t""$ncn_cv_RANLIB" 1>&6
3991 echo "$ac_t""no
" 1>&6
3994 RANLIB=$ncn_cv_RANLIB
3999 RANLIB="$ac_cv_prog_RANLIB"
4002 if test -n "$ncn_tool_prefix"; then
4003 # Extract the first word of "${ncn_tool_prefix}windres
", so it can be a program name with args.
4004 set dummy ${ncn_tool_prefix}windres; ac_word=$2
4005 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4006 echo "configure
:4007: checking
for $ac_word" >&5
4007 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4008 echo $ac_n "(cached
) $ac_c" 1>&6
4010 if test -n "$WINDRES"; then
4011 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4015 for ac_dir in $ac_dummy; do
4016 test -z "$ac_dir" && ac_dir=.
4017 if test -f $ac_dir/$ac_word; then
4018 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres
"
4025 WINDRES="$ac_cv_prog_WINDRES"
4026 if test -n "$WINDRES"; then
4027 echo "$ac_t""$WINDRES" 1>&6
4029 echo "$ac_t""no
" 1>&6
4033 if test -z "$ac_cv_prog_WINDRES" ; then
4034 if test $build = $host ; then
4035 ncn_cv_WINDRES=$WINDRES
4036 # Extract the first word of "windres
", so it can be a program name with args.
4037 set dummy windres; 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_ncn_cv_WINDRES'+set}'`\" = set"; then
4041 echo $ac_n "(cached
) $ac_c" 1>&6
4043 if test -n "$ncn_cv_WINDRES"; then
4044 ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # 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_ncn_cv_WINDRES="windres
"
4056 test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres
"
4059 ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES"
4060 if test -n "$ncn_cv_WINDRES"; then
4061 echo "$ac_t""$ncn_cv_WINDRES" 1>&6
4063 echo "$ac_t""no
" 1>&6
4066 WINDRES=$ncn_cv_WINDRES
4068 WINDRES="${ncn_tool_prefix}windres
"
4071 WINDRES="$ac_cv_prog_WINDRES"
4074 if test -n "$ncn_tool_prefix"; then
4075 # Extract the first word of "${ncn_tool_prefix}objcopy
", so it can be a program name with args.
4076 set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
4077 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4078 echo "configure
:4079: checking
for $ac_word" >&5
4079 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4080 echo $ac_n "(cached
) $ac_c" 1>&6
4082 if test -n "$OBJCOPY"; then
4083 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4087 for ac_dir in $ac_dummy; do
4088 test -z "$ac_dir" && ac_dir=.
4089 if test -f $ac_dir/$ac_word; then
4090 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy
"
4097 OBJCOPY="$ac_cv_prog_OBJCOPY"
4098 if test -n "$OBJCOPY"; then
4099 echo "$ac_t""$OBJCOPY" 1>&6
4101 echo "$ac_t""no
" 1>&6
4105 if test -z "$ac_cv_prog_OBJCOPY" ; then
4106 if test $build = $host ; then
4107 ncn_cv_OBJCOPY=$OBJCOPY
4108 # Extract the first word of "objcopy
", so it can be a program name with args.
4109 set dummy objcopy; ac_word=$2
4110 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4111 echo "configure
:4112: checking
for $ac_word" >&5
4112 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
4113 echo $ac_n "(cached
) $ac_c" 1>&6
4115 if test -n "$ncn_cv_OBJCOPY"; then
4116 ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test.
4118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4120 for ac_dir in $ac_dummy; do
4121 test -z "$ac_dir" && ac_dir=.
4122 if test -f $ac_dir/$ac_word; then
4123 ac_cv_prog_ncn_cv_OBJCOPY="objcopy
"
4128 test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy
"
4131 ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY"
4132 if test -n "$ncn_cv_OBJCOPY"; then
4133 echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6
4135 echo "$ac_t""no
" 1>&6
4138 OBJCOPY=$ncn_cv_OBJCOPY
4140 OBJCOPY="${ncn_tool_prefix}objcopy
"
4143 OBJCOPY="$ac_cv_prog_OBJCOPY"
4146 if test -n "$ncn_tool_prefix"; then
4147 # Extract the first word of "${ncn_tool_prefix}objdump
", so it can be a program name with args.
4148 set dummy ${ncn_tool_prefix}objdump; ac_word=$2
4149 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4150 echo "configure
:4151: checking
for $ac_word" >&5
4151 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4152 echo $ac_n "(cached
) $ac_c" 1>&6
4154 if test -n "$OBJDUMP"; then
4155 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4159 for ac_dir in $ac_dummy; do
4160 test -z "$ac_dir" && ac_dir=.
4161 if test -f $ac_dir/$ac_word; then
4162 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump
"
4169 OBJDUMP="$ac_cv_prog_OBJDUMP"
4170 if test -n "$OBJDUMP"; then
4171 echo "$ac_t""$OBJDUMP" 1>&6
4173 echo "$ac_t""no
" 1>&6
4177 if test -z "$ac_cv_prog_OBJDUMP" ; then
4178 if test $build = $host ; then
4179 ncn_cv_OBJDUMP=$OBJDUMP
4180 # Extract the first word of "objdump
", so it can be a program name with args.
4181 set dummy objdump; ac_word=$2
4182 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4183 echo "configure
:4184: checking
for $ac_word" >&5
4184 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
4185 echo $ac_n "(cached
) $ac_c" 1>&6
4187 if test -n "$ncn_cv_OBJDUMP"; then
4188 ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test.
4190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4192 for ac_dir in $ac_dummy; do
4193 test -z "$ac_dir" && ac_dir=.
4194 if test -f $ac_dir/$ac_word; then
4195 ac_cv_prog_ncn_cv_OBJDUMP="objdump
"
4200 test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump
"
4203 ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP"
4204 if test -n "$ncn_cv_OBJDUMP"; then
4205 echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6
4207 echo "$ac_t""no
" 1>&6
4210 OBJDUMP=$ncn_cv_OBJDUMP
4212 OBJDUMP="${ncn_tool_prefix}objdump
"
4215 OBJDUMP="$ac_cv_prog_OBJDUMP"
4225 if test -n "$ncn_target_tool_prefix"; then
4226 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
4227 set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
4228 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4229 echo "configure
:4230: checking
for $ac_word" >&5
4230 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
4231 echo $ac_n "(cached
) $ac_c" 1>&6
4233 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4234 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="$CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
4236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4238 for ac_dir in $ac_dummy; do
4239 test -z "$ac_dir" && ac_dir=.
4240 if test -f $ac_dir/$ac_word; then
4241 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
4248 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
4249 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4250 echo "$ac_t""$CONFIGURED_AR_FOR_TARGET" 1>&6
4252 echo "$ac_t""no
" 1>&6
4256 if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then
4257 if test $build = $target ; then
4258 ncn_cv_CONFIGURED_AR_FOR_TARGET=$CONFIGURED_AR_FOR_TARGET
4259 # Extract the first word of "ar", so it can be a program name with args.
4260 set dummy ar; ac_word=$2
4261 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4262 echo "configure
:4263: checking
for $ac_word" >&5
4263 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
4264 echo $ac_n "(cached
) $ac_c" 1>&6
4266 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4267 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="$ncn_cv_CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
4269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4271 for ac_dir in $ac_dummy; do
4272 test -z "$ac_dir" && ac_dir=.
4273 if test -f $ac_dir/$ac_word; then
4274 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
4279 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
4282 ncn_cv_CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET"
4283 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4284 echo "$ac_t""$ncn_cv_CONFIGURED_AR_FOR_TARGET" 1>&6
4286 echo "$ac_t""no
" 1>&6
4289 CONFIGURED_AR_FOR_TARGET=$ncn_cv_CONFIGURED_AR_FOR_TARGET
4291 CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
4294 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
4297 if test -n "$ncn_target_tool_prefix"; then
4298 # Extract the first word of "${ncn_target_tool_prefix}as
", so it can be a program name with args.
4299 set dummy ${ncn_target_tool_prefix}as; ac_word=$2
4300 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4301 echo "configure
:4302: checking
for $ac_word" >&5
4302 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4303 echo $ac_n "(cached
) $ac_c" 1>&6
4305 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4306 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="$CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
4308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4310 for ac_dir in $ac_dummy; do
4311 test -z "$ac_dir" && ac_dir=.
4312 if test -f $ac_dir/$ac_word; then
4313 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as
"
4320 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4321 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4322 echo "$ac_t""$CONFIGURED_AS_FOR_TARGET" 1>&6
4324 echo "$ac_t""no
" 1>&6
4328 if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then
4329 if test $build = $target ; then
4330 ncn_cv_CONFIGURED_AS_FOR_TARGET=$CONFIGURED_AS_FOR_TARGET
4331 # Extract the first word of "as
", so it can be a program name with args.
4332 set dummy as; ac_word=$2
4333 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4334 echo "configure
:4335: checking
for $ac_word" >&5
4335 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4336 echo $ac_n "(cached
) $ac_c" 1>&6
4338 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4339 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="$ncn_cv_CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
4341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4343 for ac_dir in $ac_dummy; do
4344 test -z "$ac_dir" && ac_dir=.
4345 if test -f $ac_dir/$ac_word; then
4346 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as
"
4351 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as
"
4354 ncn_cv_CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET"
4355 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4356 echo "$ac_t""$ncn_cv_CONFIGURED_AS_FOR_TARGET" 1>&6
4358 echo "$ac_t""no
" 1>&6
4361 CONFIGURED_AS_FOR_TARGET=$ncn_cv_CONFIGURED_AS_FOR_TARGET
4363 CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as
"
4366 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4369 if test -n "$ncn_target_tool_prefix"; then
4370 # Extract the first word of "${ncn_target_tool_prefix}dlltool
", so it can be a program name with args.
4371 set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
4372 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4373 echo "configure
:4374: checking
for $ac_word" >&5
4374 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4375 echo $ac_n "(cached
) $ac_c" 1>&6
4377 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4378 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="$CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4382 for ac_dir in $ac_dummy; do
4383 test -z "$ac_dir" && ac_dir=.
4384 if test -f $ac_dir/$ac_word; then
4385 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool
"
4392 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4393 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4394 echo "$ac_t""$CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4396 echo "$ac_t""no
" 1>&6
4400 if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then
4401 if test $build = $target ; then
4402 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET=$CONFIGURED_DLLTOOL_FOR_TARGET
4403 # Extract the first word of "dlltool
", so it can be a program name with args.
4404 set dummy dlltool; ac_word=$2
4405 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4406 echo "configure
:4407: checking
for $ac_word" >&5
4407 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4408 echo $ac_n "(cached
) $ac_c" 1>&6
4410 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4411 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4415 for ac_dir in $ac_dummy; do
4416 test -z "$ac_dir" && ac_dir=.
4417 if test -f $ac_dir/$ac_word; then
4418 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool
"
4423 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool
"
4426 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"
4427 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4428 echo "$ac_t""$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4430 echo "$ac_t""no
" 1>&6
4433 CONFIGURED_DLLTOOL_FOR_TARGET=$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET
4435 CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool
"
4438 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4441 if test -n "$ncn_target_tool_prefix"; then
4442 # Extract the first word of "${ncn_target_tool_prefix}ld
", so it can be a program name with args.
4443 set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
4444 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4445 echo "configure
:4446: checking
for $ac_word" >&5
4446 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4447 echo $ac_n "(cached
) $ac_c" 1>&6
4449 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4450 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="$CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4454 for ac_dir in $ac_dummy; do
4455 test -z "$ac_dir" && ac_dir=.
4456 if test -f $ac_dir/$ac_word; then
4457 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld
"
4464 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4465 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4466 echo "$ac_t""$CONFIGURED_LD_FOR_TARGET" 1>&6
4468 echo "$ac_t""no
" 1>&6
4472 if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then
4473 if test $build = $target ; then
4474 ncn_cv_CONFIGURED_LD_FOR_TARGET=$CONFIGURED_LD_FOR_TARGET
4475 # Extract the first word of "ld
", so it can be a program name with args.
4476 set dummy ld; ac_word=$2
4477 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4478 echo "configure
:4479: checking
for $ac_word" >&5
4479 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4480 echo $ac_n "(cached
) $ac_c" 1>&6
4482 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4483 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="$ncn_cv_CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4487 for ac_dir in $ac_dummy; do
4488 test -z "$ac_dir" && ac_dir=.
4489 if test -f $ac_dir/$ac_word; then
4490 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld
"
4495 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld
"
4498 ncn_cv_CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET"
4499 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4500 echo "$ac_t""$ncn_cv_CONFIGURED_LD_FOR_TARGET" 1>&6
4502 echo "$ac_t""no
" 1>&6
4505 CONFIGURED_LD_FOR_TARGET=$ncn_cv_CONFIGURED_LD_FOR_TARGET
4507 CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld
"
4510 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4513 if test -n "$ncn_target_tool_prefix"; then
4514 # Extract the first word of "${ncn_target_tool_prefix}nm
", so it can be a program name with args.
4515 set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
4516 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4517 echo "configure
:4518: checking
for $ac_word" >&5
4518 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4519 echo $ac_n "(cached
) $ac_c" 1>&6
4521 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4522 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="$CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4524 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4526 for ac_dir in $ac_dummy; do
4527 test -z "$ac_dir" && ac_dir=.
4528 if test -f $ac_dir/$ac_word; then
4529 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm
"
4536 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4537 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4538 echo "$ac_t""$CONFIGURED_NM_FOR_TARGET" 1>&6
4540 echo "$ac_t""no
" 1>&6
4544 if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then
4545 if test $build = $target ; then
4546 ncn_cv_CONFIGURED_NM_FOR_TARGET=$CONFIGURED_NM_FOR_TARGET
4547 # Extract the first word of "nm
", so it can be a program name with args.
4548 set dummy nm; ac_word=$2
4549 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4550 echo "configure
:4551: checking
for $ac_word" >&5
4551 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4552 echo $ac_n "(cached
) $ac_c" 1>&6
4554 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4555 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="$ncn_cv_CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4559 for ac_dir in $ac_dummy; do
4560 test -z "$ac_dir" && ac_dir=.
4561 if test -f $ac_dir/$ac_word; then
4562 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm
"
4567 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm
"
4570 ncn_cv_CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET"
4571 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4572 echo "$ac_t""$ncn_cv_CONFIGURED_NM_FOR_TARGET" 1>&6
4574 echo "$ac_t""no
" 1>&6
4577 CONFIGURED_NM_FOR_TARGET=$ncn_cv_CONFIGURED_NM_FOR_TARGET
4579 CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm
"
4582 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4585 if test -n "$ncn_target_tool_prefix"; then
4586 # Extract the first word of "${ncn_target_tool_prefix}ranlib
", so it can be a program name with args.
4587 set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
4588 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4589 echo "configure
:4590: checking
for $ac_word" >&5
4590 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4591 echo $ac_n "(cached
) $ac_c" 1>&6
4593 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4594 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="$CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4598 for ac_dir in $ac_dummy; do
4599 test -z "$ac_dir" && ac_dir=.
4600 if test -f $ac_dir/$ac_word; then
4601 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib
"
4608 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4609 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4610 echo "$ac_t""$CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4612 echo "$ac_t""no
" 1>&6
4616 if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then
4617 if test $build = $target ; then
4618 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=$CONFIGURED_RANLIB_FOR_TARGET
4619 # Extract the first word of "ranlib
", so it can be a program name with args.
4620 set dummy ranlib; ac_word=$2
4621 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4622 echo "configure
:4623: checking
for $ac_word" >&5
4623 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4624 echo $ac_n "(cached
) $ac_c" 1>&6
4626 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4627 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4631 for ac_dir in $ac_dummy; do
4632 test -z "$ac_dir" && ac_dir=.
4633 if test -f $ac_dir/$ac_word; then
4634 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="ranlib
"
4639 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=":"
4642 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"
4643 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4644 echo "$ac_t""$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4646 echo "$ac_t""no
" 1>&6
4649 CONFIGURED_RANLIB_FOR_TARGET=$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET
4651 CONFIGURED_RANLIB_FOR_TARGET=":"
4654 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4657 if test -n "$ncn_target_tool_prefix"; then
4658 # Extract the first word of "${ncn_target_tool_prefix}windres
", so it can be a program name with args.
4659 set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
4660 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4661 echo "configure
:4662: checking
for $ac_word" >&5
4662 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4663 echo $ac_n "(cached
) $ac_c" 1>&6
4665 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4666 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="$CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4670 for ac_dir in $ac_dummy; do
4671 test -z "$ac_dir" && ac_dir=.
4672 if test -f $ac_dir/$ac_word; then
4673 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres
"
4680 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4681 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4682 echo "$ac_t""$CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4684 echo "$ac_t""no
" 1>&6
4688 if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then
4689 if test $build = $target ; then
4690 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET=$CONFIGURED_WINDRES_FOR_TARGET
4691 # Extract the first word of "windres
", so it can be a program name with args.
4692 set dummy windres; ac_word=$2
4693 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4694 echo "configure
:4695: checking
for $ac_word" >&5
4695 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4696 echo $ac_n "(cached
) $ac_c" 1>&6
4698 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4699 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4703 for ac_dir in $ac_dummy; do
4704 test -z "$ac_dir" && ac_dir=.
4705 if test -f $ac_dir/$ac_word; then
4706 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres
"
4711 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres
"
4714 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"
4715 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4716 echo "$ac_t""$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4718 echo "$ac_t""no
" 1>&6
4721 CONFIGURED_WINDRES_FOR_TARGET=$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET
4723 CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres
"
4726 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4740 # Fix up target tools.
4741 if test "x
${build}" = "x
${host}" ; then
4742 # In this case, the newly built tools can and should be used,
4743 # so we override the results of the autoconf tests.
4744 # This should really only happen when the tools are actually being built,
4745 # but that's a further refinement. The new build scheme, where
4746 # tools are built into a structure paralleling where they're installed,
4747 # should also eliminate all of this cleanly.
4748 AR_FOR_TARGET="\$
(USUAL_AR_FOR_TARGET
)"
4749 AS_FOR_TARGET="\$
(USUAL_AS_FOR_TARGET
)"
4750 DLLTOOL_FOR_TARGET="\$
(USUAL_DLLTOOL_FOR_TARGET
)"
4751 LD_FOR_TARGET="\$
(USUAL_LD_FOR_TARGET
)"
4752 NM_FOR_TARGET="\$
(USUAL_NM_FOR_TARGET
)"
4753 RANLIB_FOR_TARGET="\$
(USUAL_RANLIB_FOR_TARGET
)"
4754 WINDRES_FOR_TARGET="\$
(USUAL_WINDRES_FOR_TARGET
)"
4756 # Just use the ones we found.
4757 AR_FOR_TARGET="\$
(CONFIGURED_AR_FOR_TARGET
)"
4758 AS_FOR_TARGET="\$
(CONFIGURED_AS_FOR_TARGET
)"
4759 DLLTOOL_FOR_TARGET="\$
(CONFIGURED_DLLTOOL_FOR_TARGET
)"
4760 LD_FOR_TARGET="\$
(CONFIGURED_LD_FOR_TARGET
)"
4761 NM_FOR_TARGET="\$
(CONFIGURED_NM_FOR_TARGET
)"
4762 RANLIB_FOR_TARGET="\$
(CONFIGURED_RANLIB_FOR_TARGET
)"
4763 WINDRES_FOR_TARGET="\$
(CONFIGURED_WINDRES_FOR_TARGET
)"
4773 # Certain tools may need extra flags.
4774 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
4775 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
4776 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
4778 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
4779 echo "configure
:4780: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
4780 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4781 if test "${enable_maintainer_mode+set}" = set; then
4782 enableval="$enable_maintainer_mode"
4783 USE_MAINTAINER_MODE=$enableval
4785 USE_MAINTAINER_MODE=no
4788 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4791 if test "$USE_MAINTAINER_MODE" = yes; then
4792 MAINTAINER_MODE_TRUE=
4793 MAINTAINER_MODE_FALSE='#'
4795 MAINTAINER_MODE_TRUE='#'
4796 MAINTAINER_MODE_FALSE=
4798 MAINT=$MAINTAINER_MODE_TRUE
4800 # ---------------------
4801 # GCC bootstrap support
4802 # ---------------------
4804 # Stage specific cflags for build.
4809 yes) stage1_cflags="-g -Wa,-J" ;;
4810 *) stage1_cflags="-g -J" ;;
4813 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
4814 # sources; use -no-cpp-precomp to get to GNU cpp.
4815 # Apple's GCC has bugs in designated initializer handling, so disable
4817 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
4822 # It makes debugging easier if we create as symlinks the stage directories
4823 # gcc for stageN-gcc and stagePREV-gcc for stage(N-1). In case this is not
4824 # possible, however, we can resort to mv.
4825 echo $ac_n "checking
if symbolic links between directories work
""...
$ac_c" 1>&6
4826 echo "configure
:4827: checking
if symbolic links between directories work
" >&5
4827 if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
4828 echo $ac_n "(cached
) $ac_c" 1>&6
4830 if test "${LN_S}" = "ln -s" \
4831 && mkdir confdir.s1 \
4832 && ln -s confdir.s1 confdir.s2 \
4833 && echo timestamp1 > confdir.s1/conftest.1 \
4834 && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \
4835 && echo timestamp2 > confdir.s2/conftest.2 \
4836 && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \
4837 && rm -f confdir.s2; then
4838 gcc_cv_prog_ln_s_dir=yes
4840 gcc_cv_prog_ln_s_dir=yes
4842 rm -rf confdir.s1 confdir.s2
4845 echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6
4847 case ${gcc_cv_prog_ln_s_dir} in
4849 CREATE_LINK_TO_DIR='ln -s $$1 $$2'
4850 UNDO_LINK_TO_DIR='rm -f $$1' ;;
4852 CREATE_LINK_TO_DIR='mv $$1 $$2'
4853 UNDO_LINK_TO_DIR='mv $$1 $$2' ;;
4858 # Enable -Werror in bootstrap stage2 and later.
4859 # Change the default to "no
" on release branches.
4860 # Check whether --enable-werror or --disable-werror was given.
4861 if test "${enable_werror+set}" = set; then
4862 enableval="$enable_werror"
4868 case ${enable_werror} in
4869 yes) stage2_werror_flag="--enable-werror-always" ;;
4870 *) stage2_werror_flag="" ;;
4875 cat > confcache <<\EOF
4876 # This file is a shell script that caches the results of configure
4877 # tests run on this system so they can be shared between configure
4878 # scripts and configure runs. It is not useful on other systems.
4879 # If it contains results you don't want to keep, you may remove or edit it.
4881 # By default, configure uses ./config.cache as the cache file,
4882 # creating it if it does not exist already. You can give configure
4883 # the --cache-file=FILE option to use a different cache file; that is
4884 # what configure does when it calls configure scripts in
4885 # subdirectories, so they share the cache.
4886 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4887 # config.status only pays attention to the cache file if you give it the
4888 # --recheck option to rerun configure.
4891 # The following way of writing the cache mishandles newlines in values,
4892 # but we know of no workaround that is simple, portable, and efficient.
4893 # So, don't put newlines in cache variables' values.
4894 # Ultrix sh set writes to stderr and can't be redirected directly,
4895 # and sets the high bit in the cache file unless we assign to the vars.
4897 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4899 # `set' does not quote correctly, so add quotes (double-quote substitution
4900 # turns \\\\ into \\, and sed turns \\ into \).
4902 -e "s
/'/'\\\\''/g
" \
4903 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
4906 # `set' quotes correctly as required by POSIX, so do not add quotes.
4907 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4910 if cmp -s $cache_file confcache; then
4913 if test -w $cache_file; then
4914 echo "updating cache
$cache_file"
4915 cat confcache > $cache_file
4917 echo "not updating unwritable cache
$cache_file"
4922 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4924 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
4925 # Let make expand exec_prefix.
4926 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
4928 # Any assignment to VPATH causes Sun make to only execute
4929 # the first set of double-colon rules, so remove it if not needed.
4930 # If there is a colon in the path, we need to keep it.
4931 if test "x
$srcdir" = x.; then
4932 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4935 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4937 # Transform confdefs.h into DEFS.
4938 # Protect against shell expansion while executing Makefile rules.
4939 # Protect against Makefile macro expansion.
4940 cat > conftest.defs <<\EOF
4941 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4942 s%[ `~#$^&*(){}\\|;'"<>?
]%\\&%g
4947 DEFS
=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4951 # Without the "./", some shells look in PATH for config.status.
4952 : ${CONFIG_STATUS=./config.status}
4954 echo creating
$CONFIG_STATUS
4955 rm -f $CONFIG_STATUS
4956 cat > $CONFIG_STATUS <<EOF
4958 # Generated automatically by configure.
4959 # Run this file to recreate the current configuration.
4960 # This directory was configured as follows,
4961 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4963 # $0 $ac_configure_args
4965 # Compiler output produced by configure, useful for debugging
4966 # configure, is in ./config.log if it exists.
4968 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4971 case "\$ac_option" in
4972 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4973 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4974 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4975 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4976 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4978 -help | --help | --hel | --he | --h)
4979 echo "\$ac_cs_usage"; exit 0 ;;
4980 *) echo "\$ac_cs_usage"; exit 1 ;;
4984 ac_given_srcdir=$srcdir
4985 ac_given_INSTALL="$INSTALL"
4987 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4989 cat >> $CONFIG_STATUS <<EOF
4991 # Protect against being on the right side of a sed subst in config.status.
4992 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4993 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4997 s%@CFLAGS@%$CFLAGS%g
4998 s%@CPPFLAGS@%$CPPFLAGS%g
4999 s%@CXXFLAGS@%$CXXFLAGS%g
5000 s%@FFLAGS@%$FFLAGS%g
5002 s%@LDFLAGS@%$LDFLAGS%g
5004 s%@exec_prefix@%$exec_prefix%g
5005 s%@prefix@%$prefix%g
5006 s%@program_transform_name@%$program_transform_name%g
5007 s%@bindir@%$bindir%g
5008 s%@sbindir@%$sbindir%g
5009 s%@libexecdir@%$libexecdir%g
5010 s%@datadir@%$datadir%g
5011 s%@sysconfdir@%$sysconfdir%g
5012 s%@sharedstatedir@%$sharedstatedir%g
5013 s%@localstatedir@%$localstatedir%g
5014 s%@libdir@%$libdir%g
5015 s%@includedir@%$includedir%g
5016 s%@oldincludedir@%$oldincludedir%g
5017 s%@infodir@%$infodir%g
5018 s%@mandir@%$mandir%g
5020 s%@host_alias@%$host_alias%g
5021 s%@host_cpu@%$host_cpu%g
5022 s%@host_vendor@%$host_vendor%g
5023 s%@host_os@%$host_os%g
5024 s%@target@%$target%g
5025 s%@target_alias@%$target_alias%g
5026 s%@target_cpu@%$target_cpu%g
5027 s%@target_vendor@%$target_vendor%g
5028 s%@target_os@%$target_os%g
5030 s%@build_alias@%$build_alias%g
5031 s%@build_cpu@%$build_cpu%g
5032 s%@build_vendor@%$build_vendor%g
5033 s%@build_os@%$build_os%g
5034 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5035 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5036 s%@INSTALL_DATA@%$INSTALL_DATA%g
5039 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
5040 s%@build_subdir@%$build_subdir%g
5041 s%@host_subdir@%$host_subdir%g
5042 s%@target_subdir@%$target_subdir%g
5044 s%@GNATBIND@%$GNATBIND%g
5045 s%@do_compare@%$do_compare%g
5046 s%@gmplibs@%$gmplibs%g
5047 s%@gmpinc@%$gmpinc%g
5048 s%@stage1_languages@%$stage1_languages%g
5049 s%@CONFIGURED_BISON@%$CONFIGURED_BISON%g
5050 s%@CONFIGURED_YACC@%$CONFIGURED_YACC%g
5051 s%@CONFIGURED_M4@%$CONFIGURED_M4%g
5052 s%@CONFIGURED_FLEX@%$CONFIGURED_FLEX%g
5053 s%@CONFIGURED_LEX@%$CONFIGURED_LEX%g
5054 s%@CONFIGURED_MAKEINFO@%$CONFIGURED_MAKEINFO%g
5055 s%@bootstrap_lean@%$bootstrap_lean%g
5056 s%@default_target@%$default_target%g
5057 /@serialization_dependencies@/r $serialization_dependencies
5058 s%@serialization_dependencies@%%g
5059 /@host_makefile_frag@/r $host_makefile_frag
5060 s%@host_makefile_frag@%%g
5061 /@target_makefile_frag@/r $target_makefile_frag
5062 s%@target_makefile_frag@%%g
5063 /@alphaieee_frag@/r $alphaieee_frag
5064 s%@alphaieee_frag@%%g
5065 /@ospace_frag@/r $ospace_frag
5067 s%@SET_LIB_PATH@%$SET_LIB_PATH%g
5068 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
5069 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
5070 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
5071 s%@gcc_version_trigger@%$gcc_version_trigger%g
5072 s%@gcc_version@%$gcc_version%g
5073 s%@tooldir@%$tooldir%g
5074 s%@build_tooldir@%$build_tooldir%g
5075 s%@GDB_TK@%$GDB_TK%g
5076 s%@gxx_include_dir@%$gxx_include_dir%g
5077 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
5078 s%@build_configargs@%$build_configargs%g
5079 s%@build_configdirs@%$build_configdirs%g
5080 s%@host_configargs@%$host_configargs%g
5081 s%@configdirs@%$configdirs%g
5082 s%@target_configargs@%$target_configargs%g
5083 s%@target_configdirs@%$target_configdirs%g
5084 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5085 s%@config_shell@%$config_shell%g
5087 s%@ncn_cv_AR@%$ncn_cv_AR%g
5089 s%@ncn_cv_AS@%$ncn_cv_AS%g
5090 s%@DLLTOOL@%$DLLTOOL%g
5091 s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g
5093 s%@ncn_cv_LD@%$ncn_cv_LD%g
5095 s%@ncn_cv_NM@%$ncn_cv_NM%g
5096 s%@RANLIB@%$RANLIB%g
5097 s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g
5098 s%@WINDRES@%$WINDRES%g
5099 s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g
5100 s%@OBJCOPY@%$OBJCOPY%g
5101 s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g
5102 s%@OBJDUMP@%$OBJDUMP%g
5103 s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g
5105 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
5106 s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
5107 s%@ncn_cv_CONFIGURED_AR_FOR_TARGET@%$ncn_cv_CONFIGURED_AR_FOR_TARGET%g
5108 s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
5109 s%@ncn_cv_CONFIGURED_AS_FOR_TARGET@%$ncn_cv_CONFIGURED_AS_FOR_TARGET%g
5110 s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
5111 s%@ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET@%$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET%g
5112 s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
5113 s%@ncn_cv_CONFIGURED_LD_FOR_TARGET@%$ncn_cv_CONFIGURED_LD_FOR_TARGET%g
5114 s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
5115 s%@ncn_cv_CONFIGURED_NM_FOR_TARGET@%$ncn_cv_CONFIGURED_NM_FOR_TARGET%g
5116 s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
5117 s%@ncn_cv_CONFIGURED_RANLIB_FOR_TARGET@%$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET%g
5118 s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
5119 s%@ncn_cv_CONFIGURED_WINDRES_FOR_TARGET@%$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET%g
5120 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
5121 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
5122 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
5123 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
5124 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
5125 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
5126 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
5127 s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
5128 s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
5129 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
5130 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
5131 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
5132 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
5133 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
5134 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
5135 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
5136 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5137 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5139 s%@stage1_cflags@%$stage1_cflags%g
5140 s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g
5141 s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g
5142 s%@stage2_werror_flag@%$stage2_werror_flag%g
5147 cat >> $CONFIG_STATUS <<\EOF
5149 # Split the substitutions into bite-sized pieces for seds with
5150 # small command number limits, like on Digital OSF/1 and HP-UX.
5151 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5152 ac_file
=1 # Number of current file.
5153 ac_beg
=1 # First line for current file.
5154 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5157 while $ac_more_lines; do
5158 if test $ac_beg -gt 1; then
5159 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5161 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5163 if test ! -s conftest.s
$ac_file; then
5165 rm -f conftest.s
$ac_file
5167 if test -z "$ac_sed_cmds"; then
5168 ac_sed_cmds
="sed -f conftest.s$ac_file"
5170 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5172 ac_file
=`expr $ac_file + 1`
5174 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5177 if test -z "$ac_sed_cmds"; then
5182 cat >> $CONFIG_STATUS <<EOF
5184 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5186 cat >> $CONFIG_STATUS <<\EOF
5187 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5188 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5190 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5191 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5192 *) ac_file_in
="${ac_file}.in" ;;
5195 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5197 # Remove last slash and all that follows it. Not all systems have dirname.
5198 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5199 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5200 # The file is in a subdirectory.
5201 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5202 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5203 # A "../" for each directory in $ac_dir_suffix.
5204 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5206 ac_dir_suffix
= ac_dots
=
5209 case "$ac_given_srcdir" in
5211 if test -z "$ac_dots"; then top_srcdir
=.
5212 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5213 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5215 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5216 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5219 case "$ac_given_INSTALL" in
5220 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5221 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5224 echo creating
"$ac_file"
5226 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5228 *Makefile
*) ac_comsub
="1i\\
5229 # $configure_input" ;;
5233 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5235 s%@configure_input@%$configure_input%g
5236 s%@srcdir@%$srcdir%g
5237 s%@top_srcdir@%$top_srcdir%g
5238 s%@INSTALL@%$INSTALL%g
5239 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5244 cat >> $CONFIG_STATUS <<EOF
5247 cat >> $CONFIG_STATUS <<\EOF
5251 chmod +x
$CONFIG_STATUS
5252 rm -fr confdefs
* $ac_clean_files
5253 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1