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 --enable-libada Builds libada directory"
17 --enable-libssp Builds libssp 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 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
840 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
842 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
843 INSTALL
="${srcpwd}/install-sh -c"
846 # Set srcdir to "." if that's what it is.
847 # This is important for multilib support.
849 if test "${pwd}" = "${srcpwd}" ; then
857 ### To add a new directory to the tree, first choose whether it is a target
858 ### or a host dependent tool. Then put it into the appropriate list
859 ### (library or tools, host or target), doing a dependency sort.
861 # Subdirs will be configured in the order listed in build_configdirs,
862 # configdirs, or target_configdirs; see the serialization section below.
864 # Dependency sorting is only needed when *configuration* must be done in
865 # a particular order. In all cases a dependency should be specified in
866 # the Makefile, whether or not it's implicitly specified here.
868 # Double entries in build_configdirs, configdirs, or target_configdirs may
869 # cause circular dependencies and break everything horribly.
871 # these library is used by various programs built for the build
874 build_libs
="build-libiberty"
876 # these tools are built for the build environment
877 build_tools
="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
879 # these libraries are used by various programs built for the host environment
881 host_libs
="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp"
883 # these tools are built for the host environment
884 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
885 # know that we are building the simulator.
886 # binutils, gas and ld appear in that order because it makes sense to run
887 # "make check" in that particular order.
888 host_tools
="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
890 # libgcj represents the runtime libraries only used by gcj.
891 libgcj
="target-libffi \
897 # these libraries are built for the target environment, and are built after
898 # the host libraries and the host tools (which may be a cross compiler)
900 target_libraries
="target-libiberty \
903 target-libstdc++-v3 \
911 # these tools are built using the target libraries, and are intended to
912 # run only in the target environment
914 # note: any program that *uses* libraries that are in the "target_libraries"
915 # list belongs in this list. those programs are also very likely
916 # candidates for the "native_only" list which follows
918 target_tools
="target-examples target-groff target-gperf target-rda"
920 ################################################################################
922 ## All tools belong in one of the four categories, and are assigned above
923 ## We assign ${configdirs} this way to remove all embedded newlines. This
924 ## is important because configure will choke if they ever get through.
925 ## ${configdirs} is directories we build using the host tools.
926 ## ${target_configdirs} is directories we build using the target tools.
927 configdirs
=`echo ${host_libs} ${host_tools}`
928 target_configdirs
=`echo ${target_libraries} ${target_tools}`
929 build_configdirs
=`echo ${build_libs} ${build_tools}`
931 ################################################################################
933 srcname
="gnu development package"
935 # This gets set non-empty for some net releases of packages.
938 # Define is_cross_compiler to save on calls to 'test'.
940 if test x
"${host}" = x
"${target}" ; then
943 is_cross_compiler
=yes
946 # Find the build and target subdir names.
947 case ${build_alias} in
948 "") build_noncanonical
=${build} ;;
949 *) build_noncanonical
=${build_alias} ;;
952 case ${host_alias} in
953 "") host_noncanonical
=${build_noncanonical} ;;
954 *) host_noncanonical
=${host_alias} ;;
957 case ${target_alias} in
958 "") target_noncanonical
=${host_noncanonical} ;;
959 *) target_noncanonical
=${target_alias} ;;
962 # Prefix 'build-' so this never conflicts with target_subdir.
963 build_subdir
="build-${build_noncanonical}"
964 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
965 if ( test $srcdir = .
&& test -d gcc
) \
966 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
967 host_subdir
="host-${host_noncanonical}"
972 target_subdir
=${target_noncanonical}
975 # Skipdirs are removed silently.
977 # Noconfigdirs are removed loudly.
981 # Make sure we don't let GNU ld be added if we didn't want it.
982 if test x
$with_gnu_ld = xno
; then
984 noconfigdirs
="$noconfigdirs ld"
988 # Make sure we don't let GNU as be added if we didn't want it.
989 if test x
$with_gnu_as = xno
; then
991 noconfigdirs
="$noconfigdirs gas"
994 # some tools are so dependent upon X11 that if we're not building with X,
995 # it's not even worth trying to configure, much less build, that tool.
998 yes |
"") ;; # the default value for this tree is that X11 is available
1000 skipdirs
="${skipdirs} tk itcl libgui"
1001 # We won't be able to build gdbtk without X.
1004 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1007 # Some tools are only suitable for building in a "native" situation.
1008 # Remove these if host!=target.
1009 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"
1011 # Similarly, some are only suitable for cross toolchains.
1012 # Remove these if host=target.
1013 cross_only
="target-libgloss target-newlib target-opcodes"
1015 case $is_cross_compiler in
1016 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
1017 yes) skipdirs
="${skipdirs} ${native_only}" ;;
1020 # If both --with-headers and --with-libs are specified, default to
1022 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
1023 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
1024 if test x
"${with_newlib}" = x
; then
1029 # Recognize --with-newlib/--without-newlib.
1030 case ${with_newlib} in
1031 no
) skipdirs
="${skipdirs} target-newlib" ;;
1032 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1035 # Configure extra directories which are host specific
1039 configdirs
="$configdirs libtermcap" ;;
1042 # A target can indicate whether a language isn't supported for some reason.
1043 # Only spaces may be used in this macro; not newlines or tabs.
1044 unsupported_languages
=
1046 # Remove more programs from consideration, based on the host or
1047 # target this usually means that a port of the program doesn't
1052 noconfigdirs
="$noconfigdirs byacc"
1054 i
[3456789]86-*-vsta)
1055 noconfigdirs
="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1057 i
[3456789]86-*-go32* | i
[3456789]86-*-msdosdjgpp*)
1058 noconfigdirs
="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1060 i
[3456789]86-*-mingw32*)
1061 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1062 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1064 i
[3456789]86-*-beos*)
1065 noconfigdirs
="$noconfigdirs tk itcl libgui gdb"
1068 noconfigdirs
="$noconfigdirs autoconf automake send-pr rcs guile perl"
1071 noconfigdirs
="$noconfigdirs rcs"
1074 noconfigdirs
="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1077 noconfigdirs
="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1082 # Check whether --enable-libada or --disable-libada was given.
1083 if test "${enable_libada+set}" = set; then
1084 enableval
="$enable_libada"
1085 ENABLE_LIBADA
=$enableval
1090 if test "${ENABLE_LIBADA}" != "yes" ; then
1091 noconfigdirs
="$noconfigdirs target-libada"
1092 noconfigdirs
="$noconfigdirs gnattools"
1095 # Check whether --enable-libssp or --disable-libssp was given.
1096 if test "${enable_libssp+set}" = set; then
1097 enableval
="$enable_libssp"
1098 ENABLE_LIBSSP
=$enableval
1103 if test "${ENABLE_LIBSSP}" != "yes" ; then
1104 noconfigdirs
="$noconfigdirs target-libssp"
1107 # Save it here so that, even in case of --enable-libgcj, if the Java
1108 # front-end isn't enabled, we still get libgcj disabled.
1109 libgcj_saved
=$libgcj
1110 case $enable_libgcj in
1112 # If we reset it here, it won't get added to noconfigdirs in the
1113 # target-specific build rules, so it will be forcibly enabled
1114 # (unless the Java language itself isn't enabled).
1118 # Make sure we get it printed in the list of not supported target libs.
1119 noconfigdirs
="$noconfigdirs ${libgcj}"
1124 # Allow --disable-libmudflap to exclude target-libmudflap
1125 case $enable_libmudflap in
1129 noconfigdirs
="$noconfigdirs target-libmudflap"
1133 *-*-linux*-gnu |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1134 # Enable libmudflap by default in GNU and friends.
1137 # Enable libmudflap by default in FreeBSD.
1140 # Disable it by default everywhere else.
1141 noconfigdirs
="$noconfigdirs target-libmudflap"
1149 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1152 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1153 noconfigdirs
="$noconfigdirs sim target-rda"
1156 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1157 noconfigdirs
="$noconfigdirs sim target-rda"
1158 noconfigdirs
="$noconfigdirs ${libgcj}"
1160 *-*-freebsd[12] |
*-*-freebsd[12].
* |
*-*-freebsd*aout
*)
1161 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1164 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1165 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
1166 && test -f /usr
/local
/include
/gmp.h
; then
1170 # Skip some stuff that's unsupported on some FreeBSD configurations.
1175 noconfigdirs
="$noconfigdirs ${libgcj}"
1180 # Remove unsupported stuff on all kaOS configurations.
1181 skipdirs
="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1182 skipdirs
="$skipdirs target-libobjc target-examples target-groff target-gperf"
1183 skipdirs
="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1184 noconfigdirs
="$noconfigdirs target-libgloss"
1187 # Skip some stuff on all NetBSD configurations.
1188 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss"
1190 # Skip some stuff that's unsupported on some NetBSD configurations.
1192 i
*86-*-netbsdelf*) ;;
1193 arm
*-*-netbsdelf*) ;;
1195 noconfigdirs
="$noconfigdirs ${libgcj}"
1200 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1203 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1205 # The tpf target doesn't support gdb yet.
1207 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1210 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1213 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}"
1216 # ld works, but does not support shared libraries.
1217 # newlib is not 64 bit ready. I'm not sure about fileutils.
1218 # gas doesn't generate exception information.
1219 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1222 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1225 # newlib is not 64 bit ready
1226 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1229 # newlib is not 64 bit ready
1230 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1233 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1236 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1238 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
1239 noconfigdirs
="$noconfigdirs ${libgcj}"
1240 noconfigdirs
="$noconfigdirs target-examples"
1241 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
1242 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
1243 noconfigdirs
="$noconfigdirs expect dejagnu"
1244 # the C++ libraries don't build on top of CE's C libraries
1245 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1246 noconfigdirs
="$noconfigdirs target-newlib"
1248 *-*-cygwin*) ;; # keep gdb and readline
1249 *) noconfigdirs
="$noconfigdirs gdb readline"
1254 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1258 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
1259 noconfigdirs
="$noconfigdirs ${libgcj}"
1261 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf* | arm
*-*-eabi* )
1262 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1265 noconfigdirs
="$noconfigdirs ${libgcj} target-libiberty"
1268 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1271 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1274 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1277 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1280 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1283 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1285 c4x-
*-* | tic4x-
*-*)
1286 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1288 c54x
*-*-* | tic54x-
*-*)
1289 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1291 cris-
*-* | crisv32-
*-*)
1292 unsupported_languages
="$unsupported_languages java"
1295 unsupported_languages
="$unsupported_languages f95"
1296 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc";;
1298 unsupported_languages
="$unsupported_languages f95"
1299 noconfigdirs
="$noconfigdirs target-boehm-gc";;
1301 noconfigdirs
="$noconfigdirs target-newlib target-libgloss";;
1303 unsupported_languages
="$unsupported_languages f95"
1304 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1308 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1311 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1314 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1317 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1320 noconfigdirs
="$noconfigdirs ${libgcj}"
1323 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1326 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1328 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
1330 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
1331 # In this case, it's because the hppa64-linux target is for
1332 # the kernel only at this point and has no libc, and thus no
1333 # headers, crt*.o, etc., all of which are needed by these.
1334 noconfigdirs
="$noconfigdirs target-zlib"
1336 parisc
*-*-linux* | hppa
*-*-linux*)
1340 hppa
*-*-openbsd* | \
1342 noconfigdirs
="$noconfigdirs ${libgcj}"
1345 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1346 # build on HP-UX 10.20.
1347 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
1350 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1353 # No gdb support yet.
1354 noconfigdirs
="$noconfigdirs readline mmalloc libgui itcl gdb"
1357 # No gdb or ld support yet.
1358 noconfigdirs
="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1362 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
1363 noconfigdirs
="$noconfigdirs ${libgcj}"
1365 i
[3456789]86-*-linux*)
1366 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1367 # not build java stuff by default.
1370 noconfigdirs
="$noconfigdirs ${libgcj}";;
1373 # This section makes it possible to build newlib natively on linux.
1374 # If we are using a cross compiler then don't configure newlib.
1375 if test x
${is_cross_compiler} != xno
; then
1376 noconfigdirs
="$noconfigdirs target-newlib"
1378 noconfigdirs
="$noconfigdirs target-libgloss"
1379 # If we are not using a cross compiler, do configure newlib.
1380 # Note however, that newlib will only be configured in this situation
1381 # if the --with-newlib option has been given, because otherwise
1382 # 'target-newlib' will appear in skipdirs.
1384 i
[3456789]86-*-mingw32*)
1385 target_configdirs
="$target_configdirs target-mingw"
1386 noconfigdirs
="$noconfigdirs expect target-libgloss ${libgcj}"
1388 # Can't build gdb for mingw32 if not native.
1390 i
[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1391 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1396 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
1397 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1398 # always build newlib if winsup directory is present.
1399 if test -d "$srcdir/winsup"; then
1400 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1401 elif test -d "$srcdir/newlib"; then
1402 echo "Warning: winsup is missing so newlib can't be built."
1405 # Can't build gdb for Cygwin if not native.
1407 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1408 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1412 i
[3456789]86-moss-msdos | i
[3456789]86-*-moss* | \
1413 i
[3456789]86-*-uwin* | i
[3456789]86-*-interix* )
1416 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1418 i
[3456789]86-*-sco3.2v5
*)
1419 # The linker does not yet know about weak symbols in COFF,
1420 # and is not configured to handle mixed ELF and COFF.
1421 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1423 i
[3456789]86-*-sco*)
1424 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1426 i
[3456789]86-*-solaris2*)
1427 noconfigdirs
="$noconfigdirs target-libgloss"
1429 i
[3456789]86-*-sysv4*)
1430 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1432 i
[3456789]86-*-beos*)
1433 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1436 noconfigdirs
="$noconfigdirs ${libgcj}"
1438 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
1439 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1442 noconfigdirs
="$noconfigdirs ${libgcj}"
1445 noconfigdirs
="$noconfigdirs ${libgcj}"
1448 # The EPOC C++ environment does not support exceptions or rtti,
1449 # and so building libstdc++-v3 tends not to always work.
1450 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1453 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1454 unsupported_languages
="$unsupported_languages f95 java"
1457 noconfigdirs
="$noconfigdirs ${libgcj}"
1460 noconfigdirs
="$noconfigdirs ${libgcj}"
1463 noconfigdirs
="$noconfigdirs sim"
1466 # copied from rs6000-*-* entry
1467 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1469 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
1470 target_configdirs
="$target_configdirs target-winsup"
1471 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1472 # always build newlib.
1473 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1475 # This is temporary until we can link against shared libraries
1476 powerpcle-
*-solaris*)
1477 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1480 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1483 noconfigdirs
="$noconfigdirs ${libgcj}"
1485 powerpc-
*-eabi* | powerpcle-
*-eabi* | powerpc-
*-rtems* )
1488 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
1491 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1494 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1497 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1500 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1503 # Linking libjava exceeds command-line length limits on at least
1504 # IRIX 6.2, but not on IRIX 6.5.
1505 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1506 # <oldham@codesourcery.com>
1507 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1510 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1513 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1516 noconfigdirs
="$noconfigdirs gprof ${libgcj}" # same as generic mips
1519 noconfigdirs
="$noconfigdirs target-newlib ${libgcj}"
1522 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1525 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1528 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1532 i
[3456789]86-*-vsta) ;; # don't add gprof back in
1533 i
[3456789]86-*-go32*) ;; # don't add gprof back in
1534 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1535 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1537 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1540 noconfigdirs
="$noconfigdirs ${libgcj}"
1543 noconfigdirs
="$noconfigdirs ${libgcj}"
1546 noconfigdirs
="$noconfigdirs ${libgcj}"
1549 noconfigdirs
="$noconfigdirs ${libgcj}"
1550 if test x
${is_cross_compiler} != xno
; then
1551 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1556 sparc-
*-solaris2.
[0-6] | sparc-
*-solaris2.
[0-6].
*)
1557 noconfigdirs
="$noconfigdirs ${libgcj}"
1559 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
1562 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1565 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1568 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1571 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1574 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1577 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1580 noconfigdirs
="$noconfigdirs ${libgcj}"
1583 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1585 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1586 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1589 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1592 noconfigdirs
="$noconfigdirs ${libgcj}"
1596 # If we aren't building newlib, then don't build libgloss, since libgloss
1597 # depends upon some newlib header files.
1598 case "${noconfigdirs}" in
1599 *target-libgloss
*) ;;
1600 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
1603 # Work in distributions that contain no compiler tools, like Autoconf.
1605 host_makefile_frag
=/dev
/null
1606 if test -d ${srcdir}/config
; then
1609 # Avoid "too much defining" errors from HPUX compiler.
1610 tentative_cc
="cc -Wp,-H256000"
1611 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1612 # If it's HP/UX ar, this should be harmless.
1616 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1619 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1620 # chokes on bfd, the compiler won't let you assign integers to enums, and
1621 # other problems. Defining CC to gcc is a questionable way to say "don't use
1622 # the apollo compiler" (the preferred version of GCC could be called cc,
1623 # or whatever), but I'm not sure leaving CC as cc is any better...
1624 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1625 # Used to have BISON=yacc.
1629 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1632 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1633 tentative_cc
="cc -Xa"
1634 host_makefile_frag
="config/mh-cxux"
1636 m88k-motorola-sysv
*)
1639 tentative_cc
="cc -Wf,-XNg1000"
1640 host_makefile_frag
="config/mh-decstation"
1643 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1644 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
1645 host_makefile_frag
="config/mh-necv4"
1648 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1649 # environment. Also bump switch table size so that cp-parse will
1650 # compile. Bump string length limit so linker builds.
1651 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1654 host_makefile_frag
="config/mh-sysv4"
1657 # This is for a MIPS running RISC/os 4.52C.
1659 # This is needed for GDB, but needs to be in the top-level make because
1660 # if a library is compiled with the bsd headers and gets linked with the
1661 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1662 # a different size).
1663 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1664 # known except to select the sysv environment. Could we use /proc instead?
1665 # These "sysv environments" and "bsd environments" often end up being a pain.
1667 # This is not part of CFLAGS because perhaps not all C compilers have this
1669 tentative_cc
="cc -systype sysv"
1674 i
[3456789]86-*-sysv5*)
1675 host_makefile_frag
="config/mh-sysv5"
1677 i
[3456789]86-*-dgux*)
1678 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1679 host_makefile_frag
="config/mh-dgux386"
1681 i
[3456789]86-ncr-sysv4.3
*)
1682 # The MetaWare compiler will generate a copyright message unless you
1683 # turn it off by adding the -Hnocopyr flag.
1684 tentative_cc
="cc -Hnocopyr"
1686 i
[3456789]86-ncr-sysv4*)
1687 # for an NCR 3000 (i486/SVR4) system.
1688 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1689 # This compiler not only emits obnoxious copyright messages every time
1690 # you run it, but it chokes and dies on a whole bunch of GNU source
1691 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1692 tentative_cc
="/usr/ccs/ATT/cc"
1693 host_makefile_frag
="config/mh-ncr3000"
1695 i
[3456789]86-*-sco3.2v5
*)
1697 i
[3456789]86-*-sco*)
1698 # The native C compiler botches some simple uses of const. Unfortunately,
1699 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1700 tentative_cc
="cc -Dconst="
1701 host_makefile_frag
="config/mh-sco"
1703 i
[3456789]86-*-udk*)
1704 host_makefile_frag
="config/mh-sysv5"
1706 i
[3456789]86-*-solaris2*)
1707 host_makefile_frag
="config/mh-sysv4"
1709 i
[3456789]86-*-msdosdjgpp*)
1710 host_makefile_frag
="config/mh-djgpp"
1713 host_makefile_frag
="config/mh-cygwin"
1718 host_makefile_frag
="config/mh-interix"
1721 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1725 host_makefile_frag
="config/mh-solaris"
1728 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1729 # without overflowing the jump tables (-J says to use a 32 bit table)
1730 tentative_cc
="cc -J"
1733 tentative_cc
="cc -Wp,-H256000"
1736 tentative_cc
="cc -Wp,-H256000"
1739 # /bin/cc is less than useful for our purposes. Always use GCC
1740 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
1741 host_makefile_frag
="config/mh-lynxrs6k"
1744 host_makefile_frag
="config/mh-ppc-darwin"
1747 # /bin/cc is less than useful for our purposes. Always use GCC
1748 tentative_cc
="/bin/gcc"
1751 host_makefile_frag
="config/mh-sysv4"
1753 # This is placed last to prevent interfering with the cases above.
1755 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1756 host_makefile_frag
="config/mh-x86omitfp"
1761 # If we aren't going to be using gcc, see if we can extract a definition
1762 # of CC from the fragment.
1763 # Actually, use the 'pre-extracted' version above.
1764 if test -z "${CC}" && test "${build}" = "${host}" ; then
1765 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1767 for dir
in $PATH; do
1768 test -z "$dir" && dir
=.
1769 if test -f $dir/gcc
; then
1775 if test -z "${found}" && test -n "${tentative_cc}" ; then
1780 if test "${build}" != "${host}" ; then
1781 # If we are doing a Canadian Cross, in which the host and build systems
1782 # are not the same, we set reasonable default values for the tools.
1784 CC
=${CC-${host_alias}-gcc}
1785 CFLAGS
=${CFLAGS-"-g -O2"}
1786 CXX
=${CXX-${host_alias}-c++}
1787 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1788 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1789 CC_FOR_TARGET
=${CC_FOR_TARGET-${target_alias}-gcc}
1790 CXX_FOR_TARGET
=${CXX_FOR_TARGET-${target_alias}-c++}
1791 GCJ_FOR_TARGET
=${GCJ_FOR_TARGET-${target_alias}-gcj}
1792 GCC_FOR_TARGET
=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
1793 BUILD_PREFIX
=${build_alias}-
1794 BUILD_PREFIX_1
=${build_alias}-
1797 # Set reasonable default values for some tools even if not Canadian.
1798 # Of course, these are different reasonable default values, originally
1799 # specified directly in the Makefile.
1800 # We don't export, so that autoconf can do its job.
1801 # Note that all these settings are above the fragment inclusion point
1802 # in Makefile.in, so can still be overridden by fragments.
1803 # This is all going to change when we autoconfiscate...
1805 CC_FOR_BUILD
="\$(CC)"
1806 GCC_FOR_TARGET
="\$(USUAL_GCC_FOR_TARGET)"
1808 BUILD_PREFIX_1
=loser-
1810 # Extract the first word of "gcc", so it can be a program name with args.
1811 set dummy gcc
; ac_word
=$2
1812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1813 echo "configure:1814: checking for $ac_word" >&5
1814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1817 if test -n "$CC"; then
1818 ac_cv_prog_CC
="$CC" # Let the user override the test.
1820 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1822 for ac_dir
in $ac_dummy; do
1823 test -z "$ac_dir" && ac_dir
=.
1824 if test -f $ac_dir/$ac_word; then
1833 if test -n "$CC"; then
1834 echo "$ac_t""$CC" 1>&6
1836 echo "$ac_t""no" 1>&6
1839 if test -z "$CC"; then
1840 # Extract the first word of "cc", so it can be a program name with args.
1841 set dummy cc
; ac_word
=$2
1842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1843 echo "configure:1844: checking for $ac_word" >&5
1844 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1847 if test -n "$CC"; then
1848 ac_cv_prog_CC
="$CC" # Let the user override the test.
1850 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1853 for ac_dir
in $ac_dummy; do
1854 test -z "$ac_dir" && ac_dir
=.
1855 if test -f $ac_dir/$ac_word; then
1856 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1857 ac_prog_rejected
=yes
1865 if test $ac_prog_rejected = yes; then
1866 # We found a bogon in the path, so make sure we never use it.
1867 set dummy
$ac_cv_prog_CC
1869 if test $# -gt 0; then
1870 # We chose a different compiler from the bogus one.
1871 # However, it has the same basename, so the bogon will be chosen
1872 # first if we set CC to just the basename; use the full file name.
1874 set dummy
"$ac_dir/$ac_word" "$@"
1882 if test -n "$CC"; then
1883 echo "$ac_t""$CC" 1>&6
1885 echo "$ac_t""no" 1>&6
1888 if test -z "$CC"; then
1889 case "`uname -s`" in
1891 # Extract the first word of "cl", so it can be a program name with args.
1892 set dummy cl
; ac_word
=$2
1893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1894 echo "configure:1895: checking for $ac_word" >&5
1895 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1898 if test -n "$CC"; then
1899 ac_cv_prog_CC
="$CC" # Let the user override the test.
1901 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1903 for ac_dir
in $ac_dummy; do
1904 test -z "$ac_dir" && ac_dir
=.
1905 if test -f $ac_dir/$ac_word; then
1914 if test -n "$CC"; then
1915 echo "$ac_t""$CC" 1>&6
1917 echo "$ac_t""no" 1>&6
1922 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1925 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1926 echo "configure:1927: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1930 ac_cpp
='$CPP $CPPFLAGS'
1931 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1932 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1933 cross_compiling
=$ac_cv_prog_cc_cross
1935 cat > conftest.
$ac_ext << EOF
1937 #line 1938 "configure"
1938 #include "confdefs.h"
1942 if { (eval echo configure
:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1943 ac_cv_prog_cc_works
=yes
1944 # If we can't run a trivial program, we are probably using a cross compiler.
1945 if (.
/conftest
; exit) 2>/dev
/null
; then
1946 ac_cv_prog_cc_cross
=no
1948 ac_cv_prog_cc_cross
=yes
1951 echo "configure: failed program was:" >&5
1952 cat conftest.
$ac_ext >&5
1953 ac_cv_prog_cc_works
=no
1957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1958 ac_cpp
='$CPP $CPPFLAGS'
1959 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1960 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1961 cross_compiling
=$ac_cv_prog_cc_cross
1963 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1964 if test $ac_cv_prog_cc_works = no
; then
1965 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1967 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1968 echo "configure:1969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1969 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1970 cross_compiling
=$ac_cv_prog_cc_cross
1972 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1973 echo "configure:1974: checking whether we are using GNU C" >&5
1974 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 cat > conftest.c
<<EOF
1982 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1989 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1991 if test $ac_cv_prog_gcc = yes; then
1997 ac_test_CFLAGS
="${CFLAGS+set}"
1998 ac_save_CFLAGS
="$CFLAGS"
2000 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2001 echo "configure:2002: checking whether ${CC-cc} accepts -g" >&5
2002 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2005 echo 'void f(){}' > conftest.c
2006 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2015 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2016 if test "$ac_test_CFLAGS" = set; then
2017 CFLAGS
="$ac_save_CFLAGS"
2018 elif test $ac_cv_prog_cc_g = yes; then
2019 if test "$GCC" = yes; then
2025 if test "$GCC" = yes; then
2033 # We must set the default linker to the linker used by gcc for the correct
2034 # operation of libtool. If LD is not defined and we are using gcc, try to
2035 # set the LD default to the ld used by gcc.
2036 if test -z "$LD"; then
2037 if test "$GCC" = yes; then
2040 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2042 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
2044 case $gcc_prog_ld in
2045 # Accept absolute paths.
2046 [\\/]* |
[A-Za-z
]:[\\/]*)
2047 LD
="$gcc_prog_ld" ;;
2053 CFLAGS
=${CFLAGS-"-g"}
2054 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
2057 if test $host != $build; then
2058 ac_tool_prefix
=${host_alias}-
2065 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2066 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2068 echo "configure:2069: checking for $ac_word" >&5
2069 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2072 if test -n "$GNATBIND"; then
2073 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2075 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2077 for ac_dir
in $ac_dummy; do
2078 test -z "$ac_dir" && ac_dir
=.
2079 if test -f $ac_dir/$ac_word; then
2080 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2087 GNATBIND
="$ac_cv_prog_GNATBIND"
2088 if test -n "$GNATBIND"; then
2089 echo "$ac_t""$GNATBIND" 1>&6
2091 echo "$ac_t""no" 1>&6
2095 if test -z "$ac_cv_prog_GNATBIND"; then
2096 if test -n "$ac_tool_prefix"; then
2097 # Extract the first word of "gnatbind", so it can be a program name with args.
2098 set dummy gnatbind
; ac_word
=$2
2099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2100 echo "configure:2101: checking for $ac_word" >&5
2101 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2104 if test -n "$GNATBIND"; then
2105 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2107 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2109 for ac_dir
in $ac_dummy; do
2110 test -z "$ac_dir" && ac_dir
=.
2111 if test -f $ac_dir/$ac_word; then
2112 ac_cv_prog_GNATBIND
="gnatbind"
2117 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2120 GNATBIND
="$ac_cv_prog_GNATBIND"
2121 if test -n "$GNATBIND"; then
2122 echo "$ac_t""$GNATBIND" 1>&6
2124 echo "$ac_t""no" 1>&6
2132 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2133 echo "configure:2134: checking whether compiler driver understands Ada" >&5
2134 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2137 cat >conftest.adb
<<EOF
2138 procedure conftest is begin null; end conftest;
2140 acx_cv_cc_gcc_supports_ada
=no
2141 # There is a bug in old released versions of GCC which causes the
2142 # driver to exit successfully when the appropriate language module
2143 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2144 # Therefore we must check for the error message as well as an
2145 # unsuccessful exit.
2146 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2147 # given a .adb file, but produce no object file. So we must check
2148 # if an object file was really produced to guard against this.
2149 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2150 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
2151 acx_cv_cc_gcc_supports_ada
=yes
2156 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2158 if test x
$GNATBIND != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
2164 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2165 echo "configure:2166: checking how to compare bootstrapped objects" >&5
2166 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2171 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2172 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
2173 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
2176 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
2179 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2180 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2183 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
2190 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2191 do_compare
="$gcc_cv_prog_cmp_skip"
2195 # Check for GMP and MPFR
2199 # Specify a location for mpfr
2200 # check for this first so it ends up on the link line before gmp.
2201 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2202 if test "${with_mpfr_dir+set}" = set; then
2203 withval
="$with_mpfr_dir"
2208 if test "x$with_mpfr_dir" != x
; then
2209 gmpinc
="-I$with_mpfr_dir"
2210 gmplibs
="$with_mpfr_dir/libmpfr.a"
2215 # Check whether --with-mpfr or --without-mpfr was given.
2216 if test "${with_mpfr+set}" = set; then
2217 withval
="$with_mpfr"
2222 if test "x$with_mpfr" != x
; then
2223 gmplibs
="-L$with_mpfr/lib $gmplibs"
2224 gmpinc
="-I$with_mpfr/include"
2227 # Specify a location for gmp
2228 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2229 if test "${with_gmp_dir+set}" = set; then
2230 withval
="$with_gmp_dir"
2235 if test "x$with_gmp_dir" != x
; then
2236 gmpinc
="$gmpinc -I$with_gmp_dir"
2237 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2238 gmplibs
="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2239 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2240 gmplibs
="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2242 # One of the later tests will catch the error if neither library is present.
2244 gmplibs
="$gmplibs -lgmp"
2247 # Check whether --with-gmp or --without-gmp was given.
2248 if test "${with_gmp+set}" = set; then
2254 if test "x$with_gmp" != x
; then
2255 gmplibs
="-L$with_gmp/lib $gmplibs"
2256 gmpinc
="-I$with_gmp/include $gmpinc"
2259 saved_CFLAGS
="$CFLAGS"
2260 CFLAGS
="$CFLAGS $gmpinc"
2261 # Check GMP actually works
2262 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2263 echo "configure:2264: checking for correct version of gmp.h" >&5
2264 cat > conftest.
$ac_ext <<EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2270 #if __GNU_MP_VERSION < 3
2276 if { (eval echo configure
:2277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2278 echo "$ac_t""yes" 1>&6
2280 echo "configure: failed program was:" >&5
2281 cat conftest.
$ac_ext >&5
2283 echo "$ac_t""no" 1>&6; have_gmp
=no
2287 if test x
"$have_gmp" = xyes
; then
2288 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2289 echo "configure:2290: checking for MPFR" >&5
2292 LIBS
="$LIBS $gmplibs"
2293 cat > conftest.
$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2299 mpfr_t n; mpfr_init(n);
2302 if { (eval echo configure
:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2304 echo "$ac_t""yes" 1>&6
2306 echo "configure: failed program was:" >&5
2307 cat conftest.
$ac_ext >&5
2309 echo "$ac_t""no" 1>&6; have_gmp
=no
2313 CFLAGS
="$saved_CFLAGS"
2316 # Flags needed for both GMP and/or MPFR
2320 # By default, C is the only stage 1 language.
2324 # Figure out what language subdirectories are present.
2325 # Look if the user specified --enable-languages="..."; if not, use
2326 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2328 # NB: embedded tabs in this IF block -- do not untabify
2329 if test -d ${srcdir}/gcc
; then
2330 if test x
"${enable_languages+set}" != xset
; then
2331 if test x
"${LANGUAGES+set}" = xset
; then
2332 enable_languages
="${LANGUAGES}"
2333 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
2335 enable_languages
=all
2338 if test x
"${enable_languages}" = x ||
2339 test x
"${enable_languages}" = xyes
;
2341 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
2345 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2347 # First scan to see if an enabled language requires some other language.
2348 # We assume that a given config-lang.in will list all the language
2349 # front ends it requires, even if some are required indirectly.
2350 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2351 case ${lang_frag} in
2353 # The odd quoting in the next line works around
2354 # an apparent bug in bash 1.12 on linux.
2355 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2357 # From the config-lang.in, get $language, $lang_requires
2361 for other
in ${lang_requires} ; do
2362 case ,${enable_languages}, in
2366 echo " \`$other' language required by \`$language'; enabling" 1>&2
2367 enable_languages
="${enable_languages},${other}"
2375 new_enable_languages
=c
2376 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2377 potential_languages
=c
2379 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2380 case ${lang_frag} in
2382 # The odd quoting in the next line works around
2383 # an apparent bug in bash 1.12 on linux.
2384 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2386 # From the config-lang.in, get $language, $target_libs,
2387 # $lang_dirs, $boot_language, and $build_by_default
2395 potential_languages
="${potential_languages},${language}"
2396 # This is quite sensitive to the ordering of the case statement arms.
2397 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2399 echo "${lang_frag} doesn't set \$language." 1>&2
2403 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2406 *,${language},*:*:*:*)
2407 # Language was explicitly selected; include it.
2411 # 'all' was selected, but this is not a default language
2412 # so do not include it.
2416 # 'all' was selected and this is a default language; include it.
2424 # Disable languages that need GMP if it isn't available.
2425 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2426 *,${language},*:no
:yes)
2427 # Specifically requested language; tell them.
2428 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2436 # Disable a language that is unsupported by the target.
2437 case " $unsupported_languages " in
2443 case $add_this_lang in
2445 # Remove language-dependent dirs.
2446 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2449 new_enable_languages
="$new_enable_languages,$language"
2450 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
2451 case ${boot_language} in
2453 # Add to (comma-separated) list of stage 1 languages.
2454 stage1_languages
="${stage1_languages},${language}"
2463 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2464 if test "x$missing_languages" != x
; then
2465 { echo "configure: error:
2466 The following requested languages could not be built: ${missing_languages}
2467 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2470 if test "x$new_enable_languages" != "x$enable_languages"; then
2471 echo The following languages will be built
: ${new_enable_languages}
2473 enable_languages
="$new_enable_languages"
2474 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2477 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2478 # $build_configdirs and $target_configdirs.
2479 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2482 for dir
in .
$skipdirs $noconfigdirs ; do
2483 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2484 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2485 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2486 if test -r $srcdir/$dirname/configure
; then
2487 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2490 notsupp
="$notsupp $dir"
2494 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2495 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2496 if test -r $srcdir/$dirname/configure
; then
2497 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2500 notsupp
="$notsupp $dir"
2504 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2505 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2506 if test -r $srcdir/$dirname/configure
; then
2507 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2510 notsupp
="$notsupp $dir"
2516 # Sometimes the tools are distributed with libiberty but with no other
2517 # libraries. In that case, we don't want to build target-libiberty.
2518 if test -n "${target_configdirs}" ; then
2520 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2521 if test "$i" != "libiberty" ; then
2522 if test -r $srcdir/$i/configure
; then
2528 if test -z "${others}" ; then
2533 # Quietly strip out all directories which aren't configurable in this tree.
2534 # This relies on all configurable subdirectories being autoconfiscated, which
2536 build_configdirs_all
="$build_configdirs"
2538 for i
in ${build_configdirs_all} ; do
2539 j
=`echo $i | sed -e s/build-//g`
2540 if test -f ${srcdir}/$j/configure
; then
2541 build_configdirs
="${build_configdirs} $i"
2545 configdirs_all
="$configdirs"
2547 for i
in ${configdirs_all} ; do
2548 if test -f ${srcdir}/$i/configure
; then
2549 configdirs
="${configdirs} $i"
2553 target_configdirs_all
="$target_configdirs"
2555 for i
in ${target_configdirs_all} ; do
2556 j
=`echo $i | sed -e s/target-//g`
2557 if test -f ${srcdir}/$j/configure
; then
2558 target_configdirs
="${target_configdirs} $i"
2562 # Produce a warning message for the subdirs we can't configure.
2563 # This isn't especially interesting in the Cygnus tree, but in the individual
2564 # FSF releases, it's important to let people know when their machine isn't
2565 # supported by the one or two programs in a package.
2567 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2568 # If $appdirs is non-empty, at least one of those directories must still
2569 # be configured, or we error out. (E.g., if the gas release supports a
2570 # specified target in some subdirs but not the gas subdir, we shouldn't
2571 # pretend that all is well.)
2572 if test -n "$appdirs" ; then
2573 for dir
in $appdirs ; do
2574 if test -r $dir/Makefile.
in ; then
2575 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2579 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
2585 if test -n "$appdirs" ; then
2586 echo "*** This configuration is not supported by this package." 1>&2
2590 # Okay, some application will build, or we don't care to check. Still
2591 # notify of subdirs not getting built.
2592 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2593 echo " ${notsupp}" 1>&2
2594 echo " (Any other directories should still work fine.)" 1>&2
2604 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2605 # the named directory are copied to $(tooldir)/sys-include.
2606 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
2607 if test x
${is_cross_compiler} = xno
; then
2608 echo 1>&2 '***' --with-headers is only supported when cross compiling
2611 if test x
"${with_headers}" != xyes
; then
2612 case "${exec_prefixoption}" in
2614 *) x
=${exec_prefix} ;;
2616 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2620 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2621 # the name directories are copied to $(tooldir)/lib. Multiple directories
2623 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2624 if test x
${is_cross_compiler} = xno
; then
2625 echo 1>&2 '***' --with-libs is only supported when cross compiling
2628 if test x
"${with_libs}" != xyes
; then
2629 # Copy the libraries in reverse order, so that files in the first named
2630 # library override files in subsequent libraries.
2631 case "${exec_prefixoption}" in
2633 *) x
=${exec_prefix} ;;
2635 for l
in ${with_libs}; do
2636 copy_dirs
="$l $x/${target_alias}/lib ${copy_dirs}"
2641 # Handle ${copy_dirs}
2642 set fnord
${copy_dirs}
2644 while test $# != 0 ; do
2645 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
2648 echo Copying
$1 to
$2
2650 # Use the install script to create the directory and all required
2651 # parent directories.
2652 if test -d $2 ; then
2656 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
2659 # Copy the directory, assuming we have tar.
2660 # FIXME: Should we use B in the second tar? Not all systems support it.
2661 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
2663 # It is the responsibility of the user to correctly adjust all
2664 # symlinks. If somebody can figure out how to handle them correctly
2665 # here, feel free to add the code.
2672 extra_arflags_for_target
=
2673 extra_nmflags_for_target
=
2674 extra_ranlibflags_for_target
=
2675 target_makefile_frag
=/dev
/null
2678 target_makefile_frag
="config/mt-netware"
2680 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
2681 target_makefile_frag
="config/mt-gnu"
2683 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
2684 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2685 # commands to handle both 32-bit and 64-bit objects. These flags are
2686 # harmless if we're using GNU nm or ar.
2687 extra_arflags_for_target
=" -X32_64"
2688 extra_nmflags_for_target
=" -B -X32_64"
2691 # ranlib from Darwin requires the -c flag to look at common symbols.
2692 extra_ranlibflags_for_target
=" -c"
2694 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
2695 target_makefile_frag
="config/mt-wince"
2699 alphaieee_frag
=/dev
/null
2702 # This just makes sure to use the -mieee option to build target libs.
2703 # This should probably be set individually by each library.
2704 alphaieee_frag
="config/mt-alphaieee"
2708 # If --enable-target-optspace always use -Os instead of -O2 to build
2709 # the target libraries, similarly if it is not specified, use -Os
2710 # on selected platforms.
2711 ospace_frag
=/dev
/null
2712 case "${enable_target_optspace}:${target}" in
2714 ospace_frag
="config/mt-ospace"
2717 ospace_frag
="config/mt-d30v"
2719 :m32r-
* |
:d10v-
* |
:fr30-
*)
2720 ospace_frag
="config/mt-ospace"
2725 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2729 # Set with_gnu_as and with_gnu_ld as appropriate.
2731 # This is done by determining whether or not the appropriate directory
2732 # is available, and by checking whether or not specific configurations
2733 # have requested that this magic not happen.
2735 # The command line options always override the explicit settings in
2736 # configure.in, and the settings in configure.in override this magic.
2738 # If the default for a toolchain is to use GNU as and ld, and you don't
2739 # want to do that, then you should use the --without-gnu-as and
2740 # --without-gnu-ld options for the configure script.
2742 if test x
${use_gnu_as} = x
&&
2743 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
2745 extra_host_args
="$extra_host_args --with-gnu-as"
2748 if test x
${use_gnu_ld} = x
&&
2749 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
2751 extra_host_args
="$extra_host_args --with-gnu-ld"
2754 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2755 # can detect this case.
2757 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
2759 extra_host_args
="$extra_host_args --with-newlib"
2762 # Default to using --with-stabs for certain targets.
2763 if test x
${with_stabs} = x
; then
2767 mips
*-*-* | alpha
*-*-osf*)
2769 extra_host_args
="${extra_host_args} --with-stabs"
2774 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2775 # them automatically.
2778 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2782 # Some systems (e.g., one of the i386-aix systems the gas testers are
2783 # using) don't handle "\$" correctly, so don't use it here.
2784 tooldir
='${exec_prefix}'/${target_alias}
2785 build_tooldir
=${tooldir}
2787 # Generate default definitions for YACC, M4, LEX and other programs that run
2788 # on the build machine. These are used if the Makefile can't locate these
2789 # programs in objdir.
2790 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2791 for ac_prog
in bison
2793 # Extract the first word of "$ac_prog", so it can be a program name with args.
2794 set dummy
$ac_prog; ac_word
=$2
2795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2796 echo "configure:2797: checking for $ac_word" >&5
2797 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" = set"; then
2798 echo $ac_n "(cached) $ac_c" 1>&6
2800 if test -n "$CONFIGURED_BISON"; then
2801 ac_cv_prog_CONFIGURED_BISON
="$CONFIGURED_BISON" # Let the user override the test.
2803 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2805 for ac_dir
in $ac_dummy; do
2806 test -z "$ac_dir" && ac_dir
=.
2807 if test -f $ac_dir/$ac_word; then
2808 ac_cv_prog_CONFIGURED_BISON
="$ac_prog"
2815 CONFIGURED_BISON
="$ac_cv_prog_CONFIGURED_BISON"
2816 if test -n "$CONFIGURED_BISON"; then
2817 echo "$ac_t""$CONFIGURED_BISON" 1>&6
2819 echo "$ac_t""no" 1>&6
2822 test -n "$CONFIGURED_BISON" && break
2824 test -n "$CONFIGURED_BISON" || CONFIGURED_BISON
="$MISSING bison"
2826 for ac_prog
in 'bison -y' byacc
yacc
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829 set dummy
$ac_prog; ac_word
=$2
2830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2831 echo "configure:2832: checking for $ac_word" >&5
2832 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" = set"; then
2833 echo $ac_n "(cached) $ac_c" 1>&6
2835 if test -n "$CONFIGURED_YACC"; then
2836 ac_cv_prog_CONFIGURED_YACC
="$CONFIGURED_YACC" # Let the user override the test.
2838 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2840 for ac_dir
in $ac_dummy; do
2841 test -z "$ac_dir" && ac_dir
=.
2842 if test -f $ac_dir/$ac_word; then
2843 ac_cv_prog_CONFIGURED_YACC
="$ac_prog"
2850 CONFIGURED_YACC
="$ac_cv_prog_CONFIGURED_YACC"
2851 if test -n "$CONFIGURED_YACC"; then
2852 echo "$ac_t""$CONFIGURED_YACC" 1>&6
2854 echo "$ac_t""no" 1>&6
2857 test -n "$CONFIGURED_YACC" && break
2859 test -n "$CONFIGURED_YACC" || CONFIGURED_YACC
="$MISSING bison -y"
2861 for ac_prog
in gm4 gnum4
m4
2863 # Extract the first word of "$ac_prog", so it can be a program name with args.
2864 set dummy
$ac_prog; ac_word
=$2
2865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2866 echo "configure:2867: checking for $ac_word" >&5
2867 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2870 if test -n "$CONFIGURED_M4"; then
2871 ac_cv_prog_CONFIGURED_M4
="$CONFIGURED_M4" # Let the user override the test.
2873 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2875 for ac_dir
in $ac_dummy; do
2876 test -z "$ac_dir" && ac_dir
=.
2877 if test -f $ac_dir/$ac_word; then
2878 ac_cv_prog_CONFIGURED_M4
="$ac_prog"
2885 CONFIGURED_M4
="$ac_cv_prog_CONFIGURED_M4"
2886 if test -n "$CONFIGURED_M4"; then
2887 echo "$ac_t""$CONFIGURED_M4" 1>&6
2889 echo "$ac_t""no" 1>&6
2892 test -n "$CONFIGURED_M4" && break
2894 test -n "$CONFIGURED_M4" || CONFIGURED_M4
="$MISSING m4"
2898 # Extract the first word of "$ac_prog", so it can be a program name with args.
2899 set dummy
$ac_prog; ac_word
=$2
2900 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2901 echo "configure:2902: checking for $ac_word" >&5
2902 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2905 if test -n "$CONFIGURED_FLEX"; then
2906 ac_cv_prog_CONFIGURED_FLEX
="$CONFIGURED_FLEX" # Let the user override the test.
2908 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2910 for ac_dir
in $ac_dummy; do
2911 test -z "$ac_dir" && ac_dir
=.
2912 if test -f $ac_dir/$ac_word; then
2913 ac_cv_prog_CONFIGURED_FLEX
="$ac_prog"
2920 CONFIGURED_FLEX
="$ac_cv_prog_CONFIGURED_FLEX"
2921 if test -n "$CONFIGURED_FLEX"; then
2922 echo "$ac_t""$CONFIGURED_FLEX" 1>&6
2924 echo "$ac_t""no" 1>&6
2927 test -n "$CONFIGURED_FLEX" && break
2929 test -n "$CONFIGURED_FLEX" || CONFIGURED_FLEX
="$MISSING flex"
2931 for ac_prog
in flex
lex
2933 # Extract the first word of "$ac_prog", so it can be a program name with args.
2934 set dummy
$ac_prog; ac_word
=$2
2935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2936 echo "configure:2937: checking for $ac_word" >&5
2937 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2940 if test -n "$CONFIGURED_LEX"; then
2941 ac_cv_prog_CONFIGURED_LEX
="$CONFIGURED_LEX" # Let the user override the test.
2943 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2945 for ac_dir
in $ac_dummy; do
2946 test -z "$ac_dir" && ac_dir
=.
2947 if test -f $ac_dir/$ac_word; then
2948 ac_cv_prog_CONFIGURED_LEX
="$ac_prog"
2955 CONFIGURED_LEX
="$ac_cv_prog_CONFIGURED_LEX"
2956 if test -n "$CONFIGURED_LEX"; then
2957 echo "$ac_t""$CONFIGURED_LEX" 1>&6
2959 echo "$ac_t""no" 1>&6
2962 test -n "$CONFIGURED_LEX" && break
2964 test -n "$CONFIGURED_LEX" || CONFIGURED_LEX
="$MISSING flex"
2966 for ac_prog
in makeinfo
2968 # Extract the first word of "$ac_prog", so it can be a program name with args.
2969 set dummy
$ac_prog; ac_word
=$2
2970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2971 echo "configure:2972: checking for $ac_word" >&5
2972 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2975 if test -n "$CONFIGURED_MAKEINFO"; then
2976 ac_cv_prog_CONFIGURED_MAKEINFO
="$CONFIGURED_MAKEINFO" # Let the user override the test.
2978 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2980 for ac_dir
in $ac_dummy; do
2981 test -z "$ac_dir" && ac_dir
=.
2982 if test -f $ac_dir/$ac_word; then
2983 ac_cv_prog_CONFIGURED_MAKEINFO
="$ac_prog"
2990 CONFIGURED_MAKEINFO
="$ac_cv_prog_CONFIGURED_MAKEINFO"
2991 if test -n "$CONFIGURED_MAKEINFO"; then
2992 echo "$ac_t""$CONFIGURED_MAKEINFO" 1>&6
2994 echo "$ac_t""no" 1>&6
2997 test -n "$CONFIGURED_MAKEINFO" && break
2999 test -n "$CONFIGURED_MAKEINFO" || CONFIGURED_MAKEINFO
="$MISSING makeinfo"
3002 # Create a .gdbinit file which runs the one in srcdir
3003 # and tells GDB to look there for source files.
3005 if test -r ${srcdir}/.gdbinit
; then
3008 *) cat > .
/.gdbinit
<<EOF
3012 source ${srcdir}/.gdbinit
3018 # Make sure that the compiler is able to generate an executable. If it
3019 # can't, we are probably in trouble. We don't care whether we can run the
3020 # executable--we might be using a cross compiler--we only care whether it
3021 # can be created. At this point the main configure script has set CC.
3023 echo "int main () { return 0; }" > conftest.c
3024 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3025 if test $?
= 0 ; then
3026 if test -s conftest ||
test -s conftest.exe
; then
3032 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3033 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3040 # The Solaris /usr/ucb/cc compiler does not appear to work.
3042 sparc-sun-solaris2
*)
3043 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
3044 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3046 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
3047 if test -d /opt
/cygnus
/bin
; then
3048 if test "$could_use" = "" ; then
3049 could_use
="/opt/cygnus/bin"
3051 could_use
="$could_use or /opt/cygnus/bin"
3054 if test "$could_use" = "" ; then
3055 echo "Warning: compilation may fail because you're using"
3056 echo "/usr/ucb/cc. You should change your PATH or CC "
3057 echo "variable and rerun configure."
3059 echo "Warning: compilation may fail because you're using"
3060 echo "/usr/ucb/cc, when you should use the C compiler from"
3061 echo "$could_use. You should change your"
3062 echo "PATH or CC variable and rerun configure."
3069 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
3070 *-*-darwin* |
*-*-rhapsody* ) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
3071 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
3074 # Record target_configdirs and the configure arguments for target and
3075 # build configuration in Makefile.
3076 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3077 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3079 # Determine whether gdb needs tk/tcl or not.
3080 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3081 # and in that case we want gdb to be built without tk. Ugh!
3082 # In fact I believe gdb is the *only* package directly dependent on tk,
3083 # so we should be able to put the 'maybe's in unconditionally and
3084 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3085 # 100% sure that that's safe though.
3087 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3088 case "$enable_gdbtk" in
3092 GDB_TK
="${gdb_tk}" ;;
3094 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3095 # distro. Eventually someone will fix this and move Insight, nee
3096 # gdbtk to a separate directory.
3097 if test -d ${srcdir}/gdb
/gdbtk
; then
3105 # Strip out unwanted targets.
3107 # While at that, we remove Makefiles if we were started for recursive
3108 # configuration, so that the top-level Makefile reconfigures them,
3109 # like we used to do when configure itself was recursive.
3111 # Loop over modules. $extrasub must be used with care, limiting as
3112 # much as possible the usage of range addresses. That's because autoconf
3113 # splits the sed script to overcome limits in the number of commands,
3114 # and relying on carefully-timed sed passes may turn out to be very hard
3115 # to maintain later. In this particular case, you just have to be careful
3116 # not to nest @if/@endif pairs, because configure will not warn you at all.
3118 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3119 if test "${enable_bootstrap+set}" = set; then
3120 enableval
="$enable_bootstrap"
3123 enable_bootstrap
=default
3127 # Issue errors and warnings for invalid/strange bootstrap combinations.
3128 case "$configdirs" in
3129 *gcc
*) have_compiler
=yes ;;
3130 *) have_compiler
=no
;;
3133 case "$have_compiler:$host:$target:$enable_bootstrap" in
3136 # Default behavior. (We'll) enable bootstrap if we have a compiler
3137 # and we are in a native configuration.
3138 yes:$build:$build:default
)
3139 # This will become 'yes'
3140 enable_bootstrap
=no
;;
3143 enable_bootstrap
=no
;;
3145 # We have a compiler and we are in a native configuration, bootstrap is ok
3146 yes:$build:$build:yes |
yes:$build:$build:lean
)
3149 # Other configurations, but we have a compiler. Assume the user knows
3151 yes:*:*:yes |
yes:*:*:lean
)
3152 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3155 # No compiler: if they passed --enable-bootstrap explicitly, fail
3156 no
:*:*:yes | no
:*:*:lean
)
3157 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3159 # Fail if wrong command line
3161 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3165 # Adjust the toplevel makefile according to whether bootstrap was selected.
3166 case "$enable_bootstrap" in
3169 default_target
=bootstrap
3170 bootstrap_suffix
=bootstrap
;;
3173 default_target
=bootstrap
3174 bootstrap_suffix
=bootstrap
;;
3177 bootstrap_suffix
=no-bootstrap
;;
3182 for module
in ${build_configdirs} ; do
3183 if test -z "${no_recursion}" \
3184 && test -f ${build_subdir}/${module}/Makefile
; then
3185 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3186 rm -f ${build_subdir}/${module}/Makefile
3189 /^@if build-$module\$/d
3190 /^@endif build-$module\$/d
3191 /^@if build-$module-$bootstrap_suffix\$/d
3192 /^@endif build-$module-$bootstrap_suffix\$/d"
3194 for module
in ${configdirs} ; do
3195 if test -z "${no_recursion}" \
3196 && test -f ${module}/Makefile
; then
3197 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3198 rm -f ${module}/Makefile
3202 /^@endif $module\$/d
3203 /^@if $module-$bootstrap_suffix\$/d
3204 /^@endif $module-$bootstrap_suffix\$/d"
3206 for module
in ${target_configdirs} ; do
3207 if test -z "${no_recursion}" \
3208 && test -f ${target_subdir}/${module}/Makefile
; then
3209 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3210 rm -f ${target_subdir}/${module}/Makefile
3213 /^@if target-$module\$/d
3214 /^@endif target-$module\$/d
3215 /^@if target-$module-$bootstrap_suffix\$/d
3216 /^@endif target-$module-$bootstrap_suffix\$/d"
3220 /^@if /,/^@endif /d"
3222 # Create the serialization dependencies. This uses a temporary file.
3224 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3225 if test "${enable_serial_configure+set}" = set; then
3226 enableval
="$enable_serial_configure"
3231 case ${enable_serial_configure} in
3233 enable_serial_build_configure
=yes
3234 enable_serial_host_configure
=yes
3235 enable_serial_target_configure
=yes
3239 # These force 'configure's to be done one at a time, to avoid problems
3240 # with contention over a shared config.cache.
3242 echo '# serdep.tmp' > serdep.tmp
3244 test "x${enable_serial_build_configure}" = xyes
&&
3245 for item
in ${build_configdirs} ; do
3248 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
3253 test "x${enable_serial_host_configure}" = xyes
&&
3254 for item
in ${configdirs} ; do
3257 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
3262 test "x${enable_serial_target_configure}" = xyes
&&
3263 for item
in ${target_configdirs} ; do
3266 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
3270 serialization_dependencies
=serdep.tmp
3273 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3274 # target and nonopt. These are the ones we might not want to pass
3275 # down to subconfigures. Also strip program-prefix, program-suffix,
3276 # and program-transform-name, so that we can pass down a consistent
3277 # program-transform-name. If autoconf has put single quotes around
3278 # any of these arguments (because they contain shell metacharacters)
3279 # then this will fail; in practice this only happens for
3280 # --program-transform-name, so be sure to override --program-transform-name
3281 # at the end of the argument list.
3282 # These will be expanded by make, so quote '$'.
3283 cat <<\EOF_SED
> conftestsed
3285 s
/ --c[a-z-
]*[= ][^
]*//g
3286 s
/ --sr[a-z-
]*[= ][^
]*//g
3287 s
/ --ho[a-z-
]*[= ][^
]*//g
3288 s
/ --bu[a-z-
]*[= ][^
]*//g
3289 s
/ --t[a-z-
]*[= ][^
]*//g
3290 s
/ --program-[pst
][a-z-
]*[= ][^
]*//g
3291 s
/ -cache-file[= ][^
]*//g
3292 s
/ -srcdir[= ][^
]*//g
3293 s
/ -host[= ][^
]*//g
3294 s
/ -build[= ][^
]*//g
3295 s
/ -target[= ][^
]*//g
3296 s
/ -program-prefix[= ][^
]*//g
3297 s
/ -program-suffix[= ][^
]*//g
3298 s
/ -program-transform-name[= ][^
]*//g
3303 sed -f conftestsed <<EOF_SED > conftestsed.out
3304 ${ac_configure_args}
3306 baseargs=`cat conftestsed.out`
3307 rm -f conftestsed conftestsed.out
3309 # Add in --program-transform-name, after --program-prefix and
3310 # --program-suffix have been applied to it. Autoconf has already
3311 # doubled dollar signs and backslashes in program_transform_name; we want
3312 # the backslashes un-doubled, and then the entire thing wrapped in single
3313 # quotes, because this will be expanded first by make and then by the shell.
3314 # Also, because we want to override the logic in subdir configure scripts to
3315 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3316 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3317 ${program_transform_name}
3319 gcc_transform_name=`cat conftestsed.out`
3320 rm -f conftestsed.out
3321 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3323 # For the build-side libraries, we just need to pretend we're native
,
3324 # and not use the same cache file. Multilibs are neither needed nor
3326 build_configargs
="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3328 # For host modules, accept cache file option, or specification as blank.
3329 case "${cache_file}" in
3331 cache_file_option
="" ;;
3332 /* |
[A-Za-z
]:[\\/]* ) # absolute path
3333 cache_file_option
="--cache-file=${cache_file}" ;;
3335 cache_file_option
="--cache-file=../${cache_file}" ;;
3338 # Host dirs don't like to share a cache file either, horribly enough.
3339 # This seems to be due to autoconf 2.5x stupidity.
3340 host_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3342 target_configargs
=${baseargs}
3344 # Passing a --with-cross-host argument lets the target libraries know
3345 # whether they are being built with a cross-compiler or being built
3346 # native. However, it would be better to use other mechanisms to make the
3347 # sorts of decisions they want to make on this basis. Please consider
3348 # this option to be deprecated. FIXME.
3349 if test x
${is_cross_compiler} = xyes
; then
3350 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3353 # Default to --enable-multilib.
3354 if test x
${enable_multilib} = x
; then
3355 target_configargs
="--enable-multilib ${target_configargs}"
3358 # Pass --with-newlib if appropriate. Note that target_configdirs has
3359 # changed from the earlier setting of with_newlib.
3360 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3361 target_configargs
="--with-newlib ${target_configargs}"
3364 # Different target subdirs use different values of certain variables
3365 # (notably CXX). Worse, multilibs use *lots* of different values.
3366 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3367 # it doesn't automatically accept command-line overrides of them.
3368 # This means it's not safe for target subdirs to share a cache file,
3369 # which is disgusting, but there you have it. Hopefully this can be
3370 # fixed in future. It's still worthwhile to use a cache file for each
3371 # directory. I think.
3373 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3374 # We need to pass --target, as newer autoconf's requires consistency
3375 # for target_alias and gcc doesn't manage it consistently.
3376 target_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3379 case " $target_configdirs " in
3381 case " $target_configargs " in
3382 *" --with-newlib "*)
3385 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' ;;
3388 # If we're not building GCC, don't discard standard headers.
3389 if test -d ${srcdir}/gcc
; then
3390 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3392 if test "${build}" != "${host}"; then
3393 # On Canadian crosses, CC_FOR_TARGET will have already been set
3394 # by `configure', so we won't have an opportunity to add -Bgcc/
3395 # to it. This is right: we don't want to search that directory
3396 # for binaries, but we want the header files in there, so add
3398 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3400 # Someone might think of using the pre-installed headers on
3401 # Canadian crosses, in case the installed compiler is not fully
3402 # compatible with the compiler being built. In this case, it
3403 # would be better to flag an error than risking having
3404 # incompatible object files being constructed. We can't
3405 # guarantee that an error will be flagged, but let's hope the
3406 # compiler will do it, when presented with incompatible header
3411 case "${target}-${is_cross_compiler}" in
3412 i
[3456789]86-*-linux*-no)
3413 # Here host == target, so we don't need to build gcc,
3414 # so we don't want to discard standard headers.
3415 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3418 # If we're building newlib, use its generic headers last, but search
3419 # for any libc-related directories first (so make it the last -B
3421 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3429 # Allow the user to override the flags for
3430 # our build compiler if desired.
3431 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3433 # On Canadian crosses, we'll be searching the right directories for
3434 # the previously-installed cross compiler, so don't bother to add
3435 # flags for directories within the install tree of the compiler
3436 # being built; programs in there won't even run.
3437 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3438 # Search for pre-installed headers if nothing else fits.
3439 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3442 if test "x
${use_gnu_ld}" = x &&
3443 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3444 # Arrange for us to find uninstalled linker scripts.
3445 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3448 if test "x
${CC_FOR_TARGET+set}" = xset; then
3450 elif test -d ${srcdir}/gcc; then
3451 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
3452 elif test "$host" = "$target"; then
3453 CC_FOR_TARGET='$(CC)'
3455 CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"`
3457 CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3459 if test "x
${GCJ_FOR_TARGET+set}" = xset; then
3461 elif test -d ${srcdir}/gcc; then
3462 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
3463 elif test "$host" = "$target"; then
3464 GCJ_FOR_TARGET='gcj'
3466 GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"`
3468 GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3470 if test "x
${GFORTRAN_FOR_TARGET+set}" = xset; then
3472 elif test -d ${srcdir}/gcc; then
3473 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
3474 elif test "$host" = "$target"; then
3475 GFORTRAN_FOR_TARGET='gfortran'
3477 GFORTRAN_FOR_TARGET=`echo gfortran | sed "${program_transform_name}"`
3479 case $GFORTRAN_FOR_TARGET in
3480 *' $(FLAGS_FOR_TARGET)') ;;
3481 *) GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET' $(FLAGS_FOR_TARGET)' ;;
3484 # Don't use libstdc++-v3's flags to configure/build itself.
3485 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'
3486 raw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
3488 if test "x
${CXX_FOR_TARGET+set}" = xset; then
3489 if test "x
${RAW_CXX_FOR_TARGET+set}" != xset; then
3490 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3492 elif test -d ${srcdir}/gcc; then
3493 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
3494 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
3495 # default whereas gcc does not.
3496 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
3498 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ '$libstdcxx_flags
3499 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ '$raw_libstdcxx_flags
3500 elif test "$host" = "$target"; then
3501 CXX_FOR_TARGET='$(CXX)'
3502 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3504 CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"`
3505 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3507 CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3508 RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3510 qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3511 qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3513 # We want to defer the evaluation of `cmd`s and shell variables in
3514 # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
3515 # bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
3516 # quotes, but we still have to duplicate `$'s so that shell variables
3517 # can be expanded by the nested make as shell variables, not as make
3519 qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3520 qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3522 # Wrap CC_FOR_TARGET and friends, for certain types of builds.
3523 CC_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${CC_FOR_TARGET}"
3524 GCJ_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${GCJ_FOR_TARGET}"
3525 GFORTRAN_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${GFORTRAN_FOR_TARGET}"
3526 CXX_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${qCXX_FOR_TARGET}"
3527 RAW_CXX_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${qRAW_CXX_FOR_TARGET}"
3528 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$
(STAGE_CC_WRAPPER
) ${qqCXX_FOR_TARGET}"
3529 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$
(STAGE_CC_WRAPPER
) ${qqRAW_CXX_FOR_TARGET}"
3531 # Makefile fragments.
3532 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3534 eval fragval=\$$frag
3535 if test $fragval != /dev/null; then
3536 eval $frag=${srcdir}/$fragval
3544 # Miscellanea: directories, flags, etc.
3552 # Build module lists & subconfigure args.
3556 # Host module lists & subconfigure args.
3560 # Target module lists & subconfigure args.
3570 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3571 ncn_target_tool_prefix=
3572 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3574 if test -n "$ncn_tool_prefix"; then
3575 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
3576 set dummy ${ncn_tool_prefix}ar; ac_word=$2
3577 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3578 echo "configure
:3579: checking
for $ac_word" >&5
3579 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3580 echo $ac_n "(cached
) $ac_c" 1>&6
3582 if test -n "$AR"; then
3583 ac_cv_prog_AR="$AR" # Let the user override the test.
3585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3587 for ac_dir in $ac_dummy; do
3588 test -z "$ac_dir" && ac_dir=.
3589 if test -f $ac_dir/$ac_word; then
3590 ac_cv_prog_AR="${ncn_tool_prefix}ar"
3598 if test -n "$AR"; then
3599 echo "$ac_t""$AR" 1>&6
3601 echo "$ac_t""no
" 1>&6
3605 if test -z "$ac_cv_prog_AR" ; then
3606 if test $build = $host ; then
3608 # Extract the first word of "ar", so it can be a program name with args.
3609 set dummy ar; ac_word=$2
3610 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3611 echo "configure
:3612: checking
for $ac_word" >&5
3612 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
3613 echo $ac_n "(cached
) $ac_c" 1>&6
3615 if test -n "$ncn_cv_AR"; then
3616 ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test.
3618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3620 for ac_dir in $ac_dummy; do
3621 test -z "$ac_dir" && ac_dir=.
3622 if test -f $ac_dir/$ac_word; then
3623 ac_cv_prog_ncn_cv_AR="ar"
3628 test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar"
3631 ncn_cv_AR="$ac_cv_prog_ncn_cv_AR"
3632 if test -n "$ncn_cv_AR"; then
3633 echo "$ac_t""$ncn_cv_AR" 1>&6
3635 echo "$ac_t""no
" 1>&6
3640 AR="${ncn_tool_prefix}ar"
3646 if test -n "$ncn_tool_prefix"; then
3647 # Extract the first word of "${ncn_tool_prefix}as
", so it can be a program name with args.
3648 set dummy ${ncn_tool_prefix}as; ac_word=$2
3649 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3650 echo "configure
:3651: checking
for $ac_word" >&5
3651 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3652 echo $ac_n "(cached
) $ac_c" 1>&6
3654 if test -n "$AS"; then
3655 ac_cv_prog_AS="$AS" # Let the user override the test.
3657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3659 for ac_dir in $ac_dummy; do
3660 test -z "$ac_dir" && ac_dir=.
3661 if test -f $ac_dir/$ac_word; then
3662 ac_cv_prog_AS="${ncn_tool_prefix}as
"
3670 if test -n "$AS"; then
3671 echo "$ac_t""$AS" 1>&6
3673 echo "$ac_t""no
" 1>&6
3677 if test -z "$ac_cv_prog_AS" ; then
3678 if test $build = $host ; then
3680 # Extract the first word of "as
", so it can be a program name with args.
3681 set dummy as; ac_word=$2
3682 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3683 echo "configure
:3684: checking
for $ac_word" >&5
3684 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
3685 echo $ac_n "(cached
) $ac_c" 1>&6
3687 if test -n "$ncn_cv_AS"; then
3688 ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test.
3690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3692 for ac_dir in $ac_dummy; do
3693 test -z "$ac_dir" && ac_dir=.
3694 if test -f $ac_dir/$ac_word; then
3695 ac_cv_prog_ncn_cv_AS="as
"
3700 test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as
"
3703 ncn_cv_AS="$ac_cv_prog_ncn_cv_AS"
3704 if test -n "$ncn_cv_AS"; then
3705 echo "$ac_t""$ncn_cv_AS" 1>&6
3707 echo "$ac_t""no
" 1>&6
3712 AS="${ncn_tool_prefix}as
"
3718 if test -n "$ncn_tool_prefix"; then
3719 # Extract the first word of "${ncn_tool_prefix}dlltool
", so it can be a program name with args.
3720 set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
3721 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3722 echo "configure
:3723: checking
for $ac_word" >&5
3723 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3724 echo $ac_n "(cached
) $ac_c" 1>&6
3726 if test -n "$DLLTOOL"; then
3727 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3731 for ac_dir in $ac_dummy; do
3732 test -z "$ac_dir" && ac_dir=.
3733 if test -f $ac_dir/$ac_word; then
3734 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool
"
3741 DLLTOOL="$ac_cv_prog_DLLTOOL"
3742 if test -n "$DLLTOOL"; then
3743 echo "$ac_t""$DLLTOOL" 1>&6
3745 echo "$ac_t""no
" 1>&6
3749 if test -z "$ac_cv_prog_DLLTOOL" ; then
3750 if test $build = $host ; then
3751 ncn_cv_DLLTOOL=$DLLTOOL
3752 # Extract the first word of "dlltool
", so it can be a program name with args.
3753 set dummy dlltool; ac_word=$2
3754 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3755 echo "configure
:3756: checking
for $ac_word" >&5
3756 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
3757 echo $ac_n "(cached
) $ac_c" 1>&6
3759 if test -n "$ncn_cv_DLLTOOL"; then
3760 ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test.
3762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3764 for ac_dir in $ac_dummy; do
3765 test -z "$ac_dir" && ac_dir=.
3766 if test -f $ac_dir/$ac_word; then
3767 ac_cv_prog_ncn_cv_DLLTOOL="dlltool
"
3772 test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool
"
3775 ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL"
3776 if test -n "$ncn_cv_DLLTOOL"; then
3777 echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6
3779 echo "$ac_t""no
" 1>&6
3782 DLLTOOL=$ncn_cv_DLLTOOL
3784 DLLTOOL="${ncn_tool_prefix}dlltool
"
3787 DLLTOOL="$ac_cv_prog_DLLTOOL"
3790 if test -n "$ncn_tool_prefix"; then
3791 # Extract the first word of "${ncn_tool_prefix}ld
", so it can be a program name with args.
3792 set dummy ${ncn_tool_prefix}ld; ac_word=$2
3793 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3794 echo "configure
:3795: checking
for $ac_word" >&5
3795 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3796 echo $ac_n "(cached
) $ac_c" 1>&6
3798 if test -n "$LD"; then
3799 ac_cv_prog_LD="$LD" # Let the user override the test.
3801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3803 for ac_dir in $ac_dummy; do
3804 test -z "$ac_dir" && ac_dir=.
3805 if test -f $ac_dir/$ac_word; then
3806 ac_cv_prog_LD="${ncn_tool_prefix}ld
"
3814 if test -n "$LD"; then
3815 echo "$ac_t""$LD" 1>&6
3817 echo "$ac_t""no
" 1>&6
3821 if test -z "$ac_cv_prog_LD" ; then
3822 if test $build = $host ; then
3824 # Extract the first word of "ld
", so it can be a program name with args.
3825 set dummy ld; ac_word=$2
3826 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3827 echo "configure
:3828: checking
for $ac_word" >&5
3828 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
3829 echo $ac_n "(cached
) $ac_c" 1>&6
3831 if test -n "$ncn_cv_LD"; then
3832 ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test.
3834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3836 for ac_dir in $ac_dummy; do
3837 test -z "$ac_dir" && ac_dir=.
3838 if test -f $ac_dir/$ac_word; then
3839 ac_cv_prog_ncn_cv_LD="ld
"
3844 test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld
"
3847 ncn_cv_LD="$ac_cv_prog_ncn_cv_LD"
3848 if test -n "$ncn_cv_LD"; then
3849 echo "$ac_t""$ncn_cv_LD" 1>&6
3851 echo "$ac_t""no
" 1>&6
3856 LD="${ncn_tool_prefix}ld
"
3862 if test -n "$ncn_tool_prefix"; then
3863 # Extract the first word of "${ncn_tool_prefix}nm
", so it can be a program name with args.
3864 set dummy ${ncn_tool_prefix}nm; ac_word=$2
3865 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3866 echo "configure
:3867: checking
for $ac_word" >&5
3867 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3868 echo $ac_n "(cached
) $ac_c" 1>&6
3870 if test -n "$NM"; then
3871 ac_cv_prog_NM="$NM" # Let the user override the test.
3873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3875 for ac_dir in $ac_dummy; do
3876 test -z "$ac_dir" && ac_dir=.
3877 if test -f $ac_dir/$ac_word; then
3878 ac_cv_prog_NM="${ncn_tool_prefix}nm
"
3886 if test -n "$NM"; then
3887 echo "$ac_t""$NM" 1>&6
3889 echo "$ac_t""no
" 1>&6
3893 if test -z "$ac_cv_prog_NM" ; then
3894 if test $build = $host ; then
3896 # Extract the first word of "nm
", so it can be a program name with args.
3897 set dummy nm; ac_word=$2
3898 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3899 echo "configure
:3900: checking
for $ac_word" >&5
3900 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
3901 echo $ac_n "(cached
) $ac_c" 1>&6
3903 if test -n "$ncn_cv_NM"; then
3904 ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test.
3906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3908 for ac_dir in $ac_dummy; do
3909 test -z "$ac_dir" && ac_dir=.
3910 if test -f $ac_dir/$ac_word; then
3911 ac_cv_prog_ncn_cv_NM="nm
"
3916 test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm
"
3919 ncn_cv_NM="$ac_cv_prog_ncn_cv_NM"
3920 if test -n "$ncn_cv_NM"; then
3921 echo "$ac_t""$ncn_cv_NM" 1>&6
3923 echo "$ac_t""no
" 1>&6
3928 NM="${ncn_tool_prefix}nm
"
3934 if test -n "$ncn_tool_prefix"; then
3935 # Extract the first word of "${ncn_tool_prefix}ranlib
", so it can be a program name with args.
3936 set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3937 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3938 echo "configure
:3939: checking
for $ac_word" >&5
3939 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3940 echo $ac_n "(cached
) $ac_c" 1>&6
3942 if test -n "$RANLIB"; then
3943 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3947 for ac_dir in $ac_dummy; do
3948 test -z "$ac_dir" && ac_dir=.
3949 if test -f $ac_dir/$ac_word; then
3950 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib
"
3957 RANLIB="$ac_cv_prog_RANLIB"
3958 if test -n "$RANLIB"; then
3959 echo "$ac_t""$RANLIB" 1>&6
3961 echo "$ac_t""no
" 1>&6
3965 if test -z "$ac_cv_prog_RANLIB" ; then
3966 if test $build = $host ; then
3967 ncn_cv_RANLIB=$RANLIB
3968 # Extract the first word of "ranlib
", so it can be a program name with args.
3969 set dummy ranlib; ac_word=$2
3970 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3971 echo "configure
:3972: checking
for $ac_word" >&5
3972 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
3973 echo $ac_n "(cached
) $ac_c" 1>&6
3975 if test -n "$ncn_cv_RANLIB"; then
3976 ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test.
3978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3980 for ac_dir in $ac_dummy; do
3981 test -z "$ac_dir" && ac_dir=.
3982 if test -f $ac_dir/$ac_word; then
3983 ac_cv_prog_ncn_cv_RANLIB="ranlib
"
3988 test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":"
3991 ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB"
3992 if test -n "$ncn_cv_RANLIB"; then
3993 echo "$ac_t""$ncn_cv_RANLIB" 1>&6
3995 echo "$ac_t""no
" 1>&6
3998 RANLIB=$ncn_cv_RANLIB
4003 RANLIB="$ac_cv_prog_RANLIB"
4006 if test -n "$ncn_tool_prefix"; then
4007 # Extract the first word of "${ncn_tool_prefix}windres
", so it can be a program name with args.
4008 set dummy ${ncn_tool_prefix}windres; ac_word=$2
4009 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4010 echo "configure
:4011: checking
for $ac_word" >&5
4011 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4012 echo $ac_n "(cached
) $ac_c" 1>&6
4014 if test -n "$WINDRES"; then
4015 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4019 for ac_dir in $ac_dummy; do
4020 test -z "$ac_dir" && ac_dir=.
4021 if test -f $ac_dir/$ac_word; then
4022 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres
"
4029 WINDRES="$ac_cv_prog_WINDRES"
4030 if test -n "$WINDRES"; then
4031 echo "$ac_t""$WINDRES" 1>&6
4033 echo "$ac_t""no
" 1>&6
4037 if test -z "$ac_cv_prog_WINDRES" ; then
4038 if test $build = $host ; then
4039 ncn_cv_WINDRES=$WINDRES
4040 # Extract the first word of "windres
", so it can be a program name with args.
4041 set dummy windres; ac_word=$2
4042 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4043 echo "configure
:4044: checking
for $ac_word" >&5
4044 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
4045 echo $ac_n "(cached
) $ac_c" 1>&6
4047 if test -n "$ncn_cv_WINDRES"; then
4048 ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test.
4050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4052 for ac_dir in $ac_dummy; do
4053 test -z "$ac_dir" && ac_dir=.
4054 if test -f $ac_dir/$ac_word; then
4055 ac_cv_prog_ncn_cv_WINDRES="windres
"
4060 test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres
"
4063 ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES"
4064 if test -n "$ncn_cv_WINDRES"; then
4065 echo "$ac_t""$ncn_cv_WINDRES" 1>&6
4067 echo "$ac_t""no
" 1>&6
4070 WINDRES=$ncn_cv_WINDRES
4072 WINDRES="${ncn_tool_prefix}windres
"
4075 WINDRES="$ac_cv_prog_WINDRES"
4078 if test -n "$ncn_tool_prefix"; then
4079 # Extract the first word of "${ncn_tool_prefix}objcopy
", so it can be a program name with args.
4080 set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
4081 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4082 echo "configure
:4083: checking
for $ac_word" >&5
4083 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4084 echo $ac_n "(cached
) $ac_c" 1>&6
4086 if test -n "$OBJCOPY"; then
4087 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4091 for ac_dir in $ac_dummy; do
4092 test -z "$ac_dir" && ac_dir=.
4093 if test -f $ac_dir/$ac_word; then
4094 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy
"
4101 OBJCOPY="$ac_cv_prog_OBJCOPY"
4102 if test -n "$OBJCOPY"; then
4103 echo "$ac_t""$OBJCOPY" 1>&6
4105 echo "$ac_t""no
" 1>&6
4109 if test -z "$ac_cv_prog_OBJCOPY" ; then
4110 if test $build = $host ; then
4111 ncn_cv_OBJCOPY=$OBJCOPY
4112 # Extract the first word of "objcopy
", so it can be a program name with args.
4113 set dummy objcopy; ac_word=$2
4114 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4115 echo "configure
:4116: checking
for $ac_word" >&5
4116 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
4117 echo $ac_n "(cached
) $ac_c" 1>&6
4119 if test -n "$ncn_cv_OBJCOPY"; then
4120 ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test.
4122 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4124 for ac_dir in $ac_dummy; do
4125 test -z "$ac_dir" && ac_dir=.
4126 if test -f $ac_dir/$ac_word; then
4127 ac_cv_prog_ncn_cv_OBJCOPY="objcopy
"
4132 test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy
"
4135 ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY"
4136 if test -n "$ncn_cv_OBJCOPY"; then
4137 echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6
4139 echo "$ac_t""no
" 1>&6
4142 OBJCOPY=$ncn_cv_OBJCOPY
4144 OBJCOPY="${ncn_tool_prefix}objcopy
"
4147 OBJCOPY="$ac_cv_prog_OBJCOPY"
4150 if test -n "$ncn_tool_prefix"; then
4151 # Extract the first word of "${ncn_tool_prefix}objdump
", so it can be a program name with args.
4152 set dummy ${ncn_tool_prefix}objdump; ac_word=$2
4153 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4154 echo "configure
:4155: checking
for $ac_word" >&5
4155 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4156 echo $ac_n "(cached
) $ac_c" 1>&6
4158 if test -n "$OBJDUMP"; then
4159 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4163 for ac_dir in $ac_dummy; do
4164 test -z "$ac_dir" && ac_dir=.
4165 if test -f $ac_dir/$ac_word; then
4166 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump
"
4173 OBJDUMP="$ac_cv_prog_OBJDUMP"
4174 if test -n "$OBJDUMP"; then
4175 echo "$ac_t""$OBJDUMP" 1>&6
4177 echo "$ac_t""no
" 1>&6
4181 if test -z "$ac_cv_prog_OBJDUMP" ; then
4182 if test $build = $host ; then
4183 ncn_cv_OBJDUMP=$OBJDUMP
4184 # Extract the first word of "objdump
", so it can be a program name with args.
4185 set dummy objdump; ac_word=$2
4186 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4187 echo "configure
:4188: checking
for $ac_word" >&5
4188 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
4189 echo $ac_n "(cached
) $ac_c" 1>&6
4191 if test -n "$ncn_cv_OBJDUMP"; then
4192 ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test.
4194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4196 for ac_dir in $ac_dummy; do
4197 test -z "$ac_dir" && ac_dir=.
4198 if test -f $ac_dir/$ac_word; then
4199 ac_cv_prog_ncn_cv_OBJDUMP="objdump
"
4204 test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump
"
4207 ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP"
4208 if test -n "$ncn_cv_OBJDUMP"; then
4209 echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6
4211 echo "$ac_t""no
" 1>&6
4214 OBJDUMP=$ncn_cv_OBJDUMP
4216 OBJDUMP="${ncn_tool_prefix}objdump
"
4219 OBJDUMP="$ac_cv_prog_OBJDUMP"
4229 if test -n "$ncn_target_tool_prefix"; then
4230 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
4231 set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
4232 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4233 echo "configure
:4234: checking
for $ac_word" >&5
4234 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
4235 echo $ac_n "(cached
) $ac_c" 1>&6
4237 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4238 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="$CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
4240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4242 for ac_dir in $ac_dummy; do
4243 test -z "$ac_dir" && ac_dir=.
4244 if test -f $ac_dir/$ac_word; then
4245 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
4252 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
4253 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4254 echo "$ac_t""$CONFIGURED_AR_FOR_TARGET" 1>&6
4256 echo "$ac_t""no
" 1>&6
4260 if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then
4261 if test $build = $target ; then
4262 ncn_cv_CONFIGURED_AR_FOR_TARGET=$CONFIGURED_AR_FOR_TARGET
4263 # Extract the first word of "ar", so it can be a program name with args.
4264 set dummy ar; ac_word=$2
4265 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4266 echo "configure
:4267: checking
for $ac_word" >&5
4267 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
4268 echo $ac_n "(cached
) $ac_c" 1>&6
4270 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4271 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="$ncn_cv_CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
4273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4275 for ac_dir in $ac_dummy; do
4276 test -z "$ac_dir" && ac_dir=.
4277 if test -f $ac_dir/$ac_word; then
4278 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
4283 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
4286 ncn_cv_CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET"
4287 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4288 echo "$ac_t""$ncn_cv_CONFIGURED_AR_FOR_TARGET" 1>&6
4290 echo "$ac_t""no
" 1>&6
4293 CONFIGURED_AR_FOR_TARGET=$ncn_cv_CONFIGURED_AR_FOR_TARGET
4295 CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
4298 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
4301 if test -n "$ncn_target_tool_prefix"; then
4302 # Extract the first word of "${ncn_target_tool_prefix}as
", so it can be a program name with args.
4303 set dummy ${ncn_target_tool_prefix}as; ac_word=$2
4304 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4305 echo "configure
:4306: checking
for $ac_word" >&5
4306 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4307 echo $ac_n "(cached
) $ac_c" 1>&6
4309 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4310 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="$CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
4312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4314 for ac_dir in $ac_dummy; do
4315 test -z "$ac_dir" && ac_dir=.
4316 if test -f $ac_dir/$ac_word; then
4317 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as
"
4324 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4325 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4326 echo "$ac_t""$CONFIGURED_AS_FOR_TARGET" 1>&6
4328 echo "$ac_t""no
" 1>&6
4332 if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then
4333 if test $build = $target ; then
4334 ncn_cv_CONFIGURED_AS_FOR_TARGET=$CONFIGURED_AS_FOR_TARGET
4335 # Extract the first word of "as
", so it can be a program name with args.
4336 set dummy as; ac_word=$2
4337 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4338 echo "configure
:4339: checking
for $ac_word" >&5
4339 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4340 echo $ac_n "(cached
) $ac_c" 1>&6
4342 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4343 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="$ncn_cv_CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
4345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4347 for ac_dir in $ac_dummy; do
4348 test -z "$ac_dir" && ac_dir=.
4349 if test -f $ac_dir/$ac_word; then
4350 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as
"
4355 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as
"
4358 ncn_cv_CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET"
4359 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4360 echo "$ac_t""$ncn_cv_CONFIGURED_AS_FOR_TARGET" 1>&6
4362 echo "$ac_t""no
" 1>&6
4365 CONFIGURED_AS_FOR_TARGET=$ncn_cv_CONFIGURED_AS_FOR_TARGET
4367 CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as
"
4370 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4373 if test -n "$ncn_target_tool_prefix"; then
4374 # Extract the first word of "${ncn_target_tool_prefix}dlltool
", so it can be a program name with args.
4375 set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
4376 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4377 echo "configure
:4378: checking
for $ac_word" >&5
4378 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4379 echo $ac_n "(cached
) $ac_c" 1>&6
4381 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4382 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="$CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4386 for ac_dir in $ac_dummy; do
4387 test -z "$ac_dir" && ac_dir=.
4388 if test -f $ac_dir/$ac_word; then
4389 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool
"
4396 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4397 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4398 echo "$ac_t""$CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4400 echo "$ac_t""no
" 1>&6
4404 if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then
4405 if test $build = $target ; then
4406 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET=$CONFIGURED_DLLTOOL_FOR_TARGET
4407 # Extract the first word of "dlltool
", so it can be a program name with args.
4408 set dummy dlltool; ac_word=$2
4409 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4410 echo "configure
:4411: checking
for $ac_word" >&5
4411 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4412 echo $ac_n "(cached
) $ac_c" 1>&6
4414 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4415 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4419 for ac_dir in $ac_dummy; do
4420 test -z "$ac_dir" && ac_dir=.
4421 if test -f $ac_dir/$ac_word; then
4422 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool
"
4427 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool
"
4430 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"
4431 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4432 echo "$ac_t""$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4434 echo "$ac_t""no
" 1>&6
4437 CONFIGURED_DLLTOOL_FOR_TARGET=$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET
4439 CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool
"
4442 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4445 if test -n "$ncn_target_tool_prefix"; then
4446 # Extract the first word of "${ncn_target_tool_prefix}ld
", so it can be a program name with args.
4447 set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
4448 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4449 echo "configure
:4450: checking
for $ac_word" >&5
4450 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4451 echo $ac_n "(cached
) $ac_c" 1>&6
4453 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4454 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="$CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4458 for ac_dir in $ac_dummy; do
4459 test -z "$ac_dir" && ac_dir=.
4460 if test -f $ac_dir/$ac_word; then
4461 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld
"
4468 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4469 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4470 echo "$ac_t""$CONFIGURED_LD_FOR_TARGET" 1>&6
4472 echo "$ac_t""no
" 1>&6
4476 if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then
4477 if test $build = $target ; then
4478 ncn_cv_CONFIGURED_LD_FOR_TARGET=$CONFIGURED_LD_FOR_TARGET
4479 # Extract the first word of "ld
", so it can be a program name with args.
4480 set dummy ld; ac_word=$2
4481 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4482 echo "configure
:4483: checking
for $ac_word" >&5
4483 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4484 echo $ac_n "(cached
) $ac_c" 1>&6
4486 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4487 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="$ncn_cv_CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4491 for ac_dir in $ac_dummy; do
4492 test -z "$ac_dir" && ac_dir=.
4493 if test -f $ac_dir/$ac_word; then
4494 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld
"
4499 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld
"
4502 ncn_cv_CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET"
4503 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4504 echo "$ac_t""$ncn_cv_CONFIGURED_LD_FOR_TARGET" 1>&6
4506 echo "$ac_t""no
" 1>&6
4509 CONFIGURED_LD_FOR_TARGET=$ncn_cv_CONFIGURED_LD_FOR_TARGET
4511 CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld
"
4514 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4517 if test -n "$ncn_target_tool_prefix"; then
4518 # Extract the first word of "${ncn_target_tool_prefix}nm
", so it can be a program name with args.
4519 set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
4520 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4521 echo "configure
:4522: checking
for $ac_word" >&5
4522 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4523 echo $ac_n "(cached
) $ac_c" 1>&6
4525 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4526 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="$CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4530 for ac_dir in $ac_dummy; do
4531 test -z "$ac_dir" && ac_dir=.
4532 if test -f $ac_dir/$ac_word; then
4533 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm
"
4540 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4541 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4542 echo "$ac_t""$CONFIGURED_NM_FOR_TARGET" 1>&6
4544 echo "$ac_t""no
" 1>&6
4548 if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then
4549 if test $build = $target ; then
4550 ncn_cv_CONFIGURED_NM_FOR_TARGET=$CONFIGURED_NM_FOR_TARGET
4551 # Extract the first word of "nm
", so it can be a program name with args.
4552 set dummy nm; ac_word=$2
4553 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4554 echo "configure
:4555: checking
for $ac_word" >&5
4555 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4556 echo $ac_n "(cached
) $ac_c" 1>&6
4558 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4559 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="$ncn_cv_CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4563 for ac_dir in $ac_dummy; do
4564 test -z "$ac_dir" && ac_dir=.
4565 if test -f $ac_dir/$ac_word; then
4566 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm
"
4571 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm
"
4574 ncn_cv_CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET"
4575 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4576 echo "$ac_t""$ncn_cv_CONFIGURED_NM_FOR_TARGET" 1>&6
4578 echo "$ac_t""no
" 1>&6
4581 CONFIGURED_NM_FOR_TARGET=$ncn_cv_CONFIGURED_NM_FOR_TARGET
4583 CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm
"
4586 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4589 if test -n "$ncn_target_tool_prefix"; then
4590 # Extract the first word of "${ncn_target_tool_prefix}ranlib
", so it can be a program name with args.
4591 set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
4592 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4593 echo "configure
:4594: checking
for $ac_word" >&5
4594 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4595 echo $ac_n "(cached
) $ac_c" 1>&6
4597 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4598 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="$CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4602 for ac_dir in $ac_dummy; do
4603 test -z "$ac_dir" && ac_dir=.
4604 if test -f $ac_dir/$ac_word; then
4605 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib
"
4612 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4613 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4614 echo "$ac_t""$CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4616 echo "$ac_t""no
" 1>&6
4620 if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then
4621 if test $build = $target ; then
4622 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=$CONFIGURED_RANLIB_FOR_TARGET
4623 # Extract the first word of "ranlib
", so it can be a program name with args.
4624 set dummy ranlib; ac_word=$2
4625 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4626 echo "configure
:4627: checking
for $ac_word" >&5
4627 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4628 echo $ac_n "(cached
) $ac_c" 1>&6
4630 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4631 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4635 for ac_dir in $ac_dummy; do
4636 test -z "$ac_dir" && ac_dir=.
4637 if test -f $ac_dir/$ac_word; then
4638 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="ranlib
"
4643 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=":"
4646 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"
4647 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4648 echo "$ac_t""$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4650 echo "$ac_t""no
" 1>&6
4653 CONFIGURED_RANLIB_FOR_TARGET=$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET
4655 CONFIGURED_RANLIB_FOR_TARGET=":"
4658 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4661 if test -n "$ncn_target_tool_prefix"; then
4662 # Extract the first word of "${ncn_target_tool_prefix}windres
", so it can be a program name with args.
4663 set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
4664 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4665 echo "configure
:4666: checking
for $ac_word" >&5
4666 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4667 echo $ac_n "(cached
) $ac_c" 1>&6
4669 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4670 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="$CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4674 for ac_dir in $ac_dummy; do
4675 test -z "$ac_dir" && ac_dir=.
4676 if test -f $ac_dir/$ac_word; then
4677 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres
"
4684 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4685 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4686 echo "$ac_t""$CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4688 echo "$ac_t""no
" 1>&6
4692 if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then
4693 if test $build = $target ; then
4694 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET=$CONFIGURED_WINDRES_FOR_TARGET
4695 # Extract the first word of "windres
", so it can be a program name with args.
4696 set dummy windres; ac_word=$2
4697 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4698 echo "configure
:4699: checking
for $ac_word" >&5
4699 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4700 echo $ac_n "(cached
) $ac_c" 1>&6
4702 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4703 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4707 for ac_dir in $ac_dummy; do
4708 test -z "$ac_dir" && ac_dir=.
4709 if test -f $ac_dir/$ac_word; then
4710 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres
"
4715 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres
"
4718 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"
4719 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4720 echo "$ac_t""$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4722 echo "$ac_t""no
" 1>&6
4725 CONFIGURED_WINDRES_FOR_TARGET=$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET
4727 CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres
"
4730 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4744 # Fix up target tools.
4745 if test "x
${build}" = "x
${host}" ; then
4746 # In this case, the newly built tools can and should be used,
4747 # so we override the results of the autoconf tests.
4748 # This should really only happen when the tools are actually being built,
4749 # but that's a further refinement. The new build scheme, where
4750 # tools are built into a structure paralleling where they're installed,
4751 # should also eliminate all of this cleanly.
4752 AR_FOR_TARGET="\$
(USUAL_AR_FOR_TARGET
)"
4753 AS_FOR_TARGET="\$
(USUAL_AS_FOR_TARGET
)"
4754 DLLTOOL_FOR_TARGET="\$
(USUAL_DLLTOOL_FOR_TARGET
)"
4755 LD_FOR_TARGET="\$
(USUAL_LD_FOR_TARGET
)"
4756 NM_FOR_TARGET="\$
(USUAL_NM_FOR_TARGET
)"
4757 RANLIB_FOR_TARGET="\$
(USUAL_RANLIB_FOR_TARGET
)"
4758 WINDRES_FOR_TARGET="\$
(USUAL_WINDRES_FOR_TARGET
)"
4760 # Just use the ones we found.
4761 AR_FOR_TARGET="\$
(CONFIGURED_AR_FOR_TARGET
)"
4762 AS_FOR_TARGET="\$
(CONFIGURED_AS_FOR_TARGET
)"
4763 DLLTOOL_FOR_TARGET="\$
(CONFIGURED_DLLTOOL_FOR_TARGET
)"
4764 LD_FOR_TARGET="\$
(CONFIGURED_LD_FOR_TARGET
)"
4765 NM_FOR_TARGET="\$
(CONFIGURED_NM_FOR_TARGET
)"
4766 RANLIB_FOR_TARGET="\$
(CONFIGURED_RANLIB_FOR_TARGET
)"
4767 WINDRES_FOR_TARGET="\$
(CONFIGURED_WINDRES_FOR_TARGET
)"
4777 # Certain tools may need extra flags.
4778 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
4779 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
4780 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
4782 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
4783 echo "configure
:4784: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
4784 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4785 if test "${enable_maintainer_mode+set}" = set; then
4786 enableval="$enable_maintainer_mode"
4787 USE_MAINTAINER_MODE=$enableval
4789 USE_MAINTAINER_MODE=no
4792 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4795 if test "$USE_MAINTAINER_MODE" = yes; then
4796 MAINTAINER_MODE_TRUE=
4797 MAINTAINER_MODE_FALSE='#'
4799 MAINTAINER_MODE_TRUE='#'
4800 MAINTAINER_MODE_FALSE=
4802 MAINT=$MAINTAINER_MODE_TRUE
4804 # ---------------------
4805 # GCC bootstrap support
4806 # ---------------------
4808 # Stage specific cflags for build.
4813 yes) stage1_cflags="-g -Wa,-J" ;;
4814 *) stage1_cflags="-g -J" ;;
4817 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
4818 # sources; use -no-cpp-precomp to get to GNU cpp.
4819 # Apple's GCC has bugs in designated initializer handling, so disable
4821 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
4826 # It makes debugging easier if we create as symlinks the stage directories
4827 # gcc for stageN-gcc and stagePREV-gcc for stage(N-1). In case this is not
4828 # possible, however, we can resort to mv.
4829 echo $ac_n "checking
if symbolic links between directories work
""...
$ac_c" 1>&6
4830 echo "configure
:4831: checking
if symbolic links between directories work
" >&5
4831 if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
4832 echo $ac_n "(cached
) $ac_c" 1>&6
4834 if test "${LN_S}" = "ln -s" \
4835 && mkdir confdir.s1 \
4836 && ln -s confdir.s1 confdir.s2 \
4837 && echo timestamp1 > confdir.s1/conftest.1 \
4838 && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \
4839 && echo timestamp2 > confdir.s2/conftest.2 \
4840 && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \
4841 && rm -f confdir.s2; then
4842 gcc_cv_prog_ln_s_dir=yes
4844 gcc_cv_prog_ln_s_dir=no
4846 rm -rf confdir.s1 confdir.s2
4849 echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6
4851 case ${gcc_cv_prog_ln_s_dir} in
4853 CREATE_LINK_TO_DIR='ln -s $$1 $$2'
4854 UNDO_LINK_TO_DIR='rm -f $$1' ;;
4856 CREATE_LINK_TO_DIR='mv $$1 $$2'
4857 UNDO_LINK_TO_DIR='mv $$1 $$2' ;;
4862 # Enable -Werror in bootstrap stage2 and later.
4863 # Change the default to "no
" on release branches.
4864 # Check whether --enable-werror or --disable-werror was given.
4865 if test "${enable_werror+set}" = set; then
4866 enableval="$enable_werror"
4872 case ${enable_werror} in
4873 yes) stage2_werror_flag="--enable-werror-always" ;;
4874 *) stage2_werror_flag="" ;;
4879 cat > confcache <<\EOF
4880 # This file is a shell script that caches the results of configure
4881 # tests run on this system so they can be shared between configure
4882 # scripts and configure runs. It is not useful on other systems.
4883 # If it contains results you don't want to keep, you may remove or edit it.
4885 # By default, configure uses ./config.cache as the cache file,
4886 # creating it if it does not exist already. You can give configure
4887 # the --cache-file=FILE option to use a different cache file; that is
4888 # what configure does when it calls configure scripts in
4889 # subdirectories, so they share the cache.
4890 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4891 # config.status only pays attention to the cache file if you give it the
4892 # --recheck option to rerun configure.
4895 # The following way of writing the cache mishandles newlines in values,
4896 # but we know of no workaround that is simple, portable, and efficient.
4897 # So, don't put newlines in cache variables' values.
4898 # Ultrix sh set writes to stderr and can't be redirected directly,
4899 # and sets the high bit in the cache file unless we assign to the vars.
4901 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4903 # `set' does not quote correctly, so add quotes (double-quote substitution
4904 # turns \\\\ into \\, and sed turns \\ into \).
4906 -e "s
/'/'\\\\''/g
" \
4907 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
4910 # `set' quotes correctly as required by POSIX, so do not add quotes.
4911 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4914 if cmp -s $cache_file confcache; then
4917 if test -w $cache_file; then
4918 echo "updating cache
$cache_file"
4919 cat confcache > $cache_file
4921 echo "not updating unwritable cache
$cache_file"
4926 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4928 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
4929 # Let make expand exec_prefix.
4930 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
4932 # Any assignment to VPATH causes Sun make to only execute
4933 # the first set of double-colon rules, so remove it if not needed.
4934 # If there is a colon in the path, we need to keep it.
4935 if test "x
$srcdir" = x.; then
4936 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4939 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4941 # Transform confdefs.h into DEFS.
4942 # Protect against shell expansion while executing Makefile rules.
4943 # Protect against Makefile macro expansion.
4945 # If the first sed substitution is executed (which looks for macros that
4946 # take arguments), then we branch to the quote section. Otherwise,
4947 # look for a macro that doesn't take arguments.
4948 cat >confdef2opt.sed <<\_ACEOF
4951 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4953 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4957 s,[ `~#$^&*(){}\\|;'"<>?
],\\&,g
4963 # We use echo to avoid assuming a particular line-breaking character.
4964 # The extra dot is to prevent the shell from consuming trailing
4965 # line-breaks from the sub-command output. A line-break within
4966 # single-quotes doesn't work because, if this script is created in a
4967 # platform that uses two characters for line-breaks (e.g., DOS), tr
4969 ac_LF_and_DOT
=`echo; echo .`
4970 DEFS
=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4971 rm -f confdef2opt.
sed
4974 # Without the "./", some shells look in PATH for config.status.
4975 : ${CONFIG_STATUS=./config.status}
4977 echo creating
$CONFIG_STATUS
4978 rm -f $CONFIG_STATUS
4979 cat > $CONFIG_STATUS <<EOF
4981 # Generated automatically by configure.
4982 # Run this file to recreate the current configuration.
4983 # This directory was configured as follows,
4984 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4986 # $0 $ac_configure_args
4988 # Compiler output produced by configure, useful for debugging
4989 # configure, is in ./config.log if it exists.
4991 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4994 case "\$ac_option" in
4995 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4996 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4997 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4998 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4999 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5001 -help | --help | --hel | --he | --h)
5002 echo "\$ac_cs_usage"; exit 0 ;;
5003 *) echo "\$ac_cs_usage"; exit 1 ;;
5007 ac_given_srcdir=$srcdir
5008 ac_given_INSTALL="$INSTALL"
5010 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5012 cat >> $CONFIG_STATUS <<EOF
5014 # Protect against being on the right side of a sed subst in config.status.
5015 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5016 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5020 s%@CFLAGS@%$CFLAGS%g
5021 s%@CPPFLAGS@%$CPPFLAGS%g
5022 s%@CXXFLAGS@%$CXXFLAGS%g
5023 s%@FFLAGS@%$FFLAGS%g
5025 s%@LDFLAGS@%$LDFLAGS%g
5027 s%@exec_prefix@%$exec_prefix%g
5028 s%@prefix@%$prefix%g
5029 s%@program_transform_name@%$program_transform_name%g
5030 s%@bindir@%$bindir%g
5031 s%@sbindir@%$sbindir%g
5032 s%@libexecdir@%$libexecdir%g
5033 s%@datadir@%$datadir%g
5034 s%@sysconfdir@%$sysconfdir%g
5035 s%@sharedstatedir@%$sharedstatedir%g
5036 s%@localstatedir@%$localstatedir%g
5037 s%@libdir@%$libdir%g
5038 s%@includedir@%$includedir%g
5039 s%@oldincludedir@%$oldincludedir%g
5040 s%@infodir@%$infodir%g
5041 s%@mandir@%$mandir%g
5043 s%@host_alias@%$host_alias%g
5044 s%@host_cpu@%$host_cpu%g
5045 s%@host_vendor@%$host_vendor%g
5046 s%@host_os@%$host_os%g
5047 s%@target@%$target%g
5048 s%@target_alias@%$target_alias%g
5049 s%@target_cpu@%$target_cpu%g
5050 s%@target_vendor@%$target_vendor%g
5051 s%@target_os@%$target_os%g
5053 s%@build_alias@%$build_alias%g
5054 s%@build_cpu@%$build_cpu%g
5055 s%@build_vendor@%$build_vendor%g
5056 s%@build_os@%$build_os%g
5057 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5058 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5059 s%@INSTALL_DATA@%$INSTALL_DATA%g
5062 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
5063 s%@build_subdir@%$build_subdir%g
5064 s%@host_subdir@%$host_subdir%g
5065 s%@target_subdir@%$target_subdir%g
5067 s%@GNATBIND@%$GNATBIND%g
5068 s%@do_compare@%$do_compare%g
5069 s%@gmplibs@%$gmplibs%g
5070 s%@gmpinc@%$gmpinc%g
5071 s%@stage1_languages@%$stage1_languages%g
5072 s%@CONFIGURED_BISON@%$CONFIGURED_BISON%g
5073 s%@CONFIGURED_YACC@%$CONFIGURED_YACC%g
5074 s%@CONFIGURED_M4@%$CONFIGURED_M4%g
5075 s%@CONFIGURED_FLEX@%$CONFIGURED_FLEX%g
5076 s%@CONFIGURED_LEX@%$CONFIGURED_LEX%g
5077 s%@CONFIGURED_MAKEINFO@%$CONFIGURED_MAKEINFO%g
5078 s%@bootstrap_lean@%$bootstrap_lean%g
5079 s%@default_target@%$default_target%g
5080 /@serialization_dependencies@/r $serialization_dependencies
5081 s%@serialization_dependencies@%%g
5082 /@host_makefile_frag@/r $host_makefile_frag
5083 s%@host_makefile_frag@%%g
5084 /@target_makefile_frag@/r $target_makefile_frag
5085 s%@target_makefile_frag@%%g
5086 /@alphaieee_frag@/r $alphaieee_frag
5087 s%@alphaieee_frag@%%g
5088 /@ospace_frag@/r $ospace_frag
5090 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
5091 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
5092 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
5093 s%@tooldir@%$tooldir%g
5094 s%@build_tooldir@%$build_tooldir%g
5095 s%@GDB_TK@%$GDB_TK%g
5096 s%@build_configargs@%$build_configargs%g
5097 s%@build_configdirs@%$build_configdirs%g
5098 s%@host_configargs@%$host_configargs%g
5099 s%@configdirs@%$configdirs%g
5100 s%@target_configargs@%$target_configargs%g
5101 s%@target_configdirs@%$target_configdirs%g
5102 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5103 s%@config_shell@%$config_shell%g
5105 s%@ncn_cv_AR@%$ncn_cv_AR%g
5107 s%@ncn_cv_AS@%$ncn_cv_AS%g
5108 s%@DLLTOOL@%$DLLTOOL%g
5109 s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g
5111 s%@ncn_cv_LD@%$ncn_cv_LD%g
5113 s%@ncn_cv_NM@%$ncn_cv_NM%g
5114 s%@RANLIB@%$RANLIB%g
5115 s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g
5116 s%@WINDRES@%$WINDRES%g
5117 s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g
5118 s%@OBJCOPY@%$OBJCOPY%g
5119 s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g
5120 s%@OBJDUMP@%$OBJDUMP%g
5121 s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g
5123 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
5124 s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
5125 s%@ncn_cv_CONFIGURED_AR_FOR_TARGET@%$ncn_cv_CONFIGURED_AR_FOR_TARGET%g
5126 s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
5127 s%@ncn_cv_CONFIGURED_AS_FOR_TARGET@%$ncn_cv_CONFIGURED_AS_FOR_TARGET%g
5128 s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
5129 s%@ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET@%$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET%g
5130 s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
5131 s%@ncn_cv_CONFIGURED_LD_FOR_TARGET@%$ncn_cv_CONFIGURED_LD_FOR_TARGET%g
5132 s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
5133 s%@ncn_cv_CONFIGURED_NM_FOR_TARGET@%$ncn_cv_CONFIGURED_NM_FOR_TARGET%g
5134 s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
5135 s%@ncn_cv_CONFIGURED_RANLIB_FOR_TARGET@%$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET%g
5136 s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
5137 s%@ncn_cv_CONFIGURED_WINDRES_FOR_TARGET@%$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET%g
5138 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
5139 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
5140 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
5141 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
5142 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
5143 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
5144 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
5145 s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
5146 s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
5147 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
5148 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
5149 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
5150 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
5151 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
5152 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
5153 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
5154 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5155 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5157 s%@stage1_cflags@%$stage1_cflags%g
5158 s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g
5159 s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g
5160 s%@stage2_werror_flag@%$stage2_werror_flag%g
5165 cat >> $CONFIG_STATUS <<\EOF
5167 # Split the substitutions into bite-sized pieces for seds with
5168 # small command number limits, like on Digital OSF/1 and HP-UX.
5169 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5170 ac_file
=1 # Number of current file.
5171 ac_beg
=1 # First line for current file.
5172 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5175 while $ac_more_lines; do
5176 if test $ac_beg -gt 1; then
5177 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5179 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5181 if test ! -s conftest.s
$ac_file; then
5183 rm -f conftest.s
$ac_file
5185 if test -z "$ac_sed_cmds"; then
5186 ac_sed_cmds
="sed -f conftest.s$ac_file"
5188 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5190 ac_file
=`expr $ac_file + 1`
5192 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5195 if test -z "$ac_sed_cmds"; then
5200 cat >> $CONFIG_STATUS <<EOF
5202 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5204 cat >> $CONFIG_STATUS <<\EOF
5205 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5206 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5208 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5209 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5210 *) ac_file_in
="${ac_file}.in" ;;
5213 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5215 # Remove last slash and all that follows it. Not all systems have dirname.
5216 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5217 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5218 # The file is in a subdirectory.
5219 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5220 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5221 # A "../" for each directory in $ac_dir_suffix.
5222 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5224 ac_dir_suffix
= ac_dots
=
5227 case "$ac_given_srcdir" in
5229 if test -z "$ac_dots"; then top_srcdir
=.
5230 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5231 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5233 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5234 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5237 case "$ac_given_INSTALL" in
5238 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5239 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5242 echo creating
"$ac_file"
5244 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5246 *Makefile
*) ac_comsub
="1i\\
5247 # $configure_input" ;;
5251 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5253 s%@configure_input@%$configure_input%g
5254 s%@srcdir@%$srcdir%g
5255 s%@top_srcdir@%$top_srcdir%g
5256 s%@INSTALL@%$INSTALL%g
5257 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5262 cat >> $CONFIG_STATUS <<EOF
5265 cat >> $CONFIG_STATUS <<\EOF
5269 chmod +x
$CONFIG_STATUS
5270 rm -fr confdefs
* $ac_clean_files
5271 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1