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-serial-[{host,target,build}-]configure
18 Force sequential configuration of
19 sub-packages for the host, target or build
20 machine, or all sub-packages"
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
25 --enable-werror enable -Werror in bootstrap stage2 and later"
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
31 cache_file
=.
/config.cache
40 program_transform_name
=s
,x
,x
,
48 bindir
='${exec_prefix}/bin'
49 sbindir
='${exec_prefix}/sbin'
50 libexecdir
='${exec_prefix}/libexec'
51 datadir
='${prefix}/share'
52 sysconfdir
='${prefix}/etc'
53 sharedstatedir
='${prefix}/com'
54 localstatedir
='${prefix}/var'
55 libdir
='${exec_prefix}/lib'
56 includedir
='${prefix}/include'
57 oldincludedir
='/usr/include'
58 infodir
='${prefix}/info'
59 mandir
='${prefix}/man'
61 # Initialize some other variables.
64 SHELL
=${CONFIG_SHELL-/bin/sh}
65 # Maximum number of lines to put in a shell here document.
72 # If the previous option needs an argument, assign it.
73 if test -n "$ac_prev"; then
74 eval "$ac_prev=\$ac_option"
80 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84 # Accept the important Cygnus configure options, so we can diagnose typos.
88 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
90 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
91 bindir
="$ac_optarg" ;;
93 -build |
--build |
--buil |
--bui |
--bu)
95 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
98 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
99 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
100 ac_prev
=cache_file
;;
101 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
102 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
103 cache_file
="$ac_optarg" ;;
105 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
107 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
109 datadir
="$ac_optarg" ;;
111 -disable-* |
--disable-*)
112 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}=no" ;;
120 -enable-* |
--enable-*)
121 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}='$ac_optarg'" ;;
133 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
134 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
135 |
--exec |
--exe |
--ex)
136 ac_prev
=exec_prefix
;;
137 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
138 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
139 |
--exec=* |
--exe=* |
--ex=*)
140 exec_prefix
="$ac_optarg" ;;
142 -gas |
--gas |
--ga |
--g)
143 # Obsolete; use --with-gas.
146 -help |
--help |
--hel |
--he)
147 # Omit some internal or obsolete options to make the list less imposing.
148 # This message is too long to be a string in the A/UX 3.1 sh.
150 Usage: configure [options] [host]
151 Options: [defaults in brackets after descriptions]
153 --cache-file=FILE cache test results in FILE
154 --help print this message
155 --no-create do not create output files
156 --quiet, --silent do not print \`checking...' messages
157 --version print the version of autoconf that created configure
158 Directory and file names:
159 --prefix=PREFIX install architecture-independent files in PREFIX
161 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
163 --bindir=DIR user executables in DIR [EPREFIX/bin]
164 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
165 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
166 --datadir=DIR read-only architecture-independent data in DIR
168 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
169 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
172 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
173 --includedir=DIR C header files in DIR [PREFIX/include]
174 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
175 --infodir=DIR info documentation in DIR [PREFIX/info]
176 --mandir=DIR man documentation in DIR [PREFIX/man]
177 --srcdir=DIR find the sources in DIR [configure dir or ..]
178 --program-prefix=PREFIX prepend PREFIX to installed program names
179 --program-suffix=SUFFIX append SUFFIX to installed program names
180 --program-transform-name=PROGRAM
181 run sed PROGRAM on installed program names
185 --build=BUILD configure for building on BUILD [BUILD=HOST]
186 --host=HOST configure for HOST [guessed]
187 --target=TARGET configure for TARGET [TARGET=HOST]
188 Features and packages:
189 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
190 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
191 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
192 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
193 --x-includes=DIR X include files are in DIR
194 --x-libraries=DIR X library files are in DIR
196 if test -n "$ac_help"; then
197 echo "--enable and --with options recognized:$ac_help"
201 -host |
--host |
--hos |
--ho)
203 -host=* |
--host=* |
--hos=* |
--ho=*)
206 -includedir |
--includedir |
--includedi |
--included |
--include \
207 |
--includ |
--inclu |
--incl |
--inc)
208 ac_prev
=includedir
;;
209 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
210 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
211 includedir
="$ac_optarg" ;;
213 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
215 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
216 infodir
="$ac_optarg" ;;
218 -libdir |
--libdir |
--libdi |
--libd)
220 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
221 libdir
="$ac_optarg" ;;
223 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
224 |
--libexe |
--libex |
--libe)
225 ac_prev
=libexecdir
;;
226 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
227 |
--libexe=* |
--libex=* |
--libe=*)
228 libexecdir
="$ac_optarg" ;;
230 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
231 |
--localstate |
--localstat |
--localsta |
--localst \
232 |
--locals |
--local |
--loca |
--loc |
--lo)
233 ac_prev
=localstatedir
;;
234 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
235 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
236 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
237 localstatedir
="$ac_optarg" ;;
239 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
241 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
242 mandir
="$ac_optarg" ;;
245 # Obsolete; use --without-fp.
248 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
252 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
253 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
256 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
257 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
258 |
--oldin |
--oldi |
--old |
--ol |
--o)
259 ac_prev
=oldincludedir
;;
260 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
261 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
262 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
263 oldincludedir
="$ac_optarg" ;;
265 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
267 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
268 prefix
="$ac_optarg" ;;
270 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
271 |
--program-pre |
--program-pr |
--program-p)
272 ac_prev
=program_prefix
;;
273 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
274 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
275 program_prefix
="$ac_optarg" ;;
277 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
278 |
--program-suf |
--program-su |
--program-s)
279 ac_prev
=program_suffix
;;
280 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
281 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
282 program_suffix
="$ac_optarg" ;;
284 -program-transform-name |
--program-transform-name \
285 |
--program-transform-nam |
--program-transform-na \
286 |
--program-transform-n |
--program-transform- \
287 |
--program-transform |
--program-transfor \
288 |
--program-transfo |
--program-transf \
289 |
--program-trans |
--program-tran \
290 |
--progr-tra |
--program-tr |
--program-t)
291 ac_prev
=program_transform_name
;;
292 -program-transform-name=* |
--program-transform-name=* \
293 |
--program-transform-nam=* |
--program-transform-na=* \
294 |
--program-transform-n=* |
--program-transform-=* \
295 |
--program-transform=* |
--program-transfor=* \
296 |
--program-transfo=* |
--program-transf=* \
297 |
--program-trans=* |
--program-tran=* \
298 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
299 program_transform_name
="$ac_optarg" ;;
301 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
302 |
-silent |
--silent |
--silen |
--sile |
--sil)
305 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
307 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
309 sbindir
="$ac_optarg" ;;
311 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
312 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
313 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
315 ac_prev
=sharedstatedir
;;
316 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
317 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
318 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
320 sharedstatedir
="$ac_optarg" ;;
322 -site |
--site |
--sit)
324 -site=* |
--site=* |
--sit=*)
327 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
329 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
330 srcdir
="$ac_optarg" ;;
332 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
333 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
334 ac_prev
=sysconfdir
;;
335 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
336 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
337 sysconfdir
="$ac_optarg" ;;
339 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
341 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
342 target
="$ac_optarg" ;;
344 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
347 -version |
--version |
--versio |
--versi |
--vers)
348 echo "configure generated by autoconf version 2.13"
352 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 ac_package
=`echo $ac_package| sed 's/-/_/g'`
362 eval "with_${ac_package}='$ac_optarg'" ;;
364 -without-* |
--without-*)
365 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package
=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}=no" ;;
374 # Obsolete; use --with-x.
377 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
378 |
--x-incl |
--x-inc |
--x-in |
--x-i)
379 ac_prev
=x_includes
;;
380 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
381 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
382 x_includes
="$ac_optarg" ;;
384 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
385 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
386 ac_prev
=x_libraries
;;
387 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
388 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
389 x_libraries
="$ac_optarg" ;;
391 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 if test "x$nonopt" != xNONE
; then
399 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407 if test -n "$ac_prev"; then
408 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413 # File descriptor usage:
416 # 2 errors and warnings
417 # 3 some systems may open it to /dev/tty
418 # 4 used on the Kubota Titan
419 # 6 checking for... messages and results
420 # 5 compiler messages saved in config.log
421 if test "$silent" = yes; then
429 This file contains any messages produced by compilers while
430 running configure, to aid debugging if configure makes a mistake.
433 # Strip out --no-create and --no-recursion so they do not pile up.
434 # Also quote any args containing shell metacharacters.
439 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
440 |
--no-cr |
--no-c) ;;
441 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
442 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
443 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
445 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
450 # Only set these to C if already set. These must not be set unconditionally
451 # because not all systems understand e.g. LANG=C (notably SCO).
452 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453 # Non-C LC_CTYPE values break the ctype check.
454 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
455 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
456 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
457 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
460 rm -rf conftest
* confdefs.h
461 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
464 # A filename unique to this package, relative to the directory that
465 # configure is in, which we can look for to find out if srcdir is correct.
466 ac_unique_file
=move-if-change
468 # Find the source files, if location was not specified.
469 if test -z "$srcdir"; then
470 ac_srcdir_defaulted
=yes
471 # Try the directory containing this script, then its parent.
473 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
476 if test ! -r $srcdir/$ac_unique_file; then
480 ac_srcdir_defaulted
=no
482 if test ! -r $srcdir/$ac_unique_file; then
483 if test "$ac_srcdir_defaulted" = yes; then
484 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491 # Prefer explicitly selected file to automatically selected ones.
492 if test -z "$CONFIG_SITE"; then
493 if test "x$prefix" != xNONE
; then
494 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
496 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499 for ac_site_file
in $CONFIG_SITE; do
500 if test -r "$ac_site_file"; then
501 echo "loading site script $ac_site_file"
506 if test -r "$cache_file"; then
507 echo "loading cache $cache_file"
510 echo "creating cache $cache_file"
515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516 ac_cpp
='$CPP $CPPFLAGS'
517 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519 cross_compiling
=$ac_cv_prog_cc_cross
523 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
532 ac_n
= ac_c
='\c' ac_t
=
538 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
539 if test -f $ac_dir/install-sh
; then
541 ac_install_sh
="$ac_aux_dir/install-sh -c"
543 elif test -f $ac_dir/install.sh
; then
545 ac_install_sh
="$ac_aux_dir/install.sh -c"
549 if test -z "$ac_aux_dir"; then
550 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
552 ac_config_guess
=$ac_aux_dir/config.guess
553 ac_config_sub
=$ac_aux_dir/config.sub
554 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
557 # Do some error checking and defaulting for the host and target type.
559 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
562 # 1. You are not allowed to specify --host, --target, and nonopt at the
564 # 2. Host defaults to nonopt.
565 # 3. If nonopt is not specified, then host defaults to the current host,
566 # as determined by config.guess.
567 # 4. Target and build default to nonopt.
568 # 5. If nonopt is not specified, then target and build default to host.
570 # The aliases save the names the user supplied, while $host etc.
571 # will get canonicalized.
572 case $host---$target---$nonopt in
573 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
574 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
578 # Make sure we can run config.sub.
579 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
580 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
583 echo $ac_n "checking host system type""... $ac_c" 1>&6
584 echo "configure:585: checking host system type" >&5
587 case "$host_alias" in
591 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
592 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
594 *) host_alias
=$nonopt ;;
598 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
599 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
600 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
601 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
602 echo "$ac_t""$host" 1>&6
604 echo $ac_n "checking target system type""... $ac_c" 1>&6
605 echo "configure:606: checking target system type" >&5
608 case "$target_alias" in
611 NONE
) target_alias
=$host_alias ;;
612 *) target_alias
=$nonopt ;;
616 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
617 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
618 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
619 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
620 echo "$ac_t""$target" 1>&6
622 echo $ac_n "checking build system type""... $ac_c" 1>&6
623 echo "configure:624: checking build system type" >&5
626 case "$build_alias" in
629 NONE
) build_alias
=$host_alias ;;
630 *) build_alias
=$nonopt ;;
634 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
635 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
638 echo "$ac_t""$build" 1>&6
640 test "$host_alias" != "$target_alias" &&
641 test "$program_prefix$program_suffix$program_transform_name" = \
643 program_prefix
=${target_alias}-
645 if test "$program_transform_name" = s
,x
,x
,; then
646 program_transform_name
=
648 # Double any \ or $. echo might interpret backslashes.
649 cat <<\EOF_SED
> conftestsed
650 s
,\\,\\\\,g
; s
,\$
,$$
,g
652 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
655 test "$program_prefix" != NONE
&&
656 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
657 # Use a double $ so make ignores it.
658 test "$program_suffix" != NONE
&&
659 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
661 # sed with no file args requires a program.
662 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
665 # Get 'install' or 'install-sh' and its variants.
666 # Find a good install program. We prefer a C program (faster),
667 # so one script is as good as another. But avoid the broken or
668 # incompatible versions:
669 # SysV /etc/install, /usr/sbin/install
670 # SunOS /usr/etc/install
673 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
674 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
675 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
676 # ./install, which can be erroneously created by make from ./install.sh.
677 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
678 echo "configure:679: checking for a BSD compatible install" >&5
679 if test -z "$INSTALL"; then
680 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
684 for ac_dir
in $PATH; do
685 # Account for people who put trailing slashes in PATH elements.
687 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
689 # OSF1 and SCO ODT 3.0 have their own names for install.
690 # Don't use installbsd from OSF since it installs stuff as root
692 for ac_prog
in ginstall scoinst
install; do
693 if test -f $ac_dir/$ac_prog; then
694 if test $ac_prog = install &&
695 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
696 # AIX install. It has an incompatible calling convention.
699 ac_cv_path_install
="$ac_dir/$ac_prog -c"
710 if test "${ac_cv_path_install+set}" = set; then
711 INSTALL
="$ac_cv_path_install"
713 # As a last resort, use the slow shell script. We don't cache a
714 # path for INSTALL within a source directory, because that will
715 # break other packages using the cache if that directory is
716 # removed, or if the path is relative.
717 INSTALL
="$ac_install_sh"
720 echo "$ac_t""$INSTALL" 1>&6
722 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
723 # It thinks the first close brace ends the variable substitution.
724 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
726 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
728 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
731 # Autoconf M4 include file defining utility macros for complex Canadian
740 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
742 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
745 # NCN_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
746 # Like AC_CHECK_TOOL, but tries a prefix of the target, not the host.
747 # Code is pretty much lifted from autoconf2.53.
752 # NCN_STRICT_CHECK_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
753 # Like AC_CHECK_TOOL, but requires the prefix if build!=host.
758 # NCN_STRICT_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
759 # Like NCN_CHECK_TARGET_TOOL, but requires the prefix if build!=target.
764 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
765 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
766 # For now, using this also overrides header checks to use only the
767 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
768 # bit harder from here).
769 # Eventually autoconf will default to checking headers with the compiler
770 # instead, and we'll have to do this differently.
775 # We require the gnatbind program, and a compiler driver that
776 # understands Ada. We use the user's CC setting, already found.
778 # Sets the shell variable have_gnat to yes or no as appropriate, and
779 # substitutes GNATBIND.
783 ### we might need to use some other shell than /bin/sh for running subshells
784 ### If we are on Windows, search for the shell. This will permit people
785 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
786 ### without also having to set CONFIG_SHELL. This code will work when
787 ### using bash, which sets OSTYPE.
790 if test x
${CONFIG_SHELL} = x
; then
791 if test ! -f /bin
/sh
; then
792 if test x
${SHELL} != x
&& test -f ${SHELL} ; then
793 CONFIG_SHELL
=${SHELL}
796 for prog
in sh sh.exe bash bash.exe
; do
797 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
799 test -z "$dir" && dir
=.
800 if test -f $dir/$prog; then
801 CONFIG_SHELL
=$dir/$prog
807 test -n "${CONFIG_SHELL}" && break
815 config_shell
=${CONFIG_SHELL-/bin/sh}
818 # if PWD already has a value, it is probably wrong.
819 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
821 # Export original configure arguments for use by sub-configures. These
822 # will be expanded by make, so quote '$'.
824 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
827 TOPLEVEL_CONFIGURE_ARGUMENTS
=`cat conftestsed.out`
828 rm -f conftestsed.out
831 moveifchange
=${srcdir}/move-if-change
833 # Set srcdir to "." if that's what it is.
834 # This is important for multilib support.
836 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
837 if test "${pwd}" = "${srcpwd}" ; then
844 # Define the trigger file to make sure configure will re-run whenever
845 # the gcc version number changes.
846 if test "${with_gcc_version_trigger+set}" = set ; then
847 gcc_version_trigger
="$with_gcc_version_trigger"
848 gcc_version
=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
850 # If gcc's sources are available, define the trigger file.
851 if test -f ${topsrcdir}/gcc
/version.c
; then
852 gcc_version_trigger
=${topsrcdir}/gcc
/version.c
853 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
854 case "$ac_configure_args" in
855 *--with-gcc-version-trigger=$gcc_version_trigger* )
858 # Add to all subconfigure arguments: build, host, and target.
859 ac_configure_args
="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger"
865 ### To add a new directory to the tree, first choose whether it is a target
866 ### or a host dependent tool. Then put it into the appropriate list
867 ### (library or tools, host or target), doing a dependency sort.
869 # Subdirs will be configured in the order listed in build_configdirs,
870 # configdirs, or target_configdirs; see the serialization section below.
872 # Dependency sorting is only needed when *configuration* must be done in
873 # a particular order. In all cases a dependency should be specified in
874 # the Makefile, whether or not it's implicitly specified here.
876 # Double entries in build_configdirs, configdirs, or target_configdirs may
877 # cause circular dependencies and break everything horribly.
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 tix libgui zlib"
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 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"
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 \
909 # these tools are built using the target libraries, and are intended to
910 # run only in the target environment
912 # note: any program that *uses* libraries that are in the "target_libraries"
913 # list belongs in this list. those programs are also very likely
914 # candidates for the "native_only" list which follows
916 target_tools
="target-examples target-groff target-gperf target-rda"
918 ################################################################################
920 ## All tools belong in one of the four categories, and are assigned above
921 ## We assign ${configdirs} this way to remove all embedded newlines. This
922 ## is important because configure will choke if they ever get through.
923 ## ${configdirs} is directories we build using the host tools.
924 ## ${target_configdirs} is directories we build using the target tools.
926 configdirs
=`echo ${host_libs} ${host_tools}`
927 target_configdirs
=`echo ${target_libraries} ${target_tools}`
929 # Only make build modules if build != host.
930 # This should be done more generally, but at the moment it doesn't matter.
931 if test ${host_alias} != ${build_alias} ; then
932 # This is the only build module.
933 build_modules
=libiberty
939 ################################################################################
941 srcname
="gnu development package"
943 # This gets set non-empty for some net releases of packages.
946 # Define is_cross_compiler to save on calls to 'test'.
948 if test x
"${host}" = x
"${target}" ; then
951 is_cross_compiler
=yes
954 # Find the build and target subdir names.
955 case ${build_alias} in
956 "") build_noncanonical
=${build} ;;
957 *) build_noncanonical
=${build_alias} ;;
960 case ${host_alias} in
961 "") host_noncanonical
=${build_noncanonical} ;;
962 *) host_noncanonical
=${host_alias} ;;
965 case ${target_alias} in
966 "") target_noncanonical
=${host_noncanonical} ;;
967 *) target_noncanonical
=${target_alias} ;;
970 # Prefix 'build-' so this never conflicts with target_subdir.
971 build_subdir
="build-${build_noncanonical}"
972 # Not really a subdirectory, but here for completeness.
975 target_subdir
=${target_noncanonical}
978 # Skipdirs are removed silently.
980 # Noconfigdirs are removed loudly.
984 # Make sure we don't let GNU ld be added if we didn't want it.
985 if test x
$with_gnu_ld = xno
; then
987 noconfigdirs
="$noconfigdirs ld"
991 # Make sure we don't let GNU as be added if we didn't want it.
992 if test x
$with_gnu_as = xno
; then
994 noconfigdirs
="$noconfigdirs gas"
997 # some tools are so dependent upon X11 that if we're not building with X,
998 # it's not even worth trying to configure, much less build, that tool.
1001 yes |
"") ;; # the default value for this tree is that X11 is available
1003 skipdirs
="${skipdirs} tk tix itcl libgui"
1004 # We won't be able to build gdbtk without X.
1007 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1010 # Some tools are only suitable for building in a "native" situation.
1011 # Remove these if host!=target.
1012 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"
1014 # Similarly, some are only suitable for cross toolchains.
1015 # Remove these if host=target.
1016 cross_only
="target-libgloss target-newlib target-opcodes"
1018 case $is_cross_compiler in
1019 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
1020 yes) skipdirs
="${skipdirs} ${native_only}" ;;
1023 # If both --with-headers and --with-libs are specified, default to
1025 if test x
"${with_headers}" != x
&& test x
"${with_headers} != xno \
1026 && test x"${with_libs}" != x && test x"${with_libs} != xno
; then
1027 if test x
"${with_newlib}" = x
; then
1032 # Recognize --with-newlib/--without-newlib.
1033 case ${with_newlib} in
1034 no
) skipdirs
="${skipdirs} target-newlib" ;;
1035 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1038 # Configure extra directories which are host specific
1042 configdirs
="$configdirs libtermcap" ;;
1045 # Remove more programs from consideration, based on the host or
1046 # target this usually means that a port of the program doesn't
1051 noconfigdirs
="$noconfigdirs byacc"
1053 i
[3456789]86-*-vsta)
1054 noconfigdirs
="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix gnuserv gettext"
1056 i
[3456789]86-*-go32* | i
[3456789]86-*-msdosdjgpp*)
1057 noconfigdirs
="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl tix gnuserv libffi"
1059 i
[3456789]86-*-mingw32*)
1060 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix gnuserv"
1061 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1063 i
[3456789]86-*-beos*)
1064 noconfigdirs
="$noconfigdirs tk itcl tix libgui gdb"
1067 noconfigdirs
="$noconfigdirs autoconf automake send-pr rcs guile perl"
1070 noconfigdirs
="$noconfigdirs rcs"
1073 noconfigdirs
="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv"
1076 noconfigdirs
="$noconfigdirs tk itcl tix libgui gdb dejagnu readline"
1079 noconfigdirs
="$noconfigdirs tk itcl tix libgui"
1083 # Check whether --enable-libada or --disable-libada was given.
1084 if test "${enable_libada+set}" = set; then
1085 enableval
="$enable_libada"
1086 ENABLE_LIBADA
=$enableval
1091 if test "${ENABLE_LIBADA}" != "yes" ; then
1092 noconfigdirs
="$noconfigdirs target-libada"
1095 # Save it here so that, even in case of --enable-libgcj, if the Java
1096 # front-end isn't enabled, we still get libgcj disabled.
1097 libgcj_saved
=$libgcj
1098 case $enable_libgcj in
1100 # If we reset it here, it won't get added to noconfigdirs in the
1101 # target-specific build rules, so it will be forcibly enabled
1102 # (unless the Java language itself isn't enabled).
1106 # Make sure we get it printed in the list of not supported target libs.
1107 noconfigdirs
="$noconfigdirs ${libgcj}"
1113 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1116 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1117 noconfigdirs
="$noconfigdirs target-libobjc"
1120 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1121 noconfigdirs
="$noconfigdirs target-libobjc ${libgcj}"
1123 *-*-freebsd[12] |
*-*-freebsd[12].
* |
*-*-freebsd*aout
*)
1124 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1127 # Remove unsupported stuff on all kaOS configurations.
1128 skipdirs
="target-libiberty ${libgcj} target-libstdc++-v3 target-libf2c target-librx"
1129 skipdirs
="$skipdirs target-libobjc target-examples target-groff target-gperf"
1130 skipdirs
="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1131 noconfigdirs
="$noconfigdirs target-libgloss"
1134 # Skip some stuff on all NetBSD configurations.
1135 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss"
1137 # Skip some stuff that's unsupported on some NetBSD configurations.
1139 i
*86-*-netbsdelf*) ;;
1140 arm
*-*-netbsdelf*) ;;
1142 noconfigdirs
="$noconfigdirs ${libgcj}"
1147 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}"
1150 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1152 h8300
*-*-* | h8500-
*-*)
1153 noconfigdirs
="$noconfigdirs target-libf2c"
1159 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1162 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}"
1165 # ld works, but does not support shared libraries.
1166 # newlib is not 64 bit ready. I'm not sure about fileutils.
1167 # gas doesn't generate exception information.
1168 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1171 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1174 # newlib is not 64 bit ready
1175 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1177 alpha
*-*-freebsd* | alpha
*-*-kfreebsd*-gnu)
1178 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1181 # newlib is not 64 bit ready
1182 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1185 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1188 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1190 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
1191 noconfigdirs
="$noconfigdirs ${libgcj}"
1192 noconfigdirs
="$noconfigdirs target-examples"
1193 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
1194 noconfigdirs
="$noconfigdirs tcl tix tk itcl libgui sim"
1195 noconfigdirs
="$noconfigdirs expect dejagnu"
1196 # the C++ libraries don't build on top of CE's C libraries
1197 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1198 noconfigdirs
="$noconfigdirs target-newlib"
1200 *-*-cygwin*) ;; # keep gdb and readline
1201 *) noconfigdirs
="$noconfigdirs gdb readline"
1206 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1208 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
1209 noconfigdirs
="$noconfigdirs ${libgcj}"
1211 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf*)
1212 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1215 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1218 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1221 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1224 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1227 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1230 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1233 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1236 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1238 c4x-
*-* | tic4x-
*-*)
1239 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1241 c54x
*-*-* | tic54x-
*-*)
1242 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1245 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1248 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1251 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1254 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1257 noconfigdirs
="$noconfigdirs ${libgcj}"
1260 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj} target-libf2c"
1263 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} target-libf2c"
1265 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
1266 # In this case, it's because the hppa64-linux target is for
1267 # the kernel only at this point and has no libc, and thus no
1268 # headers, crt*.o, etc., all of which are needed by these.
1269 noconfigdirs
="$noconfigdirs target-zlib"
1272 parisc
*-*-linux* | hppa
*-*-linux* | \
1274 hppa
*-*-openbsd* | \
1276 noconfigdirs
="$noconfigdirs ${libgcj}"
1277 # Do configure ld/binutils/gas for this case.
1280 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1281 # build on HP-UX 10.20.
1282 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
1285 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1288 # No gdb support yet.
1289 noconfigdirs
="$noconfigdirs tix readline mmalloc libgui itcl gdb"
1292 # No gdb or ld support yet.
1293 noconfigdirs
="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
1295 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
1296 noconfigdirs
="$noconfigdirs ${libgcj}"
1298 i
[3456789]86-*-freebsd* | i
[3456789]86-*-kfreebsd*-gnu)
1299 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1301 i
[3456789]86-*-linux*)
1302 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1303 # not build java stuff by default.
1306 noconfigdirs
="$noconfigdirs ${libgcj}";;
1309 # This section makes it possible to build newlib natively on linux.
1310 # If we are using a cross compiler then don't configure newlib.
1311 if test x
${is_cross_compiler} != xno
; then
1312 noconfigdirs
="$noconfigdirs target-newlib"
1314 noconfigdirs
="$noconfigdirs target-libgloss"
1315 # If we are not using a cross compiler, do configure newlib.
1316 # Note however, that newlib will only be configured in this situation
1317 # if the --with-newlib option has been given, because otherwise
1318 # 'target-newlib' will appear in skipdirs.
1320 i
[3456789]86-*-mingw32*)
1321 target_configdirs
="$target_configdirs target-mingw"
1322 noconfigdirs
="$noconfigdirs expect target-libgloss ${libgcj}"
1324 # Can't build gdb for mingw32 if not native.
1326 i
[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1327 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl tix gnuserv"
1332 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
1333 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1334 # always build newlib.
1335 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1337 # Can't build gdb for Cygwin if not native.
1339 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1340 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl tix libgui gnuserv"
1345 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1347 i
[3456789]86-*-sco3.2v5
*)
1348 # The linker does not yet know about weak symbols in COFF,
1349 # and is not configured to handle mixed ELF and COFF.
1350 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1352 i
[3456789]86-*-sco*)
1353 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1355 i
[3456789]86-*-solaris2*)
1356 noconfigdirs
="$noconfigdirs target-libgloss"
1358 i
[3456789]86-*-sysv4*)
1359 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1361 i
[3456789]86-*-beos*)
1362 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1365 noconfigdirs
="$noconfigdirs ${libgcj}"
1367 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
1368 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1371 noconfigdirs
="$noconfigdirs ${libgcj}"
1374 noconfigdirs
="$noconfigdirs ${libgcj}"
1377 # The EPOC C++ environment does not support exceptions or rtti,
1378 # and so building libstdc++-v3 tends not to always work.
1379 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1382 noconfigdirs
="$noconfigdirs ${libgcj} gdb libgloss"
1385 noconfigdirs
="$noconfigdirs ${libgcj}"
1388 noconfigdirs
="$noconfigdirs ${libgcj}"
1391 # copied from rs6000-*-* entry
1392 noconfigdirs
="$noconfigdirs gprof target-libada target-libgloss ${libgcj}"
1394 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
1395 target_configdirs
="$target_configdirs target-winsup"
1396 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix gnuserv ${libgcj}"
1397 # always build newlib.
1398 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1400 # This is temporary until we can link against shared libraries
1401 powerpcle-
*-solaris*)
1402 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl tix gnuserv ${libgcj}"
1405 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1408 noconfigdirs
="$noconfigdirs ${libgcj}"
1411 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
1414 noconfigdirs
="$noconfigdirs gprof target-libada target-libgloss ${libgcj}"
1417 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1420 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1423 # The GNU linker does not support shared libraries.
1424 noconfigdirs
="$noconfigdirs ld gprof target-libgloss ${libgcj}"
1427 # Linking libjava exceeds command-line length limits on at least
1428 # IRIX 6.2, but not on IRIX 6.5.
1429 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1430 # <oldham@codesourcery.com>
1431 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1434 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1437 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1440 noconfigdirs
="$noconfigdirs gprof ${libgcj}" # same as generic mips
1443 noconfigdirs
="$noconfigdirs target-newlib ${libgcj}"
1446 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1449 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1452 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1456 i
[3456789]86-*-vsta) ;; # don't add gprof back in
1457 i
[3456789]86-*-go32*) ;; # don't add gprof back in
1458 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1459 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1461 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1464 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1467 noconfigdirs
="$noconfigdirs ${libgcj}"
1470 noconfigdirs
="$noconfigdirs ${libgcj}"
1473 noconfigdirs
="$noconfigdirs ${libgcj}"
1476 noconfigdirs
="$noconfigdirs ${libgcj}"
1477 if test x
${is_cross_compiler} != xno
; then
1478 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1483 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
1486 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1489 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1492 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1495 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1498 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1501 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1504 noconfigdirs
="$noconfigdirs ${libgcj}"
1507 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1510 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1513 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1516 noconfigdirs
="$noconfigdirs ${libgcj}"
1520 # If we aren't building newlib, then don't build libgloss, since libgloss
1521 # depends upon some newlib header files.
1522 case "${noconfigdirs}" in
1523 *target-libgloss
*) ;;
1524 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
1527 # Work in distributions that contain no compiler tools, like Autoconf.
1529 host_makefile_frag
=/dev
/null
1530 if test -d ${srcdir}/config
; then
1533 # Avoid "too much defining" errors from HPUX compiler.
1534 tentative_cc
="cc -Wp,-H256000"
1535 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1536 # If it's HP/UX ar, this should be harmless.
1540 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1543 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1544 # chokes on bfd, the compiler won't let you assign integers to enums, and
1545 # other problems. Defining CC to gcc is a questionable way to say "don't use
1546 # the apollo compiler" (the preferred version of GCC could be called cc,
1547 # or whatever), but I'm not sure leaving CC as cc is any better...
1548 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1549 # Used to have BISON=yacc.
1553 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1556 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1557 tentative_cc
="cc -Xa"
1558 host_makefile_frag
="config/mh-cxux"
1560 m88k-motorola-sysv
*)
1563 tentative_cc
="cc -Wf,-XNg1000"
1564 host_makefile_frag
="config/mh-decstation"
1567 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1568 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
1569 host_makefile_frag
="config/mh-necv4"
1572 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1573 # environment. Also bump switch table size so that cp-parse will
1574 # compile. Bump string length limit so linker builds.
1575 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1578 host_makefile_frag
="config/mh-sysv4"
1581 # This is for a MIPS running RISC/os 4.52C.
1583 # This is needed for GDB, but needs to be in the top-level make because
1584 # if a library is compiled with the bsd headers and gets linked with the
1585 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1586 # a different size).
1587 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1588 # known except to select the sysv environment. Could we use /proc instead?
1589 # These "sysv environments" and "bsd environments" often end up being a pain.
1591 # This is not part of CFLAGS because perhaps not all C compilers have this
1593 tentative_cc
="cc -systype sysv"
1598 i
[3456789]86-*-sysv5*)
1599 host_makefile_frag
="config/mh-sysv5"
1601 i
[3456789]86-*-dgux*)
1602 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1603 host_makefile_frag
="config/mh-dgux386"
1605 i
[3456789]86-ncr-sysv4.3
*)
1606 # The MetaWare compiler will generate a copyright message unless you
1607 # turn it off by adding the -Hnocopyr flag.
1608 tentative_cc
="cc -Hnocopyr"
1610 i
[3456789]86-ncr-sysv4*)
1611 # for an NCR 3000 (i486/SVR4) system.
1612 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1613 # This compiler not only emits obnoxious copyright messages every time
1614 # you run it, but it chokes and dies on a whole bunch of GNU source
1615 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1616 tentative_cc
="/usr/ccs/ATT/cc"
1617 host_makefile_frag
="config/mh-ncr3000"
1619 i
[3456789]86-*-sco3.2v5
*)
1621 i
[3456789]86-*-sco*)
1622 # The native C compiler botches some simple uses of const. Unfortunately,
1623 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1624 tentative_cc
="cc -Dconst="
1625 host_makefile_frag
="config/mh-sco"
1627 i
[3456789]86-*-udk*)
1628 host_makefile_frag
="config/mh-sysv5"
1630 i
[3456789]86-*-solaris2*)
1631 host_makefile_frag
="config/mh-sysv4"
1633 i
[3456789]86-*-msdosdjgpp*)
1634 host_makefile_frag
="config/mh-djgpp"
1637 host_makefile_frag
="config/mh-cygwin"
1640 host_makefile_frag
="config/mh-mingw32"
1643 host_makefile_frag
="config/mh-interix"
1646 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1650 host_makefile_frag
="config/mh-solaris"
1653 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1654 # without overflowing the jump tables (-J says to use a 32 bit table)
1655 tentative_cc
="cc -J"
1658 tentative_cc
="cc -Wp,-H256000"
1661 tentative_cc
="cc -Wp,-H256000"
1664 # /bin/cc is less than useful for our purposes. Always use GCC
1665 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
1666 host_makefile_frag
="config/mh-lynxrs6k"
1669 # /bin/cc is less than useful for our purposes. Always use GCC
1670 tentative_cc
="/bin/gcc"
1673 host_makefile_frag
="config/mh-sysv4"
1678 # If we aren't going to be using gcc, see if we can extract a definition
1679 # of CC from the fragment.
1680 # Actually, use the 'pre-extracted' version above.
1681 if test -z "${CC}" && test "${build}" = "${host}" ; then
1682 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1684 for dir
in $PATH; do
1685 test -z "$dir" && dir
=.
1686 if test -f $dir/gcc
; then
1692 if test -z "${found}" && test -n "${tentative_cc}" ; then
1697 if test "${build}" != "${host}" ; then
1698 # If we are doing a Canadian Cross, in which the host and build systems
1699 # are not the same, we set reasonable default values for the tools.
1701 BISON
=${BISON-bison}
1702 CC
=${CC-${host_alias}-gcc}
1703 CFLAGS
=${CFLAGS-"-g -O2"}
1704 CXX
=${CXX-${host_alias}-c++}
1705 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1706 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1707 CC_FOR_TARGET
=${CC_FOR_TARGET-${target_alias}-gcc}
1708 CXX_FOR_TARGET
=${CXX_FOR_TARGET-${target_alias}-c++}
1709 GCJ_FOR_TARGET
=${GCJ_FOR_TARGET-${target_alias}-gcj}
1710 GCC_FOR_TARGET
=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
1711 BUILD_PREFIX
=${build_alias}-
1712 BUILD_PREFIX_1
=${build_alias}-
1713 MAKEINFO
=${MAKEINFO-makeinfo}
1715 if test -z "${YACC}" ; then
1716 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1717 for dir
in $PATH; do
1718 test -z "$dir" && dir
=.
1719 if test -f $dir/bison
; then
1723 if test -f $dir/byacc
; then
1727 if test -f $dir/yacc; then
1733 if test -z "${YACC}" ; then
1738 if test -z "${LEX}" ; then
1739 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1740 for dir
in $PATH; do
1741 test -z "$dir" && dir
=.
1742 if test -f $dir/flex
; then
1746 if test -f $dir/lex; then
1756 # Set reasonable default values for some tools even if not Canadian.
1757 # Of course, these are different reasonable default values, originally
1758 # specified directly in the Makefile.
1759 # We don't export, so that autoconf can do its job.
1760 # Note that all these settings are above the fragment inclusion point
1761 # in Makefile.in, so can still be overridden by fragments.
1762 # This is all going to change when we autoconfiscate...
1764 BISON
="\$(USUAL_BISON)"
1765 CC_FOR_BUILD
="\$(CC)"
1766 GCC_FOR_TARGET
="\$(USUAL_GCC_FOR_TARGET)"
1768 BUILD_PREFIX_1
=loser-
1769 MAKEINFO
="\$(USUAL_MAKEINFO)"
1771 YACC
="\$(USUAL_YACC)"
1773 # If CC is still not set, try to get gcc.
1775 if test -z "${CC}" ; then
1776 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1777 for dir
in $PATH; do
1778 test -z "$dir" && dir
=.
1779 if test -f $dir/gcc
; then
1782 echo 'void f(){}' > conftest.c
1783 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1784 CFLAGS
=${CFLAGS-"-g -O2"}
1785 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1787 CFLAGS
=${CFLAGS-"-O2"}
1788 CXXFLAGS
=${CXXFLAGS-"-O2"}
1797 # Determine if we are using gcc.
1798 cat > conftest.c
<<EOF
1803 if ${CC} -E conftest.c |
grep yes >/dev
/null
2>&1; then
1807 if test -z "${CFLAGS}"; then
1808 # Here CC is set but CFLAGS is not. Use a quick hack to use -O2 if CC
1809 # is set to a version of gcc.
1810 if test "$cc_prog_is_gcc" = yes; then
1811 echo 'void f(){}' > conftest.c
1812 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1813 CFLAGS
=${CFLAGS-"-g -O2"}
1814 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1816 CFLAGS
=${CFLAGS-"-O2"}
1817 CXXFLAGS
=${CXXFLAGS-"-O2"}
1824 # We must set the default linker to the linker used by gcc for the correct
1825 # operation of libtool. If LD is not defined and we are using gcc, try to
1826 # set the LD default to the ld used by gcc.
1827 if test -z "$LD"; then
1828 if test "$cc_prog_is_gcc" = yes; then
1831 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
1833 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
1835 case $gcc_prog_ld in
1836 # Accept absolute paths.
1837 [\\/]* |
[A-Za-z
]:[\\/]*)
1838 LD
="$gcc_prog_ld" ;;
1844 CFLAGS
=${CFLAGS-"-g"}
1845 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1848 if test $host != $build; then
1849 ac_tool_prefix
=${host_alias}-
1854 # Extract the first word of "gcc", so it can be a program name with args.
1855 set dummy gcc
; ac_word
=$2
1856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1857 echo "configure:1858: checking for $ac_word" >&5
1858 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1861 if test -n "$CC"; then
1862 ac_cv_prog_CC
="$CC" # Let the user override the test.
1864 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1866 for ac_dir
in $ac_dummy; do
1867 test -z "$ac_dir" && ac_dir
=.
1868 if test -f $ac_dir/$ac_word; then
1877 if test -n "$CC"; then
1878 echo "$ac_t""$CC" 1>&6
1880 echo "$ac_t""no" 1>&6
1883 if test -z "$CC"; then
1884 # Extract the first word of "cc", so it can be a program name with args.
1885 set dummy cc
; ac_word
=$2
1886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1887 echo "configure:1888: checking for $ac_word" >&5
1888 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1891 if test -n "$CC"; then
1892 ac_cv_prog_CC
="$CC" # Let the user override the test.
1894 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1897 for ac_dir
in $ac_dummy; do
1898 test -z "$ac_dir" && ac_dir
=.
1899 if test -f $ac_dir/$ac_word; then
1900 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1901 ac_prog_rejected
=yes
1909 if test $ac_prog_rejected = yes; then
1910 # We found a bogon in the path, so make sure we never use it.
1911 set dummy
$ac_cv_prog_CC
1913 if test $# -gt 0; then
1914 # We chose a different compiler from the bogus one.
1915 # However, it has the same basename, so the bogon will be chosen
1916 # first if we set CC to just the basename; use the full file name.
1918 set dummy
"$ac_dir/$ac_word" "$@"
1926 if test -n "$CC"; then
1927 echo "$ac_t""$CC" 1>&6
1929 echo "$ac_t""no" 1>&6
1932 if test -z "$CC"; then
1933 case "`uname -s`" in
1935 # Extract the first word of "cl", so it can be a program name with args.
1936 set dummy cl
; ac_word
=$2
1937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1938 echo "configure:1939: checking for $ac_word" >&5
1939 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1942 if test -n "$CC"; then
1943 ac_cv_prog_CC
="$CC" # Let the user override the test.
1945 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1947 for ac_dir
in $ac_dummy; do
1948 test -z "$ac_dir" && ac_dir
=.
1949 if test -f $ac_dir/$ac_word; then
1958 if test -n "$CC"; then
1959 echo "$ac_t""$CC" 1>&6
1961 echo "$ac_t""no" 1>&6
1966 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1969 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1970 echo "configure:1971: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1973 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1974 ac_cpp
='$CPP $CPPFLAGS'
1975 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1976 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1977 cross_compiling
=$ac_cv_prog_cc_cross
1979 cat > conftest.
$ac_ext << EOF
1981 #line 1982 "configure"
1982 #include "confdefs.h"
1986 if { (eval echo configure
:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1987 ac_cv_prog_cc_works
=yes
1988 # If we can't run a trivial program, we are probably using a cross compiler.
1989 if (.
/conftest
; exit) 2>/dev
/null
; then
1990 ac_cv_prog_cc_cross
=no
1992 ac_cv_prog_cc_cross
=yes
1995 echo "configure: failed program was:" >&5
1996 cat conftest.
$ac_ext >&5
1997 ac_cv_prog_cc_works
=no
2001 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2002 ac_cpp
='$CPP $CPPFLAGS'
2003 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2004 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2005 cross_compiling
=$ac_cv_prog_cc_cross
2007 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2008 if test $ac_cv_prog_cc_works = no
; then
2009 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2011 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2012 echo "configure:2013: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2013 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2014 cross_compiling
=$ac_cv_prog_cc_cross
2016 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2017 echo "configure:2018: checking whether we are using GNU C" >&5
2018 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2021 cat > conftest.c
<<EOF
2026 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2033 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2035 if test $ac_cv_prog_gcc = yes; then
2041 ac_test_CFLAGS
="${CFLAGS+set}"
2042 ac_save_CFLAGS
="$CFLAGS"
2044 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2045 echo "configure:2046: checking whether ${CC-cc} accepts -g" >&5
2046 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 echo 'void f(){}' > conftest.c
2050 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2059 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2060 if test "$ac_test_CFLAGS" = set; then
2061 CFLAGS
="$ac_save_CFLAGS"
2062 elif test $ac_cv_prog_cc_g = yes; then
2063 if test "$GCC" = yes; then
2069 if test "$GCC" = yes; then
2078 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2079 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2081 echo "configure:2082: checking for $ac_word" >&5
2082 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2085 if test -n "$GNATBIND"; then
2086 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2088 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2090 for ac_dir
in $ac_dummy; do
2091 test -z "$ac_dir" && ac_dir
=.
2092 if test -f $ac_dir/$ac_word; then
2093 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2100 GNATBIND
="$ac_cv_prog_GNATBIND"
2101 if test -n "$GNATBIND"; then
2102 echo "$ac_t""$GNATBIND" 1>&6
2104 echo "$ac_t""no" 1>&6
2108 if test -z "$ac_cv_prog_GNATBIND"; then
2109 if test -n "$ac_tool_prefix"; then
2110 # Extract the first word of "gnatbind", so it can be a program name with args.
2111 set dummy gnatbind
; ac_word
=$2
2112 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2113 echo "configure:2114: checking for $ac_word" >&5
2114 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2115 echo $ac_n "(cached) $ac_c" 1>&6
2117 if test -n "$GNATBIND"; then
2118 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2120 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2122 for ac_dir
in $ac_dummy; do
2123 test -z "$ac_dir" && ac_dir
=.
2124 if test -f $ac_dir/$ac_word; then
2125 ac_cv_prog_GNATBIND
="gnatbind"
2130 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2133 GNATBIND
="$ac_cv_prog_GNATBIND"
2134 if test -n "$GNATBIND"; then
2135 echo "$ac_t""$GNATBIND" 1>&6
2137 echo "$ac_t""no" 1>&6
2145 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2146 echo "configure:2147: checking whether compiler driver understands Ada" >&5
2147 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2148 echo $ac_n "(cached) $ac_c" 1>&6
2150 cat >conftest.adb
<<EOF
2151 procedure conftest is begin null; end conftest;
2153 acx_cv_cc_gcc_supports_ada
=no
2154 # There is a bug in old released versions of GCC which causes the
2155 # driver to exit successfully when the appropriate language module
2156 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2157 # Therefore we must check for the error message as well as an
2158 # unsuccessful exit.
2159 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2160 if test x
"$errors" = x
; then
2161 acx_cv_cc_gcc_supports_ada
=yes
2167 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2169 if test x
$GNATBIND != xno
&& test x
$acx_cv_gcc_supports_ada != xno
; then
2176 # By default, C is the only stage 1 language.
2180 # Figure out what language subdirectories are present.
2181 # Look if the user specified --enable-languages="..."; if not, use
2182 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2184 # NB: embedded tabs in this IF block -- do not untabify
2185 if test -d ${srcdir}/gcc
; then
2186 if test x
"${enable_languages+set}" != xset
; then
2187 if test x
"${LANGUAGES+set}" = xset
; then
2188 enable_languages
="${LANGUAGES}"
2189 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
2191 enable_languages
=all
2194 if test x
"${enable_languages}" = x ||
2195 test x
"${enable_languages}" = xyes
;
2197 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
2201 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2203 # First scan to see if an enabled language requires some other language.
2204 # We assume that a given config-lang.in will list all the language
2205 # front ends it requires, even if some are required indirectly.
2206 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2207 case ${lang_frag} in
2209 # The odd quoting in the next line works around
2210 # an apparent bug in bash 1.12 on linux.
2211 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2213 # From the config-lang.in, get $language, $lang_requires
2217 for other
in ${lang_requires} ; do
2218 case ,${enable_languages}, in
2222 echo " \`$other' language required by \`$language'; enabling" 1>&2
2223 enable_languages
="${enable_languages},${other}"
2231 new_enable_languages
=c
2232 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2234 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2235 case ${lang_frag} in
2237 # The odd quoting in the next line works around
2238 # an apparent bug in bash 1.12 on linux.
2239 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2241 # From the config-lang.in, get $language, $target_libs,
2242 # $lang_dirs, $boot_language, and $build_by_default
2249 # This is quite sensitive to the ordering of the case statement arms.
2250 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2252 echo "${lang_frag} doesn't set \$language." 1>&2
2256 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2259 *,${language},*:*:*:*)
2260 # Language was explicitly selected; include it.
2264 # 'all' was selected, but this is not a default language
2265 # so do not include it.
2269 # 'all' was selected and this is a default language; include it.
2276 case $add_this_lang in
2278 # Remove language-dependent dirs.
2279 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2282 new_enable_languages
="$new_enable_languages,$language"
2283 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
2284 case ${boot_language} in
2286 # Add to (space-separated) list of stage 1 languages.
2287 stage1_languages
="${stage1_languages} ${language}"
2296 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2297 if test "x$missing_languages" != x
; then
2298 { echo "configure: error:
2299 The following requested languages were not found: ${missing_languages}" 1>&2; exit 1; }
2302 if test "x$new_enable_languages" != "x$enable_languages"; then
2303 echo The following languages will be built
: ${new_enable_languages}
2305 enable_languages
="$new_enable_languages"
2306 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2309 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
2310 # $target_configdirs.
2311 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2314 for dir
in .
$skipdirs $noconfigdirs ; do
2315 dirname=`echo $dir | sed -e s/target-//g`
2316 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2317 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2318 if test -r $srcdir/$dirname/configure
; then
2319 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2322 notsupp
="$notsupp $dir"
2326 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2327 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2328 if test -r $srcdir/$dirname/configure
; then
2329 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2332 notsupp
="$notsupp $dir"
2338 # Sometimes the tools are distributed with libiberty but with no other
2339 # libraries. In that case, we don't want to build target-libiberty.
2340 if test -n "${target_configdirs}" ; then
2342 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2343 if test "$i" != "libiberty" ; then
2344 if test -r $srcdir/$i/configure
; then
2350 if test -z "${others}" ; then
2355 # Quietly strip out all directories which aren't configurable in this tree.
2356 # This relies on all configurable subdirectories being autoconfiscated, which
2358 configdirs_all
="$configdirs"
2360 for i
in ${configdirs_all} ; do
2361 if test -f ${srcdir}/$i/configure
; then
2362 configdirs
="${configdirs} $i"
2365 target_configdirs_all
="$target_configdirs"
2367 for i
in ${target_configdirs_all} ; do
2368 j
=`echo $i | sed -e s/target-//g`
2369 if test -f ${srcdir}/$j/configure
; then
2370 target_configdirs
="${target_configdirs} $i"
2374 # Produce a warning message for the subdirs we can't configure.
2375 # This isn't especially interesting in the Cygnus tree, but in the individual
2376 # FSF releases, it's important to let people know when their machine isn't
2377 # supported by the one or two programs in a package.
2379 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2380 # If $appdirs is non-empty, at least one of those directories must still
2381 # be configured, or we error out. (E.g., if the gas release supports a
2382 # specified target in some subdirs but not the gas subdir, we shouldn't
2383 # pretend that all is well.)
2384 if test -n "$appdirs" ; then
2385 for dir
in $appdirs ; do
2386 if test -r $dir/Makefile.
in ; then
2387 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2391 if echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2397 if test -n "$appdirs" ; then
2398 echo "*** This configuration is not supported by this package." 1>&2
2402 # Okay, some application will build, or we don't care to check. Still
2403 # notify of subdirs not getting built.
2404 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2405 echo " ${notsupp}" 1>&2
2406 echo " (Any other directories should still work fine.)" 1>&2
2416 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2417 # the named directory are copied to $(tooldir)/sys-include.
2418 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
2419 if test x
${is_cross_compiler} = xno
; then
2420 echo 1>&2 '***' --with-headers is only supported when cross compiling
2423 if test x
"${with_headers}" != xyes
; then
2424 case "${exec_prefixoption}" in
2426 *) x
=${exec_prefix} ;;
2428 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2432 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2433 # the name directories are copied to $(tooldir)/lib. Multiple directories
2435 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2436 if test x
${is_cross_compiler} = xno
; then
2437 echo 1>&2 '***' --with-libs is only supported when cross compiling
2440 if test x
"${with_libs}" != xyes
; then
2441 # Copy the libraries in reverse order, so that files in the first named
2442 # library override files in subsequent libraries.
2443 case "${exec_prefixoption}" in
2445 *) x
=${exec_prefix} ;;
2447 for l
in ${with_libs}; do
2448 copy_dirs
="$l $x/${target_alias}/lib ${copy_dirs}"
2453 # Handle ${copy_dirs}
2454 set fnord
${copy_dirs}
2456 while test $# != 0 ; do
2457 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
2460 echo Copying
$1 to
$2
2462 # Use the install script to create the directory and all required
2463 # parent directories.
2464 if test -d $2 ; then
2468 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
2471 # Copy the directory, assuming we have tar.
2472 # FIXME: Should we use B in the second tar? Not all systems support it.
2473 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
2475 # It is the responsibility of the user to correctly adjust all
2476 # symlinks. If somebody can figure out how to handle them correctly
2477 # here, feel free to add the code.
2484 extra_arflags_for_target
=
2485 extra_nmflags_for_target
=
2486 extra_ranlibflags_for_target
=
2487 target_makefile_frag
=/dev
/null
2489 i
[3456789]86-*-netware*)
2490 target_makefile_frag
="config/mt-netware"
2493 target_makefile_frag
="config/mt-netware"
2496 target_makefile_frag
="config/mt-linux"
2498 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
2499 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2500 # commands to handle both 32-bit and 64-bit objects. These flags are
2501 # harmless if we're using GNU nm or ar.
2502 extra_arflags_for_target
=" -X32_64"
2503 extra_nmflags_for_target
=" -B -X32_64"
2506 # ranlib from Darwin requires the -c flag to look at common symbols.
2507 extra_ranlibflags_for_target
=" -c"
2509 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
2510 target_makefile_frag
="config/mt-wince"
2514 alphaieee_frag
=/dev
/null
2517 # This just makes sure to use the -mieee option to build target libs.
2518 # This should probably be set individually by each library.
2519 alphaieee_frag
="config/mt-alphaieee"
2523 # If --enable-target-optspace always use -Os instead of -O2 to build
2524 # the target libraries, similarly if it is not specified, use -Os
2525 # on selected platforms.
2526 ospace_frag
=/dev
/null
2527 case "${enable_target_optspace}:${target}" in
2529 ospace_frag
="config/mt-ospace"
2532 ospace_frag
="config/mt-d30v"
2534 :m32r-
* |
:d10v-
* |
:fr30-
*)
2535 ospace_frag
="config/mt-ospace"
2540 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2544 # Set with_gnu_as and with_gnu_ld as appropriate.
2546 # This is done by determining whether or not the appropriate directory
2547 # is available, and by checking whether or not specific configurations
2548 # have requested that this magic not happen.
2550 # The command line options always override the explicit settings in
2551 # configure.in, and the settings in configure.in override this magic.
2553 # If the default for a toolchain is to use GNU as and ld, and you don't
2554 # want to do that, then you should use the --without-gnu-as and
2555 # --without-gnu-ld options for the configure script.
2557 if test x
${use_gnu_as} = x
&&
2558 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
2560 extra_host_args
="$extra_host_args --with-gnu-as"
2563 if test x
${use_gnu_ld} = x
&&
2564 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
2566 extra_host_args
="$extra_host_args --with-gnu-ld"
2569 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2570 # can detect this case.
2572 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
2574 extra_host_args
="$extra_host_args --with-newlib"
2578 # Default to using --with-stabs for certain targets.
2579 if test x
${with_stabs} = x
; then
2583 mips
*-*-* | alpha
*-*-osf*)
2585 extra_host_args
="${extra_host_args} --with-stabs"
2590 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2591 # them automatically.
2594 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2598 # Some systems (e.g., one of the i386-aix systems the gas testers are
2599 # using) don't handle "\$" correctly, so don't use it here.
2600 tooldir
='${exec_prefix}'/${target_alias}
2601 build_tooldir
=${tooldir}
2603 # Generate default definitions for YACC, M4, LEX. These are used if the
2604 # Makefile can't locate these programs in objdir.
2605 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2606 for ac_prog
in 'bison -y' byacc
yacc
2608 # Extract the first word of "$ac_prog", so it can be a program name with args.
2609 set dummy
$ac_prog; ac_word
=$2
2610 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2611 echo "configure:2612: checking for $ac_word" >&5
2612 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_YACC'+set}'`\" = set"; then
2613 echo $ac_n "(cached) $ac_c" 1>&6
2615 if test -n "$DEFAULT_YACC"; then
2616 ac_cv_prog_DEFAULT_YACC
="$DEFAULT_YACC" # Let the user override the test.
2618 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2620 for ac_dir
in $ac_dummy; do
2621 test -z "$ac_dir" && ac_dir
=.
2622 if test -f $ac_dir/$ac_word; then
2623 ac_cv_prog_DEFAULT_YACC
="$ac_prog"
2630 DEFAULT_YACC
="$ac_cv_prog_DEFAULT_YACC"
2631 if test -n "$DEFAULT_YACC"; then
2632 echo "$ac_t""$DEFAULT_YACC" 1>&6
2634 echo "$ac_t""no" 1>&6
2637 test -n "$DEFAULT_YACC" && break
2639 test -n "$DEFAULT_YACC" || DEFAULT_YACC
="$MISSING bison"
2641 for ac_prog
in gm4 gnum4
m4
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy
$ac_prog; ac_word
=$2
2645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2646 echo "configure:2647: checking for $ac_word" >&5
2647 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_M4'+set}'`\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2650 if test -n "$DEFAULT_M4"; then
2651 ac_cv_prog_DEFAULT_M4
="$DEFAULT_M4" # Let the user override the test.
2653 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2655 for ac_dir
in $ac_dummy; do
2656 test -z "$ac_dir" && ac_dir
=.
2657 if test -f $ac_dir/$ac_word; then
2658 ac_cv_prog_DEFAULT_M4
="$ac_prog"
2665 DEFAULT_M4
="$ac_cv_prog_DEFAULT_M4"
2666 if test -n "$DEFAULT_M4"; then
2667 echo "$ac_t""$DEFAULT_M4" 1>&6
2669 echo "$ac_t""no" 1>&6
2672 test -n "$DEFAULT_M4" && break
2674 test -n "$DEFAULT_M4" || DEFAULT_M4
="$MISSING m4"
2676 for ac_prog
in flex
lex
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy
$ac_prog; ac_word
=$2
2680 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2681 echo "configure:2682: checking for $ac_word" >&5
2682 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_LEX'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2685 if test -n "$DEFAULT_LEX"; then
2686 ac_cv_prog_DEFAULT_LEX
="$DEFAULT_LEX" # Let the user override the test.
2688 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2690 for ac_dir
in $ac_dummy; do
2691 test -z "$ac_dir" && ac_dir
=.
2692 if test -f $ac_dir/$ac_word; then
2693 ac_cv_prog_DEFAULT_LEX
="$ac_prog"
2700 DEFAULT_LEX
="$ac_cv_prog_DEFAULT_LEX"
2701 if test -n "$DEFAULT_LEX"; then
2702 echo "$ac_t""$DEFAULT_LEX" 1>&6
2704 echo "$ac_t""no" 1>&6
2707 test -n "$DEFAULT_LEX" && break
2709 test -n "$DEFAULT_LEX" || DEFAULT_LEX
="$MISSING flex"
2712 # Create a .gdbinit file which runs the one in srcdir
2713 # and tells GDB to look there for source files.
2715 if test -r ${srcdir}/.gdbinit
; then
2718 *) cat > .
/.gdbinit
<<EOF
2722 source ${srcdir}/.gdbinit
2728 # Make sure that the compiler is able to generate an executable. If it
2729 # can't, we are probably in trouble. We don't care whether we can run the
2730 # executable--we might be using a cross compiler--we only care whether it
2731 # can be created. At this point the main configure script has set CC.
2733 echo "int main () { return 0; }" > conftest.c
2734 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2735 if test $?
= 0 ; then
2736 if test -s conftest ||
test -s conftest.exe
; then
2742 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2743 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2750 # The Solaris /usr/ucb/cc compiler does not appear to work.
2752 sparc-sun-solaris2
*)
2753 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
2754 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2756 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
2757 if test -d /opt
/cygnus
/bin
; then
2758 if test "$could_use" = "" ; then
2759 could_use
="/opt/cygnus/bin"
2761 could_use
="$could_use or /opt/cygnus/bin"
2764 if test "$could_use" = "" ; then
2765 echo "Warning: compilation may fail because you're using"
2766 echo "/usr/ucb/cc. You should change your PATH or CC "
2767 echo "variable and rerun configure."
2769 echo "Warning: compilation may fail because you're using"
2770 echo "/usr/ucb/cc, when you should use the C compiler from"
2771 echo "$could_use. You should change your"
2772 echo "PATH or CC variable and rerun configure."
2778 # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
2779 # binutils tools will find libbfd.so.
2780 case "${enable_shared}" in
2781 no |
"") SET_LIB_PATH
= ;;
2782 *) SET_LIB_PATH
="\$(REALLY_SET_LIB_PATH)" ;;
2786 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
2787 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
2790 # Record target_configdirs and the configure arguments for target and
2791 # build configuration in Makefile.
2792 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2794 # This is the final value for target_configdirs. configdirs already
2795 # has its final value, as does build_modules. It's time to create some
2796 # lists of valid targets.
2799 configure_build_modules
=
2800 for module
in ${build_modules} ; do
2801 all_build_modules
=all-build-
${module}
2802 configure_build_modules
=configure-build-
${module}
2805 # Determine whether gdb needs tk/tcl or not.
2806 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2807 # and in that case we want gdb to be built without tk. Ugh!
2808 # In fact I believe gdb is the *only* package directly dependent on tk,
2809 # so we should be able to put the 'maybe's in unconditionally and
2810 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2811 # 100% sure that that's safe though.
2813 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui"
2814 case "$enable_gdbtk" in
2818 GDB_TK
="${gdb_tk}" ;;
2820 # Only add the dependency on gdbtk when GDBtk is part of the gdb
2821 # distro. Eventually someone will fix this and move Insight, nee
2822 # gdbtk to a separate directory.
2823 if test -d ${srcdir}/gdb
/gdbtk
; then
2831 # Create the 'maybe dependencies'. This uses a temporary file.
2833 # While at that, we remove Makefiles if we were started for recursive
2834 # configuration, so that the top-level Makefile reconfigures them,
2835 # like we used to do when configure itself was recursive.
2837 echo '# maybedep.tmp' > maybedep.tmp
2839 # Make-targets which may need maybe dependencies.
2840 mts
="configure all install check clean distclean dvi info install-info"
2841 mts
="${mts} installcheck mostlyclean maintainer-clean TAGS"
2843 # Loop over modules and make-targets.
2844 for module
in ${build_modules} ; do
2845 if test -z "${no_recursion}" \
2846 && test -f ${build_subdir}/${module}/Makefile
; then
2847 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
2848 rm -f ${build_subdir}/${module}/Makefile
2850 for mt
in ${mts} ; do
2852 install) ;; # No installing build modules.
2853 *) echo "maybe-${mt}-build-${module}: ${mt}-build-${module}" >> maybedep.tmp
;;
2857 for module
in ${configdirs} ; do
2858 if test -z "${no_recursion}" \
2859 && test -f ${module}/Makefile
; then
2860 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
2861 rm -f ${module}/Makefile
2863 for mt
in ${mts} ; do
2864 echo "maybe-${mt}-${module}: ${mt}-${module}" >> maybedep.tmp
2867 for module
in ${target_configdirs} ; do
2868 if test -z "${no_recursion}" \
2869 && test -f ${target_subdir}/${module}/Makefile
; then
2870 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
2871 rm -f ${target_subdir}/${module}/Makefile
2873 for mt
in ${mts} ; do
2874 echo "maybe-${mt}-target-${module}: ${mt}-target-${module}" >> maybedep.tmp
2877 maybe_dependencies
=maybedep.tmp
2880 # Create the serialization dependencies. This uses a temporary file.
2882 # Check whether --enable-serial-configure or --disable-serial-configure was given.
2883 if test "${enable_serial_configure+set}" = set; then
2884 enableval
="$enable_serial_configure"
2889 case ${enable_serial_configure} in
2891 enable_serial_build_configure
=yes
2892 enable_serial_host_configure
=yes
2893 enable_serial_target_configure
=yes
2897 # These force 'configure's to be done one at a time, to avoid problems
2898 # with contention over a shared config.cache.
2900 echo '# serdep.tmp' > serdep.tmp
2902 test "x${enable_serial_build_configure}" = xyes
&&
2903 for item
in ${build_configdirs} ; do
2906 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
2911 test "x${enable_serial_host_configure}" = xyes
&&
2912 for item
in ${configdirs} ; do
2915 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
2920 test "x${enable_serial_target_configure}" = xyes
&&
2921 for item
in ${target_configdirs} ; do
2924 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
2928 serialization_dependencies
=serdep.tmp
2931 # Base args. Strip norecursion, cache-file, srcdir, host, build,
2932 # target and nonopt. These are the ones we might not want to pass
2933 # down to subconfigures. Also strip program-prefix, program-suffix,
2934 # and program-transform-name, so that we can pass down a consistent
2935 # program-transform-name. If autoconf has put single quotes around
2936 # any of these arguments (because they contain shell metacharacters)
2937 # then this will fail; in practice this only happens for
2938 # --program-transform-name, so be sure to override --program-transform-name
2939 # at the end of the argument list.
2940 # These will be expanded by make, so quote '$'.
2941 cat <<\EOF_SED
> conftestsed
2943 s
/ --c[a-z-
]*[= ][^
]* / /
2944 s
/ --sr[a-z-
]*[= ][^
]* / /
2945 s
/ --ho[a-z-
]*[= ][^
]* / /
2946 s
/ --bu[a-z-
]*[= ][^
]* / /
2947 s
/ --t[a-z-
]*[= ][^
]* / /
2948 s
/ --program-[pst
][a-z-
]*[= ][^
]* / /
2949 s
/ -cache-file[= ][^
]* / /
2950 s
/ -srcdir[= ][^
]* / /
2951 s
/ -host[= ][^
]* / /
2952 s
/ -build[= ][^
]* / /
2953 s
/ -target[= ][^
]* / /
2954 s
/ -program-prefix[= ][^
]* / /
2955 s
/ -program-suffix[= ][^
]* / /
2956 s
/ -program-transform-name[= ][^
]* / /
2961 sed -f conftestsed <<EOF_SED > conftestsed.out
2962 ${ac_configure_args}
2964 baseargs=`cat conftestsed.out`
2965 rm -f conftestsed conftestsed.out
2967 # Add in --program-transform-name, after --program-prefix and
2968 # --program-suffix have been applied to it. Autoconf has already
2969 # doubled dollar signs and backslashes in program_transform_name; we want
2970 # the backslashes un-doubled, and then the entire thing wrapped in single
2971 # quotes, because this will be expanded first by make and then by the shell.
2972 # Also, because we want to override the logic in subdir configure scripts to
2973 # choose program_transform_name, replace any s,x,x, with s,y,y,.
2974 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
2975 ${program_transform_name}
2977 gcc_transform_name=`cat conftestsed.out`
2978 rm -f conftestsed.out
2979 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2981 # For the build-side libraries, we just need to pretend we're native
,
2982 # and not use the same cache file. Multilibs are neither needed nor
2984 build_configargs
="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
2986 # For host modules, accept cache file option, or specification as blank.
2987 case "${cache_file}" in
2989 cache_file_option
="" ;;
2990 /* |
[A-Za-z
]:[\\/]* ) # absolute path
2991 cache_file_option
="--cache-file=${cache_file}" ;;
2993 cache_file_option
="--cache-file=../${cache_file}" ;;
2996 # Host dirs don't like to share a cache file either, horribly enough.
2997 # This seems to be due to autoconf 2.5x stupidity.
2998 host_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3000 target_configargs
=${baseargs}
3002 # Passing a --with-cross-host argument lets the target libraries know
3003 # whether they are being built with a cross-compiler or being built
3004 # native. However, it would be better to use other mechanisms to make the
3005 # sorts of decisions they want to make on this basis. Please consider
3006 # this option to be deprecated. FIXME.
3007 if test x
${is_cross_compiler} = xyes
; then
3008 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3011 # Default to --enable-multilib.
3012 if test x
${enable_multilib} = x
; then
3013 target_configargs
="--enable-multilib ${target_configargs}"
3016 # Pass --with-newlib if appropriate. Note that target_configdirs has
3017 # changed from the earlier setting of with_newlib.
3018 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3019 target_configargs
="--with-newlib ${target_configargs}"
3022 # Different target subdirs use different values of certain variables
3023 # (notably CXX). Worse, multilibs use *lots* of different values.
3024 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3025 # it doesn't automatically accept command-line overrides of them.
3026 # This means it's not safe for target subdirs to share a cache file,
3027 # which is disgusting, but there you have it. Hopefully this can be
3028 # fixed in future. It's still worthwhile to use a cache file for each
3029 # directory. I think.
3031 # Pass the appropriate --host, --build, and --cache-file arguments.
3032 target_configargs
="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}"
3034 # provide a proper gxx_include_dir.
3035 # Note, if you change the default, make sure to fix both here and in
3036 # the gcc and libstdc++-v3 subdirectories.
3037 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
3038 case "${with_gxx_include_dir}" in
3040 { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; }
3043 case "${enable_version_specific_runtime_libs}" in
3044 yes) gxx_include_dir
='${libsubdir}/include/c++' ;;
3046 .
${srcdir}/config.
if
3047 gxx_include_dir
='${prefix}/include/'${libstdcxx_incdir} ;;
3049 *) gxx_include_dir
=${with_gxx_include_dir} ;;
3053 case " $target_configdirs " in
3055 case " $target_configargs " in
3056 *" --with-newlib "*)
3059 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' ;;
3062 # If we're not building GCC, don't discard standard headers.
3063 if test -d ${srcdir}/gcc
; then
3064 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3066 if test "${build}" != "${host}"; then
3067 # On Canadian crosses, CC_FOR_TARGET will have already been set
3068 # by `configure', so we won't have an opportunity to add -Bgcc/
3069 # to it. This is right: we don't want to search that directory
3070 # for binaries, but we want the header files in there, so add
3072 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
3074 # Someone might think of using the pre-installed headers on
3075 # Canadian crosses, in case the installed compiler is not fully
3076 # compatible with the compiler being built. In this case, it
3077 # would be better to flag an error than risking having
3078 # incompatible object files being constructed. We can't
3079 # guarantee that an error will be flagged, but let's hope the
3080 # compiler will do it, when presented with incompatible header
3085 case "${target}-${is_cross_compiler}" in
3086 i
[3456789]86-*-linux*-no)
3087 # Here host == target, so we don't need to build gcc,
3088 # so we don't want to discard standard headers.
3089 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3092 # If we're building newlib, use its generic headers last, but search
3093 # for any libc-related directories first (so make it the last -B
3095 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3103 # Allow the user to override the flags for
3104 # our build compiler if desired.
3105 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3107 # On Canadian crosses, we'll be searching the right directories for
3108 # the previously-installed cross compiler, so don't bother to add
3109 # flags for directories within the install tree of the compiler
3110 # being built; programs in there won't even run.
3111 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3112 # Search for pre-installed headers if nothing else fits.
3113 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3116 if test "x
${use_gnu_ld}" = x &&
3117 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3118 # Arrange for us to find uninstalled linker scripts.
3119 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
3122 if test "x
${CC_FOR_TARGET+set}" = xset; then
3124 elif test -d ${srcdir}/gcc; then
3125 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
3126 elif test "$host" = "$target"; then
3127 CC_FOR_TARGET='$(CC)'
3129 CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"`
3131 CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3133 if test "x
${GCJ_FOR_TARGET+set}" = xset; then
3135 elif test -d ${srcdir}/gcc; then
3136 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
3137 elif test "$host" = "$target"; then
3138 GCJ_FOR_TARGET='gcj'
3140 GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"`
3142 GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3144 # Don't use libstdc++-v3's flags to configure/build itself.
3145 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'
3146 raw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
3148 if test "x
${CXX_FOR_TARGET+set}" = xset; then
3149 if test "x
${RAW_CXX_FOR_TARGET+set}" != xset; then
3150 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3152 elif test -d ${srcdir}/gcc; then
3153 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
3154 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
3155 # default whereas gcc does not.
3156 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
3158 CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
3159 RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags
3160 elif test "$host" = "$target"; then
3161 CXX_FOR_TARGET='$(CXX)'
3162 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3164 CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"`
3165 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3167 CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3168 RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3170 qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3171 qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3173 # We want to defer the evaluation of `cmd`s and shell variables in
3174 # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
3175 # bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
3176 # quotes, but we still have to duplicate `$'s so that shell variables
3177 # can be expanded by the nested make as shell variables, not as make
3179 qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3180 qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3182 # Wrap CC_FOR_TARGET and friends, for certain types of builds.
3183 CC_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${CC_FOR_TARGET}"
3184 GCJ_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${GCJ_FOR_TARGET}"
3185 CXX_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${qCXX_FOR_TARGET}"
3186 RAW_CXX_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${qRAW_CXX_FOR_TARGET}"
3187 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$
(STAGE_CC_WRAPPER
) ${qqCXX_FOR_TARGET}"
3188 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$
(STAGE_CC_WRAPPER
) ${qqRAW_CXX_FOR_TARGET}"
3190 # Makefile fragments.
3191 host_makefile_frag=${srcdir}/${host_makefile_frag}
3192 target_makefile_frag=${srcdir}/${target_makefile_frag}
3193 alphaieee_frag=${srcdir}/${alphaieee_frag}
3194 ospace_frag=${srcdir}/${ospace_frag}
3200 # Miscellanea: directories, flags, etc.
3213 # Build module lists & subconfigure args.
3218 # Host module lists & subconfigure args.
3222 # Target module lists & subconfigure args.
3236 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3237 ncn_target_tool_prefix=
3238 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3240 if test -n "$ncn_tool_prefix"; then
3241 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
3242 set dummy ${ncn_tool_prefix}ar; ac_word=$2
3243 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3244 echo "configure
:3245: checking
for $ac_word" >&5
3245 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3246 echo $ac_n "(cached
) $ac_c" 1>&6
3248 if test -n "$AR"; then
3249 ac_cv_prog_AR="$AR" # Let the user override the test.
3251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3253 for ac_dir in $ac_dummy; do
3254 test -z "$ac_dir" && ac_dir=.
3255 if test -f $ac_dir/$ac_word; then
3256 ac_cv_prog_AR="${ncn_tool_prefix}ar"
3264 if test -n "$AR"; then
3265 echo "$ac_t""$AR" 1>&6
3267 echo "$ac_t""no
" 1>&6
3271 if test -z "$ac_cv_prog_AR" ; then
3272 if test $build = $host ; then
3274 # Extract the first word of "ar", so it can be a program name with args.
3275 set dummy ar; ac_word=$2
3276 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3277 echo "configure
:3278: checking
for $ac_word" >&5
3278 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
3279 echo $ac_n "(cached
) $ac_c" 1>&6
3281 if test -n "$ncn_cv_AR"; then
3282 ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test.
3284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3286 for ac_dir in $ac_dummy; do
3287 test -z "$ac_dir" && ac_dir=.
3288 if test -f $ac_dir/$ac_word; then
3289 ac_cv_prog_ncn_cv_AR="ar"
3294 test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar"
3297 ncn_cv_AR="$ac_cv_prog_ncn_cv_AR"
3298 if test -n "$ncn_cv_AR"; then
3299 echo "$ac_t""$ncn_cv_AR" 1>&6
3301 echo "$ac_t""no
" 1>&6
3306 AR="${ncn_tool_prefix}ar"
3312 if test -n "$ncn_tool_prefix"; then
3313 # Extract the first word of "${ncn_tool_prefix}as
", so it can be a program name with args.
3314 set dummy ${ncn_tool_prefix}as; ac_word=$2
3315 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3316 echo "configure
:3317: checking
for $ac_word" >&5
3317 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3318 echo $ac_n "(cached
) $ac_c" 1>&6
3320 if test -n "$AS"; then
3321 ac_cv_prog_AS="$AS" # Let the user override the test.
3323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3325 for ac_dir in $ac_dummy; do
3326 test -z "$ac_dir" && ac_dir=.
3327 if test -f $ac_dir/$ac_word; then
3328 ac_cv_prog_AS="${ncn_tool_prefix}as
"
3336 if test -n "$AS"; then
3337 echo "$ac_t""$AS" 1>&6
3339 echo "$ac_t""no
" 1>&6
3343 if test -z "$ac_cv_prog_AS" ; then
3344 if test $build = $host ; then
3346 # Extract the first word of "as
", so it can be a program name with args.
3347 set dummy as; ac_word=$2
3348 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3349 echo "configure
:3350: checking
for $ac_word" >&5
3350 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
3351 echo $ac_n "(cached
) $ac_c" 1>&6
3353 if test -n "$ncn_cv_AS"; then
3354 ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test.
3356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3358 for ac_dir in $ac_dummy; do
3359 test -z "$ac_dir" && ac_dir=.
3360 if test -f $ac_dir/$ac_word; then
3361 ac_cv_prog_ncn_cv_AS="as
"
3366 test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as
"
3369 ncn_cv_AS="$ac_cv_prog_ncn_cv_AS"
3370 if test -n "$ncn_cv_AS"; then
3371 echo "$ac_t""$ncn_cv_AS" 1>&6
3373 echo "$ac_t""no
" 1>&6
3378 AS="${ncn_tool_prefix}as
"
3384 if test -n "$ncn_tool_prefix"; then
3385 # Extract the first word of "${ncn_tool_prefix}dlltool
", so it can be a program name with args.
3386 set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
3387 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3388 echo "configure
:3389: checking
for $ac_word" >&5
3389 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3390 echo $ac_n "(cached
) $ac_c" 1>&6
3392 if test -n "$DLLTOOL"; then
3393 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3397 for ac_dir in $ac_dummy; do
3398 test -z "$ac_dir" && ac_dir=.
3399 if test -f $ac_dir/$ac_word; then
3400 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool
"
3407 DLLTOOL="$ac_cv_prog_DLLTOOL"
3408 if test -n "$DLLTOOL"; then
3409 echo "$ac_t""$DLLTOOL" 1>&6
3411 echo "$ac_t""no
" 1>&6
3415 if test -z "$ac_cv_prog_DLLTOOL" ; then
3416 if test $build = $host ; then
3417 ncn_cv_DLLTOOL=$DLLTOOL
3418 # Extract the first word of "dlltool
", so it can be a program name with args.
3419 set dummy dlltool; ac_word=$2
3420 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3421 echo "configure
:3422: checking
for $ac_word" >&5
3422 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
3423 echo $ac_n "(cached
) $ac_c" 1>&6
3425 if test -n "$ncn_cv_DLLTOOL"; then
3426 ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test.
3428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3430 for ac_dir in $ac_dummy; do
3431 test -z "$ac_dir" && ac_dir=.
3432 if test -f $ac_dir/$ac_word; then
3433 ac_cv_prog_ncn_cv_DLLTOOL="dlltool
"
3438 test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool
"
3441 ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL"
3442 if test -n "$ncn_cv_DLLTOOL"; then
3443 echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6
3445 echo "$ac_t""no
" 1>&6
3448 DLLTOOL=$ncn_cv_DLLTOOL
3450 DLLTOOL="${ncn_tool_prefix}dlltool
"
3453 DLLTOOL="$ac_cv_prog_DLLTOOL"
3456 if test -n "$ncn_tool_prefix"; then
3457 # Extract the first word of "${ncn_tool_prefix}ld
", so it can be a program name with args.
3458 set dummy ${ncn_tool_prefix}ld; ac_word=$2
3459 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3460 echo "configure
:3461: checking
for $ac_word" >&5
3461 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3462 echo $ac_n "(cached
) $ac_c" 1>&6
3464 if test -n "$LD"; then
3465 ac_cv_prog_LD="$LD" # Let the user override the test.
3467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3469 for ac_dir in $ac_dummy; do
3470 test -z "$ac_dir" && ac_dir=.
3471 if test -f $ac_dir/$ac_word; then
3472 ac_cv_prog_LD="${ncn_tool_prefix}ld
"
3480 if test -n "$LD"; then
3481 echo "$ac_t""$LD" 1>&6
3483 echo "$ac_t""no
" 1>&6
3487 if test -z "$ac_cv_prog_LD" ; then
3488 if test $build = $host ; then
3490 # Extract the first word of "ld
", so it can be a program name with args.
3491 set dummy ld; ac_word=$2
3492 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3493 echo "configure
:3494: checking
for $ac_word" >&5
3494 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
3495 echo $ac_n "(cached
) $ac_c" 1>&6
3497 if test -n "$ncn_cv_LD"; then
3498 ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test.
3500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3502 for ac_dir in $ac_dummy; do
3503 test -z "$ac_dir" && ac_dir=.
3504 if test -f $ac_dir/$ac_word; then
3505 ac_cv_prog_ncn_cv_LD="ld
"
3510 test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld
"
3513 ncn_cv_LD="$ac_cv_prog_ncn_cv_LD"
3514 if test -n "$ncn_cv_LD"; then
3515 echo "$ac_t""$ncn_cv_LD" 1>&6
3517 echo "$ac_t""no
" 1>&6
3522 LD="${ncn_tool_prefix}ld
"
3528 if test -n "$ncn_tool_prefix"; then
3529 # Extract the first word of "${ncn_tool_prefix}nm
", so it can be a program name with args.
3530 set dummy ${ncn_tool_prefix}nm; ac_word=$2
3531 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3532 echo "configure
:3533: checking
for $ac_word" >&5
3533 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3534 echo $ac_n "(cached
) $ac_c" 1>&6
3536 if test -n "$NM"; then
3537 ac_cv_prog_NM="$NM" # Let the user override the test.
3539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3541 for ac_dir in $ac_dummy; do
3542 test -z "$ac_dir" && ac_dir=.
3543 if test -f $ac_dir/$ac_word; then
3544 ac_cv_prog_NM="${ncn_tool_prefix}nm
"
3552 if test -n "$NM"; then
3553 echo "$ac_t""$NM" 1>&6
3555 echo "$ac_t""no
" 1>&6
3559 if test -z "$ac_cv_prog_NM" ; then
3560 if test $build = $host ; then
3562 # Extract the first word of "nm
", so it can be a program name with args.
3563 set dummy nm; ac_word=$2
3564 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3565 echo "configure
:3566: checking
for $ac_word" >&5
3566 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
3567 echo $ac_n "(cached
) $ac_c" 1>&6
3569 if test -n "$ncn_cv_NM"; then
3570 ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test.
3572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3574 for ac_dir in $ac_dummy; do
3575 test -z "$ac_dir" && ac_dir=.
3576 if test -f $ac_dir/$ac_word; then
3577 ac_cv_prog_ncn_cv_NM="nm
"
3582 test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm
"
3585 ncn_cv_NM="$ac_cv_prog_ncn_cv_NM"
3586 if test -n "$ncn_cv_NM"; then
3587 echo "$ac_t""$ncn_cv_NM" 1>&6
3589 echo "$ac_t""no
" 1>&6
3594 NM="${ncn_tool_prefix}nm
"
3600 if test -n "$ncn_tool_prefix"; then
3601 # Extract the first word of "${ncn_tool_prefix}ranlib
", so it can be a program name with args.
3602 set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3603 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3604 echo "configure
:3605: checking
for $ac_word" >&5
3605 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3606 echo $ac_n "(cached
) $ac_c" 1>&6
3608 if test -n "$RANLIB"; then
3609 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3613 for ac_dir in $ac_dummy; do
3614 test -z "$ac_dir" && ac_dir=.
3615 if test -f $ac_dir/$ac_word; then
3616 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib
"
3623 RANLIB="$ac_cv_prog_RANLIB"
3624 if test -n "$RANLIB"; then
3625 echo "$ac_t""$RANLIB" 1>&6
3627 echo "$ac_t""no
" 1>&6
3631 if test -z "$ac_cv_prog_RANLIB" ; then
3632 if test $build = $host ; then
3633 ncn_cv_RANLIB=$RANLIB
3634 # Extract the first word of "ranlib
", so it can be a program name with args.
3635 set dummy ranlib; ac_word=$2
3636 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3637 echo "configure
:3638: checking
for $ac_word" >&5
3638 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
3639 echo $ac_n "(cached
) $ac_c" 1>&6
3641 if test -n "$ncn_cv_RANLIB"; then
3642 ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test.
3644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3646 for ac_dir in $ac_dummy; do
3647 test -z "$ac_dir" && ac_dir=.
3648 if test -f $ac_dir/$ac_word; then
3649 ac_cv_prog_ncn_cv_RANLIB="ranlib
"
3654 test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":"
3657 ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB"
3658 if test -n "$ncn_cv_RANLIB"; then
3659 echo "$ac_t""$ncn_cv_RANLIB" 1>&6
3661 echo "$ac_t""no
" 1>&6
3664 RANLIB=$ncn_cv_RANLIB
3669 RANLIB="$ac_cv_prog_RANLIB"
3672 if test -n "$ncn_tool_prefix"; then
3673 # Extract the first word of "${ncn_tool_prefix}windres
", so it can be a program name with args.
3674 set dummy ${ncn_tool_prefix}windres; ac_word=$2
3675 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3676 echo "configure
:3677: checking
for $ac_word" >&5
3677 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3678 echo $ac_n "(cached
) $ac_c" 1>&6
3680 if test -n "$WINDRES"; then
3681 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3685 for ac_dir in $ac_dummy; do
3686 test -z "$ac_dir" && ac_dir=.
3687 if test -f $ac_dir/$ac_word; then
3688 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres
"
3695 WINDRES="$ac_cv_prog_WINDRES"
3696 if test -n "$WINDRES"; then
3697 echo "$ac_t""$WINDRES" 1>&6
3699 echo "$ac_t""no
" 1>&6
3703 if test -z "$ac_cv_prog_WINDRES" ; then
3704 if test $build = $host ; then
3705 ncn_cv_WINDRES=$WINDRES
3706 # Extract the first word of "windres
", so it can be a program name with args.
3707 set dummy windres; ac_word=$2
3708 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3709 echo "configure
:3710: checking
for $ac_word" >&5
3710 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
3711 echo $ac_n "(cached
) $ac_c" 1>&6
3713 if test -n "$ncn_cv_WINDRES"; then
3714 ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test.
3716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3718 for ac_dir in $ac_dummy; do
3719 test -z "$ac_dir" && ac_dir=.
3720 if test -f $ac_dir/$ac_word; then
3721 ac_cv_prog_ncn_cv_WINDRES="windres
"
3726 test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres
"
3729 ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES"
3730 if test -n "$ncn_cv_WINDRES"; then
3731 echo "$ac_t""$ncn_cv_WINDRES" 1>&6
3733 echo "$ac_t""no
" 1>&6
3736 WINDRES=$ncn_cv_WINDRES
3738 WINDRES="${ncn_tool_prefix}windres
"
3741 WINDRES="$ac_cv_prog_WINDRES"
3744 if test -n "$ncn_tool_prefix"; then
3745 # Extract the first word of "${ncn_tool_prefix}objcopy
", so it can be a program name with args.
3746 set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
3747 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3748 echo "configure
:3749: checking
for $ac_word" >&5
3749 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
3750 echo $ac_n "(cached
) $ac_c" 1>&6
3752 if test -n "$OBJCOPY"; then
3753 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
3755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3757 for ac_dir in $ac_dummy; do
3758 test -z "$ac_dir" && ac_dir=.
3759 if test -f $ac_dir/$ac_word; then
3760 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy
"
3767 OBJCOPY="$ac_cv_prog_OBJCOPY"
3768 if test -n "$OBJCOPY"; then
3769 echo "$ac_t""$OBJCOPY" 1>&6
3771 echo "$ac_t""no
" 1>&6
3775 if test -z "$ac_cv_prog_OBJCOPY" ; then
3776 if test $build = $host ; then
3777 ncn_cv_OBJCOPY=$OBJCOPY
3778 # Extract the first word of "objcopy
", so it can be a program name with args.
3779 set dummy objcopy; ac_word=$2
3780 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3781 echo "configure
:3782: checking
for $ac_word" >&5
3782 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
3783 echo $ac_n "(cached
) $ac_c" 1>&6
3785 if test -n "$ncn_cv_OBJCOPY"; then
3786 ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test.
3788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3790 for ac_dir in $ac_dummy; do
3791 test -z "$ac_dir" && ac_dir=.
3792 if test -f $ac_dir/$ac_word; then
3793 ac_cv_prog_ncn_cv_OBJCOPY="objcopy
"
3798 test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy
"
3801 ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY"
3802 if test -n "$ncn_cv_OBJCOPY"; then
3803 echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6
3805 echo "$ac_t""no
" 1>&6
3808 OBJCOPY=$ncn_cv_OBJCOPY
3810 OBJCOPY="${ncn_tool_prefix}objcopy
"
3813 OBJCOPY="$ac_cv_prog_OBJCOPY"
3816 if test -n "$ncn_tool_prefix"; then
3817 # Extract the first word of "${ncn_tool_prefix}objdump
", so it can be a program name with args.
3818 set dummy ${ncn_tool_prefix}objdump; ac_word=$2
3819 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3820 echo "configure
:3821: checking
for $ac_word" >&5
3821 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
3822 echo $ac_n "(cached
) $ac_c" 1>&6
3824 if test -n "$OBJDUMP"; then
3825 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3829 for ac_dir in $ac_dummy; do
3830 test -z "$ac_dir" && ac_dir=.
3831 if test -f $ac_dir/$ac_word; then
3832 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump
"
3839 OBJDUMP="$ac_cv_prog_OBJDUMP"
3840 if test -n "$OBJDUMP"; then
3841 echo "$ac_t""$OBJDUMP" 1>&6
3843 echo "$ac_t""no
" 1>&6
3847 if test -z "$ac_cv_prog_OBJDUMP" ; then
3848 if test $build = $host ; then
3849 ncn_cv_OBJDUMP=$OBJDUMP
3850 # Extract the first word of "objdump
", so it can be a program name with args.
3851 set dummy objdump; ac_word=$2
3852 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3853 echo "configure
:3854: checking
for $ac_word" >&5
3854 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
3855 echo $ac_n "(cached
) $ac_c" 1>&6
3857 if test -n "$ncn_cv_OBJDUMP"; then
3858 ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test.
3860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3862 for ac_dir in $ac_dummy; do
3863 test -z "$ac_dir" && ac_dir=.
3864 if test -f $ac_dir/$ac_word; then
3865 ac_cv_prog_ncn_cv_OBJDUMP="objdump
"
3870 test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump
"
3873 ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP"
3874 if test -n "$ncn_cv_OBJDUMP"; then
3875 echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6
3877 echo "$ac_t""no
" 1>&6
3880 OBJDUMP=$ncn_cv_OBJDUMP
3882 OBJDUMP="${ncn_tool_prefix}objdump
"
3885 OBJDUMP="$ac_cv_prog_OBJDUMP"
3898 if test -n "$ncn_target_tool_prefix"; then
3899 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
3900 set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
3901 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3902 echo "configure
:3903: checking
for $ac_word" >&5
3903 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
3904 echo $ac_n "(cached
) $ac_c" 1>&6
3906 if test -n "$AR_FOR_TARGET"; then
3907 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
3909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3911 for ac_dir in $ac_dummy; do
3912 test -z "$ac_dir" && ac_dir=.
3913 if test -f $ac_dir/$ac_word; then
3914 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
3921 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
3922 if test -n "$AR_FOR_TARGET"; then
3923 echo "$ac_t""$AR_FOR_TARGET" 1>&6
3925 echo "$ac_t""no
" 1>&6
3929 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
3930 if test $build = $target ; then
3931 ncn_cv_AR_FOR_TARGET=$AR_FOR_TARGET
3932 # Extract the first word of "ar", so it can be a program name with args.
3933 set dummy ar; ac_word=$2
3934 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3935 echo "configure
:3936: checking
for $ac_word" >&5
3936 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR_FOR_TARGET'+set}'`\" = set"; then
3937 echo $ac_n "(cached
) $ac_c" 1>&6
3939 if test -n "$ncn_cv_AR_FOR_TARGET"; then
3940 ac_cv_prog_ncn_cv_AR_FOR_TARGET="$ncn_cv_AR_FOR_TARGET" # Let the user override the test.
3942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3944 for ac_dir in $ac_dummy; do
3945 test -z "$ac_dir" && ac_dir=.
3946 if test -f $ac_dir/$ac_word; then
3947 ac_cv_prog_ncn_cv_AR_FOR_TARGET="ar"
3952 test -z "$ac_cv_prog_ncn_cv_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_AR_FOR_TARGET="ar"
3955 ncn_cv_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_AR_FOR_TARGET"
3956 if test -n "$ncn_cv_AR_FOR_TARGET"; then
3957 echo "$ac_t""$ncn_cv_AR_FOR_TARGET" 1>&6
3959 echo "$ac_t""no
" 1>&6
3962 AR_FOR_TARGET=$ncn_cv_AR_FOR_TARGET
3964 AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
3967 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
3970 if test -n "$ncn_target_tool_prefix"; then
3971 # Extract the first word of "${ncn_target_tool_prefix}as
", so it can be a program name with args.
3972 set dummy ${ncn_target_tool_prefix}as; ac_word=$2
3973 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3974 echo "configure
:3975: checking
for $ac_word" >&5
3975 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
3976 echo $ac_n "(cached
) $ac_c" 1>&6
3978 if test -n "$AS_FOR_TARGET"; then
3979 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
3981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3983 for ac_dir in $ac_dummy; do
3984 test -z "$ac_dir" && ac_dir=.
3985 if test -f $ac_dir/$ac_word; then
3986 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}as
"
3993 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
3994 if test -n "$AS_FOR_TARGET"; then
3995 echo "$ac_t""$AS_FOR_TARGET" 1>&6
3997 echo "$ac_t""no
" 1>&6
4001 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
4002 if test $build = $target ; then
4003 ncn_cv_AS_FOR_TARGET=$AS_FOR_TARGET
4004 # Extract the first word of "as
", so it can be a program name with args.
4005 set dummy as; ac_word=$2
4006 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4007 echo "configure
:4008: checking
for $ac_word" >&5
4008 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS_FOR_TARGET'+set}'`\" = set"; then
4009 echo $ac_n "(cached
) $ac_c" 1>&6
4011 if test -n "$ncn_cv_AS_FOR_TARGET"; then
4012 ac_cv_prog_ncn_cv_AS_FOR_TARGET="$ncn_cv_AS_FOR_TARGET" # Let the user override the test.
4014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4016 for ac_dir in $ac_dummy; do
4017 test -z "$ac_dir" && ac_dir=.
4018 if test -f $ac_dir/$ac_word; then
4019 ac_cv_prog_ncn_cv_AS_FOR_TARGET="as
"
4024 test -z "$ac_cv_prog_ncn_cv_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_AS_FOR_TARGET="as
"
4027 ncn_cv_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_AS_FOR_TARGET"
4028 if test -n "$ncn_cv_AS_FOR_TARGET"; then
4029 echo "$ac_t""$ncn_cv_AS_FOR_TARGET" 1>&6
4031 echo "$ac_t""no
" 1>&6
4034 AS_FOR_TARGET=$ncn_cv_AS_FOR_TARGET
4036 AS_FOR_TARGET="${ncn_target_tool_prefix}as
"
4039 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4042 if test -n "$ncn_target_tool_prefix"; then
4043 # Extract the first word of "${ncn_target_tool_prefix}dlltool
", so it can be a program name with args.
4044 set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
4045 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4046 echo "configure
:4047: checking
for $ac_word" >&5
4047 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4048 echo $ac_n "(cached
) $ac_c" 1>&6
4050 if test -n "$DLLTOOL_FOR_TARGET"; then
4051 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4055 for ac_dir in $ac_dummy; do
4056 test -z "$ac_dir" && ac_dir=.
4057 if test -f $ac_dir/$ac_word; then
4058 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool
"
4065 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4066 if test -n "$DLLTOOL_FOR_TARGET"; then
4067 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4069 echo "$ac_t""no
" 1>&6
4073 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
4074 if test $build = $target ; then
4075 ncn_cv_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
4076 # Extract the first word of "dlltool
", so it can be a program name with args.
4077 set dummy dlltool; ac_word=$2
4078 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4079 echo "configure
:4080: checking
for $ac_word" >&5
4080 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4081 echo $ac_n "(cached
) $ac_c" 1>&6
4083 if test -n "$ncn_cv_DLLTOOL_FOR_TARGET"; then
4084 ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="$ncn_cv_DLLTOOL_FOR_TARGET" # Let the user override the test.
4086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4088 for ac_dir in $ac_dummy; do
4089 test -z "$ac_dir" && ac_dir=.
4090 if test -f $ac_dir/$ac_word; then
4091 ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="dlltool
"
4096 test -z "$ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="dlltool
"
4099 ncn_cv_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET"
4100 if test -n "$ncn_cv_DLLTOOL_FOR_TARGET"; then
4101 echo "$ac_t""$ncn_cv_DLLTOOL_FOR_TARGET" 1>&6
4103 echo "$ac_t""no
" 1>&6
4106 DLLTOOL_FOR_TARGET=$ncn_cv_DLLTOOL_FOR_TARGET
4108 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool
"
4111 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4114 if test -n "$ncn_target_tool_prefix"; then
4115 # Extract the first word of "${ncn_target_tool_prefix}ld
", so it can be a program name with args.
4116 set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
4117 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4118 echo "configure
:4119: checking
for $ac_word" >&5
4119 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
4120 echo $ac_n "(cached
) $ac_c" 1>&6
4122 if test -n "$LD_FOR_TARGET"; then
4123 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
4125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4127 for ac_dir in $ac_dummy; do
4128 test -z "$ac_dir" && ac_dir=.
4129 if test -f $ac_dir/$ac_word; then
4130 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}ld
"
4137 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4138 if test -n "$LD_FOR_TARGET"; then
4139 echo "$ac_t""$LD_FOR_TARGET" 1>&6
4141 echo "$ac_t""no
" 1>&6
4145 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
4146 if test $build = $target ; then
4147 ncn_cv_LD_FOR_TARGET=$LD_FOR_TARGET
4148 # Extract the first word of "ld
", so it can be a program name with args.
4149 set dummy ld; ac_word=$2
4150 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4151 echo "configure
:4152: checking
for $ac_word" >&5
4152 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD_FOR_TARGET'+set}'`\" = set"; then
4153 echo $ac_n "(cached
) $ac_c" 1>&6
4155 if test -n "$ncn_cv_LD_FOR_TARGET"; then
4156 ac_cv_prog_ncn_cv_LD_FOR_TARGET="$ncn_cv_LD_FOR_TARGET" # Let the user override the test.
4158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4160 for ac_dir in $ac_dummy; do
4161 test -z "$ac_dir" && ac_dir=.
4162 if test -f $ac_dir/$ac_word; then
4163 ac_cv_prog_ncn_cv_LD_FOR_TARGET="ld
"
4168 test -z "$ac_cv_prog_ncn_cv_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_LD_FOR_TARGET="ld
"
4171 ncn_cv_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_LD_FOR_TARGET"
4172 if test -n "$ncn_cv_LD_FOR_TARGET"; then
4173 echo "$ac_t""$ncn_cv_LD_FOR_TARGET" 1>&6
4175 echo "$ac_t""no
" 1>&6
4178 LD_FOR_TARGET=$ncn_cv_LD_FOR_TARGET
4180 LD_FOR_TARGET="${ncn_target_tool_prefix}ld
"
4183 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4186 if test -n "$ncn_target_tool_prefix"; then
4187 # Extract the first word of "${ncn_target_tool_prefix}nm
", so it can be a program name with args.
4188 set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
4189 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4190 echo "configure
:4191: checking
for $ac_word" >&5
4191 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
4192 echo $ac_n "(cached
) $ac_c" 1>&6
4194 if test -n "$NM_FOR_TARGET"; then
4195 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
4197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4199 for ac_dir in $ac_dummy; do
4200 test -z "$ac_dir" && ac_dir=.
4201 if test -f $ac_dir/$ac_word; then
4202 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}nm
"
4209 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
4210 if test -n "$NM_FOR_TARGET"; then
4211 echo "$ac_t""$NM_FOR_TARGET" 1>&6
4213 echo "$ac_t""no
" 1>&6
4217 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
4218 if test $build = $target ; then
4219 ncn_cv_NM_FOR_TARGET=$NM_FOR_TARGET
4220 # Extract the first word of "nm
", so it can be a program name with args.
4221 set dummy nm; ac_word=$2
4222 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4223 echo "configure
:4224: checking
for $ac_word" >&5
4224 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM_FOR_TARGET'+set}'`\" = set"; then
4225 echo $ac_n "(cached
) $ac_c" 1>&6
4227 if test -n "$ncn_cv_NM_FOR_TARGET"; then
4228 ac_cv_prog_ncn_cv_NM_FOR_TARGET="$ncn_cv_NM_FOR_TARGET" # Let the user override the test.
4230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4232 for ac_dir in $ac_dummy; do
4233 test -z "$ac_dir" && ac_dir=.
4234 if test -f $ac_dir/$ac_word; then
4235 ac_cv_prog_ncn_cv_NM_FOR_TARGET="nm
"
4240 test -z "$ac_cv_prog_ncn_cv_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_NM_FOR_TARGET="nm
"
4243 ncn_cv_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_NM_FOR_TARGET"
4244 if test -n "$ncn_cv_NM_FOR_TARGET"; then
4245 echo "$ac_t""$ncn_cv_NM_FOR_TARGET" 1>&6
4247 echo "$ac_t""no
" 1>&6
4250 NM_FOR_TARGET=$ncn_cv_NM_FOR_TARGET
4252 NM_FOR_TARGET="${ncn_target_tool_prefix}nm
"
4255 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
4258 if test -n "$ncn_target_tool_prefix"; then
4259 # Extract the first word of "${ncn_target_tool_prefix}ranlib
", so it can be a program name with args.
4260 set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
4261 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4262 echo "configure
:4263: checking
for $ac_word" >&5
4263 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4264 echo $ac_n "(cached
) $ac_c" 1>&6
4266 if test -n "$RANLIB_FOR_TARGET"; then
4267 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
4269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4271 for ac_dir in $ac_dummy; do
4272 test -z "$ac_dir" && ac_dir=.
4273 if test -f $ac_dir/$ac_word; then
4274 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib
"
4281 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
4282 if test -n "$RANLIB_FOR_TARGET"; then
4283 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
4285 echo "$ac_t""no
" 1>&6
4289 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
4290 if test $build = $target ; then
4291 ncn_cv_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
4292 # Extract the first word of "ranlib
", so it can be a program name with args.
4293 set dummy ranlib; ac_word=$2
4294 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4295 echo "configure
:4296: checking
for $ac_word" >&5
4296 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4297 echo $ac_n "(cached
) $ac_c" 1>&6
4299 if test -n "$ncn_cv_RANLIB_FOR_TARGET"; then
4300 ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET="$ncn_cv_RANLIB_FOR_TARGET" # Let the user override the test.
4302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4304 for ac_dir in $ac_dummy; do
4305 test -z "$ac_dir" && ac_dir=.
4306 if test -f $ac_dir/$ac_word; then
4307 ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET="ranlib
"
4312 test -z "$ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET=":"
4315 ncn_cv_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET"
4316 if test -n "$ncn_cv_RANLIB_FOR_TARGET"; then
4317 echo "$ac_t""$ncn_cv_RANLIB_FOR_TARGET" 1>&6
4319 echo "$ac_t""no
" 1>&6
4322 RANLIB_FOR_TARGET=$ncn_cv_RANLIB_FOR_TARGET
4324 RANLIB_FOR_TARGET=":"
4327 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
4330 if test -n "$ncn_target_tool_prefix"; then
4331 # Extract the first word of "${ncn_target_tool_prefix}windres
", so it can be a program name with args.
4332 set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
4333 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4334 echo "configure
:4335: checking
for $ac_word" >&5
4335 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4336 echo $ac_n "(cached
) $ac_c" 1>&6
4338 if test -n "$WINDRES_FOR_TARGET"; then
4339 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
4341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4343 for ac_dir in $ac_dummy; do
4344 test -z "$ac_dir" && ac_dir=.
4345 if test -f $ac_dir/$ac_word; then
4346 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres
"
4353 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
4354 if test -n "$WINDRES_FOR_TARGET"; then
4355 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
4357 echo "$ac_t""no
" 1>&6
4361 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
4362 if test $build = $target ; then
4363 ncn_cv_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
4364 # Extract the first word of "windres
", so it can be a program name with args.
4365 set dummy windres; ac_word=$2
4366 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4367 echo "configure
:4368: checking
for $ac_word" >&5
4368 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4369 echo $ac_n "(cached
) $ac_c" 1>&6
4371 if test -n "$ncn_cv_WINDRES_FOR_TARGET"; then
4372 ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="$ncn_cv_WINDRES_FOR_TARGET" # Let the user override the test.
4374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4376 for ac_dir in $ac_dummy; do
4377 test -z "$ac_dir" && ac_dir=.
4378 if test -f $ac_dir/$ac_word; then
4379 ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="windres
"
4384 test -z "$ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="windres
"
4387 ncn_cv_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET"
4388 if test -n "$ncn_cv_WINDRES_FOR_TARGET"; then
4389 echo "$ac_t""$ncn_cv_WINDRES_FOR_TARGET" 1>&6
4391 echo "$ac_t""no
" 1>&6
4394 WINDRES_FOR_TARGET=$ncn_cv_WINDRES_FOR_TARGET
4396 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres
"
4399 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
4412 # Fix up target tools.
4413 if test "x
${build}" = "x
${host}" ; then
4414 # In this case, the newly built tools can and should be used,
4415 # so we override the results of the autoconf tests.
4416 # This should really only happen when the tools are actually being built,
4417 # but that's a further refinement. The new build scheme, where
4418 # tools are built into a structure paralleling where they're installed,
4419 # should also eliminate all of this cleanly.
4420 AR_FOR_TARGET="\$
(USUAL_AR_FOR_TARGET
)"
4421 AS_FOR_TARGET="\$
(USUAL_AS_FOR_TARGET
)"
4422 DLLTOOL_FOR_TARGET="\$
(USUAL_DLLTOOL_FOR_TARGET
)"
4423 LD_FOR_TARGET="\$
(USUAL_LD_FOR_TARGET
)"
4424 NM_FOR_TARGET="\$
(USUAL_NM_FOR_TARGET
)"
4425 RANLIB_FOR_TARGET="\$
(USUAL_RANLIB_FOR_TARGET
)"
4426 WINDRES_FOR_TARGET="\$
(USUAL_WINDRES_FOR_TARGET
)"
4428 # Certain tools may need extra flags.
4429 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
4430 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
4431 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
4433 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
4434 echo "configure
:4435: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
4435 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4436 if test "${enable_maintainer_mode+set}" = set; then
4437 enableval="$enable_maintainer_mode"
4438 USE_MAINTAINER_MODE=$enableval
4440 USE_MAINTAINER_MODE=no
4443 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4446 if test "$USE_MAINTAINER_MODE" = yes; then
4447 MAINTAINER_MODE_TRUE=
4448 MAINTAINER_MODE_FALSE='#'
4450 MAINTAINER_MODE_TRUE='#'
4451 MAINTAINER_MODE_FALSE=
4453 MAINT=$MAINTAINER_MODE_TRUE
4455 # ---------------------
4456 # GCC bootstrap support
4457 # ---------------------
4459 # Stage specific cflags for build.
4464 yes) stage1_cflags="-g -Wa,-J" ;;
4465 *) stage1_cflags="-g -J" ;;
4468 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
4469 # sources; use -no-cpp-precomp to get to GNU cpp.
4470 # Apple's GCC has bugs in designated initializer handling, so disable
4472 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
4477 # Enable -Werror in bootstrap stage2 and later.
4478 # Change the default to "no
" on release branches.
4479 # Check whether --enable-werror or --disable-werror was given.
4480 if test "${enable_werror+set}" = set; then
4481 enableval="$enable_werror"
4487 case ${enable_error} in
4488 yes) WERROR=-Werror ;;
4494 cat > confcache <<\EOF
4495 # This file is a shell script that caches the results of configure
4496 # tests run on this system so they can be shared between configure
4497 # scripts and configure runs. It is not useful on other systems.
4498 # If it contains results you don't want to keep, you may remove or edit it.
4500 # By default, configure uses ./config.cache as the cache file,
4501 # creating it if it does not exist already. You can give configure
4502 # the --cache-file=FILE option to use a different cache file; that is
4503 # what configure does when it calls configure scripts in
4504 # subdirectories, so they share the cache.
4505 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4506 # config.status only pays attention to the cache file if you give it the
4507 # --recheck option to rerun configure.
4510 # The following way of writing the cache mishandles newlines in values,
4511 # but we know of no workaround that is simple, portable, and efficient.
4512 # So, don't put newlines in cache variables' values.
4513 # Ultrix sh set writes to stderr and can't be redirected directly,
4514 # and sets the high bit in the cache file unless we assign to the vars.
4516 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4518 # `set' does not quote correctly, so add quotes (double-quote substitution
4519 # turns \\\\ into \\, and sed turns \\ into \).
4521 -e "s
/'/'\\\\''/g
" \
4522 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
4525 # `set' quotes correctly as required by POSIX, so do not add quotes.
4526 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4529 if cmp -s $cache_file confcache; then
4532 if test -w $cache_file; then
4533 echo "updating cache
$cache_file"
4534 cat confcache > $cache_file
4536 echo "not updating unwritable cache
$cache_file"
4541 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4543 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
4544 # Let make expand exec_prefix.
4545 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
4547 # Any assignment to VPATH causes Sun make to only execute
4548 # the first set of double-colon rules, so remove it if not needed.
4549 # If there is a colon in the path, we need to keep it.
4550 if test "x
$srcdir" = x.; then
4551 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4554 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4556 # Transform confdefs.h into DEFS.
4557 # Protect against shell expansion while executing Makefile rules.
4558 # Protect against Makefile macro expansion.
4559 cat > conftest.defs <<\EOF
4560 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4561 s%[ `~#$^&*(){}\\|;'"<>?
]%\\&%g
4566 DEFS
=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4570 # Without the "./", some shells look in PATH for config.status.
4571 : ${CONFIG_STATUS=./config.status}
4573 echo creating
$CONFIG_STATUS
4574 rm -f $CONFIG_STATUS
4575 cat > $CONFIG_STATUS <<EOF
4577 # Generated automatically by configure.
4578 # Run this file to recreate the current configuration.
4579 # This directory was configured as follows,
4580 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4582 # $0 $ac_configure_args
4584 # Compiler output produced by configure, useful for debugging
4585 # configure, is in ./config.log if it exists.
4587 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4590 case "\$ac_option" in
4591 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4592 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4593 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4594 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4595 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4597 -help | --help | --hel | --he | --h)
4598 echo "\$ac_cs_usage"; exit 0 ;;
4599 *) echo "\$ac_cs_usage"; exit 1 ;;
4603 ac_given_srcdir=$srcdir
4604 ac_given_INSTALL="$INSTALL"
4606 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4608 cat >> $CONFIG_STATUS <<EOF
4610 # Protect against being on the right side of a sed subst in config.status.
4611 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4612 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4616 s%@CFLAGS@%$CFLAGS%g
4617 s%@CPPFLAGS@%$CPPFLAGS%g
4618 s%@CXXFLAGS@%$CXXFLAGS%g
4619 s%@FFLAGS@%$FFLAGS%g
4621 s%@LDFLAGS@%$LDFLAGS%g
4623 s%@exec_prefix@%$exec_prefix%g
4624 s%@prefix@%$prefix%g
4625 s%@program_transform_name@%$program_transform_name%g
4626 s%@bindir@%$bindir%g
4627 s%@sbindir@%$sbindir%g
4628 s%@libexecdir@%$libexecdir%g
4629 s%@datadir@%$datadir%g
4630 s%@sysconfdir@%$sysconfdir%g
4631 s%@sharedstatedir@%$sharedstatedir%g
4632 s%@localstatedir@%$localstatedir%g
4633 s%@libdir@%$libdir%g
4634 s%@includedir@%$includedir%g
4635 s%@oldincludedir@%$oldincludedir%g
4636 s%@infodir@%$infodir%g
4637 s%@mandir@%$mandir%g
4639 s%@host_alias@%$host_alias%g
4640 s%@host_cpu@%$host_cpu%g
4641 s%@host_vendor@%$host_vendor%g
4642 s%@host_os@%$host_os%g
4643 s%@target@%$target%g
4644 s%@target_alias@%$target_alias%g
4645 s%@target_cpu@%$target_cpu%g
4646 s%@target_vendor@%$target_vendor%g
4647 s%@target_os@%$target_os%g
4649 s%@build_alias@%$build_alias%g
4650 s%@build_cpu@%$build_cpu%g
4651 s%@build_vendor@%$build_vendor%g
4652 s%@build_os@%$build_os%g
4653 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4654 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4655 s%@INSTALL_DATA@%$INSTALL_DATA%g
4656 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
4657 s%@build_subdir@%$build_subdir%g
4658 s%@host_subdir@%$host_subdir%g
4659 s%@target_subdir@%$target_subdir%g
4661 s%@GNATBIND@%$GNATBIND%g
4662 s%@stage1_languages@%$stage1_languages%g
4663 s%@DEFAULT_YACC@%$DEFAULT_YACC%g
4664 s%@DEFAULT_M4@%$DEFAULT_M4%g
4665 s%@DEFAULT_LEX@%$DEFAULT_LEX%g
4666 /@maybe_dependencies@/r $maybe_dependencies
4667 s%@maybe_dependencies@%%g
4668 /@serialization_dependencies@/r $serialization_dependencies
4669 s%@serialization_dependencies@%%g
4670 /@host_makefile_frag@/r $host_makefile_frag
4671 s%@host_makefile_frag@%%g
4672 /@target_makefile_frag@/r $target_makefile_frag
4673 s%@target_makefile_frag@%%g
4674 /@alphaieee_frag@/r $alphaieee_frag
4675 s%@alphaieee_frag@%%g
4676 /@ospace_frag@/r $ospace_frag
4678 s%@SET_LIB_PATH@%$SET_LIB_PATH%g
4679 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
4680 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
4681 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
4682 s%@gcc_version_trigger@%$gcc_version_trigger%g
4683 s%@gcc_version@%$gcc_version%g
4684 s%@tooldir@%$tooldir%g
4685 s%@build_tooldir@%$build_tooldir%g
4686 s%@GDB_TK@%$GDB_TK%g
4687 s%@gxx_include_dir@%$gxx_include_dir%g
4688 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
4689 s%@build_configargs@%$build_configargs%g
4690 s%@configure_build_modules@%$configure_build_modules%g
4691 s%@all_build_modules@%$all_build_modules%g
4692 s%@host_configargs@%$host_configargs%g
4693 s%@configdirs@%$configdirs%g
4694 s%@target_configargs@%$target_configargs%g
4695 s%@target_configdirs@%$target_configdirs%g
4697 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4699 s%@MAKEINFO@%$MAKEINFO%g
4701 s%@config_shell@%$config_shell%g
4703 s%@ncn_cv_AR@%$ncn_cv_AR%g
4705 s%@ncn_cv_AS@%$ncn_cv_AS%g
4706 s%@DLLTOOL@%$DLLTOOL%g
4707 s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g
4709 s%@ncn_cv_LD@%$ncn_cv_LD%g
4711 s%@ncn_cv_NM@%$ncn_cv_NM%g
4712 s%@RANLIB@%$RANLIB%g
4713 s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g
4714 s%@WINDRES@%$WINDRES%g
4715 s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g
4716 s%@OBJCOPY@%$OBJCOPY%g
4717 s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g
4718 s%@OBJDUMP@%$OBJDUMP%g
4719 s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g
4721 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
4722 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
4723 s%@ncn_cv_AR_FOR_TARGET@%$ncn_cv_AR_FOR_TARGET%g
4724 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
4725 s%@ncn_cv_AS_FOR_TARGET@%$ncn_cv_AS_FOR_TARGET%g
4726 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
4727 s%@ncn_cv_DLLTOOL_FOR_TARGET@%$ncn_cv_DLLTOOL_FOR_TARGET%g
4728 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
4729 s%@ncn_cv_LD_FOR_TARGET@%$ncn_cv_LD_FOR_TARGET%g
4730 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
4731 s%@ncn_cv_NM_FOR_TARGET@%$ncn_cv_NM_FOR_TARGET%g
4732 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
4733 s%@ncn_cv_RANLIB_FOR_TARGET@%$ncn_cv_RANLIB_FOR_TARGET%g
4734 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
4735 s%@ncn_cv_WINDRES_FOR_TARGET@%$ncn_cv_WINDRES_FOR_TARGET%g
4736 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
4737 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
4738 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
4739 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
4740 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
4741 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
4742 s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4743 s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4744 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4745 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4747 s%@stage1_cflags@%$stage1_cflags%g
4748 s%@WERROR@%$WERROR%g
4753 cat >> $CONFIG_STATUS <<\EOF
4755 # Split the substitutions into bite-sized pieces for seds with
4756 # small command number limits, like on Digital OSF/1 and HP-UX.
4757 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4758 ac_file
=1 # Number of current file.
4759 ac_beg
=1 # First line for current file.
4760 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4763 while $ac_more_lines; do
4764 if test $ac_beg -gt 1; then
4765 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4767 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4769 if test ! -s conftest.s
$ac_file; then
4771 rm -f conftest.s
$ac_file
4773 if test -z "$ac_sed_cmds"; then
4774 ac_sed_cmds
="sed -f conftest.s$ac_file"
4776 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4778 ac_file
=`expr $ac_file + 1`
4780 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4783 if test -z "$ac_sed_cmds"; then
4788 cat >> $CONFIG_STATUS <<EOF
4790 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4792 cat >> $CONFIG_STATUS <<\EOF
4793 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4794 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4796 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4797 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4798 *) ac_file_in
="${ac_file}.in" ;;
4801 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4803 # Remove last slash and all that follows it. Not all systems have dirname.
4804 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4805 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4806 # The file is in a subdirectory.
4807 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4808 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4809 # A "../" for each directory in $ac_dir_suffix.
4810 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4812 ac_dir_suffix
= ac_dots
=
4815 case "$ac_given_srcdir" in
4817 if test -z "$ac_dots"; then top_srcdir
=.
4818 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4819 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4821 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4822 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4825 case "$ac_given_INSTALL" in
4826 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4827 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4830 echo creating
"$ac_file"
4832 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4834 *Makefile
*) ac_comsub
="1i\\
4835 # $configure_input" ;;
4839 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4841 s%@configure_input@%$configure_input%g
4842 s%@srcdir@%$srcdir%g
4843 s%@top_srcdir@%$top_srcdir%g
4844 s%@INSTALL@%$INSTALL%g
4845 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4850 cat >> $CONFIG_STATUS <<EOF
4853 cat >> $CONFIG_STATUS <<\EOF
4857 chmod +x
$CONFIG_STATUS
4858 rm -fr confdefs
* $ac_clean_files
4859 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1