* Makefile.tpl (build_alias, host_alias, target_alias): Use
[binutils.git] / configure
blob278bfc2dde9a1022640c84e7c2661c51e9030693
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="move-if-change"
275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GNATBIND ac_ct_GNATBIND do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES OBJCOPY OBJDUMP CXX CFLAGS_FOR_BUILD CXXFLAGS CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
276 ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
278 # Initialize some variables set by options.
279 ac_init_help=
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
283 cache_file=/dev/null
284 exec_prefix=NONE
285 no_create=
286 no_recursion=
287 prefix=NONE
288 program_prefix=NONE
289 program_suffix=NONE
290 program_transform_name=s,x,x,
291 silent=
292 site=
293 srcdir=
294 verbose=
295 x_includes=NONE
296 x_libraries=NONE
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
316 ac_prev=
317 for ac_option
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328 # Accept the important Cygnus configure options, so we can diagnose typos.
330 case $ac_option in
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335 bindir=$ac_optarg ;;
337 -build | --build | --buil | --bui | --bu)
338 ac_prev=build_alias ;;
339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340 build_alias=$ac_optarg ;;
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347 cache_file=$ac_optarg ;;
349 --config-cache | -C)
350 cache_file=config.cache ;;
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
356 datadir=$ac_optarg ;;
358 -disable-* | --disable-*)
359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360 # Reject names that are not valid shell variable names.
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
367 -enable-* | --enable-*)
368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369 # Reject names that are not valid shell variable names.
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "enable_$ac_feature='$ac_optarg'" ;;
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
387 exec_prefix=$ac_optarg ;;
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
400 -host | --host | --hos | --ho)
401 ac_prev=host_alias ;;
402 -host=* | --host=* | --hos=* | --ho=*)
403 host_alias=$ac_optarg ;;
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
410 includedir=$ac_optarg ;;
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415 infodir=$ac_optarg ;;
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
420 libdir=$ac_optarg ;;
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
427 libexecdir=$ac_optarg ;;
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436 localstatedir=$ac_optarg ;;
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441 mandir=$ac_optarg ;;
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c | -n)
449 no_create=yes ;;
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462 oldincludedir=$ac_optarg ;;
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467 prefix=$ac_optarg ;;
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474 program_prefix=$ac_optarg ;;
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481 program_suffix=$ac_optarg ;;
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
498 program_transform_name=$ac_optarg ;;
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
508 sbindir=$ac_optarg ;;
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
519 sharedstatedir=$ac_optarg ;;
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
524 site=$ac_optarg ;;
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529 srcdir=$ac_optarg ;;
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536 sysconfdir=$ac_optarg ;;
538 -target | --target | --targe | --targ | --tar | --ta | --t)
539 ac_prev=target_alias ;;
540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541 target_alias=$ac_optarg ;;
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
549 -with-* | --with-*)
550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "with_$ac_package='$ac_optarg'" ;;
562 -without-* | --without-*)
563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580 x_includes=$ac_optarg ;;
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587 x_libraries=$ac_optarg ;;
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
612 esac
613 done
615 if test -n "$ac_prev"; then
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630 done
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
641 esac
642 done
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
647 build=$build_alias
648 host=$host_alias
649 target=$target_alias
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
662 ac_tool_prefix=
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665 test "$silent" = yes && exec 6>/dev/null
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678 echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
688 else
689 ac_srcdir_defaulted=no
691 if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
695 else
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
717 ac_env_CC_value=$CC
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
734 # Report the --help message.
736 if test "$ac_init_help" = "long"; then
737 # Omit some internal or obsolete options to make the list less imposing.
738 # This message is too long to be a string in the A/UX 3.1 sh.
739 cat <<_ACEOF
740 \`configure' configures this package to adapt to many kinds of systems.
742 Usage: $0 [OPTION]... [VAR=VALUE]...
744 To assign environment variables (e.g., CC, CFLAGS...), specify them as
745 VAR=VALUE. See below for descriptions of some of the useful variables.
747 Defaults for the options are specified in brackets.
749 Configuration:
750 -h, --help display this help and exit
751 --help=short display options specific to this package
752 --help=recursive display the short help of all the included packages
753 -V, --version display version information and exit
754 -q, --quiet, --silent do not print \`checking...' messages
755 --cache-file=FILE cache test results in FILE [disabled]
756 -C, --config-cache alias for \`--cache-file=config.cache'
757 -n, --no-create do not create output files
758 --srcdir=DIR find the sources in DIR [configure dir or \`..']
760 _ACEOF
762 cat <<_ACEOF
763 Installation directories:
764 --prefix=PREFIX install architecture-independent files in PREFIX
765 [$ac_default_prefix]
766 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
767 [PREFIX]
769 By default, \`make install' will install all the files in
770 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
771 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
772 for instance \`--prefix=\$HOME'.
774 For better control, use the options below.
776 Fine tuning of the installation directories:
777 --bindir=DIR user executables [EPREFIX/bin]
778 --sbindir=DIR system admin executables [EPREFIX/sbin]
779 --libexecdir=DIR program executables [EPREFIX/libexec]
780 --datadir=DIR read-only architecture-independent data [PREFIX/share]
781 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
782 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
783 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
784 --libdir=DIR object code libraries [EPREFIX/lib]
785 --includedir=DIR C header files [PREFIX/include]
786 --oldincludedir=DIR C header files for non-gcc [/usr/include]
787 --infodir=DIR info documentation [PREFIX/info]
788 --mandir=DIR man documentation [PREFIX/man]
789 _ACEOF
791 cat <<\_ACEOF
793 Program names:
794 --program-prefix=PREFIX prepend PREFIX to installed program names
795 --program-suffix=SUFFIX append SUFFIX to installed program names
796 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
798 System types:
799 --build=BUILD configure for building on BUILD [guessed]
800 --host=HOST cross-compile to build programs to run on HOST [BUILD]
801 --target=TARGET configure for building compilers for TARGET [HOST]
802 _ACEOF
805 if test -n "$ac_init_help"; then
807 cat <<\_ACEOF
809 Optional Features:
810 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
811 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
812 --enable-libada Builds libada directory
813 --enable-libssp Builds libssp directory
814 --enable-stage1-languages=all choose additional languages to build during
815 stage1. Mostly useful for compiler development.
816 --enable-objc-gc enable the use of Boehm's garbage collector with
817 the GNU Objective-C runtime.
818 --enable-bootstrap Enable bootstrapping yes if native build
819 --enable-serial-{host,target,build}-configure
820 Force sequential configuration of
821 sub-packages for the host, target or build
822 machine, or all sub-packages
823 --enable-maintainer-mode enable make rules and dependencies not useful
824 (and sometimes confusing) to the casual installer
825 --enable-stage1-checking=all choose additional checking for stage1
826 of the compiler.
827 --enable-werror enable -Werror in bootstrap stage2 and later
829 Optional Packages:
830 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
831 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
832 --with-build-libsubdir=DIR Directory where to find libraries for build system
833 --with-mpfr-dir=PATH This option has been REMOVED
834 --with-mpfr=PATH Specify prefix directory for installed MPFR package
835 Equivalent to --with-mpfr-include=PATH/include
836 plus --with-mpfr-lib=PATH/lib
837 --with-mpfr-include=PATH
838 Specify directory for installed MPFR include files
839 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
840 --with-gmp-dir=PATH This option has been REMOVED
841 --with-gmp=PATH Specify prefix directory for the installed GMP package
842 Equivalent to --with-gmp-include=PATH/include
843 plus --with-gmp-lib=PATH/lib
844 --with-gmp-include=PATH Specify directory for installed GMP include files
845 --with-gmp-lib=PATH Specify the directory for the installed GMP library
846 --with-build-sysroot=sysroot
847 use sysroot as the system root during the build
848 --with-build-time-tools=path
849 use given path to find target tools during the build
850 --with-datarootdir Use datarootdir as the data root directory.
851 --with-docdir Install documentation in this directory.
852 --with-htmldir Install html in this directory.
854 Some influential environment variables:
855 CC C compiler command
856 CFLAGS C compiler flags
857 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
858 nonstandard directory <lib dir>
859 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
860 headers in a nonstandard directory <include dir>
862 Use these variables to override the choices made by `configure' or to help
863 it to find libraries and programs with nonstandard names/locations.
865 _ACEOF
868 if test "$ac_init_help" = "recursive"; then
869 # If there are subdirs, report their specific --help.
870 ac_popdir=`pwd`
871 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
872 test -d $ac_dir || continue
873 ac_builddir=.
875 if test "$ac_dir" != .; then
876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
877 # A "../" for each directory in $ac_dir_suffix.
878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
879 else
880 ac_dir_suffix= ac_top_builddir=
883 case $srcdir in
884 .) # No --srcdir option. We are building in place.
885 ac_srcdir=.
886 if test -z "$ac_top_builddir"; then
887 ac_top_srcdir=.
888 else
889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
890 fi ;;
891 [\\/]* | ?:[\\/]* ) # Absolute path.
892 ac_srcdir=$srcdir$ac_dir_suffix;
893 ac_top_srcdir=$srcdir ;;
894 *) # Relative path.
895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
897 esac
899 # Do not use `cd foo && pwd` to compute absolute paths, because
900 # the directories may not exist.
901 case `pwd` in
902 .) ac_abs_builddir="$ac_dir";;
904 case "$ac_dir" in
905 .) ac_abs_builddir=`pwd`;;
906 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
907 *) ac_abs_builddir=`pwd`/"$ac_dir";;
908 esac;;
909 esac
910 case $ac_abs_builddir in
911 .) ac_abs_top_builddir=${ac_top_builddir}.;;
913 case ${ac_top_builddir}. in
914 .) ac_abs_top_builddir=$ac_abs_builddir;;
915 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
916 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
917 esac;;
918 esac
919 case $ac_abs_builddir in
920 .) ac_abs_srcdir=$ac_srcdir;;
922 case $ac_srcdir in
923 .) ac_abs_srcdir=$ac_abs_builddir;;
924 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
925 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
926 esac;;
927 esac
928 case $ac_abs_builddir in
929 .) ac_abs_top_srcdir=$ac_top_srcdir;;
931 case $ac_top_srcdir in
932 .) ac_abs_top_srcdir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
934 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
935 esac;;
936 esac
938 cd $ac_dir
939 # Check for guested configure; otherwise get Cygnus style configure.
940 if test -f $ac_srcdir/configure.gnu; then
941 echo
942 $SHELL $ac_srcdir/configure.gnu --help=recursive
943 elif test -f $ac_srcdir/configure; then
944 echo
945 $SHELL $ac_srcdir/configure --help=recursive
946 elif test -f $ac_srcdir/configure.ac ||
947 test -f $ac_srcdir/configure.in; then
948 echo
949 $ac_configure --help
950 else
951 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
953 cd $ac_popdir
954 done
957 test -n "$ac_init_help" && exit 0
958 if $ac_init_version; then
959 cat <<\_ACEOF
961 Copyright (C) 2003 Free Software Foundation, Inc.
962 This configure script is free software; the Free Software Foundation
963 gives unlimited permission to copy, distribute and modify it.
964 _ACEOF
965 exit 0
967 exec 5>config.log
968 cat >&5 <<_ACEOF
969 This file contains any messages produced by compilers while
970 running configure, to aid debugging if configure makes a mistake.
972 It was created by $as_me, which was
973 generated by GNU Autoconf 2.59. Invocation command line was
975 $ $0 $@
977 _ACEOF
979 cat <<_ASUNAME
980 ## --------- ##
981 ## Platform. ##
982 ## --------- ##
984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
991 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
993 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
994 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
996 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
997 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
998 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
999 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1001 _ASUNAME
1003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 for as_dir in $PATH
1006 IFS=$as_save_IFS
1007 test -z "$as_dir" && as_dir=.
1008 echo "PATH: $as_dir"
1009 done
1011 } >&5
1013 cat >&5 <<_ACEOF
1016 ## ----------- ##
1017 ## Core tests. ##
1018 ## ----------- ##
1020 _ACEOF
1023 # Keep a trace of the command line.
1024 # Strip out --no-create and --no-recursion so they do not pile up.
1025 # Strip out --silent because we don't want to record it for future runs.
1026 # Also quote any args containing shell meta-characters.
1027 # Make two passes to allow for proper duplicate-argument suppression.
1028 ac_configure_args=
1029 ac_configure_args0=
1030 ac_configure_args1=
1031 ac_sep=
1032 ac_must_keep_next=false
1033 for ac_pass in 1 2
1035 for ac_arg
1037 case $ac_arg in
1038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1041 continue ;;
1042 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1043 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1044 esac
1045 case $ac_pass in
1046 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1048 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1049 if test $ac_must_keep_next = true; then
1050 ac_must_keep_next=false # Got value, back to normal.
1051 else
1052 case $ac_arg in
1053 *=* | --config-cache | -C | -disable-* | --disable-* \
1054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1056 | -with-* | --with-* | -without-* | --without-* | --x)
1057 case "$ac_configure_args0 " in
1058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1059 esac
1061 -* ) ac_must_keep_next=true ;;
1062 esac
1064 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1065 # Get rid of the leading space.
1066 ac_sep=" "
1068 esac
1069 done
1070 done
1071 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1072 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1074 # When interrupted or exit'd, cleanup temporary files, and complete
1075 # config.log. We remove comments because anyway the quotes in there
1076 # would cause problems or look ugly.
1077 # WARNING: Be sure not to use single quotes in there, as some shells,
1078 # such as our DU 5.0 friend, will then `close' the trap.
1079 trap 'exit_status=$?
1080 # Save into config.log some information that might help in debugging.
1082 echo
1084 cat <<\_ASBOX
1085 ## ---------------- ##
1086 ## Cache variables. ##
1087 ## ---------------- ##
1088 _ASBOX
1089 echo
1090 # The following way of writing the cache mishandles newlines in values,
1092 (set) 2>&1 |
1093 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1094 *ac_space=\ *)
1095 sed -n \
1096 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1100 sed -n \
1101 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1103 esac;
1105 echo
1107 cat <<\_ASBOX
1108 ## ----------------- ##
1109 ## Output variables. ##
1110 ## ----------------- ##
1111 _ASBOX
1112 echo
1113 for ac_var in $ac_subst_vars
1115 eval ac_val=$`echo $ac_var`
1116 echo "$ac_var='"'"'$ac_val'"'"'"
1117 done | sort
1118 echo
1120 if test -n "$ac_subst_files"; then
1121 cat <<\_ASBOX
1122 ## ------------- ##
1123 ## Output files. ##
1124 ## ------------- ##
1125 _ASBOX
1126 echo
1127 for ac_var in $ac_subst_files
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1131 done | sort
1132 echo
1135 if test -s confdefs.h; then
1136 cat <<\_ASBOX
1137 ## ----------- ##
1138 ## confdefs.h. ##
1139 ## ----------- ##
1140 _ASBOX
1141 echo
1142 sed "/^$/d" confdefs.h | sort
1143 echo
1145 test "$ac_signal" != 0 &&
1146 echo "$as_me: caught signal $ac_signal"
1147 echo "$as_me: exit $exit_status"
1148 } >&5
1149 rm -f core *.core &&
1150 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1151 exit $exit_status
1153 for ac_signal in 1 2 13 15; do
1154 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1155 done
1156 ac_signal=0
1158 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1159 rm -rf conftest* confdefs.h
1160 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1161 echo >confdefs.h
1163 # Predefined preprocessor variables.
1165 cat >>confdefs.h <<_ACEOF
1166 #define PACKAGE_NAME "$PACKAGE_NAME"
1167 _ACEOF
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1172 _ACEOF
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1177 _ACEOF
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_STRING "$PACKAGE_STRING"
1182 _ACEOF
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1187 _ACEOF
1190 # Let the site file select an alternate cache file if it wants to.
1191 # Prefer explicitly selected file to automatically selected ones.
1192 if test -z "$CONFIG_SITE"; then
1193 if test "x$prefix" != xNONE; then
1194 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1195 else
1196 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1199 for ac_site_file in $CONFIG_SITE; do
1200 if test -r "$ac_site_file"; then
1201 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1202 echo "$as_me: loading site script $ac_site_file" >&6;}
1203 sed 's/^/| /' "$ac_site_file" >&5
1204 . "$ac_site_file"
1206 done
1208 if test -r "$cache_file"; then
1209 # Some versions of bash will fail to source /dev/null (special
1210 # files actually), so we avoid doing that.
1211 if test -f "$cache_file"; then
1212 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1213 echo "$as_me: loading cache $cache_file" >&6;}
1214 case $cache_file in
1215 [\\/]* | ?:[\\/]* ) . $cache_file;;
1216 *) . ./$cache_file;;
1217 esac
1219 else
1220 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1221 echo "$as_me: creating cache $cache_file" >&6;}
1222 >$cache_file
1225 # Check that the precious variables saved in the cache have kept the same
1226 # value.
1227 ac_cache_corrupted=false
1228 for ac_var in `(set) 2>&1 |
1229 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1230 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1231 eval ac_new_set=\$ac_env_${ac_var}_set
1232 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1233 eval ac_new_val="\$ac_env_${ac_var}_value"
1234 case $ac_old_set,$ac_new_set in
1235 set,)
1236 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1237 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1238 ac_cache_corrupted=: ;;
1239 ,set)
1240 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1241 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1242 ac_cache_corrupted=: ;;
1243 ,);;
1245 if test "x$ac_old_val" != "x$ac_new_val"; then
1246 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1247 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1248 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1249 echo "$as_me: former value: $ac_old_val" >&2;}
1250 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1251 echo "$as_me: current value: $ac_new_val" >&2;}
1252 ac_cache_corrupted=:
1253 fi;;
1254 esac
1255 # Pass precious variables to config.status.
1256 if test "$ac_new_set" = set; then
1257 case $ac_new_val in
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 *) ac_arg=$ac_var=$ac_new_val ;;
1261 esac
1262 case " $ac_configure_args " in
1263 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1264 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1265 esac
1267 done
1268 if $ac_cache_corrupted; then
1269 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1270 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1271 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1272 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1273 { (exit 1); exit 1; }; }
1276 ac_ext=c
1277 ac_cpp='$CPP $CPPFLAGS'
1278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302 # Find the build, host, and target systems.
1303 ac_aux_dir=
1304 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1305 if test -f $ac_dir/install-sh; then
1306 ac_aux_dir=$ac_dir
1307 ac_install_sh="$ac_aux_dir/install-sh -c"
1308 break
1309 elif test -f $ac_dir/install.sh; then
1310 ac_aux_dir=$ac_dir
1311 ac_install_sh="$ac_aux_dir/install.sh -c"
1312 break
1313 elif test -f $ac_dir/shtool; then
1314 ac_aux_dir=$ac_dir
1315 ac_install_sh="$ac_aux_dir/shtool install -c"
1316 break
1318 done
1319 if test -z "$ac_aux_dir"; then
1320 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1321 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1322 { (exit 1); exit 1; }; }
1324 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1325 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1326 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1328 # Make sure we can run config.sub.
1329 $ac_config_sub sun4 >/dev/null 2>&1 ||
1330 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1331 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1332 { (exit 1); exit 1; }; }
1334 echo "$as_me:$LINENO: checking build system type" >&5
1335 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1336 if test "${ac_cv_build+set}" = set; then
1337 echo $ECHO_N "(cached) $ECHO_C" >&6
1338 else
1339 ac_cv_build_alias=$build_alias
1340 test -z "$ac_cv_build_alias" &&
1341 ac_cv_build_alias=`$ac_config_guess`
1342 test -z "$ac_cv_build_alias" &&
1343 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1344 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1345 { (exit 1); exit 1; }; }
1346 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1347 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1348 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1349 { (exit 1); exit 1; }; }
1352 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1353 echo "${ECHO_T}$ac_cv_build" >&6
1354 build=$ac_cv_build
1355 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1356 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1357 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1360 case ${build_alias} in
1361 "") build_noncanonical=${build} ;;
1362 *) build_noncanonical=${build_alias} ;;
1363 esac
1367 case ${host_alias} in
1368 "") host_noncanonical=${build_noncanonical} ;;
1369 *) host_noncanonical=${host_alias} ;;
1370 esac
1374 case ${target_alias} in
1375 "") target_noncanonical=${host_noncanonical} ;;
1376 *) target_noncanonical=${target_alias} ;;
1377 esac
1382 test "$host_noncanonical" = "$target_noncanonical" &&
1383 test "$program_prefix$program_suffix$program_transform_name" = \
1384 NONENONEs,x,x, &&
1385 program_transform_name=s,y,y,
1387 echo "$as_me:$LINENO: checking host system type" >&5
1388 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1389 if test "${ac_cv_host+set}" = set; then
1390 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 else
1392 ac_cv_host_alias=$host_alias
1393 test -z "$ac_cv_host_alias" &&
1394 ac_cv_host_alias=$ac_cv_build_alias
1395 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1396 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1397 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1398 { (exit 1); exit 1; }; }
1401 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1402 echo "${ECHO_T}$ac_cv_host" >&6
1403 host=$ac_cv_host
1404 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1405 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1406 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1409 echo "$as_me:$LINENO: checking target system type" >&5
1410 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1411 if test "${ac_cv_target+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 else
1414 ac_cv_target_alias=$target_alias
1415 test "x$ac_cv_target_alias" = "x" &&
1416 ac_cv_target_alias=$ac_cv_host_alias
1417 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1418 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1419 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1420 { (exit 1); exit 1; }; }
1423 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1424 echo "${ECHO_T}$ac_cv_target" >&6
1425 target=$ac_cv_target
1426 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431 # The aliases save the names the user supplied, while $host etc.
1432 # will get canonicalized.
1433 test -n "$target_alias" &&
1434 test "$program_prefix$program_suffix$program_transform_name" = \
1435 NONENONEs,x,x, &&
1436 program_prefix=${target_alias}-
1437 test "$program_prefix" != NONE &&
1438 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1439 # Use a double $ so make ignores it.
1440 test "$program_suffix" != NONE &&
1441 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1442 # Double any \ or $. echo might interpret backslashes.
1443 # By default was `s,x,x', remove it if useless.
1444 cat <<\_ACEOF >conftest.sed
1445 s/[\\$]/&&/g;s/;s,x,x,$//
1446 _ACEOF
1447 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1448 rm conftest.sed
1452 # Get 'install' or 'install-sh' and its variants.
1453 # Find a good install program. We prefer a C program (faster),
1454 # so one script is as good as another. But avoid the broken or
1455 # incompatible versions:
1456 # SysV /etc/install, /usr/sbin/install
1457 # SunOS /usr/etc/install
1458 # IRIX /sbin/install
1459 # AIX /bin/install
1460 # AmigaOS /C/install, which installs bootblocks on floppy discs
1461 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1462 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1463 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1464 # OS/2's system install, which has a completely different semantic
1465 # ./install, which can be erroneously created by make from ./install.sh.
1466 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1467 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1468 if test -z "$INSTALL"; then
1469 if test "${ac_cv_path_install+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1471 else
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473 for as_dir in $PATH
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 # Account for people who put trailing slashes in PATH elements.
1478 case $as_dir/ in
1479 ./ | .// | /cC/* | \
1480 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1481 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1482 /usr/ucb/* ) ;;
1484 # OSF1 and SCO ODT 3.0 have their own names for install.
1485 # Don't use installbsd from OSF since it installs stuff as root
1486 # by default.
1487 for ac_prog in ginstall scoinst install; do
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1490 if test $ac_prog = install &&
1491 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1492 # AIX install. It has an incompatible calling convention.
1494 elif test $ac_prog = install &&
1495 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1496 # program-specific install script used by HP pwplus--don't use.
1498 else
1499 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1500 break 3
1503 done
1504 done
1506 esac
1507 done
1511 if test "${ac_cv_path_install+set}" = set; then
1512 INSTALL=$ac_cv_path_install
1513 else
1514 # As a last resort, use the slow shell script. We don't cache a
1515 # path for INSTALL within a source directory, because that will
1516 # break other packages using the cache if that directory is
1517 # removed, or if the path is relative.
1518 INSTALL=$ac_install_sh
1521 echo "$as_me:$LINENO: result: $INSTALL" >&5
1522 echo "${ECHO_T}$INSTALL" >&6
1524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1525 # It thinks the first close brace ends the variable substitution.
1526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1528 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1530 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1532 echo "$as_me:$LINENO: checking whether ln works" >&5
1533 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1534 if test "${acx_cv_prog_LN+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 else
1537 rm -f conftestdata_t
1538 echo >conftestdata_f
1539 if ln conftestdata_f conftestdata_t 2>/dev/null
1540 then
1541 acx_cv_prog_LN=ln
1542 else
1543 acx_cv_prog_LN=no
1545 rm -f conftestdata_f conftestdata_t
1548 if test $acx_cv_prog_LN = no; then
1549 LN="cp"
1550 echo "$as_me:$LINENO: result: no, using $LN" >&5
1551 echo "${ECHO_T}no, using $LN" >&6
1552 else
1553 LN="$acx_cv_prog_LN"
1554 echo "$as_me:$LINENO: result: yes" >&5
1555 echo "${ECHO_T}yes" >&6
1558 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1559 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1560 LN_S=$as_ln_s
1561 if test "$LN_S" = "ln -s"; then
1562 echo "$as_me:$LINENO: result: yes" >&5
1563 echo "${ECHO_T}yes" >&6
1564 else
1565 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1566 echo "${ECHO_T}no, using $LN_S" >&6
1570 ### we might need to use some other shell than /bin/sh for running subshells
1571 ### If we are on Windows, search for the shell. This will permit people
1572 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1573 ### without also having to set CONFIG_SHELL. This code will work when
1574 ### using bash, which sets OSTYPE.
1575 case "${OSTYPE}" in
1576 *win32*)
1577 if test x${CONFIG_SHELL} = x ; then
1578 if test ! -f /bin/sh ; then
1579 if test x${SHELL} != x && test -f ${SHELL} ; then
1580 CONFIG_SHELL=${SHELL}
1581 export CONFIG_SHELL
1582 else
1583 for prog in sh sh.exe bash bash.exe; do
1584 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1585 for dir in $PATH; do
1586 test -z "$dir" && dir=.
1587 if test -f $dir/$prog; then
1588 CONFIG_SHELL=$dir/$prog
1589 export CONFIG_SHELL
1590 break
1592 done
1593 IFS="$save_ifs"
1594 test -n "${CONFIG_SHELL}" && break
1595 done
1600 esac
1602 config_shell=${CONFIG_SHELL-/bin/sh}
1604 progname=$0
1605 # if PWD already has a value, it is probably wrong.
1606 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1608 # Export original configure arguments for use by sub-configures. These
1609 # will be expanded by make, so quote '$'.
1610 tmp="$progname $@"
1611 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
1612 $tmp
1613 EOF_SED
1614 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
1615 rm -f conftestsed.out
1618 moveifchange=${srcdir}/move-if-change
1620 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1622 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
1623 # a relative path.
1624 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1625 INSTALL="${srcpwd}/install-sh -c"
1628 # Set srcdir to "." if that's what it is.
1629 # This is important for multilib support.
1630 pwd=`${PWDCMD-pwd}`
1631 if test "${pwd}" = "${srcpwd}" ; then
1632 srcdir=.
1635 topsrcdir=$srcpwd
1637 extra_host_args=
1639 ### To add a new directory to the tree, first choose whether it is a target
1640 ### or a host dependent tool. Then put it into the appropriate list
1641 ### (library or tools, host or target), doing a dependency sort.
1643 # Subdirs will be configured in the order listed in build_configdirs,
1644 # configdirs, or target_configdirs; see the serialization section below.
1646 # Dependency sorting is only needed when *configuration* must be done in
1647 # a particular order. In all cases a dependency should be specified in
1648 # the Makefile, whether or not it's implicitly specified here.
1650 # Double entries in build_configdirs, configdirs, or target_configdirs may
1651 # cause circular dependencies and break everything horribly.
1653 # these library is used by various programs built for the build
1654 # environment
1656 build_libs="build-libiberty"
1658 # these tools are built for the build environment
1659 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1661 # these libraries are used by various programs built for the host environment
1663 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
1665 # these tools are built for the host environment
1666 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1667 # know that we are building the simulator.
1668 # binutils, gas and ld appear in that order because it makes sense to run
1669 # "make check" in that particular order.
1670 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
1672 # libgcj represents the runtime libraries only used by gcj.
1673 libgcj="target-libffi \
1674 target-zlib \
1675 target-qthreads \
1676 target-libjava"
1678 # these libraries are built for the target environment, and are built after
1679 # the host libraries and the host tools (which may be a cross compiler)
1681 target_libraries="target-libiberty \
1682 target-libgcc \
1683 target-libgloss \
1684 target-newlib \
1685 target-libstdc++-v3 \
1686 target-libmudflap \
1687 target-libssp \
1688 target-libgfortran \
1689 target-boehm-gc \
1690 ${libgcj} \
1691 target-libobjc \
1692 target-libada \
1693 target-libgomp"
1695 # these tools are built using the target libraries, and are intended to
1696 # run only in the target environment
1698 # note: any program that *uses* libraries that are in the "target_libraries"
1699 # list belongs in this list. those programs are also very likely
1700 # candidates for the "native_only" list which follows
1702 target_tools="target-examples target-groff target-gperf target-rda"
1704 ################################################################################
1706 ## All tools belong in one of the four categories, and are assigned above
1707 ## We assign ${configdirs} this way to remove all embedded newlines. This
1708 ## is important because configure will choke if they ever get through.
1709 ## ${configdirs} is directories we build using the host tools.
1710 ## ${target_configdirs} is directories we build using the target tools.
1711 configdirs=`echo ${host_libs} ${host_tools}`
1712 target_configdirs=`echo ${target_libraries} ${target_tools}`
1713 build_configdirs=`echo ${build_libs} ${build_tools}`
1715 ################################################################################
1717 srcname="gnu development package"
1719 # This gets set non-empty for some net releases of packages.
1720 appdirs=""
1722 # Define is_cross_compiler to save on calls to 'test'.
1723 is_cross_compiler=
1724 if test x"${host}" = x"${target}" ; then
1725 is_cross_compiler=no
1726 else
1727 is_cross_compiler=yes
1730 # Find the build and target subdir names.
1732 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1733 # have matching libraries, they should use host libraries: Makefile.tpl
1734 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1735 # However, they still use the build modules, because the corresponding
1736 # host modules (e.g. bison) are only built for the host when bootstrap
1737 # finishes. So:
1738 # - build_subdir is where we find build modules, and never changes.
1739 # - build_libsubdir is where we find build libraries, and can be overridden.
1741 # Prefix 'build-' so this never conflicts with target_subdir.
1742 build_subdir="build-${build_noncanonical}"
1744 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1745 if test "${with_build_libsubdir+set}" = set; then
1746 withval="$with_build_libsubdir"
1747 build_libsubdir="$withval"
1748 else
1749 build_libsubdir="$build_subdir"
1751 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1752 if ( test $srcdir = . && test -d gcc ) \
1753 || test -d $srcdir/../host-${host_noncanonical}; then
1754 host_subdir="host-${host_noncanonical}"
1755 else
1756 host_subdir=.
1758 # No prefix.
1759 target_subdir=${target_noncanonical}
1762 # Skipdirs are removed silently.
1763 skipdirs=
1764 # Noconfigdirs are removed loudly.
1765 noconfigdirs=""
1767 use_gnu_ld=
1768 # Make sure we don't let GNU ld be added if we didn't want it.
1769 if test x$with_gnu_ld = xno ; then
1770 use_gnu_ld=no
1771 noconfigdirs="$noconfigdirs ld"
1774 use_gnu_as=
1775 # Make sure we don't let GNU as be added if we didn't want it.
1776 if test x$with_gnu_as = xno ; then
1777 use_gnu_as=no
1778 noconfigdirs="$noconfigdirs gas"
1781 # some tools are so dependent upon X11 that if we're not building with X,
1782 # it's not even worth trying to configure, much less build, that tool.
1784 case ${with_x} in
1785 yes | "") ;; # the default value for this tree is that X11 is available
1787 skipdirs="${skipdirs} tk itcl libgui"
1788 # We won't be able to build gdbtk without X.
1789 enable_gdbtk=no
1791 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1792 esac
1794 # Some tools are only suitable for building in a "native" situation.
1795 # Remove these if host!=target.
1796 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1798 # Similarly, some are only suitable for cross toolchains.
1799 # Remove these if host=target.
1800 cross_only="target-libgloss target-newlib target-opcodes"
1802 case $is_cross_compiler in
1803 no) skipdirs="${skipdirs} ${cross_only}" ;;
1804 yes) skipdirs="${skipdirs} ${native_only}" ;;
1805 esac
1807 # If both --with-headers and --with-libs are specified, default to
1808 # --without-newlib.
1809 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1810 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1811 if test x"${with_newlib}" = x ; then
1812 with_newlib=no
1816 # Recognize --with-newlib/--without-newlib.
1817 case ${with_newlib} in
1818 no) skipdirs="${skipdirs} target-newlib" ;;
1819 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1820 esac
1822 # Configure extra directories which are host specific
1824 case "${host}" in
1825 *-cygwin*)
1826 configdirs="$configdirs libtermcap" ;;
1827 esac
1829 # A target can indicate whether a language isn't supported for some reason.
1830 # Only spaces may be used in this macro; not newlines or tabs.
1831 unsupported_languages=
1833 # Remove more programs from consideration, based on the host or
1834 # target this usually means that a port of the program doesn't
1835 # exist yet.
1837 case "${host}" in
1838 hppa*64*-*-*)
1839 noconfigdirs="$noconfigdirs byacc"
1841 i[3456789]86-*-vsta)
1842 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1844 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1845 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1847 x86_64-*-mingw*)
1848 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1850 i[3456789]86-*-mingw32*)
1851 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1852 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1854 i[3456789]86-*-beos*)
1855 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1857 *-*-cygwin*)
1858 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1860 *-*-netbsd*)
1861 noconfigdirs="$noconfigdirs rcs"
1863 ppc*-*-pe)
1864 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1866 powerpc-*-beos*)
1867 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1869 esac
1872 # Check whether --enable-libada or --disable-libada was given.
1873 if test "${enable_libada+set}" = set; then
1874 enableval="$enable_libada"
1875 ENABLE_LIBADA=$enableval
1876 else
1877 ENABLE_LIBADA=yes
1879 if test "${ENABLE_LIBADA}" != "yes" ; then
1880 noconfigdirs="$noconfigdirs gnattools"
1883 # Check whether --enable-libssp or --disable-libssp was given.
1884 if test "${enable_libssp+set}" = set; then
1885 enableval="$enable_libssp"
1886 ENABLE_LIBSSP=$enableval
1887 else
1888 ENABLE_LIBSSP=yes
1891 # Save it here so that, even in case of --enable-libgcj, if the Java
1892 # front-end isn't enabled, we still get libgcj disabled.
1893 libgcj_saved=$libgcj
1894 case $enable_libgcj in
1895 yes)
1896 # If we reset it here, it won't get added to noconfigdirs in the
1897 # target-specific build rules, so it will be forcibly enabled
1898 # (unless the Java language itself isn't enabled).
1899 libgcj=
1902 # Make sure we get it printed in the list of not supported target libs.
1903 noconfigdirs="$noconfigdirs ${libgcj}"
1905 esac
1908 # Disable libmudflap on some systems.
1909 if test x$enable_libmudflap = x ; then
1910 case "${target}" in
1911 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1912 # Enable libmudflap by default in GNU and friends.
1914 *-*-freebsd*)
1915 # Enable libmudflap by default in FreeBSD.
1918 # Disable it by default everywhere else.
1919 noconfigdirs="$noconfigdirs target-libmudflap"
1921 esac
1924 # Disable libgomp on non POSIX hosted systems.
1925 if test x$enable_libgomp = x ; then
1926 # Enable libgomp by default on hosted POSIX systems.
1927 case "${target}" in
1928 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1930 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1932 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
1934 *-*-darwin* | *-*-aix*)
1937 noconfigdirs="$noconfigdirs target-libgomp"
1939 esac
1943 case "${target}" in
1944 *-*-chorusos)
1945 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1947 powerpc-*-darwin* | i[3456789]86-*-darwin*)
1948 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1949 noconfigdirs="$noconfigdirs sim target-rda"
1951 *-*-darwin*)
1952 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1953 noconfigdirs="$noconfigdirs sim target-rda"
1954 noconfigdirs="$noconfigdirs ${libgcj}"
1956 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1957 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1959 *-*-freebsd*)
1960 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1961 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1962 && test -f /usr/local/include/gmp.h; then
1963 with_gmp=/usr/local
1966 # Skip some stuff that's unsupported on some FreeBSD configurations.
1967 case "${target}" in
1968 i*86-*-*) ;;
1969 alpha*-*-*) ;;
1971 noconfigdirs="$noconfigdirs ${libgcj}"
1973 esac
1975 *-*-kaos*)
1976 # Remove unsupported stuff on all kaOS configurations.
1977 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1978 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1979 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1980 noconfigdirs="$noconfigdirs target-libgloss"
1982 *-*-netbsd*)
1983 # Skip some stuff on all NetBSD configurations.
1984 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1986 # Skip some stuff that's unsupported on some NetBSD configurations.
1987 case "${target}" in
1988 i*86-*-netbsdelf*) ;;
1989 arm*-*-netbsdelf*) ;;
1991 noconfigdirs="$noconfigdirs ${libgcj}"
1993 esac
1995 *-*-netware*)
1996 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1998 *-*-rtems*)
1999 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2001 # The tpf target doesn't support gdb yet.
2002 *-*-tpf*)
2003 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2005 *-*-uclinux*)
2006 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2008 *-*-vxworks*)
2009 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2011 alpha*-dec-osf*)
2012 # ld works, but does not support shared libraries.
2013 # newlib is not 64 bit ready. I'm not sure about fileutils.
2014 # gas doesn't generate exception information.
2015 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2017 alpha*-*-*vms*)
2018 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2020 alpha*-*-linux*)
2021 # newlib is not 64 bit ready
2022 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2024 alpha*-*-*)
2025 # newlib is not 64 bit ready
2026 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2028 am33_2.0-*-linux*)
2029 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2031 sh-*-linux*)
2032 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2034 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2035 noconfigdirs="$noconfigdirs ${libgcj}"
2036 noconfigdirs="$noconfigdirs target-examples"
2037 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2038 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2039 noconfigdirs="$noconfigdirs expect dejagnu"
2040 # the C++ libraries don't build on top of CE's C libraries
2041 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2042 noconfigdirs="$noconfigdirs target-newlib"
2043 case "${host}" in
2044 *-*-cygwin*) ;; # keep gdb and readline
2045 *) noconfigdirs="$noconfigdirs gdb readline"
2047 esac
2049 arc-*-*)
2050 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2052 arm-semi-aof )
2054 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2055 noconfigdirs="$noconfigdirs ${libgcj}"
2057 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2058 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2060 arm*-*-linux-gnueabi)
2061 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2062 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2064 arm*-*-symbianelf*)
2065 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2067 arm-*-pe*)
2068 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2070 thumb-*-coff)
2071 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2073 thumb-*-elf)
2074 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2076 thumb-*-pe)
2077 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2079 arm-*-riscix*)
2080 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2082 avr-*-*)
2083 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2085 bfin-*-*)
2086 noconfigdirs="$noconfigdirs gdb"
2087 if test x${is_cross_compiler} != xno ; then
2088 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2091 c4x-*-* | tic4x-*-*)
2092 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2094 c54x*-*-* | tic54x-*-*)
2095 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2097 cris-*-* | crisv32-*-*)
2098 unsupported_languages="$unsupported_languages java"
2099 case "${target}" in
2100 *-*-aout)
2101 unsupported_languages="$unsupported_languages fortran"
2102 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2103 *-*-elf)
2104 unsupported_languages="$unsupported_languages fortran"
2105 noconfigdirs="$noconfigdirs target-boehm-gc";;
2106 *-*-linux*)
2107 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2109 unsupported_languages="$unsupported_languages fortran"
2110 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2111 esac
2113 crx-*-*)
2114 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2116 d10v-*-*)
2117 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2119 d30v-*-*)
2120 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2122 fr30-*-elf*)
2123 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2125 frv-*-*)
2126 noconfigdirs="$noconfigdirs ${libgcj}"
2128 h8300*-*-*)
2129 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2131 h8500-*-*)
2132 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2134 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2136 hppa*64*-*-linux* | parisc*64*-*-linux*)
2137 # In this case, it's because the hppa64-linux target is for
2138 # the kernel only at this point and has no libc, and thus no
2139 # headers, crt*.o, etc., all of which are needed by these.
2140 noconfigdirs="$noconfigdirs target-zlib"
2142 parisc*-*-linux* | hppa*-*-linux*)
2144 hppa*-*-*elf* | \
2145 hppa*-*-lites* | \
2146 hppa*-*-openbsd* | \
2147 hppa*64*-*-*)
2148 noconfigdirs="$noconfigdirs ${libgcj}"
2150 hppa*-hp-hpux11*)
2151 noconfigdirs="$noconfigdirs ld shellutils"
2153 hppa*-*-*)
2154 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2155 # build on HP-UX 10.20.
2156 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2158 i960-*-*)
2159 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2161 ia64*-*-elf*)
2162 # No gdb support yet.
2163 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2165 ia64*-**-hpux*)
2166 # No gdb or ld support yet.
2167 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2169 i370-*-opened*)
2171 i[3456789]86-*-coff | i[3456789]86-*-elf)
2172 noconfigdirs="$noconfigdirs ${libgcj}"
2174 i[3456789]86-*-linux*)
2175 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2176 # not build java stuff by default.
2177 case "${target}" in
2178 *-*-*libc1*)
2179 noconfigdirs="$noconfigdirs ${libgcj}";;
2180 esac
2182 # This section makes it possible to build newlib natively on linux.
2183 # If we are using a cross compiler then don't configure newlib.
2184 if test x${is_cross_compiler} != xno ; then
2185 noconfigdirs="$noconfigdirs target-newlib"
2187 noconfigdirs="$noconfigdirs target-libgloss"
2188 # If we are not using a cross compiler, do configure newlib.
2189 # Note however, that newlib will only be configured in this situation
2190 # if the --with-newlib option has been given, because otherwise
2191 # 'target-newlib' will appear in skipdirs.
2193 i[3456789]86-*-mingw32*)
2194 target_configdirs="$target_configdirs target-winsup"
2195 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2197 x86_64-*-mingw*)
2198 target_configdirs="$target_configdirs target-winsup"
2199 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2201 *-*-cygwin*)
2202 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2203 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2204 # always build newlib if winsup directory is present.
2205 if test -d "$srcdir/winsup/cygwin"; then
2206 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2207 elif test -d "$srcdir/newlib"; then
2208 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2211 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2212 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2214 i[3456789]86-*-pe)
2215 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2217 i[3456789]86-*-sco3.2v5*)
2218 # The linker does not yet know about weak symbols in COFF,
2219 # and is not configured to handle mixed ELF and COFF.
2220 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2222 i[3456789]86-*-sco*)
2223 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2225 i[3456789]86-*-solaris2*)
2226 noconfigdirs="$noconfigdirs target-libgloss"
2228 i[3456789]86-*-sysv4*)
2229 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2231 i[3456789]86-*-beos*)
2232 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2234 i[3456789]86-*-rdos*)
2235 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2237 m32r-*-*)
2238 noconfigdirs="$noconfigdirs ${libgcj}"
2240 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2241 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2243 m68k-*-elf*)
2244 noconfigdirs="$noconfigdirs ${libgcj}"
2246 m68k-*-coff*)
2247 noconfigdirs="$noconfigdirs ${libgcj}"
2249 mcore-*-pe*)
2250 # The EPOC C++ environment does not support exceptions or rtti,
2251 # and so building libstdc++-v3 tends not to always work.
2252 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2254 mmix-*-*)
2255 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2256 unsupported_languages="$unsupported_languages fortran java"
2258 mn10200-*-*)
2259 noconfigdirs="$noconfigdirs ${libgcj}"
2261 mn10300-*-*)
2262 noconfigdirs="$noconfigdirs ${libgcj}"
2264 mt-*-*)
2265 noconfigdirs="$noconfigdirs sim"
2267 powerpc-*-aix*)
2268 # copied from rs6000-*-* entry
2269 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2271 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2272 target_configdirs="$target_configdirs target-winsup"
2273 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2274 # always build newlib.
2275 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2277 # This is temporary until we can link against shared libraries
2278 powerpcle-*-solaris*)
2279 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2281 powerpc-*-beos*)
2282 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2284 powerpc-*-eabi)
2285 noconfigdirs="$noconfigdirs ${libgcj}"
2287 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2289 rs6000-*-lynxos*)
2290 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2292 rs6000-*-aix*)
2293 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2295 rs6000-*-*)
2296 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2298 m68k-apollo-*)
2299 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2301 mips*-*-irix5*)
2302 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2304 mips*-*-irix6*)
2305 # Linking libjava exceeds command-line length limits on at least
2306 # IRIX 6.2, but not on IRIX 6.5.
2307 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2308 # <oldham@codesourcery.com>
2309 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2311 mips*-*-bsd*)
2312 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2314 mips64*-*-linux*)
2315 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2317 mips*-*-linux*)
2318 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2320 mips*-*-*)
2321 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2323 romp-*-*)
2324 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2326 sh-*-* | sh64-*-*)
2327 case "${host}" in
2328 i[3456789]86-*-vsta) ;; # don't add gprof back in
2329 i[3456789]86-*-go32*) ;; # don't add gprof back in
2330 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2331 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2332 esac
2333 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2335 sparc-*-elf*)
2336 noconfigdirs="$noconfigdirs ${libgcj}"
2338 sparc64-*-elf*)
2339 noconfigdirs="$noconfigdirs ${libgcj}"
2341 sparclite-*-*)
2342 noconfigdirs="$noconfigdirs ${libgcj}"
2344 sparc-*-sunos4*)
2345 noconfigdirs="$noconfigdirs ${libgcj}"
2346 if test x${is_cross_compiler} != xno ; then
2347 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2348 else
2349 use_gnu_ld=no
2352 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2353 noconfigdirs="$noconfigdirs ${libgcj}"
2355 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2357 spu-*-*)
2358 skipdirs="target-libssp"
2360 v810-*-*)
2361 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2363 v850-*-*)
2364 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2366 v850e-*-*)
2367 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2369 v850ea-*-*)
2370 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2372 vax-*-vms)
2373 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2375 vax-*-*)
2376 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2378 xtensa-*-*)
2379 noconfigdirs="$noconfigdirs ${libgcj}"
2381 ip2k-*-*)
2382 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2384 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2385 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2387 *-*-lynxos*)
2388 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2390 *-*-*)
2391 noconfigdirs="$noconfigdirs ${libgcj}"
2393 esac
2395 # If we aren't building newlib, then don't build libgloss, since libgloss
2396 # depends upon some newlib header files.
2397 case "${noconfigdirs}" in
2398 *target-libgloss*) ;;
2399 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2400 esac
2402 # Work in distributions that contain no compiler tools, like Autoconf.
2403 tentative_cc=""
2404 host_makefile_frag=/dev/null
2405 if test -d ${srcdir}/config ; then
2406 case "${host}" in
2407 m68k-hp-hpux*)
2408 # Avoid "too much defining" errors from HPUX compiler.
2409 tentative_cc="cc -Wp,-H256000"
2410 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2411 # If it's HP/UX ar, this should be harmless.
2412 RANLIB="ar ts"
2414 m68k-apollo-sysv*)
2415 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2417 m68k-apollo-bsd*)
2418 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2419 # chokes on bfd, the compiler won't let you assign integers to enums, and
2420 # other problems. Defining CC to gcc is a questionable way to say "don't use
2421 # the apollo compiler" (the preferred version of GCC could be called cc,
2422 # or whatever), but I'm not sure leaving CC as cc is any better...
2423 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2424 # Used to have BISON=yacc.
2425 tentative_cc=gcc
2427 m88k-dg-dgux*)
2428 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2430 m88k-harris-cxux*)
2431 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2432 tentative_cc="cc -Xa"
2433 host_makefile_frag="config/mh-cxux"
2435 m88k-motorola-sysv*)
2437 mips*-dec-ultrix*)
2438 tentative_cc="cc -Wf,-XNg1000"
2439 host_makefile_frag="config/mh-decstation"
2441 mips*-nec-sysv4*)
2442 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2443 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2444 host_makefile_frag="config/mh-necv4"
2446 mips*-sgi-irix4*)
2447 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2448 # environment. Also bump switch table size so that cp-parse will
2449 # compile. Bump string length limit so linker builds.
2450 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2452 mips*-*-sysv4*)
2453 host_makefile_frag="config/mh-sysv4"
2455 mips*-*-sysv*)
2456 # This is for a MIPS running RISC/os 4.52C.
2458 # This is needed for GDB, but needs to be in the top-level make because
2459 # if a library is compiled with the bsd headers and gets linked with the
2460 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2461 # a different size).
2462 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2463 # known except to select the sysv environment. Could we use /proc instead?
2464 # These "sysv environments" and "bsd environments" often end up being a pain.
2466 # This is not part of CFLAGS because perhaps not all C compilers have this
2467 # option.
2468 tentative_cc="cc -systype sysv"
2470 i370-ibm-opened*)
2471 tentative_cc="c89"
2473 i[3456789]86-*-sysv5*)
2474 host_makefile_frag="config/mh-sysv5"
2476 i[3456789]86-*-dgux*)
2477 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2478 host_makefile_frag="config/mh-dgux386"
2480 i[3456789]86-ncr-sysv4.3*)
2481 # The MetaWare compiler will generate a copyright message unless you
2482 # turn it off by adding the -Hnocopyr flag.
2483 tentative_cc="cc -Hnocopyr"
2485 i[3456789]86-ncr-sysv4*)
2486 # for an NCR 3000 (i486/SVR4) system.
2487 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2488 # This compiler not only emits obnoxious copyright messages every time
2489 # you run it, but it chokes and dies on a whole bunch of GNU source
2490 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2491 tentative_cc="/usr/ccs/ATT/cc"
2492 host_makefile_frag="config/mh-ncr3000"
2494 i[3456789]86-*-sco3.2v5*)
2496 i[3456789]86-*-sco*)
2497 # The native C compiler botches some simple uses of const. Unfortunately,
2498 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2499 tentative_cc="cc -Dconst="
2500 host_makefile_frag="config/mh-sco"
2502 i[3456789]86-*-udk*)
2503 host_makefile_frag="config/mh-sysv5"
2505 i[3456789]86-*-solaris2*)
2506 host_makefile_frag="config/mh-sysv4"
2508 i[3456789]86-*-msdosdjgpp*)
2509 host_makefile_frag="config/mh-djgpp"
2511 *-cygwin*)
2512 host_makefile_frag="config/mh-cygwin"
2514 *-mingw32*)
2516 *-mingw64*)
2518 *-interix*)
2519 host_makefile_frag="config/mh-interix"
2521 vax-*-ultrix2*)
2522 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2523 tentative_cc=gcc
2525 *-*-solaris2*)
2526 host_makefile_frag="config/mh-solaris"
2528 m68k-sun-sunos*)
2529 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2530 # without overflowing the jump tables (-J says to use a 32 bit table)
2531 tentative_cc="cc -J"
2533 *-hp-hpux*)
2534 tentative_cc="cc -Wp,-H256000"
2536 *-*-hiux*)
2537 tentative_cc="cc -Wp,-H256000"
2539 rs6000-*-lynxos*)
2540 # /bin/cc is less than useful for our purposes. Always use GCC
2541 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2542 host_makefile_frag="config/mh-lynxrs6k"
2544 powerpc-*-darwin*)
2545 host_makefile_frag="config/mh-ppc-darwin"
2547 powerpc-*-aix*)
2548 host_makefile_frag="config/mh-ppc-aix"
2550 rs6000-*-aix*)
2551 host_makefile_frag="config/mh-ppc-aix"
2553 *-*-lynxos*)
2554 # /bin/cc is less than useful for our purposes. Always use GCC
2555 tentative_cc="/bin/gcc"
2557 *-*-sysv4*)
2558 host_makefile_frag="config/mh-sysv4"
2560 # This is placed last to prevent interfering with the cases above.
2561 i[3456789]86-*-*)
2562 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2563 host_makefile_frag="config/mh-x86omitfp"
2565 esac
2568 # If we aren't going to be using gcc, see if we can extract a definition
2569 # of CC from the fragment.
2570 # Actually, use the 'pre-extracted' version above.
2571 if test -z "${CC}" && test "${build}" = "${host}" ; then
2572 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2573 found=
2574 for dir in $PATH; do
2575 test -z "$dir" && dir=.
2576 if test -f $dir/gcc; then
2577 found=yes
2578 break
2580 done
2581 IFS="$save_ifs"
2582 if test -z "${found}" && test -n "${tentative_cc}" ; then
2583 CC=$tentative_cc
2587 if test "${build}" != "${host}" ; then
2588 # If we are doing a Canadian Cross, in which the host and build systems
2589 # are not the same, we set reasonable default values for the tools.
2591 CC=${CC-${host_noncanonical}-gcc}
2592 CFLAGS=${CFLAGS-"-g -O2"}
2593 CXX=${CXX-${host_noncanonical}-c++}
2594 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2595 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2597 else
2598 # Set reasonable default values for some tools even if not Canadian.
2599 # Of course, these are different reasonable default values, originally
2600 # specified directly in the Makefile.
2601 # We don't export, so that autoconf can do its job.
2602 # Note that all these settings are above the fragment inclusion point
2603 # in Makefile.in, so can still be overridden by fragments.
2604 # This is all going to change when we autoconfiscate...
2606 CC_FOR_BUILD="\$(CC)"
2607 ac_ext=c
2608 ac_cpp='$CPP $CPPFLAGS'
2609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2612 if test -n "$ac_tool_prefix"; then
2613 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2614 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2615 echo "$as_me:$LINENO: checking for $ac_word" >&5
2616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2617 if test "${ac_cv_prog_CC+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620 if test -n "$CC"; then
2621 ac_cv_prog_CC="$CC" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2634 done
2635 done
2639 CC=$ac_cv_prog_CC
2640 if test -n "$CC"; then
2641 echo "$as_me:$LINENO: result: $CC" >&5
2642 echo "${ECHO_T}$CC" >&6
2643 else
2644 echo "$as_me:$LINENO: result: no" >&5
2645 echo "${ECHO_T}no" >&6
2649 if test -z "$ac_cv_prog_CC"; then
2650 ac_ct_CC=$CC
2651 # Extract the first word of "gcc", so it can be a program name with args.
2652 set dummy gcc; ac_word=$2
2653 echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658 if test -n "$ac_ct_CC"; then
2659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_ac_ct_CC="gcc"
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2672 done
2673 done
2677 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2678 if test -n "$ac_ct_CC"; then
2679 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2680 echo "${ECHO_T}$ac_ct_CC" >&6
2681 else
2682 echo "$as_me:$LINENO: result: no" >&5
2683 echo "${ECHO_T}no" >&6
2686 CC=$ac_ct_CC
2687 else
2688 CC="$ac_cv_prog_CC"
2691 if test -z "$CC"; then
2692 if test -n "$ac_tool_prefix"; then
2693 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2694 set dummy ${ac_tool_prefix}cc; ac_word=$2
2695 echo "$as_me:$LINENO: checking for $ac_word" >&5
2696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2697 if test "${ac_cv_prog_CC+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700 if test -n "$CC"; then
2701 ac_cv_prog_CC="$CC" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710 ac_cv_prog_CC="${ac_tool_prefix}cc"
2711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2714 done
2715 done
2719 CC=$ac_cv_prog_CC
2720 if test -n "$CC"; then
2721 echo "$as_me:$LINENO: result: $CC" >&5
2722 echo "${ECHO_T}$CC" >&6
2723 else
2724 echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6
2729 if test -z "$ac_cv_prog_CC"; then
2730 ac_ct_CC=$CC
2731 # Extract the first word of "cc", so it can be a program name with args.
2732 set dummy cc; ac_word=$2
2733 echo "$as_me:$LINENO: checking for $ac_word" >&5
2734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738 if test -n "$ac_ct_CC"; then
2739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_ac_ct_CC="cc"
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2752 done
2753 done
2757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2758 if test -n "$ac_ct_CC"; then
2759 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2760 echo "${ECHO_T}$ac_ct_CC" >&6
2761 else
2762 echo "$as_me:$LINENO: result: no" >&5
2763 echo "${ECHO_T}no" >&6
2766 CC=$ac_ct_CC
2767 else
2768 CC="$ac_cv_prog_CC"
2772 if test -z "$CC"; then
2773 # Extract the first word of "cc", so it can be a program name with args.
2774 set dummy cc; ac_word=$2
2775 echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2777 if test "${ac_cv_prog_CC+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2782 else
2783 ac_prog_rejected=no
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2792 ac_prog_rejected=yes
2793 continue
2795 ac_cv_prog_CC="cc"
2796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2799 done
2800 done
2802 if test $ac_prog_rejected = yes; then
2803 # We found a bogon in the path, so make sure we never use it.
2804 set dummy $ac_cv_prog_CC
2805 shift
2806 if test $# != 0; then
2807 # We chose a different compiler from the bogus one.
2808 # However, it has the same basename, so the bogon will be chosen
2809 # first if we set CC to just the basename; use the full file name.
2810 shift
2811 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2816 CC=$ac_cv_prog_CC
2817 if test -n "$CC"; then
2818 echo "$as_me:$LINENO: result: $CC" >&5
2819 echo "${ECHO_T}$CC" >&6
2820 else
2821 echo "$as_me:$LINENO: result: no" >&5
2822 echo "${ECHO_T}no" >&6
2826 if test -z "$CC"; then
2827 if test -n "$ac_tool_prefix"; then
2828 for ac_prog in cl
2830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2832 echo "$as_me:$LINENO: checking for $ac_word" >&5
2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2834 if test "${ac_cv_prog_CC+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2851 done
2852 done
2856 CC=$ac_cv_prog_CC
2857 if test -n "$CC"; then
2858 echo "$as_me:$LINENO: result: $CC" >&5
2859 echo "${ECHO_T}$CC" >&6
2860 else
2861 echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6
2865 test -n "$CC" && break
2866 done
2868 if test -z "$CC"; then
2869 ac_ct_CC=$CC
2870 for ac_prog in cl
2872 # Extract the first word of "$ac_prog", so it can be a program name with args.
2873 set dummy $ac_prog; ac_word=$2
2874 echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 if test -n "$ac_ct_CC"; then
2880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_ac_ct_CC="$ac_prog"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2893 done
2894 done
2898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899 if test -n "$ac_ct_CC"; then
2900 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2901 echo "${ECHO_T}$ac_ct_CC" >&6
2902 else
2903 echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6
2907 test -n "$ac_ct_CC" && break
2908 done
2910 CC=$ac_ct_CC
2916 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2917 See \`config.log' for more details." >&5
2918 echo "$as_me: error: no acceptable C compiler found in \$PATH
2919 See \`config.log' for more details." >&2;}
2920 { (exit 1); exit 1; }; }
2922 # Provide some information about the compiler.
2923 echo "$as_me:$LINENO:" \
2924 "checking for C compiler version" >&5
2925 ac_compiler=`set X $ac_compile; echo $2`
2926 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2927 (eval $ac_compiler --version </dev/null >&5) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }
2931 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2932 (eval $ac_compiler -v </dev/null >&5) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2936 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2937 (eval $ac_compiler -V </dev/null >&5) 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }
2942 cat >conftest.$ac_ext <<_ACEOF
2943 /* confdefs.h. */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2950 main ()
2954 return 0;
2956 _ACEOF
2957 ac_clean_files_save=$ac_clean_files
2958 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2959 # Try to create an executable without -o first, disregard a.out.
2960 # It will help us diagnose broken compilers, and finding out an intuition
2961 # of exeext.
2962 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2963 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2964 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2965 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2966 (eval $ac_link_default) 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; then
2970 # Find the output, starting from the most likely. This scheme is
2971 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2972 # resort.
2974 # Be careful to initialize this variable, since it used to be cached.
2975 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2976 ac_cv_exeext=
2977 # b.out is created by i960 compilers.
2978 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2980 test -f "$ac_file" || continue
2981 case $ac_file in
2982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2984 conftest.$ac_ext )
2985 # This is the source file.
2987 [ab].out )
2988 # We found the default executable, but exeext='' is most
2989 # certainly right.
2990 break;;
2991 *.* )
2992 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2993 # FIXME: I believe we export ac_cv_exeext for Libtool,
2994 # but it would be cool to find out if it's true. Does anybody
2995 # maintain Libtool? --akim.
2996 export ac_cv_exeext
2997 break;;
2999 break;;
3000 esac
3001 done
3002 else
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3007 See \`config.log' for more details." >&5
3008 echo "$as_me: error: C compiler cannot create executables
3009 See \`config.log' for more details." >&2;}
3010 { (exit 77); exit 77; }; }
3013 ac_exeext=$ac_cv_exeext
3014 echo "$as_me:$LINENO: result: $ac_file" >&5
3015 echo "${ECHO_T}$ac_file" >&6
3017 # Check the compiler produces executables we can run. If not, either
3018 # the compiler is broken, or we cross compile.
3019 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3020 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3021 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3022 # If not cross compiling, check that we can run a simple program.
3023 if test "$cross_compiling" != yes; then
3024 if { ac_try='./$ac_file'
3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026 (eval $ac_try) 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3030 cross_compiling=no
3031 else
3032 if test "$cross_compiling" = maybe; then
3033 cross_compiling=yes
3034 else
3035 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3036 If you meant to cross compile, use \`--host'.
3037 See \`config.log' for more details." >&5
3038 echo "$as_me: error: cannot run C compiled programs.
3039 If you meant to cross compile, use \`--host'.
3040 See \`config.log' for more details." >&2;}
3041 { (exit 1); exit 1; }; }
3045 echo "$as_me:$LINENO: result: yes" >&5
3046 echo "${ECHO_T}yes" >&6
3048 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3049 ac_clean_files=$ac_clean_files_save
3050 # Check the compiler produces executables we can run. If not, either
3051 # the compiler is broken, or we cross compile.
3052 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3053 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3054 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3055 echo "${ECHO_T}$cross_compiling" >&6
3057 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3058 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3060 (eval $ac_link) 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; then
3064 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3065 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3066 # work properly (i.e., refer to `conftest.exe'), while it won't with
3067 # `rm'.
3068 for ac_file in conftest.exe conftest conftest.*; do
3069 test -f "$ac_file" || continue
3070 case $ac_file in
3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3073 export ac_cv_exeext
3074 break;;
3075 * ) break;;
3076 esac
3077 done
3078 else
3079 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3080 See \`config.log' for more details." >&5
3081 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3082 See \`config.log' for more details." >&2;}
3083 { (exit 1); exit 1; }; }
3086 rm -f conftest$ac_cv_exeext
3087 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3088 echo "${ECHO_T}$ac_cv_exeext" >&6
3090 rm -f conftest.$ac_ext
3091 EXEEXT=$ac_cv_exeext
3092 ac_exeext=$EXEEXT
3093 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3094 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3095 if test "${ac_cv_objext+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 else
3098 cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h. */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3106 main ()
3110 return 0;
3112 _ACEOF
3113 rm -f conftest.o conftest.obj
3114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3115 (eval $ac_compile) 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; then
3119 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3120 case $ac_file in
3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3122 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3123 break;;
3124 esac
3125 done
3126 else
3127 echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3130 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3131 See \`config.log' for more details." >&5
3132 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3133 See \`config.log' for more details." >&2;}
3134 { (exit 1); exit 1; }; }
3137 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3139 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3140 echo "${ECHO_T}$ac_cv_objext" >&6
3141 OBJEXT=$ac_cv_objext
3142 ac_objext=$OBJEXT
3143 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3144 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3145 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148 cat >conftest.$ac_ext <<_ACEOF
3149 /* confdefs.h. */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3156 main ()
3158 #ifndef __GNUC__
3159 choke me
3160 #endif
3163 return 0;
3165 _ACEOF
3166 rm -f conftest.$ac_objext
3167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3168 (eval $ac_compile) 2>conftest.er1
3169 ac_status=$?
3170 grep -v '^ *+' conftest.er1 >conftest.err
3171 rm -f conftest.er1
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try='test -z "$ac_c_werror_flag"
3176 || test ! -s conftest.err'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 (eval $ac_try) 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; } &&
3182 { ac_try='test -s conftest.$ac_objext'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 (eval $ac_try) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3188 ac_compiler_gnu=yes
3189 else
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3193 ac_compiler_gnu=no
3195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3199 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3200 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3201 GCC=`test $ac_compiler_gnu = yes && echo yes`
3202 ac_test_CFLAGS=${CFLAGS+set}
3203 ac_save_CFLAGS=$CFLAGS
3204 CFLAGS="-g"
3205 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3206 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3207 if test "${ac_cv_prog_cc_g+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210 cat >conftest.$ac_ext <<_ACEOF
3211 /* confdefs.h. */
3212 _ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3218 main ()
3222 return 0;
3224 _ACEOF
3225 rm -f conftest.$ac_objext
3226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3227 (eval $ac_compile) 2>conftest.er1
3228 ac_status=$?
3229 grep -v '^ *+' conftest.er1 >conftest.err
3230 rm -f conftest.er1
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } &&
3234 { ac_try='test -z "$ac_c_werror_flag"
3235 || test ! -s conftest.err'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 (eval $ac_try) 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; } &&
3241 { ac_try='test -s conftest.$ac_objext'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 (eval $ac_try) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; }; then
3247 ac_cv_prog_cc_g=yes
3248 else
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3252 ac_cv_prog_cc_g=no
3254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3256 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3257 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3258 if test "$ac_test_CFLAGS" = set; then
3259 CFLAGS=$ac_save_CFLAGS
3260 elif test $ac_cv_prog_cc_g = yes; then
3261 if test "$GCC" = yes; then
3262 CFLAGS="-g -O2"
3263 else
3264 CFLAGS="-g"
3266 else
3267 if test "$GCC" = yes; then
3268 CFLAGS="-O2"
3269 else
3270 CFLAGS=
3273 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3274 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3275 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 ac_cv_prog_cc_stdc=no
3279 ac_save_CC=$CC
3280 cat >conftest.$ac_ext <<_ACEOF
3281 /* confdefs.h. */
3282 _ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h. */
3286 #include <stdarg.h>
3287 #include <stdio.h>
3288 #include <sys/types.h>
3289 #include <sys/stat.h>
3290 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3291 struct buf { int x; };
3292 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3293 static char *e (p, i)
3294 char **p;
3295 int i;
3297 return p[i];
3299 static char *f (char * (*g) (char **, int), char **p, ...)
3301 char *s;
3302 va_list v;
3303 va_start (v,p);
3304 s = g (p, va_arg (v,int));
3305 va_end (v);
3306 return s;
3309 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3310 function prototypes and stuff, but not '\xHH' hex character constants.
3311 These don't provoke an error unfortunately, instead are silently treated
3312 as 'x'. The following induces an error, until -std1 is added to get
3313 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3314 array size at least. It's necessary to write '\x00'==0 to get something
3315 that's true only with -std1. */
3316 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3318 int test (int i, double x);
3319 struct s1 {int (*f) (int a);};
3320 struct s2 {int (*f) (double a);};
3321 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3322 int argc;
3323 char **argv;
3325 main ()
3327 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3329 return 0;
3331 _ACEOF
3332 # Don't try gcc -ansi; that turns off useful extensions and
3333 # breaks some systems' header files.
3334 # AIX -qlanglvl=ansi
3335 # Ultrix and OSF/1 -std1
3336 # HP-UX 10.20 and later -Ae
3337 # HP-UX older versions -Aa -D_HPUX_SOURCE
3338 # SVR4 -Xc -D__EXTENSIONS__
3339 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3341 CC="$ac_save_CC $ac_arg"
3342 rm -f conftest.$ac_objext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344 (eval $ac_compile) 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try='test -z "$ac_c_werror_flag"
3352 || test ! -s conftest.err'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; } &&
3358 { ac_try='test -s conftest.$ac_objext'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 ac_cv_prog_cc_stdc=$ac_arg
3365 break
3366 else
3367 echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3371 rm -f conftest.err conftest.$ac_objext
3372 done
3373 rm -f conftest.$ac_ext conftest.$ac_objext
3374 CC=$ac_save_CC
3378 case "x$ac_cv_prog_cc_stdc" in
3379 x|xno)
3380 echo "$as_me:$LINENO: result: none needed" >&5
3381 echo "${ECHO_T}none needed" >&6 ;;
3383 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3384 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3385 CC="$CC $ac_cv_prog_cc_stdc" ;;
3386 esac
3388 # Some people use a C++ compiler to compile C. Since we use `exit',
3389 # in C++ we need to declare it. In case someone uses the same compiler
3390 # for both compiling C and C++ we need to have the C++ compiler decide
3391 # the declaration of exit, since it's the most demanding environment.
3392 cat >conftest.$ac_ext <<_ACEOF
3393 #ifndef __cplusplus
3394 choke me
3395 #endif
3396 _ACEOF
3397 rm -f conftest.$ac_objext
3398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3399 (eval $ac_compile) 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try='test -z "$ac_c_werror_flag"
3407 || test ! -s conftest.err'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 (eval $ac_try) 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; } &&
3413 { ac_try='test -s conftest.$ac_objext'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; }; then
3419 for ac_declaration in \
3420 '' \
3421 'extern "C" void std::exit (int) throw (); using std::exit;' \
3422 'extern "C" void std::exit (int); using std::exit;' \
3423 'extern "C" void exit (int) throw ();' \
3424 'extern "C" void exit (int);' \
3425 'void exit (int);'
3427 cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h. */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3433 $ac_declaration
3434 #include <stdlib.h>
3436 main ()
3438 exit (42);
3440 return 0;
3442 _ACEOF
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>conftest.er1
3446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_c_werror_flag"
3453 || test ! -s conftest.err'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 (eval $ac_try) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try='test -s conftest.$ac_objext'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 (eval $ac_try) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3466 else
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 continue
3472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473 cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h. */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3479 $ac_declaration
3481 main ()
3483 exit (42);
3485 return 0;
3487 _ACEOF
3488 rm -f conftest.$ac_objext
3489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490 (eval $ac_compile) 2>conftest.er1
3491 ac_status=$?
3492 grep -v '^ *+' conftest.er1 >conftest.err
3493 rm -f conftest.er1
3494 cat conftest.err >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } &&
3497 { ac_try='test -z "$ac_c_werror_flag"
3498 || test ! -s conftest.err'
3499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500 (eval $ac_try) 2>&5
3501 ac_status=$?
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; } &&
3504 { ac_try='test -s conftest.$ac_objext'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3510 break
3511 else
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3517 done
3518 rm -f conftest*
3519 if test -n "$ac_declaration"; then
3520 echo '#ifdef __cplusplus' >>confdefs.h
3521 echo $ac_declaration >>confdefs.h
3522 echo '#endif' >>confdefs.h
3525 else
3526 echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3531 ac_ext=c
3532 ac_cpp='$CPP $CPPFLAGS'
3533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538 # We must set the default linker to the linker used by gcc for the correct
3539 # operation of libtool. If LD is not defined and we are using gcc, try to
3540 # set the LD default to the ld used by gcc.
3541 if test -z "$LD"; then
3542 if test "$GCC" = yes; then
3543 case $build in
3544 *-*-mingw*)
3545 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
3547 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
3548 esac
3549 case $gcc_prog_ld in
3550 # Accept absolute paths.
3551 [\\/]* | [A-Za-z]:[\\/]*)
3552 LD="$gcc_prog_ld" ;;
3553 esac
3557 CXX=${CXX-"c++"}
3558 CFLAGS=${CFLAGS-"-g"}
3559 CXXFLAGS=${CXXFLAGS-"-g -O2"}
3565 if test -n "$ac_tool_prefix"; then
3566 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3567 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3568 echo "$as_me:$LINENO: checking for $ac_word" >&5
3569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3570 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 else
3573 if test -n "$GNATBIND"; then
3574 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3587 done
3588 done
3592 GNATBIND=$ac_cv_prog_GNATBIND
3593 if test -n "$GNATBIND"; then
3594 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3595 echo "${ECHO_T}$GNATBIND" >&6
3596 else
3597 echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3602 if test -z "$ac_cv_prog_GNATBIND"; then
3603 ac_ct_GNATBIND=$GNATBIND
3604 # Extract the first word of "gnatbind", so it can be a program name with args.
3605 set dummy gnatbind; ac_word=$2
3606 echo "$as_me:$LINENO: checking for $ac_word" >&5
3607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3608 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 if test -n "$ac_ct_GNATBIND"; then
3612 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3625 done
3626 done
3628 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3631 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3632 if test -n "$ac_ct_GNATBIND"; then
3633 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3634 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3635 else
3636 echo "$as_me:$LINENO: result: no" >&5
3637 echo "${ECHO_T}no" >&6
3640 GNATBIND=$ac_ct_GNATBIND
3641 else
3642 GNATBIND="$ac_cv_prog_GNATBIND"
3645 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3646 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3647 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650 cat >conftest.adb <<EOF
3651 procedure conftest is begin null; end conftest;
3653 acx_cv_cc_gcc_supports_ada=no
3654 # There is a bug in old released versions of GCC which causes the
3655 # driver to exit successfully when the appropriate language module
3656 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3657 # Therefore we must check for the error message as well as an
3658 # unsuccessful exit.
3659 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3660 # given a .adb file, but produce no object file. So we must check
3661 # if an object file was really produced to guard against this.
3662 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3663 if test x"$errors" = x && test -f conftest.$ac_objext; then
3664 acx_cv_cc_gcc_supports_ada=yes
3666 rm -f conftest.*
3668 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3669 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3671 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3672 have_gnat=yes
3673 else
3674 have_gnat=no
3677 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
3678 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
3679 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
3682 echo abfoo >t1
3683 echo cdfoo >t2
3684 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
3685 if cmp t1 t2 2 2 > /dev/null 2>&1; then
3686 if cmp t1 t2 1 1 > /dev/null 2>&1; then
3688 else
3689 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
3692 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
3693 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
3695 else
3696 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
3699 rm t1 t2
3702 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
3703 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
3704 do_compare="$gcc_cv_prog_cmp_skip"
3708 # Check for GMP and MPFR
3709 gmplibs="-lmpfr -lgmp"
3710 gmpinc=
3711 have_gmp=no
3713 # Specify a location for mpfr
3714 # check for this first so it ends up on the link line before gmp.
3716 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
3717 if test "${with_mpfr_dir+set}" = set; then
3718 withval="$with_mpfr_dir"
3719 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
3720 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
3721 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
3722 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
3723 { (exit 1); exit 1; }; }
3727 # Check whether --with-mpfr or --without-mpfr was given.
3728 if test "${with_mpfr+set}" = set; then
3729 withval="$with_mpfr"
3733 # Check whether --with-mpfr_include or --without-mpfr_include was given.
3734 if test "${with_mpfr_include+set}" = set; then
3735 withval="$with_mpfr_include"
3739 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
3740 if test "${with_mpfr_lib+set}" = set; then
3741 withval="$with_mpfr_lib"
3745 if test "x$with_mpfr" != x; then
3746 gmplibs="-L$with_mpfr/lib $gmplibs"
3747 gmpinc="-I$with_mpfr/include"
3749 if test "x$with_mpfr_include" != x; then
3750 gmpinc="-I$with_mpfr_include"
3752 if test "x$with_mpfr_lib" != x; then
3753 gmplibs="-L$with_mpfr_lib $gmplibs"
3755 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
3756 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
3757 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
3758 # Do not test the mpfr version. Assume that it is sufficient, since
3759 # it is in the source tree, and the library has not been built yet
3760 # but it would be included on the link line in the version check below
3761 # hence making the test fail.
3762 have_gmp=yes
3765 # Specify a location for gmp
3767 # Check whether --with-gmp-dir or --without-gmp-dir was given.
3768 if test "${with_gmp_dir+set}" = set; then
3769 withval="$with_gmp_dir"
3770 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
3771 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
3772 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
3773 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
3774 { (exit 1); exit 1; }; }
3778 # Check whether --with-gmp or --without-gmp was given.
3779 if test "${with_gmp+set}" = set; then
3780 withval="$with_gmp"
3784 # Check whether --with-gmp_include or --without-gmp_include was given.
3785 if test "${with_gmp_include+set}" = set; then
3786 withval="$with_gmp_include"
3790 # Check whether --with-gmp_lib or --without-gmp_lib was given.
3791 if test "${with_gmp_lib+set}" = set; then
3792 withval="$with_gmp_lib"
3797 if test "x$with_gmp" != x; then
3798 gmplibs="-L$with_gmp/lib $gmplibs"
3799 gmpinc="-I$with_gmp/include $gmpinc"
3801 if test "x$with_gmp_include" != x; then
3802 gmpinc="-I$with_gmp_include $gmpinc"
3804 if test "x$with_gmp_lib" != x; then
3805 gmplibs="-L$with_gmp_lib $gmplibs"
3807 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
3808 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
3809 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
3810 # Do not test the gmp version. Assume that it is sufficient, since
3811 # it is in the source tree, and the library has not been built yet
3812 # but it would be included on the link line in the version check below
3813 # hence making the test fail.
3814 have_gmp=yes
3817 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
3818 have_gmp=yes
3819 saved_CFLAGS="$CFLAGS"
3820 CFLAGS="$CFLAGS $gmpinc"
3821 # Check GMP actually works
3822 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
3823 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
3825 cat >conftest.$ac_ext <<_ACEOF
3826 /* confdefs.h. */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3831 #include "gmp.h"
3833 main ()
3836 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
3837 choke me
3838 #endif
3841 return 0;
3843 _ACEOF
3844 rm -f conftest.$ac_objext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846 (eval $ac_compile) 2>conftest.er1
3847 ac_status=$?
3848 grep -v '^ *+' conftest.er1 >conftest.err
3849 rm -f conftest.er1
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try='test -z "$ac_c_werror_flag"
3854 || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 (eval $ac_try) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try='test -s conftest.$ac_objext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 echo "$as_me:$LINENO: result: yes" >&5
3867 echo "${ECHO_T}yes" >&6
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6; have_gmp=no
3875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3877 if test x"$have_gmp" = xyes; then
3878 saved_LIBS="$LIBS"
3879 LIBS="$LIBS $gmplibs"
3880 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
3881 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
3882 cat >conftest.$ac_ext <<_ACEOF
3883 /* confdefs.h. */
3884 _ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3888 #include <gmp.h>
3889 #include <mpfr.h>
3891 main ()
3894 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
3895 choke me
3896 #endif
3897 mpfr_t n; mpfr_init(n);
3898 mpfr_t x; mpfr_init(x);
3899 int t;
3900 mpfr_atan2 (n, n, x, GMP_RNDN);
3901 mpfr_erfc (n, x, GMP_RNDN);
3902 mpfr_subnormalize (x, t, GMP_RNDN);
3905 return 0;
3907 _ACEOF
3908 rm -f conftest.$ac_objext conftest$ac_exeext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3910 (eval $ac_link) 2>conftest.er1
3911 ac_status=$?
3912 grep -v '^ *+' conftest.er1 >conftest.err
3913 rm -f conftest.er1
3914 cat conftest.err >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } &&
3917 { ac_try='test -z "$ac_c_werror_flag"
3918 || test ! -s conftest.err'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; } &&
3924 { ac_try='test -s conftest$ac_exeext'
3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 (eval $ac_try) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; }; then
3930 cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h. */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3936 #include <gmp.h>
3937 #include <mpfr.h>
3939 main ()
3942 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
3943 choke me
3944 #endif
3945 mpfr_t n; mpfr_init(n);
3948 return 0;
3950 _ACEOF
3951 rm -f conftest.$ac_objext conftest$ac_exeext
3952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3953 (eval $ac_link) 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } &&
3960 { ac_try='test -z "$ac_c_werror_flag"
3961 || test ! -s conftest.err'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 (eval $ac_try) 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; } &&
3967 { ac_try='test -s conftest$ac_exeext'
3968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 (eval $ac_try) 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3973 echo "$as_me:$LINENO: result: yes" >&5
3974 echo "${ECHO_T}yes" >&6
3975 else
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3979 echo "$as_me:$LINENO: result: buggy but acceptable" >&5
3980 echo "${ECHO_T}buggy but acceptable" >&6
3982 rm -f conftest.err conftest.$ac_objext \
3983 conftest$ac_exeext conftest.$ac_ext
3984 else
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3988 echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6; have_gmp=no
3991 rm -f conftest.err conftest.$ac_objext \
3992 conftest$ac_exeext conftest.$ac_ext
3993 LIBS="$saved_LIBS"
3995 CFLAGS="$saved_CFLAGS"
3997 if test x$have_gmp != xyes; then
3998 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
3999 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4000 Copies of these libraries' source code can be found at their respective
4001 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4002 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4003 If you obtained GMP and/or MPFR from a vendor distribution package, make
4004 sure that you have installed both the libraries and the header files.
4005 They may be located in separate packages." >&5
4006 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4007 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4008 Copies of these libraries' source code can be found at their respective
4009 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4010 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4011 If you obtained GMP and/or MPFR from a vendor distribution package, make
4012 sure that you have installed both the libraries and the header files.
4013 They may be located in separate packages." >&2;}
4014 { (exit 1); exit 1; }; }
4018 # Flags needed for both GMP and/or MPFR
4022 # By default, C is the only stage 1 language.
4023 stage1_languages=,c,
4025 # Figure out what language subdirectories are present.
4026 # Look if the user specified --enable-languages="..."; if not, use
4027 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4028 # go away some day.
4029 # NB: embedded tabs in this IF block -- do not untabify
4030 if test -d ${srcdir}/gcc; then
4031 if test x"${enable_languages+set}" != xset; then
4032 if test x"${LANGUAGES+set}" = xset; then
4033 enable_languages="${LANGUAGES}"
4034 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4035 else
4036 enable_languages=all
4038 else
4039 if test x"${enable_languages}" = x ||
4040 test x"${enable_languages}" = xyes;
4041 then
4042 echo configure.in: --enable-languages needs at least one language argument 1>&2
4043 exit 1
4046 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4048 # 'f95' is the old name for the 'fortran' language. We issue a warning
4049 # and make the substitution.
4050 case ,${enable_languages}, in
4051 *,f95,*)
4052 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4053 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4055 esac
4057 # First scan to see if an enabled language requires some other language.
4058 # We assume that a given config-lang.in will list all the language
4059 # front ends it requires, even if some are required indirectly.
4060 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4061 case ${lang_frag} in
4062 ..) ;;
4063 # The odd quoting in the next line works around
4064 # an apparent bug in bash 1.12 on linux.
4065 ${srcdir}/gcc/[*]/config-lang.in) ;;
4067 # From the config-lang.in, get $language, $lang_requires
4068 language=
4069 lang_requires=
4070 . ${lang_frag}
4071 for other in ${lang_requires} ; do
4072 case ,${enable_languages}, in
4073 *,$other,*) ;;
4074 *,all,*) ;;
4075 *,$language,*)
4076 echo " \`$other' language required by \`$language'; enabling" 1>&2
4077 enable_languages="${enable_languages},${other}"
4079 esac
4080 done
4082 esac
4083 done
4085 new_enable_languages=,c,
4086 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
4087 potential_languages=,c,
4089 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4090 case ${lang_frag} in
4091 ..) ;;
4092 # The odd quoting in the next line works around
4093 # an apparent bug in bash 1.12 on linux.
4094 ${srcdir}/gcc/[*]/config-lang.in) ;;
4096 # From the config-lang.in, get $language, $target_libs,
4097 # $lang_dirs, $boot_language, and $build_by_default
4098 language=
4099 target_libs=
4100 lang_dirs=
4101 subdir_requires=
4102 boot_language=no
4103 build_by_default=yes
4104 . ${lang_frag}
4105 if test x${language} = x; then
4106 echo "${lang_frag} doesn't set \$language." 1>&2
4107 exit 1
4110 case ,${enable_languages}, in
4111 *,${language},*)
4112 # Language was explicitly selected; include it.
4113 add_this_lang=yes
4115 *,all,*)
4116 # 'all' was selected, select it if it is a default language
4117 add_this_lang=${build_by_default}
4120 add_this_lang=no
4122 esac
4124 # Disable languages that need other directories if these aren't available.
4125 for i in $subdir_requires; do
4126 test -f "$srcdir/gcc/$i/config-lang.in" && continue
4127 case ,${enable_languages}, in
4128 *,${language},*)
4129 # Specifically requested language; tell them.
4130 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4131 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4132 { (exit 1); exit 1; }; }
4135 # Silently disable.
4136 add_this_lang=unsupported
4138 esac
4139 done
4141 # Disable Ada if no preexisting GNAT is available.
4142 case ,${enable_languages},:${language}:${have_gnat} in
4143 *,${language},*:ada:no)
4144 # Specifically requested language; tell them.
4145 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4146 echo "$as_me: error: GNAT is required to build $language" >&2;}
4147 { (exit 1); exit 1; }; }
4149 *:ada:no)
4150 # Silently disable.
4151 add_this_lang=unsupported
4153 esac
4155 # Disable a language that is unsupported by the target.
4156 case " $unsupported_languages " in
4157 *" $language "*)
4158 add_this_lang=unsupported
4160 esac
4162 case $add_this_lang in
4163 unsupported)
4164 # Remove language-dependent dirs.
4165 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4168 # Remove language-dependent dirs; still show language as supported.
4169 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4170 potential_languages="${potential_languages}${language},"
4172 yes)
4173 new_enable_languages="${new_enable_languages}${language},"
4174 potential_languages="${potential_languages}${language},"
4175 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4176 case ${boot_language} in
4177 yes)
4178 # Add to (comma-separated) list of stage 1 languages.
4179 stage1_languages="${stage1_languages}${language},"
4181 esac
4183 esac
4185 esac
4186 done
4188 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4189 if test "${enable_stage1_languages+set}" = set; then
4190 enableval="$enable_stage1_languages"
4191 case ,${enable_stage1_languages}, in
4192 ,no,|,,)
4193 # Set it to something that will have no effect in the loop below
4194 enable_stage1_languages=c ;;
4195 ,yes,)
4196 enable_stage1_languages=`echo $new_enable_languages | \
4197 sed -e "s/^,//" -e "s/,$//" ` ;;
4198 *,all,*)
4199 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4200 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4201 esac
4203 # Add "good" languages from enable_stage1_languages to stage1_languages,
4204 # while "bad" languages go in missing_languages. Leave no duplicates.
4205 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4206 case $potential_languages in
4207 *,$i,*)
4208 case $stage1_languages in
4209 *,$i,*) ;;
4210 *) stage1_languages="$stage1_languages$i," ;;
4211 esac ;;
4213 case $missing_languages in
4214 *,$i,*) ;;
4215 *) missing_languages="$missing_languages$i," ;;
4216 esac ;;
4217 esac
4218 done
4221 # Remove leading/trailing commas that were added for simplicity
4222 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4223 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4224 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4225 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4227 if test "x$missing_languages" != x; then
4228 { { echo "$as_me:$LINENO: error:
4229 The following requested languages could not be built: ${missing_languages}
4230 Supported languages are: ${potential_languages}" >&5
4231 echo "$as_me: error:
4232 The following requested languages could not be built: ${missing_languages}
4233 Supported languages are: ${potential_languages}" >&2;}
4234 { (exit 1); exit 1; }; }
4236 if test "x$new_enable_languages" != "x$enable_languages"; then
4237 echo The following languages will be built: ${new_enable_languages}
4238 enable_languages="$new_enable_languages"
4242 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
4245 # Handle --disable-<component> generically.
4246 for dir in $configdirs $build_configdirs $target_configdirs ; do
4247 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4248 if eval test x\${enable_${dirname}} "=" xno ; then
4249 noconfigdirs="$noconfigdirs $dir"
4251 done
4253 # Check for Boehm's garbage collector
4254 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4255 if test "${enable_objc_gc+set}" = set; then
4256 enableval="$enable_objc_gc"
4257 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4258 *,objc,*:*:yes:*target-boehm-gc*)
4259 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4260 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4261 { (exit 1); exit 1; }; }
4263 esac
4266 # Make sure we only build Boehm's garbage collector if required.
4267 case ,${enable_languages},:${enable_objc_gc} in
4268 *,objc,*:yes)
4269 # Keep target-boehm-gc if requested for Objective-C.
4272 # Otherwise remove target-boehm-gc depending on target-libjava.
4273 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4274 noconfigdirs="$noconfigdirs target-boehm-gc"
4277 esac
4279 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4280 # $build_configdirs and $target_configdirs.
4281 # If we have the source for $noconfigdirs entries, add them to $notsupp.
4283 notsupp=""
4284 for dir in . $skipdirs $noconfigdirs ; do
4285 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
4286 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4287 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4288 if test -r $srcdir/$dirname/configure ; then
4289 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4290 true
4291 else
4292 notsupp="$notsupp $dir"
4296 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4297 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4298 if test -r $srcdir/$dirname/configure ; then
4299 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4300 true
4301 else
4302 notsupp="$notsupp $dir"
4306 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4307 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4308 if test -r $srcdir/$dirname/configure ; then
4309 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4310 true
4311 else
4312 notsupp="$notsupp $dir"
4316 done
4318 # Sometimes the tools are distributed with libiberty but with no other
4319 # libraries. In that case, we don't want to build target-libiberty.
4320 # Don't let libgcc imply libiberty either.
4321 if test -n "${target_configdirs}" ; then
4322 libgcc=
4323 others=
4324 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
4325 if test "$i" = "libgcc"; then
4326 libgcc=target-libgcc
4327 elif test "$i" != "libiberty" ; then
4328 if test -r $srcdir/$i/configure ; then
4329 others=yes;
4330 break;
4333 done
4334 if test -z "${others}" ; then
4335 target_configdirs=$libgcc
4339 # Quietly strip out all directories which aren't configurable in this tree.
4340 # This relies on all configurable subdirectories being autoconfiscated, which
4341 # is now the case.
4342 build_configdirs_all="$build_configdirs"
4343 build_configdirs=
4344 for i in ${build_configdirs_all} ; do
4345 j=`echo $i | sed -e s/build-//g`
4346 if test -f ${srcdir}/$j/configure ; then
4347 build_configdirs="${build_configdirs} $i"
4349 done
4351 configdirs_all="$configdirs"
4352 configdirs=
4353 for i in ${configdirs_all} ; do
4354 if test -f ${srcdir}/$i/configure ; then
4355 configdirs="${configdirs} $i"
4357 done
4359 target_configdirs_all="$target_configdirs"
4360 target_configdirs=
4361 for i in ${target_configdirs_all} ; do
4362 j=`echo $i | sed -e s/target-//g`
4363 if test -f ${srcdir}/$j/configure ; then
4364 target_configdirs="${target_configdirs} $i"
4366 done
4368 # Produce a warning message for the subdirs we can't configure.
4369 # This isn't especially interesting in the Cygnus tree, but in the individual
4370 # FSF releases, it's important to let people know when their machine isn't
4371 # supported by the one or two programs in a package.
4373 if test -n "${notsupp}" && test -z "${norecursion}" ; then
4374 # If $appdirs is non-empty, at least one of those directories must still
4375 # be configured, or we error out. (E.g., if the gas release supports a
4376 # specified target in some subdirs but not the gas subdir, we shouldn't
4377 # pretend that all is well.)
4378 if test -n "$appdirs" ; then
4379 for dir in $appdirs ; do
4380 if test -r $dir/Makefile.in ; then
4381 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4382 appdirs=""
4383 break
4385 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
4386 appdirs=""
4387 break
4390 done
4391 if test -n "$appdirs" ; then
4392 echo "*** This configuration is not supported by this package." 1>&2
4393 exit 1
4396 # Okay, some application will build, or we don't care to check. Still
4397 # notify of subdirs not getting built.
4398 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4399 echo " ${notsupp}" 1>&2
4400 echo " (Any other directories should still work fine.)" 1>&2
4403 case "$host" in
4404 *msdosdjgpp*)
4405 enable_gdbtk=no ;;
4406 esac
4408 copy_dirs=
4411 # Check whether --with-build-sysroot or --without-build-sysroot was given.
4412 if test "${with_build_sysroot+set}" = set; then
4413 withval="$with_build_sysroot"
4414 if test x"$withval" != x ; then
4415 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
4417 else
4418 SYSROOT_CFLAGS_FOR_TARGET=
4422 # Handle --with-headers=XXX. If the value is not "yes", the contents of
4423 # the named directory are copied to $(tooldir)/sys-include.
4424 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
4425 if test x${is_cross_compiler} = xno ; then
4426 echo 1>&2 '***' --with-headers is only supported when cross compiling
4427 exit 1
4429 if test x"${with_headers}" != xyes ; then
4430 case "${exec_prefixoption}" in
4431 "") x=${prefix} ;;
4432 *) x=${exec_prefix} ;;
4433 esac
4434 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
4438 # Handle --with-libs=XXX. If the value is not "yes", the contents of
4439 # the name directories are copied to $(tooldir)/lib. Multiple directories
4440 # are permitted.
4441 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
4442 if test x${is_cross_compiler} = xno ; then
4443 echo 1>&2 '***' --with-libs is only supported when cross compiling
4444 exit 1
4446 if test x"${with_libs}" != xyes ; then
4447 # Copy the libraries in reverse order, so that files in the first named
4448 # library override files in subsequent libraries.
4449 case "${exec_prefixoption}" in
4450 "") x=${prefix} ;;
4451 *) x=${exec_prefix} ;;
4452 esac
4453 for l in ${with_libs}; do
4454 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
4455 done
4459 # Set with_gnu_as and with_gnu_ld as appropriate.
4461 # This is done by determining whether or not the appropriate directory
4462 # is available, and by checking whether or not specific configurations
4463 # have requested that this magic not happen.
4465 # The command line options always override the explicit settings in
4466 # configure.in, and the settings in configure.in override this magic.
4468 # If the default for a toolchain is to use GNU as and ld, and you don't
4469 # want to do that, then you should use the --without-gnu-as and
4470 # --without-gnu-ld options for the configure script.
4472 if test x${use_gnu_as} = x &&
4473 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
4474 with_gnu_as=yes
4475 extra_host_args="$extra_host_args --with-gnu-as"
4478 if test x${use_gnu_ld} = x &&
4479 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
4480 with_gnu_ld=yes
4481 extra_host_args="$extra_host_args --with-gnu-ld"
4484 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
4485 # can detect this case.
4487 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
4488 with_newlib=yes
4489 extra_host_args="$extra_host_args --with-newlib"
4492 # Handle ${copy_dirs}
4493 set fnord ${copy_dirs}
4494 shift
4495 while test $# != 0 ; do
4496 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
4498 else
4499 echo Copying $1 to $2
4501 # Use the install script to create the directory and all required
4502 # parent directories.
4503 if test -d $2 ; then
4505 else
4506 echo >config.temp
4507 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
4510 # Copy the directory, assuming we have tar.
4511 # FIXME: Should we use B in the second tar? Not all systems support it.
4512 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
4514 # It is the responsibility of the user to correctly adjust all
4515 # symlinks. If somebody can figure out how to handle them correctly
4516 # here, feel free to add the code.
4518 echo $1 > $2/COPIED
4520 shift; shift
4521 done
4523 # Determine a target-dependent exec_prefix that the installed
4524 # gcc will search in. Keep this list sorted by triplet, with
4525 # the *-*-osname triplets last.
4526 md_exec_prefix=
4527 case "${target}" in
4528 alpha*-*-*vms*)
4529 md_exec_prefix=/gnu/lib/gcc-lib
4531 i3456786-pc-msdosdjgpp*)
4532 md_exec_prefix=/dev/env/DJDIR/bin
4534 i3456786-*-sco3.2v5*)
4535 if test $with_gnu_as = yes; then
4536 md_exec_prefix=/usr/gnu/bin
4537 else
4538 md_exec_prefix=/usr/ccs/bin/elf
4542 mn10300-*-* | \
4543 powerpc-*-chorusos* | \
4544 powerpc*-*-eabi* | \
4545 powerpc*-*-sysv* | \
4546 powerpc*-*-kaos* | \
4547 s390x-ibm-tpf*)
4548 md_exec_prefix=/usr/ccs/bin
4550 sparc64-*-elf*)
4552 v850*-*-*)
4553 md_exec_prefix=/usr/ccs/bin
4555 xtensa-*-elf*)
4558 *-*-beos* | \
4559 *-*-elf* | \
4560 *-*-hpux* | \
4561 *-*-netware* | \
4562 *-*-nto-qnx* | \
4563 *-*-rtems* | \
4564 *-*-solaris2* | \
4565 *-*-sysv45* | \
4566 *-*-vxworks* | \
4567 *-wrs-windiss)
4568 md_exec_prefix=/usr/ccs/bin
4570 esac
4572 extra_arflags_for_target=
4573 extra_nmflags_for_target=
4574 extra_ranlibflags_for_target=
4575 target_makefile_frag=/dev/null
4576 case "${target}" in
4577 mep*-*-*)
4578 target_makefile_frag="config/mt-mep"
4580 spu-*-*)
4581 target_makefile_frag="config/mt-spu"
4583 *-*-netware*)
4584 target_makefile_frag="config/mt-netware"
4586 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
4587 target_makefile_frag="config/mt-gnu"
4589 *-*-aix4.[3456789]* | *-*-aix[56789].*)
4590 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
4591 # commands to handle both 32-bit and 64-bit objects. These flags are
4592 # harmless if we're using GNU nm or ar.
4593 extra_arflags_for_target=" -X32_64"
4594 extra_nmflags_for_target=" -B -X32_64"
4596 *-*-darwin*)
4597 # ranlib from Darwin requires the -c flag to look at common symbols.
4598 extra_ranlibflags_for_target=" -c"
4600 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
4601 target_makefile_frag="config/mt-wince"
4603 esac
4605 alphaieee_frag=/dev/null
4606 case $target in
4607 alpha*-*-*)
4608 # This just makes sure to use the -mieee option to build target libs.
4609 # This should probably be set individually by each library.
4610 alphaieee_frag="config/mt-alphaieee"
4612 esac
4614 # If --enable-target-optspace always use -Os instead of -O2 to build
4615 # the target libraries, similarly if it is not specified, use -Os
4616 # on selected platforms.
4617 ospace_frag=/dev/null
4618 case "${enable_target_optspace}:${target}" in
4619 yes:*)
4620 ospace_frag="config/mt-ospace"
4622 :d30v-*)
4623 ospace_frag="config/mt-d30v"
4625 :m32r-* | :d10v-* | :fr30-*)
4626 ospace_frag="config/mt-ospace"
4628 no:* | :*)
4631 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
4633 esac
4635 # Default to using --with-stabs for certain targets.
4636 if test x${with_stabs} = x ; then
4637 case "${target}" in
4638 mips*-*-irix[56]*)
4640 mips*-*-* | alpha*-*-osf*)
4641 with_stabs=yes;
4642 extra_host_args="${extra_host_args} --with-stabs"
4644 esac
4647 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
4648 # them automatically.
4649 case "${host}" in
4650 hppa*64*-*-hpux11*)
4651 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
4653 esac
4655 # Some systems (e.g., one of the i386-aix systems the gas testers are
4656 # using) don't handle "\$" correctly, so don't use it here.
4657 tooldir='${exec_prefix}'/${target_noncanonical}
4658 build_tooldir=${tooldir}
4660 # Create a .gdbinit file which runs the one in srcdir
4661 # and tells GDB to look there for source files.
4663 if test -r ${srcdir}/.gdbinit ; then
4664 case ${srcdir} in
4665 .) ;;
4666 *) cat > ./.gdbinit <<EOF
4667 # ${NO_EDIT}
4668 dir ${srcdir}
4669 dir .
4670 source ${srcdir}/.gdbinit
4673 esac
4676 # Make sure that the compiler is able to generate an executable. If it
4677 # can't, we are probably in trouble. We don't care whether we can run the
4678 # executable--we might be using a cross compiler--we only care whether it
4679 # can be created. At this point the main configure script has set CC.
4680 we_are_ok=no
4681 echo "int main () { return 0; }" > conftest.c
4682 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
4683 if test $? = 0 ; then
4684 if test -s conftest || test -s conftest.exe ; then
4685 we_are_ok=yes
4688 case $we_are_ok in
4690 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
4691 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
4692 rm -f conftest*
4693 exit 1
4695 esac
4696 rm -f conftest*
4698 # The Solaris /usr/ucb/cc compiler does not appear to work.
4699 case "${host}" in
4700 sparc-sun-solaris2*)
4701 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
4702 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
4703 could_use=
4704 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
4705 if test -d /opt/cygnus/bin ; then
4706 if test "$could_use" = "" ; then
4707 could_use="/opt/cygnus/bin"
4708 else
4709 could_use="$could_use or /opt/cygnus/bin"
4712 if test "$could_use" = "" ; then
4713 echo "Warning: compilation may fail because you're using"
4714 echo "/usr/ucb/cc. You should change your PATH or CC "
4715 echo "variable and rerun configure."
4716 else
4717 echo "Warning: compilation may fail because you're using"
4718 echo "/usr/ucb/cc, when you should use the C compiler from"
4719 echo "$could_use. You should change your"
4720 echo "PATH or CC variable and rerun configure."
4724 esac
4726 case "${host}" in
4727 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
4728 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
4729 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
4730 esac
4732 # Record target_configdirs and the configure arguments for target and
4733 # build configuration in Makefile.
4734 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
4735 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
4737 # Determine whether gdb needs tk/tcl or not.
4738 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
4739 # and in that case we want gdb to be built without tk. Ugh!
4740 # In fact I believe gdb is the *only* package directly dependent on tk,
4741 # so we should be able to put the 'maybe's in unconditionally and
4742 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
4743 # 100% sure that that's safe though.
4745 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
4746 case "$enable_gdbtk" in
4748 GDB_TK="" ;;
4749 yes)
4750 GDB_TK="${gdb_tk}" ;;
4752 # Only add the dependency on gdbtk when GDBtk is part of the gdb
4753 # distro. Eventually someone will fix this and move Insight, nee
4754 # gdbtk to a separate directory.
4755 if test -d ${srcdir}/gdb/gdbtk ; then
4756 GDB_TK="${gdb_tk}"
4757 else
4758 GDB_TK=""
4761 esac
4762 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
4763 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
4765 # Strip out unwanted targets.
4767 # While at that, we remove Makefiles if we were started for recursive
4768 # configuration, so that the top-level Makefile reconfigures them,
4769 # like we used to do when configure itself was recursive.
4771 # Loop over modules. $extrasub must be used with care, limiting as
4772 # much as possible the usage of range addresses. That's because autoconf
4773 # splits the sed script to overcome limits in the number of commands,
4774 # and relying on carefully-timed sed passes may turn out to be very hard
4775 # to maintain later. In this particular case, you just have to be careful
4776 # not to nest @if/@endif pairs, because configure will not warn you at all.
4778 # Check whether --enable-bootstrap or --disable-bootstrap was given.
4779 if test "${enable_bootstrap+set}" = set; then
4780 enableval="$enable_bootstrap"
4782 else
4783 enable_bootstrap=default
4786 # Issue errors and warnings for invalid/strange bootstrap combinations.
4787 case "$configdirs" in
4788 *gcc*) have_compiler=yes ;;
4789 *) have_compiler=no ;;
4790 esac
4792 case "$have_compiler:$host:$target:$enable_bootstrap" in
4793 *:*:*:no) ;;
4795 # Default behavior. Enable bootstrap if we have a compiler
4796 # and we are in a native configuration.
4797 yes:$build:$build:default)
4798 enable_bootstrap=yes ;;
4800 *:*:*:default)
4801 enable_bootstrap=no ;;
4803 # We have a compiler and we are in a native configuration, bootstrap is ok
4804 yes:$build:$build:yes)
4807 # Other configurations, but we have a compiler. Assume the user knows
4808 # what he's doing.
4809 yes:*:*:yes)
4810 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
4811 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
4814 # No compiler: if they passed --enable-bootstrap explicitly, fail
4815 no:*:*:yes)
4816 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
4817 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
4818 { (exit 1); exit 1; }; } ;;
4820 # Fail if wrong command line
4822 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
4823 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
4824 { (exit 1); exit 1; }; }
4826 esac
4828 # Adjust the toplevel makefile according to whether bootstrap was selected.
4829 case "$enable_bootstrap" in
4830 yes)
4831 bootstrap_suffix=bootstrap ;;
4833 bootstrap_suffix=no-bootstrap ;;
4834 esac
4836 for module in ${build_configdirs} ; do
4837 if test -z "${no_recursion}" \
4838 && test -f ${build_subdir}/${module}/Makefile; then
4839 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
4840 rm -f ${build_subdir}/${module}/Makefile
4842 extrasub="$extrasub
4843 /^@if build-$module\$/d
4844 /^@endif build-$module\$/d
4845 /^@if build-$module-$bootstrap_suffix\$/d
4846 /^@endif build-$module-$bootstrap_suffix\$/d"
4847 done
4848 for module in ${configdirs} ; do
4849 if test -z "${no_recursion}"; then
4850 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
4851 if test -f ${file}; then
4852 echo 1>&2 "*** removing ${file} to force reconfigure"
4853 rm -f ${file}
4855 done
4857 extrasub="$extrasub
4858 /^@if $module\$/d
4859 /^@endif $module\$/d
4860 /^@if $module-$bootstrap_suffix\$/d
4861 /^@endif $module-$bootstrap_suffix\$/d"
4862 done
4863 for module in ${target_configdirs} ; do
4864 if test -z "${no_recursion}" \
4865 && test -f ${target_subdir}/${module}/Makefile; then
4866 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
4867 rm -f ${target_subdir}/${module}/Makefile
4869 extrasub="$extrasub
4870 /^@if target-$module\$/d
4871 /^@endif target-$module\$/d
4872 /^@if target-$module-$bootstrap_suffix\$/d
4873 /^@endif target-$module-$bootstrap_suffix\$/d"
4874 done
4876 extrasub="$extrasub
4877 /^@if /,/^@endif /d"
4879 # Create the serialization dependencies. This uses a temporary file.
4881 # Check whether --enable-serial-configure or --disable-serial-configure was given.
4882 if test "${enable_serial_configure+set}" = set; then
4883 enableval="$enable_serial_configure"
4887 case ${enable_serial_configure} in
4888 yes)
4889 enable_serial_build_configure=yes
4890 enable_serial_host_configure=yes
4891 enable_serial_target_configure=yes
4893 esac
4895 # These force 'configure's to be done one at a time, to avoid problems
4896 # with contention over a shared config.cache.
4897 rm -f serdep.tmp
4898 echo '# serdep.tmp' > serdep.tmp
4899 olditem=
4900 test "x${enable_serial_build_configure}" = xyes &&
4901 for item in ${build_configdirs} ; do
4902 case ${olditem} in
4903 "") ;;
4904 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
4905 esac
4906 olditem=${item}
4907 done
4908 olditem=
4909 test "x${enable_serial_host_configure}" = xyes &&
4910 for item in ${configdirs} ; do
4911 case ${olditem} in
4912 "") ;;
4913 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
4914 esac
4915 olditem=${item}
4916 done
4917 olditem=
4918 test "x${enable_serial_target_configure}" = xyes &&
4919 for item in ${target_configdirs} ; do
4920 case ${olditem} in
4921 "") ;;
4922 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
4923 esac
4924 olditem=${item}
4925 done
4926 serialization_dependencies=serdep.tmp
4929 # Base args. Strip norecursion, cache-file, srcdir, host, build,
4930 # target, nonopt, and variable assignments. These are the ones we
4931 # might not want to pass down to subconfigures. Also strip
4932 # program-prefix, program-suffix, and program-transform-name, so that
4933 # we can pass down a consistent program-transform-name.
4934 baseargs=
4935 keep_next=no
4936 skip_next=no
4937 eval "set -- $ac_configure_args"
4938 for ac_arg; do
4939 if test X"$skip_next" = X"yes"; then
4940 skip_next=no
4941 continue
4943 if test X"$keep_next" = X"yes"; then
4944 case $ac_arg in
4945 *\'*)
4946 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4947 esac
4948 baseargs="$baseargs '$ac_arg'"
4949 keep_next=no
4950 continue
4953 # Handle separated arguments. Based on the logic generated by
4954 # autoconf 2.59.
4955 case $ac_arg in
4956 *=* | --config-cache | -C | -disable-* | --disable-* \
4957 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
4958 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
4959 | -with-* | --with-* | -without-* | --without-* | --x)
4960 separate_arg=no
4963 separate_arg=yes
4966 separate_arg=no
4968 esac
4970 case "$ac_arg" in
4971 --no*)
4972 continue
4974 --c* | \
4975 --sr* | \
4976 --ho* | \
4977 --bu* | \
4978 --t* | \
4979 --program-* | \
4980 -cache_file* | \
4981 -srcdir* | \
4982 -host* | \
4983 -build* | \
4984 -target* | \
4985 -program-prefix* | \
4986 -program-suffix* | \
4987 -program-transform-name* )
4988 skip_next=$separate_arg
4989 continue
4992 # An option. Add it.
4993 case $ac_arg in
4994 *\'*)
4995 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4996 esac
4997 baseargs="$baseargs '$ac_arg'"
4998 keep_next=$separate_arg
5001 # Either a variable assignment, or a nonopt (triplet). Don't
5002 # pass it down; let the Makefile handle this.
5003 continue
5005 esac
5006 done
5007 # Remove the initial space we just introduced and, as these will be
5008 # expanded by make, quote '$'.
5009 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
5011 # Add in --program-transform-name, after --program-prefix and
5012 # --program-suffix have been applied to it. Autoconf has already
5013 # doubled dollar signs and backslashes in program_transform_name; we want
5014 # the backslashes un-doubled, and then the entire thing wrapped in single
5015 # quotes, because this will be expanded first by make and then by the shell.
5016 # Also, because we want to override the logic in subdir configure scripts to
5017 # choose program_transform_name, replace any s,x,x, with s,y,y,.
5018 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5019 ${program_transform_name}
5020 EOF_SED
5021 gcc_transform_name=`cat conftestsed.out`
5022 rm -f conftestsed.out
5023 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5025 # For the build-side libraries, we just need to pretend we're native,
5026 # and not use the same cache file. Multilibs are neither needed nor
5027 # desired.
5028 build_configargs="--cache-file=../config.cache ${baseargs}"
5030 # For host modules, accept cache file option, or specification as blank.
5031 case "${cache_file}" in
5032 "") # empty
5033 cache_file_option="" ;;
5034 /* | [A-Za-z]:[\\/]* ) # absolute path
5035 cache_file_option="--cache-file=${cache_file}" ;;
5036 *) # relative path
5037 cache_file_option="--cache-file=../${cache_file}" ;;
5038 esac
5040 # Host dirs don't like to share a cache file either, horribly enough.
5041 # This seems to be due to autoconf 2.5x stupidity.
5042 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
5044 target_configargs=${baseargs}
5046 # Passing a --with-cross-host argument lets the target libraries know
5047 # whether they are being built with a cross-compiler or being built
5048 # native. However, it would be better to use other mechanisms to make the
5049 # sorts of decisions they want to make on this basis. Please consider
5050 # this option to be deprecated. FIXME.
5051 if test x${is_cross_compiler} = xyes ; then
5052 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
5055 # Default to --enable-multilib.
5056 if test x${enable_multilib} = x ; then
5057 target_configargs="--enable-multilib ${target_configargs}"
5060 # Pass --with-newlib if appropriate. Note that target_configdirs has
5061 # changed from the earlier setting of with_newlib.
5062 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5063 target_configargs="--with-newlib ${target_configargs}"
5066 # Different target subdirs use different values of certain variables
5067 # (notably CXX). Worse, multilibs use *lots* of different values.
5068 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5069 # it doesn't automatically accept command-line overrides of them.
5070 # This means it's not safe for target subdirs to share a cache file,
5071 # which is disgusting, but there you have it. Hopefully this can be
5072 # fixed in future. It's still worthwhile to use a cache file for each
5073 # directory. I think.
5075 # Pass the appropriate --build, --host, --target and --cache-file arguments.
5076 # We need to pass --target, as newer autoconf's requires consistency
5077 # for target_alias and gcc doesn't manage it consistently.
5078 target_configargs="--cache-file=./config.cache ${target_configargs}"
5080 FLAGS_FOR_TARGET=
5081 case " $target_configdirs " in
5082 *" newlib "*)
5083 case " $target_configargs " in
5084 *" --with-newlib "*)
5085 case "$target" in
5086 *-cygwin*)
5087 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' ;;
5088 esac
5090 # If we're not building GCC, don't discard standard headers.
5091 if test -d ${srcdir}/gcc; then
5092 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5094 if test "${build}" != "${host}"; then
5095 # On Canadian crosses, CC_FOR_TARGET will have already been set
5096 # by `configure', so we won't have an opportunity to add -Bgcc/
5097 # to it. This is right: we don't want to search that directory
5098 # for binaries, but we want the header files in there, so add
5099 # them explicitly.
5100 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
5102 # Someone might think of using the pre-installed headers on
5103 # Canadian crosses, in case the installed compiler is not fully
5104 # compatible with the compiler being built. In this case, it
5105 # would be better to flag an error than risking having
5106 # incompatible object files being constructed. We can't
5107 # guarantee that an error will be flagged, but let's hope the
5108 # compiler will do it, when presented with incompatible header
5109 # files.
5113 case "${target}-${is_cross_compiler}" in
5114 i[3456789]86-*-linux*-no)
5115 # Here host == target, so we don't need to build gcc,
5116 # so we don't want to discard standard headers.
5117 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5120 # If we're building newlib, use its generic headers last, but search
5121 # for any libc-related directories first (so make it the last -B
5122 # switch).
5123 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5125 esac
5127 esac
5129 esac
5130 case "$target" in
5131 *-mingw*)
5132 # Can't be handled as Cygwin above since Mingw does not use newlib.
5133 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;;
5134 esac
5136 # Allow the user to override the flags for
5137 # our build compiler if desired.
5138 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5140 # On Canadian crosses, we'll be searching the right directories for
5141 # the previously-installed cross compiler, so don't bother to add
5142 # flags for directories within the install tree of the compiler
5143 # being built; programs in there won't even run.
5144 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5145 # Search for pre-installed headers if nothing else fits.
5146 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
5149 if test "x${use_gnu_ld}" = x &&
5150 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5151 # Arrange for us to find uninstalled linker scripts.
5152 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
5155 # Search for other target-specific linker scripts and such.
5156 case "${target}" in
5157 m32c-*-* )
5158 if test -d ${srcdir}/libgloss/m32c; then
5159 # This is for crt0.o
5160 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5161 # This is for r8c.ld
5162 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5163 # This is for libnosys.a
5164 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5167 esac
5169 case $target in
5170 mep*)
5171 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5173 esac
5175 # Makefile fragments.
5176 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5178 eval fragval=\$$frag
5179 if test $fragval != /dev/null; then
5180 eval $frag=${srcdir}/$fragval
5182 done
5188 # Miscellanea: directories, flags, etc.
5196 # Build module lists & subconfigure args.
5200 # Host module lists & subconfigure args.
5204 # Target module lists & subconfigure args.
5208 # Build tools.
5212 # Generate default definitions for YACC, M4, LEX and other programs that run
5213 # on the build machine. These are used if the Makefile can't locate these
5214 # programs in objdir.
5215 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5217 for ac_prog in 'bison -y' byacc yacc
5219 # Extract the first word of "$ac_prog", so it can be a program name with args.
5220 set dummy $ac_prog; ac_word=$2
5221 echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5223 if test "${ac_cv_prog_YACC+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226 if test -n "$YACC"; then
5227 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5236 ac_cv_prog_YACC="$ac_prog"
5237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5240 done
5241 done
5245 YACC=$ac_cv_prog_YACC
5246 if test -n "$YACC"; then
5247 echo "$as_me:$LINENO: result: $YACC" >&5
5248 echo "${ECHO_T}$YACC" >&6
5249 else
5250 echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6
5254 test -n "$YACC" && break
5255 done
5256 test -n "$YACC" || YACC="$MISSING bison -y"
5258 case " $build_configdirs " in
5259 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5260 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5261 esac
5263 for ac_prog in bison
5265 # Extract the first word of "$ac_prog", so it can be a program name with args.
5266 set dummy $ac_prog; ac_word=$2
5267 echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5269 if test "${ac_cv_prog_BISON+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272 if test -n "$BISON"; then
5273 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282 ac_cv_prog_BISON="$ac_prog"
5283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5286 done
5287 done
5291 BISON=$ac_cv_prog_BISON
5292 if test -n "$BISON"; then
5293 echo "$as_me:$LINENO: result: $BISON" >&5
5294 echo "${ECHO_T}$BISON" >&6
5295 else
5296 echo "$as_me:$LINENO: result: no" >&5
5297 echo "${ECHO_T}no" >&6
5300 test -n "$BISON" && break
5301 done
5302 test -n "$BISON" || BISON="$MISSING bison"
5304 case " $build_configdirs " in
5305 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5306 esac
5308 for ac_prog in gm4 gnum4 m4
5310 # Extract the first word of "$ac_prog", so it can be a program name with args.
5311 set dummy $ac_prog; ac_word=$2
5312 echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5314 if test "${ac_cv_prog_M4+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317 if test -n "$M4"; then
5318 ac_cv_prog_M4="$M4" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_M4="$ac_prog"
5328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5331 done
5332 done
5336 M4=$ac_cv_prog_M4
5337 if test -n "$M4"; then
5338 echo "$as_me:$LINENO: result: $M4" >&5
5339 echo "${ECHO_T}$M4" >&6
5340 else
5341 echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6
5345 test -n "$M4" && break
5346 done
5347 test -n "$M4" || M4="$MISSING m4"
5349 case " $build_configdirs " in
5350 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5351 esac
5353 for ac_prog in flex lex
5355 # Extract the first word of "$ac_prog", so it can be a program name with args.
5356 set dummy $ac_prog; ac_word=$2
5357 echo "$as_me:$LINENO: checking for $ac_word" >&5
5358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5359 if test "${ac_cv_prog_LEX+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362 if test -n "$LEX"; then
5363 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372 ac_cv_prog_LEX="$ac_prog"
5373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5376 done
5377 done
5381 LEX=$ac_cv_prog_LEX
5382 if test -n "$LEX"; then
5383 echo "$as_me:$LINENO: result: $LEX" >&5
5384 echo "${ECHO_T}$LEX" >&6
5385 else
5386 echo "$as_me:$LINENO: result: no" >&5
5387 echo "${ECHO_T}no" >&6
5390 test -n "$LEX" && break
5391 done
5392 test -n "$LEX" || LEX="$MISSING flex"
5394 case " $build_configdirs " in
5395 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5396 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
5397 esac
5399 for ac_prog in flex
5401 # Extract the first word of "$ac_prog", so it can be a program name with args.
5402 set dummy $ac_prog; ac_word=$2
5403 echo "$as_me:$LINENO: checking for $ac_word" >&5
5404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5405 if test "${ac_cv_prog_FLEX+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408 if test -n "$FLEX"; then
5409 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5418 ac_cv_prog_FLEX="$ac_prog"
5419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5422 done
5423 done
5427 FLEX=$ac_cv_prog_FLEX
5428 if test -n "$FLEX"; then
5429 echo "$as_me:$LINENO: result: $FLEX" >&5
5430 echo "${ECHO_T}$FLEX" >&6
5431 else
5432 echo "$as_me:$LINENO: result: no" >&5
5433 echo "${ECHO_T}no" >&6
5436 test -n "$FLEX" && break
5437 done
5438 test -n "$FLEX" || FLEX="$MISSING flex"
5440 case " $build_configdirs " in
5441 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5442 esac
5444 for ac_prog in makeinfo
5446 # Extract the first word of "$ac_prog", so it can be a program name with args.
5447 set dummy $ac_prog; ac_word=$2
5448 echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453 if test -n "$MAKEINFO"; then
5454 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463 ac_cv_prog_MAKEINFO="$ac_prog"
5464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 break 2
5467 done
5468 done
5472 MAKEINFO=$ac_cv_prog_MAKEINFO
5473 if test -n "$MAKEINFO"; then
5474 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5475 echo "${ECHO_T}$MAKEINFO" >&6
5476 else
5477 echo "$as_me:$LINENO: result: no" >&5
5478 echo "${ECHO_T}no" >&6
5481 test -n "$MAKEINFO" && break
5482 done
5483 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
5485 case " $build_configdirs " in
5486 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
5489 # For an installed makeinfo, we require it to be from texinfo 4.4 or
5490 # higher, else we use the "missing" dummy.
5491 if ${MAKEINFO} --version \
5492 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
5494 else
5495 MAKEINFO="$MISSING makeinfo"
5499 esac
5501 # FIXME: expect and dejagnu may become build tools?
5503 for ac_prog in expect
5505 # Extract the first word of "$ac_prog", so it can be a program name with args.
5506 set dummy $ac_prog; ac_word=$2
5507 echo "$as_me:$LINENO: checking for $ac_word" >&5
5508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5509 if test "${ac_cv_prog_EXPECT+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512 if test -n "$EXPECT"; then
5513 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5522 ac_cv_prog_EXPECT="$ac_prog"
5523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5526 done
5527 done
5531 EXPECT=$ac_cv_prog_EXPECT
5532 if test -n "$EXPECT"; then
5533 echo "$as_me:$LINENO: result: $EXPECT" >&5
5534 echo "${ECHO_T}$EXPECT" >&6
5535 else
5536 echo "$as_me:$LINENO: result: no" >&5
5537 echo "${ECHO_T}no" >&6
5540 test -n "$EXPECT" && break
5541 done
5542 test -n "$EXPECT" || EXPECT="expect"
5544 case " $configdirs " in
5545 *" expect "*)
5546 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
5548 esac
5550 for ac_prog in runtest
5552 # Extract the first word of "$ac_prog", so it can be a program name with args.
5553 set dummy $ac_prog; ac_word=$2
5554 echo "$as_me:$LINENO: checking for $ac_word" >&5
5555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5556 if test "${ac_cv_prog_RUNTEST+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559 if test -n "$RUNTEST"; then
5560 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
5561 else
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569 ac_cv_prog_RUNTEST="$ac_prog"
5570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 break 2
5573 done
5574 done
5578 RUNTEST=$ac_cv_prog_RUNTEST
5579 if test -n "$RUNTEST"; then
5580 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5581 echo "${ECHO_T}$RUNTEST" >&6
5582 else
5583 echo "$as_me:$LINENO: result: no" >&5
5584 echo "${ECHO_T}no" >&6
5587 test -n "$RUNTEST" && break
5588 done
5589 test -n "$RUNTEST" || RUNTEST="runtest"
5591 case " $configdirs " in
5592 *" dejagnu "*)
5593 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
5595 esac
5598 # Host tools.
5599 ncn_tool_prefix=
5600 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
5601 ncn_target_tool_prefix=
5602 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
5604 for ncn_progname in ar; do
5605 if test -n "$ncn_tool_prefix"; then
5606 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5607 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5608 echo "$as_me:$LINENO: checking for $ac_word" >&5
5609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5610 if test "${ac_cv_prog_AR+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613 if test -n "$AR"; then
5614 ac_cv_prog_AR="$AR" # Let the user override the test.
5615 else
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH
5619 IFS=$as_save_IFS
5620 test -z "$as_dir" && as_dir=.
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 break 2
5627 done
5628 done
5632 AR=$ac_cv_prog_AR
5633 if test -n "$AR"; then
5634 echo "$as_me:$LINENO: result: $AR" >&5
5635 echo "${ECHO_T}$AR" >&6
5636 else
5637 echo "$as_me:$LINENO: result: no" >&5
5638 echo "${ECHO_T}no" >&6
5642 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
5643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5644 set dummy ${ncn_progname}; ac_word=$2
5645 echo "$as_me:$LINENO: checking for $ac_word" >&5
5646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5647 if test "${ac_cv_prog_AR+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650 if test -n "$AR"; then
5651 ac_cv_prog_AR="$AR" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660 ac_cv_prog_AR="${ncn_progname}"
5661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5664 done
5665 done
5669 AR=$ac_cv_prog_AR
5670 if test -n "$AR"; then
5671 echo "$as_me:$LINENO: result: $AR" >&5
5672 echo "${ECHO_T}$AR" >&6
5673 else
5674 echo "$as_me:$LINENO: result: no" >&5
5675 echo "${ECHO_T}no" >&6
5679 test -n "$ac_cv_prog_AR" && break
5680 done
5682 if test -z "$ac_cv_prog_AR" ; then
5683 set dummy ar
5684 if test $build = $host ; then
5685 AR="$2"
5686 else
5687 AR="${ncn_tool_prefix}$2"
5691 for ncn_progname in as; do
5692 if test -n "$ncn_tool_prefix"; then
5693 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5694 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5695 echo "$as_me:$LINENO: checking for $ac_word" >&5
5696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5697 if test "${ac_cv_prog_AS+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700 if test -n "$AS"; then
5701 ac_cv_prog_AS="$AS" # Let the user override the test.
5702 else
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 break 2
5714 done
5715 done
5719 AS=$ac_cv_prog_AS
5720 if test -n "$AS"; then
5721 echo "$as_me:$LINENO: result: $AS" >&5
5722 echo "${ECHO_T}$AS" >&6
5723 else
5724 echo "$as_me:$LINENO: result: no" >&5
5725 echo "${ECHO_T}no" >&6
5729 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
5730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5731 set dummy ${ncn_progname}; ac_word=$2
5732 echo "$as_me:$LINENO: checking for $ac_word" >&5
5733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5734 if test "${ac_cv_prog_AS+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737 if test -n "$AS"; then
5738 ac_cv_prog_AS="$AS" # Let the user override the test.
5739 else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747 ac_cv_prog_AS="${ncn_progname}"
5748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 break 2
5751 done
5752 done
5756 AS=$ac_cv_prog_AS
5757 if test -n "$AS"; then
5758 echo "$as_me:$LINENO: result: $AS" >&5
5759 echo "${ECHO_T}$AS" >&6
5760 else
5761 echo "$as_me:$LINENO: result: no" >&5
5762 echo "${ECHO_T}no" >&6
5766 test -n "$ac_cv_prog_AS" && break
5767 done
5769 if test -z "$ac_cv_prog_AS" ; then
5770 set dummy as
5771 if test $build = $host ; then
5772 AS="$2"
5773 else
5774 AS="${ncn_tool_prefix}$2"
5778 for ncn_progname in dlltool; do
5779 if test -n "$ncn_tool_prefix"; then
5780 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5781 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5782 echo "$as_me:$LINENO: checking for $ac_word" >&5
5783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5784 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787 if test -n "$DLLTOOL"; then
5788 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5789 else
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5793 IFS=$as_save_IFS
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 break 2
5801 done
5802 done
5806 DLLTOOL=$ac_cv_prog_DLLTOOL
5807 if test -n "$DLLTOOL"; then
5808 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5809 echo "${ECHO_T}$DLLTOOL" >&6
5810 else
5811 echo "$as_me:$LINENO: result: no" >&5
5812 echo "${ECHO_T}no" >&6
5816 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
5817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5818 set dummy ${ncn_progname}; ac_word=$2
5819 echo "$as_me:$LINENO: checking for $ac_word" >&5
5820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5821 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824 if test -n "$DLLTOOL"; then
5825 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5826 else
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 for as_dir in $PATH
5830 IFS=$as_save_IFS
5831 test -z "$as_dir" && as_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834 ac_cv_prog_DLLTOOL="${ncn_progname}"
5835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 break 2
5838 done
5839 done
5843 DLLTOOL=$ac_cv_prog_DLLTOOL
5844 if test -n "$DLLTOOL"; then
5845 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5846 echo "${ECHO_T}$DLLTOOL" >&6
5847 else
5848 echo "$as_me:$LINENO: result: no" >&5
5849 echo "${ECHO_T}no" >&6
5853 test -n "$ac_cv_prog_DLLTOOL" && break
5854 done
5856 if test -z "$ac_cv_prog_DLLTOOL" ; then
5857 set dummy dlltool
5858 if test $build = $host ; then
5859 DLLTOOL="$2"
5860 else
5861 DLLTOOL="${ncn_tool_prefix}$2"
5865 for ncn_progname in ld; do
5866 if test -n "$ncn_tool_prefix"; then
5867 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5868 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5869 echo "$as_me:$LINENO: checking for $ac_word" >&5
5870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5871 if test "${ac_cv_prog_LD+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874 if test -n "$LD"; then
5875 ac_cv_prog_LD="$LD" # Let the user override the test.
5876 else
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5880 IFS=$as_save_IFS
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 break 2
5888 done
5889 done
5893 LD=$ac_cv_prog_LD
5894 if test -n "$LD"; then
5895 echo "$as_me:$LINENO: result: $LD" >&5
5896 echo "${ECHO_T}$LD" >&6
5897 else
5898 echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6
5903 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
5904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5905 set dummy ${ncn_progname}; ac_word=$2
5906 echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5908 if test "${ac_cv_prog_LD+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911 if test -n "$LD"; then
5912 ac_cv_prog_LD="$LD" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921 ac_cv_prog_LD="${ncn_progname}"
5922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5925 done
5926 done
5930 LD=$ac_cv_prog_LD
5931 if test -n "$LD"; then
5932 echo "$as_me:$LINENO: result: $LD" >&5
5933 echo "${ECHO_T}$LD" >&6
5934 else
5935 echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6
5940 test -n "$ac_cv_prog_LD" && break
5941 done
5943 if test -z "$ac_cv_prog_LD" ; then
5944 set dummy ld
5945 if test $build = $host ; then
5946 LD="$2"
5947 else
5948 LD="${ncn_tool_prefix}$2"
5952 for ncn_progname in lipo; do
5953 if test -n "$ncn_tool_prefix"; then
5954 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5955 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5956 echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5958 if test "${ac_cv_prog_LIPO+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961 if test -n "$LIPO"; then
5962 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 break 2
5975 done
5976 done
5980 LIPO=$ac_cv_prog_LIPO
5981 if test -n "$LIPO"; then
5982 echo "$as_me:$LINENO: result: $LIPO" >&5
5983 echo "${ECHO_T}$LIPO" >&6
5984 else
5985 echo "$as_me:$LINENO: result: no" >&5
5986 echo "${ECHO_T}no" >&6
5990 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
5991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5992 set dummy ${ncn_progname}; ac_word=$2
5993 echo "$as_me:$LINENO: checking for $ac_word" >&5
5994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5995 if test "${ac_cv_prog_LIPO+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998 if test -n "$LIPO"; then
5999 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6000 else
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008 ac_cv_prog_LIPO="${ncn_progname}"
6009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 break 2
6012 done
6013 done
6017 LIPO=$ac_cv_prog_LIPO
6018 if test -n "$LIPO"; then
6019 echo "$as_me:$LINENO: result: $LIPO" >&5
6020 echo "${ECHO_T}$LIPO" >&6
6021 else
6022 echo "$as_me:$LINENO: result: no" >&5
6023 echo "${ECHO_T}no" >&6
6027 test -n "$ac_cv_prog_LIPO" && break
6028 done
6030 if test -z "$ac_cv_prog_LIPO" ; then
6031 set dummy lipo
6032 if test $build = $host ; then
6033 LIPO="$2"
6034 else
6035 LIPO="${ncn_tool_prefix}$2"
6039 for ncn_progname in nm; do
6040 if test -n "$ncn_tool_prefix"; then
6041 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6042 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6043 echo "$as_me:$LINENO: checking for $ac_word" >&5
6044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6045 if test "${ac_cv_prog_NM+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048 if test -n "$NM"; then
6049 ac_cv_prog_NM="$NM" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6058 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
6059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 break 2
6062 done
6063 done
6067 NM=$ac_cv_prog_NM
6068 if test -n "$NM"; then
6069 echo "$as_me:$LINENO: result: $NM" >&5
6070 echo "${ECHO_T}$NM" >&6
6071 else
6072 echo "$as_me:$LINENO: result: no" >&5
6073 echo "${ECHO_T}no" >&6
6077 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6079 set dummy ${ncn_progname}; ac_word=$2
6080 echo "$as_me:$LINENO: checking for $ac_word" >&5
6081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6082 if test "${ac_cv_prog_NM+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085 if test -n "$NM"; then
6086 ac_cv_prog_NM="$NM" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095 ac_cv_prog_NM="${ncn_progname}"
6096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6099 done
6100 done
6104 NM=$ac_cv_prog_NM
6105 if test -n "$NM"; then
6106 echo "$as_me:$LINENO: result: $NM" >&5
6107 echo "${ECHO_T}$NM" >&6
6108 else
6109 echo "$as_me:$LINENO: result: no" >&5
6110 echo "${ECHO_T}no" >&6
6114 test -n "$ac_cv_prog_NM" && break
6115 done
6117 if test -z "$ac_cv_prog_NM" ; then
6118 set dummy nm
6119 if test $build = $host ; then
6120 NM="$2"
6121 else
6122 NM="${ncn_tool_prefix}$2"
6126 for ncn_progname in ranlib; do
6127 if test -n "$ncn_tool_prefix"; then
6128 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6129 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6130 echo "$as_me:$LINENO: checking for $ac_word" >&5
6131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6132 if test "${ac_cv_prog_RANLIB+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135 if test -n "$RANLIB"; then
6136 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
6146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 break 2
6149 done
6150 done
6154 RANLIB=$ac_cv_prog_RANLIB
6155 if test -n "$RANLIB"; then
6156 echo "$as_me:$LINENO: result: $RANLIB" >&5
6157 echo "${ECHO_T}$RANLIB" >&6
6158 else
6159 echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6
6164 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
6165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6166 set dummy ${ncn_progname}; ac_word=$2
6167 echo "$as_me:$LINENO: checking for $ac_word" >&5
6168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6169 if test "${ac_cv_prog_RANLIB+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172 if test -n "$RANLIB"; then
6173 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6174 else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6178 IFS=$as_save_IFS
6179 test -z "$as_dir" && as_dir=.
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6182 ac_cv_prog_RANLIB="${ncn_progname}"
6183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6184 break 2
6186 done
6187 done
6191 RANLIB=$ac_cv_prog_RANLIB
6192 if test -n "$RANLIB"; then
6193 echo "$as_me:$LINENO: result: $RANLIB" >&5
6194 echo "${ECHO_T}$RANLIB" >&6
6195 else
6196 echo "$as_me:$LINENO: result: no" >&5
6197 echo "${ECHO_T}no" >&6
6201 test -n "$ac_cv_prog_RANLIB" && break
6202 done
6204 if test -z "$ac_cv_prog_RANLIB" ; then
6205 RANLIB=":"
6208 for ncn_progname in strip; do
6209 if test -n "$ncn_tool_prefix"; then
6210 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6211 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6212 echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6214 if test "${ac_cv_prog_STRIP+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217 if test -n "$STRIP"; then
6218 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
6228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6231 done
6232 done
6236 STRIP=$ac_cv_prog_STRIP
6237 if test -n "$STRIP"; then
6238 echo "$as_me:$LINENO: result: $STRIP" >&5
6239 echo "${ECHO_T}$STRIP" >&6
6240 else
6241 echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6
6246 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
6247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6248 set dummy ${ncn_progname}; ac_word=$2
6249 echo "$as_me:$LINENO: checking for $ac_word" >&5
6250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6251 if test "${ac_cv_prog_STRIP+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254 if test -n "$STRIP"; then
6255 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6256 else
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6264 ac_cv_prog_STRIP="${ncn_progname}"
6265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6268 done
6269 done
6273 STRIP=$ac_cv_prog_STRIP
6274 if test -n "$STRIP"; then
6275 echo "$as_me:$LINENO: result: $STRIP" >&5
6276 echo "${ECHO_T}$STRIP" >&6
6277 else
6278 echo "$as_me:$LINENO: result: no" >&5
6279 echo "${ECHO_T}no" >&6
6283 test -n "$ac_cv_prog_STRIP" && break
6284 done
6286 if test -z "$ac_cv_prog_STRIP" ; then
6287 STRIP=":"
6290 for ncn_progname in windres; do
6291 if test -n "$ncn_tool_prefix"; then
6292 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6293 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6294 echo "$as_me:$LINENO: checking for $ac_word" >&5
6295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6296 if test "${ac_cv_prog_WINDRES+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299 if test -n "$WINDRES"; then
6300 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6301 else
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 for as_dir in $PATH
6305 IFS=$as_save_IFS
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6309 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
6310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 break 2
6313 done
6314 done
6318 WINDRES=$ac_cv_prog_WINDRES
6319 if test -n "$WINDRES"; then
6320 echo "$as_me:$LINENO: result: $WINDRES" >&5
6321 echo "${ECHO_T}$WINDRES" >&6
6322 else
6323 echo "$as_me:$LINENO: result: no" >&5
6324 echo "${ECHO_T}no" >&6
6328 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
6329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6330 set dummy ${ncn_progname}; ac_word=$2
6331 echo "$as_me:$LINENO: checking for $ac_word" >&5
6332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6333 if test "${ac_cv_prog_WINDRES+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336 if test -n "$WINDRES"; then
6337 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6338 else
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6346 ac_cv_prog_WINDRES="${ncn_progname}"
6347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 break 2
6350 done
6351 done
6355 WINDRES=$ac_cv_prog_WINDRES
6356 if test -n "$WINDRES"; then
6357 echo "$as_me:$LINENO: result: $WINDRES" >&5
6358 echo "${ECHO_T}$WINDRES" >&6
6359 else
6360 echo "$as_me:$LINENO: result: no" >&5
6361 echo "${ECHO_T}no" >&6
6365 test -n "$ac_cv_prog_WINDRES" && break
6366 done
6368 if test -z "$ac_cv_prog_WINDRES" ; then
6369 set dummy windres
6370 if test $build = $host ; then
6371 WINDRES="$2"
6372 else
6373 WINDRES="${ncn_tool_prefix}$2"
6377 for ncn_progname in objcopy; do
6378 if test -n "$ncn_tool_prefix"; then
6379 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6380 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6381 echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6383 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386 if test -n "$OBJCOPY"; then
6387 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
6397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6400 done
6401 done
6405 OBJCOPY=$ac_cv_prog_OBJCOPY
6406 if test -n "$OBJCOPY"; then
6407 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6408 echo "${ECHO_T}$OBJCOPY" >&6
6409 else
6410 echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6
6415 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
6416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6417 set dummy ${ncn_progname}; ac_word=$2
6418 echo "$as_me:$LINENO: checking for $ac_word" >&5
6419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6420 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 else
6423 if test -n "$OBJCOPY"; then
6424 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433 ac_cv_prog_OBJCOPY="${ncn_progname}"
6434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 break 2
6437 done
6438 done
6442 OBJCOPY=$ac_cv_prog_OBJCOPY
6443 if test -n "$OBJCOPY"; then
6444 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6445 echo "${ECHO_T}$OBJCOPY" >&6
6446 else
6447 echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6
6452 test -n "$ac_cv_prog_OBJCOPY" && break
6453 done
6455 if test -z "$ac_cv_prog_OBJCOPY" ; then
6456 set dummy objcopy
6457 if test $build = $host ; then
6458 OBJCOPY="$2"
6459 else
6460 OBJCOPY="${ncn_tool_prefix}$2"
6464 for ncn_progname in objdump; do
6465 if test -n "$ncn_tool_prefix"; then
6466 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6467 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6468 echo "$as_me:$LINENO: checking for $ac_word" >&5
6469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6470 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473 if test -n "$OBJDUMP"; then
6474 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6475 else
6476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 for as_dir in $PATH
6479 IFS=$as_save_IFS
6480 test -z "$as_dir" && as_dir=.
6481 for ac_exec_ext in '' $ac_executable_extensions; do
6482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6483 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
6484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 break 2
6487 done
6488 done
6492 OBJDUMP=$ac_cv_prog_OBJDUMP
6493 if test -n "$OBJDUMP"; then
6494 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6495 echo "${ECHO_T}$OBJDUMP" >&6
6496 else
6497 echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6
6502 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
6503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6504 set dummy ${ncn_progname}; ac_word=$2
6505 echo "$as_me:$LINENO: checking for $ac_word" >&5
6506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6507 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510 if test -n "$OBJDUMP"; then
6511 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6520 ac_cv_prog_OBJDUMP="${ncn_progname}"
6521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 break 2
6524 done
6525 done
6529 OBJDUMP=$ac_cv_prog_OBJDUMP
6530 if test -n "$OBJDUMP"; then
6531 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6532 echo "${ECHO_T}$OBJDUMP" >&6
6533 else
6534 echo "$as_me:$LINENO: result: no" >&5
6535 echo "${ECHO_T}no" >&6
6539 test -n "$ac_cv_prog_OBJDUMP" && break
6540 done
6542 if test -z "$ac_cv_prog_OBJDUMP" ; then
6543 set dummy objdump
6544 if test $build = $host ; then
6545 OBJDUMP="$2"
6546 else
6547 OBJDUMP="${ncn_tool_prefix}$2"
6557 # Target tools.
6559 # Check whether --with-build-time-tools or --without-build-time-tools was given.
6560 if test "${with_build_time_tools+set}" = set; then
6561 withval="$with_build_time_tools"
6562 case x"$withval" in
6563 x/*) ;;
6565 with_build_time_tools=
6566 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
6567 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
6569 esac
6570 else
6571 with_build_time_tools=
6574 if test -n "$with_build_time_tools"; then
6575 for ncn_progname in cc gcc; do
6576 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6577 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6578 if test -x $with_build_time_tools/${ncn_progname}; then
6579 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6580 echo "$as_me:$LINENO: result: yes" >&5
6581 echo "${ECHO_T}yes" >&6
6582 break
6583 else
6584 echo "$as_me:$LINENO: result: no" >&5
6585 echo "${ECHO_T}no" >&6
6587 done
6590 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
6591 for ncn_progname in cc gcc; do
6592 if test -n "$ncn_target_tool_prefix"; then
6593 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6594 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6595 echo "$as_me:$LINENO: checking for $ac_word" >&5
6596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6597 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 else
6600 if test -n "$CC_FOR_TARGET"; then
6601 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
6602 else
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6606 IFS=$as_save_IFS
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6610 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 break 2
6614 done
6615 done
6619 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
6620 if test -n "$CC_FOR_TARGET"; then
6621 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6622 echo "${ECHO_T}$CC_FOR_TARGET" >&6
6623 else
6624 echo "$as_me:$LINENO: result: no" >&5
6625 echo "${ECHO_T}no" >&6
6629 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
6630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6631 set dummy ${ncn_progname}; ac_word=$2
6632 echo "$as_me:$LINENO: checking for $ac_word" >&5
6633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6634 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 else
6637 if test -n "$CC_FOR_TARGET"; then
6638 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
6639 else
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6647 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
6648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 break 2
6651 done
6652 done
6656 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
6657 if test -n "$CC_FOR_TARGET"; then
6658 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6659 echo "${ECHO_T}$CC_FOR_TARGET" >&6
6660 else
6661 echo "$as_me:$LINENO: result: no" >&5
6662 echo "${ECHO_T}no" >&6
6666 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
6667 done
6670 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
6671 set dummy cc gcc
6672 if test $build = $target ; then
6673 CC_FOR_TARGET="$2"
6674 else
6675 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
6679 if test -n "$with_build_time_tools"; then
6680 for ncn_progname in c++ g++ cxx gxx; do
6681 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6682 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6683 if test -x $with_build_time_tools/${ncn_progname}; then
6684 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6685 echo "$as_me:$LINENO: result: yes" >&5
6686 echo "${ECHO_T}yes" >&6
6687 break
6688 else
6689 echo "$as_me:$LINENO: result: no" >&5
6690 echo "${ECHO_T}no" >&6
6692 done
6695 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
6696 for ncn_progname in c++ g++ cxx gxx; do
6697 if test -n "$ncn_target_tool_prefix"; then
6698 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6699 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6700 echo "$as_me:$LINENO: checking for $ac_word" >&5
6701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6702 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705 if test -n "$CXX_FOR_TARGET"; then
6706 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
6707 else
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6715 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 break 2
6719 done
6720 done
6724 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
6725 if test -n "$CXX_FOR_TARGET"; then
6726 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6727 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
6728 else
6729 echo "$as_me:$LINENO: result: no" >&5
6730 echo "${ECHO_T}no" >&6
6734 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
6735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6736 set dummy ${ncn_progname}; ac_word=$2
6737 echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6739 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742 if test -n "$CXX_FOR_TARGET"; then
6743 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
6744 else
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6752 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
6753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 break 2
6756 done
6757 done
6761 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
6762 if test -n "$CXX_FOR_TARGET"; then
6763 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6764 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
6765 else
6766 echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6
6771 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
6772 done
6775 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
6776 set dummy c++ g++ cxx gxx
6777 if test $build = $target ; then
6778 CXX_FOR_TARGET="$2"
6779 else
6780 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
6784 if test -n "$with_build_time_tools"; then
6785 for ncn_progname in gcc; do
6786 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6787 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6788 if test -x $with_build_time_tools/${ncn_progname}; then
6789 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6790 echo "$as_me:$LINENO: result: yes" >&5
6791 echo "${ECHO_T}yes" >&6
6792 break
6793 else
6794 echo "$as_me:$LINENO: result: no" >&5
6795 echo "${ECHO_T}no" >&6
6797 done
6800 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
6801 for ncn_progname in gcc; do
6802 if test -n "$ncn_target_tool_prefix"; then
6803 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6804 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6805 echo "$as_me:$LINENO: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6807 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810 if test -n "$GCC_FOR_TARGET"; then
6811 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
6812 else
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 for as_dir in $PATH
6816 IFS=$as_save_IFS
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6820 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 break 2
6824 done
6825 done
6829 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
6830 if test -n "$GCC_FOR_TARGET"; then
6831 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6832 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
6833 else
6834 echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6
6839 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
6840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6841 set dummy ${ncn_progname}; ac_word=$2
6842 echo "$as_me:$LINENO: checking for $ac_word" >&5
6843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6844 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 else
6847 if test -n "$GCC_FOR_TARGET"; then
6848 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
6858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6861 done
6862 done
6866 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
6867 if test -n "$GCC_FOR_TARGET"; then
6868 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6869 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
6870 else
6871 echo "$as_me:$LINENO: result: no" >&5
6872 echo "${ECHO_T}no" >&6
6876 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
6877 done
6880 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
6881 GCC_FOR_TARGET="${CC_FOR_TARGET}"
6884 if test -n "$with_build_time_tools"; then
6885 for ncn_progname in gcj; do
6886 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6887 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6888 if test -x $with_build_time_tools/${ncn_progname}; then
6889 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6890 echo "$as_me:$LINENO: result: yes" >&5
6891 echo "${ECHO_T}yes" >&6
6892 break
6893 else
6894 echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6
6897 done
6900 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
6901 for ncn_progname in gcj; do
6902 if test -n "$ncn_target_tool_prefix"; then
6903 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6904 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6905 echo "$as_me:$LINENO: checking for $ac_word" >&5
6906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6907 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 else
6910 if test -n "$GCJ_FOR_TARGET"; then
6911 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
6912 else
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in $PATH
6916 IFS=$as_save_IFS
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6920 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 break 2
6924 done
6925 done
6929 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
6930 if test -n "$GCJ_FOR_TARGET"; then
6931 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
6932 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
6933 else
6934 echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6
6939 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
6940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6941 set dummy ${ncn_progname}; ac_word=$2
6942 echo "$as_me:$LINENO: checking for $ac_word" >&5
6943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6944 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947 if test -n "$GCJ_FOR_TARGET"; then
6948 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
6949 else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
6958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 break 2
6961 done
6962 done
6966 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
6967 if test -n "$GCJ_FOR_TARGET"; then
6968 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
6969 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
6970 else
6971 echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6
6976 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
6977 done
6980 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
6981 set dummy gcj
6982 if test $build = $target ; then
6983 GCJ_FOR_TARGET="$2"
6984 else
6985 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
6989 if test -n "$with_build_time_tools"; then
6990 for ncn_progname in gfortran; do
6991 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6992 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6993 if test -x $with_build_time_tools/${ncn_progname}; then
6994 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6995 echo "$as_me:$LINENO: result: yes" >&5
6996 echo "${ECHO_T}yes" >&6
6997 break
6998 else
6999 echo "$as_me:$LINENO: result: no" >&5
7000 echo "${ECHO_T}no" >&6
7002 done
7005 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
7006 for ncn_progname in gfortran; do
7007 if test -n "$ncn_target_tool_prefix"; then
7008 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7009 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7010 echo "$as_me:$LINENO: checking for $ac_word" >&5
7011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7012 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 else
7015 if test -n "$GFORTRAN_FOR_TARGET"; then
7016 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7017 else
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 for as_dir in $PATH
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7025 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7029 done
7030 done
7034 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
7035 if test -n "$GFORTRAN_FOR_TARGET"; then
7036 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7037 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
7038 else
7039 echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6
7044 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
7045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7046 set dummy ${ncn_progname}; ac_word=$2
7047 echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7049 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 else
7052 if test -n "$GFORTRAN_FOR_TARGET"; then
7053 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
7063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7066 done
7067 done
7071 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
7072 if test -n "$GFORTRAN_FOR_TARGET"; then
7073 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7074 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
7075 else
7076 echo "$as_me:$LINENO: result: no" >&5
7077 echo "${ECHO_T}no" >&6
7081 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
7082 done
7085 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
7086 set dummy gfortran
7087 if test $build = $target ; then
7088 GFORTRAN_FOR_TARGET="$2"
7089 else
7090 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
7096 # The user is always right.
7097 if test "${PATH_SEPARATOR+set}" != set; then
7098 echo "#! /bin/sh" >conf$$.sh
7099 echo "exit 0" >>conf$$.sh
7100 chmod +x conf$$.sh
7101 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7102 PATH_SEPARATOR=';'
7103 else
7104 PATH_SEPARATOR=:
7106 rm -f conf$$.sh
7111 if test "x$exec_prefix" = xNONE; then
7112 if test "x$prefix" = xNONE; then
7113 gcc_cv_tool_prefix=$ac_default_prefix
7114 else
7115 gcc_cv_tool_prefix=$prefix
7117 else
7118 gcc_cv_tool_prefix=$exec_prefix
7121 # If there is no compiler in the tree, use the PATH only. In any
7122 # case, if there is no compiler in the tree nobody should use
7123 # AS_FOR_TARGET and LD_FOR_TARGET.
7124 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7125 gcc_version=`cat $srcdir/gcc/BASE-VER`
7126 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7127 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7128 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7129 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7130 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7131 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7132 else
7133 gcc_cv_tool_dirs=
7136 if test x$build = x$target && test -n "$md_exec_prefix"; then
7137 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7142 cat > conftest.c << \EOF
7143 #ifdef __GNUC__
7144 gcc_yay;
7145 #endif
7147 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
7148 have_gcc_for_target=yes
7149 else
7150 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
7151 have_gcc_for_target=no
7153 rm conftest.c
7158 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7159 if test -n "$with_build_time_tools"; then
7160 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
7161 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
7162 if test -x $with_build_time_tools/ar; then
7163 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
7164 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
7165 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
7166 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
7167 else
7168 echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6
7171 elif test $build != $host && test $have_gcc_for_target = yes; then
7172 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
7173 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
7174 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
7177 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7178 # Extract the first word of "ar", so it can be a program name with args.
7179 set dummy ar; ac_word=$2
7180 echo "$as_me:$LINENO: checking for $ac_word" >&5
7181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7182 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185 case $AR_FOR_TARGET in
7186 [\\/]* | ?:[\\/]*)
7187 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $gcc_cv_tool_dirs
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 break 2
7201 done
7202 done
7205 esac
7207 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7209 if test -n "$AR_FOR_TARGET"; then
7210 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7211 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7212 else
7213 echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6
7218 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7219 if test -n "$with_build_time_tools"; then
7220 for ncn_progname in ar; do
7221 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7222 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7223 if test -x $with_build_time_tools/${ncn_progname}; then
7224 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7225 echo "$as_me:$LINENO: result: yes" >&5
7226 echo "${ECHO_T}yes" >&6
7227 break
7228 else
7229 echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6
7232 done
7235 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
7236 for ncn_progname in ar; do
7237 if test -n "$ncn_target_tool_prefix"; then
7238 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7239 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7240 echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7242 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245 if test -n "$AR_FOR_TARGET"; then
7246 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7247 else
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 break 2
7259 done
7260 done
7264 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
7265 if test -n "$AR_FOR_TARGET"; then
7266 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7267 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7268 else
7269 echo "$as_me:$LINENO: result: no" >&5
7270 echo "${ECHO_T}no" >&6
7274 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
7275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7276 set dummy ${ncn_progname}; ac_word=$2
7277 echo "$as_me:$LINENO: checking for $ac_word" >&5
7278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7279 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 else
7282 if test -n "$AR_FOR_TARGET"; then
7283 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7284 else
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 for as_dir in $PATH
7288 IFS=$as_save_IFS
7289 test -z "$as_dir" && as_dir=.
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7292 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
7293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 break 2
7296 done
7297 done
7301 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
7302 if test -n "$AR_FOR_TARGET"; then
7303 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7304 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7305 else
7306 echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6
7311 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
7312 done
7315 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
7316 set dummy ar
7317 if test $build = $target ; then
7318 AR_FOR_TARGET="$2"
7319 else
7320 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7324 else
7325 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7331 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7332 if test -n "$with_build_time_tools"; then
7333 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
7334 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
7335 if test -x $with_build_time_tools/as; then
7336 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
7337 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7338 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
7339 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
7340 else
7341 echo "$as_me:$LINENO: result: no" >&5
7342 echo "${ECHO_T}no" >&6
7344 elif test $build != $host && test $have_gcc_for_target = yes; then
7345 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
7346 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
7347 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7350 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7351 # Extract the first word of "as", so it can be a program name with args.
7352 set dummy as; ac_word=$2
7353 echo "$as_me:$LINENO: checking for $ac_word" >&5
7354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7355 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 else
7358 case $AS_FOR_TARGET in
7359 [\\/]* | ?:[\\/]*)
7360 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $gcc_cv_tool_dirs
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7374 done
7375 done
7378 esac
7380 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7382 if test -n "$AS_FOR_TARGET"; then
7383 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7384 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7385 else
7386 echo "$as_me:$LINENO: result: no" >&5
7387 echo "${ECHO_T}no" >&6
7391 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7392 if test -n "$with_build_time_tools"; then
7393 for ncn_progname in as; do
7394 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7395 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7396 if test -x $with_build_time_tools/${ncn_progname}; then
7397 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7398 echo "$as_me:$LINENO: result: yes" >&5
7399 echo "${ECHO_T}yes" >&6
7400 break
7401 else
7402 echo "$as_me:$LINENO: result: no" >&5
7403 echo "${ECHO_T}no" >&6
7405 done
7408 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
7409 for ncn_progname in as; do
7410 if test -n "$ncn_target_tool_prefix"; then
7411 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7412 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7413 echo "$as_me:$LINENO: checking for $ac_word" >&5
7414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7415 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418 if test -n "$AS_FOR_TARGET"; then
7419 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7420 else
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7424 IFS=$as_save_IFS
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7428 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7430 break 2
7432 done
7433 done
7437 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7438 if test -n "$AS_FOR_TARGET"; then
7439 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7440 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7441 else
7442 echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6
7447 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
7448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7449 set dummy ${ncn_progname}; ac_word=$2
7450 echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7452 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455 if test -n "$AS_FOR_TARGET"; then
7456 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 break 2
7469 done
7470 done
7474 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7475 if test -n "$AS_FOR_TARGET"; then
7476 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7477 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7478 else
7479 echo "$as_me:$LINENO: result: no" >&5
7480 echo "${ECHO_T}no" >&6
7484 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
7485 done
7488 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
7489 set dummy as
7490 if test $build = $target ; then
7491 AS_FOR_TARGET="$2"
7492 else
7493 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
7497 else
7498 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7504 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7505 if test -n "$with_build_time_tools"; then
7506 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
7507 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
7508 if test -x $with_build_time_tools/dlltool; then
7509 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
7510 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7511 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
7512 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
7513 else
7514 echo "$as_me:$LINENO: result: no" >&5
7515 echo "${ECHO_T}no" >&6
7517 elif test $build != $host && test $have_gcc_for_target = yes; then
7518 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
7519 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
7520 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7523 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7524 # Extract the first word of "dlltool", so it can be a program name with args.
7525 set dummy dlltool; ac_word=$2
7526 echo "$as_me:$LINENO: checking for $ac_word" >&5
7527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7528 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 else
7531 case $DLLTOOL_FOR_TARGET in
7532 [\\/]* | ?:[\\/]*)
7533 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 for as_dir in $gcc_cv_tool_dirs
7539 IFS=$as_save_IFS
7540 test -z "$as_dir" && as_dir=.
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7543 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7545 break 2
7547 done
7548 done
7551 esac
7553 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7555 if test -n "$DLLTOOL_FOR_TARGET"; then
7556 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7557 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7558 else
7559 echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7564 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7565 if test -n "$with_build_time_tools"; then
7566 for ncn_progname in dlltool; do
7567 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7568 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7569 if test -x $with_build_time_tools/${ncn_progname}; then
7570 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7571 echo "$as_me:$LINENO: result: yes" >&5
7572 echo "${ECHO_T}yes" >&6
7573 break
7574 else
7575 echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6
7578 done
7581 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
7582 for ncn_progname in dlltool; do
7583 if test -n "$ncn_target_tool_prefix"; then
7584 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7585 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7586 echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7588 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 else
7591 if test -n "$DLLTOOL_FOR_TARGET"; then
7592 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
7593 else
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7597 IFS=$as_save_IFS
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 break 2
7605 done
7606 done
7610 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
7611 if test -n "$DLLTOOL_FOR_TARGET"; then
7612 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7613 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7614 else
7615 echo "$as_me:$LINENO: result: no" >&5
7616 echo "${ECHO_T}no" >&6
7620 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
7621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7622 set dummy ${ncn_progname}; ac_word=$2
7623 echo "$as_me:$LINENO: checking for $ac_word" >&5
7624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7625 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628 if test -n "$DLLTOOL_FOR_TARGET"; then
7629 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
7630 else
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7634 IFS=$as_save_IFS
7635 test -z "$as_dir" && as_dir=.
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7638 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
7639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 break 2
7642 done
7643 done
7647 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
7648 if test -n "$DLLTOOL_FOR_TARGET"; then
7649 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7650 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7651 else
7652 echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6
7657 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
7658 done
7661 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
7662 set dummy dlltool
7663 if test $build = $target ; then
7664 DLLTOOL_FOR_TARGET="$2"
7665 else
7666 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
7670 else
7671 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7677 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7678 if test -n "$with_build_time_tools"; then
7679 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
7680 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
7681 if test -x $with_build_time_tools/ld; then
7682 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
7683 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
7684 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
7685 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
7686 else
7687 echo "$as_me:$LINENO: result: no" >&5
7688 echo "${ECHO_T}no" >&6
7690 elif test $build != $host && test $have_gcc_for_target = yes; then
7691 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
7692 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
7693 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
7696 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7697 # Extract the first word of "ld", so it can be a program name with args.
7698 set dummy ld; ac_word=$2
7699 echo "$as_me:$LINENO: checking for $ac_word" >&5
7700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7701 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7703 else
7704 case $LD_FOR_TARGET in
7705 [\\/]* | ?:[\\/]*)
7706 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $gcc_cv_tool_dirs
7712 IFS=$as_save_IFS
7713 test -z "$as_dir" && as_dir=.
7714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7716 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7718 break 2
7720 done
7721 done
7724 esac
7726 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
7728 if test -n "$LD_FOR_TARGET"; then
7729 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7730 echo "${ECHO_T}$LD_FOR_TARGET" >&6
7731 else
7732 echo "$as_me:$LINENO: result: no" >&5
7733 echo "${ECHO_T}no" >&6
7737 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7738 if test -n "$with_build_time_tools"; then
7739 for ncn_progname in ld; do
7740 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7741 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7742 if test -x $with_build_time_tools/${ncn_progname}; then
7743 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7744 echo "$as_me:$LINENO: result: yes" >&5
7745 echo "${ECHO_T}yes" >&6
7746 break
7747 else
7748 echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6
7751 done
7754 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
7755 for ncn_progname in ld; do
7756 if test -n "$ncn_target_tool_prefix"; then
7757 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7758 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7759 echo "$as_me:$LINENO: checking for $ac_word" >&5
7760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7761 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 else
7764 if test -n "$LD_FOR_TARGET"; then
7765 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7778 done
7779 done
7783 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
7784 if test -n "$LD_FOR_TARGET"; then
7785 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7786 echo "${ECHO_T}$LD_FOR_TARGET" >&6
7787 else
7788 echo "$as_me:$LINENO: result: no" >&5
7789 echo "${ECHO_T}no" >&6
7793 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
7794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7795 set dummy ${ncn_progname}; ac_word=$2
7796 echo "$as_me:$LINENO: checking for $ac_word" >&5
7797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7798 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801 if test -n "$LD_FOR_TARGET"; then
7802 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
7812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 break 2
7815 done
7816 done
7820 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
7821 if test -n "$LD_FOR_TARGET"; then
7822 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7823 echo "${ECHO_T}$LD_FOR_TARGET" >&6
7824 else
7825 echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6
7830 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
7831 done
7834 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
7835 set dummy ld
7836 if test $build = $target ; then
7837 LD_FOR_TARGET="$2"
7838 else
7839 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
7843 else
7844 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
7850 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7851 if test -n "$with_build_time_tools"; then
7852 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
7853 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
7854 if test -x $with_build_time_tools/lipo; then
7855 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
7856 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
7857 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
7858 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
7859 else
7860 echo "$as_me:$LINENO: result: no" >&5
7861 echo "${ECHO_T}no" >&6
7863 elif test $build != $host && test $have_gcc_for_target = yes; then
7864 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
7865 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
7866 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
7869 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7870 # Extract the first word of "lipo", so it can be a program name with args.
7871 set dummy lipo; ac_word=$2
7872 echo "$as_me:$LINENO: checking for $ac_word" >&5
7873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7874 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877 case $LIPO_FOR_TARGET in
7878 [\\/]* | ?:[\\/]*)
7879 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $gcc_cv_tool_dirs
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 break 2
7893 done
7894 done
7897 esac
7899 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
7901 if test -n "$LIPO_FOR_TARGET"; then
7902 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7903 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
7904 else
7905 echo "$as_me:$LINENO: result: no" >&5
7906 echo "${ECHO_T}no" >&6
7910 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7911 if test -n "$with_build_time_tools"; then
7912 for ncn_progname in lipo; do
7913 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7914 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7915 if test -x $with_build_time_tools/${ncn_progname}; then
7916 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7917 echo "$as_me:$LINENO: result: yes" >&5
7918 echo "${ECHO_T}yes" >&6
7919 break
7920 else
7921 echo "$as_me:$LINENO: result: no" >&5
7922 echo "${ECHO_T}no" >&6
7924 done
7927 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
7928 for ncn_progname in lipo; do
7929 if test -n "$ncn_target_tool_prefix"; then
7930 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7931 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7932 echo "$as_me:$LINENO: checking for $ac_word" >&5
7933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7934 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937 if test -n "$LIPO_FOR_TARGET"; then
7938 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
7939 else
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH
7943 IFS=$as_save_IFS
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7947 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 break 2
7951 done
7952 done
7956 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
7957 if test -n "$LIPO_FOR_TARGET"; then
7958 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7959 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
7960 else
7961 echo "$as_me:$LINENO: result: no" >&5
7962 echo "${ECHO_T}no" >&6
7966 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
7967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7968 set dummy ${ncn_progname}; ac_word=$2
7969 echo "$as_me:$LINENO: checking for $ac_word" >&5
7970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7971 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974 if test -n "$LIPO_FOR_TARGET"; then
7975 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
7976 else
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7980 IFS=$as_save_IFS
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7984 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
7985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 break 2
7988 done
7989 done
7993 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
7994 if test -n "$LIPO_FOR_TARGET"; then
7995 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7996 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
7997 else
7998 echo "$as_me:$LINENO: result: no" >&5
7999 echo "${ECHO_T}no" >&6
8003 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
8004 done
8007 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
8008 set dummy lipo
8009 if test $build = $target ; then
8010 LIPO_FOR_TARGET="$2"
8011 else
8012 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
8016 else
8017 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
8023 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8024 if test -n "$with_build_time_tools"; then
8025 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
8026 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
8027 if test -x $with_build_time_tools/nm; then
8028 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
8029 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8030 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
8031 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
8032 else
8033 echo "$as_me:$LINENO: result: no" >&5
8034 echo "${ECHO_T}no" >&6
8036 elif test $build != $host && test $have_gcc_for_target = yes; then
8037 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
8038 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
8039 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8042 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8043 # Extract the first word of "nm", so it can be a program name with args.
8044 set dummy nm; ac_word=$2
8045 echo "$as_me:$LINENO: checking for $ac_word" >&5
8046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8047 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050 case $NM_FOR_TARGET in
8051 [\\/]* | ?:[\\/]*)
8052 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
8055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056 for as_dir in $gcc_cv_tool_dirs
8058 IFS=$as_save_IFS
8059 test -z "$as_dir" && as_dir=.
8060 for ac_exec_ext in '' $ac_executable_extensions; do
8061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8062 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8064 break 2
8066 done
8067 done
8070 esac
8072 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8074 if test -n "$NM_FOR_TARGET"; then
8075 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8076 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8077 else
8078 echo "$as_me:$LINENO: result: no" >&5
8079 echo "${ECHO_T}no" >&6
8083 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8084 if test -n "$with_build_time_tools"; then
8085 for ncn_progname in nm; do
8086 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8087 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8088 if test -x $with_build_time_tools/${ncn_progname}; then
8089 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8090 echo "$as_me:$LINENO: result: yes" >&5
8091 echo "${ECHO_T}yes" >&6
8092 break
8093 else
8094 echo "$as_me:$LINENO: result: no" >&5
8095 echo "${ECHO_T}no" >&6
8097 done
8100 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
8101 for ncn_progname in nm; do
8102 if test -n "$ncn_target_tool_prefix"; then
8103 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8104 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8105 echo "$as_me:$LINENO: checking for $ac_word" >&5
8106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8107 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 else
8110 if test -n "$NM_FOR_TARGET"; then
8111 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
8112 else
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 for as_dir in $PATH
8116 IFS=$as_save_IFS
8117 test -z "$as_dir" && as_dir=.
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8120 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8122 break 2
8124 done
8125 done
8129 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
8130 if test -n "$NM_FOR_TARGET"; then
8131 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8132 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8133 else
8134 echo "$as_me:$LINENO: result: no" >&5
8135 echo "${ECHO_T}no" >&6
8139 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
8140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8141 set dummy ${ncn_progname}; ac_word=$2
8142 echo "$as_me:$LINENO: checking for $ac_word" >&5
8143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8144 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 else
8147 if test -n "$NM_FOR_TARGET"; then
8148 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
8149 else
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 for as_dir in $PATH
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8157 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
8158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8159 break 2
8161 done
8162 done
8166 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
8167 if test -n "$NM_FOR_TARGET"; then
8168 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8169 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8170 else
8171 echo "$as_me:$LINENO: result: no" >&5
8172 echo "${ECHO_T}no" >&6
8176 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
8177 done
8180 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
8181 set dummy nm
8182 if test $build = $target ; then
8183 NM_FOR_TARGET="$2"
8184 else
8185 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
8189 else
8190 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8196 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8197 if test -n "$with_build_time_tools"; then
8198 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
8199 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
8200 if test -x $with_build_time_tools/objdump; then
8201 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
8202 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8203 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
8204 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
8205 else
8206 echo "$as_me:$LINENO: result: no" >&5
8207 echo "${ECHO_T}no" >&6
8209 elif test $build != $host && test $have_gcc_for_target = yes; then
8210 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
8211 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
8212 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8215 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8216 # Extract the first word of "objdump", so it can be a program name with args.
8217 set dummy objdump; ac_word=$2
8218 echo "$as_me:$LINENO: checking for $ac_word" >&5
8219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8220 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223 case $OBJDUMP_FOR_TARGET in
8224 [\\/]* | ?:[\\/]*)
8225 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 for as_dir in $gcc_cv_tool_dirs
8231 IFS=$as_save_IFS
8232 test -z "$as_dir" && as_dir=.
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8235 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8237 break 2
8239 done
8240 done
8243 esac
8245 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8247 if test -n "$OBJDUMP_FOR_TARGET"; then
8248 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8249 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8250 else
8251 echo "$as_me:$LINENO: result: no" >&5
8252 echo "${ECHO_T}no" >&6
8256 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8257 if test -n "$with_build_time_tools"; then
8258 for ncn_progname in objdump; do
8259 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8260 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8261 if test -x $with_build_time_tools/${ncn_progname}; then
8262 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8263 echo "$as_me:$LINENO: result: yes" >&5
8264 echo "${ECHO_T}yes" >&6
8265 break
8266 else
8267 echo "$as_me:$LINENO: result: no" >&5
8268 echo "${ECHO_T}no" >&6
8270 done
8273 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
8274 for ncn_progname in objdump; do
8275 if test -n "$ncn_target_tool_prefix"; then
8276 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8277 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8278 echo "$as_me:$LINENO: checking for $ac_word" >&5
8279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8280 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 else
8283 if test -n "$OBJDUMP_FOR_TARGET"; then
8284 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8285 else
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 for as_dir in $PATH
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8293 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 break 2
8297 done
8298 done
8302 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
8303 if test -n "$OBJDUMP_FOR_TARGET"; then
8304 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8305 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8306 else
8307 echo "$as_me:$LINENO: result: no" >&5
8308 echo "${ECHO_T}no" >&6
8312 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
8313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8314 set dummy ${ncn_progname}; ac_word=$2
8315 echo "$as_me:$LINENO: checking for $ac_word" >&5
8316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8317 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320 if test -n "$OBJDUMP_FOR_TARGET"; then
8321 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8322 else
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 for as_dir in $PATH
8326 IFS=$as_save_IFS
8327 test -z "$as_dir" && as_dir=.
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8330 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
8331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8332 break 2
8334 done
8335 done
8339 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
8340 if test -n "$OBJDUMP_FOR_TARGET"; then
8341 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8342 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8343 else
8344 echo "$as_me:$LINENO: result: no" >&5
8345 echo "${ECHO_T}no" >&6
8349 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
8350 done
8353 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
8354 set dummy objdump
8355 if test $build = $target ; then
8356 OBJDUMP_FOR_TARGET="$2"
8357 else
8358 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8362 else
8363 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8369 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8370 if test -n "$with_build_time_tools"; then
8371 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
8372 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
8373 if test -x $with_build_time_tools/ranlib; then
8374 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
8375 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8376 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
8377 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
8378 else
8379 echo "$as_me:$LINENO: result: no" >&5
8380 echo "${ECHO_T}no" >&6
8382 elif test $build != $host && test $have_gcc_for_target = yes; then
8383 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
8384 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
8385 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8388 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8389 # Extract the first word of "ranlib", so it can be a program name with args.
8390 set dummy ranlib; ac_word=$2
8391 echo "$as_me:$LINENO: checking for $ac_word" >&5
8392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8393 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8395 else
8396 case $RANLIB_FOR_TARGET in
8397 [\\/]* | ?:[\\/]*)
8398 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $gcc_cv_tool_dirs
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8408 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8412 done
8413 done
8416 esac
8418 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8420 if test -n "$RANLIB_FOR_TARGET"; then
8421 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8422 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8423 else
8424 echo "$as_me:$LINENO: result: no" >&5
8425 echo "${ECHO_T}no" >&6
8429 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8430 if test -n "$with_build_time_tools"; then
8431 for ncn_progname in ranlib; do
8432 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8433 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8434 if test -x $with_build_time_tools/${ncn_progname}; then
8435 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8436 echo "$as_me:$LINENO: result: yes" >&5
8437 echo "${ECHO_T}yes" >&6
8438 break
8439 else
8440 echo "$as_me:$LINENO: result: no" >&5
8441 echo "${ECHO_T}no" >&6
8443 done
8446 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
8447 for ncn_progname in ranlib; do
8448 if test -n "$ncn_target_tool_prefix"; then
8449 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8450 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8451 echo "$as_me:$LINENO: checking for $ac_word" >&5
8452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8453 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456 if test -n "$RANLIB_FOR_TARGET"; then
8457 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8458 else
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 for as_dir in $PATH
8462 IFS=$as_save_IFS
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8466 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 break 2
8470 done
8471 done
8475 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8476 if test -n "$RANLIB_FOR_TARGET"; then
8477 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8478 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8479 else
8480 echo "$as_me:$LINENO: result: no" >&5
8481 echo "${ECHO_T}no" >&6
8485 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
8486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8487 set dummy ${ncn_progname}; ac_word=$2
8488 echo "$as_me:$LINENO: checking for $ac_word" >&5
8489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8490 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 else
8493 if test -n "$RANLIB_FOR_TARGET"; then
8494 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8495 else
8496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 for as_dir in $PATH
8499 IFS=$as_save_IFS
8500 test -z "$as_dir" && as_dir=.
8501 for ac_exec_ext in '' $ac_executable_extensions; do
8502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8503 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
8504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 break 2
8507 done
8508 done
8512 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8513 if test -n "$RANLIB_FOR_TARGET"; then
8514 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8515 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8516 else
8517 echo "$as_me:$LINENO: result: no" >&5
8518 echo "${ECHO_T}no" >&6
8522 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
8523 done
8526 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
8527 set dummy ranlib
8528 if test $build = $target ; then
8529 RANLIB_FOR_TARGET="$2"
8530 else
8531 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
8535 else
8536 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8542 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8543 if test -n "$with_build_time_tools"; then
8544 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
8545 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
8546 if test -x $with_build_time_tools/strip; then
8547 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
8548 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8549 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
8550 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
8551 else
8552 echo "$as_me:$LINENO: result: no" >&5
8553 echo "${ECHO_T}no" >&6
8555 elif test $build != $host && test $have_gcc_for_target = yes; then
8556 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
8557 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
8558 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8561 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8562 # Extract the first word of "strip", so it can be a program name with args.
8563 set dummy strip; ac_word=$2
8564 echo "$as_me:$LINENO: checking for $ac_word" >&5
8565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8566 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 else
8569 case $STRIP_FOR_TARGET in
8570 [\\/]* | ?:[\\/]*)
8571 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
8574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575 for as_dir in $gcc_cv_tool_dirs
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8581 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 break 2
8585 done
8586 done
8589 esac
8591 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
8593 if test -n "$STRIP_FOR_TARGET"; then
8594 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8595 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
8596 else
8597 echo "$as_me:$LINENO: result: no" >&5
8598 echo "${ECHO_T}no" >&6
8602 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8603 if test -n "$with_build_time_tools"; then
8604 for ncn_progname in strip; do
8605 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8606 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8607 if test -x $with_build_time_tools/${ncn_progname}; then
8608 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8609 echo "$as_me:$LINENO: result: yes" >&5
8610 echo "${ECHO_T}yes" >&6
8611 break
8612 else
8613 echo "$as_me:$LINENO: result: no" >&5
8614 echo "${ECHO_T}no" >&6
8616 done
8619 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
8620 for ncn_progname in strip; do
8621 if test -n "$ncn_target_tool_prefix"; then
8622 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8623 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8624 echo "$as_me:$LINENO: checking for $ac_word" >&5
8625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8626 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 else
8629 if test -n "$STRIP_FOR_TARGET"; then
8630 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
8631 else
8632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633 for as_dir in $PATH
8635 IFS=$as_save_IFS
8636 test -z "$as_dir" && as_dir=.
8637 for ac_exec_ext in '' $ac_executable_extensions; do
8638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8639 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8641 break 2
8643 done
8644 done
8648 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
8649 if test -n "$STRIP_FOR_TARGET"; then
8650 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8651 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
8652 else
8653 echo "$as_me:$LINENO: result: no" >&5
8654 echo "${ECHO_T}no" >&6
8658 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
8659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8660 set dummy ${ncn_progname}; ac_word=$2
8661 echo "$as_me:$LINENO: checking for $ac_word" >&5
8662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8663 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 else
8666 if test -n "$STRIP_FOR_TARGET"; then
8667 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
8668 else
8669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8670 for as_dir in $PATH
8672 IFS=$as_save_IFS
8673 test -z "$as_dir" && as_dir=.
8674 for ac_exec_ext in '' $ac_executable_extensions; do
8675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8676 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
8677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8678 break 2
8680 done
8681 done
8685 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
8686 if test -n "$STRIP_FOR_TARGET"; then
8687 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8688 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
8689 else
8690 echo "$as_me:$LINENO: result: no" >&5
8691 echo "${ECHO_T}no" >&6
8695 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
8696 done
8699 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
8700 set dummy strip
8701 if test $build = $target ; then
8702 STRIP_FOR_TARGET="$2"
8703 else
8704 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8708 else
8709 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
8715 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8716 if test -n "$with_build_time_tools"; then
8717 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
8718 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
8719 if test -x $with_build_time_tools/windres; then
8720 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
8721 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
8722 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
8723 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
8724 else
8725 echo "$as_me:$LINENO: result: no" >&5
8726 echo "${ECHO_T}no" >&6
8728 elif test $build != $host && test $have_gcc_for_target = yes; then
8729 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
8730 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
8731 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
8734 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8735 # Extract the first word of "windres", so it can be a program name with args.
8736 set dummy windres; ac_word=$2
8737 echo "$as_me:$LINENO: checking for $ac_word" >&5
8738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8739 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742 case $WINDRES_FOR_TARGET in
8743 [\\/]* | ?:[\\/]*)
8744 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748 for as_dir in $gcc_cv_tool_dirs
8750 IFS=$as_save_IFS
8751 test -z "$as_dir" && as_dir=.
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8754 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 break 2
8758 done
8759 done
8762 esac
8764 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
8766 if test -n "$WINDRES_FOR_TARGET"; then
8767 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8768 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
8769 else
8770 echo "$as_me:$LINENO: result: no" >&5
8771 echo "${ECHO_T}no" >&6
8775 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8776 if test -n "$with_build_time_tools"; then
8777 for ncn_progname in windres; do
8778 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8779 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8780 if test -x $with_build_time_tools/${ncn_progname}; then
8781 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8782 echo "$as_me:$LINENO: result: yes" >&5
8783 echo "${ECHO_T}yes" >&6
8784 break
8785 else
8786 echo "$as_me:$LINENO: result: no" >&5
8787 echo "${ECHO_T}no" >&6
8789 done
8792 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
8793 for ncn_progname in windres; do
8794 if test -n "$ncn_target_tool_prefix"; then
8795 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8796 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8797 echo "$as_me:$LINENO: checking for $ac_word" >&5
8798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8799 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 else
8802 if test -n "$WINDRES_FOR_TARGET"; then
8803 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
8804 else
8805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806 for as_dir in $PATH
8808 IFS=$as_save_IFS
8809 test -z "$as_dir" && as_dir=.
8810 for ac_exec_ext in '' $ac_executable_extensions; do
8811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8812 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8814 break 2
8816 done
8817 done
8821 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
8822 if test -n "$WINDRES_FOR_TARGET"; then
8823 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8824 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
8825 else
8826 echo "$as_me:$LINENO: result: no" >&5
8827 echo "${ECHO_T}no" >&6
8831 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
8832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8833 set dummy ${ncn_progname}; ac_word=$2
8834 echo "$as_me:$LINENO: checking for $ac_word" >&5
8835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8836 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
8837 echo $ECHO_N "(cached) $ECHO_C" >&6
8838 else
8839 if test -n "$WINDRES_FOR_TARGET"; then
8840 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
8841 else
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 for as_dir in $PATH
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8849 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
8850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8851 break 2
8853 done
8854 done
8858 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
8859 if test -n "$WINDRES_FOR_TARGET"; then
8860 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8861 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
8862 else
8863 echo "$as_me:$LINENO: result: no" >&5
8864 echo "${ECHO_T}no" >&6
8868 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
8869 done
8872 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
8873 set dummy windres
8874 if test $build = $target ; then
8875 WINDRES_FOR_TARGET="$2"
8876 else
8877 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
8881 else
8882 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
8886 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
8888 echo "$as_me:$LINENO: checking where to find the target ar" >&5
8889 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
8890 if test "x${build}" != "x${host}" ; then
8891 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
8892 # We already found the complete path
8893 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
8894 echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
8895 else
8896 # Canadian cross, just use what we found
8897 echo "$as_me:$LINENO: result: pre-installed" >&5
8898 echo "${ECHO_T}pre-installed" >&6
8900 else
8901 ok=yes
8902 case " ${configdirs} " in
8903 *" binutils "*) ;;
8904 *) ok=no ;;
8905 esac
8907 if test $ok = yes; then
8908 # An in-tree tool is available and we can use it
8909 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
8910 echo "$as_me:$LINENO: result: just compiled" >&5
8911 echo "${ECHO_T}just compiled" >&6
8912 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
8913 # We already found the complete path
8914 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
8915 echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
8916 elif test "x$target" = "x$host"; then
8917 # We can use an host tool
8918 AR_FOR_TARGET='$(AR)'
8919 echo "$as_me:$LINENO: result: host tool" >&5
8920 echo "${ECHO_T}host tool" >&6
8921 else
8922 # We need a cross tool
8923 echo "$as_me:$LINENO: result: pre-installed" >&5
8924 echo "${ECHO_T}pre-installed" >&6
8928 echo "$as_me:$LINENO: checking where to find the target as" >&5
8929 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
8930 if test "x${build}" != "x${host}" ; then
8931 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
8932 # We already found the complete path
8933 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
8934 echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
8935 else
8936 # Canadian cross, just use what we found
8937 echo "$as_me:$LINENO: result: pre-installed" >&5
8938 echo "${ECHO_T}pre-installed" >&6
8940 else
8941 ok=yes
8942 case " ${configdirs} " in
8943 *" gas "*) ;;
8944 *) ok=no ;;
8945 esac
8947 if test $ok = yes; then
8948 # An in-tree tool is available and we can use it
8949 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
8950 echo "$as_me:$LINENO: result: just compiled" >&5
8951 echo "${ECHO_T}just compiled" >&6
8952 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
8953 # We already found the complete path
8954 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
8955 echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
8956 elif test "x$target" = "x$host"; then
8957 # We can use an host tool
8958 AS_FOR_TARGET='$(AS)'
8959 echo "$as_me:$LINENO: result: host tool" >&5
8960 echo "${ECHO_T}host tool" >&6
8961 else
8962 # We need a cross tool
8963 echo "$as_me:$LINENO: result: pre-installed" >&5
8964 echo "${ECHO_T}pre-installed" >&6
8968 echo "$as_me:$LINENO: checking where to find the target cc" >&5
8969 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
8970 if test "x${build}" != "x${host}" ; then
8971 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
8972 # We already found the complete path
8973 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
8974 echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
8975 else
8976 # Canadian cross, just use what we found
8977 echo "$as_me:$LINENO: result: pre-installed" >&5
8978 echo "${ECHO_T}pre-installed" >&6
8980 else
8981 ok=yes
8982 case " ${configdirs} " in
8983 *" gcc "*) ;;
8984 *) ok=no ;;
8985 esac
8987 if test $ok = yes; then
8988 # An in-tree tool is available and we can use it
8989 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
8990 echo "$as_me:$LINENO: result: just compiled" >&5
8991 echo "${ECHO_T}just compiled" >&6
8992 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
8993 # We already found the complete path
8994 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
8995 echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
8996 elif test "x$target" = "x$host"; then
8997 # We can use an host tool
8998 CC_FOR_TARGET='$(CC)'
8999 echo "$as_me:$LINENO: result: host tool" >&5
9000 echo "${ECHO_T}host tool" >&6
9001 else
9002 # We need a cross tool
9003 echo "$as_me:$LINENO: result: pre-installed" >&5
9004 echo "${ECHO_T}pre-installed" >&6
9008 echo "$as_me:$LINENO: checking where to find the target c++" >&5
9009 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
9010 if test "x${build}" != "x${host}" ; then
9011 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9012 # We already found the complete path
9013 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9014 echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
9015 else
9016 # Canadian cross, just use what we found
9017 echo "$as_me:$LINENO: result: pre-installed" >&5
9018 echo "${ECHO_T}pre-installed" >&6
9020 else
9021 ok=yes
9022 case " ${configdirs} " in
9023 *" gcc "*) ;;
9024 *) ok=no ;;
9025 esac
9026 case ,${enable_languages}, in
9027 *,c++,*) ;;
9028 *) ok=no ;;
9029 esac
9030 if test $ok = yes; then
9031 # An in-tree tool is available and we can use it
9032 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `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'
9033 echo "$as_me:$LINENO: result: just compiled" >&5
9034 echo "${ECHO_T}just compiled" >&6
9035 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9036 # We already found the complete path
9037 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9038 echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
9039 elif test "x$target" = "x$host"; then
9040 # We can use an host tool
9041 CXX_FOR_TARGET='$(CXX)'
9042 echo "$as_me:$LINENO: result: host tool" >&5
9043 echo "${ECHO_T}host tool" >&6
9044 else
9045 # We need a cross tool
9046 echo "$as_me:$LINENO: result: pre-installed" >&5
9047 echo "${ECHO_T}pre-installed" >&6
9051 echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
9052 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
9053 if test "x${build}" != "x${host}" ; then
9054 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9055 # We already found the complete path
9056 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9057 echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
9058 else
9059 # Canadian cross, just use what we found
9060 echo "$as_me:$LINENO: result: pre-installed" >&5
9061 echo "${ECHO_T}pre-installed" >&6
9063 else
9064 ok=yes
9065 case " ${configdirs} " in
9066 *" gcc "*) ;;
9067 *) ok=no ;;
9068 esac
9069 case ,${enable_languages}, in
9070 *,c++,*) ;;
9071 *) ok=no ;;
9072 esac
9073 if test $ok = yes; then
9074 # An in-tree tool is available and we can use it
9075 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
9076 echo "$as_me:$LINENO: result: just compiled" >&5
9077 echo "${ECHO_T}just compiled" >&6
9078 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9079 # We already found the complete path
9080 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9081 echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
9082 elif test "x$target" = "x$host"; then
9083 # We can use an host tool
9084 RAW_CXX_FOR_TARGET='$(CXX)'
9085 echo "$as_me:$LINENO: result: host tool" >&5
9086 echo "${ECHO_T}host tool" >&6
9087 else
9088 # We need a cross tool
9089 echo "$as_me:$LINENO: result: pre-installed" >&5
9090 echo "${ECHO_T}pre-installed" >&6
9094 echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
9095 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
9096 if test "x${build}" != "x${host}" ; then
9097 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9098 # We already found the complete path
9099 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9100 echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
9101 else
9102 # Canadian cross, just use what we found
9103 echo "$as_me:$LINENO: result: pre-installed" >&5
9104 echo "${ECHO_T}pre-installed" >&6
9106 else
9107 ok=yes
9108 case " ${configdirs} " in
9109 *" binutils "*) ;;
9110 *) ok=no ;;
9111 esac
9113 if test $ok = yes; then
9114 # An in-tree tool is available and we can use it
9115 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
9116 echo "$as_me:$LINENO: result: just compiled" >&5
9117 echo "${ECHO_T}just compiled" >&6
9118 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9119 # We already found the complete path
9120 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9121 echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
9122 elif test "x$target" = "x$host"; then
9123 # We can use an host tool
9124 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
9125 echo "$as_me:$LINENO: result: host tool" >&5
9126 echo "${ECHO_T}host tool" >&6
9127 else
9128 # We need a cross tool
9129 echo "$as_me:$LINENO: result: pre-installed" >&5
9130 echo "${ECHO_T}pre-installed" >&6
9134 echo "$as_me:$LINENO: checking where to find the target gcc" >&5
9135 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
9136 if test "x${build}" != "x${host}" ; then
9137 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9138 # We already found the complete path
9139 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9140 echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
9141 else
9142 # Canadian cross, just use what we found
9143 echo "$as_me:$LINENO: result: pre-installed" >&5
9144 echo "${ECHO_T}pre-installed" >&6
9146 else
9147 ok=yes
9148 case " ${configdirs} " in
9149 *" gcc "*) ;;
9150 *) ok=no ;;
9151 esac
9153 if test $ok = yes; then
9154 # An in-tree tool is available and we can use it
9155 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
9156 echo "$as_me:$LINENO: result: just compiled" >&5
9157 echo "${ECHO_T}just compiled" >&6
9158 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9159 # We already found the complete path
9160 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9161 echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
9162 elif test "x$target" = "x$host"; then
9163 # We can use an host tool
9164 GCC_FOR_TARGET='$()'
9165 echo "$as_me:$LINENO: result: host tool" >&5
9166 echo "${ECHO_T}host tool" >&6
9167 else
9168 # We need a cross tool
9169 echo "$as_me:$LINENO: result: pre-installed" >&5
9170 echo "${ECHO_T}pre-installed" >&6
9174 echo "$as_me:$LINENO: checking where to find the target gcj" >&5
9175 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
9176 if test "x${build}" != "x${host}" ; then
9177 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9178 # We already found the complete path
9179 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9180 echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
9181 else
9182 # Canadian cross, just use what we found
9183 echo "$as_me:$LINENO: result: pre-installed" >&5
9184 echo "${ECHO_T}pre-installed" >&6
9186 else
9187 ok=yes
9188 case " ${configdirs} " in
9189 *" gcc "*) ;;
9190 *) ok=no ;;
9191 esac
9192 case ,${enable_languages}, in
9193 *,java,*) ;;
9194 *) ok=no ;;
9195 esac
9196 if test $ok = yes; then
9197 # An in-tree tool is available and we can use it
9198 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
9199 echo "$as_me:$LINENO: result: just compiled" >&5
9200 echo "${ECHO_T}just compiled" >&6
9201 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9202 # We already found the complete path
9203 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9204 echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
9205 elif test "x$target" = "x$host"; then
9206 # We can use an host tool
9207 GCJ_FOR_TARGET='$(GCJ)'
9208 echo "$as_me:$LINENO: result: host tool" >&5
9209 echo "${ECHO_T}host tool" >&6
9210 else
9211 # We need a cross tool
9212 echo "$as_me:$LINENO: result: pre-installed" >&5
9213 echo "${ECHO_T}pre-installed" >&6
9217 echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
9218 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
9219 if test "x${build}" != "x${host}" ; then
9220 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9221 # We already found the complete path
9222 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9223 echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
9224 else
9225 # Canadian cross, just use what we found
9226 echo "$as_me:$LINENO: result: pre-installed" >&5
9227 echo "${ECHO_T}pre-installed" >&6
9229 else
9230 ok=yes
9231 case " ${configdirs} " in
9232 *" gcc "*) ;;
9233 *) ok=no ;;
9234 esac
9235 case ,${enable_languages}, in
9236 *,fortran,*) ;;
9237 *) ok=no ;;
9238 esac
9239 if test $ok = yes; then
9240 # An in-tree tool is available and we can use it
9241 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
9242 echo "$as_me:$LINENO: result: just compiled" >&5
9243 echo "${ECHO_T}just compiled" >&6
9244 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9245 # We already found the complete path
9246 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9247 echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
9248 elif test "x$target" = "x$host"; then
9249 # We can use an host tool
9250 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
9251 echo "$as_me:$LINENO: result: host tool" >&5
9252 echo "${ECHO_T}host tool" >&6
9253 else
9254 # We need a cross tool
9255 echo "$as_me:$LINENO: result: pre-installed" >&5
9256 echo "${ECHO_T}pre-installed" >&6
9260 echo "$as_me:$LINENO: checking where to find the target ld" >&5
9261 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
9262 if test "x${build}" != "x${host}" ; then
9263 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9264 # We already found the complete path
9265 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9266 echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
9267 else
9268 # Canadian cross, just use what we found
9269 echo "$as_me:$LINENO: result: pre-installed" >&5
9270 echo "${ECHO_T}pre-installed" >&6
9272 else
9273 ok=yes
9274 case " ${configdirs} " in
9275 *" ld "*) ;;
9276 *) ok=no ;;
9277 esac
9279 if test $ok = yes; then
9280 # An in-tree tool is available and we can use it
9281 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
9282 echo "$as_me:$LINENO: result: just compiled" >&5
9283 echo "${ECHO_T}just compiled" >&6
9284 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9285 # We already found the complete path
9286 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9287 echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
9288 elif test "x$target" = "x$host"; then
9289 # We can use an host tool
9290 LD_FOR_TARGET='$(LD)'
9291 echo "$as_me:$LINENO: result: host tool" >&5
9292 echo "${ECHO_T}host tool" >&6
9293 else
9294 # We need a cross tool
9295 echo "$as_me:$LINENO: result: pre-installed" >&5
9296 echo "${ECHO_T}pre-installed" >&6
9300 echo "$as_me:$LINENO: checking where to find the target lipo" >&5
9301 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
9302 if test "x${build}" != "x${host}" ; then
9303 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9304 # We already found the complete path
9305 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9306 echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
9307 else
9308 # Canadian cross, just use what we found
9309 echo "$as_me:$LINENO: result: pre-installed" >&5
9310 echo "${ECHO_T}pre-installed" >&6
9312 else
9313 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9314 # We already found the complete path
9315 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9316 echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
9317 elif test "x$target" = "x$host"; then
9318 # We can use an host tool
9319 LIPO_FOR_TARGET='$(LIPO)'
9320 echo "$as_me:$LINENO: result: host tool" >&5
9321 echo "${ECHO_T}host tool" >&6
9322 else
9323 # We need a cross tool
9324 echo "$as_me:$LINENO: result: pre-installed" >&5
9325 echo "${ECHO_T}pre-installed" >&6
9329 echo "$as_me:$LINENO: checking where to find the target nm" >&5
9330 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
9331 if test "x${build}" != "x${host}" ; then
9332 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9333 # We already found the complete path
9334 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9335 echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
9336 else
9337 # Canadian cross, just use what we found
9338 echo "$as_me:$LINENO: result: pre-installed" >&5
9339 echo "${ECHO_T}pre-installed" >&6
9341 else
9342 ok=yes
9343 case " ${configdirs} " in
9344 *" binutils "*) ;;
9345 *) ok=no ;;
9346 esac
9348 if test $ok = yes; then
9349 # An in-tree tool is available and we can use it
9350 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
9351 echo "$as_me:$LINENO: result: just compiled" >&5
9352 echo "${ECHO_T}just compiled" >&6
9353 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9354 # We already found the complete path
9355 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9356 echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
9357 elif test "x$target" = "x$host"; then
9358 # We can use an host tool
9359 NM_FOR_TARGET='$(NM)'
9360 echo "$as_me:$LINENO: result: host tool" >&5
9361 echo "${ECHO_T}host tool" >&6
9362 else
9363 # We need a cross tool
9364 echo "$as_me:$LINENO: result: pre-installed" >&5
9365 echo "${ECHO_T}pre-installed" >&6
9369 echo "$as_me:$LINENO: checking where to find the target objdump" >&5
9370 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
9371 if test "x${build}" != "x${host}" ; then
9372 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9373 # We already found the complete path
9374 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9375 echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
9376 else
9377 # Canadian cross, just use what we found
9378 echo "$as_me:$LINENO: result: pre-installed" >&5
9379 echo "${ECHO_T}pre-installed" >&6
9381 else
9382 ok=yes
9383 case " ${configdirs} " in
9384 *" binutils "*) ;;
9385 *) ok=no ;;
9386 esac
9388 if test $ok = yes; then
9389 # An in-tree tool is available and we can use it
9390 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
9391 echo "$as_me:$LINENO: result: just compiled" >&5
9392 echo "${ECHO_T}just compiled" >&6
9393 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9394 # We already found the complete path
9395 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9396 echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
9397 elif test "x$target" = "x$host"; then
9398 # We can use an host tool
9399 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
9400 echo "$as_me:$LINENO: result: host tool" >&5
9401 echo "${ECHO_T}host tool" >&6
9402 else
9403 # We need a cross tool
9404 echo "$as_me:$LINENO: result: pre-installed" >&5
9405 echo "${ECHO_T}pre-installed" >&6
9409 echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
9410 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
9411 if test "x${build}" != "x${host}" ; then
9412 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9413 # We already found the complete path
9414 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9415 echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
9416 else
9417 # Canadian cross, just use what we found
9418 echo "$as_me:$LINENO: result: pre-installed" >&5
9419 echo "${ECHO_T}pre-installed" >&6
9421 else
9422 ok=yes
9423 case " ${configdirs} " in
9424 *" binutils "*) ;;
9425 *) ok=no ;;
9426 esac
9428 if test $ok = yes; then
9429 # An in-tree tool is available and we can use it
9430 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
9431 echo "$as_me:$LINENO: result: just compiled" >&5
9432 echo "${ECHO_T}just compiled" >&6
9433 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9434 # We already found the complete path
9435 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9436 echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
9437 elif test "x$target" = "x$host"; then
9438 # We can use an host tool
9439 RANLIB_FOR_TARGET='$(RANLIB)'
9440 echo "$as_me:$LINENO: result: host tool" >&5
9441 echo "${ECHO_T}host tool" >&6
9442 else
9443 # We need a cross tool
9444 echo "$as_me:$LINENO: result: pre-installed" >&5
9445 echo "${ECHO_T}pre-installed" >&6
9449 echo "$as_me:$LINENO: checking where to find the target strip" >&5
9450 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
9451 if test "x${build}" != "x${host}" ; then
9452 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9453 # We already found the complete path
9454 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9455 echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
9456 else
9457 # Canadian cross, just use what we found
9458 echo "$as_me:$LINENO: result: pre-installed" >&5
9459 echo "${ECHO_T}pre-installed" >&6
9461 else
9462 ok=yes
9463 case " ${configdirs} " in
9464 *" binutils "*) ;;
9465 *) ok=no ;;
9466 esac
9468 if test $ok = yes; then
9469 # An in-tree tool is available and we can use it
9470 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
9471 echo "$as_me:$LINENO: result: just compiled" >&5
9472 echo "${ECHO_T}just compiled" >&6
9473 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9474 # We already found the complete path
9475 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9476 echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
9477 elif test "x$target" = "x$host"; then
9478 # We can use an host tool
9479 STRIP_FOR_TARGET='$(STRIP)'
9480 echo "$as_me:$LINENO: result: host tool" >&5
9481 echo "${ECHO_T}host tool" >&6
9482 else
9483 # We need a cross tool
9484 echo "$as_me:$LINENO: result: pre-installed" >&5
9485 echo "${ECHO_T}pre-installed" >&6
9489 echo "$as_me:$LINENO: checking where to find the target windres" >&5
9490 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
9491 if test "x${build}" != "x${host}" ; then
9492 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9493 # We already found the complete path
9494 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9495 echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
9496 else
9497 # Canadian cross, just use what we found
9498 echo "$as_me:$LINENO: result: pre-installed" >&5
9499 echo "${ECHO_T}pre-installed" >&6
9501 else
9502 ok=yes
9503 case " ${configdirs} " in
9504 *" binutils "*) ;;
9505 *) ok=no ;;
9506 esac
9508 if test $ok = yes; then
9509 # An in-tree tool is available and we can use it
9510 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
9511 echo "$as_me:$LINENO: result: just compiled" >&5
9512 echo "${ECHO_T}just compiled" >&6
9513 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9514 # We already found the complete path
9515 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9516 echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
9517 elif test "x$target" = "x$host"; then
9518 # We can use an host tool
9519 WINDRES_FOR_TARGET='$(WINDRES)'
9520 echo "$as_me:$LINENO: result: host tool" >&5
9521 echo "${ECHO_T}host tool" >&6
9522 else
9523 # We need a cross tool
9524 echo "$as_me:$LINENO: result: pre-installed" >&5
9525 echo "${ECHO_T}pre-installed" >&6
9533 # Certain tools may need extra flags.
9534 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
9535 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
9536 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
9538 # When building target libraries, except in a Canadian cross, we use
9539 # the same toolchain as the compiler we just built.
9540 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
9541 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
9542 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
9543 if test $host = $build; then
9544 case " $configdirs " in
9545 *" gcc "*)
9546 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
9547 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
9548 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
9550 esac
9557 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9558 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9559 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9560 if test "${enable_maintainer_mode+set}" = set; then
9561 enableval="$enable_maintainer_mode"
9562 USE_MAINTAINER_MODE=$enableval
9563 else
9564 USE_MAINTAINER_MODE=no
9566 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9567 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9570 if test "$USE_MAINTAINER_MODE" = yes; then
9571 MAINTAINER_MODE_TRUE=
9572 MAINTAINER_MODE_FALSE='#'
9573 else
9574 MAINTAINER_MODE_TRUE='#'
9575 MAINTAINER_MODE_FALSE=
9577 MAINT=$MAINTAINER_MODE_TRUE
9579 # ---------------------
9580 # GCC bootstrap support
9581 # ---------------------
9583 # Stage specific cflags for build.
9584 stage1_cflags="-g"
9585 case $build in
9586 vax-*-*)
9587 case ${GCC} in
9588 yes) stage1_cflags="-g -Wa,-J" ;;
9589 *) stage1_cflags="-g -J" ;;
9590 esac ;;
9591 esac
9593 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
9594 if test "$GCC" = yes; then
9595 saved_CFLAGS="$CFLAGS"
9597 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
9598 CFLAGS="$CFLAGS -fkeep-inline-functions"
9599 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
9600 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
9601 cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h. */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9609 main ()
9613 return 0;
9615 _ACEOF
9616 rm -f conftest.$ac_objext
9617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9618 (eval $ac_compile) 2>conftest.er1
9619 ac_status=$?
9620 grep -v '^ *+' conftest.er1 >conftest.err
9621 rm -f conftest.er1
9622 cat conftest.err >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } &&
9625 { ac_try='test -z "$ac_c_werror_flag"
9626 || test ! -s conftest.err'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 (eval $ac_try) 2>&5
9629 ac_status=$?
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; } &&
9632 { ac_try='test -s conftest.$ac_objext'
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 (eval $ac_try) 2>&5
9635 ac_status=$?
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; }; then
9638 echo "$as_me:$LINENO: result: yes" >&5
9639 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
9640 else
9641 echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9644 echo "$as_me:$LINENO: result: no" >&5
9645 echo "${ECHO_T}no" >&6
9647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9649 CFLAGS="$saved_CFLAGS"
9654 # Enable --enable-checking in stage1 of the compiler.
9655 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
9656 if test "${enable_stage1_checking+set}" = set; then
9657 enableval="$enable_stage1_checking"
9658 stage1_checking=--enable-checking=${enable_stage1_checking}
9659 else
9660 if test "x$enable_checking" = xno; then
9661 stage1_checking=--enable-checking
9662 else
9663 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
9668 # Enable -Werror in bootstrap stage2 and later.
9669 # Check whether --enable-werror or --disable-werror was given.
9670 if test "${enable_werror+set}" = set; then
9671 enableval="$enable_werror"
9673 else
9674 if test -d gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
9675 enable_werror=yes
9676 else
9677 enable_werror=no
9680 case ${enable_werror} in
9681 yes) stage2_werror_flag="--enable-werror-always" ;;
9682 *) stage2_werror_flag="" ;;
9683 esac
9686 # Flags needed to enable html installing and building
9688 # Check whether --with-datarootdir or --without-datarootdir was given.
9689 if test "${with_datarootdir+set}" = set; then
9690 withval="$with_datarootdir"
9691 datarootdir="\${prefix}/${withval}"
9692 else
9693 datarootdir="\${prefix}/share"
9697 # Check whether --with-docdir or --without-docdir was given.
9698 if test "${with_docdir+set}" = set; then
9699 withval="$with_docdir"
9700 docdir="\${prefix}/${withval}"
9701 else
9702 docdir="\${datarootdir}/doc"
9706 # Check whether --with-htmldir or --without-htmldir was given.
9707 if test "${with_htmldir+set}" = set; then
9708 withval="$with_htmldir"
9709 htmldir="\${prefix}/${withval}"
9710 else
9711 htmldir="\${docdir}"
9718 ac_config_files="$ac_config_files Makefile"
9719 cat >confcache <<\_ACEOF
9720 # This file is a shell script that caches the results of configure
9721 # tests run on this system so they can be shared between configure
9722 # scripts and configure runs, see configure's option --config-cache.
9723 # It is not useful on other systems. If it contains results you don't
9724 # want to keep, you may remove or edit it.
9726 # config.status only pays attention to the cache file if you give it
9727 # the --recheck option to rerun configure.
9729 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9730 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9731 # following values.
9733 _ACEOF
9735 # The following way of writing the cache mishandles newlines in values,
9736 # but we know of no workaround that is simple, portable, and efficient.
9737 # So, don't put newlines in cache variables' values.
9738 # Ultrix sh set writes to stderr and can't be redirected directly,
9739 # and sets the high bit in the cache file unless we assign to the vars.
9741 (set) 2>&1 |
9742 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9743 *ac_space=\ *)
9744 # `set' does not quote correctly, so add quotes (double-quote
9745 # substitution turns \\\\ into \\, and sed turns \\ into \).
9746 sed -n \
9747 "s/'/'\\\\''/g;
9748 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9751 # `set' quotes correctly as required by POSIX, so do not add quotes.
9752 sed -n \
9753 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9755 esac;
9757 sed '
9758 t clear
9759 : clear
9760 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9761 t end
9762 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9763 : end' >>confcache
9764 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9765 if test -w $cache_file; then
9766 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9767 cat confcache >$cache_file
9768 else
9769 echo "not updating unwritable cache $cache_file"
9772 rm -f confcache
9774 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9775 # Let make expand exec_prefix.
9776 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9778 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9779 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9780 # trailing colons and then remove the whole line if VPATH becomes empty
9781 # (actually we leave an empty line to preserve line numbers).
9782 if test "x$srcdir" = x.; then
9783 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9784 s/:*\$(srcdir):*/:/;
9785 s/:*\${srcdir}:*/:/;
9786 s/:*@srcdir@:*/:/;
9787 s/^\([^=]*=[ ]*\):*/\1/;
9788 s/:*$//;
9789 s/^[^=]*=[ ]*$//;
9793 # Transform confdefs.h into DEFS.
9794 # Protect against shell expansion while executing Makefile rules.
9795 # Protect against Makefile macro expansion.
9797 # If the first sed substitution is executed (which looks for macros that
9798 # take arguments), then we branch to the quote section. Otherwise,
9799 # look for a macro that doesn't take arguments.
9800 cat >confdef2opt.sed <<\_ACEOF
9801 t clear
9802 : clear
9803 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
9804 t quote
9805 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
9806 t quote
9808 : quote
9809 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
9810 s,\[,\\&,g
9811 s,\],\\&,g
9812 s,\$,$$,g
9814 _ACEOF
9815 # We use echo to avoid assuming a particular line-breaking character.
9816 # The extra dot is to prevent the shell from consuming trailing
9817 # line-breaks from the sub-command output. A line-break within
9818 # single-quotes doesn't work because, if this script is created in a
9819 # platform that uses two characters for line-breaks (e.g., DOS), tr
9820 # would break.
9821 ac_LF_and_DOT=`echo; echo .`
9822 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
9823 rm -f confdef2opt.sed
9826 ac_libobjs=
9827 ac_ltlibobjs=
9828 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9829 # 1. Remove the extension, and $U if already installed.
9830 ac_i=`echo "$ac_i" |
9831 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9832 # 2. Add them.
9833 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9834 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9835 done
9836 LIBOBJS=$ac_libobjs
9838 LTLIBOBJS=$ac_ltlibobjs
9842 : ${CONFIG_STATUS=./config.status}
9843 ac_clean_files_save=$ac_clean_files
9844 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9845 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9846 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9847 cat >$CONFIG_STATUS <<_ACEOF
9848 #! $SHELL
9849 # Generated by $as_me.
9850 # Run this file to recreate the current configuration.
9851 # Compiler output produced by configure, useful for debugging
9852 # configure, is in config.log if it exists.
9854 debug=false
9855 ac_cs_recheck=false
9856 ac_cs_silent=false
9857 SHELL=\${CONFIG_SHELL-$SHELL}
9858 _ACEOF
9860 cat >>$CONFIG_STATUS <<\_ACEOF
9861 ## --------------------- ##
9862 ## M4sh Initialization. ##
9863 ## --------------------- ##
9865 # Be Bourne compatible
9866 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9867 emulate sh
9868 NULLCMD=:
9869 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9870 # is contrary to our usage. Disable this feature.
9871 alias -g '${1+"$@"}'='"$@"'
9872 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9873 set -o posix
9875 DUALCASE=1; export DUALCASE # for MKS sh
9877 # Support unset when possible.
9878 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9879 as_unset=unset
9880 else
9881 as_unset=false
9885 # Work around bugs in pre-3.0 UWIN ksh.
9886 $as_unset ENV MAIL MAILPATH
9887 PS1='$ '
9888 PS2='> '
9889 PS4='+ '
9891 # NLS nuisances.
9892 for as_var in \
9893 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9894 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9895 LC_TELEPHONE LC_TIME
9897 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9898 eval $as_var=C; export $as_var
9899 else
9900 $as_unset $as_var
9902 done
9904 # Required to use basename.
9905 if expr a : '\(a\)' >/dev/null 2>&1; then
9906 as_expr=expr
9907 else
9908 as_expr=false
9911 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9912 as_basename=basename
9913 else
9914 as_basename=false
9918 # Name of the executable.
9919 as_me=`$as_basename "$0" ||
9920 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9921 X"$0" : 'X\(//\)$' \| \
9922 X"$0" : 'X\(/\)$' \| \
9923 . : '\(.\)' 2>/dev/null ||
9924 echo X/"$0" |
9925 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9926 /^X\/\(\/\/\)$/{ s//\1/; q; }
9927 /^X\/\(\/\).*/{ s//\1/; q; }
9928 s/.*/./; q'`
9931 # PATH needs CR, and LINENO needs CR and PATH.
9932 # Avoid depending upon Character Ranges.
9933 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9934 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9935 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9936 as_cr_digits='0123456789'
9937 as_cr_alnum=$as_cr_Letters$as_cr_digits
9939 # The user is always right.
9940 if test "${PATH_SEPARATOR+set}" != set; then
9941 echo "#! /bin/sh" >conf$$.sh
9942 echo "exit 0" >>conf$$.sh
9943 chmod +x conf$$.sh
9944 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9945 PATH_SEPARATOR=';'
9946 else
9947 PATH_SEPARATOR=:
9949 rm -f conf$$.sh
9953 as_lineno_1=$LINENO
9954 as_lineno_2=$LINENO
9955 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9956 test "x$as_lineno_1" != "x$as_lineno_2" &&
9957 test "x$as_lineno_3" = "x$as_lineno_2" || {
9958 # Find who we are. Look in the path if we contain no path at all
9959 # relative or not.
9960 case $0 in
9961 *[\\/]* ) as_myself=$0 ;;
9962 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963 for as_dir in $PATH
9965 IFS=$as_save_IFS
9966 test -z "$as_dir" && as_dir=.
9967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9968 done
9971 esac
9972 # We did not find ourselves, most probably we were run as `sh COMMAND'
9973 # in which case we are not to be found in the path.
9974 if test "x$as_myself" = x; then
9975 as_myself=$0
9977 if test ! -f "$as_myself"; then
9978 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9979 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9980 { (exit 1); exit 1; }; }
9982 case $CONFIG_SHELL in
9984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
9989 for as_base in sh bash ksh sh5; do
9990 case $as_dir in
9992 if ("$as_dir/$as_base" -c '
9993 as_lineno_1=$LINENO
9994 as_lineno_2=$LINENO
9995 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9996 test "x$as_lineno_1" != "x$as_lineno_2" &&
9997 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9998 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9999 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10000 CONFIG_SHELL=$as_dir/$as_base
10001 export CONFIG_SHELL
10002 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10003 fi;;
10004 esac
10005 done
10006 done
10008 esac
10010 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10011 # uniformly replaced by the line number. The first 'sed' inserts a
10012 # line-number line before each line; the second 'sed' does the real
10013 # work. The second script uses 'N' to pair each line-number line
10014 # with the numbered line, and appends trailing '-' during
10015 # substitution so that $LINENO is not a special case at line end.
10016 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10017 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10018 sed '=' <$as_myself |
10019 sed '
10021 s,$,-,
10022 : loop
10023 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10024 t loop
10025 s,-$,,
10026 s,^['$as_cr_digits']*\n,,
10027 ' >$as_me.lineno &&
10028 chmod +x $as_me.lineno ||
10029 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10030 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10031 { (exit 1); exit 1; }; }
10033 # Don't try to exec as it changes $[0], causing all sort of problems
10034 # (the dirname of $[0] is not the place where we might find the
10035 # original and so on. Autoconf is especially sensible to this).
10036 . ./$as_me.lineno
10037 # Exit status is that of the last command.
10038 exit
10042 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10043 *c*,-n*) ECHO_N= ECHO_C='
10044 ' ECHO_T=' ' ;;
10045 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10046 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10047 esac
10049 if expr a : '\(a\)' >/dev/null 2>&1; then
10050 as_expr=expr
10051 else
10052 as_expr=false
10055 rm -f conf$$ conf$$.exe conf$$.file
10056 echo >conf$$.file
10057 if ln -s conf$$.file conf$$ 2>/dev/null; then
10058 # We could just check for DJGPP; but this test a) works b) is more generic
10059 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10060 if test -f conf$$.exe; then
10061 # Don't use ln at all; we don't have any links
10062 as_ln_s='cp -p'
10063 else
10064 as_ln_s='ln -s'
10066 elif ln conf$$.file conf$$ 2>/dev/null; then
10067 as_ln_s=ln
10068 else
10069 as_ln_s='cp -p'
10071 rm -f conf$$ conf$$.exe conf$$.file
10073 if mkdir -p . 2>/dev/null; then
10074 as_mkdir_p=:
10075 else
10076 test -d ./-p && rmdir ./-p
10077 as_mkdir_p=false
10080 as_executable_p="test -f"
10082 # Sed expression to map a string onto a valid CPP name.
10083 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10085 # Sed expression to map a string onto a valid variable name.
10086 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10089 # IFS
10090 # We need space, tab and new line, in precisely that order.
10091 as_nl='
10093 IFS=" $as_nl"
10095 # CDPATH.
10096 $as_unset CDPATH
10098 exec 6>&1
10100 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10101 # report actual input values of CONFIG_FILES etc. instead of their
10102 # values after options handling. Logging --version etc. is OK.
10103 exec 5>>config.log
10105 echo
10106 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10107 ## Running $as_me. ##
10108 _ASBOX
10109 } >&5
10110 cat >&5 <<_CSEOF
10112 This file was extended by $as_me, which was
10113 generated by GNU Autoconf 2.59. Invocation command line was
10115 CONFIG_FILES = $CONFIG_FILES
10116 CONFIG_HEADERS = $CONFIG_HEADERS
10117 CONFIG_LINKS = $CONFIG_LINKS
10118 CONFIG_COMMANDS = $CONFIG_COMMANDS
10119 $ $0 $@
10121 _CSEOF
10122 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10123 echo >&5
10124 _ACEOF
10126 # Files that config.status was made for.
10127 if test -n "$ac_config_files"; then
10128 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10131 if test -n "$ac_config_headers"; then
10132 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10135 if test -n "$ac_config_links"; then
10136 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10139 if test -n "$ac_config_commands"; then
10140 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10143 cat >>$CONFIG_STATUS <<\_ACEOF
10145 ac_cs_usage="\
10146 \`$as_me' instantiates files from templates according to the
10147 current configuration.
10149 Usage: $0 [OPTIONS] [FILE]...
10151 -h, --help print this help, then exit
10152 -V, --version print version number, then exit
10153 -q, --quiet do not print progress messages
10154 -d, --debug don't remove temporary files
10155 --recheck update $as_me by reconfiguring in the same conditions
10156 --file=FILE[:TEMPLATE]
10157 instantiate the configuration file FILE
10159 Configuration files:
10160 $config_files
10162 Report bugs to <bug-autoconf@gnu.org>."
10163 _ACEOF
10165 cat >>$CONFIG_STATUS <<_ACEOF
10166 ac_cs_version="\\
10167 config.status
10168 configured by $0, generated by GNU Autoconf 2.59,
10169 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10171 Copyright (C) 2003 Free Software Foundation, Inc.
10172 This config.status script is free software; the Free Software Foundation
10173 gives unlimited permission to copy, distribute and modify it."
10174 srcdir=$srcdir
10175 INSTALL="$INSTALL"
10176 _ACEOF
10178 cat >>$CONFIG_STATUS <<\_ACEOF
10179 # If no file are specified by the user, then we need to provide default
10180 # value. By we need to know if files were specified by the user.
10181 ac_need_defaults=:
10182 while test $# != 0
10184 case $1 in
10185 --*=*)
10186 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10187 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10188 ac_shift=:
10191 ac_option=$1
10192 ac_optarg=$2
10193 ac_shift=shift
10195 *) # This is not an option, so the user has probably given explicit
10196 # arguments.
10197 ac_option=$1
10198 ac_need_defaults=false;;
10199 esac
10201 case $ac_option in
10202 # Handling of the options.
10203 _ACEOF
10204 cat >>$CONFIG_STATUS <<\_ACEOF
10205 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10206 ac_cs_recheck=: ;;
10207 --version | --vers* | -V )
10208 echo "$ac_cs_version"; exit 0 ;;
10209 --he | --h)
10210 # Conflict between --help and --header
10211 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10212 Try \`$0 --help' for more information." >&5
10213 echo "$as_me: error: ambiguous option: $1
10214 Try \`$0 --help' for more information." >&2;}
10215 { (exit 1); exit 1; }; };;
10216 --help | --hel | -h )
10217 echo "$ac_cs_usage"; exit 0 ;;
10218 --debug | --d* | -d )
10219 debug=: ;;
10220 --file | --fil | --fi | --f )
10221 $ac_shift
10222 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10223 ac_need_defaults=false;;
10224 --header | --heade | --head | --hea )
10225 $ac_shift
10226 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10227 ac_need_defaults=false;;
10228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10229 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10230 ac_cs_silent=: ;;
10232 # This is an error.
10233 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10234 Try \`$0 --help' for more information." >&5
10235 echo "$as_me: error: unrecognized option: $1
10236 Try \`$0 --help' for more information." >&2;}
10237 { (exit 1); exit 1; }; } ;;
10239 *) ac_config_targets="$ac_config_targets $1" ;;
10241 esac
10242 shift
10243 done
10245 ac_configure_extra_args=
10247 if $ac_cs_silent; then
10248 exec 6>/dev/null
10249 ac_configure_extra_args="$ac_configure_extra_args --silent"
10252 _ACEOF
10253 cat >>$CONFIG_STATUS <<_ACEOF
10254 if \$ac_cs_recheck; then
10255 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10256 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10259 _ACEOF
10265 cat >>$CONFIG_STATUS <<\_ACEOF
10266 for ac_config_target in $ac_config_targets
10268 case "$ac_config_target" in
10269 # Handling of arguments.
10270 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10271 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10272 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10273 { (exit 1); exit 1; }; };;
10274 esac
10275 done
10277 # If the user did not use the arguments to specify the items to instantiate,
10278 # then the envvar interface is used. Set only those that are not.
10279 # We use the long form for the default assignment because of an extremely
10280 # bizarre bug on SunOS 4.1.3.
10281 if $ac_need_defaults; then
10282 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10285 # Have a temporary directory for convenience. Make it in the build tree
10286 # simply because there is no reason to put it here, and in addition,
10287 # creating and moving files from /tmp can sometimes cause problems.
10288 # Create a temporary directory, and hook for its removal unless debugging.
10289 $debug ||
10291 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10292 trap '{ (exit 1); exit 1; }' 1 2 13 15
10295 # Create a (secure) tmp directory for tmp files.
10298 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10299 test -n "$tmp" && test -d "$tmp"
10300 } ||
10302 tmp=./confstat$$-$RANDOM
10303 (umask 077 && mkdir $tmp)
10304 } ||
10306 echo "$me: cannot create a temporary directory in ." >&2
10307 { (exit 1); exit 1; }
10310 _ACEOF
10312 cat >>$CONFIG_STATUS <<_ACEOF
10315 # CONFIG_FILES section.
10318 # No need to generate the scripts if there are no CONFIG_FILES.
10319 # This happens for instance when ./config.status config.h
10320 if test -n "\$CONFIG_FILES"; then
10321 # Protect against being on the right side of a sed subst in config.status.
10322 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10323 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10324 s,@SHELL@,$SHELL,;t t
10325 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10326 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10327 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10328 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10329 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10330 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10331 s,@exec_prefix@,$exec_prefix,;t t
10332 s,@prefix@,$prefix,;t t
10333 s,@program_transform_name@,$program_transform_name,;t t
10334 s,@bindir@,$bindir,;t t
10335 s,@sbindir@,$sbindir,;t t
10336 s,@libexecdir@,$libexecdir,;t t
10337 s,@datadir@,$datadir,;t t
10338 s,@sysconfdir@,$sysconfdir,;t t
10339 s,@sharedstatedir@,$sharedstatedir,;t t
10340 s,@localstatedir@,$localstatedir,;t t
10341 s,@libdir@,$libdir,;t t
10342 s,@includedir@,$includedir,;t t
10343 s,@oldincludedir@,$oldincludedir,;t t
10344 s,@infodir@,$infodir,;t t
10345 s,@mandir@,$mandir,;t t
10346 s,@build_alias@,$build_alias,;t t
10347 s,@host_alias@,$host_alias,;t t
10348 s,@target_alias@,$target_alias,;t t
10349 s,@DEFS@,$DEFS,;t t
10350 s,@ECHO_C@,$ECHO_C,;t t
10351 s,@ECHO_N@,$ECHO_N,;t t
10352 s,@ECHO_T@,$ECHO_T,;t t
10353 s,@LIBS@,$LIBS,;t t
10354 s,@build@,$build,;t t
10355 s,@build_cpu@,$build_cpu,;t t
10356 s,@build_vendor@,$build_vendor,;t t
10357 s,@build_os@,$build_os,;t t
10358 s,@build_noncanonical@,$build_noncanonical,;t t
10359 s,@host_noncanonical@,$host_noncanonical,;t t
10360 s,@target_noncanonical@,$target_noncanonical,;t t
10361 s,@host@,$host,;t t
10362 s,@host_cpu@,$host_cpu,;t t
10363 s,@host_vendor@,$host_vendor,;t t
10364 s,@host_os@,$host_os,;t t
10365 s,@target@,$target,;t t
10366 s,@target_cpu@,$target_cpu,;t t
10367 s,@target_vendor@,$target_vendor,;t t
10368 s,@target_os@,$target_os,;t t
10369 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10370 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10371 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10372 s,@LN@,$LN,;t t
10373 s,@LN_S@,$LN_S,;t t
10374 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
10375 s,@build_libsubdir@,$build_libsubdir,;t t
10376 s,@build_subdir@,$build_subdir,;t t
10377 s,@host_subdir@,$host_subdir,;t t
10378 s,@target_subdir@,$target_subdir,;t t
10379 s,@CC@,$CC,;t t
10380 s,@CFLAGS@,$CFLAGS,;t t
10381 s,@LDFLAGS@,$LDFLAGS,;t t
10382 s,@CPPFLAGS@,$CPPFLAGS,;t t
10383 s,@ac_ct_CC@,$ac_ct_CC,;t t
10384 s,@EXEEXT@,$EXEEXT,;t t
10385 s,@OBJEXT@,$OBJEXT,;t t
10386 s,@GNATBIND@,$GNATBIND,;t t
10387 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
10388 s,@do_compare@,$do_compare,;t t
10389 s,@gmplibs@,$gmplibs,;t t
10390 s,@gmpinc@,$gmpinc,;t t
10391 s,@stage1_languages@,$stage1_languages,;t t
10392 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
10393 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
10394 s,@tooldir@,$tooldir,;t t
10395 s,@build_tooldir@,$build_tooldir,;t t
10396 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
10397 s,@GDB_TK@,$GDB_TK,;t t
10398 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
10399 s,@build_configargs@,$build_configargs,;t t
10400 s,@build_configdirs@,$build_configdirs,;t t
10401 s,@host_configargs@,$host_configargs,;t t
10402 s,@configdirs@,$configdirs,;t t
10403 s,@target_configargs@,$target_configargs,;t t
10404 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
10405 s,@config_shell@,$config_shell,;t t
10406 s,@YACC@,$YACC,;t t
10407 s,@BISON@,$BISON,;t t
10408 s,@M4@,$M4,;t t
10409 s,@LEX@,$LEX,;t t
10410 s,@FLEX@,$FLEX,;t t
10411 s,@MAKEINFO@,$MAKEINFO,;t t
10412 s,@EXPECT@,$EXPECT,;t t
10413 s,@RUNTEST@,$RUNTEST,;t t
10414 s,@AR@,$AR,;t t
10415 s,@AS@,$AS,;t t
10416 s,@DLLTOOL@,$DLLTOOL,;t t
10417 s,@LD@,$LD,;t t
10418 s,@LIPO@,$LIPO,;t t
10419 s,@NM@,$NM,;t t
10420 s,@RANLIB@,$RANLIB,;t t
10421 s,@STRIP@,$STRIP,;t t
10422 s,@WINDRES@,$WINDRES,;t t
10423 s,@OBJCOPY@,$OBJCOPY,;t t
10424 s,@OBJDUMP@,$OBJDUMP,;t t
10425 s,@CXX@,$CXX,;t t
10426 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
10427 s,@CXXFLAGS@,$CXXFLAGS,;t t
10428 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
10429 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
10430 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
10431 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
10432 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
10433 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
10434 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
10435 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
10436 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
10437 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
10438 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
10439 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
10440 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
10441 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
10442 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
10443 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
10444 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
10445 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
10446 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
10447 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
10448 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10449 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10450 s,@MAINT@,$MAINT,;t t
10451 s,@stage1_cflags@,$stage1_cflags,;t t
10452 s,@stage1_checking@,$stage1_checking,;t t
10453 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
10454 s,@datarootdir@,$datarootdir,;t t
10455 s,@docdir@,$docdir,;t t
10456 s,@htmldir@,$htmldir,;t t
10457 s,@LIBOBJS@,$LIBOBJS,;t t
10458 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10459 /@serialization_dependencies@/r $serialization_dependencies
10460 s,@serialization_dependencies@,,;t t
10461 /@host_makefile_frag@/r $host_makefile_frag
10462 s,@host_makefile_frag@,,;t t
10463 /@target_makefile_frag@/r $target_makefile_frag
10464 s,@target_makefile_frag@,,;t t
10465 /@alphaieee_frag@/r $alphaieee_frag
10466 s,@alphaieee_frag@,,;t t
10467 /@ospace_frag@/r $ospace_frag
10468 s,@ospace_frag@,,;t t
10469 CEOF
10471 _ACEOF
10473 cat >>$CONFIG_STATUS <<\_ACEOF
10474 # Split the substitutions into bite-sized pieces for seds with
10475 # small command number limits, like on Digital OSF/1 and HP-UX.
10476 ac_max_sed_lines=48
10477 ac_sed_frag=1 # Number of current file.
10478 ac_beg=1 # First line for current file.
10479 ac_end=$ac_max_sed_lines # Line after last line for current file.
10480 ac_more_lines=:
10481 ac_sed_cmds=
10482 while $ac_more_lines; do
10483 if test $ac_beg -gt 1; then
10484 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10485 else
10486 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10488 if test ! -s $tmp/subs.frag; then
10489 ac_more_lines=false
10490 else
10491 # The purpose of the label and of the branching condition is to
10492 # speed up the sed processing (if there are no `@' at all, there
10493 # is no need to browse any of the substitutions).
10494 # These are the two extra sed commands mentioned above.
10495 (echo ':t
10496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10497 if test -z "$ac_sed_cmds"; then
10498 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10499 else
10500 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10502 ac_sed_frag=`expr $ac_sed_frag + 1`
10503 ac_beg=$ac_end
10504 ac_end=`expr $ac_end + $ac_max_sed_lines`
10506 done
10507 if test -z "$ac_sed_cmds"; then
10508 ac_sed_cmds=cat
10510 fi # test -n "$CONFIG_FILES"
10512 _ACEOF
10513 cat >>$CONFIG_STATUS <<\_ACEOF
10514 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10515 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10516 case $ac_file in
10517 - | *:- | *:-:* ) # input from stdin
10518 cat >$tmp/stdin
10519 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10520 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10521 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10522 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10523 * ) ac_file_in=$ac_file.in ;;
10524 esac
10526 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10527 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10528 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10529 X"$ac_file" : 'X\(//\)[^/]' \| \
10530 X"$ac_file" : 'X\(//\)$' \| \
10531 X"$ac_file" : 'X\(/\)' \| \
10532 . : '\(.\)' 2>/dev/null ||
10533 echo X"$ac_file" |
10534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10536 /^X\(\/\/\)$/{ s//\1/; q; }
10537 /^X\(\/\).*/{ s//\1/; q; }
10538 s/.*/./; q'`
10539 { if $as_mkdir_p; then
10540 mkdir -p "$ac_dir"
10541 else
10542 as_dir="$ac_dir"
10543 as_dirs=
10544 while test ! -d "$as_dir"; do
10545 as_dirs="$as_dir $as_dirs"
10546 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10548 X"$as_dir" : 'X\(//\)[^/]' \| \
10549 X"$as_dir" : 'X\(//\)$' \| \
10550 X"$as_dir" : 'X\(/\)' \| \
10551 . : '\(.\)' 2>/dev/null ||
10552 echo X"$as_dir" |
10553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10554 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10555 /^X\(\/\/\)$/{ s//\1/; q; }
10556 /^X\(\/\).*/{ s//\1/; q; }
10557 s/.*/./; q'`
10558 done
10559 test ! -n "$as_dirs" || mkdir $as_dirs
10560 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10561 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10562 { (exit 1); exit 1; }; }; }
10564 ac_builddir=.
10566 if test "$ac_dir" != .; then
10567 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10568 # A "../" for each directory in $ac_dir_suffix.
10569 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10570 else
10571 ac_dir_suffix= ac_top_builddir=
10574 case $srcdir in
10575 .) # No --srcdir option. We are building in place.
10576 ac_srcdir=.
10577 if test -z "$ac_top_builddir"; then
10578 ac_top_srcdir=.
10579 else
10580 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10581 fi ;;
10582 [\\/]* | ?:[\\/]* ) # Absolute path.
10583 ac_srcdir=$srcdir$ac_dir_suffix;
10584 ac_top_srcdir=$srcdir ;;
10585 *) # Relative path.
10586 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10587 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10588 esac
10590 # Do not use `cd foo && pwd` to compute absolute paths, because
10591 # the directories may not exist.
10592 case `pwd` in
10593 .) ac_abs_builddir="$ac_dir";;
10595 case "$ac_dir" in
10596 .) ac_abs_builddir=`pwd`;;
10597 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10598 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10599 esac;;
10600 esac
10601 case $ac_abs_builddir in
10602 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10604 case ${ac_top_builddir}. in
10605 .) ac_abs_top_builddir=$ac_abs_builddir;;
10606 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10607 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10608 esac;;
10609 esac
10610 case $ac_abs_builddir in
10611 .) ac_abs_srcdir=$ac_srcdir;;
10613 case $ac_srcdir in
10614 .) ac_abs_srcdir=$ac_abs_builddir;;
10615 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10616 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10617 esac;;
10618 esac
10619 case $ac_abs_builddir in
10620 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10622 case $ac_top_srcdir in
10623 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10624 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10625 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10626 esac;;
10627 esac
10630 case $INSTALL in
10631 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10632 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10633 esac
10635 if test x"$ac_file" != x-; then
10636 { echo "$as_me:$LINENO: creating $ac_file" >&5
10637 echo "$as_me: creating $ac_file" >&6;}
10638 rm -f "$ac_file"
10640 # Let's still pretend it is `configure' which instantiates (i.e., don't
10641 # use $as_me), people would be surprised to read:
10642 # /* config.h. Generated by config.status. */
10643 if test x"$ac_file" = x-; then
10644 configure_input=
10645 else
10646 configure_input="$ac_file. "
10648 configure_input=$configure_input"Generated from `echo $ac_file_in |
10649 sed 's,.*/,,'` by configure."
10651 # First look for the input files in the build tree, otherwise in the
10652 # src tree.
10653 ac_file_inputs=`IFS=:
10654 for f in $ac_file_in; do
10655 case $f in
10656 -) echo $tmp/stdin ;;
10657 [\\/$]*)
10658 # Absolute (can't be DOS-style, as IFS=:)
10659 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10660 echo "$as_me: error: cannot find input file: $f" >&2;}
10661 { (exit 1); exit 1; }; }
10662 echo "$f";;
10663 *) # Relative
10664 if test -f "$f"; then
10665 # Build tree
10666 echo "$f"
10667 elif test -f "$srcdir/$f"; then
10668 # Source tree
10669 echo "$srcdir/$f"
10670 else
10671 # /dev/null tree
10672 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10673 echo "$as_me: error: cannot find input file: $f" >&2;}
10674 { (exit 1); exit 1; }; }
10675 fi;;
10676 esac
10677 done` || { (exit 1); exit 1; }
10678 _ACEOF
10679 cat >>$CONFIG_STATUS <<_ACEOF
10680 sed "$ac_vpsub
10681 $extrasub
10682 _ACEOF
10683 cat >>$CONFIG_STATUS <<\_ACEOF
10685 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10686 s,@configure_input@,$configure_input,;t t
10687 s,@srcdir@,$ac_srcdir,;t t
10688 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10689 s,@top_srcdir@,$ac_top_srcdir,;t t
10690 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10691 s,@builddir@,$ac_builddir,;t t
10692 s,@abs_builddir@,$ac_abs_builddir,;t t
10693 s,@top_builddir@,$ac_top_builddir,;t t
10694 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10695 s,@INSTALL@,$ac_INSTALL,;t t
10696 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10697 rm -f $tmp/stdin
10698 if test x"$ac_file" != x-; then
10699 mv $tmp/out $ac_file
10700 else
10701 cat $tmp/out
10702 rm -f $tmp/out
10705 done
10706 _ACEOF
10708 cat >>$CONFIG_STATUS <<\_ACEOF
10710 { (exit 0); exit 0; }
10711 _ACEOF
10712 chmod +x $CONFIG_STATUS
10713 ac_clean_files=$ac_clean_files_save
10716 # configure is writing to config.log, and then calls config.status.
10717 # config.status does its own redirection, appending to config.log.
10718 # Unfortunately, on DOS this fails, as config.log is still kept open
10719 # by configure, so config.status won't be able to write to it; its
10720 # output is simply discarded. So we exec the FD to /dev/null,
10721 # effectively closing config.log, so it can be properly (re)opened and
10722 # appended to by config.status. When coming back to configure, we
10723 # need to make the FD available again.
10724 if test "$no_create" != yes; then
10725 ac_cs_success=:
10726 ac_config_status_args=
10727 test "$silent" = yes &&
10728 ac_config_status_args="$ac_config_status_args --quiet"
10729 exec 5>/dev/null
10730 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10731 exec 5>>config.log
10732 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10733 # would make configure fail if this is the last instruction.
10734 $ac_cs_success || { (exit 1); exit 1; }