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 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
29 cache_file=./config.cache
38 program_transform_name=s,x,x,
46 bindir='${exec_prefix}/bin'
47 sbindir='${exec_prefix}/sbin'
48 libexecdir='${exec_prefix}/libexec'
49 datadir='${prefix}/share'
50 sysconfdir='${prefix}/etc'
51 sharedstatedir='${prefix}/com'
52 localstatedir='${prefix}/var'
53 libdir='${exec_prefix}/lib'
54 includedir='${prefix}/include'
55 oldincludedir='/usr/include'
56 infodir='${prefix}/info'
57 mandir='${prefix}/man'
59 # Initialize some other variables.
62 SHELL=${CONFIG_SHELL-/bin/sh}
63 # Maximum number of lines to put in a shell here document.
70 # If the previous option needs an argument, assign it.
71 if test -n "$ac_prev"; then
72 eval "$ac_prev=\$ac_option"
78 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 # Accept the important Cygnus configure options, so we can diagnose typos.
86 -bindir | --bindir | --bindi | --bind | --bin | --bi)
88 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89 bindir="$ac_optarg" ;;
91 -build | --build | --buil | --bui | --bu)
93 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96 -cache-file | --cache-file | --cache-fil | --cache-fi \
97 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
99 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101 cache_file="$ac_optarg" ;;
103 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
105 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
107 datadir="$ac_optarg" ;;
109 -disable-* | --disable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 eval "enable_${ac_feature}=no" ;;
118 -enable-* | --enable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}='$ac_optarg'" ;;
131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133 | --exec | --exe | --ex)
134 ac_prev=exec_prefix ;;
135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137 | --exec=* | --exe=* | --ex=*)
138 exec_prefix="$ac_optarg" ;;
140 -gas | --gas | --ga | --g)
141 # Obsolete; use --with-gas.
144 -help | --help | --hel | --he)
145 # Omit some internal or obsolete options to make the list less imposing.
146 # This message is too long to be a string in the A/UX 3.1 sh.
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
151 --cache-file=FILE cache test results in FILE
152 --help print this message
153 --no-create do not create output files
154 --quiet, --silent do not print \`checking...' messages
155 --version print the version of autoconf that created configure
156 Directory and file names:
157 --prefix=PREFIX install architecture-independent files in PREFIX
159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
161 --bindir=DIR user executables in DIR [EPREFIX/bin]
162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
164 --datadir=DIR read-only architecture-independent data in DIR
166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
167 --sharedstatedir=DIR modifiable architecture-independent data in DIR
169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
170 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
171 --includedir=DIR C header files in DIR [PREFIX/include]
172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
173 --infodir=DIR info documentation in DIR [PREFIX/info]
174 --mandir=DIR man documentation in DIR [PREFIX/man]
175 --srcdir=DIR find the sources in DIR [configure dir or ..]
176 --program-prefix=PREFIX prepend PREFIX to installed program names
177 --program-suffix=SUFFIX append SUFFIX to installed program names
178 --program-transform-name=PROGRAM
179 run sed PROGRAM on installed program names
183 --build=BUILD configure for building on BUILD [BUILD=HOST]
184 --host=HOST configure for HOST [guessed]
185 --target=TARGET configure for TARGET [TARGET=HOST]
186 Features and packages:
187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
191 --x-includes=DIR X include files are in DIR
192 --x-libraries=DIR X library files are in DIR
194 if test -n "$ac_help"; then
195 echo "--enable and --with options recognized:$ac_help"
199 -host | --host | --hos | --ho)
201 -host=* | --host=* | --hos=* | --ho=*)
204 -includedir | --includedir | --includedi | --included | --include \
205 | --includ | --inclu | --incl | --inc)
206 ac_prev=includedir ;;
207 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
208 | --includ=* | --inclu=* | --incl=* | --inc=*)
209 includedir="$ac_optarg" ;;
211 -infodir | --infodir | --infodi | --infod | --info | --inf)
213 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214 infodir="$ac_optarg" ;;
216 -libdir | --libdir | --libdi | --libd)
218 -libdir=* | --libdir=* | --libdi=* | --libd=*)
219 libdir="$ac_optarg" ;;
221 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
222 | --libexe | --libex | --libe)
223 ac_prev=libexecdir ;;
224 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
225 | --libexe=* | --libex=* | --libe=*)
226 libexecdir="$ac_optarg" ;;
228 -localstatedir | --localstatedir | --localstatedi | --localstated \
229 | --localstate | --localstat | --localsta | --localst \
230 | --locals | --local | --loca | --loc | --lo)
231 ac_prev=localstatedir ;;
232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
233 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
234 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
235 localstatedir="$ac_optarg" ;;
237 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240 mandir="$ac_optarg" ;;
243 # Obsolete; use --without-fp.
246 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
255 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
256 | --oldin | --oldi | --old | --ol | --o)
257 ac_prev=oldincludedir ;;
258 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
259 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
260 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
261 oldincludedir="$ac_optarg" ;;
263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266 prefix="$ac_optarg" ;;
268 -program-prefix | --program-prefix | --program-prefi | --program-pref \
269 | --program-pre | --program-pr | --program-p)
270 ac_prev=program_prefix ;;
271 -program-prefix=* | --program-prefix=* | --program-prefi=* \
272 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
273 program_prefix="$ac_optarg" ;;
275 -program-suffix | --program-suffix | --program-suffi | --program-suff \
276 | --program-suf | --program-su | --program-s)
277 ac_prev=program_suffix ;;
278 -program-suffix=* | --program-suffix=* | --program-suffi=* \
279 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
280 program_suffix="$ac_optarg" ;;
282 -program-transform-name | --program-transform-name \
283 | --program-transform-nam | --program-transform-na \
284 | --program-transform-n | --program-transform- \
285 | --program-transform | --program-transfor \
286 | --program-transfo | --program-transf \
287 | --program-trans | --program-tran \
288 | --progr-tra | --program-tr | --program-t)
289 ac_prev=program_transform_name ;;
290 -program-transform-name=* | --program-transform-name=* \
291 | --program-transform-nam=* | --program-transform-na=* \
292 | --program-transform-n=* | --program-transform-=* \
293 | --program-transform=* | --program-transfor=* \
294 | --program-transfo=* | --program-transf=* \
295 | --program-trans=* | --program-tran=* \
296 | --progr-tra=* | --program-tr=* | --program-t=*)
297 program_transform_name="$ac_optarg" ;;
299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300 | -silent | --silent | --silen | --sile | --sil)
303 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
307 sbindir="$ac_optarg" ;;
309 -sharedstatedir | --sharedstatedir | --sharedstatedi \
310 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311 | --sharedst | --shareds | --shared | --share | --shar \
313 ac_prev=sharedstatedir ;;
314 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
318 sharedstatedir="$ac_optarg" ;;
320 -site | --site | --sit)
322 -site=* | --site=* | --sit=*)
325 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
327 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
328 srcdir="$ac_optarg" ;;
330 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
331 | --syscon | --sysco | --sysc | --sys | --sy)
332 ac_prev=sysconfdir ;;
333 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
334 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
335 sysconfdir="$ac_optarg" ;;
337 -target | --target | --targe | --targ | --tar | --ta | --t)
339 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
340 target="$ac_optarg" ;;
342 -v | -verbose | --verbose | --verbos | --verbo | --verb)
345 -version | --version | --versio | --versi | --vers)
346 echo "configure generated by autoconf version 2.13"
350 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351 # Reject names that are not valid shell variable names.
352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
355 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}='$ac_optarg'" ;;
362 -without-* | --without-*)
363 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}=no" ;;
372 # Obsolete; use --with-x.
375 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
376 | --x-incl | --x-inc | --x-in | --x-i)
377 ac_prev=x_includes ;;
378 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
379 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
380 x_includes="$ac_optarg" ;;
382 -x-libraries | --x-libraries | --x-librarie | --x-librari \
383 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
384 ac_prev=x_libraries ;;
385 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
386 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
387 x_libraries="$ac_optarg" ;;
389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394 echo "configure: warning: $ac_option: invalid host type" 1>&2
396 if test "x$nonopt" != xNONE; then
397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405 if test -n "$ac_prev"; then
406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
411 # File descriptor usage:
414 # 2 errors and warnings
415 # 3 some systems may open it to /dev/tty
416 # 4 used on the Kubota Titan
417 # 6 checking for... messages and results
418 # 5 compiler messages saved in config.log
419 if test "$silent" = yes; then
427 This file contains any messages produced by compilers while
428 running configure, to aid debugging if configure makes a mistake.
431 # Strip out --no-create and --no-recursion so they do not pile up.
432 # Also quote any args containing shell metacharacters.
437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
438 | --no-cr | --no-c) ;;
439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
443 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
448 # Only set these to C if already set. These must not be set unconditionally
449 # because not all systems understand e.g. LANG=C (notably SCO).
450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451 # Non-C LC_CTYPE values break the ctype check.
452 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
453 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
455 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
458 rm -rf conftest* confdefs.h
459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462 # A filename unique to this package, relative to the directory that
463 # configure is in, which we can look for to find out if srcdir is correct.
464 ac_unique_file=move-if-change
466 # Find the source files, if location was not specified.
467 if test -z "$srcdir"; then
468 ac_srcdir_defaulted=yes
469 # Try the directory containing this script, then its parent.
471 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
474 if test ! -r $srcdir/$ac_unique_file; then
478 ac_srcdir_defaulted=no
480 if test ! -r $srcdir/$ac_unique_file; then
481 if test "$ac_srcdir_defaulted" = yes; then
482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
489 # Prefer explicitly selected file to automatically selected ones.
490 if test -z "$CONFIG_SITE"; then
491 if test "x$prefix" != xNONE; then
492 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
494 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497 for ac_site_file in $CONFIG_SITE; do
498 if test -r "$ac_site_file"; then
499 echo "loading site script $ac_site_file"
504 if test -r "$cache_file"; then
505 echo "loading cache $cache_file"
508 echo "creating cache $cache_file"
513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514 ac_cpp='$CPP $CPPFLAGS'
515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517 cross_compiling=$ac_cv_prog_cc_cross
521 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
522 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
530 ac_n= ac_c='\c' ac_t=
536 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
537 if test -f $ac_dir/install-sh; then
539 ac_install_sh="$ac_aux_dir/install-sh -c"
541 elif test -f $ac_dir/install.sh; then
543 ac_install_sh="$ac_aux_dir/install.sh -c"
547 if test -z "$ac_aux_dir"; then
548 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
550 ac_config_guess=$ac_aux_dir/config.guess
551 ac_config_sub=$ac_aux_dir/config.sub
552 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
555 # Do some error checking and defaulting for the host and target type.
557 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
560 # 1. You are not allowed to specify --host, --target, and nonopt at the
562 # 2. Host defaults to nonopt.
563 # 3. If nonopt is not specified, then host defaults to the current host,
564 # as determined by config.guess.
565 # 4. Target and build default to nonopt.
566 # 5. If nonopt is not specified, then target and build default to host.
568 # The aliases save the names the user supplied, while $host etc.
569 # will get canonicalized.
570 case $host---$target---$nonopt in
571 NONE---*---* | *---NONE---* | *---*---NONE) ;;
572 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
576 # Make sure we can run config.sub.
577 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
578 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
581 echo $ac_n "checking host system type""... $ac_c" 1>&6
582 echo "configure:583: checking host system type" >&5
585 case "$host_alias" in
589 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
590 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
592 *) host_alias=$nonopt ;;
596 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
597 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
598 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
599 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
600 echo "$ac_t""$host" 1>&6
602 echo $ac_n "checking target system type""... $ac_c" 1>&6
603 echo "configure:604: checking target system type" >&5
606 case "$target_alias" in
609 NONE) target_alias=$host_alias ;;
610 *) target_alias=$nonopt ;;
614 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
615 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
616 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
617 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
618 echo "$ac_t""$target" 1>&6
620 echo $ac_n "checking build system type""... $ac_c" 1>&6
621 echo "configure:622: checking build system type" >&5
624 case "$build_alias" in
627 NONE) build_alias=$host_alias ;;
628 *) build_alias=$nonopt ;;
632 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
633 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
634 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
635 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
636 echo "$ac_t""$build" 1>&6
638 test "$host_alias" != "$target_alias" &&
639 test "$program_prefix$program_suffix$program_transform_name" = \
641 program_prefix=${target_alias}-
643 if test "$program_transform_name" = s,x,x,; then
644 program_transform_name=
646 # Double any \ or $. echo might interpret backslashes.
647 cat <<\EOF_SED > conftestsed
648 s,\\,\\\\,g; s,\$,$$,g
650 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
653 test "$program_prefix" != NONE &&
654 program_transform_name="s,^,${program_prefix},; $program_transform_name"
655 # Use a double $ so make ignores it.
656 test "$program_suffix" != NONE &&
657 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
659 # sed with no file args requires a program.
660 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
663 # Get 'install' or 'install-sh' and its variants.
664 # Find a good install program. We prefer a C program (faster),
665 # so one script is as good as another. But avoid the broken or
666 # incompatible versions:
667 # SysV /etc/install, /usr/sbin/install
668 # SunOS /usr/etc/install
671 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
672 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
673 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
674 # ./install, which can be erroneously created by make from ./install.sh.
675 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
676 echo "configure:677: checking for a BSD compatible install" >&5
677 if test -z "$INSTALL"; then
678 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
679 echo $ac_n "(cached) $ac_c" 1>&6
681 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
682 for ac_dir in $PATH; do
683 # Account for people who put trailing slashes in PATH elements.
685 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
687 # OSF1 and SCO ODT 3.0 have their own names for install.
688 # Don't use installbsd from OSF since it installs stuff as root
690 for ac_prog in ginstall scoinst install; do
691 if test -f $ac_dir/$ac_prog; then
692 if test $ac_prog = install &&
693 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
694 # AIX install. It has an incompatible calling convention.
697 ac_cv_path_install="$ac_dir/$ac_prog -c"
708 if test "${ac_cv_path_install+set}" = set; then
709 INSTALL="$ac_cv_path_install"
711 # As a last resort, use the slow shell script. We don't cache a
712 # path for INSTALL within a source directory, because that will
713 # break other packages using the cache if that directory is
714 # removed, or if the path is relative.
715 INSTALL="$ac_install_sh"
718 echo "$ac_t""$INSTALL" 1>&6
720 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
721 # It thinks the first close brace ends the variable substitution.
722 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
724 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
726 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
729 # Autoconf M4 include file defining utility macros for complex Canadian
738 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
740 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
743 # NCN_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
744 # Like AC_CHECK_TOOL, but tries a prefix of the target, not the host.
745 # Code is pretty much lifted from autoconf2.53.
750 # NCN_STRICT_CHECK_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
751 # Like AC_CHECK_TOOL, but requires the prefix if build!=host.
756 # NCN_STRICT_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
757 # Like NCN_CHECK_TARGET_TOOL, but requires the prefix if build!=target.
762 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
763 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
764 # For now, using this also overrides header checks to use only the
765 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
766 # bit harder from here).
767 # Eventually autoconf will default to checking headers with the compiler
768 # instead, and we'll have to do this differently.
773 # We require the gnatbind program, and a compiler driver that
774 # understands Ada. We use the user's CC setting, already found.
776 # Sets the shell variable have_gnat to yes or no as appropriate, and
777 # substitutes GNATBIND.
781 ### we might need to use some other shell than /bin/sh for running subshells
782 ### If we are on Windows, search for the shell. This will permit people
783 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
784 ### without also having to set CONFIG_SHELL. This code will work when
785 ### using bash, which sets OSTYPE.
788 if test x${CONFIG_SHELL} = x ; then
789 if test ! -f /bin/sh ; then
790 if test x${SHELL} != x && test -f ${SHELL} ; then
791 CONFIG_SHELL=${SHELL}
794 for prog in sh sh.exe bash bash.exe; do
795 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
797 test -z "$dir" && dir=.
798 if test -f $dir/$prog; then
799 CONFIG_SHELL=$dir/$prog
805 test -n "${CONFIG_SHELL}" && break
813 config_shell=${CONFIG_SHELL-/bin/sh}
816 # if PWD already has a value, it is probably wrong.
817 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
819 # Export original configure arguments for use by sub-configures. These
820 # will be expanded by make, so quote '$'.
822 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
825 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
826 rm -f conftestsed.out
829 moveifchange=${srcdir}/move-if-change
831 # Set srcdir to "." if that's what it is.
832 # This is important for multilib support.
834 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
835 if test "${pwd}" = "${srcpwd}" ; then
842 # Define the trigger file to make sure configure will re-run whenever
843 # the gcc version number changes.
844 if test "${with_gcc_version_trigger+set}" = set ; then
845 gcc_version_trigger="$with_gcc_version_trigger"
846 gcc_version=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
848 # If gcc's sources are available, define the trigger file.
849 if test -f ${topsrcdir}/gcc/version.c ; then
850 gcc_version_trigger=${topsrcdir}/gcc/version.c
851 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
852 case "$ac_configure_args" in
853 *--with-gcc-version-trigger=$gcc_version_trigger* )
856 # Add to all subconfigure arguments: build, host, and target.
857 ac_configure_args="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger"
863 ### To add a new directory to the tree, first choose whether it is a target
864 ### or a host dependent tool. Then put it into the appropriate list
865 ### (library or tools, host or target), doing a dependency sort.
867 # Subdirs will be configured in the order listed in build_configdirs,
868 # configdirs, or target_configdirs; see the serialization section below.
870 # Dependency sorting is only needed when *configuration* must be done in
871 # a particular order. In all cases a dependency should be specified in
872 # the Makefile, whether or not it's implicitly specified here.
874 # Double entries in build_configdirs, configdirs, or target_configdirs may
875 # cause circular dependencies and break everything horribly.
877 # these libraries are used by various programs built for the host environment
879 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib"
881 # these tools are built for the host environment
882 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
883 # know that we are building the simulator.
884 # binutils, gas and ld appear in that order because it makes sense to run
885 # "make check" in that particular order.
886 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"
888 # libgcj represents the runtime libraries only used by gcj.
889 libgcj="target-libffi \
895 # these libraries are built for the target environment, and are built after
896 # the host libraries and the host tools (which may be a cross compiler)
898 target_libraries="target-libiberty \
901 target-libstdc++-v3 \
907 # these tools are built using the target libraries, and are intended to
908 # run only in the target environment
910 # note: any program that *uses* libraries that are in the "target_libraries"
911 # list belongs in this list. those programs are also very likely
912 # candidates for the "native_only" list which follows
914 target_tools="target-examples target-groff target-gperf target-rda"
916 ################################################################################
918 ## All tools belong in one of the four categories, and are assigned above
919 ## We assign ${configdirs} this way to remove all embedded newlines. This
920 ## is important because configure will choke if they ever get through.
921 ## ${configdirs} is directories we build using the host tools.
922 ## ${target_configdirs} is directories we build using the target tools.
924 configdirs=`echo ${host_libs} ${host_tools}`
925 target_configdirs=`echo ${target_libraries} ${target_tools}`
927 # Only make build modules if build != host.
928 # This should be done more generally, but at the moment it doesn't matter.
929 if test ${host_alias} != ${build_alias} ; then
930 # This is the only build module.
931 build_modules=libiberty
937 ################################################################################
939 srcname="gnu development package"
941 # This gets set non-empty for some net releases of packages.
944 # Define is_cross_compiler to save on calls to 'test'.
946 if test x"${host}" = x"${target}" ; then
949 is_cross_compiler=yes
952 # Find the build and target subdir names.
953 case ${build_alias} in
954 "") build_noncanonical=${build} ;;
955 *) build_noncanonical=${build_alias} ;;
958 case ${host_alias} in
959 "") host_noncanonical=${build_noncanonical} ;;
960 *) host_noncanonical=${host_alias} ;;
963 case ${target_alias} in
964 "") target_noncanonical=${host_noncanonical} ;;
965 *) target_noncanonical=${target_alias} ;;
968 # Prefix 'build-' so this never conflicts with target_subdir.
969 build_subdir="build-${build_noncanonical}"
970 # Not really a subdirectory, but here for completeness.
973 target_subdir=${target_noncanonical}
976 # Skipdirs are removed silently.
978 # Noconfigdirs are removed loudly.
982 # Make sure we don't let GNU ld be added if we didn't want it.
983 if test x$with_gnu_ld = xno ; then
985 noconfigdirs="$noconfigdirs ld"
989 # Make sure we don't let GNU as be added if we didn't want it.
990 if test x$with_gnu_as = xno ; then
992 noconfigdirs="$noconfigdirs gas"
995 # some tools are so dependent upon X11 that if we're not building with X,
996 # it's not even worth trying to configure, much less build, that tool.
999 yes | "") ;; # the default value for this tree is that X11 is available
1001 skipdirs="${skipdirs} tk tix itcl libgui"
1002 # We won't be able to build gdbtk without X.
1005 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1008 # Some tools are only suitable for building in a "native" situation.
1009 # Remove these if host!=target.
1010 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"
1012 # Similarly, some are only suitable for cross toolchains.
1013 # Remove these if host=target.
1014 cross_only="target-libgloss target-newlib target-opcodes"
1016 case $is_cross_compiler in
1017 no) skipdirs="${skipdirs} ${cross_only}" ;;
1018 yes) skipdirs="${skipdirs} ${native_only}" ;;
1021 # If both --with-headers and --with-libs are specified, default to
1023 if test x"${with_headers}" != x && test x"${with_headers} != xno \
1024 && test x"${with_libs}" != x && test x"${with_libs} != xno ; then
1025 if test x"${with_newlib}" = x ; then
1030 # Recognize --with-newlib/--without-newlib.
1031 case ${with_newlib} in
1032 no) skipdirs="${skipdirs} target-newlib" ;;
1033 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1036 # Configure extra directories which are host specific
1040 configdirs="$configdirs libtermcap" ;;
1043 # Remove more programs from consideration, based on the host or
1044 # target this usually means that a port of the program doesn't
1049 noconfigdirs="$noconfigdirs byacc"
1051 i[3456789]86-*-vsta)
1052 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix gnuserv gettext"
1054 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1055 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl tix gnuserv libffi"
1057 i[3456789]86-*-mingw32*)
1058 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix gnuserv"
1059 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1061 i[3456789]86-*-beos*)
1062 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb"
1065 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1068 noconfigdirs="$noconfigdirs rcs"
1071 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv"
1074 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline"
1077 noconfigdirs="$noconfigdirs tk itcl tix libgui"
1081 # Check whether --enable-libada or --disable-libada was given.
1082 if test "${enable_libada+set}" = set; then
1083 enableval="$enable_libada"
1084 ENABLE_LIBADA=$enableval
1089 if test "${ENABLE_LIBADA}" != "yes" ; then
1090 noconfigdirs="$noconfigdirs target-libada"
1093 # Save it here so that, even in case of --enable-libgcj, if the Java
1094 # front-end isn't enabled, we still get libgcj disabled.
1095 libgcj_saved=$libgcj
1096 case $enable_libgcj in
1098 # If we reset it here, it won't get added to noconfigdirs in the
1099 # target-specific build rules, so it will be forcibly enabled
1100 # (unless the Java language itself isn't enabled).
1104 # Make sure we get it printed in the list of not supported target libs.
1105 noconfigdirs="$noconfigdirs ${libgcj}"
1111 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1114 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1115 noconfigdirs="$noconfigdirs target-libobjc"
1118 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1119 noconfigdirs="$noconfigdirs target-libobjc ${libgcj}"
1121 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1122 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1125 # Remove unsupported stuff on all kaOS configurations.
1126 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-libf2c target-librx"
1127 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1128 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1129 noconfigdirs="$noconfigdirs target-libgloss"
1132 # Skip some stuff on all NetBSD configurations.
1133 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1135 # Skip some stuff that's unsupported on some NetBSD configurations.
1137 i*86-*-netbsdelf*) ;;
1138 arm*-*-netbsdelf*) ;;
1140 noconfigdirs="$noconfigdirs ${libgcj}"
1145 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}"
1148 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1150 h8300*-*-* | h8500-*-*)
1151 noconfigdirs="$noconfigdirs target-libf2c"
1157 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1160 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}"
1163 # ld works, but does not support shared libraries.
1164 # newlib is not 64 bit ready. I'm not sure about fileutils.
1165 # gas doesn't generate exception information.
1166 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1169 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1172 # newlib is not 64 bit ready
1173 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1175 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
1176 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1179 # newlib is not 64 bit ready
1180 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1183 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1186 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1188 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1189 noconfigdirs="$noconfigdirs ${libgcj}"
1190 noconfigdirs="$noconfigdirs target-examples"
1191 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1192 noconfigdirs="$noconfigdirs tcl tix tk itcl libgui sim"
1193 noconfigdirs="$noconfigdirs expect dejagnu"
1194 # the C++ libraries don't build on top of CE's C libraries
1195 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1196 noconfigdirs="$noconfigdirs target-newlib"
1198 *-*-cygwin*) ;; # keep gdb and readline
1199 *) noconfigdirs="$noconfigdirs gdb readline"
1204 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1206 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1207 noconfigdirs="$noconfigdirs ${libgcj}"
1209 arm-*-elf* | strongarm-*-elf* | xscale-*-elf*)
1210 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1213 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1216 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1219 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1222 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1225 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1228 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1231 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1234 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1236 c4x-*-* | tic4x-*-*)
1237 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1239 c54x*-*-* | tic54x-*-*)
1240 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1243 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1246 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1249 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1252 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1255 noconfigdirs="$noconfigdirs ${libgcj}"
1258 noconfigdirs="$noconfigdirs target-libgloss ${libgcj} target-libf2c"
1261 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} target-libf2c"
1263 hppa*64*-*-linux* | parisc*64*-*-linux*)
1264 # In this case, it's because the hppa64-linux target is for
1265 # the kernel only at this point and has no libc, and thus no
1266 # headers, crt*.o, etc., all of which are needed by these.
1267 noconfigdirs="$noconfigdirs target-zlib"
1270 parisc*-*-linux* | hppa*-*-linux* | \
1272 hppa*-*-openbsd* | \
1274 noconfigdirs="$noconfigdirs ${libgcj}"
1275 # Do configure ld/binutils/gas for this case.
1278 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1279 # build on HP-UX 10.20.
1280 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1283 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1286 # No gdb support yet.
1287 noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb"
1290 # No gdb or ld support yet.
1291 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
1293 i[3456789]86-*-coff | i[3456789]86-*-elf)
1294 noconfigdirs="$noconfigdirs ${libgcj}"
1296 i[3456789]86-*-freebsd* | i[3456789]86-*-kfreebsd*-gnu)
1297 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1299 i[3456789]86-*-linux*)
1300 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1301 # not build java stuff by default.
1304 noconfigdirs="$noconfigdirs ${libgcj}";;
1307 # This section makes it possible to build newlib natively on linux.
1308 # If we are using a cross compiler then don't configure newlib.
1309 if test x${is_cross_compiler} != xno ; then
1310 noconfigdirs="$noconfigdirs target-newlib"
1312 noconfigdirs="$noconfigdirs target-libgloss"
1313 # If we are not using a cross compiler, do configure newlib.
1314 # Note however, that newlib will only be configured in this situation
1315 # if the --with-newlib option has been given, because otherwise
1316 # 'target-newlib' will appear in skipdirs.
1318 i[3456789]86-*-mingw32*)
1319 target_configdirs="$target_configdirs target-mingw"
1320 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1322 # Can't build gdb for mingw32 if not native.
1324 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1325 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix gnuserv"
1330 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1331 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1332 # always build newlib.
1333 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1335 # Can't build gdb for Cygwin if not native.
1337 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1338 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix libgui gnuserv"
1343 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1345 i[3456789]86-*-sco3.2v5*)
1346 # The linker does not yet know about weak symbols in COFF,
1347 # and is not configured to handle mixed ELF and COFF.
1348 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1350 i[3456789]86-*-sco*)
1351 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1353 i[3456789]86-*-solaris2*)
1354 noconfigdirs="$noconfigdirs target-libgloss"
1356 i[3456789]86-*-sysv4*)
1357 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1359 i[3456789]86-*-beos*)
1360 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1363 noconfigdirs="$noconfigdirs ${libgcj}"
1365 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1366 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1369 noconfigdirs="$noconfigdirs ${libgcj}"
1372 noconfigdirs="$noconfigdirs ${libgcj}"
1375 # The EPOC C++ environment does not support exceptions or rtti,
1376 # and so building libstdc++-v3 tends not to always work.
1377 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1380 noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss"
1383 noconfigdirs="$noconfigdirs ${libgcj}"
1386 noconfigdirs="$noconfigdirs ${libgcj}"
1389 # copied from rs6000-*-* entry
1390 noconfigdirs="$noconfigdirs gprof target-libada target-libgloss ${libgcj}"
1392 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1393 target_configdirs="$target_configdirs target-winsup"
1394 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix gnuserv ${libgcj}"
1395 # always build newlib.
1396 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1398 # This is temporary until we can link against shared libraries
1399 powerpcle-*-solaris*)
1400 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl tix gnuserv ${libgcj}"
1403 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1406 noconfigdirs="$noconfigdirs ${libgcj}"
1409 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1412 noconfigdirs="$noconfigdirs gprof target-libada target-libgloss ${libgcj}"
1415 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1418 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1421 # The GNU linker does not support shared libraries.
1422 noconfigdirs="$noconfigdirs ld gprof target-libgloss ${libgcj}"
1425 # Linking libjava exceeds command-line length limits on at least
1426 # IRIX 6.2, but not on IRIX 6.5.
1427 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1428 # <oldham@codesourcery.com>
1429 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1432 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1435 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1438 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1441 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1444 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1447 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1450 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1454 i[3456789]86-*-vsta) ;; # don't add gprof back in
1455 i[3456789]86-*-go32*) ;; # don't add gprof back in
1456 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1457 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1459 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1462 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1465 noconfigdirs="$noconfigdirs ${libgcj}"
1468 noconfigdirs="$noconfigdirs ${libgcj}"
1471 noconfigdirs="$noconfigdirs ${libgcj}"
1474 noconfigdirs="$noconfigdirs ${libgcj}"
1475 if test x${is_cross_compiler} != xno ; then
1476 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1481 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1484 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1487 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1490 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1493 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1496 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1499 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1502 noconfigdirs="$noconfigdirs ${libgcj}"
1505 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1508 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1511 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1514 noconfigdirs="$noconfigdirs ${libgcj}"
1518 # If we aren't building newlib, then don't build libgloss, since libgloss
1519 # depends upon some newlib header files.
1520 case "${noconfigdirs}" in
1521 *target-libgloss*) ;;
1522 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1525 # Work in distributions that contain no compiler tools, like Autoconf.
1527 host_makefile_frag=/dev/null
1528 if test -d ${srcdir}/config ; then
1531 # Avoid "too much defining" errors from HPUX compiler.
1532 tentative_cc="cc -Wp,-H256000"
1533 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1534 # If it's HP/UX ar, this should be harmless.
1538 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1541 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1542 # chokes on bfd, the compiler won't let you assign integers to enums, and
1543 # other problems. Defining CC to gcc is a questionable way to say "don't use
1544 # the apollo compiler" (the preferred version of GCC could be called cc,
1545 # or whatever), but I'm not sure leaving CC as cc is any better...
1546 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1547 # Used to have BISON=yacc.
1551 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1554 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1555 tentative_cc="cc -Xa"
1556 host_makefile_frag="config/mh-cxux"
1558 m88k-motorola-sysv*)
1561 tentative_cc="cc -Wf,-XNg1000"
1562 host_makefile_frag="config/mh-decstation"
1565 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1566 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1567 host_makefile_frag="config/mh-necv4"
1570 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1571 # environment. Also bump switch table size so that cp-parse will
1572 # compile. Bump string length limit so linker builds.
1573 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1576 host_makefile_frag="config/mh-sysv4"
1579 # This is for a MIPS running RISC/os 4.52C.
1581 # This is needed for GDB, but needs to be in the top-level make because
1582 # if a library is compiled with the bsd headers and gets linked with the
1583 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1584 # a different size).
1585 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1586 # known except to select the sysv environment. Could we use /proc instead?
1587 # These "sysv environments" and "bsd environments" often end up being a pain.
1589 # This is not part of CFLAGS because perhaps not all C compilers have this
1591 tentative_cc="cc -systype sysv"
1596 i[3456789]86-*-sysv5*)
1597 host_makefile_frag="config/mh-sysv5"
1599 i[3456789]86-*-dgux*)
1600 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1601 host_makefile_frag="config/mh-dgux386"
1603 i[3456789]86-ncr-sysv4.3*)
1604 # The MetaWare compiler will generate a copyright message unless you
1605 # turn it off by adding the -Hnocopyr flag.
1606 tentative_cc="cc -Hnocopyr"
1608 i[3456789]86-ncr-sysv4*)
1609 # for an NCR 3000 (i486/SVR4) system.
1610 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1611 # This compiler not only emits obnoxious copyright messages every time
1612 # you run it, but it chokes and dies on a whole bunch of GNU source
1613 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1614 tentative_cc="/usr/ccs/ATT/cc"
1615 host_makefile_frag="config/mh-ncr3000"
1617 i[3456789]86-*-sco3.2v5*)
1619 i[3456789]86-*-sco*)
1620 # The native C compiler botches some simple uses of const. Unfortunately,
1621 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1622 tentative_cc="cc -Dconst="
1623 host_makefile_frag="config/mh-sco"
1625 i[3456789]86-*-udk*)
1626 host_makefile_frag="config/mh-sysv5"
1628 i[3456789]86-*-solaris2*)
1629 host_makefile_frag="config/mh-sysv4"
1631 i[3456789]86-*-msdosdjgpp*)
1632 host_makefile_frag="config/mh-djgpp"
1635 host_makefile_frag="config/mh-cygwin"
1638 host_makefile_frag="config/mh-mingw32"
1641 host_makefile_frag="config/mh-interix"
1644 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1648 host_makefile_frag="config/mh-solaris"
1651 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1652 # without overflowing the jump tables (-J says to use a 32 bit table)
1653 tentative_cc="cc -J"
1656 tentative_cc="cc -Wp,-H256000"
1659 tentative_cc="cc -Wp,-H256000"
1662 # /bin/cc is less than useful for our purposes. Always use GCC
1663 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1664 host_makefile_frag="config/mh-lynxrs6k"
1667 # /bin/cc is less than useful for our purposes. Always use GCC
1668 tentative_cc="/bin/gcc"
1671 host_makefile_frag="config/mh-sysv4"
1676 # If we aren't going to be using gcc, see if we can extract a definition
1677 # of CC from the fragment.
1678 # Actually, use the 'pre-extracted' version above.
1679 if test -z "${CC}" && test "${build}" = "${host}" ; then
1680 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1682 for dir in $PATH; do
1683 test -z "$dir" && dir=.
1684 if test -f $dir/gcc; then
1690 if test -z "${found}" && test -n "${tentative_cc}" ; then
1695 if test "${build}" != "${host}" ; then
1696 # If we are doing a Canadian Cross, in which the host and build systems
1697 # are not the same, we set reasonable default values for the tools.
1699 BISON=${BISON-bison}
1700 CC=${CC-${host_alias}-gcc}
1701 CFLAGS=${CFLAGS-"-g -O2"}
1702 CXX=${CXX-${host_alias}-c++}
1703 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1704 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1705 CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc}
1706 CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++}
1707 GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj}
1708 GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
1709 BUILD_PREFIX=${build_alias}-
1710 BUILD_PREFIX_1=${build_alias}-
1711 MAKEINFO=${MAKEINFO-makeinfo}
1713 if test -z "${YACC}" ; then
1714 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1715 for dir in $PATH; do
1716 test -z "$dir" && dir=.
1717 if test -f $dir/bison; then
1721 if test -f $dir/byacc; then
1725 if test -f $dir/yacc; then
1731 if test -z "${YACC}" ; then
1736 if test -z "${LEX}" ; then
1737 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1738 for dir in $PATH; do
1739 test -z "$dir" && dir=.
1740 if test -f $dir/flex; then
1744 if test -f $dir/lex; then
1754 # Set reasonable default values for some tools even if not Canadian.
1755 # Of course, these are different reasonable default values, originally
1756 # specified directly in the Makefile.
1757 # We don't export, so that autoconf can do its job.
1758 # Note that all these settings are above the fragment inclusion point
1759 # in Makefile.in, so can still be overridden by fragments.
1760 # This is all going to change when we autoconfiscate...
1762 BISON="\$(USUAL_BISON)"
1763 CC_FOR_BUILD="\$(CC)"
1764 GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
1766 BUILD_PREFIX_1=loser-
1767 MAKEINFO="\$(USUAL_MAKEINFO)"
1769 YACC="\$(USUAL_YACC)"
1771 # If CC is still not set, try to get gcc.
1773 if test -z "${CC}" ; then
1774 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1775 for dir in $PATH; do
1776 test -z "$dir" && dir=.
1777 if test -f $dir/gcc; then
1780 echo 'void f(){}' > conftest.c
1781 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1782 CFLAGS=${CFLAGS-"-g -O2"}
1783 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1785 CFLAGS=${CFLAGS-"-O2"}
1786 CXXFLAGS=${CXXFLAGS-"-O2"}
1795 # Determine if we are using gcc.
1796 cat > conftest.c <<EOF
1801 if ${CC} -E conftest.c | grep yes >/dev/null 2>&1; then
1805 if test -z "${CFLAGS}"; then
1806 # Here CC is set but CFLAGS is not. Use a quick hack to use -O2 if CC
1807 # is set to a version of gcc.
1808 if test "$cc_prog_is_gcc" = yes; then
1809 echo 'void f(){}' > conftest.c
1810 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1811 CFLAGS=${CFLAGS-"-g -O2"}
1812 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1814 CFLAGS=${CFLAGS-"-O2"}
1815 CXXFLAGS=${CXXFLAGS-"-O2"}
1822 # We must set the default linker to the linker used by gcc for the correct
1823 # operation of libtool. If LD is not defined and we are using gcc, try to
1824 # set the LD default to the ld used by gcc.
1825 if test -z "$LD"; then
1826 if test "$cc_prog_is_gcc" = yes; then
1829 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
1831 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
1833 case $gcc_prog_ld in
1834 # Accept absolute paths.
1835 [\\/]* | [A-Za-z]:[\\/]*)
1836 LD="$gcc_prog_ld" ;;
1842 CFLAGS=${CFLAGS-"-g"}
1843 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1846 if test $host != $build; then
1847 ac_tool_prefix=${host_alias}-
1852 # Extract the first word of "gcc", so it can be a program name with args.
1853 set dummy gcc; ac_word=$2
1854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1855 echo "configure:1856: checking for $ac_word" >&5
1856 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1864 for ac_dir in $ac_dummy; do
1865 test -z "$ac_dir" && ac_dir=.
1866 if test -f $ac_dir/$ac_word; then
1875 if test -n "$CC"; then
1876 echo "$ac_t""$CC" 1>&6
1878 echo "$ac_t""no" 1>&6
1881 if test -z "$CC"; then
1882 # Extract the first word of "cc", so it can be a program name with args.
1883 set dummy cc; ac_word=$2
1884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1885 echo "configure:1886: checking for $ac_word" >&5
1886 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1889 if test -n "$CC"; then
1890 ac_cv_prog_CC="$CC" # Let the user override the test.
1892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1895 for ac_dir in $ac_dummy; do
1896 test -z "$ac_dir" && ac_dir=.
1897 if test -f $ac_dir/$ac_word; then
1898 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1899 ac_prog_rejected=yes
1907 if test $ac_prog_rejected = yes; then
1908 # We found a bogon in the path, so make sure we never use it.
1909 set dummy $ac_cv_prog_CC
1911 if test $# -gt 0; then
1912 # We chose a different compiler from the bogus one.
1913 # However, it has the same basename, so the bogon will be chosen
1914 # first if we set CC to just the basename; use the full file name.
1916 set dummy "$ac_dir/$ac_word" "$@"
1924 if test -n "$CC"; then
1925 echo "$ac_t""$CC" 1>&6
1927 echo "$ac_t""no" 1>&6
1930 if test -z "$CC"; then
1931 case "`uname -s`" in
1933 # Extract the first word of "cl", so it can be a program name with args.
1934 set dummy cl; ac_word=$2
1935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1936 echo "configure:1937: checking for $ac_word" >&5
1937 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1940 if test -n "$CC"; then
1941 ac_cv_prog_CC="$CC" # Let the user override the test.
1943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1945 for ac_dir in $ac_dummy; do
1946 test -z "$ac_dir" && ac_dir=.
1947 if test -f $ac_dir/$ac_word; then
1956 if test -n "$CC"; then
1957 echo "$ac_t""$CC" 1>&6
1959 echo "$ac_t""no" 1>&6
1964 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1967 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1968 echo "configure:1969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1971 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1972 ac_cpp='$CPP $CPPFLAGS'
1973 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1974 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1975 cross_compiling=$ac_cv_prog_cc_cross
1977 cat > conftest.$ac_ext << EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1984 if { (eval echo configure:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1985 ac_cv_prog_cc_works=yes
1986 # If we can't run a trivial program, we are probably using a cross compiler.
1987 if (./conftest; exit) 2>/dev/null; then
1988 ac_cv_prog_cc_cross=no
1990 ac_cv_prog_cc_cross=yes
1993 echo "configure: failed program was:" >&5
1994 cat conftest.$ac_ext >&5
1995 ac_cv_prog_cc_works=no
1999 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2000 ac_cpp='$CPP $CPPFLAGS'
2001 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2002 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2003 cross_compiling=$ac_cv_prog_cc_cross
2005 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2006 if test $ac_cv_prog_cc_works = no; then
2007 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2009 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2010 echo "configure:2011: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2011 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2012 cross_compiling=$ac_cv_prog_cc_cross
2014 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2015 echo "configure:2016: checking whether we are using GNU C" >&5
2016 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2019 cat > conftest.c <<EOF
2024 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2031 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2033 if test $ac_cv_prog_gcc = yes; then
2039 ac_test_CFLAGS="${CFLAGS+set}"
2040 ac_save_CFLAGS="$CFLAGS"
2042 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2043 echo "configure:2044: checking whether ${CC-cc} accepts -g" >&5
2044 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2047 echo 'void f(){}' > conftest.c
2048 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2057 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2058 if test "$ac_test_CFLAGS" = set; then
2059 CFLAGS="$ac_save_CFLAGS"
2060 elif test $ac_cv_prog_cc_g = yes; then
2061 if test "$GCC" = yes; then
2067 if test "$GCC" = yes; then
2076 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2077 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2079 echo "configure:2080: checking for $ac_word" >&5
2080 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2081 echo $ac_n "(cached) $ac_c" 1>&6
2083 if test -n "$GNATBIND"; then
2084 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2088 for ac_dir in $ac_dummy; do
2089 test -z "$ac_dir" && ac_dir=.
2090 if test -f $ac_dir/$ac_word; then
2091 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2098 GNATBIND="$ac_cv_prog_GNATBIND"
2099 if test -n "$GNATBIND"; then
2100 echo "$ac_t""$GNATBIND" 1>&6
2102 echo "$ac_t""no" 1>&6
2106 if test -z "$ac_cv_prog_GNATBIND"; then
2107 if test -n "$ac_tool_prefix"; then
2108 # Extract the first word of "gnatbind", so it can be a program name with args.
2109 set dummy gnatbind; ac_word=$2
2110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2111 echo "configure:2112: checking for $ac_word" >&5
2112 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2115 if test -n "$GNATBIND"; then
2116 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2120 for ac_dir in $ac_dummy; do
2121 test -z "$ac_dir" && ac_dir=.
2122 if test -f $ac_dir/$ac_word; then
2123 ac_cv_prog_GNATBIND="gnatbind"
2128 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2131 GNATBIND="$ac_cv_prog_GNATBIND"
2132 if test -n "$GNATBIND"; then
2133 echo "$ac_t""$GNATBIND" 1>&6
2135 echo "$ac_t""no" 1>&6
2143 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2144 echo "configure:2145: checking whether compiler driver understands Ada" >&5
2145 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 cat >conftest.adb <<EOF
2149 procedure conftest is begin null; end conftest;
2151 acx_cv_cc_gcc_supports_ada=no
2152 # There is a bug in old released versions of GCC which causes the
2153 # driver to exit successfully when the appropriate language module
2154 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2155 # Therefore we must check for the error message as well as an
2156 # unsuccessful exit.
2157 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2158 if test x"$errors" = x; then
2159 acx_cv_cc_gcc_supports_ada=yes
2165 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2167 if test x$GNATBIND != xno && test x$acx_cv_gcc_supports_ada != xno; then
2174 # Figure out what language subdirectories are present.
2175 # Look if the user specified --enable-languages="..."; if not, use
2176 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2178 # NB: embedded tabs in this IF block -- do not untabify
2179 if test -d ${srcdir}/gcc; then
2180 if test x"${enable_languages+set}" != xset; then
2181 if test x"${LANGUAGES+set}" = xset; then
2182 enable_languages="${LANGUAGES}"
2183 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2185 enable_languages=all
2188 if test x"${enable_languages}" = x ||
2189 test x"${enable_languages}" = xyes;
2191 echo configure.in: --enable-languages needs at least one language argument 1>&2
2195 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2197 # First scan to see if an enabled language requires some other language.
2198 # We assume that a given config-lang.in will list all the language
2199 # front ends it requires, even if some are required indirectly.
2200 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2201 case ${lang_frag} in
2203 # The odd quoting in the next line works around
2204 # an apparent bug in bash 1.12 on linux.
2205 ${srcdir}/gcc/[*]/config-lang.in) ;;
2207 # From the config-lang.in, get $language, $lang_requires
2211 for other in ${lang_requires} ; do
2212 case ,${enable_languages}, in
2216 echo " \`$other' language required by \`$language'; enabling" 1>&2
2217 enable_languages="${enable_languages},${other}"
2225 new_enable_languages=c
2226 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2228 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2229 case ${lang_frag} in
2231 # The odd quoting in the next line works around
2232 # an apparent bug in bash 1.12 on linux.
2233 ${srcdir}/gcc/[*]/config-lang.in) ;;
2235 # From the config-lang.in, get $language, $target_libs,
2236 # $lang_dirs, and $build_by_default
2242 # This is quite sensitive to the ordering of the case statement arms.
2243 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2245 echo "${lang_frag} doesn't set \$language." 1>&2
2249 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2252 *,${language},*:*:*:*)
2253 # Language was explicitly selected; include it.
2257 # 'all' was selected, but this is not a default language
2258 # so do not include it.
2262 # 'all' was selected and this is a default language; include it.
2269 case $add_this_lang in
2271 # Remove language-dependent dirs.
2272 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\" ;;
2274 new_enable_languages="$new_enable_languages,$language"
2275 missing_languages="`echo "$missing_languages" | sed "s/,$language,/,/"`" ;;
2281 missing_languages="`echo "$missing_languages" | sed -e s/^,// -e s/,$//`"
2282 if test "x$missing_languages" != x; then
2283 { echo "configure: error:
2284 The following requested languages were not found: ${missing_languages}" 1>&2; exit 1; }
2287 if test "x$new_enable_languages" != "x$enable_languages"; then
2288 echo The following languages will be built: ${new_enable_languages}
2290 enable_languages="$new_enable_languages"
2291 ac_configure_args="`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `"
2294 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
2295 # $target_configdirs.
2296 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2299 for dir in . $skipdirs $noconfigdirs ; do
2300 dirname=`echo $dir | sed -e s/target-//g`
2301 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2302 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2303 if test -r $srcdir/$dirname/configure ; then
2304 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2307 notsupp="$notsupp $dir"
2311 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2312 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2313 if test -r $srcdir/$dirname/configure ; then
2314 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2317 notsupp="$notsupp $dir"
2323 # Sometimes the tools are distributed with libiberty but with no other
2324 # libraries. In that case, we don't want to build target-libiberty.
2325 if test -n "${target_configdirs}" ; then
2327 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2328 if test "$i" != "libiberty" ; then
2329 if test -r $srcdir/$i/configure ; then
2335 if test -z "${others}" ; then
2340 # Quietly strip out all directories which aren't configurable in this tree.
2341 # This relies on all configurable subdirectories being autoconfiscated, which
2343 configdirs_all="$configdirs"
2345 for i in ${configdirs_all} ; do
2346 if test -f ${srcdir}/$i/configure ; then
2347 configdirs="${configdirs} $i"
2350 target_configdirs_all="$target_configdirs"
2352 for i in ${target_configdirs_all} ; do
2353 j=`echo $i | sed -e s/target-//g`
2354 if test -f ${srcdir}/$j/configure ; then
2355 target_configdirs="${target_configdirs} $i"
2359 # Produce a warning message for the subdirs we can't configure.
2360 # This isn't especially interesting in the Cygnus tree, but in the individual
2361 # FSF releases, it's important to let people know when their machine isn't
2362 # supported by the one or two programs in a package.
2364 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2365 # If $appdirs is non-empty, at least one of those directories must still
2366 # be configured, or we error out. (E.g., if the gas release supports a
2367 # specified target in some subdirs but not the gas subdir, we shouldn't
2368 # pretend that all is well.)
2369 if test -n "$appdirs" ; then
2370 for dir in $appdirs ; do
2371 if test -r $dir/Makefile.in ; then
2372 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2376 if echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2382 if test -n "$appdirs" ; then
2383 echo "*** This configuration is not supported by this package." 1>&2
2387 # Okay, some application will build, or we don't care to check. Still
2388 # notify of subdirs not getting built.
2389 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2390 echo " ${notsupp}" 1>&2
2391 echo " (Any other directories should still work fine.)" 1>&2
2401 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2402 # the named directory are copied to $(tooldir)/sys-include.
2403 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2404 if test x${is_cross_compiler} = xno ; then
2405 echo 1>&2 '***' --with-headers is only supported when cross compiling
2408 if test x"${with_headers}" != xyes ; then
2409 case "${exec_prefixoption}" in
2411 *) x=${exec_prefix} ;;
2413 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2417 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2418 # the name directories are copied to $(tooldir)/lib. Multiple directories
2420 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2421 if test x${is_cross_compiler} = xno ; then
2422 echo 1>&2 '***' --with-libs is only supported when cross compiling
2425 if test x"${with_libs}" != xyes ; then
2426 # Copy the libraries in reverse order, so that files in the first named
2427 # library override files in subsequent libraries.
2428 case "${exec_prefixoption}" in
2430 *) x=${exec_prefix} ;;
2432 for l in ${with_libs}; do
2433 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2438 # Handle ${copy_dirs}
2439 set fnord ${copy_dirs}
2441 while test $# != 0 ; do
2442 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2445 echo Copying $1 to $2
2447 # Use the install script to create the directory and all required
2448 # parent directories.
2449 if test -d $2 ; then
2453 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2456 # Copy the directory, assuming we have tar.
2457 # FIXME: Should we use B in the second tar? Not all systems support it.
2458 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2460 # It is the responsibility of the user to correctly adjust all
2461 # symlinks. If somebody can figure out how to handle them correctly
2462 # here, feel free to add the code.
2469 extra_arflags_for_target=
2470 extra_nmflags_for_target=
2471 extra_ranlibflags_for_target=
2472 target_makefile_frag=/dev/null
2474 i[3456789]86-*-netware*)
2475 target_makefile_frag="config/mt-netware"
2478 target_makefile_frag="config/mt-netware"
2481 target_makefile_frag="config/mt-linux"
2483 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2484 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2485 # commands to handle both 32-bit and 64-bit objects. These flags are
2486 # harmless if we're using GNU nm or ar.
2487 extra_arflags_for_target=" -X32_64"
2488 extra_nmflags_for_target=" -B -X32_64"
2491 # ranlib from Darwin requires the -c flag to look at common symbols.
2492 extra_ranlibflags_for_target=" -c"
2494 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2495 target_makefile_frag="config/mt-wince"
2499 alphaieee_frag=/dev/null
2502 # This just makes sure to use the -mieee option to build target libs.
2503 # This should probably be set individually by each library.
2504 alphaieee_frag="config/mt-alphaieee"
2508 # If --enable-target-optspace always use -Os instead of -O2 to build
2509 # the target libraries, similarly if it is not specified, use -Os
2510 # on selected platforms.
2511 ospace_frag=/dev/null
2512 case "${enable_target_optspace}:${target}" in
2514 ospace_frag="config/mt-ospace"
2517 ospace_frag="config/mt-d30v"
2519 :m32r-* | :d10v-* | :fr30-*)
2520 ospace_frag="config/mt-ospace"
2525 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2529 # Set with_gnu_as and with_gnu_ld as appropriate.
2531 # This is done by determining whether or not the appropriate directory
2532 # is available, and by checking whether or not specific configurations
2533 # have requested that this magic not happen.
2535 # The command line options always override the explicit settings in
2536 # configure.in, and the settings in configure.in override this magic.
2538 # If the default for a toolchain is to use GNU as and ld, and you don't
2539 # want to do that, then you should use the --without-gnu-as and
2540 # --without-gnu-ld options for the configure script.
2542 if test x${use_gnu_as} = x &&
2543 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2545 extra_host_args="$extra_host_args --with-gnu-as"
2548 if test x${use_gnu_ld} = x &&
2549 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2551 extra_host_args="$extra_host_args --with-gnu-ld"
2554 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2555 # can detect this case.
2557 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2559 extra_host_args="$extra_host_args --with-newlib"
2563 # Default to using --with-stabs for certain targets.
2564 if test x${with_stabs} = x ; then
2568 mips*-*-* | alpha*-*-osf*)
2570 extra_host_args="${extra_host_args} --with-stabs"
2575 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2576 # them automatically.
2579 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2583 # Some systems (e.g., one of the i386-aix systems the gas testers are
2584 # using) don't handle "\$" correctly, so don't use it here.
2585 tooldir='${exec_prefix}'/${target_alias}
2586 build_tooldir=${tooldir}
2588 # Generate a default definition for YACC. This is used if the makefile can't
2589 # locate bison or byacc in objdir.
2591 for prog in 'bison -y' byacc yacc
2593 set dummy $prog; tmp=$2
2594 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2595 for dir in $PATH; do
2596 test -z "$dir" && dir=.
2597 if test -f $dir/$tmp; then
2598 DEFAULT_YACC="$prog"
2604 test -n "$DEFAULT_YACC" && break
2607 # Generate a default definition for M4. This is used if the makefile can't
2608 # locate m4 in objdir.
2610 for prog in gm4 gnum4 m4
2612 set dummy $prog; tmp=$2
2613 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2614 for dir in $PATH; do
2615 test -z "$dir" && dir=.
2616 if test -f $dir/$tmp; then
2623 test -n "$DEFAULT_M4" && break
2626 # Generate a default definition for LEX. This is used if the makefile can't
2627 # locate flex in objdir.
2629 for prog in flex lex
2631 set dummy $prog; tmp=$2
2632 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2633 for dir in $PATH; do
2634 test -z "$dir" && dir=.
2635 if test -f $dir/$tmp; then
2642 test -n "$DEFAULT_LEX" && break
2645 # FIXME Should this be done recursively ??? (Useful for e.g. gdbtest)
2646 # Set up the list of links to be made.
2647 # ${links} is the list of link names, and ${files} is the list of names to link to.
2650 configlinks="${links}"
2651 if test -r ./config.status ; then
2652 mv -f ./config.status ./config.back
2654 while test -n "${files}" ; do
2655 # set file to car of files, files to cdr of files
2656 set ${files}; file=$1; shift; files=$*
2657 set ${links}; link=$1; shift; links=$*
2659 if test ! -r ${srcdir}/${file} ; then
2660 if test ! -r ${file} ; then
2661 echo '***' "${progname}: cannot create a link \"${link}\"," 1>&2
2662 echo '***' "since the file \"${srcdir}/${file}\" does not exist." 1>&2
2668 srcfile=${srcdir}/${file}
2671 ${remove} -f ${link}
2672 # Make a symlink if possible, otherwise try a hard link
2673 if ${symbolic_link} ${srcfile} ${link} >/dev/null 2>&1 ; then
2676 # We need to re-remove the file because Lynx leaves a
2677 # very strange directory there when it fails an NFS symlink.
2678 ${remove} -r -f ${link}
2679 ${hard_link} ${srcfile} ${link}
2681 if test ! -r ${link} ; then
2682 echo '***' "${progname}: unable to link \"${link}\" to \"${srcfile}\"." 1>&2
2686 echo "Linked \"${link}\" to \"${srcfile}\"."
2689 # Create a .gdbinit file which runs the one in srcdir
2690 # and tells GDB to look there for source files.
2692 if test -r ${srcdir}/.gdbinit ; then
2695 *) cat > ./.gdbinit <<EOF
2699 source ${srcdir}/.gdbinit
2705 # Make sure that the compiler is able to generate an executable. If it
2706 # can't, we are probably in trouble. We don't care whether we can run the
2707 # executable--we might be using a cross compiler--we only care whether it
2708 # can be created. At this point the main configure script has set CC.
2710 echo "int main () { return 0; }" > conftest.c
2711 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2712 if test $? = 0 ; then
2713 if test -s conftest || test -s conftest.exe ; then
2719 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2720 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2727 # The Solaris /usr/ucb/cc compiler does not appear to work.
2729 sparc-sun-solaris2*)
2730 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2731 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2733 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2734 if test -d /opt/cygnus/bin ; then
2735 if test "$could_use" = "" ; then
2736 could_use="/opt/cygnus/bin"
2738 could_use="$could_use or /opt/cygnus/bin"
2741 if test "$could_use" = "" ; then
2742 echo "Warning: compilation may fail because you're using"
2743 echo "/usr/ucb/cc. You should change your PATH or CC "
2744 echo "variable and rerun configure."
2746 echo "Warning: compilation may fail because you're using"
2747 echo "/usr/ucb/cc, when you should use the C compiler from"
2748 echo "$could_use. You should change your"
2749 echo "PATH or CC variable and rerun configure."
2755 # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
2756 # binutils tools will find libbfd.so.
2757 case "${enable_shared}" in
2758 no | "") SET_LIB_PATH= ;;
2759 *) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;;
2763 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2764 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2767 # Record target_configdirs and the configure arguments for target and
2768 # build configuration in Makefile.
2769 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2771 # This is the final value for target_configdirs. configdirs already
2772 # has its final value, as does build_modules. It's time to create some
2773 # lists of valid targets.
2776 configure_build_modules=
2777 for module in ${build_modules} ; do
2778 all_build_modules=all-build-${module}
2779 configure_build_modules=configure-build-${module}
2782 # Determine whether gdb needs tk/tcl or not.
2783 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2784 # and in that case we want gdb to be built without tk. Ugh!
2785 # In fact I believe gdb is the *only* package directly dependent on tk,
2786 # so we should be able to put the 'maybe's in unconditionally and
2787 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2788 # 100% sure that that's safe though.
2790 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui"
2791 case "$enable_gdbtk" in
2795 GDB_TK="${gdb_tk}" ;;
2797 # Only add the dependency on gdbtk when GDBtk is part of the gdb
2798 # distro. Eventually someone will fix this and move Insight, nee
2799 # gdbtk to a separate directory.
2800 if test -d ${srcdir}/gdb/gdbtk ; then
2808 # Create the 'maybe dependencies'. This uses a temporary file.
2810 # While at that, we remove Makefiles if we were started for recursive
2811 # configuration, so that the top-level Makefile reconfigures them,
2812 # like we used to do when configure itself was recursive.
2814 echo '# maybedep.tmp' > maybedep.tmp
2816 # Make-targets which may need maybe dependencies.
2817 mts="configure all install check clean distclean dvi info install-info"
2818 mts="${mts} installcheck mostlyclean maintainer-clean TAGS"
2820 # Loop over modules and make-targets.
2821 for module in ${build_modules} ; do
2822 if test -z "${no_recursion}" \
2823 && test -f ${build_subdir}/${module}/Makefile; then
2824 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
2825 rm -f ${build_subdir}/${module}/Makefile
2827 for mt in ${mts} ; do
2829 install) ;; # No installing build modules.
2830 *) echo "maybe-${mt}-build-${module}: ${mt}-build-${module}" >> maybedep.tmp ;;
2834 for module in ${configdirs} ; do
2835 if test -z "${no_recursion}" \
2836 && test -f ${module}/Makefile; then
2837 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
2838 rm -f ${module}/Makefile
2840 for mt in ${mts} ; do
2841 echo "maybe-${mt}-${module}: ${mt}-${module}" >> maybedep.tmp
2844 for module in ${target_configdirs} ; do
2845 if test -z "${no_recursion}" \
2846 && test -f ${target_subdir}/${module}/Makefile; then
2847 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
2848 rm -f ${target_subdir}/${module}/Makefile
2850 for mt in ${mts} ; do
2851 echo "maybe-${mt}-target-${module}: ${mt}-target-${module}" >> maybedep.tmp
2854 maybe_dependencies=maybedep.tmp
2857 # Create the serialization dependencies. This uses a temporary file.
2859 # Check whether --enable-serial-configure or --disable-serial-configure was given.
2860 if test "${enable_serial_configure+set}" = set; then
2861 enableval="$enable_serial_configure"
2866 case ${enable_serial_configure} in
2868 enable_serial_build_configure=yes
2869 enable_serial_host_configure=yes
2870 enable_serial_target_configure=yes
2874 # These force 'configure's to be done one at a time, to avoid problems
2875 # with contention over a shared config.cache.
2877 echo '# serdep.tmp' > serdep.tmp
2879 test "x${enable_serial_build_configure}" = xyes &&
2880 for item in ${build_configdirs} ; do
2883 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
2888 test "x${enable_serial_host_configure}" = xyes &&
2889 for item in ${configdirs} ; do
2892 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
2897 test "x${enable_serial_target_configure}" = xyes &&
2898 for item in ${target_configdirs} ; do
2901 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
2905 serialization_dependencies=serdep.tmp
2908 # Base args. Strip norecursion, cache-file, srcdir, host, build,
2909 # target and nonopt. These are the ones we might not want to pass
2910 # down to subconfigures. Also strip program-prefix, program-suffix,
2911 # and program-transform-name, so that we can pass down a consistent
2912 # program-transform-name. If autoconf has put single quotes around
2913 # any of these arguments (because they contain shell metacharacters)
2914 # then this will fail; in practice this only happens for
2915 # --program-transform-name, so be sure to override --program-transform-name
2916 # at the end of the argument list.
2917 # These will be expanded by make, so quote '$'.
2918 cat <<\EOF_SED > conftestsed
2920 s/ --c[a-z-]*[= ][^ ]* / /
2921 s/ --sr[a-z-]*[= ][^ ]* / /
2922 s/ --ho[a-z-]*[= ][^ ]* / /
2923 s/ --bu[a-z-]*[= ][^ ]* / /
2924 s/ --t[a-z-]*[= ][^ ]* / /
2925 s/ --program-[pst][a-z-]*[= ][^ ]* / /
2926 s/ -cache-file[= ][^ ]* / /
2927 s/ -srcdir[= ][^ ]* / /
2928 s/ -host[= ][^ ]* / /
2929 s/ -build[= ][^ ]* / /
2930 s/ -target[= ][^ ]* / /
2931 s/ -program-prefix[= ][^ ]* / /
2932 s/ -program-suffix[= ][^ ]* / /
2933 s/ -program-transform-name[= ][^ ]* / /
2938 sed -f conftestsed <<EOF_SED > conftestsed.out
2939 ${ac_configure_args}
2941 baseargs=`cat conftestsed.out`
2942 rm -f conftestsed conftestsed.out
2944 # Add in --program-transform-name, after --program-prefix and
2945 # --program-suffix have been applied to it. Autoconf has already
2946 # doubled dollar signs and backslashes in program_transform_name; we want
2947 # the backslashes un-doubled, and then the entire thing wrapped in single
2948 # quotes, because this will be expanded first by make and then by the shell.
2949 # Also, because we want to override the logic in subdir configure scripts to
2950 # choose program_transform_name, replace any s,x,x, with s,y,y,.
2951 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
2952 ${program_transform_name}
2954 gcc_transform_name=`cat conftestsed.out`
2955 rm -f conftestsed.out
2956 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2958 # For the build-side libraries, we just need to pretend we're native,
2959 # and not use the same cache file. Multilibs are neither needed nor
2961 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
2963 # For host modules, accept cache file option, or specification as blank.
2964 case "${cache_file}" in
2966 cache_file_option="" ;;
2967 /* | [A-Za-z]:[\\/]* ) # absolute path
2968 cache_file_option="--cache-file=${cache_file}" ;;
2970 cache_file_option="--cache-file=../${cache_file}" ;;
2973 # Host dirs don't like to share a cache file either, horribly enough.
2974 # This seems to be due to autoconf 2.5x stupidity.
2975 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
2977 target_configargs=${baseargs}
2979 # Passing a --with-cross-host argument lets the target libraries know
2980 # whether they are being built with a cross-compiler or being built
2981 # native. However, it would be better to use other mechanisms to make the
2982 # sorts of decisions they want to make on this basis. Please consider
2983 # this option to be deprecated. FIXME.
2984 if test x${is_cross_compiler} = xyes ; then
2985 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
2988 # Default to --enable-multilib.
2989 if test x${enable_multilib} = x ; then
2990 target_configargs="--enable-multilib ${target_configargs}"
2993 # Pass --with-newlib if appropriate. Note that target_configdirs has
2994 # changed from the earlier setting of with_newlib.
2995 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
2996 target_configargs="--with-newlib ${target_configargs}"
2999 # Different target subdirs use different values of certain variables
3000 # (notably CXX). Worse, multilibs use *lots* of different values.
3001 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3002 # it doesn't automatically accept command-line overrides of them.
3003 # This means it's not safe for target subdirs to share a cache file,
3004 # which is disgusting, but there you have it. Hopefully this can be
3005 # fixed in future. It's still worthwhile to use a cache file for each
3006 # directory. I think.
3008 # Pass the appropriate --host, --build, and --cache-file arguments.
3009 target_configargs="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}"
3011 # provide a proper gxx_include_dir.
3012 # Note, if you change the default, make sure to fix both here and in
3013 # the gcc and libstdc++-v3 subdirectories.
3014 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
3015 case "${with_gxx_include_dir}" in
3017 { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; }
3020 case "${enable_version_specific_runtime_libs}" in
3021 yes) gxx_include_dir='${libsubdir}/include/c++' ;;
3023 . ${srcdir}/config.if
3024 gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;;
3026 *) gxx_include_dir=${with_gxx_include_dir} ;;
3030 case " $target_configdirs " in
3032 case " $target_configargs " in
3033 *" --with-newlib "*)
3036 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' ;;
3039 # If we're not building GCC, don't discard standard headers.
3040 if test -d ${srcdir}/gcc; then
3041 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3043 if test "${build}" != "${host}"; then
3044 # On Canadian crosses, CC_FOR_TARGET will have already been set
3045 # by `configure', so we won't have an opportunity to add -Bgcc/
3046 # to it. This is right: we don't want to search that directory
3047 # for binaries, but we want the header files in there, so add
3049 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
3051 # Someone might think of using the pre-installed headers on
3052 # Canadian crosses, in case the installed compiler is not fully
3053 # compatible with the compiler being built. In this case, it
3054 # would be better to flag an error than risking having
3055 # incompatible object files being constructed. We can't
3056 # guarantee that an error will be flagged, but let's hope the
3057 # compiler will do it, when presented with incompatible header
3062 case "${target}-${is_cross_compiler}" in
3063 i[3456789]86-*-linux*-no)
3064 # Here host == target, so we don't need to build gcc,
3065 # so we don't want to discard standard headers.
3066 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3069 # If we're building newlib, use its generic headers last, but search
3070 # for any libc-related directories first (so make it the last -B
3072 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3080 # Allow the user to override the flags for
3081 # our build compiler if desired.
3082 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3084 # On Canadian crosses, we'll be searching the right directories for
3085 # the previously-installed cross compiler, so don't bother to add
3086 # flags for directories within the install tree of the compiler
3087 # being built; programs in there won't even run.
3088 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3089 # Search for pre-installed headers if nothing else fits.
3090 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3093 if test "x${use_gnu_ld}" = x &&
3094 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3095 # Arrange for us to find uninstalled linker scripts.
3096 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
3099 if test "x${CC_FOR_TARGET+set}" = xset; then
3101 elif test -d ${srcdir}/gcc; then
3102 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
3103 elif test "$host" = "$target"; then
3104 CC_FOR_TARGET='$(CC)'
3106 CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"`
3108 CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3110 if test "x${GCJ_FOR_TARGET+set}" = xset; then
3112 elif test -d ${srcdir}/gcc; then
3113 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
3114 elif test "$host" = "$target"; then
3115 GCJ_FOR_TARGET='gcj'
3117 GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"`
3119 GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3121 # Don't use libstdc++-v3's flags to configure/build itself.
3122 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'
3123 raw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
3125 if test "x${CXX_FOR_TARGET+set}" = xset; then
3126 if test "x${RAW_CXX_FOR_TARGET+set}" != xset; then
3127 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3129 elif test -d ${srcdir}/gcc; then
3130 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
3131 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
3132 # default whereas gcc does not.
3133 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
3135 CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
3136 RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags
3137 elif test "$host" = "$target"; then
3138 CXX_FOR_TARGET='$(CXX)'
3139 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3141 CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"`
3142 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3144 CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3145 RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3147 qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3148 qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3150 # We want to defer the evaluation of `cmd`s and shell variables in
3151 # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
3152 # bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
3153 # quotes, but we still have to duplicate `$'s so that shell variables
3154 # can be expanded by the nested make as shell variables, not as make
3156 qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3157 qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3159 # Wrap CC_FOR_TARGET and friends, for certain types of builds.
3160 CC_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}"
3161 GCJ_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}"
3162 CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}"
3163 RAW_CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}"
3164 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}"
3165 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}"
3167 # Makefile fragments.
3168 host_makefile_frag=${srcdir}/${host_makefile_frag}
3169 target_makefile_frag=${srcdir}/${target_makefile_frag}
3170 alphaieee_frag=${srcdir}/${alphaieee_frag}
3171 ospace_frag=${srcdir}/${ospace_frag}
3177 # Miscellanea: directories, flags, etc.
3191 # Build module lists & subconfigure args.
3196 # Host module lists & subconfigure args.
3200 # Target module lists & subconfigure args.
3214 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3215 ncn_target_tool_prefix=
3216 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3218 if test -n "$ncn_tool_prefix"; then
3219 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
3220 set dummy ${ncn_tool_prefix}ar; ac_word=$2
3221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3222 echo "configure:3223: checking for $ac_word" >&5
3223 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 if test -n "$AR"; then
3227 ac_cv_prog_AR="$AR" # Let the user override the test.
3229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3231 for ac_dir in $ac_dummy; do
3232 test -z "$ac_dir" && ac_dir=.
3233 if test -f $ac_dir/$ac_word; then
3234 ac_cv_prog_AR="${ncn_tool_prefix}ar"
3242 if test -n "$AR"; then
3243 echo "$ac_t""$AR" 1>&6
3245 echo "$ac_t""no" 1>&6
3249 if test -z "$ac_cv_prog_AR" ; then
3250 if test $build = $host ; then
3252 # Extract the first word of "ar", so it can be a program name with args.
3253 set dummy ar; ac_word=$2
3254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3255 echo "configure:3256: checking for $ac_word" >&5
3256 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3259 if test -n "$ncn_cv_AR"; then
3260 ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test.
3262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3264 for ac_dir in $ac_dummy; do
3265 test -z "$ac_dir" && ac_dir=.
3266 if test -f $ac_dir/$ac_word; then
3267 ac_cv_prog_ncn_cv_AR="ar"
3272 test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar"
3275 ncn_cv_AR="$ac_cv_prog_ncn_cv_AR"
3276 if test -n "$ncn_cv_AR"; then
3277 echo "$ac_t""$ncn_cv_AR" 1>&6
3279 echo "$ac_t""no" 1>&6
3284 AR="${ncn_tool_prefix}ar"
3290 if test -n "$ncn_tool_prefix"; then
3291 # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args.
3292 set dummy ${ncn_tool_prefix}as; ac_word=$2
3293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3294 echo "configure:3295: checking for $ac_word" >&5
3295 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3298 if test -n "$AS"; then
3299 ac_cv_prog_AS="$AS" # Let the user override the test.
3301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3303 for ac_dir in $ac_dummy; do
3304 test -z "$ac_dir" && ac_dir=.
3305 if test -f $ac_dir/$ac_word; then
3306 ac_cv_prog_AS="${ncn_tool_prefix}as"
3314 if test -n "$AS"; then
3315 echo "$ac_t""$AS" 1>&6
3317 echo "$ac_t""no" 1>&6
3321 if test -z "$ac_cv_prog_AS" ; then
3322 if test $build = $host ; then
3324 # Extract the first word of "as", so it can be a program name with args.
3325 set dummy as; ac_word=$2
3326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3327 echo "configure:3328: checking for $ac_word" >&5
3328 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3331 if test -n "$ncn_cv_AS"; then
3332 ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test.
3334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3336 for ac_dir in $ac_dummy; do
3337 test -z "$ac_dir" && ac_dir=.
3338 if test -f $ac_dir/$ac_word; then
3339 ac_cv_prog_ncn_cv_AS="as"
3344 test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as"
3347 ncn_cv_AS="$ac_cv_prog_ncn_cv_AS"
3348 if test -n "$ncn_cv_AS"; then
3349 echo "$ac_t""$ncn_cv_AS" 1>&6
3351 echo "$ac_t""no" 1>&6
3356 AS="${ncn_tool_prefix}as"
3362 if test -n "$ncn_tool_prefix"; then
3363 # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args.
3364 set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
3365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3366 echo "configure:3367: checking for $ac_word" >&5
3367 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3370 if test -n "$DLLTOOL"; then
3371 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3375 for ac_dir in $ac_dummy; do
3376 test -z "$ac_dir" && ac_dir=.
3377 if test -f $ac_dir/$ac_word; then
3378 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool"
3385 DLLTOOL="$ac_cv_prog_DLLTOOL"
3386 if test -n "$DLLTOOL"; then
3387 echo "$ac_t""$DLLTOOL" 1>&6
3389 echo "$ac_t""no" 1>&6
3393 if test -z "$ac_cv_prog_DLLTOOL" ; then
3394 if test $build = $host ; then
3395 ncn_cv_DLLTOOL=$DLLTOOL
3396 # Extract the first word of "dlltool", so it can be a program name with args.
3397 set dummy dlltool; ac_word=$2
3398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3399 echo "configure:3400: checking for $ac_word" >&5
3400 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3403 if test -n "$ncn_cv_DLLTOOL"; then
3404 ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test.
3406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3408 for ac_dir in $ac_dummy; do
3409 test -z "$ac_dir" && ac_dir=.
3410 if test -f $ac_dir/$ac_word; then
3411 ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
3416 test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
3419 ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL"
3420 if test -n "$ncn_cv_DLLTOOL"; then
3421 echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6
3423 echo "$ac_t""no" 1>&6
3426 DLLTOOL=$ncn_cv_DLLTOOL
3428 DLLTOOL="${ncn_tool_prefix}dlltool"
3431 DLLTOOL="$ac_cv_prog_DLLTOOL"
3434 if test -n "$ncn_tool_prefix"; then
3435 # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args.
3436 set dummy ${ncn_tool_prefix}ld; ac_word=$2
3437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3438 echo "configure:3439: checking for $ac_word" >&5
3439 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3442 if test -n "$LD"; then
3443 ac_cv_prog_LD="$LD" # Let the user override the test.
3445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3447 for ac_dir in $ac_dummy; do
3448 test -z "$ac_dir" && ac_dir=.
3449 if test -f $ac_dir/$ac_word; then
3450 ac_cv_prog_LD="${ncn_tool_prefix}ld"
3458 if test -n "$LD"; then
3459 echo "$ac_t""$LD" 1>&6
3461 echo "$ac_t""no" 1>&6
3465 if test -z "$ac_cv_prog_LD" ; then
3466 if test $build = $host ; then
3468 # Extract the first word of "ld", so it can be a program name with args.
3469 set dummy ld; ac_word=$2
3470 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3471 echo "configure:3472: checking for $ac_word" >&5
3472 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
3473 echo $ac_n "(cached) $ac_c" 1>&6
3475 if test -n "$ncn_cv_LD"; then
3476 ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test.
3478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3480 for ac_dir in $ac_dummy; do
3481 test -z "$ac_dir" && ac_dir=.
3482 if test -f $ac_dir/$ac_word; then
3483 ac_cv_prog_ncn_cv_LD="ld"
3488 test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld"
3491 ncn_cv_LD="$ac_cv_prog_ncn_cv_LD"
3492 if test -n "$ncn_cv_LD"; then
3493 echo "$ac_t""$ncn_cv_LD" 1>&6
3495 echo "$ac_t""no" 1>&6
3500 LD="${ncn_tool_prefix}ld"
3506 if test -n "$ncn_tool_prefix"; then
3507 # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args.
3508 set dummy ${ncn_tool_prefix}nm; ac_word=$2
3509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3510 echo "configure:3511: checking for $ac_word" >&5
3511 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3514 if test -n "$NM"; then
3515 ac_cv_prog_NM="$NM" # Let the user override the test.
3517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3519 for ac_dir in $ac_dummy; do
3520 test -z "$ac_dir" && ac_dir=.
3521 if test -f $ac_dir/$ac_word; then
3522 ac_cv_prog_NM="${ncn_tool_prefix}nm"
3530 if test -n "$NM"; then
3531 echo "$ac_t""$NM" 1>&6
3533 echo "$ac_t""no" 1>&6
3537 if test -z "$ac_cv_prog_NM" ; then
3538 if test $build = $host ; then
3540 # Extract the first word of "nm", so it can be a program name with args.
3541 set dummy nm; ac_word=$2
3542 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3543 echo "configure:3544: checking for $ac_word" >&5
3544 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
3545 echo $ac_n "(cached) $ac_c" 1>&6
3547 if test -n "$ncn_cv_NM"; then
3548 ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test.
3550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3552 for ac_dir in $ac_dummy; do
3553 test -z "$ac_dir" && ac_dir=.
3554 if test -f $ac_dir/$ac_word; then
3555 ac_cv_prog_ncn_cv_NM="nm"
3560 test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm"
3563 ncn_cv_NM="$ac_cv_prog_ncn_cv_NM"
3564 if test -n "$ncn_cv_NM"; then
3565 echo "$ac_t""$ncn_cv_NM" 1>&6
3567 echo "$ac_t""no" 1>&6
3572 NM="${ncn_tool_prefix}nm"
3578 if test -n "$ncn_tool_prefix"; then
3579 # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args.
3580 set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3582 echo "configure:3583: checking for $ac_word" >&5
3583 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3586 if test -n "$RANLIB"; then
3587 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3591 for ac_dir in $ac_dummy; do
3592 test -z "$ac_dir" && ac_dir=.
3593 if test -f $ac_dir/$ac_word; then
3594 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib"
3601 RANLIB="$ac_cv_prog_RANLIB"
3602 if test -n "$RANLIB"; then
3603 echo "$ac_t""$RANLIB" 1>&6
3605 echo "$ac_t""no" 1>&6
3609 if test -z "$ac_cv_prog_RANLIB" ; then
3610 if test $build = $host ; then
3611 ncn_cv_RANLIB=$RANLIB
3612 # Extract the first word of "ranlib", so it can be a program name with args.
3613 set dummy ranlib; ac_word=$2
3614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3615 echo "configure:3616: checking for $ac_word" >&5
3616 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3619 if test -n "$ncn_cv_RANLIB"; then
3620 ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test.
3622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3624 for ac_dir in $ac_dummy; do
3625 test -z "$ac_dir" && ac_dir=.
3626 if test -f $ac_dir/$ac_word; then
3627 ac_cv_prog_ncn_cv_RANLIB="ranlib"
3632 test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":"
3635 ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB"
3636 if test -n "$ncn_cv_RANLIB"; then
3637 echo "$ac_t""$ncn_cv_RANLIB" 1>&6
3639 echo "$ac_t""no" 1>&6
3642 RANLIB=$ncn_cv_RANLIB
3647 RANLIB="$ac_cv_prog_RANLIB"
3650 if test -n "$ncn_tool_prefix"; then
3651 # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args.
3652 set dummy ${ncn_tool_prefix}windres; ac_word=$2
3653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3654 echo "configure:3655: checking for $ac_word" >&5
3655 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3658 if test -n "$WINDRES"; then
3659 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3663 for ac_dir in $ac_dummy; do
3664 test -z "$ac_dir" && ac_dir=.
3665 if test -f $ac_dir/$ac_word; then
3666 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres"
3673 WINDRES="$ac_cv_prog_WINDRES"
3674 if test -n "$WINDRES"; then
3675 echo "$ac_t""$WINDRES" 1>&6
3677 echo "$ac_t""no" 1>&6
3681 if test -z "$ac_cv_prog_WINDRES" ; then
3682 if test $build = $host ; then
3683 ncn_cv_WINDRES=$WINDRES
3684 # Extract the first word of "windres", so it can be a program name with args.
3685 set dummy windres; ac_word=$2
3686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3687 echo "configure:3688: checking for $ac_word" >&5
3688 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3691 if test -n "$ncn_cv_WINDRES"; then
3692 ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test.
3694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3696 for ac_dir in $ac_dummy; do
3697 test -z "$ac_dir" && ac_dir=.
3698 if test -f $ac_dir/$ac_word; then
3699 ac_cv_prog_ncn_cv_WINDRES="windres"
3704 test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres"
3707 ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES"
3708 if test -n "$ncn_cv_WINDRES"; then
3709 echo "$ac_t""$ncn_cv_WINDRES" 1>&6
3711 echo "$ac_t""no" 1>&6
3714 WINDRES=$ncn_cv_WINDRES
3716 WINDRES="${ncn_tool_prefix}windres"
3719 WINDRES="$ac_cv_prog_WINDRES"
3722 if test -n "$ncn_tool_prefix"; then
3723 # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args.
3724 set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
3725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3726 echo "configure:3727: checking for $ac_word" >&5
3727 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3730 if test -n "$OBJCOPY"; then
3731 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
3733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3735 for ac_dir in $ac_dummy; do
3736 test -z "$ac_dir" && ac_dir=.
3737 if test -f $ac_dir/$ac_word; then
3738 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy"
3745 OBJCOPY="$ac_cv_prog_OBJCOPY"
3746 if test -n "$OBJCOPY"; then
3747 echo "$ac_t""$OBJCOPY" 1>&6
3749 echo "$ac_t""no" 1>&6
3753 if test -z "$ac_cv_prog_OBJCOPY" ; then
3754 if test $build = $host ; then
3755 ncn_cv_OBJCOPY=$OBJCOPY
3756 # Extract the first word of "objcopy", so it can be a program name with args.
3757 set dummy objcopy; ac_word=$2
3758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3759 echo "configure:3760: checking for $ac_word" >&5
3760 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3763 if test -n "$ncn_cv_OBJCOPY"; then
3764 ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test.
3766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3768 for ac_dir in $ac_dummy; do
3769 test -z "$ac_dir" && ac_dir=.
3770 if test -f $ac_dir/$ac_word; then
3771 ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
3776 test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
3779 ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY"
3780 if test -n "$ncn_cv_OBJCOPY"; then
3781 echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6
3783 echo "$ac_t""no" 1>&6
3786 OBJCOPY=$ncn_cv_OBJCOPY
3788 OBJCOPY="${ncn_tool_prefix}objcopy"
3791 OBJCOPY="$ac_cv_prog_OBJCOPY"
3794 if test -n "$ncn_tool_prefix"; then
3795 # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args.
3796 set dummy ${ncn_tool_prefix}objdump; ac_word=$2
3797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3798 echo "configure:3799: checking for $ac_word" >&5
3799 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
3800 echo $ac_n "(cached) $ac_c" 1>&6
3802 if test -n "$OBJDUMP"; then
3803 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3807 for ac_dir in $ac_dummy; do
3808 test -z "$ac_dir" && ac_dir=.
3809 if test -f $ac_dir/$ac_word; then
3810 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump"
3817 OBJDUMP="$ac_cv_prog_OBJDUMP"
3818 if test -n "$OBJDUMP"; then
3819 echo "$ac_t""$OBJDUMP" 1>&6
3821 echo "$ac_t""no" 1>&6
3825 if test -z "$ac_cv_prog_OBJDUMP" ; then
3826 if test $build = $host ; then
3827 ncn_cv_OBJDUMP=$OBJDUMP
3828 # Extract the first word of "objdump", so it can be a program name with args.
3829 set dummy objdump; ac_word=$2
3830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3831 echo "configure:3832: checking for $ac_word" >&5
3832 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
3833 echo $ac_n "(cached) $ac_c" 1>&6
3835 if test -n "$ncn_cv_OBJDUMP"; then
3836 ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test.
3838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3840 for ac_dir in $ac_dummy; do
3841 test -z "$ac_dir" && ac_dir=.
3842 if test -f $ac_dir/$ac_word; then
3843 ac_cv_prog_ncn_cv_OBJDUMP="objdump"
3848 test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump"
3851 ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP"
3852 if test -n "$ncn_cv_OBJDUMP"; then
3853 echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6
3855 echo "$ac_t""no" 1>&6
3858 OBJDUMP=$ncn_cv_OBJDUMP
3860 OBJDUMP="${ncn_tool_prefix}objdump"
3863 OBJDUMP="$ac_cv_prog_OBJDUMP"
3876 if test -n "$ncn_target_tool_prefix"; then
3877 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
3878 set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
3879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3880 echo "configure:3881: checking for $ac_word" >&5
3881 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
3882 echo $ac_n "(cached) $ac_c" 1>&6
3884 if test -n "$AR_FOR_TARGET"; then
3885 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
3887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3889 for ac_dir in $ac_dummy; do
3890 test -z "$ac_dir" && ac_dir=.
3891 if test -f $ac_dir/$ac_word; then
3892 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
3899 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
3900 if test -n "$AR_FOR_TARGET"; then
3901 echo "$ac_t""$AR_FOR_TARGET" 1>&6
3903 echo "$ac_t""no" 1>&6
3907 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
3908 if test $build = $target ; then
3909 ncn_cv_AR_FOR_TARGET=$AR_FOR_TARGET
3910 # Extract the first word of "ar", so it can be a program name with args.
3911 set dummy ar; ac_word=$2
3912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3913 echo "configure:3914: checking for $ac_word" >&5
3914 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR_FOR_TARGET'+set}'`\" = set"; then
3915 echo $ac_n "(cached) $ac_c" 1>&6
3917 if test -n "$ncn_cv_AR_FOR_TARGET"; then
3918 ac_cv_prog_ncn_cv_AR_FOR_TARGET="$ncn_cv_AR_FOR_TARGET" # Let the user override the test.
3920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3922 for ac_dir in $ac_dummy; do
3923 test -z "$ac_dir" && ac_dir=.
3924 if test -f $ac_dir/$ac_word; then
3925 ac_cv_prog_ncn_cv_AR_FOR_TARGET="ar"
3930 test -z "$ac_cv_prog_ncn_cv_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_AR_FOR_TARGET="ar"
3933 ncn_cv_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_AR_FOR_TARGET"
3934 if test -n "$ncn_cv_AR_FOR_TARGET"; then
3935 echo "$ac_t""$ncn_cv_AR_FOR_TARGET" 1>&6
3937 echo "$ac_t""no" 1>&6
3940 AR_FOR_TARGET=$ncn_cv_AR_FOR_TARGET
3942 AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
3945 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
3948 if test -n "$ncn_target_tool_prefix"; then
3949 # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args.
3950 set dummy ${ncn_target_tool_prefix}as; ac_word=$2
3951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3952 echo "configure:3953: checking for $ac_word" >&5
3953 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3956 if test -n "$AS_FOR_TARGET"; then
3957 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
3959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3961 for ac_dir in $ac_dummy; do
3962 test -z "$ac_dir" && ac_dir=.
3963 if test -f $ac_dir/$ac_word; then
3964 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
3971 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
3972 if test -n "$AS_FOR_TARGET"; then
3973 echo "$ac_t""$AS_FOR_TARGET" 1>&6
3975 echo "$ac_t""no" 1>&6
3979 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
3980 if test $build = $target ; then
3981 ncn_cv_AS_FOR_TARGET=$AS_FOR_TARGET
3982 # Extract the first word of "as", so it can be a program name with args.
3983 set dummy as; ac_word=$2
3984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3985 echo "configure:3986: checking for $ac_word" >&5
3986 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS_FOR_TARGET'+set}'`\" = set"; then
3987 echo $ac_n "(cached) $ac_c" 1>&6
3989 if test -n "$ncn_cv_AS_FOR_TARGET"; then
3990 ac_cv_prog_ncn_cv_AS_FOR_TARGET="$ncn_cv_AS_FOR_TARGET" # Let the user override the test.
3992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3994 for ac_dir in $ac_dummy; do
3995 test -z "$ac_dir" && ac_dir=.
3996 if test -f $ac_dir/$ac_word; then
3997 ac_cv_prog_ncn_cv_AS_FOR_TARGET="as"
4002 test -z "$ac_cv_prog_ncn_cv_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_AS_FOR_TARGET="as"
4005 ncn_cv_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_AS_FOR_TARGET"
4006 if test -n "$ncn_cv_AS_FOR_TARGET"; then
4007 echo "$ac_t""$ncn_cv_AS_FOR_TARGET" 1>&6
4009 echo "$ac_t""no" 1>&6
4012 AS_FOR_TARGET=$ncn_cv_AS_FOR_TARGET
4014 AS_FOR_TARGET="${ncn_target_tool_prefix}as"
4017 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4020 if test -n "$ncn_target_tool_prefix"; then
4021 # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args.
4022 set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
4023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4024 echo "configure:4025: checking for $ac_word" >&5
4025 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4026 echo $ac_n "(cached) $ac_c" 1>&6
4028 if test -n "$DLLTOOL_FOR_TARGET"; then
4029 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4033 for ac_dir in $ac_dummy; do
4034 test -z "$ac_dir" && ac_dir=.
4035 if test -f $ac_dir/$ac_word; then
4036 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
4043 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4044 if test -n "$DLLTOOL_FOR_TARGET"; then
4045 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4047 echo "$ac_t""no" 1>&6
4051 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
4052 if test $build = $target ; then
4053 ncn_cv_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
4054 # Extract the first word of "dlltool", so it can be a program name with args.
4055 set dummy dlltool; ac_word=$2
4056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4057 echo "configure:4058: checking for $ac_word" >&5
4058 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4059 echo $ac_n "(cached) $ac_c" 1>&6
4061 if test -n "$ncn_cv_DLLTOOL_FOR_TARGET"; then
4062 ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="$ncn_cv_DLLTOOL_FOR_TARGET" # Let the user override the test.
4064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4066 for ac_dir in $ac_dummy; do
4067 test -z "$ac_dir" && ac_dir=.
4068 if test -f $ac_dir/$ac_word; then
4069 ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="dlltool"
4074 test -z "$ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="dlltool"
4077 ncn_cv_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET"
4078 if test -n "$ncn_cv_DLLTOOL_FOR_TARGET"; then
4079 echo "$ac_t""$ncn_cv_DLLTOOL_FOR_TARGET" 1>&6
4081 echo "$ac_t""no" 1>&6
4084 DLLTOOL_FOR_TARGET=$ncn_cv_DLLTOOL_FOR_TARGET
4086 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
4089 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4092 if test -n "$ncn_target_tool_prefix"; then
4093 # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args.
4094 set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
4095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4096 echo "configure:4097: checking for $ac_word" >&5
4097 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
4098 echo $ac_n "(cached) $ac_c" 1>&6
4100 if test -n "$LD_FOR_TARGET"; then
4101 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
4103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4105 for ac_dir in $ac_dummy; do
4106 test -z "$ac_dir" && ac_dir=.
4107 if test -f $ac_dir/$ac_word; then
4108 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
4115 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4116 if test -n "$LD_FOR_TARGET"; then
4117 echo "$ac_t""$LD_FOR_TARGET" 1>&6
4119 echo "$ac_t""no" 1>&6
4123 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
4124 if test $build = $target ; then
4125 ncn_cv_LD_FOR_TARGET=$LD_FOR_TARGET
4126 # Extract the first word of "ld", so it can be a program name with args.
4127 set dummy ld; ac_word=$2
4128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4129 echo "configure:4130: checking for $ac_word" >&5
4130 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD_FOR_TARGET'+set}'`\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4133 if test -n "$ncn_cv_LD_FOR_TARGET"; then
4134 ac_cv_prog_ncn_cv_LD_FOR_TARGET="$ncn_cv_LD_FOR_TARGET" # Let the user override the test.
4136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4138 for ac_dir in $ac_dummy; do
4139 test -z "$ac_dir" && ac_dir=.
4140 if test -f $ac_dir/$ac_word; then
4141 ac_cv_prog_ncn_cv_LD_FOR_TARGET="ld"
4146 test -z "$ac_cv_prog_ncn_cv_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_LD_FOR_TARGET="ld"
4149 ncn_cv_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_LD_FOR_TARGET"
4150 if test -n "$ncn_cv_LD_FOR_TARGET"; then
4151 echo "$ac_t""$ncn_cv_LD_FOR_TARGET" 1>&6
4153 echo "$ac_t""no" 1>&6
4156 LD_FOR_TARGET=$ncn_cv_LD_FOR_TARGET
4158 LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
4161 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4164 if test -n "$ncn_target_tool_prefix"; then
4165 # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args.
4166 set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
4167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4168 echo "configure:4169: checking for $ac_word" >&5
4169 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
4170 echo $ac_n "(cached) $ac_c" 1>&6
4172 if test -n "$NM_FOR_TARGET"; then
4173 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
4175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4177 for ac_dir in $ac_dummy; do
4178 test -z "$ac_dir" && ac_dir=.
4179 if test -f $ac_dir/$ac_word; then
4180 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
4187 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
4188 if test -n "$NM_FOR_TARGET"; then
4189 echo "$ac_t""$NM_FOR_TARGET" 1>&6
4191 echo "$ac_t""no" 1>&6
4195 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
4196 if test $build = $target ; then
4197 ncn_cv_NM_FOR_TARGET=$NM_FOR_TARGET
4198 # Extract the first word of "nm", so it can be a program name with args.
4199 set dummy nm; ac_word=$2
4200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4201 echo "configure:4202: checking for $ac_word" >&5
4202 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM_FOR_TARGET'+set}'`\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4205 if test -n "$ncn_cv_NM_FOR_TARGET"; then
4206 ac_cv_prog_ncn_cv_NM_FOR_TARGET="$ncn_cv_NM_FOR_TARGET" # Let the user override the test.
4208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4210 for ac_dir in $ac_dummy; do
4211 test -z "$ac_dir" && ac_dir=.
4212 if test -f $ac_dir/$ac_word; then
4213 ac_cv_prog_ncn_cv_NM_FOR_TARGET="nm"
4218 test -z "$ac_cv_prog_ncn_cv_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_NM_FOR_TARGET="nm"
4221 ncn_cv_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_NM_FOR_TARGET"
4222 if test -n "$ncn_cv_NM_FOR_TARGET"; then
4223 echo "$ac_t""$ncn_cv_NM_FOR_TARGET" 1>&6
4225 echo "$ac_t""no" 1>&6
4228 NM_FOR_TARGET=$ncn_cv_NM_FOR_TARGET
4230 NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
4233 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
4236 if test -n "$ncn_target_tool_prefix"; then
4237 # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args.
4238 set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
4239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4240 echo "configure:4241: checking for $ac_word" >&5
4241 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4242 echo $ac_n "(cached) $ac_c" 1>&6
4244 if test -n "$RANLIB_FOR_TARGET"; then
4245 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
4247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4249 for ac_dir in $ac_dummy; do
4250 test -z "$ac_dir" && ac_dir=.
4251 if test -f $ac_dir/$ac_word; then
4252 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib"
4259 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
4260 if test -n "$RANLIB_FOR_TARGET"; then
4261 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
4263 echo "$ac_t""no" 1>&6
4267 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
4268 if test $build = $target ; then
4269 ncn_cv_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
4270 # Extract the first word of "ranlib", so it can be a program name with args.
4271 set dummy ranlib; ac_word=$2
4272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4273 echo "configure:4274: checking for $ac_word" >&5
4274 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4275 echo $ac_n "(cached) $ac_c" 1>&6
4277 if test -n "$ncn_cv_RANLIB_FOR_TARGET"; then
4278 ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET="$ncn_cv_RANLIB_FOR_TARGET" # Let the user override the test.
4280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4282 for ac_dir in $ac_dummy; do
4283 test -z "$ac_dir" && ac_dir=.
4284 if test -f $ac_dir/$ac_word; then
4285 ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET="ranlib"
4290 test -z "$ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET=":"
4293 ncn_cv_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET"
4294 if test -n "$ncn_cv_RANLIB_FOR_TARGET"; then
4295 echo "$ac_t""$ncn_cv_RANLIB_FOR_TARGET" 1>&6
4297 echo "$ac_t""no" 1>&6
4300 RANLIB_FOR_TARGET=$ncn_cv_RANLIB_FOR_TARGET
4302 RANLIB_FOR_TARGET=":"
4305 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
4308 if test -n "$ncn_target_tool_prefix"; then
4309 # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args.
4310 set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
4311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4312 echo "configure:4313: checking for $ac_word" >&5
4313 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4316 if test -n "$WINDRES_FOR_TARGET"; then
4317 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
4319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4321 for ac_dir in $ac_dummy; do
4322 test -z "$ac_dir" && ac_dir=.
4323 if test -f $ac_dir/$ac_word; then
4324 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
4331 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
4332 if test -n "$WINDRES_FOR_TARGET"; then
4333 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
4335 echo "$ac_t""no" 1>&6
4339 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
4340 if test $build = $target ; then
4341 ncn_cv_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
4342 # Extract the first word of "windres", so it can be a program name with args.
4343 set dummy windres; ac_word=$2
4344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4345 echo "configure:4346: checking for $ac_word" >&5
4346 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4347 echo $ac_n "(cached) $ac_c" 1>&6
4349 if test -n "$ncn_cv_WINDRES_FOR_TARGET"; then
4350 ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="$ncn_cv_WINDRES_FOR_TARGET" # Let the user override the test.
4352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4354 for ac_dir in $ac_dummy; do
4355 test -z "$ac_dir" && ac_dir=.
4356 if test -f $ac_dir/$ac_word; then
4357 ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="windres"
4362 test -z "$ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="windres"
4365 ncn_cv_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET"
4366 if test -n "$ncn_cv_WINDRES_FOR_TARGET"; then
4367 echo "$ac_t""$ncn_cv_WINDRES_FOR_TARGET" 1>&6
4369 echo "$ac_t""no" 1>&6
4372 WINDRES_FOR_TARGET=$ncn_cv_WINDRES_FOR_TARGET
4374 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
4377 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
4390 # Fix up target tools.
4391 if test "x${build}" = "x${host}" ; then
4392 # In this case, the newly built tools can and should be used,
4393 # so we override the results of the autoconf tests.
4394 # This should really only happen when the tools are actually being built,
4395 # but that's a further refinement. The new build scheme, where
4396 # tools are built into a structure paralleling where they're installed,
4397 # should also eliminate all of this cleanly.
4398 AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)"
4399 AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)"
4400 DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)"
4401 LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)"
4402 NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)"
4403 RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)"
4404 WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)"
4406 # Certain tools may need extra flags.
4407 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
4408 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
4409 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
4411 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4412 echo "configure:4413: checking whether to enable maintainer-specific portions of Makefiles" >&5
4413 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4414 if test "${enable_maintainer_mode+set}" = set; then
4415 enableval="$enable_maintainer_mode"
4416 USE_MAINTAINER_MODE=$enableval
4418 USE_MAINTAINER_MODE=no
4421 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4424 if test "$USE_MAINTAINER_MODE" = yes; then
4425 MAINTAINER_MODE_TRUE=
4426 MAINTAINER_MODE_FALSE='#'
4428 MAINTAINER_MODE_TRUE='#'
4429 MAINTAINER_MODE_FALSE=
4431 MAINT=$MAINTAINER_MODE_TRUE
4434 cat > confcache <<\EOF
4435 # This file is a shell script that caches the results of configure
4436 # tests run on this system so they can be shared between configure
4437 # scripts and configure runs. It is not useful on other systems.
4438 # If it contains results you don't want to keep, you may remove or edit it.
4440 # By default, configure uses ./config.cache as the cache file,
4441 # creating it if it does not exist already. You can give configure
4442 # the --cache-file=FILE option to use a different cache file; that is
4443 # what configure does when it calls configure scripts in
4444 # subdirectories, so they share the cache.
4445 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4446 # config.status only pays attention to the cache file if you give it the
4447 # --recheck option to rerun configure.
4450 # The following way of writing the cache mishandles newlines in values,
4451 # but we know of no workaround that is simple, portable, and efficient.
4452 # So, don't put newlines in cache variables' values.
4453 # Ultrix sh set writes to stderr and can't be redirected directly,
4454 # and sets the high bit in the cache file unless we assign to the vars.
4456 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4458 # `set' does not quote correctly, so add quotes (double-quote substitution
4459 # turns \\\\ into \\, and sed turns \\ into \).
4461 -e "s/'/'\\\\''/g" \
4462 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4465 # `set' quotes correctly as required by POSIX, so do not add quotes.
4466 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4469 if cmp -s $cache_file confcache; then
4472 if test -w $cache_file; then
4473 echo "updating cache $cache_file"
4474 cat confcache > $cache_file
4476 echo "not updating unwritable cache $cache_file"
4481 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4483 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4484 # Let make expand exec_prefix.
4485 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4487 # Any assignment to VPATH causes Sun make to only execute
4488 # the first set of double-colon rules, so remove it if not needed.
4489 # If there is a colon in the path, we need to keep it.
4490 if test "x$srcdir" = x.; then
4491 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4494 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4496 # Transform confdefs.h into DEFS.
4497 # Protect against shell expansion while executing Makefile rules.
4498 # Protect against Makefile macro expansion.
4499 cat > conftest.defs <<\EOF
4500 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4501 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4506 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4510 # Without the "./", some shells look in PATH for config.status.
4511 : ${CONFIG_STATUS=./config.status}
4513 echo creating $CONFIG_STATUS
4514 rm -f $CONFIG_STATUS
4515 cat > $CONFIG_STATUS <<EOF
4517 # Generated automatically by configure.
4518 # Run this file to recreate the current configuration.
4519 # This directory was configured as follows,
4520 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4522 # $0 $ac_configure_args
4524 # Compiler output produced by configure, useful for debugging
4525 # configure, is in ./config.log if it exists.
4527 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4530 case "\$ac_option" in
4531 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4532 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4533 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4534 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4535 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4537 -help | --help | --hel | --he | --h)
4538 echo "\$ac_cs_usage"; exit 0 ;;
4539 *) echo "\$ac_cs_usage"; exit 1 ;;
4543 ac_given_srcdir=$srcdir
4544 ac_given_INSTALL="$INSTALL"
4546 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4548 cat >> $CONFIG_STATUS <<EOF
4550 # Protect against being on the right side of a sed subst in config.status.
4551 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4552 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4556 s%@CFLAGS@%$CFLAGS%g
4557 s%@CPPFLAGS@%$CPPFLAGS%g
4558 s%@CXXFLAGS@%$CXXFLAGS%g
4559 s%@FFLAGS@%$FFLAGS%g
4561 s%@LDFLAGS@%$LDFLAGS%g
4563 s%@exec_prefix@%$exec_prefix%g
4564 s%@prefix@%$prefix%g
4565 s%@program_transform_name@%$program_transform_name%g
4566 s%@bindir@%$bindir%g
4567 s%@sbindir@%$sbindir%g
4568 s%@libexecdir@%$libexecdir%g
4569 s%@datadir@%$datadir%g
4570 s%@sysconfdir@%$sysconfdir%g
4571 s%@sharedstatedir@%$sharedstatedir%g
4572 s%@localstatedir@%$localstatedir%g
4573 s%@libdir@%$libdir%g
4574 s%@includedir@%$includedir%g
4575 s%@oldincludedir@%$oldincludedir%g
4576 s%@infodir@%$infodir%g
4577 s%@mandir@%$mandir%g
4579 s%@host_alias@%$host_alias%g
4580 s%@host_cpu@%$host_cpu%g
4581 s%@host_vendor@%$host_vendor%g
4582 s%@host_os@%$host_os%g
4583 s%@target@%$target%g
4584 s%@target_alias@%$target_alias%g
4585 s%@target_cpu@%$target_cpu%g
4586 s%@target_vendor@%$target_vendor%g
4587 s%@target_os@%$target_os%g
4589 s%@build_alias@%$build_alias%g
4590 s%@build_cpu@%$build_cpu%g
4591 s%@build_vendor@%$build_vendor%g
4592 s%@build_os@%$build_os%g
4593 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4594 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4595 s%@INSTALL_DATA@%$INSTALL_DATA%g
4596 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
4597 s%@build_subdir@%$build_subdir%g
4598 s%@host_subdir@%$host_subdir%g
4599 s%@target_subdir@%$target_subdir%g
4601 s%@GNATBIND@%$GNATBIND%g
4602 /@maybe_dependencies@/r $maybe_dependencies
4603 s%@maybe_dependencies@%%g
4604 /@serialization_dependencies@/r $serialization_dependencies
4605 s%@serialization_dependencies@%%g
4606 /@host_makefile_frag@/r $host_makefile_frag
4607 s%@host_makefile_frag@%%g
4608 /@target_makefile_frag@/r $target_makefile_frag
4609 s%@target_makefile_frag@%%g
4610 /@alphaieee_frag@/r $alphaieee_frag
4611 s%@alphaieee_frag@%%g
4612 /@ospace_frag@/r $ospace_frag
4614 s%@SET_LIB_PATH@%$SET_LIB_PATH%g
4615 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
4616 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
4617 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
4618 s%@configlinks@%$configlinks%g
4619 s%@gcc_version_trigger@%$gcc_version_trigger%g
4620 s%@gcc_version@%$gcc_version%g
4621 s%@tooldir@%$tooldir%g
4622 s%@build_tooldir@%$build_tooldir%g
4623 s%@GDB_TK@%$GDB_TK%g
4624 s%@gxx_include_dir@%$gxx_include_dir%g
4625 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
4626 s%@build_configargs@%$build_configargs%g
4627 s%@configure_build_modules@%$configure_build_modules%g
4628 s%@all_build_modules@%$all_build_modules%g
4629 s%@host_configargs@%$host_configargs%g
4630 s%@configdirs@%$configdirs%g
4631 s%@target_configargs@%$target_configargs%g
4632 s%@target_configdirs@%$target_configdirs%g
4634 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4636 s%@MAKEINFO@%$MAKEINFO%g
4638 s%@config_shell@%$config_shell%g
4640 s%@ncn_cv_AR@%$ncn_cv_AR%g
4642 s%@ncn_cv_AS@%$ncn_cv_AS%g
4643 s%@DLLTOOL@%$DLLTOOL%g
4644 s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g
4646 s%@ncn_cv_LD@%$ncn_cv_LD%g
4648 s%@ncn_cv_NM@%$ncn_cv_NM%g
4649 s%@RANLIB@%$RANLIB%g
4650 s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g
4651 s%@WINDRES@%$WINDRES%g
4652 s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g
4653 s%@OBJCOPY@%$OBJCOPY%g
4654 s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g
4655 s%@OBJDUMP@%$OBJDUMP%g
4656 s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g
4658 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
4659 s%@DEFAULT_YACC@%$DEFAULT_YACC%g
4660 s%@DEFAULT_LEX@%$DEFAULT_LEX%g
4661 s%@DEFAULT_M4@%$DEFAULT_M4%g
4662 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
4663 s%@ncn_cv_AR_FOR_TARGET@%$ncn_cv_AR_FOR_TARGET%g
4664 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
4665 s%@ncn_cv_AS_FOR_TARGET@%$ncn_cv_AS_FOR_TARGET%g
4666 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
4667 s%@ncn_cv_DLLTOOL_FOR_TARGET@%$ncn_cv_DLLTOOL_FOR_TARGET%g
4668 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
4669 s%@ncn_cv_LD_FOR_TARGET@%$ncn_cv_LD_FOR_TARGET%g
4670 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
4671 s%@ncn_cv_NM_FOR_TARGET@%$ncn_cv_NM_FOR_TARGET%g
4672 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
4673 s%@ncn_cv_RANLIB_FOR_TARGET@%$ncn_cv_RANLIB_FOR_TARGET%g
4674 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
4675 s%@ncn_cv_WINDRES_FOR_TARGET@%$ncn_cv_WINDRES_FOR_TARGET%g
4676 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
4677 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
4678 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
4679 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
4680 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
4681 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
4682 s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4683 s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4684 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4685 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4691 cat >> $CONFIG_STATUS <<\EOF
4693 # Split the substitutions into bite-sized pieces for seds with
4694 # small command number limits, like on Digital OSF/1 and HP-UX.
4695 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4696 ac_file=1 # Number of current file.
4697 ac_beg=1 # First line for current file.
4698 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4701 while $ac_more_lines; do
4702 if test $ac_beg -gt 1; then
4703 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4705 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4707 if test ! -s conftest.s$ac_file; then
4709 rm -f conftest.s$ac_file
4711 if test -z "$ac_sed_cmds"; then
4712 ac_sed_cmds="sed -f conftest.s$ac_file"
4714 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4716 ac_file=`expr $ac_file + 1`
4718 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4721 if test -z "$ac_sed_cmds"; then
4726 cat >> $CONFIG_STATUS <<EOF
4728 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4730 cat >> $CONFIG_STATUS <<\EOF
4731 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4732 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4734 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4735 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4736 *) ac_file_in="${ac_file}.in" ;;
4739 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4741 # Remove last slash and all that follows it. Not all systems have dirname.
4742 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4743 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4744 # The file is in a subdirectory.
4745 test ! -d "$ac_dir" && mkdir "$ac_dir"
4746 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4747 # A "../" for each directory in $ac_dir_suffix.
4748 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4750 ac_dir_suffix= ac_dots=
4753 case "$ac_given_srcdir" in
4755 if test -z "$ac_dots"; then top_srcdir=.
4756 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4757 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4759 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4760 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4763 case "$ac_given_INSTALL" in
4764 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4765 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4768 echo creating "$ac_file"
4770 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4772 *Makefile*) ac_comsub="1i\\
4773 # $configure_input" ;;
4777 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4779 s%@configure_input@%$configure_input%g
4780 s%@srcdir@%$srcdir%g
4781 s%@top_srcdir@%$top_srcdir%g
4782 s%@INSTALL@%$INSTALL%g
4783 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4788 cat >> $CONFIG_STATUS <<EOF
4791 cat >> $CONFIG_STATUS <<\EOF
4795 chmod +x $CONFIG_STATUS
4796 rm -fr confdefs* $ac_clean_files
4797 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1