* configure.ac: Add Microblaze target.
[deliverable/binutils-gdb.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
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## --------------------- ##
11
12# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
137 /*)
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
152done
153;;
154 esac
155
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 '
166 N
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; }; }
177
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
184}
185
186
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
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}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
275ac_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 TOPLEVEL_CONFIGURE_ARGUMENTS 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 build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc ppllibs pplinc clooglibs clooginc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR GCC_SHLIB_SUBDIR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP 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 WINDMC_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 pdfdir htmldir LIBOBJS LTLIBOBJS'
276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
277ac_pwd=`pwd`
278
279# Initialize some variables set by options.
280ac_init_help=
281ac_init_version=false
282# The variables have the same names as the options, with
283# dashes changed to underlines.
284cache_file=/dev/null
285exec_prefix=NONE
286no_create=
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
295verbose=
296x_includes=NONE
297x_libraries=NONE
298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
307datadir='${prefix}/share'
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
311libdir='${exec_prefix}/lib'
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
314infodir='${prefix}/info'
315mandir='${prefix}/man'
316
317ac_prev=
318for ac_option
319do
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
323 ac_prev=
324 continue
325 fi
326
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
331 case $ac_option in
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336 bindir=$ac_optarg ;;
337
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
352
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
357 datadir=$ac_optarg ;;
358
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
367
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
400
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
421 libdir=$ac_optarg ;;
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442 mandir=$ac_optarg ;;
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468 prefix=$ac_optarg ;;
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
509 sbindir=$ac_optarg ;;
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
520 sharedstatedir=$ac_optarg ;;
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
525 site=$ac_optarg ;;
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530 srcdir=$ac_optarg ;;
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
549
550 -with-* | --with-*)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
562
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
589
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
593 ;;
594
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
603 export $ac_envvar ;;
604
605 *)
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
620fi
621
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
624do
625 eval ac_val=$`echo $ac_var`
626 case $ac_val in
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631done
632
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
636do
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
642 esac
643done
644
645# There might be people who depend on the old broken behavior: `$host'
646# used to hold the argument of --host etc.
647# FIXME: To remove some day.
648build=$build_alias
649host=$host_alias
650target=$target_alias
651
652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
667
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
679echo X"$0" |
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
685 srcdir=$ac_confdir
686 if test ! -r $srcdir/$ac_unique_file; then
687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
699 fi
700fi
701(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
717ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
718
719ac_env_CC_set=${CC+set}
720ac_env_CC_value=$CC
721ac_cv_env_CC_set=${CC+set}
722ac_cv_env_CC_value=$CC
723ac_env_CFLAGS_set=${CFLAGS+set}
724ac_env_CFLAGS_value=$CFLAGS
725ac_cv_env_CFLAGS_set=${CFLAGS+set}
726ac_cv_env_CFLAGS_value=$CFLAGS
727ac_env_LDFLAGS_set=${LDFLAGS+set}
728ac_env_LDFLAGS_value=$LDFLAGS
729ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
730ac_cv_env_LDFLAGS_value=$LDFLAGS
731ac_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_env_CPPFLAGS_value=$CPPFLAGS
733ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
734ac_cv_env_CPPFLAGS_value=$CPPFLAGS
735ac_env_CXX_set=${CXX+set}
736ac_env_CXX_value=$CXX
737ac_cv_env_CXX_set=${CXX+set}
738ac_cv_env_CXX_value=$CXX
739ac_env_CXXFLAGS_set=${CXXFLAGS+set}
740ac_env_CXXFLAGS_value=$CXXFLAGS
741ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
742ac_cv_env_CXXFLAGS_value=$CXXFLAGS
743ac_env_AR_set=${AR+set}
744ac_env_AR_value=$AR
745ac_cv_env_AR_set=${AR+set}
746ac_cv_env_AR_value=$AR
747ac_env_AS_set=${AS+set}
748ac_env_AS_value=$AS
749ac_cv_env_AS_set=${AS+set}
750ac_cv_env_AS_value=$AS
751ac_env_DLLTOOL_set=${DLLTOOL+set}
752ac_env_DLLTOOL_value=$DLLTOOL
753ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
754ac_cv_env_DLLTOOL_value=$DLLTOOL
755ac_env_LD_set=${LD+set}
756ac_env_LD_value=$LD
757ac_cv_env_LD_set=${LD+set}
758ac_cv_env_LD_value=$LD
759ac_env_LIPO_set=${LIPO+set}
760ac_env_LIPO_value=$LIPO
761ac_cv_env_LIPO_set=${LIPO+set}
762ac_cv_env_LIPO_value=$LIPO
763ac_env_NM_set=${NM+set}
764ac_env_NM_value=$NM
765ac_cv_env_NM_set=${NM+set}
766ac_cv_env_NM_value=$NM
767ac_env_RANLIB_set=${RANLIB+set}
768ac_env_RANLIB_value=$RANLIB
769ac_cv_env_RANLIB_set=${RANLIB+set}
770ac_cv_env_RANLIB_value=$RANLIB
771ac_env_STRIP_set=${STRIP+set}
772ac_env_STRIP_value=$STRIP
773ac_cv_env_STRIP_set=${STRIP+set}
774ac_cv_env_STRIP_value=$STRIP
775ac_env_WINDRES_set=${WINDRES+set}
776ac_env_WINDRES_value=$WINDRES
777ac_cv_env_WINDRES_set=${WINDRES+set}
778ac_cv_env_WINDRES_value=$WINDRES
779ac_env_WINDMC_set=${WINDMC+set}
780ac_env_WINDMC_value=$WINDMC
781ac_cv_env_WINDMC_set=${WINDMC+set}
782ac_cv_env_WINDMC_value=$WINDMC
783ac_env_OBJCOPY_set=${OBJCOPY+set}
784ac_env_OBJCOPY_value=$OBJCOPY
785ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
786ac_cv_env_OBJCOPY_value=$OBJCOPY
787ac_env_OBJDUMP_set=${OBJDUMP+set}
788ac_env_OBJDUMP_value=$OBJDUMP
789ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
790ac_cv_env_OBJDUMP_value=$OBJDUMP
791ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
792ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
793ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
794ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
795ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
796ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
797ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
798ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
799ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
800ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
801ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
802ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
803ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
804ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
805ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
806ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
807ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
808ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
809ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
810ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
811ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
812ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
813ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
814ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
815ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
816ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
817ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
818ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
819ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
820ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
821ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
822ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
823ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
824ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
825ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
826ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
827ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
828ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
829ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
830ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
831ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
832ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
833ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
834ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
835ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
836ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
837ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
838ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
839ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
840ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
841ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
842ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
843ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
844ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
845ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
846ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
847ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
848ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
849ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
850ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
851ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
852ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
853ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
854ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
855
856#
857# Report the --help message.
858#
859if test "$ac_init_help" = "long"; then
860 # Omit some internal or obsolete options to make the list less imposing.
861 # This message is too long to be a string in the A/UX 3.1 sh.
862 cat <<_ACEOF
863\`configure' configures this package to adapt to many kinds of systems.
864
865Usage: $0 [OPTION]... [VAR=VALUE]...
866
867To assign environment variables (e.g., CC, CFLAGS...), specify them as
868VAR=VALUE. See below for descriptions of some of the useful variables.
869
870Defaults for the options are specified in brackets.
871
872Configuration:
873 -h, --help display this help and exit
874 --help=short display options specific to this package
875 --help=recursive display the short help of all the included packages
876 -V, --version display version information and exit
877 -q, --quiet, --silent do not print \`checking...' messages
878 --cache-file=FILE cache test results in FILE [disabled]
879 -C, --config-cache alias for \`--cache-file=config.cache'
880 -n, --no-create do not create output files
881 --srcdir=DIR find the sources in DIR [configure dir or \`..']
882
883_ACEOF
884
885 cat <<_ACEOF
886Installation directories:
887 --prefix=PREFIX install architecture-independent files in PREFIX
888 [$ac_default_prefix]
889 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
890 [PREFIX]
891
892By default, \`make install' will install all the files in
893\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
894an installation prefix other than \`$ac_default_prefix' using \`--prefix',
895for instance \`--prefix=\$HOME'.
896
897For better control, use the options below.
898
899Fine tuning of the installation directories:
900 --bindir=DIR user executables [EPREFIX/bin]
901 --sbindir=DIR system admin executables [EPREFIX/sbin]
902 --libexecdir=DIR program executables [EPREFIX/libexec]
903 --datadir=DIR read-only architecture-independent data [PREFIX/share]
904 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
905 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
906 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
907 --libdir=DIR object code libraries [EPREFIX/lib]
908 --includedir=DIR C header files [PREFIX/include]
909 --oldincludedir=DIR C header files for non-gcc [/usr/include]
910 --infodir=DIR info documentation [PREFIX/info]
911 --mandir=DIR man documentation [PREFIX/man]
912_ACEOF
913
914 cat <<\_ACEOF
915
916Program names:
917 --program-prefix=PREFIX prepend PREFIX to installed program names
918 --program-suffix=SUFFIX append SUFFIX to installed program names
919 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
920
921System types:
922 --build=BUILD configure for building on BUILD [guessed]
923 --host=HOST cross-compile to build programs to run on HOST [BUILD]
924 --target=TARGET configure for building compilers for TARGET [HOST]
925_ACEOF
926fi
927
928if test -n "$ac_init_help"; then
929
930 cat <<\_ACEOF
931
932Optional Features:
933 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
934 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
935 --enable-gold use gold instead of ld
936 --enable-libada build libada directory
937 --enable-libssp build libssp directory
938 --disable-ppl-version-check disable check for PPL version
939 --disable-cloog-version-check disable check for CLooG version
940 --enable-stage1-languages[=all] choose additional languages to build during
941 stage1. Mostly useful for compiler development.
942 --enable-objc-gc enable use of Boehm's garbage collector with the
943 GNU Objective-C runtime
944 --enable-bootstrap enable bootstrapping [yes if native build]
945 --enable-serial-[{host,target,build}-]configure
946 force sequential configuration of
947 sub-packages for the host, target or build
948 machine, or all sub-packages
949 --enable-maintainer-mode enable make rules and dependencies not useful
950 (and sometimes confusing) to the casual installer
951 --enable-stage1-checking[=all] choose additional checking for stage1
952 of the compiler
953 --enable-werror enable -Werror in bootstrap stage2 and later
954
955Optional Packages:
956 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
957 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
958 --with-build-libsubdir=DIR Directory where to find libraries for build system
959 --with-mpfr-dir=PATH this option has been REMOVED
960 --with-mpfr=PATH specify prefix directory for installed MPFR package.
961 Equivalent to --with-mpfr-include=PATH/include
962 plus --with-mpfr-lib=PATH/lib
963 --with-mpfr-include=PATH
964 specify directory for installed MPFR include files
965 --with-mpfr-lib=PATH specify directory for the installed MPFR library
966 --with-gmp-dir=PATH this option has been REMOVED
967 --with-gmp=PATH specify prefix directory for the installed GMP package.
968 Equivalent to --with-gmp-include=PATH/include
969 plus --with-gmp-lib=PATH/lib
970 --with-gmp-include=PATH specify directory for installed GMP include files
971 --with-gmp-lib=PATH specify directory for the installed GMP library
972 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
973 when linking with PPL
974 --with-ppl=PATH Specify prefix directory for the installed PPL package
975 Equivalent to --with-ppl-include=PATH/include
976 plus --with-ppl-lib=PATH/lib
977 --with-ppl-include=PATH Specify directory for installed PPL include files
978 --with-ppl-lib=PATH Specify the directory for the installed PPL library
979 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
980 Equivalent to --with-cloog-include=PATH/include
981 plus --with-cloog-lib=PATH/lib
982 --with-cloog-include=PATH Specify directory for installed CLooG include files
983 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
984 --with-build-sysroot=SYSROOT
985 use sysroot as the system root during the build
986 --with-debug-prefix-map='A=B C=D ...'
987 map A to B, C to D ... in debug information
988 --with-build-time-tools=PATH
989 use given path to find target tools during the build
990 --with-datarootdir use datarootdir as the data root directory.
991 --with-docdir install documentation in this directory.
992 --with-pdfdir install pdf in this directory.
993 --with-htmldir install html in this directory.
994
995Some influential environment variables:
996 CC C compiler command
997 CFLAGS C compiler flags
998 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
999 nonstandard directory <lib dir>
1000 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1001 headers in a nonstandard directory <include dir>
1002 CXX C++ compiler command
1003 CXXFLAGS C++ compiler flags
1004 AR AR for the host
1005 AS AS for the host
1006 DLLTOOL DLLTOOL for the host
1007 LD LD for the host
1008 LIPO LIPO for the host
1009 NM NM for the host
1010 RANLIB RANLIB for the host
1011 STRIP STRIP for the host
1012 WINDRES WINDRES for the host
1013 WINDMC WINDMC for the host
1014 OBJCOPY OBJCOPY for the host
1015 OBJDUMP OBJDUMP for the host
1016 CC_FOR_TARGET
1017 CC for the target
1018 CXX_FOR_TARGET
1019 CXX for the target
1020 GCC_FOR_TARGET
1021 GCC for the target
1022 GCJ_FOR_TARGET
1023 GCJ for the target
1024 GFORTRAN_FOR_TARGET
1025 GFORTRAN for the target
1026 AR_FOR_TARGET
1027 AR for the target
1028 AS_FOR_TARGET
1029 AS for the target
1030 DLLTOOL_FOR_TARGET
1031 DLLTOOL for the target
1032 LD_FOR_TARGET
1033 LD for the target
1034 LIPO_FOR_TARGET
1035 LIPO for the target
1036 NM_FOR_TARGET
1037 NM for the target
1038 OBJDUMP_FOR_TARGET
1039 OBJDUMP for the target
1040 RANLIB_FOR_TARGET
1041 RANLIB for the target
1042 STRIP_FOR_TARGET
1043 STRIP for the target
1044 WINDRES_FOR_TARGET
1045 WINDRES for the target
1046 WINDMC_FOR_TARGET
1047 WINDMC for the target
1048
1049Use these variables to override the choices made by `configure' or to help
1050it to find libraries and programs with nonstandard names/locations.
1051
1052_ACEOF
1053fi
1054
1055if test "$ac_init_help" = "recursive"; then
1056 # If there are subdirs, report their specific --help.
1057 ac_popdir=`pwd`
1058 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1059 test -d $ac_dir || continue
1060 ac_builddir=.
1061
1062if test "$ac_dir" != .; then
1063 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1064 # A "../" for each directory in $ac_dir_suffix.
1065 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1066else
1067 ac_dir_suffix= ac_top_builddir=
1068fi
1069
1070case $srcdir in
1071 .) # No --srcdir option. We are building in place.
1072 ac_srcdir=.
1073 if test -z "$ac_top_builddir"; then
1074 ac_top_srcdir=.
1075 else
1076 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1077 fi ;;
1078 [\\/]* | ?:[\\/]* ) # Absolute path.
1079 ac_srcdir=$srcdir$ac_dir_suffix;
1080 ac_top_srcdir=$srcdir ;;
1081 *) # Relative path.
1082 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1083 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1084esac
1085
1086# Do not use `cd foo && pwd` to compute absolute paths, because
1087# the directories may not exist.
1088case `pwd` in
1089.) ac_abs_builddir="$ac_dir";;
1090*)
1091 case "$ac_dir" in
1092 .) ac_abs_builddir=`pwd`;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1094 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_top_builddir=${ac_top_builddir}.;;
1099*)
1100 case ${ac_top_builddir}. in
1101 .) ac_abs_top_builddir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1103 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1104 esac;;
1105esac
1106case $ac_abs_builddir in
1107.) ac_abs_srcdir=$ac_srcdir;;
1108*)
1109 case $ac_srcdir in
1110 .) ac_abs_srcdir=$ac_abs_builddir;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1112 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1113 esac;;
1114esac
1115case $ac_abs_builddir in
1116.) ac_abs_top_srcdir=$ac_top_srcdir;;
1117*)
1118 case $ac_top_srcdir in
1119 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1121 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1122 esac;;
1123esac
1124
1125 cd $ac_dir
1126 # Check for guested configure; otherwise get Cygnus style configure.
1127 if test -f $ac_srcdir/configure.gnu; then
1128 echo
1129 $SHELL $ac_srcdir/configure.gnu --help=recursive
1130 elif test -f $ac_srcdir/configure; then
1131 echo
1132 $SHELL $ac_srcdir/configure --help=recursive
1133 elif test -f $ac_srcdir/configure.ac ||
1134 test -f $ac_srcdir/configure.in; then
1135 echo
1136 $ac_configure --help
1137 else
1138 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1139 fi
1140 cd $ac_popdir
1141 done
1142fi
1143
1144test -n "$ac_init_help" && exit 0
1145if $ac_init_version; then
1146 cat <<\_ACEOF
1147
1148Copyright (C) 2003 Free Software Foundation, Inc.
1149This configure script is free software; the Free Software Foundation
1150gives unlimited permission to copy, distribute and modify it.
1151_ACEOF
1152 exit 0
1153fi
1154exec 5>config.log
1155cat >&5 <<_ACEOF
1156This file contains any messages produced by compilers while
1157running configure, to aid debugging if configure makes a mistake.
1158
1159It was created by $as_me, which was
1160generated by GNU Autoconf 2.59. Invocation command line was
1161
1162 $ $0 $@
1163
1164_ACEOF
1165{
1166cat <<_ASUNAME
1167## --------- ##
1168## Platform. ##
1169## --------- ##
1170
1171hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1172uname -m = `(uname -m) 2>/dev/null || echo unknown`
1173uname -r = `(uname -r) 2>/dev/null || echo unknown`
1174uname -s = `(uname -s) 2>/dev/null || echo unknown`
1175uname -v = `(uname -v) 2>/dev/null || echo unknown`
1176
1177/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1178/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1179
1180/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1181/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1182/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1183hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1184/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1185/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1186/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1187
1188_ASUNAME
1189
1190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1191for as_dir in $PATH
1192do
1193 IFS=$as_save_IFS
1194 test -z "$as_dir" && as_dir=.
1195 echo "PATH: $as_dir"
1196done
1197
1198} >&5
1199
1200cat >&5 <<_ACEOF
1201
1202
1203## ----------- ##
1204## Core tests. ##
1205## ----------- ##
1206
1207_ACEOF
1208
1209
1210# Keep a trace of the command line.
1211# Strip out --no-create and --no-recursion so they do not pile up.
1212# Strip out --silent because we don't want to record it for future runs.
1213# Also quote any args containing shell meta-characters.
1214# Make two passes to allow for proper duplicate-argument suppression.
1215ac_configure_args=
1216ac_configure_args0=
1217ac_configure_args1=
1218ac_sep=
1219ac_must_keep_next=false
1220for ac_pass in 1 2
1221do
1222 for ac_arg
1223 do
1224 case $ac_arg in
1225 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1228 continue ;;
1229 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1230 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1231 esac
1232 case $ac_pass in
1233 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1234 2)
1235 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1236 if test $ac_must_keep_next = true; then
1237 ac_must_keep_next=false # Got value, back to normal.
1238 else
1239 case $ac_arg in
1240 *=* | --config-cache | -C | -disable-* | --disable-* \
1241 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1242 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1243 | -with-* | --with-* | -without-* | --without-* | --x)
1244 case "$ac_configure_args0 " in
1245 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1246 esac
1247 ;;
1248 -* ) ac_must_keep_next=true ;;
1249 esac
1250 fi
1251 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1252 # Get rid of the leading space.
1253 ac_sep=" "
1254 ;;
1255 esac
1256 done
1257done
1258$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1259$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1260
1261# When interrupted or exit'd, cleanup temporary files, and complete
1262# config.log. We remove comments because anyway the quotes in there
1263# would cause problems or look ugly.
1264# WARNING: Be sure not to use single quotes in there, as some shells,
1265# such as our DU 5.0 friend, will then `close' the trap.
1266trap 'exit_status=$?
1267 # Save into config.log some information that might help in debugging.
1268 {
1269 echo
1270
1271 cat <<\_ASBOX
1272## ---------------- ##
1273## Cache variables. ##
1274## ---------------- ##
1275_ASBOX
1276 echo
1277 # The following way of writing the cache mishandles newlines in values,
1278{
1279 (set) 2>&1 |
1280 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1281 *ac_space=\ *)
1282 sed -n \
1283 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1285 ;;
1286 *)
1287 sed -n \
1288 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1289 ;;
1290 esac;
1291}
1292 echo
1293
1294 cat <<\_ASBOX
1295## ----------------- ##
1296## Output variables. ##
1297## ----------------- ##
1298_ASBOX
1299 echo
1300 for ac_var in $ac_subst_vars
1301 do
1302 eval ac_val=$`echo $ac_var`
1303 echo "$ac_var='"'"'$ac_val'"'"'"
1304 done | sort
1305 echo
1306
1307 if test -n "$ac_subst_files"; then
1308 cat <<\_ASBOX
1309## ------------- ##
1310## Output files. ##
1311## ------------- ##
1312_ASBOX
1313 echo
1314 for ac_var in $ac_subst_files
1315 do
1316 eval ac_val=$`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1318 done | sort
1319 echo
1320 fi
1321
1322 if test -s confdefs.h; then
1323 cat <<\_ASBOX
1324## ----------- ##
1325## confdefs.h. ##
1326## ----------- ##
1327_ASBOX
1328 echo
1329 sed "/^$/d" confdefs.h | sort
1330 echo
1331 fi
1332 test "$ac_signal" != 0 &&
1333 echo "$as_me: caught signal $ac_signal"
1334 echo "$as_me: exit $exit_status"
1335 } >&5
1336 rm -f core *.core &&
1337 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1338 exit $exit_status
1339 ' 0
1340for ac_signal in 1 2 13 15; do
1341 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1342done
1343ac_signal=0
1344
1345# confdefs.h avoids OS command line length limits that DEFS can exceed.
1346rm -rf conftest* confdefs.h
1347# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1348echo >confdefs.h
1349
1350# Predefined preprocessor variables.
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_NAME "$PACKAGE_NAME"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_VERSION "$PACKAGE_VERSION"
1364_ACEOF
1365
1366
1367cat >>confdefs.h <<_ACEOF
1368#define PACKAGE_STRING "$PACKAGE_STRING"
1369_ACEOF
1370
1371
1372cat >>confdefs.h <<_ACEOF
1373#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1374_ACEOF
1375
1376
1377# Let the site file select an alternate cache file if it wants to.
1378# Prefer explicitly selected file to automatically selected ones.
1379if test -z "$CONFIG_SITE"; then
1380 if test "x$prefix" != xNONE; then
1381 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1382 else
1383 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1384 fi
1385fi
1386for ac_site_file in $CONFIG_SITE; do
1387 if test -r "$ac_site_file"; then
1388 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1389echo "$as_me: loading site script $ac_site_file" >&6;}
1390 sed 's/^/| /' "$ac_site_file" >&5
1391 . "$ac_site_file"
1392 fi
1393done
1394
1395if test -r "$cache_file"; then
1396 # Some versions of bash will fail to source /dev/null (special
1397 # files actually), so we avoid doing that.
1398 if test -f "$cache_file"; then
1399 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1400echo "$as_me: loading cache $cache_file" >&6;}
1401 case $cache_file in
1402 [\\/]* | ?:[\\/]* ) . $cache_file;;
1403 *) . ./$cache_file;;
1404 esac
1405 fi
1406else
1407 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1408echo "$as_me: creating cache $cache_file" >&6;}
1409 >$cache_file
1410fi
1411
1412# Check that the precious variables saved in the cache have kept the same
1413# value.
1414ac_cache_corrupted=false
1415for ac_var in `(set) 2>&1 |
1416 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1417 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1418 eval ac_new_set=\$ac_env_${ac_var}_set
1419 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1420 eval ac_new_val="\$ac_env_${ac_var}_value"
1421 case $ac_old_set,$ac_new_set in
1422 set,)
1423 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1424echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1425 ac_cache_corrupted=: ;;
1426 ,set)
1427 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1428echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1429 ac_cache_corrupted=: ;;
1430 ,);;
1431 *)
1432 if test "x$ac_old_val" != "x$ac_new_val"; then
1433 # differences in whitespace do not lead to failure.
1434 ac_old_val_w=`echo x $ac_old_val`
1435 ac_new_val_w=`echo x $ac_new_val`
1436 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1437 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1438echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1439 ac_cache_corrupted=:
1440 else
1441 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1442echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1443 eval $ac_var=\$ac_old_val
1444 fi
1445 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1446echo "$as_me: former value: \`$ac_old_val'" >&2;}
1447 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1448echo "$as_me: current value: \`$ac_new_val'" >&2;}
1449 fi;;
1450 esac
1451 # Pass precious variables to config.status.
1452 if test "$ac_new_set" = set; then
1453 case $ac_new_val in
1454 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1455 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1456 *) ac_arg=$ac_var=$ac_new_val ;;
1457 esac
1458 case " $ac_configure_args " in
1459 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1460 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1461 esac
1462 fi
1463done
1464if $ac_cache_corrupted; then
1465 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1466echo "$as_me: error: in \`$ac_pwd':" >&2;}
1467 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1469 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1470echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471 { (exit 1); exit 1; }; }
1472fi
1473
1474ac_ext=c
1475ac_cpp='$CPP $CPPFLAGS'
1476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478ac_compiler_gnu=$ac_cv_c_compiler_gnu
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503progname=$0
1504# if PWD already has a value, it is probably wrong.
1505if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1506
1507# Export original configure arguments for use by sub-configures.
1508# Quote arguments with shell meta charatcers.
1509TOPLEVEL_CONFIGURE_ARGUMENTS=
1510set -- "$progname" "$@"
1511for ac_arg
1512do
1513 case "$ac_arg" in
1514 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1515 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1516 # if the argument is of the form -foo=baz, quote the baz part only
1517 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1518 *) ;;
1519 esac
1520 # Add the quoted argument to the list.
1521 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1522done
1523if test "$silent" = yes; then
1524 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1525fi
1526# Remove the initial space we just introduced and, as these will be
1527# expanded by make, quote '$'.
1528TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1529
1530
1531# Find the build, host, and target systems.
1532ac_aux_dir=
1533for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1534 if test -f $ac_dir/install-sh; then
1535 ac_aux_dir=$ac_dir
1536 ac_install_sh="$ac_aux_dir/install-sh -c"
1537 break
1538 elif test -f $ac_dir/install.sh; then
1539 ac_aux_dir=$ac_dir
1540 ac_install_sh="$ac_aux_dir/install.sh -c"
1541 break
1542 elif test -f $ac_dir/shtool; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/shtool install -c"
1545 break
1546 fi
1547done
1548if test -z "$ac_aux_dir"; then
1549 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1550echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1551 { (exit 1); exit 1; }; }
1552fi
1553ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1556
1557# Make sure we can run config.sub.
1558$ac_config_sub sun4 >/dev/null 2>&1 ||
1559 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1560echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1561 { (exit 1); exit 1; }; }
1562
1563echo "$as_me:$LINENO: checking build system type" >&5
1564echo $ECHO_N "checking build system type... $ECHO_C" >&6
1565if test "${ac_cv_build+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567else
1568 ac_cv_build_alias=$build_alias
1569test -z "$ac_cv_build_alias" &&
1570 ac_cv_build_alias=`$ac_config_guess`
1571test -z "$ac_cv_build_alias" &&
1572 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1573echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1574 { (exit 1); exit 1; }; }
1575ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1577echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1578 { (exit 1); exit 1; }; }
1579
1580fi
1581echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1582echo "${ECHO_T}$ac_cv_build" >&6
1583build=$ac_cv_build
1584build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587
1588
1589 case ${build_alias} in
1590 "") build_noncanonical=${build} ;;
1591 *) build_noncanonical=${build_alias} ;;
1592esac
1593
1594
1595
1596 case ${host_alias} in
1597 "") host_noncanonical=${build_noncanonical} ;;
1598 *) host_noncanonical=${host_alias} ;;
1599esac
1600
1601
1602
1603 case ${target_alias} in
1604 "") target_noncanonical=${host_noncanonical} ;;
1605 *) target_noncanonical=${target_alias} ;;
1606esac
1607
1608
1609
1610
1611test "$host_noncanonical" = "$target_noncanonical" &&
1612 test "$program_prefix$program_suffix$program_transform_name" = \
1613 NONENONEs,x,x, &&
1614 program_transform_name=s,y,y,
1615
1616echo "$as_me:$LINENO: checking host system type" >&5
1617echo $ECHO_N "checking host system type... $ECHO_C" >&6
1618if test "${ac_cv_host+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620else
1621 ac_cv_host_alias=$host_alias
1622test -z "$ac_cv_host_alias" &&
1623 ac_cv_host_alias=$ac_cv_build_alias
1624ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1626echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1627 { (exit 1); exit 1; }; }
1628
1629fi
1630echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1631echo "${ECHO_T}$ac_cv_host" >&6
1632host=$ac_cv_host
1633host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636
1637
1638echo "$as_me:$LINENO: checking target system type" >&5
1639echo $ECHO_N "checking target system type... $ECHO_C" >&6
1640if test "${ac_cv_target+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642else
1643 ac_cv_target_alias=$target_alias
1644test "x$ac_cv_target_alias" = "x" &&
1645 ac_cv_target_alias=$ac_cv_host_alias
1646ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1647 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1648echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1649 { (exit 1); exit 1; }; }
1650
1651fi
1652echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1653echo "${ECHO_T}$ac_cv_target" >&6
1654target=$ac_cv_target
1655target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1656target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1657target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1658
1659
1660# The aliases save the names the user supplied, while $host etc.
1661# will get canonicalized.
1662test -n "$target_alias" &&
1663 test "$program_prefix$program_suffix$program_transform_name" = \
1664 NONENONEs,x,x, &&
1665 program_prefix=${target_alias}-
1666test "$program_prefix" != NONE &&
1667 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1668# Use a double $ so make ignores it.
1669test "$program_suffix" != NONE &&
1670 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1671# Double any \ or $. echo might interpret backslashes.
1672# By default was `s,x,x', remove it if useless.
1673cat <<\_ACEOF >conftest.sed
1674s/[\\$]/&&/g;s/;s,x,x,$//
1675_ACEOF
1676program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1677rm conftest.sed
1678
1679
1680
1681# Get 'install' or 'install-sh' and its variants.
1682# Find a good install program. We prefer a C program (faster),
1683# so one script is as good as another. But avoid the broken or
1684# incompatible versions:
1685# SysV /etc/install, /usr/sbin/install
1686# SunOS /usr/etc/install
1687# IRIX /sbin/install
1688# AIX /bin/install
1689# AmigaOS /C/install, which installs bootblocks on floppy discs
1690# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1691# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1692# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1693# OS/2's system install, which has a completely different semantic
1694# ./install, which can be erroneously created by make from ./install.sh.
1695# Reject install programs that cannot install multiple files.
1696echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1697echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1698if test -z "$INSTALL"; then
1699if test "${ac_cv_path_install+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701else
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703for as_dir in $PATH
1704do
1705 IFS=$as_save_IFS
1706 test -z "$as_dir" && as_dir=.
1707 # Account for people who put trailing slashes in PATH elements.
1708case $as_dir/ in
1709 ./ | .// | /cC/* | \
1710 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1711 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1712 /usr/ucb/* ) ;;
1713 *)
1714 # OSF1 and SCO ODT 3.0 have their own names for install.
1715 # Don't use installbsd from OSF since it installs stuff as root
1716 # by default.
1717 for ac_prog in ginstall scoinst install; do
1718 for ac_exec_ext in '' $ac_executable_extensions; do
1719 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1720 if test $ac_prog = install &&
1721 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1722 # AIX install. It has an incompatible calling convention.
1723 :
1724 elif test $ac_prog = install &&
1725 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1726 # program-specific install script used by HP pwplus--don't use.
1727 :
1728 else
1729 rm -rf conftest.one conftest.two conftest.dir
1730 echo one > conftest.one
1731 echo two > conftest.two
1732 mkdir conftest.dir
1733 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1734 test -s conftest.one && test -s conftest.two &&
1735 test -s conftest.dir/conftest.one &&
1736 test -s conftest.dir/conftest.two
1737 then
1738 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1739 break 3
1740 fi
1741 fi
1742 fi
1743 done
1744 done
1745 ;;
1746esac
1747done
1748
1749rm -rf conftest.one conftest.two conftest.dir
1750
1751fi
1752 if test "${ac_cv_path_install+set}" = set; then
1753 INSTALL=$ac_cv_path_install
1754 else
1755 # As a last resort, use the slow shell script. Don't cache a
1756 # value for INSTALL within a source directory, because that will
1757 # break other packages using the cache if that directory is
1758 # removed, or if the value is a relative name.
1759 INSTALL=$ac_install_sh
1760 fi
1761fi
1762echo "$as_me:$LINENO: result: $INSTALL" >&5
1763echo "${ECHO_T}$INSTALL" >&6
1764
1765# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1766# It thinks the first close brace ends the variable substitution.
1767test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1768
1769test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1770
1771test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1772
1773echo "$as_me:$LINENO: checking whether ln works" >&5
1774echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1775if test "${acx_cv_prog_LN+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1777else
1778 rm -f conftestdata_t
1779echo >conftestdata_f
1780if ln conftestdata_f conftestdata_t 2>/dev/null
1781then
1782 acx_cv_prog_LN=ln
1783else
1784 acx_cv_prog_LN=no
1785fi
1786rm -f conftestdata_f conftestdata_t
1787
1788fi
1789if test $acx_cv_prog_LN = no; then
1790 LN="cp"
1791 echo "$as_me:$LINENO: result: no, using $LN" >&5
1792echo "${ECHO_T}no, using $LN" >&6
1793else
1794 LN="$acx_cv_prog_LN"
1795 echo "$as_me:$LINENO: result: yes" >&5
1796echo "${ECHO_T}yes" >&6
1797fi
1798
1799echo "$as_me:$LINENO: checking whether ln -s works" >&5
1800echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1801LN_S=$as_ln_s
1802if test "$LN_S" = "ln -s"; then
1803 echo "$as_me:$LINENO: result: yes" >&5
1804echo "${ECHO_T}yes" >&6
1805else
1806 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1807echo "${ECHO_T}no, using $LN_S" >&6
1808fi
1809
1810
1811### we might need to use some other shell than /bin/sh for running subshells
1812### If we are on Windows, search for the shell. This will permit people
1813### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1814### without also having to set CONFIG_SHELL. This code will work when
1815### using bash, which sets OSTYPE.
1816case "${OSTYPE}" in
1817*win32*)
1818 if test x${CONFIG_SHELL} = x ; then
1819 if test ! -f /bin/sh ; then
1820 if test x${SHELL} != x && test -f ${SHELL} ; then
1821 CONFIG_SHELL=${SHELL}
1822 export CONFIG_SHELL
1823 else
1824 for prog in sh sh.exe bash bash.exe; do
1825 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1826 for dir in $PATH; do
1827 test -z "$dir" && dir=.
1828 if test -f $dir/$prog; then
1829 CONFIG_SHELL=$dir/$prog
1830 export CONFIG_SHELL
1831 break
1832 fi
1833 done
1834 IFS="$save_ifs"
1835 test -n "${CONFIG_SHELL}" && break
1836 done
1837 fi
1838 fi
1839 fi
1840 ;;
1841esac
1842
1843config_shell=${CONFIG_SHELL-/bin/sh}
1844
1845moveifchange=${srcdir}/move-if-change
1846
1847srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1848
1849# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1850# a relative path.
1851if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1852 INSTALL="${srcpwd}/install-sh -c"
1853fi
1854
1855# Set srcdir to "." if that's what it is.
1856# This is important for multilib support.
1857pwd=`${PWDCMD-pwd}`
1858if test "${pwd}" = "${srcpwd}" ; then
1859 srcdir=.
1860fi
1861
1862topsrcdir=$srcpwd
1863
1864extra_host_args=
1865
1866### To add a new directory to the tree, first choose whether it is a target
1867### or a host dependent tool. Then put it into the appropriate list
1868### (library or tools, host or target), doing a dependency sort.
1869
1870# Subdirs will be configured in the order listed in build_configdirs,
1871# configdirs, or target_configdirs; see the serialization section below.
1872
1873# Dependency sorting is only needed when *configuration* must be done in
1874# a particular order. In all cases a dependency should be specified in
1875# the Makefile, whether or not it's implicitly specified here.
1876
1877# Double entries in build_configdirs, configdirs, or target_configdirs may
1878# cause circular dependencies and break everything horribly.
1879
1880# these library is used by various programs built for the build
1881# environment
1882#
1883build_libs="build-libiberty"
1884
1885# these tools are built for the build environment
1886build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1887
1888# these libraries are used by various programs built for the host environment
1889#
1890host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr ppl cloog libiconv"
1891
1892# these tools are built for the host environment
1893# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1894# know that we are building the simulator.
1895# binutils, gas and ld appear in that order because it makes sense to run
1896# "make check" in that particular order.
1897# If --enable-gold is used, "gold" will replace "ld".
1898host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen 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"
1899
1900# libgcj represents the runtime libraries only used by gcj.
1901libgcj="target-libffi \
1902 target-zlib \
1903 target-qthreads \
1904 target-libjava"
1905
1906# these libraries are built for the target environment, and are built after
1907# the host libraries and the host tools (which may be a cross compiler)
1908#
1909target_libraries="target-libgcc \
1910 target-libiberty \
1911 target-libgloss \
1912 target-newlib \
1913 target-libgomp \
1914 target-libstdc++-v3 \
1915 target-libmudflap \
1916 target-libssp \
1917 target-libgfortran \
1918 target-boehm-gc \
1919 ${libgcj} \
1920 target-libobjc \
1921 target-libada"
1922
1923# these tools are built using the target libraries, and are intended to
1924# run only in the target environment
1925#
1926# note: any program that *uses* libraries that are in the "target_libraries"
1927# list belongs in this list. those programs are also very likely
1928# candidates for the "native_only" list which follows
1929#
1930target_tools="target-examples target-groff target-gperf target-rda"
1931
1932################################################################################
1933
1934## All tools belong in one of the four categories, and are assigned above
1935## We assign ${configdirs} this way to remove all embedded newlines. This
1936## is important because configure will choke if they ever get through.
1937## ${configdirs} is directories we build using the host tools.
1938## ${target_configdirs} is directories we build using the target tools.
1939configdirs=`echo ${host_libs} ${host_tools}`
1940target_configdirs=`echo ${target_libraries} ${target_tools}`
1941build_configdirs=`echo ${build_libs} ${build_tools}`
1942
1943
1944
1945################################################################################
1946
1947srcname="gnu development package"
1948
1949# This gets set non-empty for some net releases of packages.
1950appdirs=""
1951
1952# Define is_cross_compiler to save on calls to 'test'.
1953is_cross_compiler=
1954if test x"${host}" = x"${target}" ; then
1955 is_cross_compiler=no
1956else
1957 is_cross_compiler=yes
1958fi
1959
1960# Find the build and target subdir names.
1961
1962# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1963# have matching libraries, they should use host libraries: Makefile.tpl
1964# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1965# However, they still use the build modules, because the corresponding
1966# host modules (e.g. bison) are only built for the host when bootstrap
1967# finishes. So:
1968# - build_subdir is where we find build modules, and never changes.
1969# - build_libsubdir is where we find build libraries, and can be overridden.
1970
1971# Prefix 'build-' so this never conflicts with target_subdir.
1972build_subdir="build-${build_noncanonical}"
1973
1974# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1975if test "${with_build_libsubdir+set}" = set; then
1976 withval="$with_build_libsubdir"
1977 build_libsubdir="$withval"
1978else
1979 build_libsubdir="$build_subdir"
1980fi;
1981# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1982if ( test $srcdir = . && test -d gcc ) \
1983 || test -d $srcdir/../host-${host_noncanonical}; then
1984 host_subdir="host-${host_noncanonical}"
1985else
1986 host_subdir=.
1987fi
1988# No prefix.
1989target_subdir=${target_noncanonical}
1990
1991
1992# Skipdirs are removed silently.
1993skipdirs=
1994# Noconfigdirs are removed loudly.
1995noconfigdirs=""
1996
1997use_gnu_ld=
1998# Make sure we don't let GNU ld be added if we didn't want it.
1999if test x$with_gnu_ld = xno ; then
2000 use_gnu_ld=no
2001 noconfigdirs="$noconfigdirs ld gold"
2002fi
2003
2004use_gnu_as=
2005# Make sure we don't let GNU as be added if we didn't want it.
2006if test x$with_gnu_as = xno ; then
2007 use_gnu_as=no
2008 noconfigdirs="$noconfigdirs gas"
2009fi
2010
2011# some tools are so dependent upon X11 that if we're not building with X,
2012# it's not even worth trying to configure, much less build, that tool.
2013
2014case ${with_x} in
2015 yes | "") ;; # the default value for this tree is that X11 is available
2016 no)
2017 skipdirs="${skipdirs} tk itcl libgui"
2018 # We won't be able to build gdbtk without X.
2019 enable_gdbtk=no
2020 ;;
2021 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2022esac
2023
2024# Some tools are only suitable for building in a "native" situation.
2025# Remove these if host!=target.
2026native_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"
2027
2028# Similarly, some are only suitable for cross toolchains.
2029# Remove these if host=target.
2030cross_only="target-libgloss target-newlib target-opcodes"
2031
2032case $is_cross_compiler in
2033 no) skipdirs="${skipdirs} ${cross_only}" ;;
2034 yes) skipdirs="${skipdirs} ${native_only}" ;;
2035esac
2036
2037# If both --with-headers and --with-libs are specified, default to
2038# --without-newlib.
2039if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2040 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2041 if test x"${with_newlib}" = x ; then
2042 with_newlib=no
2043 fi
2044fi
2045
2046# Recognize --with-newlib/--without-newlib.
2047case ${with_newlib} in
2048 no) skipdirs="${skipdirs} target-newlib" ;;
2049 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2050esac
2051
2052# Handle --enable-gold.
2053
2054# Check whether --enable-gold or --disable-gold was given.
2055if test "${enable_gold+set}" = set; then
2056 enableval="$enable_gold"
2057 ENABLE_GOLD=$enableval
2058else
2059 ENABLE_GOLD=no
2060fi;
2061if test "${ENABLE_GOLD}" = "yes"; then
2062 # Check for ELF target.
2063 is_elf=no
2064 case "${target}" in
2065 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2066 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2067 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2068 case "${target}" in
2069 *-*-linux*aout* | *-*-linux*oldld*)
2070 ;;
2071 *)
2072 is_elf=yes
2073 ;;
2074 esac
2075 esac
2076
2077 if test "$is_elf" = "yes"; then
2078 # Check for target supported by gold.
2079 case "${target}" in
2080 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2081 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2082 ;;
2083 esac
2084 fi
2085fi
2086
2087# Configure extra directories which are host specific
2088
2089case "${host}" in
2090 *-cygwin*)
2091 configdirs="$configdirs libtermcap" ;;
2092esac
2093
2094# A target can indicate whether a language isn't supported for some reason.
2095# Only spaces may be used in this macro; not newlines or tabs.
2096unsupported_languages=
2097
2098# Remove more programs from consideration, based on the host or
2099# target this usually means that a port of the program doesn't
2100# exist yet.
2101
2102case "${host}" in
2103 hppa*64*-*-*)
2104 noconfigdirs="$noconfigdirs byacc"
2105 ;;
2106 i[3456789]86-*-vsta)
2107 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2108 ;;
2109 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2110 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2111 ;;
2112 x86_64-*-mingw*)
2113 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2114 ;;
2115 i[3456789]86-*-mingw32*)
2116 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2117 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2118 ;;
2119 i[3456789]86-*-beos*)
2120 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2121 ;;
2122 *-*-cygwin*)
2123 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2124 ;;
2125 *-*-netbsd*)
2126 noconfigdirs="$noconfigdirs rcs"
2127 ;;
2128 ppc*-*-pe)
2129 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2130 ;;
2131 powerpc-*-beos*)
2132 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2133 ;;
2134esac
2135
2136
2137# Check whether --enable-libada or --disable-libada was given.
2138if test "${enable_libada+set}" = set; then
2139 enableval="$enable_libada"
2140 ENABLE_LIBADA=$enableval
2141else
2142 ENABLE_LIBADA=yes
2143fi;
2144if test "${ENABLE_LIBADA}" != "yes" ; then
2145 noconfigdirs="$noconfigdirs gnattools"
2146fi
2147
2148# Check whether --enable-libssp or --disable-libssp was given.
2149if test "${enable_libssp+set}" = set; then
2150 enableval="$enable_libssp"
2151 ENABLE_LIBSSP=$enableval
2152else
2153 ENABLE_LIBSSP=yes
2154fi;
2155
2156# Save it here so that, even in case of --enable-libgcj, if the Java
2157# front-end isn't enabled, we still get libgcj disabled.
2158libgcj_saved=$libgcj
2159case $enable_libgcj in
2160yes)
2161 # If we reset it here, it won't get added to noconfigdirs in the
2162 # target-specific build rules, so it will be forcibly enabled
2163 # (unless the Java language itself isn't enabled).
2164 libgcj=
2165 ;;
2166no)
2167 # Make sure we get it printed in the list of not supported target libs.
2168 noconfigdirs="$noconfigdirs ${libgcj}"
2169 ;;
2170esac
2171
2172
2173# Disable libmudflap on some systems.
2174if test x$enable_libmudflap = x ; then
2175 case "${target}" in
2176 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2177 # Enable libmudflap by default in GNU and friends.
2178 ;;
2179 *-*-freebsd*)
2180 # Enable libmudflap by default in FreeBSD.
2181 ;;
2182 *)
2183 # Disable it by default everywhere else.
2184 noconfigdirs="$noconfigdirs target-libmudflap"
2185 ;;
2186 esac
2187fi
2188
2189# Disable libgomp on non POSIX hosted systems.
2190if test x$enable_libgomp = x ; then
2191 # Enable libgomp by default on hosted POSIX systems.
2192 case "${target}" in
2193 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
2194 ;;
2195 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2196 ;;
2197 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2198 ;;
2199 *-*-darwin* | *-*-aix*)
2200 ;;
2201 *)
2202 noconfigdirs="$noconfigdirs target-libgomp"
2203 ;;
2204 esac
2205fi
2206
2207# Default libgloss CPU subdirectory.
2208libgloss_dir="$target_cpu"
2209
2210case "${target}" in
2211 *-*-chorusos)
2212 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2213 ;;
2214 powerpc-*-darwin*)
2215 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2216 noconfigdirs="$noconfigdirs sim target-rda"
2217 ;;
2218 i[3456789]86-*-darwin*)
2219 noconfigdirs="$noconfigdirs ld gprof"
2220 noconfigdirs="$noconfigdirs sim target-rda"
2221 ;;
2222 x86_64-*-darwin9*)
2223 noconfigdirs="$noconfigdirs ld gas gprof"
2224 noconfigdirs="$noconfigdirs sim target-rda"
2225 ;;
2226 *-*-darwin*)
2227 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2228 noconfigdirs="$noconfigdirs sim target-rda"
2229 noconfigdirs="$noconfigdirs ${libgcj}"
2230 ;;
2231 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2232 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2233 ;;
2234 *-*-freebsd*)
2235 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2236 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2237 && test -f /usr/local/include/gmp.h; then
2238 with_gmp=/usr/local
2239 fi
2240
2241 # Skip some stuff that's unsupported on some FreeBSD configurations.
2242 case "${target}" in
2243 i*86-*-*) ;;
2244 alpha*-*-*) ;;
2245 *)
2246 noconfigdirs="$noconfigdirs ${libgcj}"
2247 ;;
2248 esac
2249 ;;
2250 *-*-kaos*)
2251 # Remove unsupported stuff on all kaOS configurations.
2252 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2253 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2254 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2255 noconfigdirs="$noconfigdirs target-libgloss"
2256 ;;
2257 *-*-netbsd*)
2258 # Skip some stuff on all NetBSD configurations.
2259 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2260
2261 # Skip some stuff that's unsupported on some NetBSD configurations.
2262 case "${target}" in
2263 i*86-*-netbsdelf*) ;;
2264 arm*-*-netbsdelf*) ;;
2265 *)
2266 noconfigdirs="$noconfigdirs ${libgcj}"
2267 ;;
2268 esac
2269 ;;
2270 *-*-netware*)
2271 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2272 ;;
2273 *-*-rtems*)
2274 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2275 ;;
2276 # The tpf target doesn't support gdb yet.
2277 *-*-tpf*)
2278 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2279 ;;
2280 *-*-uclinux*)
2281 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2282 ;;
2283 *-*-vxworks*)
2284 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2285 ;;
2286 alpha*-dec-osf*)
2287 # ld works, but does not support shared libraries.
2288 # newlib is not 64 bit ready. I'm not sure about fileutils.
2289 # gas doesn't generate exception information.
2290 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2291 ;;
2292 alpha*-*-*vms*)
2293 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2294 ;;
2295 alpha*-*-linux*)
2296 # newlib is not 64 bit ready
2297 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2298 ;;
2299 alpha*-*-*)
2300 # newlib is not 64 bit ready
2301 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2302 ;;
2303 am33_2.0-*-linux*)
2304 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2305 ;;
2306 sh-*-linux*)
2307 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2308 ;;
2309 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2310 noconfigdirs="$noconfigdirs ${libgcj}"
2311 noconfigdirs="$noconfigdirs target-examples"
2312 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2313 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2314 noconfigdirs="$noconfigdirs expect dejagnu"
2315 # the C++ libraries don't build on top of CE's C libraries
2316 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2317 noconfigdirs="$noconfigdirs target-newlib"
2318 case "${host}" in
2319 *-*-cygwin*) ;; # keep gdb and readline
2320 *) noconfigdirs="$noconfigdirs gdb readline"
2321 ;;
2322 esac
2323 libgloss_dir=wince
2324 ;;
2325 arc-*-*)
2326 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2327 ;;
2328 arm-semi-aof )
2329 ;;
2330 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2331 noconfigdirs="$noconfigdirs ${libgcj}"
2332 libgloss_dir=arm
2333 ;;
2334 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2335 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2336 libgloss_dir=arm
2337 ;;
2338 arm*-*-linux-gnueabi)
2339 noconfigdirs="$noconfigdirs target-qthreads"
2340 case ${with_newlib} in
2341 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2342 esac
2343 libgloss_dir=arm
2344 ;;
2345 arm*-*-symbianelf*)
2346 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2347 libgloss_dir=arm
2348 ;;
2349 arm-*-pe*)
2350 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2351 ;;
2352 thumb-*-coff)
2353 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2354 ;;
2355 thumb-*-elf)
2356 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2357 ;;
2358 thumb-*-pe)
2359 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2360 ;;
2361 arm-*-riscix*)
2362 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2363 ;;
2364 avr-*-*)
2365 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
2366 ;;
2367 bfin-*-*)
2368 noconfigdirs="$noconfigdirs gdb"
2369 if test x${is_cross_compiler} != xno ; then
2370 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2371 fi
2372 ;;
2373 c4x-*-* | tic4x-*-*)
2374 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2375 ;;
2376 c54x*-*-* | tic54x-*-*)
2377 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2378 ;;
2379 cr16-*-*)
2380 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2381 ;;
2382 cris-*-* | crisv32-*-*)
2383 unsupported_languages="$unsupported_languages java"
2384 case "${target}" in
2385 *-*-aout)
2386 unsupported_languages="$unsupported_languages fortran"
2387 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2388 *-*-elf)
2389 noconfigdirs="$noconfigdirs target-boehm-gc";;
2390 *-*-linux*)
2391 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2392 *)
2393 unsupported_languages="$unsupported_languages fortran"
2394 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2395 esac
2396 libgloss_dir=cris
2397 ;;
2398 crx-*-*)
2399 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2400 ;;
2401 d10v-*-*)
2402 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2403 ;;
2404 d30v-*-*)
2405 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2406 ;;
2407 ep9312-*-elf | ep9312-*-coff)
2408 libgloss_dir=arm
2409 ;;
2410 fr30-*-elf*)
2411 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2412 ;;
2413 frv-*-*)
2414 noconfigdirs="$noconfigdirs ${libgcj}"
2415 ;;
2416 moxie-*-*)
2417 noconfigdirs="$noconfigdirs ${libgcj}"
2418 noconfigdirs="$noconfigdirs gprof"
2419 ;;
2420 h8300*-*-*)
2421 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2422 ;;
2423 h8500-*-*)
2424 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2425 ;;
2426 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2427 ;;
2428 hppa*64*-*-linux* | parisc*64*-*-linux*)
2429 # In this case, it's because the hppa64-linux target is for
2430 # the kernel only at this point and has no libc, and thus no
2431 # headers, crt*.o, etc., all of which are needed by these.
2432 noconfigdirs="$noconfigdirs target-zlib"
2433 ;;
2434 parisc*-*-linux* | hppa*-*-linux*)
2435 ;;
2436 hppa*-*-*elf* | \
2437 hppa*-*-lites* | \
2438 hppa*-*-openbsd* | \
2439 hppa*64*-*-*)
2440 noconfigdirs="$noconfigdirs ${libgcj}"
2441 ;;
2442 hppa*-hp-hpux11*)
2443 noconfigdirs="$noconfigdirs ld shellutils"
2444 ;;
2445 hppa*-*-pro*)
2446 libgloss_dir=pa
2447 ;;
2448 hppa*-*-*)
2449 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2450 # build on HP-UX 10.20.
2451 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2452 ;;
2453 i960-*-*)
2454 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2455 ;;
2456 ia64*-*-elf*)
2457 # No gdb support yet.
2458 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2459 ;;
2460 ia64*-**-hpux*)
2461 # No gdb or ld support yet.
2462 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2463 ;;
2464 ia64*-*-*vms*)
2465 # No gdb or ld support yet.
2466 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
2467 ;;
2468 i370-*-opened*)
2469 ;;
2470 i[3456789]86-*-coff | i[3456789]86-*-elf)
2471 noconfigdirs="$noconfigdirs ${libgcj}"
2472 libgloss_dir=i386
2473 ;;
2474 i[3456789]86-*-linux*)
2475 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2476 # not build java stuff by default.
2477 case "${target}" in
2478 *-*-*libc1*)
2479 noconfigdirs="$noconfigdirs ${libgcj}";;
2480 esac
2481
2482 # This section makes it possible to build newlib natively on linux.
2483 # If we are using a cross compiler then don't configure newlib.
2484 if test x${is_cross_compiler} != xno ; then
2485 noconfigdirs="$noconfigdirs target-newlib"
2486 fi
2487 noconfigdirs="$noconfigdirs target-libgloss"
2488 # If we are not using a cross compiler, do configure newlib.
2489 # Note however, that newlib will only be configured in this situation
2490 # if the --with-newlib option has been given, because otherwise
2491 # 'target-newlib' will appear in skipdirs.
2492 ;;
2493 i[3456789]86-*-mingw32*)
2494 target_configdirs="$target_configdirs target-winsup"
2495 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2496 ;;
2497 x86_64-*-mingw*)
2498 target_configdirs="$target_configdirs target-winsup"
2499 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2500 ;;
2501 *-*-cygwin*)
2502 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2503 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2504 # always build newlib if winsup directory is present.
2505 if test -d "$srcdir/winsup/cygwin"; then
2506 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2507 elif test -d "$srcdir/newlib"; then
2508 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2509 fi
2510 ;;
2511 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2512 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2513 ;;
2514 i[3456789]86-*-pe)
2515 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2516 ;;
2517 i[3456789]86-*-sco3.2v5*)
2518 # The linker does not yet know about weak symbols in COFF,
2519 # and is not configured to handle mixed ELF and COFF.
2520 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2521 ;;
2522 i[3456789]86-*-sco*)
2523 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2524 ;;
2525 i[3456789]86-*-solaris2*)
2526 noconfigdirs="$noconfigdirs target-libgloss"
2527 ;;
2528 i[3456789]86-*-sysv4*)
2529 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2530 ;;
2531 i[3456789]86-*-beos*)
2532 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2533 ;;
2534 i[3456789]86-*-rdos*)
2535 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2536 ;;
2537 m32r-*-*)
2538 noconfigdirs="$noconfigdirs ${libgcj}"
2539 ;;
2540 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2541 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2542 libgloss_dir=m68hc11
2543 ;;
2544 m68k-*-elf*)
2545 noconfigdirs="$noconfigdirs ${libgcj}"
2546 ;;
2547 m68k-*-coff*)
2548 noconfigdirs="$noconfigdirs ${libgcj}"
2549 ;;
2550 m68*-*-* | fido-*-*)
2551 libgloss_dir=m68k
2552 ;;
2553 mcore-*-pe*)
2554 # The EPOC C++ environment does not support exceptions or rtti,
2555 # and so building libstdc++-v3 tends not to always work.
2556 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2557 ;;
2558 mmix-*-*)
2559 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2560 unsupported_languages="$unsupported_languages fortran java"
2561 ;;
2562 mn10200-*-*)
2563 noconfigdirs="$noconfigdirs ${libgcj}"
2564 ;;
2565 mn10300-*-*)
2566 noconfigdirs="$noconfigdirs ${libgcj}"
2567 ;;
2568 mt-*-*)
2569 noconfigdirs="$noconfigdirs sim"
2570 ;;
2571 powerpc-*-aix*)
2572 # copied from rs6000-*-* entry
2573 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2574 ;;
2575 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2576 target_configdirs="$target_configdirs target-winsup"
2577 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2578 # always build newlib.
2579 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2580 ;;
2581 # This is temporary until we can link against shared libraries
2582 powerpcle-*-solaris*)
2583 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2584 libgloss_dir=rs6000
2585 ;;
2586 powerpc-*-beos*)
2587 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2588 ;;
2589 powerpc-*-eabi)
2590 noconfigdirs="$noconfigdirs ${libgcj}"
2591 libgloss_dir=rs6000
2592 ;;
2593 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2594 libgloss_dir=rs6000
2595 ;;
2596 rs6000-*-lynxos*)
2597 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2598 ;;
2599 rs6000-*-aix*)
2600 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2601 ;;
2602 rs6000-*-*)
2603 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2604 ;;
2605 m68k-apollo-*)
2606 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2607 ;;
2608 microblaze*)
2609 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2610 ;;
2611 mips*-sde-elf*)
2612 skipdirs="$skipdirs target-libiberty"
2613 noconfigdirs="$noconfigdirs ${libgcj}"
2614 if test x$with_newlib = xyes; then
2615 noconfigdirs="$noconfigdirs gprof"
2616 fi
2617 libgloss_dir=mips
2618 ;;
2619 mips*-*-irix5*)
2620 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2621 ;;
2622 mips*-*-irix6*)
2623 # Linking libjava exceeds command-line length limits on at least
2624 # IRIX 6.2, but not on IRIX 6.5.
2625 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2626 # <oldham@codesourcery.com>
2627 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2628 ;;
2629 mips*-*-bsd*)
2630 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2631 ;;
2632 mips*-*-linux*)
2633 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2634 ;;
2635 mips*-*-*)
2636 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2637 libgloss_dir=mips
2638 ;;
2639 romp-*-*)
2640 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2641 ;;
2642 sh-*-* | sh64-*-*)
2643 case "${host}" in
2644 i[3456789]86-*-vsta) ;; # don't add gprof back in
2645 i[3456789]86-*-go32*) ;; # don't add gprof back in
2646 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2647 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2648 esac
2649 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2650 ;;
2651 sparclet-*-aout* | sparc86x-*-*)
2652 libgloss_dir=sparc
2653 ;;
2654 sparc-*-elf*)
2655 noconfigdirs="$noconfigdirs ${libgcj}"
2656 ;;
2657 sparc64-*-elf*)
2658 noconfigdirs="$noconfigdirs ${libgcj}"
2659 libgloss_dir=sparc
2660 ;;
2661 sparclite-*-*)
2662 noconfigdirs="$noconfigdirs ${libgcj}"
2663 libgloss_dir=sparc
2664 ;;
2665 sparc-*-sunos4*)
2666 noconfigdirs="$noconfigdirs ${libgcj}"
2667 if test x${is_cross_compiler} != xno ; then
2668 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2669 else
2670 use_gnu_ld=no
2671 fi
2672 ;;
2673 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2674 noconfigdirs="$noconfigdirs ${libgcj}"
2675 ;;
2676 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2677 ;;
2678 v810-*-*)
2679 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2680 ;;
2681 v850-*-*)
2682 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2683 ;;
2684 v850e-*-*)
2685 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2686 ;;
2687 v850ea-*-*)
2688 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2689 ;;
2690 vax-*-vms)
2691 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2692 ;;
2693 vax-*-*)
2694 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2695 ;;
2696 xtensa*-*-*)
2697 noconfigdirs="$noconfigdirs ${libgcj}"
2698 ;;
2699 ip2k-*-*)
2700 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2701 ;;
2702 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
2703 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2704 ;;
2705 *-*-lynxos*)
2706 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2707 ;;
2708 *-*-*)
2709 noconfigdirs="$noconfigdirs ${libgcj}"
2710 ;;
2711esac
2712
2713# If we aren't building newlib, then don't build libgloss, since libgloss
2714# depends upon some newlib header files.
2715case "${noconfigdirs}" in
2716 *target-libgloss*) ;;
2717 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2718esac
2719
2720# Work in distributions that contain no compiler tools, like Autoconf.
2721tentative_cc=""
2722host_makefile_frag=/dev/null
2723if test -d ${srcdir}/config ; then
2724case "${host}" in
2725 m68k-hp-hpux*)
2726 # Avoid "too much defining" errors from HPUX compiler.
2727 tentative_cc="cc -Wp,-H256000"
2728 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2729 # If it's HP/UX ar, this should be harmless.
2730 RANLIB="ar ts"
2731 ;;
2732 m68k-apollo-sysv*)
2733 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2734 ;;
2735 m68k-apollo-bsd*)
2736 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2737 # chokes on bfd, the compiler won't let you assign integers to enums, and
2738 # other problems. Defining CC to gcc is a questionable way to say "don't use
2739 # the apollo compiler" (the preferred version of GCC could be called cc,
2740 # or whatever), but I'm not sure leaving CC as cc is any better...
2741 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2742 # Used to have BISON=yacc.
2743 tentative_cc=gcc
2744 ;;
2745 m88k-dg-dgux*)
2746 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2747 ;;
2748 m88k-harris-cxux*)
2749 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2750 tentative_cc="cc -Xa"
2751 host_makefile_frag="config/mh-cxux"
2752 ;;
2753 m88k-motorola-sysv*)
2754 ;;
2755 mips*-dec-ultrix*)
2756 tentative_cc="cc -Wf,-XNg1000"
2757 host_makefile_frag="config/mh-decstation"
2758 ;;
2759 mips*-nec-sysv4*)
2760 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2761 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2762 host_makefile_frag="config/mh-necv4"
2763 ;;
2764 mips*-sgi-irix4*)
2765 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2766 # environment. Also bump switch table size so that cp-parse will
2767 # compile. Bump string length limit so linker builds.
2768 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2769 ;;
2770 mips*-*-sysv4*)
2771 host_makefile_frag="config/mh-sysv4"
2772 ;;
2773 mips*-*-sysv*)
2774 # This is for a MIPS running RISC/os 4.52C.
2775
2776 # This is needed for GDB, but needs to be in the top-level make because
2777 # if a library is compiled with the bsd headers and gets linked with the
2778 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2779 # a different size).
2780 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2781 # known except to select the sysv environment. Could we use /proc instead?
2782 # These "sysv environments" and "bsd environments" often end up being a pain.
2783 #
2784 # This is not part of CFLAGS because perhaps not all C compilers have this
2785 # option.
2786 tentative_cc="cc -systype sysv"
2787 ;;
2788 i370-ibm-opened*)
2789 tentative_cc="c89"
2790 ;;
2791 i[3456789]86-*-sysv5*)
2792 host_makefile_frag="config/mh-sysv5"
2793 ;;
2794 i[3456789]86-*-dgux*)
2795 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2796 host_makefile_frag="config/mh-dgux386"
2797 ;;
2798 i[3456789]86-ncr-sysv4.3*)
2799 # The MetaWare compiler will generate a copyright message unless you
2800 # turn it off by adding the -Hnocopyr flag.
2801 tentative_cc="cc -Hnocopyr"
2802 ;;
2803 i[3456789]86-ncr-sysv4*)
2804 # for an NCR 3000 (i486/SVR4) system.
2805 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2806 # This compiler not only emits obnoxious copyright messages every time
2807 # you run it, but it chokes and dies on a whole bunch of GNU source
2808 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2809 tentative_cc="/usr/ccs/ATT/cc"
2810 host_makefile_frag="config/mh-ncr3000"
2811 ;;
2812 i[3456789]86-*-sco3.2v5*)
2813 ;;
2814 i[3456789]86-*-sco*)
2815 # The native C compiler botches some simple uses of const. Unfortunately,
2816 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2817 tentative_cc="cc -Dconst="
2818 host_makefile_frag="config/mh-sco"
2819 ;;
2820 i[3456789]86-*-udk*)
2821 host_makefile_frag="config/mh-sysv5"
2822 ;;
2823 i[3456789]86-*-solaris2*)
2824 host_makefile_frag="config/mh-sysv4"
2825 ;;
2826 i[3456789]86-*-msdosdjgpp*)
2827 host_makefile_frag="config/mh-djgpp"
2828 ;;
2829 *-cygwin*)
2830
2831echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2832echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2833echo a >cygwin-cat-check
2834if test `cat cygwin-cat-check` == a ; then
2835 rm cygwin-cat-check
2836 echo "$as_me:$LINENO: result: yes" >&5
2837echo "${ECHO_T}yes" >&6
2838else
2839 rm cygwin-cat-check
2840 echo "$as_me:$LINENO: result: no" >&5
2841echo "${ECHO_T}no" >&6
2842 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2843 Please either mount the build directory in binary mode or run the following
2844 commands before running any configure script:
2845set -o igncr
2846export SHELLOPTS
2847 " >&5
2848echo "$as_me: error: The cat command does not ignore carriage return characters.
2849 Please either mount the build directory in binary mode or run the following
2850 commands before running any configure script:
2851set -o igncr
2852export SHELLOPTS
2853 " >&2;}
2854 { (exit 1); exit 1; }; }
2855fi
2856
2857 host_makefile_frag="config/mh-cygwin"
2858 ;;
2859 *-mingw*)
2860 host_makefile_frag="config/mh-mingw"
2861 ;;
2862 *-interix*)
2863 host_makefile_frag="config/mh-interix"
2864 ;;
2865 vax-*-ultrix2*)
2866 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2867 tentative_cc=gcc
2868 ;;
2869 *-*-solaris2*)
2870 host_makefile_frag="config/mh-solaris"
2871 ;;
2872 m68k-sun-sunos*)
2873 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2874 # without overflowing the jump tables (-J says to use a 32 bit table)
2875 tentative_cc="cc -J"
2876 ;;
2877 hppa*-hp-hpux10*)
2878 tentative_cc="cc -Wp,-H256000"
2879 host_makefile_frag="config/mh-pa-hpux10"
2880 ;;
2881 hppa*-hp-hpux* | hppa*-*-hiux*)
2882 tentative_cc="cc -Wp,-H256000"
2883 host_makefile_frag="config/mh-pa"
2884 ;;
2885 hppa*-*)
2886 host_makefile_frag="config/mh-pa"
2887 ;;
2888 *-hp-hpux* | *-*-hiux*)
2889 tentative_cc="cc -Wp,-H256000"
2890 ;;
2891 rs6000-*-lynxos*)
2892 # /bin/cc is less than useful for our purposes. Always use GCC
2893 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2894 host_makefile_frag="config/mh-lynxrs6k"
2895 ;;
2896 powerpc-*-darwin*)
2897 host_makefile_frag="config/mh-ppc-darwin"
2898 ;;
2899 powerpc-*-aix*)
2900 host_makefile_frag="config/mh-ppc-aix"
2901 ;;
2902 rs6000-*-aix*)
2903 host_makefile_frag="config/mh-ppc-aix"
2904 ;;
2905 *-*-lynxos*)
2906 # /bin/cc is less than useful for our purposes. Always use GCC
2907 tentative_cc="/bin/gcc"
2908 ;;
2909 *-*-sysv4*)
2910 host_makefile_frag="config/mh-sysv4"
2911 ;;
2912 # This is placed last to prevent interfering with the cases above.
2913 i[3456789]86-*-*)
2914 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2915 host_makefile_frag="config/mh-x86omitfp"
2916 ;;
2917esac
2918fi
2919
2920# If we aren't going to be using gcc, see if we can extract a definition
2921# of CC from the fragment.
2922# Actually, use the 'pre-extracted' version above.
2923if test -z "${CC}" && test "${build}" = "${host}" ; then
2924 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2925 found=
2926 for dir in $PATH; do
2927 test -z "$dir" && dir=.
2928 if test -f $dir/gcc; then
2929 found=yes
2930 break
2931 fi
2932 done
2933 IFS="$save_ifs"
2934 if test -z "${found}" && test -n "${tentative_cc}" ; then
2935 CC=$tentative_cc
2936 fi
2937fi
2938
2939if test "${build}" != "${host}" ; then
2940 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2941 AS_FOR_BUILD=${AS_FOR_BUILD-as}
2942 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2943 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2944 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2945 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2946 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2947 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2948 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2949 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2950 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2951 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2952else
2953 AR_FOR_BUILD="\$(AR)"
2954 AS_FOR_BUILD="\$(AS)"
2955 CC_FOR_BUILD="\$(CC)"
2956 CXX_FOR_BUILD="\$(CXX)"
2957 GCJ_FOR_BUILD="\$(GCJ)"
2958 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2959 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2960 LD_FOR_BUILD="\$(LD)"
2961 NM_FOR_BUILD="\$(NM)"
2962 RANLIB_FOR_BUILD="\$(RANLIB)"
2963 WINDRES_FOR_BUILD="\$(WINDRES)"
2964 WINDMC_FOR_BUILD="\$(WINDMC)"
2965fi
2966
2967ac_ext=c
2968ac_cpp='$CPP $CPPFLAGS'
2969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971ac_compiler_gnu=$ac_cv_c_compiler_gnu
2972if test -n "$ac_tool_prefix"; then
2973 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2974set dummy ${ac_tool_prefix}gcc; ac_word=$2
2975echo "$as_me:$LINENO: checking for $ac_word" >&5
2976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2977if test "${ac_cv_prog_CC+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979else
2980 if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2982else
2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994done
2995done
2996
2997fi
2998fi
2999CC=$ac_cv_prog_CC
3000if test -n "$CC"; then
3001 echo "$as_me:$LINENO: result: $CC" >&5
3002echo "${ECHO_T}$CC" >&6
3003else
3004 echo "$as_me:$LINENO: result: no" >&5
3005echo "${ECHO_T}no" >&6
3006fi
3007
3008fi
3009if test -z "$ac_cv_prog_CC"; then
3010 ac_ct_CC=$CC
3011 # Extract the first word of "gcc", so it can be a program name with args.
3012set dummy gcc; ac_word=$2
3013echo "$as_me:$LINENO: checking for $ac_word" >&5
3014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3015if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017else
3018 if test -n "$ac_ct_CC"; then
3019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3020else
3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022for as_dir in $PATH
3023do
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3028 ac_cv_prog_ac_ct_CC="gcc"
3029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3031 fi
3032done
3033done
3034
3035fi
3036fi
3037ac_ct_CC=$ac_cv_prog_ac_ct_CC
3038if test -n "$ac_ct_CC"; then
3039 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3040echo "${ECHO_T}$ac_ct_CC" >&6
3041else
3042 echo "$as_me:$LINENO: result: no" >&5
3043echo "${ECHO_T}no" >&6
3044fi
3045
3046 CC=$ac_ct_CC
3047else
3048 CC="$ac_cv_prog_CC"
3049fi
3050
3051if test -z "$CC"; then
3052 if test -n "$ac_tool_prefix"; then
3053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3054set dummy ${ac_tool_prefix}cc; ac_word=$2
3055echo "$as_me:$LINENO: checking for $ac_word" >&5
3056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3057if test "${ac_cv_prog_CC+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3059else
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
3062else
3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH
3065do
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3070 ac_cv_prog_CC="${ac_tool_prefix}cc"
3071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3073 fi
3074done
3075done
3076
3077fi
3078fi
3079CC=$ac_cv_prog_CC
3080if test -n "$CC"; then
3081 echo "$as_me:$LINENO: result: $CC" >&5
3082echo "${ECHO_T}$CC" >&6
3083else
3084 echo "$as_me:$LINENO: result: no" >&5
3085echo "${ECHO_T}no" >&6
3086fi
3087
3088fi
3089if test -z "$ac_cv_prog_CC"; then
3090 ac_ct_CC=$CC
3091 # Extract the first word of "cc", so it can be a program name with args.
3092set dummy cc; ac_word=$2
3093echo "$as_me:$LINENO: checking for $ac_word" >&5
3094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3095if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3097else
3098 if test -n "$ac_ct_CC"; then
3099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3100else
3101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102for as_dir in $PATH
3103do
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3108 ac_cv_prog_ac_ct_CC="cc"
3109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 break 2
3111 fi
3112done
3113done
3114
3115fi
3116fi
3117ac_ct_CC=$ac_cv_prog_ac_ct_CC
3118if test -n "$ac_ct_CC"; then
3119 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3120echo "${ECHO_T}$ac_ct_CC" >&6
3121else
3122 echo "$as_me:$LINENO: result: no" >&5
3123echo "${ECHO_T}no" >&6
3124fi
3125
3126 CC=$ac_ct_CC
3127else
3128 CC="$ac_cv_prog_CC"
3129fi
3130
3131fi
3132if test -z "$CC"; then
3133 # Extract the first word of "cc", so it can be a program name with args.
3134set dummy cc; ac_word=$2
3135echo "$as_me:$LINENO: checking for $ac_word" >&5
3136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3137if test "${ac_cv_prog_CC+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139else
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3142else
3143 ac_prog_rejected=no
3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH
3146do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3152 ac_prog_rejected=yes
3153 continue
3154 fi
3155 ac_cv_prog_CC="cc"
3156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159done
3160done
3161
3162if test $ac_prog_rejected = yes; then
3163 # We found a bogon in the path, so make sure we never use it.
3164 set dummy $ac_cv_prog_CC
3165 shift
3166 if test $# != 0; then
3167 # We chose a different compiler from the bogus one.
3168 # However, it has the same basename, so the bogon will be chosen
3169 # first if we set CC to just the basename; use the full file name.
3170 shift
3171 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3172 fi
3173fi
3174fi
3175fi
3176CC=$ac_cv_prog_CC
3177if test -n "$CC"; then
3178 echo "$as_me:$LINENO: result: $CC" >&5
3179echo "${ECHO_T}$CC" >&6
3180else
3181 echo "$as_me:$LINENO: result: no" >&5
3182echo "${ECHO_T}no" >&6
3183fi
3184
3185fi
3186if test -z "$CC"; then
3187 if test -n "$ac_tool_prefix"; then
3188 for ac_prog in cl
3189 do
3190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3191set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3192echo "$as_me:$LINENO: checking for $ac_word" >&5
3193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3194if test "${ac_cv_prog_CC+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196else
3197 if test -n "$CC"; then
3198 ac_cv_prog_CC="$CC" # Let the user override the test.
3199else
3200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201for as_dir in $PATH
3202do
3203 IFS=$as_save_IFS
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3207 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 break 2
3210 fi
3211done
3212done
3213
3214fi
3215fi
3216CC=$ac_cv_prog_CC
3217if test -n "$CC"; then
3218 echo "$as_me:$LINENO: result: $CC" >&5
3219echo "${ECHO_T}$CC" >&6
3220else
3221 echo "$as_me:$LINENO: result: no" >&5
3222echo "${ECHO_T}no" >&6
3223fi
3224
3225 test -n "$CC" && break
3226 done
3227fi
3228if test -z "$CC"; then
3229 ac_ct_CC=$CC
3230 for ac_prog in cl
3231do
3232 # Extract the first word of "$ac_prog", so it can be a program name with args.
3233set dummy $ac_prog; ac_word=$2
3234echo "$as_me:$LINENO: checking for $ac_word" >&5
3235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3236if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3238else
3239 if test -n "$ac_ct_CC"; then
3240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3241else
3242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243for as_dir in $PATH
3244do
3245 IFS=$as_save_IFS
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249 ac_cv_prog_ac_ct_CC="$ac_prog"
3250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 break 2
3252 fi
3253done
3254done
3255
3256fi
3257fi
3258ac_ct_CC=$ac_cv_prog_ac_ct_CC
3259if test -n "$ac_ct_CC"; then
3260 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3261echo "${ECHO_T}$ac_ct_CC" >&6
3262else
3263 echo "$as_me:$LINENO: result: no" >&5
3264echo "${ECHO_T}no" >&6
3265fi
3266
3267 test -n "$ac_ct_CC" && break
3268done
3269
3270 CC=$ac_ct_CC
3271fi
3272
3273fi
3274
3275
3276test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3277echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3279See \`config.log' for more details." >&5
3280echo "$as_me: error: no acceptable C compiler found in \$PATH
3281See \`config.log' for more details." >&2;}
3282 { (exit 1); exit 1; }; }; }
3283
3284# Provide some information about the compiler.
3285echo "$as_me:$LINENO:" \
3286 "checking for C compiler version" >&5
3287ac_compiler=`set X $ac_compile; echo $2`
3288{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3289 (eval $ac_compiler --version </dev/null >&5) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }
3293{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3294 (eval $ac_compiler -v </dev/null >&5) 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }
3298{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3299 (eval $ac_compiler -V </dev/null >&5) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }
3303
3304cat >conftest.$ac_ext <<_ACEOF
3305/* confdefs.h. */
3306_ACEOF
3307cat confdefs.h >>conftest.$ac_ext
3308cat >>conftest.$ac_ext <<_ACEOF
3309/* end confdefs.h. */
3310
3311int
3312main ()
3313{
3314
3315 ;
3316 return 0;
3317}
3318_ACEOF
3319ac_clean_files_save=$ac_clean_files
3320ac_clean_files="$ac_clean_files a.out a.exe b.out"
3321# Try to create an executable without -o first, disregard a.out.
3322# It will help us diagnose broken compilers, and finding out an intuition
3323# of exeext.
3324echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3325echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3326ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3327if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3328 (eval $ac_link_default) 2>&5
3329 ac_status=$?
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; then
3332 # Find the output, starting from the most likely. This scheme is
3333# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3334# resort.
3335
3336# Be careful to initialize this variable, since it used to be cached.
3337# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3338ac_cv_exeext=
3339# b.out is created by i960 compilers.
3340for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3341do
3342 test -f "$ac_file" || continue
3343 case $ac_file in
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3345 ;;
3346 conftest.$ac_ext )
3347 # This is the source file.
3348 ;;
3349 [ab].out )
3350 # We found the default executable, but exeext='' is most
3351 # certainly right.
3352 break;;
3353 *.* )
3354 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3355 # FIXME: I believe we export ac_cv_exeext for Libtool,
3356 # but it would be cool to find out if it's true. Does anybody
3357 # maintain Libtool? --akim.
3358 export ac_cv_exeext
3359 break;;
3360 * )
3361 break;;
3362 esac
3363done
3364else
3365 echo "$as_me: failed program was:" >&5
3366sed 's/^/| /' conftest.$ac_ext >&5
3367
3368{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3369echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3371See \`config.log' for more details." >&5
3372echo "$as_me: error: C compiler cannot create executables
3373See \`config.log' for more details." >&2;}
3374 { (exit 77); exit 77; }; }; }
3375fi
3376
3377ac_exeext=$ac_cv_exeext
3378echo "$as_me:$LINENO: result: $ac_file" >&5
3379echo "${ECHO_T}$ac_file" >&6
3380
3381# Check the compiler produces executables we can run. If not, either
3382# the compiler is broken, or we cross compile.
3383echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3384echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3385# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3386# If not cross compiling, check that we can run a simple program.
3387if test "$cross_compiling" != yes; then
3388 if { ac_try='./$ac_file'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 cross_compiling=no
3395 else
3396 if test "$cross_compiling" = maybe; then
3397 cross_compiling=yes
3398 else
3399 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3400echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3402If you meant to cross compile, use \`--host'.
3403See \`config.log' for more details." >&5
3404echo "$as_me: error: cannot run C compiled programs.
3405If you meant to cross compile, use \`--host'.
3406See \`config.log' for more details." >&2;}
3407 { (exit 1); exit 1; }; }; }
3408 fi
3409 fi
3410fi
3411echo "$as_me:$LINENO: result: yes" >&5
3412echo "${ECHO_T}yes" >&6
3413
3414rm -f a.out a.exe conftest$ac_cv_exeext b.out
3415ac_clean_files=$ac_clean_files_save
3416# Check the compiler produces executables we can run. If not, either
3417# the compiler is broken, or we cross compile.
3418echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3419echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3420echo "$as_me:$LINENO: result: $cross_compiling" >&5
3421echo "${ECHO_T}$cross_compiling" >&6
3422
3423echo "$as_me:$LINENO: checking for suffix of executables" >&5
3424echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3426 (eval $ac_link) 2>&5
3427 ac_status=$?
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); }; then
3430 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3431# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3432# work properly (i.e., refer to `conftest.exe'), while it won't with
3433# `rm'.
3434for ac_file in conftest.exe conftest conftest.*; do
3435 test -f "$ac_file" || continue
3436 case $ac_file in
3437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3438 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3439 export ac_cv_exeext
3440 break;;
3441 * ) break;;
3442 esac
3443done
3444else
3445 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3446echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3448See \`config.log' for more details." >&5
3449echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3450See \`config.log' for more details." >&2;}
3451 { (exit 1); exit 1; }; }; }
3452fi
3453
3454rm -f conftest$ac_cv_exeext
3455echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3456echo "${ECHO_T}$ac_cv_exeext" >&6
3457
3458rm -f conftest.$ac_ext
3459EXEEXT=$ac_cv_exeext
3460ac_exeext=$EXEEXT
3461echo "$as_me:$LINENO: checking for suffix of object files" >&5
3462echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3463if test "${ac_cv_objext+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3465else
3466 cat >conftest.$ac_ext <<_ACEOF
3467/* confdefs.h. */
3468_ACEOF
3469cat confdefs.h >>conftest.$ac_ext
3470cat >>conftest.$ac_ext <<_ACEOF
3471/* end confdefs.h. */
3472
3473int
3474main ()
3475{
3476
3477 ;
3478 return 0;
3479}
3480_ACEOF
3481rm -f conftest.o conftest.obj
3482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3483 (eval $ac_compile) 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; then
3487 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3488 case $ac_file in
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3490 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3491 break;;
3492 esac
3493done
3494else
3495 echo "$as_me: failed program was:" >&5
3496sed 's/^/| /' conftest.$ac_ext >&5
3497
3498{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3499echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3501See \`config.log' for more details." >&5
3502echo "$as_me: error: cannot compute suffix of object files: cannot compile
3503See \`config.log' for more details." >&2;}
3504 { (exit 1); exit 1; }; }; }
3505fi
3506
3507rm -f conftest.$ac_cv_objext conftest.$ac_ext
3508fi
3509echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3510echo "${ECHO_T}$ac_cv_objext" >&6
3511OBJEXT=$ac_cv_objext
3512ac_objext=$OBJEXT
3513echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3514echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3515if test "${ac_cv_c_compiler_gnu+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3517else
3518 cat >conftest.$ac_ext <<_ACEOF
3519/* confdefs.h. */
3520_ACEOF
3521cat confdefs.h >>conftest.$ac_ext
3522cat >>conftest.$ac_ext <<_ACEOF
3523/* end confdefs.h. */
3524
3525int
3526main ()
3527{
3528#ifndef __GNUC__
3529 choke me
3530#endif
3531
3532 ;
3533 return 0;
3534}
3535_ACEOF
3536rm -f conftest.$ac_objext
3537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538 (eval $ac_compile) 2>conftest.er1
3539 ac_status=$?
3540 grep -v '^ *+' conftest.er1 >conftest.err
3541 rm -f conftest.er1
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } &&
3545 { ac_try='test -z "$ac_c_werror_flag"
3546 || test ! -s conftest.err'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; } &&
3552 { ac_try='test -s conftest.$ac_objext'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 (eval $ac_try) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3558 ac_compiler_gnu=yes
3559else
3560 echo "$as_me: failed program was:" >&5
3561sed 's/^/| /' conftest.$ac_ext >&5
3562
3563ac_compiler_gnu=no
3564fi
3565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566ac_cv_c_compiler_gnu=$ac_compiler_gnu
3567
3568fi
3569echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3570echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3571GCC=`test $ac_compiler_gnu = yes && echo yes`
3572ac_test_CFLAGS=${CFLAGS+set}
3573ac_save_CFLAGS=$CFLAGS
3574CFLAGS="-g"
3575echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3576echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3577if test "${ac_cv_prog_cc_g+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579else
3580 cat >conftest.$ac_ext <<_ACEOF
3581/* confdefs.h. */
3582_ACEOF
3583cat confdefs.h >>conftest.$ac_ext
3584cat >>conftest.$ac_ext <<_ACEOF
3585/* end confdefs.h. */
3586
3587int
3588main ()
3589{
3590
3591 ;
3592 return 0;
3593}
3594_ACEOF
3595rm -f conftest.$ac_objext
3596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597 (eval $ac_compile) 2>conftest.er1
3598 ac_status=$?
3599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
3604 { ac_try='test -z "$ac_c_werror_flag"
3605 || test ! -s conftest.err'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 (eval $ac_try) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3617 ac_cv_prog_cc_g=yes
3618else
3619 echo "$as_me: failed program was:" >&5
3620sed 's/^/| /' conftest.$ac_ext >&5
3621
3622ac_cv_prog_cc_g=no
3623fi
3624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3625fi
3626echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3627echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3628if test "$ac_test_CFLAGS" = set; then
3629 CFLAGS=$ac_save_CFLAGS
3630elif test $ac_cv_prog_cc_g = yes; then
3631 if test "$GCC" = yes; then
3632 CFLAGS="-g -O2"
3633 else
3634 CFLAGS="-g"
3635 fi
3636else
3637 if test "$GCC" = yes; then
3638 CFLAGS="-O2"
3639 else
3640 CFLAGS=
3641 fi
3642fi
3643echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3644echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3645if test "${ac_cv_prog_cc_stdc+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647else
3648 ac_cv_prog_cc_stdc=no
3649ac_save_CC=$CC
3650cat >conftest.$ac_ext <<_ACEOF
3651/* confdefs.h. */
3652_ACEOF
3653cat confdefs.h >>conftest.$ac_ext
3654cat >>conftest.$ac_ext <<_ACEOF
3655/* end confdefs.h. */
3656#include <stdarg.h>
3657#include <stdio.h>
3658#include <sys/types.h>
3659#include <sys/stat.h>
3660/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3661struct buf { int x; };
3662FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663static char *e (p, i)
3664 char **p;
3665 int i;
3666{
3667 return p[i];
3668}
3669static char *f (char * (*g) (char **, int), char **p, ...)
3670{
3671 char *s;
3672 va_list v;
3673 va_start (v,p);
3674 s = g (p, va_arg (v,int));
3675 va_end (v);
3676 return s;
3677}
3678
3679/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3680 function prototypes and stuff, but not '\xHH' hex character constants.
3681 These don't provoke an error unfortunately, instead are silently treated
3682 as 'x'. The following induces an error, until -std1 is added to get
3683 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3684 array size at least. It's necessary to write '\x00'==0 to get something
3685 that's true only with -std1. */
3686int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3687
3688int test (int i, double x);
3689struct s1 {int (*f) (int a);};
3690struct s2 {int (*f) (double a);};
3691int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3692int argc;
3693char **argv;
3694int
3695main ()
3696{
3697return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3698 ;
3699 return 0;
3700}
3701_ACEOF
3702# Don't try gcc -ansi; that turns off useful extensions and
3703# breaks some systems' header files.
3704# AIX -qlanglvl=ansi
3705# Ultrix and OSF/1 -std1
3706# HP-UX 10.20 and later -Ae
3707# HP-UX older versions -Aa -D_HPUX_SOURCE
3708# SVR4 -Xc -D__EXTENSIONS__
3709for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3710do
3711 CC="$ac_save_CC $ac_arg"
3712 rm -f conftest.$ac_objext
3713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714 (eval $ac_compile) 2>conftest.er1
3715 ac_status=$?
3716 grep -v '^ *+' conftest.er1 >conftest.err
3717 rm -f conftest.er1
3718 cat conftest.err >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } &&
3721 { ac_try='test -z "$ac_c_werror_flag"
3722 || test ! -s conftest.err'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 (eval $ac_try) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; } &&
3728 { ac_try='test -s conftest.$ac_objext'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730 (eval $ac_try) 2>&5
3731 ac_status=$?
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 ac_cv_prog_cc_stdc=$ac_arg
3735break
3736else
3737 echo "$as_me: failed program was:" >&5
3738sed 's/^/| /' conftest.$ac_ext >&5
3739
3740fi
3741rm -f conftest.err conftest.$ac_objext
3742done
3743rm -f conftest.$ac_ext conftest.$ac_objext
3744CC=$ac_save_CC
3745
3746fi
3747
3748case "x$ac_cv_prog_cc_stdc" in
3749 x|xno)
3750 echo "$as_me:$LINENO: result: none needed" >&5
3751echo "${ECHO_T}none needed" >&6 ;;
3752 *)
3753 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3754echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3755 CC="$CC $ac_cv_prog_cc_stdc" ;;
3756esac
3757
3758# Some people use a C++ compiler to compile C. Since we use `exit',
3759# in C++ we need to declare it. In case someone uses the same compiler
3760# for both compiling C and C++ we need to have the C++ compiler decide
3761# the declaration of exit, since it's the most demanding environment.
3762cat >conftest.$ac_ext <<_ACEOF
3763#ifndef __cplusplus
3764 choke me
3765#endif
3766_ACEOF
3767rm -f conftest.$ac_objext
3768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>conftest.er1
3770 ac_status=$?
3771 grep -v '^ *+' conftest.er1 >conftest.err
3772 rm -f conftest.er1
3773 cat conftest.err >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } &&
3776 { ac_try='test -z "$ac_c_werror_flag"
3777 || test ! -s conftest.err'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 (eval $ac_try) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; } &&
3783 { ac_try='test -s conftest.$ac_objext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 (eval $ac_try) 2>&5
3786 ac_status=$?
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 for ac_declaration in \
3790 '' \
3791 'extern "C" void std::exit (int) throw (); using std::exit;' \
3792 'extern "C" void std::exit (int); using std::exit;' \
3793 'extern "C" void exit (int) throw ();' \
3794 'extern "C" void exit (int);' \
3795 'void exit (int);'
3796do
3797 cat >conftest.$ac_ext <<_ACEOF
3798/* confdefs.h. */
3799_ACEOF
3800cat confdefs.h >>conftest.$ac_ext
3801cat >>conftest.$ac_ext <<_ACEOF
3802/* end confdefs.h. */
3803$ac_declaration
3804#include <stdlib.h>
3805int
3806main ()
3807{
3808exit (42);
3809 ;
3810 return 0;
3811}
3812_ACEOF
3813rm -f conftest.$ac_objext
3814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3815 (eval $ac_compile) 2>conftest.er1
3816 ac_status=$?
3817 grep -v '^ *+' conftest.er1 >conftest.err
3818 rm -f conftest.er1
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } &&
3822 { ac_try='test -z "$ac_c_werror_flag"
3823 || test ! -s conftest.err'
3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825 (eval $ac_try) 2>&5
3826 ac_status=$?
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; } &&
3829 { ac_try='test -s conftest.$ac_objext'
3830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831 (eval $ac_try) 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; }; then
3835 :
3836else
3837 echo "$as_me: failed program was:" >&5
3838sed 's/^/| /' conftest.$ac_ext >&5
3839
3840continue
3841fi
3842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3843 cat >conftest.$ac_ext <<_ACEOF
3844/* confdefs.h. */
3845_ACEOF
3846cat confdefs.h >>conftest.$ac_ext
3847cat >>conftest.$ac_ext <<_ACEOF
3848/* end confdefs.h. */
3849$ac_declaration
3850int
3851main ()
3852{
3853exit (42);
3854 ;
3855 return 0;
3856}
3857_ACEOF
3858rm -f conftest.$ac_objext
3859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860 (eval $ac_compile) 2>conftest.er1
3861 ac_status=$?
3862 grep -v '^ *+' conftest.er1 >conftest.err
3863 rm -f conftest.er1
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
3867 { ac_try='test -z "$ac_c_werror_flag"
3868 || test ! -s conftest.err'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 (eval $ac_try) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; } &&
3874 { ac_try='test -s conftest.$ac_objext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 (eval $ac_try) 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 break
3881else
3882 echo "$as_me: failed program was:" >&5
3883sed 's/^/| /' conftest.$ac_ext >&5
3884
3885fi
3886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3887done
3888rm -f conftest*
3889if test -n "$ac_declaration"; then
3890 echo '#ifdef __cplusplus' >>confdefs.h
3891 echo $ac_declaration >>confdefs.h
3892 echo '#endif' >>confdefs.h
3893fi
3894
3895else
3896 echo "$as_me: failed program was:" >&5
3897sed 's/^/| /' conftest.$ac_ext >&5
3898
3899fi
3900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3901ac_ext=c
3902ac_cpp='$CPP $CPPFLAGS'
3903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906
3907ac_ext=cc
3908ac_cpp='$CXXCPP $CPPFLAGS'
3909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3912if test -n "$ac_tool_prefix"; then
3913 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3914 do
3915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3916set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3917echo "$as_me:$LINENO: checking for $ac_word" >&5
3918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919if test "${ac_cv_prog_CXX+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921else
3922 if test -n "$CXX"; then
3923 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3924else
3925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926for as_dir in $PATH
3927do
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 break 2
3935 fi
3936done
3937done
3938
3939fi
3940fi
3941CXX=$ac_cv_prog_CXX
3942if test -n "$CXX"; then
3943 echo "$as_me:$LINENO: result: $CXX" >&5
3944echo "${ECHO_T}$CXX" >&6
3945else
3946 echo "$as_me:$LINENO: result: no" >&5
3947echo "${ECHO_T}no" >&6
3948fi
3949
3950 test -n "$CXX" && break
3951 done
3952fi
3953if test -z "$CXX"; then
3954 ac_ct_CXX=$CXX
3955 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3956do
3957 # Extract the first word of "$ac_prog", so it can be a program name with args.
3958set dummy $ac_prog; ac_word=$2
3959echo "$as_me:$LINENO: checking for $ac_word" >&5
3960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963else
3964 if test -n "$ac_ct_CXX"; then
3965 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3966else
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH
3969do
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_CXX="$ac_prog"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 break 2
3977 fi
3978done
3979done
3980
3981fi
3982fi
3983ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3984if test -n "$ac_ct_CXX"; then
3985 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3986echo "${ECHO_T}$ac_ct_CXX" >&6
3987else
3988 echo "$as_me:$LINENO: result: no" >&5
3989echo "${ECHO_T}no" >&6
3990fi
3991
3992 test -n "$ac_ct_CXX" && break
3993done
3994test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3995
3996 CXX=$ac_ct_CXX
3997fi
3998
3999
4000# Provide some information about the compiler.
4001echo "$as_me:$LINENO:" \
4002 "checking for C++ compiler version" >&5
4003ac_compiler=`set X $ac_compile; echo $2`
4004{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4005 (eval $ac_compiler --version </dev/null >&5) 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }
4009{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4010 (eval $ac_compiler -v </dev/null >&5) 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }
4014{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4015 (eval $ac_compiler -V </dev/null >&5) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }
4019
4020echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4021echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4022if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024else
4025 cat >conftest.$ac_ext <<_ACEOF
4026/* confdefs.h. */
4027_ACEOF
4028cat confdefs.h >>conftest.$ac_ext
4029cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h. */
4031
4032int
4033main ()
4034{
4035#ifndef __GNUC__
4036 choke me
4037#endif
4038
4039 ;
4040 return 0;
4041}
4042_ACEOF
4043rm -f conftest.$ac_objext
4044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045 (eval $ac_compile) 2>conftest.er1
4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
4052 { ac_try='test -z "$ac_cxx_werror_flag"
4053 || test ! -s conftest.err'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 (eval $ac_try) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try='test -s conftest.$ac_objext'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 (eval $ac_try) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 ac_compiler_gnu=yes
4066else
4067 echo "$as_me: failed program was:" >&5
4068sed 's/^/| /' conftest.$ac_ext >&5
4069
4070ac_compiler_gnu=no
4071fi
4072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4074
4075fi
4076echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4077echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4078GXX=`test $ac_compiler_gnu = yes && echo yes`
4079ac_test_CXXFLAGS=${CXXFLAGS+set}
4080ac_save_CXXFLAGS=$CXXFLAGS
4081CXXFLAGS="-g"
4082echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4083echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4084if test "${ac_cv_prog_cxx_g+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
4087 cat >conftest.$ac_ext <<_ACEOF
4088/* confdefs.h. */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
4092/* end confdefs.h. */
4093
4094int
4095main ()
4096{
4097
4098 ;
4099 return 0;
4100}
4101_ACEOF
4102rm -f conftest.$ac_objext
4103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>conftest.er1
4105 ac_status=$?
4106 grep -v '^ *+' conftest.er1 >conftest.err
4107 rm -f conftest.er1
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_cxx_werror_flag"
4112 || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 (eval $ac_try) 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 (eval $ac_try) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 ac_cv_prog_cxx_g=yes
4125else
4126 echo "$as_me: failed program was:" >&5
4127sed 's/^/| /' conftest.$ac_ext >&5
4128
4129ac_cv_prog_cxx_g=no
4130fi
4131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132fi
4133echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4134echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4135if test "$ac_test_CXXFLAGS" = set; then
4136 CXXFLAGS=$ac_save_CXXFLAGS
4137elif test $ac_cv_prog_cxx_g = yes; then
4138 if test "$GXX" = yes; then
4139 CXXFLAGS="-g -O2"
4140 else
4141 CXXFLAGS="-g"
4142 fi
4143else
4144 if test "$GXX" = yes; then
4145 CXXFLAGS="-O2"
4146 else
4147 CXXFLAGS=
4148 fi
4149fi
4150for ac_declaration in \
4151 '' \
4152 'extern "C" void std::exit (int) throw (); using std::exit;' \
4153 'extern "C" void std::exit (int); using std::exit;' \
4154 'extern "C" void exit (int) throw ();' \
4155 'extern "C" void exit (int);' \
4156 'void exit (int);'
4157do
4158 cat >conftest.$ac_ext <<_ACEOF
4159/* confdefs.h. */
4160_ACEOF
4161cat confdefs.h >>conftest.$ac_ext
4162cat >>conftest.$ac_ext <<_ACEOF
4163/* end confdefs.h. */
4164$ac_declaration
4165#include <stdlib.h>
4166int
4167main ()
4168{
4169exit (42);
4170 ;
4171 return 0;
4172}
4173_ACEOF
4174rm -f conftest.$ac_objext
4175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>conftest.er1
4177 ac_status=$?
4178 grep -v '^ *+' conftest.er1 >conftest.err
4179 rm -f conftest.er1
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_cxx_werror_flag"
4184 || test ! -s conftest.err'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 :
4197else
4198 echo "$as_me: failed program was:" >&5
4199sed 's/^/| /' conftest.$ac_ext >&5
4200
4201continue
4202fi
4203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204 cat >conftest.$ac_ext <<_ACEOF
4205/* confdefs.h. */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h. */
4210$ac_declaration
4211int
4212main ()
4213{
4214exit (42);
4215 ;
4216 return 0;
4217}
4218_ACEOF
4219rm -f conftest.$ac_objext
4220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221 (eval $ac_compile) 2>conftest.er1
4222 ac_status=$?
4223 grep -v '^ *+' conftest.er1 >conftest.err
4224 rm -f conftest.er1
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_cxx_werror_flag"
4229 || test ! -s conftest.err'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 (eval $ac_try) 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; } &&
4235 { ac_try='test -s conftest.$ac_objext'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 (eval $ac_try) 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4241 break
4242else
4243 echo "$as_me: failed program was:" >&5
4244sed 's/^/| /' conftest.$ac_ext >&5
4245
4246fi
4247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4248done
4249rm -f conftest*
4250if test -n "$ac_declaration"; then
4251 echo '#ifdef __cplusplus' >>confdefs.h
4252 echo $ac_declaration >>confdefs.h
4253 echo '#endif' >>confdefs.h
4254fi
4255
4256ac_ext=c
4257ac_cpp='$CPP $CPPFLAGS'
4258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262
4263# We must set the default linker to the linker used by gcc for the correct
4264# operation of libtool. If LD is not defined and we are using gcc, try to
4265# set the LD default to the ld used by gcc.
4266if test -z "$LD"; then
4267 if test "$GCC" = yes; then
4268 case $build in
4269 *-*-mingw*)
4270 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4271 *)
4272 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4273 esac
4274 case $gcc_prog_ld in
4275 # Accept absolute paths.
4276 [\\/]* | [A-Za-z]:[\\/]*)
4277 LD="$gcc_prog_ld" ;;
4278 esac
4279 fi
4280fi
4281
4282
4283
4284
4285if test -n "$ac_tool_prefix"; then
4286 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4287set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4288echo "$as_me:$LINENO: checking for $ac_word" >&5
4289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4290if test "${ac_cv_prog_GNATBIND+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292else
4293 if test -n "$GNATBIND"; then
4294 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4295else
4296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297for as_dir in $PATH
4298do
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4303 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 break 2
4306 fi
4307done
4308done
4309
4310fi
4311fi
4312GNATBIND=$ac_cv_prog_GNATBIND
4313if test -n "$GNATBIND"; then
4314 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4315echo "${ECHO_T}$GNATBIND" >&6
4316else
4317 echo "$as_me:$LINENO: result: no" >&5
4318echo "${ECHO_T}no" >&6
4319fi
4320
4321fi
4322if test -z "$ac_cv_prog_GNATBIND"; then
4323 ac_ct_GNATBIND=$GNATBIND
4324 # Extract the first word of "gnatbind", so it can be a program name with args.
4325set dummy gnatbind; ac_word=$2
4326echo "$as_me:$LINENO: checking for $ac_word" >&5
4327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4328if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4330else
4331 if test -n "$ac_ct_GNATBIND"; then
4332 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4333else
4334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335for as_dir in $PATH
4336do
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4341 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4344 fi
4345done
4346done
4347
4348 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
4349fi
4350fi
4351ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4352if test -n "$ac_ct_GNATBIND"; then
4353 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4354echo "${ECHO_T}$ac_ct_GNATBIND" >&6
4355else
4356 echo "$as_me:$LINENO: result: no" >&5
4357echo "${ECHO_T}no" >&6
4358fi
4359
4360 GNATBIND=$ac_ct_GNATBIND
4361else
4362 GNATBIND="$ac_cv_prog_GNATBIND"
4363fi
4364
4365if test -n "$ac_tool_prefix"; then
4366 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4367set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4368echo "$as_me:$LINENO: checking for $ac_word" >&5
4369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4370if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4372else
4373 if test -n "$GNATMAKE"; then
4374 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4375else
4376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377for as_dir in $PATH
4378do
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4383 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4386 fi
4387done
4388done
4389
4390fi
4391fi
4392GNATMAKE=$ac_cv_prog_GNATMAKE
4393if test -n "$GNATMAKE"; then
4394 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4395echo "${ECHO_T}$GNATMAKE" >&6
4396else
4397 echo "$as_me:$LINENO: result: no" >&5
4398echo "${ECHO_T}no" >&6
4399fi
4400
4401fi
4402if test -z "$ac_cv_prog_GNATMAKE"; then
4403 ac_ct_GNATMAKE=$GNATMAKE
4404 # Extract the first word of "gnatmake", so it can be a program name with args.
4405set dummy gnatmake; ac_word=$2
4406echo "$as_me:$LINENO: checking for $ac_word" >&5
4407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4408if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4410else
4411 if test -n "$ac_ct_GNATMAKE"; then
4412 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4413else
4414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH
4416do
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4421 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
4424 fi
4425done
4426done
4427
4428 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4429fi
4430fi
4431ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4432if test -n "$ac_ct_GNATMAKE"; then
4433 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4434echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4435else
4436 echo "$as_me:$LINENO: result: no" >&5
4437echo "${ECHO_T}no" >&6
4438fi
4439
4440 GNATMAKE=$ac_ct_GNATMAKE
4441else
4442 GNATMAKE="$ac_cv_prog_GNATMAKE"
4443fi
4444
4445echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4446echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4447if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4449else
4450 cat >conftest.adb <<EOF
4451procedure conftest is begin null; end conftest;
4452EOF
4453acx_cv_cc_gcc_supports_ada=no
4454# There is a bug in old released versions of GCC which causes the
4455# driver to exit successfully when the appropriate language module
4456# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4457# Therefore we must check for the error message as well as an
4458# unsuccessful exit.
4459# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4460# given a .adb file, but produce no object file. So we must check
4461# if an object file was really produced to guard against this.
4462errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4463if test x"$errors" = x && test -f conftest.$ac_objext; then
4464 acx_cv_cc_gcc_supports_ada=yes
4465fi
4466rm -f conftest.*
4467fi
4468echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4469echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4470
4471if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4472 have_gnat=yes
4473else
4474 have_gnat=no
4475fi
4476
4477echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4478echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4479if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4481else
4482 echo abfoo >t1
4483 echo cdfoo >t2
4484 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4485 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4486 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4487 :
4488 else
4489 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4490 fi
4491 fi
4492 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4493 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4494 :
4495 else
4496 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4497 fi
4498 fi
4499 rm t1 t2
4500
4501fi
4502echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4503echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4504do_compare="$gcc_cv_prog_cmp_skip"
4505
4506
4507
4508# Check for GMP and MPFR
4509gmplibs="-lmpfr -lgmp"
4510gmpinc=
4511have_gmp=no
4512
4513# Specify a location for mpfr
4514# check for this first so it ends up on the link line before gmp.
4515
4516# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4517if test "${with_mpfr_dir+set}" = set; then
4518 withval="$with_mpfr_dir"
4519 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4520Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4521echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4522Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4523 { (exit 1); exit 1; }; }
4524fi;
4525
4526
4527# Check whether --with-mpfr or --without-mpfr was given.
4528if test "${with_mpfr+set}" = set; then
4529 withval="$with_mpfr"
4530
4531fi;
4532
4533# Check whether --with-mpfr_include or --without-mpfr_include was given.
4534if test "${with_mpfr_include+set}" = set; then
4535 withval="$with_mpfr_include"
4536
4537fi;
4538
4539# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4540if test "${with_mpfr_lib+set}" = set; then
4541 withval="$with_mpfr_lib"
4542
4543fi;
4544
4545if test "x$with_mpfr" != x; then
4546 gmplibs="-L$with_mpfr/lib $gmplibs"
4547 gmpinc="-I$with_mpfr/include"
4548fi
4549if test "x$with_mpfr_include" != x; then
4550 gmpinc="-I$with_mpfr_include"
4551fi
4552if test "x$with_mpfr_lib" != x; then
4553 gmplibs="-L$with_mpfr_lib $gmplibs"
4554fi
4555if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4556 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4557 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4558 # Do not test the mpfr version. Assume that it is sufficient, since
4559 # it is in the source tree, and the library has not been built yet
4560 # but it would be included on the link line in the version check below
4561 # hence making the test fail.
4562 have_gmp=yes
4563fi
4564
4565# Specify a location for gmp
4566
4567# Check whether --with-gmp-dir or --without-gmp-dir was given.
4568if test "${with_gmp_dir+set}" = set; then
4569 withval="$with_gmp_dir"
4570 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4571Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4572echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4573Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4574 { (exit 1); exit 1; }; }
4575fi;
4576
4577
4578# Check whether --with-gmp or --without-gmp was given.
4579if test "${with_gmp+set}" = set; then
4580 withval="$with_gmp"
4581
4582fi;
4583
4584# Check whether --with-gmp_include or --without-gmp_include was given.
4585if test "${with_gmp_include+set}" = set; then
4586 withval="$with_gmp_include"
4587
4588fi;
4589
4590# Check whether --with-gmp_lib or --without-gmp_lib was given.
4591if test "${with_gmp_lib+set}" = set; then
4592 withval="$with_gmp_lib"
4593
4594fi;
4595
4596
4597if test "x$with_gmp" != x; then
4598 gmplibs="-L$with_gmp/lib $gmplibs"
4599 gmpinc="-I$with_gmp/include $gmpinc"
4600fi
4601if test "x$with_gmp_include" != x; then
4602 gmpinc="-I$with_gmp_include $gmpinc"
4603fi
4604if test "x$with_gmp_lib" != x; then
4605 gmplibs="-L$with_gmp_lib $gmplibs"
4606fi
4607if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4608 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4609 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4610 # Do not test the gmp version. Assume that it is sufficient, since
4611 # it is in the source tree, and the library has not been built yet
4612 # but it would be included on the link line in the version check below
4613 # hence making the test fail.
4614 have_gmp=yes
4615fi
4616
4617if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4618 have_gmp=yes
4619 saved_CFLAGS="$CFLAGS"
4620 CFLAGS="$CFLAGS $gmpinc"
4621 # Check GMP actually works
4622 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4623echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4624
4625cat >conftest.$ac_ext <<_ACEOF
4626/* confdefs.h. */
4627_ACEOF
4628cat confdefs.h >>conftest.$ac_ext
4629cat >>conftest.$ac_ext <<_ACEOF
4630/* end confdefs.h. */
4631#include "gmp.h"
4632int
4633main ()
4634{
4635
4636 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
4637 choke me
4638 #endif
4639
4640 ;
4641 return 0;
4642}
4643_ACEOF
4644rm -f conftest.$ac_objext
4645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4646 (eval $ac_compile) 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } &&
4653 { ac_try='test -z "$ac_c_werror_flag"
4654 || test ! -s conftest.err'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 (eval $ac_try) 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; } &&
4660 { ac_try='test -s conftest.$ac_objext'
4661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 (eval $ac_try) 2>&5
4663 ac_status=$?
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; }; then
4666 echo "$as_me:$LINENO: result: yes" >&5
4667echo "${ECHO_T}yes" >&6
4668else
4669 echo "$as_me: failed program was:" >&5
4670sed 's/^/| /' conftest.$ac_ext >&5
4671
4672echo "$as_me:$LINENO: result: no" >&5
4673echo "${ECHO_T}no" >&6; have_gmp=no
4674fi
4675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4676
4677 if test x"$have_gmp" = xyes; then
4678 saved_LIBS="$LIBS"
4679 LIBS="$LIBS $gmplibs"
4680 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4681echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4682 cat >conftest.$ac_ext <<_ACEOF
4683/* confdefs.h. */
4684_ACEOF
4685cat confdefs.h >>conftest.$ac_ext
4686cat >>conftest.$ac_ext <<_ACEOF
4687/* end confdefs.h. */
4688#include <gmp.h>
4689 #include <mpfr.h>
4690int
4691main ()
4692{
4693
4694 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4695 choke me
4696 #endif
4697 mpfr_t n;
4698 mpfr_t x;
4699 int t;
4700 mpfr_init (n);
4701 mpfr_init (x);
4702 mpfr_atan2 (n, n, x, GMP_RNDN);
4703 mpfr_erfc (n, x, GMP_RNDN);
4704 mpfr_subnormalize (x, t, GMP_RNDN);
4705
4706 ;
4707 return 0;
4708}
4709_ACEOF
4710rm -f conftest.$ac_objext conftest$ac_exeext
4711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712 (eval $ac_link) 2>conftest.er1
4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try='test -z "$ac_c_werror_flag"
4720 || test ! -s conftest.err'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 (eval $ac_try) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; } &&
4726 { ac_try='test -s conftest$ac_exeext'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; }; then
4732 cat >conftest.$ac_ext <<_ACEOF
4733/* confdefs.h. */
4734_ACEOF
4735cat confdefs.h >>conftest.$ac_ext
4736cat >>conftest.$ac_ext <<_ACEOF
4737/* end confdefs.h. */
4738#include <gmp.h>
4739 #include <mpfr.h>
4740int
4741main ()
4742{
4743
4744 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
4745 choke me
4746 #endif
4747 mpfr_t n; mpfr_init(n);
4748
4749 ;
4750 return 0;
4751}
4752_ACEOF
4753rm -f conftest.$ac_objext conftest$ac_exeext
4754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4755 (eval $ac_link) 2>conftest.er1
4756 ac_status=$?
4757 grep -v '^ *+' conftest.er1 >conftest.err
4758 rm -f conftest.er1
4759 cat conftest.err >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } &&
4762 { ac_try='test -z "$ac_c_werror_flag"
4763 || test ! -s conftest.err'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 (eval $ac_try) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; } &&
4769 { ac_try='test -s conftest$ac_exeext'
4770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 (eval $ac_try) 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; }; then
4775 echo "$as_me:$LINENO: result: yes" >&5
4776echo "${ECHO_T}yes" >&6
4777else
4778 echo "$as_me: failed program was:" >&5
4779sed 's/^/| /' conftest.$ac_ext >&5
4780
4781echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4782echo "${ECHO_T}buggy but acceptable" >&6
4783fi
4784rm -f conftest.err conftest.$ac_objext \
4785 conftest$ac_exeext conftest.$ac_ext
4786else
4787 echo "$as_me: failed program was:" >&5
4788sed 's/^/| /' conftest.$ac_ext >&5
4789
4790echo "$as_me:$LINENO: result: no" >&5
4791echo "${ECHO_T}no" >&6; have_gmp=no
4792fi
4793rm -f conftest.err conftest.$ac_objext \
4794 conftest$ac_exeext conftest.$ac_ext
4795 LIBS="$saved_LIBS"
4796 fi
4797 CFLAGS="$saved_CFLAGS"
4798
4799 if test x$have_gmp != xyes; then
4800 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
4801Try the --with-gmp and/or --with-mpfr options to specify their locations.
4802Copies of these libraries' source code can be found at their respective
4803hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4804See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4805If you obtained GMP and/or MPFR from a vendor distribution package, make
4806sure that you have installed both the libraries and the header files.
4807They may be located in separate packages." >&5
4808echo "$as_me: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
4809Try the --with-gmp and/or --with-mpfr options to specify their locations.
4810Copies of these libraries' source code can be found at their respective
4811hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4812See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4813If you obtained GMP and/or MPFR from a vendor distribution package, make
4814sure that you have installed both the libraries and the header files.
4815They may be located in separate packages." >&2;}
4816 { (exit 1); exit 1; }; }
4817 fi
4818fi
4819
4820# Flags needed for both GMP and/or MPFR
4821
4822
4823
4824# Allow host libstdc++ to be specified for static linking with PPL.
4825
4826# Check whether --with-host-libstdcxx or --without-host-libstdcxx was given.
4827if test "${with_host_libstdcxx+set}" = set; then
4828 withval="$with_host_libstdcxx"
4829
4830fi;
4831
4832case $with_host_libstdcxx in
4833 no|yes)
4834 { { echo "$as_me:$LINENO: error: -with-host-libstdcxx needs an argument" >&5
4835echo "$as_me: error: -with-host-libstdcxx needs an argument" >&2;}
4836 { (exit 1); exit 1; }; }
4837 ;;
4838esac
4839
4840# Check for PPL
4841ppl_major_version=0
4842ppl_minor_version=10
4843ppllibs=" -lppl_c -lppl -lgmpxx $with_host_libstdcxx "
4844pplinc=
4845
4846
4847# Check whether --with-ppl or --without-ppl was given.
4848if test "${with_ppl+set}" = set; then
4849 withval="$with_ppl"
4850
4851fi;
4852
4853# Check whether --with-ppl_include or --without-ppl_include was given.
4854if test "${with_ppl_include+set}" = set; then
4855 withval="$with_ppl_include"
4856
4857fi;
4858
4859# Check whether --with-ppl_lib or --without-ppl_lib was given.
4860if test "${with_ppl_lib+set}" = set; then
4861 withval="$with_ppl_lib"
4862
4863fi;
4864
4865case $with_ppl in
4866 no)
4867 ppllibs=
4868 ;;
4869 *)
4870 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx $with_host_libstdcxx"
4871 pplinc="-I$with_ppl/include $pplinc"
4872 LIBS="$ppllibs $LIBS"
4873 ;;
4874esac
4875if test "x$with_ppl_include" != x; then
4876 pplinc="-I$with_ppl_include $pplinc"
4877fi
4878if test "x$with_ppl_lib" != x; then
4879 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx $with_host_libstdcxx"
4880 LIBS="$ppllibs $LIBS"
4881fi
4882if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
4883 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '"$with_host_libstdcxx "
4884 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
4885 LIBS="$ppllibs $LIBS"
4886fi
4887
4888# Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
4889if test "${enable_ppl_version_check+set}" = set; then
4890 enableval="$enable_ppl_version_check"
4891 ENABLE_PPL_CHECK=$enableval
4892else
4893 ENABLE_PPL_CHECK=yes
4894fi;
4895
4896if test "${ENABLE_PPL_CHECK}" = "yes"; then
4897 saved_CFLAGS="$CFLAGS"
4898 CFLAGS="$CFLAGS $pplinc $gmpinc"
4899 echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
4900echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
4901 cat >conftest.$ac_ext <<_ACEOF
4902/* confdefs.h. */
4903_ACEOF
4904cat confdefs.h >>conftest.$ac_ext
4905cat >>conftest.$ac_ext <<_ACEOF
4906/* end confdefs.h. */
4907#include "ppl_c.h"
4908int
4909main ()
4910{
4911
4912 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
4913 choke me
4914 #endif
4915
4916 ;
4917 return 0;
4918}
4919_ACEOF
4920rm -f conftest.$ac_objext
4921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4922 (eval $ac_compile) 2>conftest.er1
4923 ac_status=$?
4924 grep -v '^ *+' conftest.er1 >conftest.err
4925 rm -f conftest.er1
4926 cat conftest.err >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } &&
4929 { ac_try='test -z "$ac_c_werror_flag"
4930 || test ! -s conftest.err'
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 (eval $ac_try) 2>&5
4933 ac_status=$?
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; } &&
4936 { ac_try='test -s conftest.$ac_objext'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 (eval $ac_try) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }; then
4942 echo "$as_me:$LINENO: result: yes" >&5
4943echo "${ECHO_T}yes" >&6
4944else
4945 echo "$as_me: failed program was:" >&5
4946sed 's/^/| /' conftest.$ac_ext >&5
4947
4948echo "$as_me:$LINENO: result: no" >&5
4949echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
4950fi
4951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4952 CFLAGS="$saved_CFLAGS"
4953fi
4954
4955# Flags needed for PPL
4956
4957
4958
4959
4960# Check for CLOOG
4961clooglibs=" -lcloog "
4962clooginc=" -DCLOOG_PPL_BACKEND "
4963
4964
4965# Check whether --with-cloog or --without-cloog was given.
4966if test "${with_cloog+set}" = set; then
4967 withval="$with_cloog"
4968
4969fi;
4970
4971# Check whether --with-cloog_include or --without-cloog_include was given.
4972if test "${with_cloog_include+set}" = set; then
4973 withval="$with_cloog_include"
4974
4975fi;
4976
4977# Check whether --with-cloog_lib or --without-cloog_lib was given.
4978if test "${with_cloog_lib+set}" = set; then
4979 withval="$with_cloog_lib"
4980
4981fi;
4982
4983case $with_cloog in
4984 no)
4985 clooglibs=
4986 clooginc=
4987 ;;
4988 *)
4989 clooglibs="-L$with_cloog/lib -lcloog"
4990 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
4991 LIBS="$clooglibs $LIBS"
4992 ;;
4993esac
4994if test "x$with_cloog_include" != x; then
4995 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
4996fi
4997if test "x$with_cloog_lib" != x; then
4998 clooglibs="-L$with_cloog_lib -lcloog"
4999 LIBS="$clooglibs $LIBS"
5000fi
5001if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5002 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5003 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5004 LIBS="$clooglibs $LIBS"
5005fi
5006
5007# Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
5008if test "${enable_cloog_version_check+set}" = set; then
5009 enableval="$enable_cloog_version_check"
5010 ENABLE_CLOOG_CHECK=$enableval
5011else
5012 ENABLE_CLOOG_CHECK=yes
5013fi;
5014
5015if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5016 saved_CFLAGS="$CFLAGS"
5017 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5018 echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
5019echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
5020 cat >conftest.$ac_ext <<_ACEOF
5021/* confdefs.h. */
5022_ACEOF
5023cat confdefs.h >>conftest.$ac_ext
5024cat >>conftest.$ac_ext <<_ACEOF
5025/* end confdefs.h. */
5026#include "cloog/cloog.h"
5027int
5028main ()
5029{
5030
5031 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5032 choke me
5033 #endif
5034
5035 ;
5036 return 0;
5037}
5038_ACEOF
5039rm -f conftest.$ac_objext
5040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041 (eval $ac_compile) 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try='test -z "$ac_c_werror_flag"
5049 || test ! -s conftest.err'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 (eval $ac_try) 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; } &&
5055 { ac_try='test -s conftest.$ac_objext'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057 (eval $ac_try) 2>&5
5058 ac_status=$?
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5061 echo "$as_me:$LINENO: result: yes" >&5
5062echo "${ECHO_T}yes" >&6
5063else
5064 echo "$as_me: failed program was:" >&5
5065sed 's/^/| /' conftest.$ac_ext >&5
5066
5067echo "$as_me:$LINENO: result: no" >&5
5068echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5069fi
5070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5071 CFLAGS="$saved_CFLAGS"
5072fi
5073
5074# Flags needed for CLOOG
5075
5076
5077
5078
5079# By default, C is the only stage 1 language.
5080stage1_languages=,c,
5081
5082# Figure out what language subdirectories are present.
5083# Look if the user specified --enable-languages="..."; if not, use
5084# the environment variable $LANGUAGES if defined. $LANGUAGES might
5085# go away some day.
5086# NB: embedded tabs in this IF block -- do not untabify
5087if test -d ${srcdir}/gcc; then
5088 if test x"${enable_languages+set}" != xset; then
5089 if test x"${LANGUAGES+set}" = xset; then
5090 enable_languages="${LANGUAGES}"
5091 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5092 else
5093 enable_languages=all
5094 fi
5095 else
5096 if test x"${enable_languages}" = x ||
5097 test x"${enable_languages}" = xyes;
5098 then
5099 echo configure.in: --enable-languages needs at least one language argument 1>&2
5100 exit 1
5101 fi
5102 fi
5103 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5104
5105 # 'f95' is the old name for the 'fortran' language. We issue a warning
5106 # and make the substitution.
5107 case ,${enable_languages}, in
5108 *,f95,*)
5109 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5110 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5111 ;;
5112 esac
5113
5114 # First scan to see if an enabled language requires some other language.
5115 # We assume that a given config-lang.in will list all the language
5116 # front ends it requires, even if some are required indirectly.
5117 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5118 case ${lang_frag} in
5119 ..) ;;
5120 # The odd quoting in the next line works around
5121 # an apparent bug in bash 1.12 on linux.
5122 ${srcdir}/gcc/[*]/config-lang.in) ;;
5123 *)
5124 # From the config-lang.in, get $language, $lang_requires
5125 language=
5126 lang_requires=
5127 . ${lang_frag}
5128 for other in ${lang_requires} ; do
5129 case ,${enable_languages}, in
5130 *,$other,*) ;;
5131 *,all,*) ;;
5132 *,$language,*)
5133 echo " \`$other' language required by \`$language'; enabling" 1>&2
5134 enable_languages="${enable_languages},${other}"
5135 ;;
5136 esac
5137 done
5138 ;;
5139 esac
5140 done
5141
5142 new_enable_languages=,c,
5143 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
5144 potential_languages=,c,
5145
5146 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5147 case ${lang_frag} in
5148 ..) ;;
5149 # The odd quoting in the next line works around
5150 # an apparent bug in bash 1.12 on linux.
5151 ${srcdir}/gcc/[*]/config-lang.in) ;;
5152 *)
5153 # From the config-lang.in, get $language, $target_libs,
5154 # $lang_dirs, $boot_language, and $build_by_default
5155 language=
5156 target_libs=
5157 lang_dirs=
5158 subdir_requires=
5159 boot_language=no
5160 build_by_default=yes
5161 . ${lang_frag}
5162 if test x${language} = x; then
5163 echo "${lang_frag} doesn't set \$language." 1>&2
5164 exit 1
5165 fi
5166
5167 case ,${enable_languages}, in
5168 *,${language},*)
5169 # Language was explicitly selected; include it.
5170 add_this_lang=yes
5171 ;;
5172 *,all,*)
5173 # 'all' was selected, select it if it is a default language
5174 add_this_lang=${build_by_default}
5175 ;;
5176 *)
5177 add_this_lang=no
5178 ;;
5179 esac
5180
5181 # Disable languages that need other directories if these aren't available.
5182 for i in $subdir_requires; do
5183 test -f "$srcdir/gcc/$i/config-lang.in" && continue
5184 case ,${enable_languages}, in
5185 *,${language},*)
5186 # Specifically requested language; tell them.
5187 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5188echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5189 { (exit 1); exit 1; }; }
5190 ;;
5191 *)
5192 # Silently disable.
5193 add_this_lang=unsupported
5194 ;;
5195 esac
5196 done
5197
5198 # Disable Ada if no preexisting GNAT is available.
5199 case ,${enable_languages},:${language}:${have_gnat} in
5200 *,${language},*:ada:no)
5201 # Specifically requested language; tell them.
5202 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5203echo "$as_me: error: GNAT is required to build $language" >&2;}
5204 { (exit 1); exit 1; }; }
5205 ;;
5206 *:ada:no)
5207 # Silently disable.
5208 add_this_lang=unsupported
5209 ;;
5210 esac
5211
5212 # Disable a language that is unsupported by the target.
5213 case " $unsupported_languages " in
5214 *" $language "*)
5215 add_this_lang=unsupported
5216 ;;
5217 esac
5218
5219 case $add_this_lang in
5220 unsupported)
5221 # Remove language-dependent dirs.
5222 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5223 ;;
5224 no)
5225 # Remove language-dependent dirs; still show language as supported.
5226 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5227 potential_languages="${potential_languages}${language},"
5228 ;;
5229 yes)
5230 new_enable_languages="${new_enable_languages}${language},"
5231 potential_languages="${potential_languages}${language},"
5232 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5233 case ${boot_language} in
5234 yes)
5235 # Add to (comma-separated) list of stage 1 languages.
5236 stage1_languages="${stage1_languages}${language},"
5237 ;;
5238 esac
5239 ;;
5240 esac
5241 ;;
5242 esac
5243 done
5244
5245 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
5246if test "${enable_stage1_languages+set}" = set; then
5247 enableval="$enable_stage1_languages"
5248 case ,${enable_stage1_languages}, in
5249 ,no,|,,)
5250 # Set it to something that will have no effect in the loop below
5251 enable_stage1_languages=c ;;
5252 ,yes,)
5253 enable_stage1_languages=`echo $new_enable_languages | \
5254 sed -e "s/^,//" -e "s/,$//" ` ;;
5255 *,all,*)
5256 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5257 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5258 esac
5259
5260 # Add "good" languages from enable_stage1_languages to stage1_languages,
5261 # while "bad" languages go in missing_languages. Leave no duplicates.
5262 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5263 case $potential_languages in
5264 *,$i,*)
5265 case $stage1_languages in
5266 *,$i,*) ;;
5267 *) stage1_languages="$stage1_languages$i," ;;
5268 esac ;;
5269 *)
5270 case $missing_languages in
5271 *,$i,*) ;;
5272 *) missing_languages="$missing_languages$i," ;;
5273 esac ;;
5274 esac
5275 done
5276fi;
5277
5278 # Remove leading/trailing commas that were added for simplicity
5279 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
5280 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
5281 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5282 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5283
5284 if test "x$missing_languages" != x; then
5285 { { echo "$as_me:$LINENO: error:
5286The following requested languages could not be built: ${missing_languages}
5287Supported languages are: ${potential_languages}" >&5
5288echo "$as_me: error:
5289The following requested languages could not be built: ${missing_languages}
5290Supported languages are: ${potential_languages}" >&2;}
5291 { (exit 1); exit 1; }; }
5292 fi
5293 if test "x$new_enable_languages" != "x$enable_languages"; then
5294 echo The following languages will be built: ${new_enable_languages}
5295 enable_languages="$new_enable_languages"
5296 fi
5297
5298
5299 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
5300fi
5301
5302# Handle --disable-<component> generically.
5303for dir in $configdirs $build_configdirs $target_configdirs ; do
5304 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
5305 varname=`echo $dirname | sed -e s/+/_/g`
5306 if eval test x\${enable_${varname}} "=" xno ; then
5307 noconfigdirs="$noconfigdirs $dir"
5308 fi
5309done
5310
5311# Check for Boehm's garbage collector
5312# Check whether --enable-objc-gc or --disable-objc-gc was given.
5313if test "${enable_objc_gc+set}" = set; then
5314 enableval="$enable_objc_gc"
5315 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5316 *,objc,*:*:yes:*target-boehm-gc*)
5317 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5318echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5319 { (exit 1); exit 1; }; }
5320 ;;
5321esac
5322fi;
5323
5324# Make sure we only build Boehm's garbage collector if required.
5325case ,${enable_languages},:${enable_objc_gc} in
5326 *,objc,*:yes)
5327 # Keep target-boehm-gc if requested for Objective-C.
5328 ;;
5329 *)
5330 # Otherwise remove target-boehm-gc depending on target-libjava.
5331 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5332 noconfigdirs="$noconfigdirs target-boehm-gc"
5333 fi
5334 ;;
5335esac
5336
5337# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5338# $build_configdirs and $target_configdirs.
5339# If we have the source for $noconfigdirs entries, add them to $notsupp.
5340
5341notsupp=""
5342for dir in . $skipdirs $noconfigdirs ; do
5343 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
5344 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5345 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5346 if test -r $srcdir/$dirname/configure ; then
5347 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5348 true
5349 else
5350 notsupp="$notsupp $dir"
5351 fi
5352 fi
5353 fi
5354 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5355 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5356 if test -r $srcdir/$dirname/configure ; then
5357 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5358 true
5359 else
5360 notsupp="$notsupp $dir"
5361 fi
5362 fi
5363 fi
5364 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5365 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5366 if test -r $srcdir/$dirname/configure ; then
5367 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5368 true
5369 else
5370 notsupp="$notsupp $dir"
5371 fi
5372 fi
5373 fi
5374done
5375
5376# Sometimes the tools are distributed with libiberty but with no other
5377# libraries. In that case, we don't want to build target-libiberty.
5378# Don't let libgcc imply libiberty either.
5379if test -n "${target_configdirs}" ; then
5380 libgcc=
5381 others=
5382 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
5383 if test "$i" = "libgcc"; then
5384 libgcc=target-libgcc
5385 elif test "$i" != "libiberty" ; then
5386 if test -r $srcdir/$i/configure ; then
5387 others=yes;
5388 break;
5389 fi
5390 fi
5391 done
5392 if test -z "${others}" ; then
5393 target_configdirs=$libgcc
5394 fi
5395fi
5396
5397# Quietly strip out all directories which aren't configurable in this tree.
5398# This relies on all configurable subdirectories being autoconfiscated, which
5399# is now the case.
5400build_configdirs_all="$build_configdirs"
5401build_configdirs=
5402for i in ${build_configdirs_all} ; do
5403 j=`echo $i | sed -e s/build-//g`
5404 if test -f ${srcdir}/$j/configure ; then
5405 build_configdirs="${build_configdirs} $i"
5406 fi
5407done
5408
5409configdirs_all="$configdirs"
5410configdirs=
5411for i in ${configdirs_all} ; do
5412 if test -f ${srcdir}/$i/configure ; then
5413 configdirs="${configdirs} $i"
5414 fi
5415done
5416
5417target_configdirs_all="$target_configdirs"
5418target_configdirs=
5419for i in ${target_configdirs_all} ; do
5420 j=`echo $i | sed -e s/target-//g`
5421 if test -f ${srcdir}/$j/configure ; then
5422 target_configdirs="${target_configdirs} $i"
5423 fi
5424done
5425
5426# Produce a warning message for the subdirs we can't configure.
5427# This isn't especially interesting in the Cygnus tree, but in the individual
5428# FSF releases, it's important to let people know when their machine isn't
5429# supported by the one or two programs in a package.
5430
5431if test -n "${notsupp}" && test -z "${norecursion}" ; then
5432 # If $appdirs is non-empty, at least one of those directories must still
5433 # be configured, or we error out. (E.g., if the gas release supports a
5434 # specified target in some subdirs but not the gas subdir, we shouldn't
5435 # pretend that all is well.)
5436 if test -n "$appdirs" ; then
5437 for dir in $appdirs ; do
5438 if test -r $dir/Makefile.in ; then
5439 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5440 appdirs=""
5441 break
5442 fi
5443 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
5444 appdirs=""
5445 break
5446 fi
5447 fi
5448 done
5449 if test -n "$appdirs" ; then
5450 echo "*** This configuration is not supported by this package." 1>&2
5451 exit 1
5452 fi
5453 fi
5454 # Okay, some application will build, or we don't care to check. Still
5455 # notify of subdirs not getting built.
5456 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5457 echo " ${notsupp}" 1>&2
5458 echo " (Any other directories should still work fine.)" 1>&2
5459fi
5460
5461case "$host" in
5462 *msdosdjgpp*)
5463 enable_gdbtk=no ;;
5464esac
5465
5466# To find our prefix, in gcc_cv_tool_prefix.
5467
5468# The user is always right.
5469if test "${PATH_SEPARATOR+set}" != set; then
5470 echo "#! /bin/sh" >conf$$.sh
5471 echo "exit 0" >>conf$$.sh
5472 chmod +x conf$$.sh
5473 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5474 PATH_SEPARATOR=';'
5475 else
5476 PATH_SEPARATOR=:
5477 fi
5478 rm -f conf$$.sh
5479fi
5480
5481
5482
5483if test "x$exec_prefix" = xNONE; then
5484 if test "x$prefix" = xNONE; then
5485 gcc_cv_tool_prefix=$ac_default_prefix
5486 else
5487 gcc_cv_tool_prefix=$prefix
5488 fi
5489else
5490 gcc_cv_tool_prefix=$exec_prefix
5491fi
5492
5493# If there is no compiler in the tree, use the PATH only. In any
5494# case, if there is no compiler in the tree nobody should use
5495# AS_FOR_TARGET and LD_FOR_TARGET.
5496if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5497 gcc_version=`cat $srcdir/gcc/BASE-VER`
5498 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5499 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5500 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5501 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5502 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5503 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5504else
5505 gcc_cv_tool_dirs=
5506fi
5507
5508if test x$build = x$target && test -n "$md_exec_prefix"; then
5509 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5510fi
5511
5512
5513
5514copy_dirs=
5515
5516
5517# Check whether --with-build-sysroot or --without-build-sysroot was given.
5518if test "${with_build_sysroot+set}" = set; then
5519 withval="$with_build_sysroot"
5520 if test x"$withval" != x ; then
5521 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5522 fi
5523else
5524 SYSROOT_CFLAGS_FOR_TARGET=
5525fi;
5526
5527
5528
5529# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5530if test "${with_debug_prefix_map+set}" = set; then
5531 withval="$with_debug_prefix_map"
5532 if test x"$withval" != x; then
5533 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5534 for debug_map in $withval; do
5535 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5536 done
5537 fi
5538else
5539 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5540fi;
5541
5542
5543# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5544# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5545# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5546# We want to ensure that TARGET libraries (which we know are built with
5547# gcc) are built with "-O2 -g", so include those options when setting
5548# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5549if test "x$CFLAGS_FOR_TARGET" = x; then
5550 CFLAGS_FOR_TARGET=$CFLAGS
5551 case " $CFLAGS " in
5552 *" -O2 "*) ;;
5553 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5554 esac
5555 case " $CFLAGS " in
5556 *" -g "* | *" -g3 "*) ;;
5557 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5558 esac
5559fi
5560
5561
5562if test "x$CXXFLAGS_FOR_TARGET" = x; then
5563 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5564 case " $CXXFLAGS " in
5565 *" -O2 "*) ;;
5566 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5567 esac
5568 case " $CXXFLAGS " in
5569 *" -g "* | *" -g3 "*) ;;
5570 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5571 esac
5572fi
5573
5574
5575# Handle --with-headers=XXX. If the value is not "yes", the contents of
5576# the named directory are copied to $(tooldir)/sys-include.
5577if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5578 if test x${is_cross_compiler} = xno ; then
5579 echo 1>&2 '***' --with-headers is only supported when cross compiling
5580 exit 1
5581 fi
5582 if test x"${with_headers}" != xyes ; then
5583 x=${gcc_cv_tool_prefix}
5584 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5585 fi
5586fi
5587
5588# Handle --with-libs=XXX. If the value is not "yes", the contents of
5589# the name directories are copied to $(tooldir)/lib. Multiple directories
5590# are permitted.
5591if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5592 if test x${is_cross_compiler} = xno ; then
5593 echo 1>&2 '***' --with-libs is only supported when cross compiling
5594 exit 1
5595 fi
5596 if test x"${with_libs}" != xyes ; then
5597 # Copy the libraries in reverse order, so that files in the first named
5598 # library override files in subsequent libraries.
5599 x=${gcc_cv_tool_prefix}
5600 for l in ${with_libs}; do
5601 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5602 done
5603 fi
5604fi
5605
5606# Set with_gnu_as and with_gnu_ld as appropriate.
5607#
5608# This is done by determining whether or not the appropriate directory
5609# is available, and by checking whether or not specific configurations
5610# have requested that this magic not happen.
5611#
5612# The command line options always override the explicit settings in
5613# configure.in, and the settings in configure.in override this magic.
5614#
5615# If the default for a toolchain is to use GNU as and ld, and you don't
5616# want to do that, then you should use the --without-gnu-as and
5617# --without-gnu-ld options for the configure script.
5618
5619if test x${use_gnu_as} = x &&
5620 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5621 with_gnu_as=yes
5622 extra_host_args="$extra_host_args --with-gnu-as"
5623fi
5624
5625if test x${use_gnu_ld} = x &&
5626 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
5627 with_gnu_ld=yes
5628 extra_host_args="$extra_host_args --with-gnu-ld"
5629fi
5630
5631# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5632# can detect this case.
5633
5634if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5635 with_newlib=yes
5636 extra_host_args="$extra_host_args --with-newlib"
5637fi
5638
5639# Handle ${copy_dirs}
5640set fnord ${copy_dirs}
5641shift
5642while test $# != 0 ; do
5643 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5644 :
5645 else
5646 echo Copying $1 to $2
5647
5648 # Use the install script to create the directory and all required
5649 # parent directories.
5650 if test -d $2 ; then
5651 :
5652 else
5653 echo >config.temp
5654 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5655 fi
5656
5657 # Copy the directory, assuming we have tar.
5658 # FIXME: Should we use B in the second tar? Not all systems support it.
5659 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5660
5661 # It is the responsibility of the user to correctly adjust all
5662 # symlinks. If somebody can figure out how to handle them correctly
5663 # here, feel free to add the code.
5664
5665 echo $1 > $2/COPIED
5666 fi
5667 shift; shift
5668done
5669
5670# Determine a target-dependent exec_prefix that the installed
5671# gcc will search in. Keep this list sorted by triplet, with
5672# the *-*-osname triplets last.
5673md_exec_prefix=
5674case "${target}" in
5675 alpha*-*-*vms*)
5676 md_exec_prefix=/gnu/lib/gcc-lib
5677 ;;
5678 i[34567]86-pc-msdosdjgpp*)
5679 md_exec_prefix=/dev/env/DJDIR/bin
5680 ;;
5681 i[34567]86-*-sco3.2v5*)
5682 if test $with_gnu_as = yes; then
5683 md_exec_prefix=/usr/gnu/bin
5684 else
5685 md_exec_prefix=/usr/ccs/bin/elf
5686 fi
5687 ;;
5688
5689 mn10300-*-* | \
5690 powerpc-*-chorusos* | \
5691 powerpc*-*-eabi* | \
5692 powerpc*-*-sysv* | \
5693 powerpc*-*-kaos* | \
5694 s390x-ibm-tpf*)
5695 md_exec_prefix=/usr/ccs/bin
5696 ;;
5697 sparc64-*-elf*)
5698 ;;
5699 v850*-*-*)
5700 md_exec_prefix=/usr/ccs/bin
5701 ;;
5702 xtensa*-*-elf*)
5703 ;;
5704
5705 *-*-beos* | \
5706 *-*-elf* | \
5707 *-*-hpux* | \
5708 *-*-netware* | \
5709 *-*-nto-qnx* | \
5710 *-*-rtems* | \
5711 *-*-solaris2* | \
5712 *-*-sysv[45]* | \
5713 *-*-vxworks* | \
5714 *-wrs-windiss)
5715 md_exec_prefix=/usr/ccs/bin
5716 ;;
5717esac
5718
5719extra_arflags_for_target=
5720extra_nmflags_for_target=
5721extra_ranlibflags_for_target=
5722target_makefile_frag=/dev/null
5723case "${target}" in
5724 mep*-*-*)
5725 target_makefile_frag="config/mt-mep"
5726 ;;
5727 spu-*-*)
5728 target_makefile_frag="config/mt-spu"
5729 ;;
5730 mips*-sde-elf*)
5731 target_makefile_frag="config/mt-sde"
5732 ;;
5733 mipsisa*-*-elfoabi*)
5734 target_makefile_frag="config/mt-mips-elfoabi"
5735 ;;
5736 mips*-*-*linux* | mips*-*-gnu*)
5737 target_makefile_frag="config/mt-mips-gnu"
5738 ;;
5739 *-*-netware*)
5740 target_makefile_frag="config/mt-netware"
5741 ;;
5742 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
5743 target_makefile_frag="config/mt-gnu"
5744 ;;
5745 *-*-aix4.[3456789]* | *-*-aix[56789].*)
5746 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5747 # commands to handle both 32-bit and 64-bit objects. These flags are
5748 # harmless if we're using GNU nm or ar.
5749 extra_arflags_for_target=" -X32_64"
5750 extra_nmflags_for_target=" -B -X32_64"
5751 ;;
5752 *-*-darwin*)
5753 # ranlib from Darwin requires the -c flag to look at common symbols.
5754 extra_ranlibflags_for_target=" -c"
5755 ;;
5756 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5757 target_makefile_frag="config/mt-wince"
5758 ;;
5759esac
5760
5761alphaieee_frag=/dev/null
5762case $target in
5763 alpha*-*-*)
5764 # This just makes sure to use the -mieee option to build target libs.
5765 # This should probably be set individually by each library.
5766 alphaieee_frag="config/mt-alphaieee"
5767 ;;
5768esac
5769
5770# If --enable-target-optspace always use -Os instead of -O2 to build
5771# the target libraries, similarly if it is not specified, use -Os
5772# on selected platforms.
5773ospace_frag=/dev/null
5774case "${enable_target_optspace}:${target}" in
5775 yes:*)
5776 ospace_frag="config/mt-ospace"
5777 ;;
5778 :d30v-*)
5779 ospace_frag="config/mt-d30v"
5780 ;;
5781 :m32r-* | :d10v-* | :fr30-*)
5782 ospace_frag="config/mt-ospace"
5783 ;;
5784 no:* | :*)
5785 ;;
5786 *)
5787 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5788 ;;
5789esac
5790
5791# Default to using --with-stabs for certain targets.
5792if test x${with_stabs} = x ; then
5793 case "${target}" in
5794 mips*-*-irix[56]*)
5795 ;;
5796 mips*-*-* | alpha*-*-osf*)
5797 with_stabs=yes;
5798 extra_host_args="${extra_host_args} --with-stabs"
5799 ;;
5800 esac
5801fi
5802
5803# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5804# them automatically.
5805case "${host}" in
5806 hppa*64*-*-hpux11*)
5807 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5808 ;;
5809esac
5810
5811# Some systems (e.g., one of the i386-aix systems the gas testers are
5812# using) don't handle "\$" correctly, so don't use it here.
5813tooldir='${exec_prefix}'/${target_noncanonical}
5814build_tooldir=${tooldir}
5815
5816# Create a .gdbinit file which runs the one in srcdir
5817# and tells GDB to look there for source files.
5818
5819if test -r ${srcdir}/.gdbinit ; then
5820 case ${srcdir} in
5821 .) ;;
5822 *) cat > ./.gdbinit <<EOF
5823# ${NO_EDIT}
5824dir ${srcdir}
5825dir .
5826source ${srcdir}/.gdbinit
5827EOF
5828 ;;
5829 esac
5830fi
5831
5832# Make sure that the compiler is able to generate an executable. If it
5833# can't, we are probably in trouble. We don't care whether we can run the
5834# executable--we might be using a cross compiler--we only care whether it
5835# can be created. At this point the main configure script has set CC.
5836we_are_ok=no
5837echo "int main () { return 0; }" > conftest.c
5838${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5839if test $? = 0 ; then
5840 if test -s conftest || test -s conftest.exe ; then
5841 we_are_ok=yes
5842 fi
5843fi
5844case $we_are_ok in
5845 no)
5846 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5847 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5848 rm -f conftest*
5849 exit 1
5850 ;;
5851esac
5852rm -f conftest*
5853
5854# The Solaris /usr/ucb/cc compiler does not appear to work.
5855case "${host}" in
5856 sparc-sun-solaris2*)
5857 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5858 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5859 could_use=
5860 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5861 if test -d /opt/cygnus/bin ; then
5862 if test "$could_use" = "" ; then
5863 could_use="/opt/cygnus/bin"
5864 else
5865 could_use="$could_use or /opt/cygnus/bin"
5866 fi
5867 fi
5868 if test "$could_use" = "" ; then
5869 echo "Warning: compilation may fail because you're using"
5870 echo "/usr/ucb/cc. You should change your PATH or CC "
5871 echo "variable and rerun configure."
5872 else
5873 echo "Warning: compilation may fail because you're using"
5874 echo "/usr/ucb/cc, when you should use the C compiler from"
5875 echo "$could_use. You should change your"
5876 echo "PATH or CC variable and rerun configure."
5877 fi
5878 fi
5879 ;;
5880esac
5881
5882# Decide which environment variable is used to find dynamic libraries.
5883case "${host}" in
5884 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5885 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5886 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
5887 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5888esac
5889
5890# On systems where the dynamic library environment variable is PATH,
5891# gcc/ will put dynamic libraries into a subdirectory to avoid adding
5892# built executables to PATH.
5893if test "$RPATH_ENVVAR" = PATH; then
5894 GCC_SHLIB_SUBDIR=/shlib
5895else
5896 GCC_SHLIB_SUBDIR=
5897fi
5898
5899# Record target_configdirs and the configure arguments for target and
5900# build configuration in Makefile.
5901target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5902build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5903
5904# Determine whether gdb needs tk/tcl or not.
5905# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5906# and in that case we want gdb to be built without tk. Ugh!
5907# In fact I believe gdb is the *only* package directly dependent on tk,
5908# so we should be able to put the 'maybe's in unconditionally and
5909# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5910# 100% sure that that's safe though.
5911
5912gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5913case "$enable_gdbtk" in
5914 no)
5915 GDB_TK="" ;;
5916 yes)
5917 GDB_TK="${gdb_tk}" ;;
5918 *)
5919 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5920 # distro. Eventually someone will fix this and move Insight, nee
5921 # gdbtk to a separate directory.
5922 if test -d ${srcdir}/gdb/gdbtk ; then
5923 GDB_TK="${gdb_tk}"
5924 else
5925 GDB_TK=""
5926 fi
5927 ;;
5928esac
5929CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5930INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5931
5932# Strip out unwanted targets.
5933
5934# While at that, we remove Makefiles if we were started for recursive
5935# configuration, so that the top-level Makefile reconfigures them,
5936# like we used to do when configure itself was recursive.
5937
5938# Loop over modules. $extrasub must be used with care, limiting as
5939# much as possible the usage of range addresses. That's because autoconf
5940# splits the sed script to overcome limits in the number of commands,
5941# and relying on carefully-timed sed passes may turn out to be very hard
5942# to maintain later. In this particular case, you just have to be careful
5943# not to nest @if/@endif pairs, because configure will not warn you at all.
5944
5945# Check whether --enable-bootstrap or --disable-bootstrap was given.
5946if test "${enable_bootstrap+set}" = set; then
5947 enableval="$enable_bootstrap"
5948
5949else
5950 enable_bootstrap=default
5951fi;
5952
5953# Issue errors and warnings for invalid/strange bootstrap combinations.
5954case "$configdirs" in
5955 *gcc*) have_compiler=yes ;;
5956 *) have_compiler=no ;;
5957esac
5958
5959case "$have_compiler:$host:$target:$enable_bootstrap" in
5960 *:*:*:no) ;;
5961
5962 # Default behavior. Enable bootstrap if we have a compiler
5963 # and we are in a native configuration.
5964 yes:$build:$build:default)
5965 enable_bootstrap=yes ;;
5966
5967 *:*:*:default)
5968 enable_bootstrap=no ;;
5969
5970 # We have a compiler and we are in a native configuration, bootstrap is ok
5971 yes:$build:$build:yes)
5972 ;;
5973
5974 # Other configurations, but we have a compiler. Assume the user knows
5975 # what he's doing.
5976 yes:*:*:yes)
5977 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5978echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5979 ;;
5980
5981 # No compiler: if they passed --enable-bootstrap explicitly, fail
5982 no:*:*:yes)
5983 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5984echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5985 { (exit 1); exit 1; }; } ;;
5986
5987 # Fail if wrong command line
5988 *)
5989 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5990echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5991 { (exit 1); exit 1; }; }
5992 ;;
5993esac
5994
5995# Adjust the toplevel makefile according to whether bootstrap was selected.
5996case "$enable_bootstrap" in
5997 yes)
5998 bootstrap_suffix=bootstrap ;;
5999 no)
6000 bootstrap_suffix=no-bootstrap ;;
6001esac
6002
6003for module in ${build_configdirs} ; do
6004 if test -z "${no_recursion}" \
6005 && test -f ${build_subdir}/${module}/Makefile; then
6006 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6007 rm -f ${build_subdir}/${module}/Makefile
6008 fi
6009 extrasub="$extrasub
6010/^@if build-$module\$/d
6011/^@endif build-$module\$/d
6012/^@if build-$module-$bootstrap_suffix\$/d
6013/^@endif build-$module-$bootstrap_suffix\$/d"
6014done
6015for module in ${configdirs} ; do
6016 if test -z "${no_recursion}"; then
6017 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6018 if test -f ${file}; then
6019 echo 1>&2 "*** removing ${file} to force reconfigure"
6020 rm -f ${file}
6021 fi
6022 done
6023 fi
6024 extrasub="$extrasub
6025/^@if $module\$/d
6026/^@endif $module\$/d
6027/^@if $module-$bootstrap_suffix\$/d
6028/^@endif $module-$bootstrap_suffix\$/d"
6029done
6030for module in ${target_configdirs} ; do
6031 if test -z "${no_recursion}" \
6032 && test -f ${target_subdir}/${module}/Makefile; then
6033 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6034 rm -f ${target_subdir}/${module}/Makefile
6035 fi
6036 extrasub="$extrasub
6037/^@if target-$module\$/d
6038/^@endif target-$module\$/d
6039/^@if target-$module-$bootstrap_suffix\$/d
6040/^@endif target-$module-$bootstrap_suffix\$/d"
6041done
6042
6043extrasub="$extrasub
6044/^@if /,/^@endif /d"
6045
6046# Create the serialization dependencies. This uses a temporary file.
6047
6048# Check whether --enable-serial-configure or --disable-serial-configure was given.
6049if test "${enable_serial_configure+set}" = set; then
6050 enableval="$enable_serial_configure"
6051
6052fi;
6053
6054case ${enable_serial_configure} in
6055 yes)
6056 enable_serial_build_configure=yes
6057 enable_serial_host_configure=yes
6058 enable_serial_target_configure=yes
6059 ;;
6060esac
6061
6062# These force 'configure's to be done one at a time, to avoid problems
6063# with contention over a shared config.cache.
6064rm -f serdep.tmp
6065echo '# serdep.tmp' > serdep.tmp
6066olditem=
6067test "x${enable_serial_build_configure}" = xyes &&
6068for item in ${build_configdirs} ; do
6069 case ${olditem} in
6070 "") ;;
6071 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6072 esac
6073 olditem=${item}
6074done
6075olditem=
6076test "x${enable_serial_host_configure}" = xyes &&
6077for item in ${configdirs} ; do
6078 case ${olditem} in
6079 "") ;;
6080 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6081 esac
6082 olditem=${item}
6083done
6084olditem=
6085test "x${enable_serial_target_configure}" = xyes &&
6086for item in ${target_configdirs} ; do
6087 case ${olditem} in
6088 "") ;;
6089 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6090 esac
6091 olditem=${item}
6092done
6093serialization_dependencies=serdep.tmp
6094
6095
6096# Base args. Strip norecursion, cache-file, srcdir, host, build,
6097# target, nonopt, and variable assignments. These are the ones we
6098# might not want to pass down to subconfigures. Also strip
6099# program-prefix, program-suffix, and program-transform-name, so that
6100# we can pass down a consistent program-transform-name.
6101baseargs=
6102keep_next=no
6103skip_next=no
6104eval "set -- $ac_configure_args"
6105for ac_arg
6106do
6107 if test X"$skip_next" = X"yes"; then
6108 skip_next=no
6109 continue
6110 fi
6111 if test X"$keep_next" = X"yes"; then
6112 case $ac_arg in
6113 *\'*)
6114 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6115 esac
6116 baseargs="$baseargs '$ac_arg'"
6117 keep_next=no
6118 continue
6119 fi
6120
6121 # Handle separated arguments. Based on the logic generated by
6122 # autoconf 2.59.
6123 case $ac_arg in
6124 *=* | --config-cache | -C | -disable-* | --disable-* \
6125 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6126 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6127 | -with-* | --with-* | -without-* | --without-* | --x)
6128 separate_arg=no
6129 ;;
6130 -*)
6131 separate_arg=yes
6132 ;;
6133 *)
6134 separate_arg=no
6135 ;;
6136 esac
6137
6138 case "$ac_arg" in
6139 --no*)
6140 continue
6141 ;;
6142 --c* | \
6143 --sr* | \
6144 --ho* | \
6145 --bu* | \
6146 --t* | \
6147 --program-* | \
6148 -cache_file* | \
6149 -srcdir* | \
6150 -host* | \
6151 -build* | \
6152 -target* | \
6153 -program-prefix* | \
6154 -program-suffix* | \
6155 -program-transform-name* )
6156 skip_next=$separate_arg
6157 continue
6158 ;;
6159 -*)
6160 # An option. Add it.
6161 case $ac_arg in
6162 *\'*)
6163 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6164 esac
6165 baseargs="$baseargs '$ac_arg'"
6166 keep_next=$separate_arg
6167 ;;
6168 *)
6169 # Either a variable assignment, or a nonopt (triplet). Don't
6170 # pass it down; let the Makefile handle this.
6171 continue
6172 ;;
6173 esac
6174done
6175# Remove the initial space we just introduced and, as these will be
6176# expanded by make, quote '$'.
6177baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
6178
6179# Add in --program-transform-name, after --program-prefix and
6180# --program-suffix have been applied to it. Autoconf has already
6181# doubled dollar signs and backslashes in program_transform_name; we want
6182# the backslashes un-doubled, and then the entire thing wrapped in single
6183# quotes, because this will be expanded first by make and then by the shell.
6184# Also, because we want to override the logic in subdir configure scripts to
6185# choose program_transform_name, replace any s,x,x, with s,y,y,.
6186sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6187${program_transform_name}
6188EOF_SED
6189gcc_transform_name=`cat conftestsed.out`
6190rm -f conftestsed.out
6191baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
6192if test "$silent" = yes; then
6193 baseargs="$baseargs --silent"
6194fi
6195
6196# For the build-side libraries, we just need to pretend we're native,
6197# and not use the same cache file. Multilibs are neither needed nor
6198# desired.
6199build_configargs="--cache-file=../config.cache ${baseargs}"
6200
6201# For host modules, accept cache file option, or specification as blank.
6202case "${cache_file}" in
6203"") # empty
6204 cache_file_option="" ;;
6205/* | [A-Za-z]:[\\/]* ) # absolute path
6206 cache_file_option="--cache-file=${cache_file}" ;;
6207*) # relative path
6208 cache_file_option="--cache-file=../${cache_file}" ;;
6209esac
6210
6211# Host dirs don't like to share a cache file either, horribly enough.
6212# This seems to be due to autoconf 2.5x stupidity.
6213host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
6214
6215target_configargs=${baseargs}
6216
6217# Passing a --with-cross-host argument lets the target libraries know
6218# whether they are being built with a cross-compiler or being built
6219# native. However, it would be better to use other mechanisms to make the
6220# sorts of decisions they want to make on this basis. Please consider
6221# this option to be deprecated. FIXME.
6222if test x${is_cross_compiler} = xyes ; then
6223 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
6224fi
6225
6226# Default to --enable-multilib.
6227if test x${enable_multilib} = x ; then
6228 target_configargs="--enable-multilib ${target_configargs}"
6229fi
6230
6231# Pass --with-newlib if appropriate. Note that target_configdirs has
6232# changed from the earlier setting of with_newlib.
6233if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6234 target_configargs="--with-newlib ${target_configargs}"
6235fi
6236
6237# Different target subdirs use different values of certain variables
6238# (notably CXX). Worse, multilibs use *lots* of different values.
6239# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6240# it doesn't automatically accept command-line overrides of them.
6241# This means it's not safe for target subdirs to share a cache file,
6242# which is disgusting, but there you have it. Hopefully this can be
6243# fixed in future. It's still worthwhile to use a cache file for each
6244# directory. I think.
6245
6246# Pass the appropriate --build, --host, --target and --cache-file arguments.
6247# We need to pass --target, as newer autoconf's requires consistency
6248# for target_alias and gcc doesn't manage it consistently.
6249target_configargs="--cache-file=./config.cache ${target_configargs}"
6250
6251FLAGS_FOR_TARGET=
6252case " $target_configdirs " in
6253 *" newlib "*)
6254 case " $target_configargs " in
6255 *" --with-newlib "*)
6256 case "$target" in
6257 *-cygwin*)
6258 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' ;;
6259 esac
6260
6261 # If we're not building GCC, don't discard standard headers.
6262 if test -d ${srcdir}/gcc; then
6263 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6264
6265 if test "${build}" != "${host}"; then
6266 # On Canadian crosses, CC_FOR_TARGET will have already been set
6267 # by `configure', so we won't have an opportunity to add -Bgcc/
6268 # to it. This is right: we don't want to search that directory
6269 # for binaries, but we want the header files in there, so add
6270 # them explicitly.
6271 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
6272
6273 # Someone might think of using the pre-installed headers on
6274 # Canadian crosses, in case the installed compiler is not fully
6275 # compatible with the compiler being built. In this case, it
6276 # would be better to flag an error than risking having
6277 # incompatible object files being constructed. We can't
6278 # guarantee that an error will be flagged, but let's hope the
6279 # compiler will do it, when presented with incompatible header
6280 # files.
6281 fi
6282 fi
6283
6284 case "${target}-${is_cross_compiler}" in
6285 i[3456789]86-*-linux*-no)
6286 # Here host == target, so we don't need to build gcc,
6287 # so we don't want to discard standard headers.
6288 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6289 ;;
6290 *)
6291 # If we're building newlib, use its generic headers last, but search
6292 # for any libc-related directories first (so make it the last -B
6293 # switch).
6294 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
6295
6296 # If we're building libgloss, find the startup file, simulator library
6297 # and linker script.
6298 case " $target_configdirs " in
6299 *" libgloss "*)
6300 # Look for startup file, simulator library and maybe linker script.
6301 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6302 # Look for libnosys.a in case the target needs it.
6303 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6304 # Most targets have the linker script in the source directory.
6305 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6306 ;;
6307 esac
6308 ;;
6309 esac
6310 ;;
6311 esac
6312 ;;
6313esac
6314case "$target" in
6315*-mingw*)
6316 # Can't be handled as Cygwin above since Mingw does not use newlib.
6317 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' ;;
6318esac
6319
6320# Allow the user to override the flags for
6321# our build compiler if desired.
6322if test x"${build}" = x"${host}" ; then
6323 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6324 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6325 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6326fi
6327
6328# On Canadian crosses, we'll be searching the right directories for
6329# the previously-installed cross compiler, so don't bother to add
6330# flags for directories within the install tree of the compiler
6331# being built; programs in there won't even run.
6332if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6333 # Search for pre-installed headers if nothing else fits.
6334 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
6335fi
6336
6337if test "x${use_gnu_ld}" = x &&
6338 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6339 # Arrange for us to find uninstalled linker scripts.
6340 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
6341fi
6342
6343# Search for other target-specific linker scripts and such.
6344case "${target}" in
6345 mep*)
6346 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6347 ;;
6348esac
6349
6350# Makefile fragments.
6351for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6352do
6353 eval fragval=\$$frag
6354 if test $fragval != /dev/null; then
6355 eval $frag=${srcdir}/$fragval
6356 fi
6357done
6358
6359
6360
6361
6362
6363# Miscellanea: directories, flags, etc.
6364
6365
6366
6367
6368
6369
6370
6371
6372# Build module lists & subconfigure args.
6373
6374
6375
6376# Host module lists & subconfigure args.
6377
6378
6379
6380# Target module lists & subconfigure args.
6381
6382
6383
6384# Build tools.
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402# Generate default definitions for YACC, M4, LEX and other programs that run
6403# on the build machine. These are used if the Makefile can't locate these
6404# programs in objdir.
6405MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6406
6407for ac_prog in 'bison -y' byacc yacc
6408do
6409 # Extract the first word of "$ac_prog", so it can be a program name with args.
6410set dummy $ac_prog; ac_word=$2
6411echo "$as_me:$LINENO: checking for $ac_word" >&5
6412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6413if test "${ac_cv_prog_YACC+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6415else
6416 if test -n "$YACC"; then
6417 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6418else
6419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420for as_dir in $PATH
6421do
6422 IFS=$as_save_IFS
6423 test -z "$as_dir" && as_dir=.
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6426 ac_cv_prog_YACC="$ac_prog"
6427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 break 2
6429 fi
6430done
6431done
6432
6433fi
6434fi
6435YACC=$ac_cv_prog_YACC
6436if test -n "$YACC"; then
6437 echo "$as_me:$LINENO: result: $YACC" >&5
6438echo "${ECHO_T}$YACC" >&6
6439else
6440 echo "$as_me:$LINENO: result: no" >&5
6441echo "${ECHO_T}no" >&6
6442fi
6443
6444 test -n "$YACC" && break
6445done
6446test -n "$YACC" || YACC="$MISSING bison -y"
6447
6448case " $build_configdirs " in
6449 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6450 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6451esac
6452
6453for ac_prog in bison
6454do
6455 # Extract the first word of "$ac_prog", so it can be a program name with args.
6456set dummy $ac_prog; ac_word=$2
6457echo "$as_me:$LINENO: checking for $ac_word" >&5
6458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6459if test "${ac_cv_prog_BISON+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461else
6462 if test -n "$BISON"; then
6463 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6464else
6465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466for as_dir in $PATH
6467do
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6472 ac_cv_prog_BISON="$ac_prog"
6473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 break 2
6475 fi
6476done
6477done
6478
6479fi
6480fi
6481BISON=$ac_cv_prog_BISON
6482if test -n "$BISON"; then
6483 echo "$as_me:$LINENO: result: $BISON" >&5
6484echo "${ECHO_T}$BISON" >&6
6485else
6486 echo "$as_me:$LINENO: result: no" >&5
6487echo "${ECHO_T}no" >&6
6488fi
6489
6490 test -n "$BISON" && break
6491done
6492test -n "$BISON" || BISON="$MISSING bison"
6493
6494case " $build_configdirs " in
6495 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6496esac
6497
6498for ac_prog in gm4 gnum4 m4
6499do
6500 # Extract the first word of "$ac_prog", so it can be a program name with args.
6501set dummy $ac_prog; ac_word=$2
6502echo "$as_me:$LINENO: checking for $ac_word" >&5
6503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6504if test "${ac_cv_prog_M4+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506else
6507 if test -n "$M4"; then
6508 ac_cv_prog_M4="$M4" # Let the user override the test.
6509else
6510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511for as_dir in $PATH
6512do
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517 ac_cv_prog_M4="$ac_prog"
6518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6520 fi
6521done
6522done
6523
6524fi
6525fi
6526M4=$ac_cv_prog_M4
6527if test -n "$M4"; then
6528 echo "$as_me:$LINENO: result: $M4" >&5
6529echo "${ECHO_T}$M4" >&6
6530else
6531 echo "$as_me:$LINENO: result: no" >&5
6532echo "${ECHO_T}no" >&6
6533fi
6534
6535 test -n "$M4" && break
6536done
6537test -n "$M4" || M4="$MISSING m4"
6538
6539case " $build_configdirs " in
6540 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6541esac
6542
6543for ac_prog in flex lex
6544do
6545 # Extract the first word of "$ac_prog", so it can be a program name with args.
6546set dummy $ac_prog; ac_word=$2
6547echo "$as_me:$LINENO: checking for $ac_word" >&5
6548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6549if test "${ac_cv_prog_LEX+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6551else
6552 if test -n "$LEX"; then
6553 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6554else
6555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556for as_dir in $PATH
6557do
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562 ac_cv_prog_LEX="$ac_prog"
6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 break 2
6565 fi
6566done
6567done
6568
6569fi
6570fi
6571LEX=$ac_cv_prog_LEX
6572if test -n "$LEX"; then
6573 echo "$as_me:$LINENO: result: $LEX" >&5
6574echo "${ECHO_T}$LEX" >&6
6575else
6576 echo "$as_me:$LINENO: result: no" >&5
6577echo "${ECHO_T}no" >&6
6578fi
6579
6580 test -n "$LEX" && break
6581done
6582test -n "$LEX" || LEX="$MISSING flex"
6583
6584case " $build_configdirs " in
6585 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6586 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6587esac
6588
6589for ac_prog in flex
6590do
6591 # Extract the first word of "$ac_prog", so it can be a program name with args.
6592set dummy $ac_prog; ac_word=$2
6593echo "$as_me:$LINENO: checking for $ac_word" >&5
6594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6595if test "${ac_cv_prog_FLEX+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6597else
6598 if test -n "$FLEX"; then
6599 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6600else
6601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602for as_dir in $PATH
6603do
6604 IFS=$as_save_IFS
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6608 ac_cv_prog_FLEX="$ac_prog"
6609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 break 2
6611 fi
6612done
6613done
6614
6615fi
6616fi
6617FLEX=$ac_cv_prog_FLEX
6618if test -n "$FLEX"; then
6619 echo "$as_me:$LINENO: result: $FLEX" >&5
6620echo "${ECHO_T}$FLEX" >&6
6621else
6622 echo "$as_me:$LINENO: result: no" >&5
6623echo "${ECHO_T}no" >&6
6624fi
6625
6626 test -n "$FLEX" && break
6627done
6628test -n "$FLEX" || FLEX="$MISSING flex"
6629
6630case " $build_configdirs " in
6631 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6632esac
6633
6634for ac_prog in makeinfo
6635do
6636 # Extract the first word of "$ac_prog", so it can be a program name with args.
6637set dummy $ac_prog; ac_word=$2
6638echo "$as_me:$LINENO: checking for $ac_word" >&5
6639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6640if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642else
6643 if test -n "$MAKEINFO"; then
6644 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6645else
6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in $PATH
6648do
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6653 ac_cv_prog_MAKEINFO="$ac_prog"
6654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 break 2
6656 fi
6657done
6658done
6659
6660fi
6661fi
6662MAKEINFO=$ac_cv_prog_MAKEINFO
6663if test -n "$MAKEINFO"; then
6664 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6665echo "${ECHO_T}$MAKEINFO" >&6
6666else
6667 echo "$as_me:$LINENO: result: no" >&5
6668echo "${ECHO_T}no" >&6
6669fi
6670
6671 test -n "$MAKEINFO" && break
6672done
6673test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6674
6675case " $build_configdirs " in
6676 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6677 *)
6678
6679 # For an installed makeinfo, we require it to be from texinfo 4.7 or
6680 # higher, else we use the "missing" dummy.
6681 if ${MAKEINFO} --version \
6682 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
6683 :
6684 else
6685 MAKEINFO="$MISSING makeinfo"
6686 fi
6687 ;;
6688
6689esac
6690
6691# FIXME: expect and dejagnu may become build tools?
6692
6693for ac_prog in expect
6694do
6695 # Extract the first word of "$ac_prog", so it can be a program name with args.
6696set dummy $ac_prog; ac_word=$2
6697echo "$as_me:$LINENO: checking for $ac_word" >&5
6698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6699if test "${ac_cv_prog_EXPECT+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701else
6702 if test -n "$EXPECT"; then
6703 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6704else
6705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706for as_dir in $PATH
6707do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_EXPECT="$ac_prog"
6713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716done
6717done
6718
6719fi
6720fi
6721EXPECT=$ac_cv_prog_EXPECT
6722if test -n "$EXPECT"; then
6723 echo "$as_me:$LINENO: result: $EXPECT" >&5
6724echo "${ECHO_T}$EXPECT" >&6
6725else
6726 echo "$as_me:$LINENO: result: no" >&5
6727echo "${ECHO_T}no" >&6
6728fi
6729
6730 test -n "$EXPECT" && break
6731done
6732test -n "$EXPECT" || EXPECT="expect"
6733
6734case " $configdirs " in
6735 *" expect "*)
6736 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6737 ;;
6738esac
6739
6740for ac_prog in runtest
6741do
6742 # Extract the first word of "$ac_prog", so it can be a program name with args.
6743set dummy $ac_prog; ac_word=$2
6744echo "$as_me:$LINENO: checking for $ac_word" >&5
6745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6746if test "${ac_cv_prog_RUNTEST+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748else
6749 if test -n "$RUNTEST"; then
6750 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6751else
6752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753for as_dir in $PATH
6754do
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759 ac_cv_prog_RUNTEST="$ac_prog"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6762 fi
6763done
6764done
6765
6766fi
6767fi
6768RUNTEST=$ac_cv_prog_RUNTEST
6769if test -n "$RUNTEST"; then
6770 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6771echo "${ECHO_T}$RUNTEST" >&6
6772else
6773 echo "$as_me:$LINENO: result: no" >&5
6774echo "${ECHO_T}no" >&6
6775fi
6776
6777 test -n "$RUNTEST" && break
6778done
6779test -n "$RUNTEST" || RUNTEST="runtest"
6780
6781case " $configdirs " in
6782 *" dejagnu "*)
6783 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6784 ;;
6785esac
6786
6787
6788# Host tools.
6789ncn_tool_prefix=
6790test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6791ncn_target_tool_prefix=
6792test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6793
6794
6795
6796if test -n "$AR"; then
6797 ac_cv_prog_AR=$AR
6798elif test -n "$ac_cv_prog_AR"; then
6799 AR=$ac_cv_prog_AR
6800fi
6801
6802if test -n "$ac_cv_prog_AR"; then
6803 for ncn_progname in ar; do
6804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6805set dummy ${ncn_progname}; ac_word=$2
6806echo "$as_me:$LINENO: checking for $ac_word" >&5
6807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6808if test "${ac_cv_prog_AR+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6810else
6811 if test -n "$AR"; then
6812 ac_cv_prog_AR="$AR" # Let the user override the test.
6813else
6814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815for as_dir in $PATH
6816do
6817 IFS=$as_save_IFS
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6821 ac_cv_prog_AR="${ncn_progname}"
6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 break 2
6824 fi
6825done
6826done
6827
6828fi
6829fi
6830AR=$ac_cv_prog_AR
6831if test -n "$AR"; then
6832 echo "$as_me:$LINENO: result: $AR" >&5
6833echo "${ECHO_T}$AR" >&6
6834else
6835 echo "$as_me:$LINENO: result: no" >&5
6836echo "${ECHO_T}no" >&6
6837fi
6838
6839 done
6840fi
6841
6842for ncn_progname in ar; do
6843 if test -n "$ncn_tool_prefix"; then
6844 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6845set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6846echo "$as_me:$LINENO: checking for $ac_word" >&5
6847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6848if test "${ac_cv_prog_AR+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850else
6851 if test -n "$AR"; then
6852 ac_cv_prog_AR="$AR" # Let the user override the test.
6853else
6854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855for as_dir in $PATH
6856do
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6861 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 break 2
6864 fi
6865done
6866done
6867
6868fi
6869fi
6870AR=$ac_cv_prog_AR
6871if test -n "$AR"; then
6872 echo "$as_me:$LINENO: result: $AR" >&5
6873echo "${ECHO_T}$AR" >&6
6874else
6875 echo "$as_me:$LINENO: result: no" >&5
6876echo "${ECHO_T}no" >&6
6877fi
6878
6879 fi
6880 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6881 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6882set dummy ${ncn_progname}; ac_word=$2
6883echo "$as_me:$LINENO: checking for $ac_word" >&5
6884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6885if test "${ac_cv_prog_AR+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6887else
6888 if test -n "$AR"; then
6889 ac_cv_prog_AR="$AR" # Let the user override the test.
6890else
6891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892for as_dir in $PATH
6893do
6894 IFS=$as_save_IFS
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898 ac_cv_prog_AR="${ncn_progname}"
6899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 break 2
6901 fi
6902done
6903done
6904
6905fi
6906fi
6907AR=$ac_cv_prog_AR
6908if test -n "$AR"; then
6909 echo "$as_me:$LINENO: result: $AR" >&5
6910echo "${ECHO_T}$AR" >&6
6911else
6912 echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6
6914fi
6915
6916 fi
6917 test -n "$ac_cv_prog_AR" && break
6918done
6919
6920if test -z "$ac_cv_prog_AR" ; then
6921 set dummy ar
6922 if test $build = $host ; then
6923 AR="$2"
6924 else
6925 AR="${ncn_tool_prefix}$2"
6926 fi
6927fi
6928
6929
6930
6931if test -n "$AS"; then
6932 ac_cv_prog_AS=$AS
6933elif test -n "$ac_cv_prog_AS"; then
6934 AS=$ac_cv_prog_AS
6935fi
6936
6937if test -n "$ac_cv_prog_AS"; then
6938 for ncn_progname in as; do
6939 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6940set dummy ${ncn_progname}; ac_word=$2
6941echo "$as_me:$LINENO: checking for $ac_word" >&5
6942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6943if test "${ac_cv_prog_AS+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6945else
6946 if test -n "$AS"; then
6947 ac_cv_prog_AS="$AS" # Let the user override the test.
6948else
6949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6956 ac_cv_prog_AS="${ncn_progname}"
6957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960done
6961done
6962
6963fi
6964fi
6965AS=$ac_cv_prog_AS
6966if test -n "$AS"; then
6967 echo "$as_me:$LINENO: result: $AS" >&5
6968echo "${ECHO_T}$AS" >&6
6969else
6970 echo "$as_me:$LINENO: result: no" >&5
6971echo "${ECHO_T}no" >&6
6972fi
6973
6974 done
6975fi
6976
6977for ncn_progname in as; do
6978 if test -n "$ncn_tool_prefix"; then
6979 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6980set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6981echo "$as_me:$LINENO: checking for $ac_word" >&5
6982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6983if test "${ac_cv_prog_AS+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985else
6986 if test -n "$AS"; then
6987 ac_cv_prog_AS="$AS" # Let the user override the test.
6988else
6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
6999 fi
7000done
7001done
7002
7003fi
7004fi
7005AS=$ac_cv_prog_AS
7006if test -n "$AS"; then
7007 echo "$as_me:$LINENO: result: $AS" >&5
7008echo "${ECHO_T}$AS" >&6
7009else
7010 echo "$as_me:$LINENO: result: no" >&5
7011echo "${ECHO_T}no" >&6
7012fi
7013
7014 fi
7015 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7017set dummy ${ncn_progname}; ac_word=$2
7018echo "$as_me:$LINENO: checking for $ac_word" >&5
7019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7020if test "${ac_cv_prog_AS+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022else
7023 if test -n "$AS"; then
7024 ac_cv_prog_AS="$AS" # Let the user override the test.
7025else
7026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027for as_dir in $PATH
7028do
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7033 ac_cv_prog_AS="${ncn_progname}"
7034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7036 fi
7037done
7038done
7039
7040fi
7041fi
7042AS=$ac_cv_prog_AS
7043if test -n "$AS"; then
7044 echo "$as_me:$LINENO: result: $AS" >&5
7045echo "${ECHO_T}$AS" >&6
7046else
7047 echo "$as_me:$LINENO: result: no" >&5
7048echo "${ECHO_T}no" >&6
7049fi
7050
7051 fi
7052 test -n "$ac_cv_prog_AS" && break
7053done
7054
7055if test -z "$ac_cv_prog_AS" ; then
7056 set dummy as
7057 if test $build = $host ; then
7058 AS="$2"
7059 else
7060 AS="${ncn_tool_prefix}$2"
7061 fi
7062fi
7063
7064
7065
7066if test -n "$DLLTOOL"; then
7067 ac_cv_prog_DLLTOOL=$DLLTOOL
7068elif test -n "$ac_cv_prog_DLLTOOL"; then
7069 DLLTOOL=$ac_cv_prog_DLLTOOL
7070fi
7071
7072if test -n "$ac_cv_prog_DLLTOOL"; then
7073 for ncn_progname in dlltool; do
7074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7075set dummy ${ncn_progname}; ac_word=$2
7076echo "$as_me:$LINENO: checking for $ac_word" >&5
7077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7078if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080else
7081 if test -n "$DLLTOOL"; then
7082 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7083else
7084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085for as_dir in $PATH
7086do
7087 IFS=$as_save_IFS
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7091 ac_cv_prog_DLLTOOL="${ncn_progname}"
7092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 break 2
7094 fi
7095done
7096done
7097
7098fi
7099fi
7100DLLTOOL=$ac_cv_prog_DLLTOOL
7101if test -n "$DLLTOOL"; then
7102 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7103echo "${ECHO_T}$DLLTOOL" >&6
7104else
7105 echo "$as_me:$LINENO: result: no" >&5
7106echo "${ECHO_T}no" >&6
7107fi
7108
7109 done
7110fi
7111
7112for ncn_progname in dlltool; do
7113 if test -n "$ncn_tool_prefix"; then
7114 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7115set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7116echo "$as_me:$LINENO: checking for $ac_word" >&5
7117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7118if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7120else
7121 if test -n "$DLLTOOL"; then
7122 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7123else
7124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125for as_dir in $PATH
7126do
7127 IFS=$as_save_IFS
7128 test -z "$as_dir" && as_dir=.
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 break 2
7134 fi
7135done
7136done
7137
7138fi
7139fi
7140DLLTOOL=$ac_cv_prog_DLLTOOL
7141if test -n "$DLLTOOL"; then
7142 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7143echo "${ECHO_T}$DLLTOOL" >&6
7144else
7145 echo "$as_me:$LINENO: result: no" >&5
7146echo "${ECHO_T}no" >&6
7147fi
7148
7149 fi
7150 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7152set dummy ${ncn_progname}; ac_word=$2
7153echo "$as_me:$LINENO: checking for $ac_word" >&5
7154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7155if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7157else
7158 if test -n "$DLLTOOL"; then
7159 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7160else
7161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162for as_dir in $PATH
7163do
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7168 ac_cv_prog_DLLTOOL="${ncn_progname}"
7169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 break 2
7171 fi
7172done
7173done
7174
7175fi
7176fi
7177DLLTOOL=$ac_cv_prog_DLLTOOL
7178if test -n "$DLLTOOL"; then
7179 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7180echo "${ECHO_T}$DLLTOOL" >&6
7181else
7182 echo "$as_me:$LINENO: result: no" >&5
7183echo "${ECHO_T}no" >&6
7184fi
7185
7186 fi
7187 test -n "$ac_cv_prog_DLLTOOL" && break
7188done
7189
7190if test -z "$ac_cv_prog_DLLTOOL" ; then
7191 set dummy dlltool
7192 if test $build = $host ; then
7193 DLLTOOL="$2"
7194 else
7195 DLLTOOL="${ncn_tool_prefix}$2"
7196 fi
7197fi
7198
7199
7200
7201if test -n "$LD"; then
7202 ac_cv_prog_LD=$LD
7203elif test -n "$ac_cv_prog_LD"; then
7204 LD=$ac_cv_prog_LD
7205fi
7206
7207if test -n "$ac_cv_prog_LD"; then
7208 for ncn_progname in ld; do
7209 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7210set dummy ${ncn_progname}; ac_word=$2
7211echo "$as_me:$LINENO: checking for $ac_word" >&5
7212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7213if test "${ac_cv_prog_LD+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7215else
7216 if test -n "$LD"; then
7217 ac_cv_prog_LD="$LD" # Let the user override the test.
7218else
7219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220for as_dir in $PATH
7221do
7222 IFS=$as_save_IFS
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226 ac_cv_prog_LD="${ncn_progname}"
7227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 break 2
7229 fi
7230done
7231done
7232
7233fi
7234fi
7235LD=$ac_cv_prog_LD
7236if test -n "$LD"; then
7237 echo "$as_me:$LINENO: result: $LD" >&5
7238echo "${ECHO_T}$LD" >&6
7239else
7240 echo "$as_me:$LINENO: result: no" >&5
7241echo "${ECHO_T}no" >&6
7242fi
7243
7244 done
7245fi
7246
7247for ncn_progname in ld; do
7248 if test -n "$ncn_tool_prefix"; then
7249 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7250set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7251echo "$as_me:$LINENO: checking for $ac_word" >&5
7252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7253if test "${ac_cv_prog_LD+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255else
7256 if test -n "$LD"; then
7257 ac_cv_prog_LD="$LD" # Let the user override the test.
7258else
7259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260for as_dir in $PATH
7261do
7262 IFS=$as_save_IFS
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 break 2
7269 fi
7270done
7271done
7272
7273fi
7274fi
7275LD=$ac_cv_prog_LD
7276if test -n "$LD"; then
7277 echo "$as_me:$LINENO: result: $LD" >&5
7278echo "${ECHO_T}$LD" >&6
7279else
7280 echo "$as_me:$LINENO: result: no" >&5
7281echo "${ECHO_T}no" >&6
7282fi
7283
7284 fi
7285 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7287set dummy ${ncn_progname}; ac_word=$2
7288echo "$as_me:$LINENO: checking for $ac_word" >&5
7289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7290if test "${ac_cv_prog_LD+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7292else
7293 if test -n "$LD"; then
7294 ac_cv_prog_LD="$LD" # Let the user override the test.
7295else
7296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297for as_dir in $PATH
7298do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7303 ac_cv_prog_LD="${ncn_progname}"
7304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 break 2
7306 fi
7307done
7308done
7309
7310fi
7311fi
7312LD=$ac_cv_prog_LD
7313if test -n "$LD"; then
7314 echo "$as_me:$LINENO: result: $LD" >&5
7315echo "${ECHO_T}$LD" >&6
7316else
7317 echo "$as_me:$LINENO: result: no" >&5
7318echo "${ECHO_T}no" >&6
7319fi
7320
7321 fi
7322 test -n "$ac_cv_prog_LD" && break
7323done
7324
7325if test -z "$ac_cv_prog_LD" ; then
7326 set dummy ld
7327 if test $build = $host ; then
7328 LD="$2"
7329 else
7330 LD="${ncn_tool_prefix}$2"
7331 fi
7332fi
7333
7334
7335
7336if test -n "$LIPO"; then
7337 ac_cv_prog_LIPO=$LIPO
7338elif test -n "$ac_cv_prog_LIPO"; then
7339 LIPO=$ac_cv_prog_LIPO
7340fi
7341
7342if test -n "$ac_cv_prog_LIPO"; then
7343 for ncn_progname in lipo; do
7344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7345set dummy ${ncn_progname}; ac_word=$2
7346echo "$as_me:$LINENO: checking for $ac_word" >&5
7347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7348if test "${ac_cv_prog_LIPO+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350else
7351 if test -n "$LIPO"; then
7352 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7353else
7354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361 ac_cv_prog_LIPO="${ncn_progname}"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7364 fi
7365done
7366done
7367
7368fi
7369fi
7370LIPO=$ac_cv_prog_LIPO
7371if test -n "$LIPO"; then
7372 echo "$as_me:$LINENO: result: $LIPO" >&5
7373echo "${ECHO_T}$LIPO" >&6
7374else
7375 echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6
7377fi
7378
7379 done
7380fi
7381
7382for ncn_progname in lipo; do
7383 if test -n "$ncn_tool_prefix"; then
7384 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7385set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7386echo "$as_me:$LINENO: checking for $ac_word" >&5
7387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7388if test "${ac_cv_prog_LIPO+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390else
7391 if test -n "$LIPO"; then
7392 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7393else
7394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH
7396do
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 break 2
7404 fi
7405done
7406done
7407
7408fi
7409fi
7410LIPO=$ac_cv_prog_LIPO
7411if test -n "$LIPO"; then
7412 echo "$as_me:$LINENO: result: $LIPO" >&5
7413echo "${ECHO_T}$LIPO" >&6
7414else
7415 echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6
7417fi
7418
7419 fi
7420 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7422set dummy ${ncn_progname}; ac_word=$2
7423echo "$as_me:$LINENO: checking for $ac_word" >&5
7424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7425if test "${ac_cv_prog_LIPO+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7427else
7428 if test -n "$LIPO"; then
7429 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7430else
7431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432for as_dir in $PATH
7433do
7434 IFS=$as_save_IFS
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7438 ac_cv_prog_LIPO="${ncn_progname}"
7439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 break 2
7441 fi
7442done
7443done
7444
7445fi
7446fi
7447LIPO=$ac_cv_prog_LIPO
7448if test -n "$LIPO"; then
7449 echo "$as_me:$LINENO: result: $LIPO" >&5
7450echo "${ECHO_T}$LIPO" >&6
7451else
7452 echo "$as_me:$LINENO: result: no" >&5
7453echo "${ECHO_T}no" >&6
7454fi
7455
7456 fi
7457 test -n "$ac_cv_prog_LIPO" && break
7458done
7459
7460if test -z "$ac_cv_prog_LIPO" ; then
7461 set dummy lipo
7462 if test $build = $host ; then
7463 LIPO="$2"
7464 else
7465 LIPO="${ncn_tool_prefix}$2"
7466 fi
7467fi
7468
7469
7470
7471if test -n "$NM"; then
7472 ac_cv_prog_NM=$NM
7473elif test -n "$ac_cv_prog_NM"; then
7474 NM=$ac_cv_prog_NM
7475fi
7476
7477if test -n "$ac_cv_prog_NM"; then
7478 for ncn_progname in nm; do
7479 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7480set dummy ${ncn_progname}; ac_word=$2
7481echo "$as_me:$LINENO: checking for $ac_word" >&5
7482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7483if test "${ac_cv_prog_NM+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7485else
7486 if test -n "$NM"; then
7487 ac_cv_prog_NM="$NM" # Let the user override the test.
7488else
7489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490for as_dir in $PATH
7491do
7492 IFS=$as_save_IFS
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7496 ac_cv_prog_NM="${ncn_progname}"
7497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 break 2
7499 fi
7500done
7501done
7502
7503fi
7504fi
7505NM=$ac_cv_prog_NM
7506if test -n "$NM"; then
7507 echo "$as_me:$LINENO: result: $NM" >&5
7508echo "${ECHO_T}$NM" >&6
7509else
7510 echo "$as_me:$LINENO: result: no" >&5
7511echo "${ECHO_T}no" >&6
7512fi
7513
7514 done
7515fi
7516
7517for ncn_progname in nm; do
7518 if test -n "$ncn_tool_prefix"; then
7519 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7520set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7521echo "$as_me:$LINENO: checking for $ac_word" >&5
7522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7523if test "${ac_cv_prog_NM+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7525else
7526 if test -n "$NM"; then
7527 ac_cv_prog_NM="$NM" # Let the user override the test.
7528else
7529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530for as_dir in $PATH
7531do
7532 IFS=$as_save_IFS
7533 test -z "$as_dir" && as_dir=.
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7536 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
7537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 break 2
7539 fi
7540done
7541done
7542
7543fi
7544fi
7545NM=$ac_cv_prog_NM
7546if test -n "$NM"; then
7547 echo "$as_me:$LINENO: result: $NM" >&5
7548echo "${ECHO_T}$NM" >&6
7549else
7550 echo "$as_me:$LINENO: result: no" >&5
7551echo "${ECHO_T}no" >&6
7552fi
7553
7554 fi
7555 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7557set dummy ${ncn_progname}; ac_word=$2
7558echo "$as_me:$LINENO: checking for $ac_word" >&5
7559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7560if test "${ac_cv_prog_NM+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562else
7563 if test -n "$NM"; then
7564 ac_cv_prog_NM="$NM" # Let the user override the test.
7565else
7566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567for as_dir in $PATH
7568do
7569 IFS=$as_save_IFS
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7573 ac_cv_prog_NM="${ncn_progname}"
7574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 break 2
7576 fi
7577done
7578done
7579
7580fi
7581fi
7582NM=$ac_cv_prog_NM
7583if test -n "$NM"; then
7584 echo "$as_me:$LINENO: result: $NM" >&5
7585echo "${ECHO_T}$NM" >&6
7586else
7587 echo "$as_me:$LINENO: result: no" >&5
7588echo "${ECHO_T}no" >&6
7589fi
7590
7591 fi
7592 test -n "$ac_cv_prog_NM" && break
7593done
7594
7595if test -z "$ac_cv_prog_NM" ; then
7596 set dummy nm
7597 if test $build = $host ; then
7598 NM="$2"
7599 else
7600 NM="${ncn_tool_prefix}$2"
7601 fi
7602fi
7603
7604
7605
7606if test -n "$RANLIB"; then
7607 ac_cv_prog_RANLIB=$RANLIB
7608elif test -n "$ac_cv_prog_RANLIB"; then
7609 RANLIB=$ac_cv_prog_RANLIB
7610fi
7611
7612if test -n "$ac_cv_prog_RANLIB"; then
7613 for ncn_progname in ranlib; do
7614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7615set dummy ${ncn_progname}; ac_word=$2
7616echo "$as_me:$LINENO: checking for $ac_word" >&5
7617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7618if test "${ac_cv_prog_RANLIB+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7620else
7621 if test -n "$RANLIB"; then
7622 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7623else
7624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625for as_dir in $PATH
7626do
7627 IFS=$as_save_IFS
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7631 ac_cv_prog_RANLIB="${ncn_progname}"
7632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 break 2
7634 fi
7635done
7636done
7637
7638fi
7639fi
7640RANLIB=$ac_cv_prog_RANLIB
7641if test -n "$RANLIB"; then
7642 echo "$as_me:$LINENO: result: $RANLIB" >&5
7643echo "${ECHO_T}$RANLIB" >&6
7644else
7645 echo "$as_me:$LINENO: result: no" >&5
7646echo "${ECHO_T}no" >&6
7647fi
7648
7649 done
7650fi
7651
7652for ncn_progname in ranlib; do
7653 if test -n "$ncn_tool_prefix"; then
7654 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7655set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7656echo "$as_me:$LINENO: checking for $ac_word" >&5
7657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7658if test "${ac_cv_prog_RANLIB+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7660else
7661 if test -n "$RANLIB"; then
7662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7663else
7664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665for as_dir in $PATH
7666do
7667 IFS=$as_save_IFS
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7671 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 break 2
7674 fi
7675done
7676done
7677
7678fi
7679fi
7680RANLIB=$ac_cv_prog_RANLIB
7681if test -n "$RANLIB"; then
7682 echo "$as_me:$LINENO: result: $RANLIB" >&5
7683echo "${ECHO_T}$RANLIB" >&6
7684else
7685 echo "$as_me:$LINENO: result: no" >&5
7686echo "${ECHO_T}no" >&6
7687fi
7688
7689 fi
7690 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7692set dummy ${ncn_progname}; ac_word=$2
7693echo "$as_me:$LINENO: checking for $ac_word" >&5
7694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7695if test "${ac_cv_prog_RANLIB+set}" = set; then
7696 echo $ECHO_N "(cached) $ECHO_C" >&6
7697else
7698 if test -n "$RANLIB"; then
7699 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7700else
7701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702for as_dir in $PATH
7703do
7704 IFS=$as_save_IFS
7705 test -z "$as_dir" && as_dir=.
7706 for ac_exec_ext in '' $ac_executable_extensions; do
7707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7708 ac_cv_prog_RANLIB="${ncn_progname}"
7709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7710 break 2
7711 fi
7712done
7713done
7714
7715fi
7716fi
7717RANLIB=$ac_cv_prog_RANLIB
7718if test -n "$RANLIB"; then
7719 echo "$as_me:$LINENO: result: $RANLIB" >&5
7720echo "${ECHO_T}$RANLIB" >&6
7721else
7722 echo "$as_me:$LINENO: result: no" >&5
7723echo "${ECHO_T}no" >&6
7724fi
7725
7726 fi
7727 test -n "$ac_cv_prog_RANLIB" && break
7728done
7729
7730if test -z "$ac_cv_prog_RANLIB" ; then
7731 RANLIB=":"
7732fi
7733
7734
7735
7736if test -n "$STRIP"; then
7737 ac_cv_prog_STRIP=$STRIP
7738elif test -n "$ac_cv_prog_STRIP"; then
7739 STRIP=$ac_cv_prog_STRIP
7740fi
7741
7742if test -n "$ac_cv_prog_STRIP"; then
7743 for ncn_progname in strip; do
7744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7745set dummy ${ncn_progname}; ac_word=$2
7746echo "$as_me:$LINENO: checking for $ac_word" >&5
7747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7748if test "${ac_cv_prog_STRIP+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7750else
7751 if test -n "$STRIP"; then
7752 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7753else
7754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755for as_dir in $PATH
7756do
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7761 ac_cv_prog_STRIP="${ncn_progname}"
7762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 break 2
7764 fi
7765done
7766done
7767
7768fi
7769fi
7770STRIP=$ac_cv_prog_STRIP
7771if test -n "$STRIP"; then
7772 echo "$as_me:$LINENO: result: $STRIP" >&5
7773echo "${ECHO_T}$STRIP" >&6
7774else
7775 echo "$as_me:$LINENO: result: no" >&5
7776echo "${ECHO_T}no" >&6
7777fi
7778
7779 done
7780fi
7781
7782for ncn_progname in strip; do
7783 if test -n "$ncn_tool_prefix"; then
7784 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7785set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7786echo "$as_me:$LINENO: checking for $ac_word" >&5
7787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7788if test "${ac_cv_prog_STRIP+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790else
7791 if test -n "$STRIP"; then
7792 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7793else
7794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795for as_dir in $PATH
7796do
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7801 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 break 2
7804 fi
7805done
7806done
7807
7808fi
7809fi
7810STRIP=$ac_cv_prog_STRIP
7811if test -n "$STRIP"; then
7812 echo "$as_me:$LINENO: result: $STRIP" >&5
7813echo "${ECHO_T}$STRIP" >&6
7814else
7815 echo "$as_me:$LINENO: result: no" >&5
7816echo "${ECHO_T}no" >&6
7817fi
7818
7819 fi
7820 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7822set dummy ${ncn_progname}; ac_word=$2
7823echo "$as_me:$LINENO: checking for $ac_word" >&5
7824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7825if test "${ac_cv_prog_STRIP+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7827else
7828 if test -n "$STRIP"; then
7829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7830else
7831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832for as_dir in $PATH
7833do
7834 IFS=$as_save_IFS
7835 test -z "$as_dir" && as_dir=.
7836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7838 ac_cv_prog_STRIP="${ncn_progname}"
7839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7840 break 2
7841 fi
7842done
7843done
7844
7845fi
7846fi
7847STRIP=$ac_cv_prog_STRIP
7848if test -n "$STRIP"; then
7849 echo "$as_me:$LINENO: result: $STRIP" >&5
7850echo "${ECHO_T}$STRIP" >&6
7851else
7852 echo "$as_me:$LINENO: result: no" >&5
7853echo "${ECHO_T}no" >&6
7854fi
7855
7856 fi
7857 test -n "$ac_cv_prog_STRIP" && break
7858done
7859
7860if test -z "$ac_cv_prog_STRIP" ; then
7861 STRIP=":"
7862fi
7863
7864
7865
7866if test -n "$WINDRES"; then
7867 ac_cv_prog_WINDRES=$WINDRES
7868elif test -n "$ac_cv_prog_WINDRES"; then
7869 WINDRES=$ac_cv_prog_WINDRES
7870fi
7871
7872if test -n "$ac_cv_prog_WINDRES"; then
7873 for ncn_progname in windres; do
7874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7875set dummy ${ncn_progname}; ac_word=$2
7876echo "$as_me:$LINENO: checking for $ac_word" >&5
7877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7878if test "${ac_cv_prog_WINDRES+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7880else
7881 if test -n "$WINDRES"; then
7882 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7883else
7884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885for as_dir in $PATH
7886do
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7891 ac_cv_prog_WINDRES="${ncn_progname}"
7892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 break 2
7894 fi
7895done
7896done
7897
7898fi
7899fi
7900WINDRES=$ac_cv_prog_WINDRES
7901if test -n "$WINDRES"; then
7902 echo "$as_me:$LINENO: result: $WINDRES" >&5
7903echo "${ECHO_T}$WINDRES" >&6
7904else
7905 echo "$as_me:$LINENO: result: no" >&5
7906echo "${ECHO_T}no" >&6
7907fi
7908
7909 done
7910fi
7911
7912for ncn_progname in windres; do
7913 if test -n "$ncn_tool_prefix"; then
7914 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7915set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7916echo "$as_me:$LINENO: checking for $ac_word" >&5
7917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7918if test "${ac_cv_prog_WINDRES+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920else
7921 if test -n "$WINDRES"; then
7922 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7923else
7924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925for as_dir in $PATH
7926do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7934 fi
7935done
7936done
7937
7938fi
7939fi
7940WINDRES=$ac_cv_prog_WINDRES
7941if test -n "$WINDRES"; then
7942 echo "$as_me:$LINENO: result: $WINDRES" >&5
7943echo "${ECHO_T}$WINDRES" >&6
7944else
7945 echo "$as_me:$LINENO: result: no" >&5
7946echo "${ECHO_T}no" >&6
7947fi
7948
7949 fi
7950 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7951 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7952set dummy ${ncn_progname}; ac_word=$2
7953echo "$as_me:$LINENO: checking for $ac_word" >&5
7954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7955if test "${ac_cv_prog_WINDRES+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7957else
7958 if test -n "$WINDRES"; then
7959 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7960else
7961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962for as_dir in $PATH
7963do
7964 IFS=$as_save_IFS
7965 test -z "$as_dir" && as_dir=.
7966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7968 ac_cv_prog_WINDRES="${ncn_progname}"
7969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 break 2
7971 fi
7972done
7973done
7974
7975fi
7976fi
7977WINDRES=$ac_cv_prog_WINDRES
7978if test -n "$WINDRES"; then
7979 echo "$as_me:$LINENO: result: $WINDRES" >&5
7980echo "${ECHO_T}$WINDRES" >&6
7981else
7982 echo "$as_me:$LINENO: result: no" >&5
7983echo "${ECHO_T}no" >&6
7984fi
7985
7986 fi
7987 test -n "$ac_cv_prog_WINDRES" && break
7988done
7989
7990if test -z "$ac_cv_prog_WINDRES" ; then
7991 set dummy windres
7992 if test $build = $host ; then
7993 WINDRES="$2"
7994 else
7995 WINDRES="${ncn_tool_prefix}$2"
7996 fi
7997fi
7998
7999
8000
8001if test -n "$WINDMC"; then
8002 ac_cv_prog_WINDMC=$WINDMC
8003elif test -n "$ac_cv_prog_WINDMC"; then
8004 WINDMC=$ac_cv_prog_WINDMC
8005fi
8006
8007if test -n "$ac_cv_prog_WINDMC"; then
8008 for ncn_progname in windmc; do
8009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8010set dummy ${ncn_progname}; ac_word=$2
8011echo "$as_me:$LINENO: checking for $ac_word" >&5
8012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8013if test "${ac_cv_prog_WINDMC+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8015else
8016 if test -n "$WINDMC"; then
8017 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8018else
8019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020for as_dir in $PATH
8021do
8022 IFS=$as_save_IFS
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8026 ac_cv_prog_WINDMC="${ncn_progname}"
8027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 break 2
8029 fi
8030done
8031done
8032
8033fi
8034fi
8035WINDMC=$ac_cv_prog_WINDMC
8036if test -n "$WINDMC"; then
8037 echo "$as_me:$LINENO: result: $WINDMC" >&5
8038echo "${ECHO_T}$WINDMC" >&6
8039else
8040 echo "$as_me:$LINENO: result: no" >&5
8041echo "${ECHO_T}no" >&6
8042fi
8043
8044 done
8045fi
8046
8047for ncn_progname in windmc; do
8048 if test -n "$ncn_tool_prefix"; then
8049 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8050set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8051echo "$as_me:$LINENO: checking for $ac_word" >&5
8052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8053if test "${ac_cv_prog_WINDMC+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8055else
8056 if test -n "$WINDMC"; then
8057 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8058else
8059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060for as_dir in $PATH
8061do
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8069 fi
8070done
8071done
8072
8073fi
8074fi
8075WINDMC=$ac_cv_prog_WINDMC
8076if test -n "$WINDMC"; then
8077 echo "$as_me:$LINENO: result: $WINDMC" >&5
8078echo "${ECHO_T}$WINDMC" >&6
8079else
8080 echo "$as_me:$LINENO: result: no" >&5
8081echo "${ECHO_T}no" >&6
8082fi
8083
8084 fi
8085 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8087set dummy ${ncn_progname}; ac_word=$2
8088echo "$as_me:$LINENO: checking for $ac_word" >&5
8089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8090if test "${ac_cv_prog_WINDMC+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8092else
8093 if test -n "$WINDMC"; then
8094 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8095else
8096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097for as_dir in $PATH
8098do
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8103 ac_cv_prog_WINDMC="${ncn_progname}"
8104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 break 2
8106 fi
8107done
8108done
8109
8110fi
8111fi
8112WINDMC=$ac_cv_prog_WINDMC
8113if test -n "$WINDMC"; then
8114 echo "$as_me:$LINENO: result: $WINDMC" >&5
8115echo "${ECHO_T}$WINDMC" >&6
8116else
8117 echo "$as_me:$LINENO: result: no" >&5
8118echo "${ECHO_T}no" >&6
8119fi
8120
8121 fi
8122 test -n "$ac_cv_prog_WINDMC" && break
8123done
8124
8125if test -z "$ac_cv_prog_WINDMC" ; then
8126 set dummy windmc
8127 if test $build = $host ; then
8128 WINDMC="$2"
8129 else
8130 WINDMC="${ncn_tool_prefix}$2"
8131 fi
8132fi
8133
8134
8135
8136if test -n "$OBJCOPY"; then
8137 ac_cv_prog_OBJCOPY=$OBJCOPY
8138elif test -n "$ac_cv_prog_OBJCOPY"; then
8139 OBJCOPY=$ac_cv_prog_OBJCOPY
8140fi
8141
8142if test -n "$ac_cv_prog_OBJCOPY"; then
8143 for ncn_progname in objcopy; do
8144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8145set dummy ${ncn_progname}; ac_word=$2
8146echo "$as_me:$LINENO: checking for $ac_word" >&5
8147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8148if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8150else
8151 if test -n "$OBJCOPY"; then
8152 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8153else
8154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155for as_dir in $PATH
8156do
8157 IFS=$as_save_IFS
8158 test -z "$as_dir" && as_dir=.
8159 for ac_exec_ext in '' $ac_executable_extensions; do
8160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8161 ac_cv_prog_OBJCOPY="${ncn_progname}"
8162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8163 break 2
8164 fi
8165done
8166done
8167
8168fi
8169fi
8170OBJCOPY=$ac_cv_prog_OBJCOPY
8171if test -n "$OBJCOPY"; then
8172 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8173echo "${ECHO_T}$OBJCOPY" >&6
8174else
8175 echo "$as_me:$LINENO: result: no" >&5
8176echo "${ECHO_T}no" >&6
8177fi
8178
8179 done
8180fi
8181
8182for ncn_progname in objcopy; do
8183 if test -n "$ncn_tool_prefix"; then
8184 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8185set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8186echo "$as_me:$LINENO: checking for $ac_word" >&5
8187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8188if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190else
8191 if test -n "$OBJCOPY"; then
8192 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8193else
8194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195for as_dir in $PATH
8196do
8197 IFS=$as_save_IFS
8198 test -z "$as_dir" && as_dir=.
8199 for ac_exec_ext in '' $ac_executable_extensions; do
8200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8201 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8203 break 2
8204 fi
8205done
8206done
8207
8208fi
8209fi
8210OBJCOPY=$ac_cv_prog_OBJCOPY
8211if test -n "$OBJCOPY"; then
8212 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8213echo "${ECHO_T}$OBJCOPY" >&6
8214else
8215 echo "$as_me:$LINENO: result: no" >&5
8216echo "${ECHO_T}no" >&6
8217fi
8218
8219 fi
8220 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8222set dummy ${ncn_progname}; ac_word=$2
8223echo "$as_me:$LINENO: checking for $ac_word" >&5
8224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8225if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227else
8228 if test -n "$OBJCOPY"; then
8229 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8230else
8231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232for as_dir in $PATH
8233do
8234 IFS=$as_save_IFS
8235 test -z "$as_dir" && as_dir=.
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8238 ac_cv_prog_OBJCOPY="${ncn_progname}"
8239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 break 2
8241 fi
8242done
8243done
8244
8245fi
8246fi
8247OBJCOPY=$ac_cv_prog_OBJCOPY
8248if test -n "$OBJCOPY"; then
8249 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8250echo "${ECHO_T}$OBJCOPY" >&6
8251else
8252 echo "$as_me:$LINENO: result: no" >&5
8253echo "${ECHO_T}no" >&6
8254fi
8255
8256 fi
8257 test -n "$ac_cv_prog_OBJCOPY" && break
8258done
8259
8260if test -z "$ac_cv_prog_OBJCOPY" ; then
8261 set dummy objcopy
8262 if test $build = $host ; then
8263 OBJCOPY="$2"
8264 else
8265 OBJCOPY="${ncn_tool_prefix}$2"
8266 fi
8267fi
8268
8269
8270
8271if test -n "$OBJDUMP"; then
8272 ac_cv_prog_OBJDUMP=$OBJDUMP
8273elif test -n "$ac_cv_prog_OBJDUMP"; then
8274 OBJDUMP=$ac_cv_prog_OBJDUMP
8275fi
8276
8277if test -n "$ac_cv_prog_OBJDUMP"; then
8278 for ncn_progname in objdump; do
8279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8280set dummy ${ncn_progname}; ac_word=$2
8281echo "$as_me:$LINENO: checking for $ac_word" >&5
8282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8283if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8285else
8286 if test -n "$OBJDUMP"; then
8287 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8288else
8289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290for as_dir in $PATH
8291do
8292 IFS=$as_save_IFS
8293 test -z "$as_dir" && as_dir=.
8294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296 ac_cv_prog_OBJDUMP="${ncn_progname}"
8297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 break 2
8299 fi
8300done
8301done
8302
8303fi
8304fi
8305OBJDUMP=$ac_cv_prog_OBJDUMP
8306if test -n "$OBJDUMP"; then
8307 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8308echo "${ECHO_T}$OBJDUMP" >&6
8309else
8310 echo "$as_me:$LINENO: result: no" >&5
8311echo "${ECHO_T}no" >&6
8312fi
8313
8314 done
8315fi
8316
8317for ncn_progname in objdump; do
8318 if test -n "$ncn_tool_prefix"; then
8319 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8320set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8321echo "$as_me:$LINENO: checking for $ac_word" >&5
8322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8323if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8325else
8326 if test -n "$OBJDUMP"; then
8327 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8328else
8329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330for as_dir in $PATH
8331do
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8336 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8338 break 2
8339 fi
8340done
8341done
8342
8343fi
8344fi
8345OBJDUMP=$ac_cv_prog_OBJDUMP
8346if test -n "$OBJDUMP"; then
8347 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8348echo "${ECHO_T}$OBJDUMP" >&6
8349else
8350 echo "$as_me:$LINENO: result: no" >&5
8351echo "${ECHO_T}no" >&6
8352fi
8353
8354 fi
8355 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8357set dummy ${ncn_progname}; ac_word=$2
8358echo "$as_me:$LINENO: checking for $ac_word" >&5
8359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8360if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8362else
8363 if test -n "$OBJDUMP"; then
8364 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8365else
8366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367for as_dir in $PATH
8368do
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8373 ac_cv_prog_OBJDUMP="${ncn_progname}"
8374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8375 break 2
8376 fi
8377done
8378done
8379
8380fi
8381fi
8382OBJDUMP=$ac_cv_prog_OBJDUMP
8383if test -n "$OBJDUMP"; then
8384 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8385echo "${ECHO_T}$OBJDUMP" >&6
8386else
8387 echo "$as_me:$LINENO: result: no" >&5
8388echo "${ECHO_T}no" >&6
8389fi
8390
8391 fi
8392 test -n "$ac_cv_prog_OBJDUMP" && break
8393done
8394
8395if test -z "$ac_cv_prog_OBJDUMP" ; then
8396 set dummy objdump
8397 if test $build = $host ; then
8398 OBJDUMP="$2"
8399 else
8400 OBJDUMP="${ncn_tool_prefix}$2"
8401 fi
8402fi
8403
8404
8405
8406
8407
8408
8409# Target tools.
8410
8411# Check whether --with-build-time-tools or --without-build-time-tools was given.
8412if test "${with_build_time_tools+set}" = set; then
8413 withval="$with_build_time_tools"
8414 case x"$withval" in
8415 x/*) ;;
8416 *)
8417 with_build_time_tools=
8418 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8419echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
8420 ;;
8421 esac
8422else
8423 with_build_time_tools=
8424fi;
8425
8426
8427
8428if test -n "$CC_FOR_TARGET"; then
8429 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8430elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8431 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8432fi
8433
8434if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8435 for ncn_progname in cc gcc; do
8436 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8437set dummy ${ncn_progname}; ac_word=$2
8438echo "$as_me:$LINENO: checking for $ac_word" >&5
8439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8440if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8442else
8443 if test -n "$CC_FOR_TARGET"; then
8444 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8445else
8446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447for as_dir in $PATH
8448do
8449 IFS=$as_save_IFS
8450 test -z "$as_dir" && as_dir=.
8451 for ac_exec_ext in '' $ac_executable_extensions; do
8452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8453 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8455 break 2
8456 fi
8457done
8458done
8459
8460fi
8461fi
8462CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8463if test -n "$CC_FOR_TARGET"; then
8464 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8465echo "${ECHO_T}$CC_FOR_TARGET" >&6
8466else
8467 echo "$as_me:$LINENO: result: no" >&5
8468echo "${ECHO_T}no" >&6
8469fi
8470
8471 done
8472fi
8473
8474if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8475 for ncn_progname in cc gcc; do
8476 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8477echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8478 if test -x $with_build_time_tools/${ncn_progname}; then
8479 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8480 echo "$as_me:$LINENO: result: yes" >&5
8481echo "${ECHO_T}yes" >&6
8482 break
8483 else
8484 echo "$as_me:$LINENO: result: no" >&5
8485echo "${ECHO_T}no" >&6
8486 fi
8487 done
8488fi
8489
8490if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8491 for ncn_progname in cc gcc; do
8492 if test -n "$ncn_target_tool_prefix"; then
8493 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8494set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8495echo "$as_me:$LINENO: checking for $ac_word" >&5
8496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8497if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8499else
8500 if test -n "$CC_FOR_TARGET"; then
8501 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8502else
8503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504for as_dir in $PATH
8505do
8506 IFS=$as_save_IFS
8507 test -z "$as_dir" && as_dir=.
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8510 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 break 2
8513 fi
8514done
8515done
8516
8517fi
8518fi
8519CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8520if test -n "$CC_FOR_TARGET"; then
8521 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8522echo "${ECHO_T}$CC_FOR_TARGET" >&6
8523else
8524 echo "$as_me:$LINENO: result: no" >&5
8525echo "${ECHO_T}no" >&6
8526fi
8527
8528 fi
8529 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8531set dummy ${ncn_progname}; ac_word=$2
8532echo "$as_me:$LINENO: checking for $ac_word" >&5
8533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8534if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8536else
8537 if test -n "$CC_FOR_TARGET"; then
8538 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8539else
8540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541for as_dir in $PATH
8542do
8543 IFS=$as_save_IFS
8544 test -z "$as_dir" && as_dir=.
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8547 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8549 break 2
8550 fi
8551done
8552done
8553
8554fi
8555fi
8556CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8557if test -n "$CC_FOR_TARGET"; then
8558 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8559echo "${ECHO_T}$CC_FOR_TARGET" >&6
8560else
8561 echo "$as_me:$LINENO: result: no" >&5
8562echo "${ECHO_T}no" >&6
8563fi
8564
8565 fi
8566 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8567 done
8568fi
8569
8570if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8571 set dummy cc gcc
8572 if test $build = $target ; then
8573 CC_FOR_TARGET="$2"
8574 else
8575 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
8576 fi
8577else
8578 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
8579fi
8580
8581
8582
8583if test -n "$CXX_FOR_TARGET"; then
8584 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8585elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8586 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8587fi
8588
8589if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8590 for ncn_progname in c++ g++ cxx gxx; do
8591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8592set dummy ${ncn_progname}; ac_word=$2
8593echo "$as_me:$LINENO: checking for $ac_word" >&5
8594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8595if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8597else
8598 if test -n "$CXX_FOR_TARGET"; then
8599 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8600else
8601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602for as_dir in $PATH
8603do
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8608 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 break 2
8611 fi
8612done
8613done
8614
8615fi
8616fi
8617CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8618if test -n "$CXX_FOR_TARGET"; then
8619 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8620echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8621else
8622 echo "$as_me:$LINENO: result: no" >&5
8623echo "${ECHO_T}no" >&6
8624fi
8625
8626 done
8627fi
8628
8629if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
8630 for ncn_progname in c++ g++ cxx gxx; do
8631 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8632echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8633 if test -x $with_build_time_tools/${ncn_progname}; then
8634 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8635 echo "$as_me:$LINENO: result: yes" >&5
8636echo "${ECHO_T}yes" >&6
8637 break
8638 else
8639 echo "$as_me:$LINENO: result: no" >&5
8640echo "${ECHO_T}no" >&6
8641 fi
8642 done
8643fi
8644
8645if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8646 for ncn_progname in c++ g++ cxx gxx; do
8647 if test -n "$ncn_target_tool_prefix"; then
8648 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8649set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8650echo "$as_me:$LINENO: checking for $ac_word" >&5
8651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8652if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8654else
8655 if test -n "$CXX_FOR_TARGET"; then
8656 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8657else
8658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659for as_dir in $PATH
8660do
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8665 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8667 break 2
8668 fi
8669done
8670done
8671
8672fi
8673fi
8674CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8675if test -n "$CXX_FOR_TARGET"; then
8676 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8677echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8678else
8679 echo "$as_me:$LINENO: result: no" >&5
8680echo "${ECHO_T}no" >&6
8681fi
8682
8683 fi
8684 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8686set dummy ${ncn_progname}; ac_word=$2
8687echo "$as_me:$LINENO: checking for $ac_word" >&5
8688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8689if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8691else
8692 if test -n "$CXX_FOR_TARGET"; then
8693 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8694else
8695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696for as_dir in $PATH
8697do
8698 IFS=$as_save_IFS
8699 test -z "$as_dir" && as_dir=.
8700 for ac_exec_ext in '' $ac_executable_extensions; do
8701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8702 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8704 break 2
8705 fi
8706done
8707done
8708
8709fi
8710fi
8711CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8712if test -n "$CXX_FOR_TARGET"; then
8713 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8714echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8715else
8716 echo "$as_me:$LINENO: result: no" >&5
8717echo "${ECHO_T}no" >&6
8718fi
8719
8720 fi
8721 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8722 done
8723fi
8724
8725if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8726 set dummy c++ g++ cxx gxx
8727 if test $build = $target ; then
8728 CXX_FOR_TARGET="$2"
8729 else
8730 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
8731 fi
8732else
8733 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
8734fi
8735
8736
8737
8738if test -n "$GCC_FOR_TARGET"; then
8739 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8740elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8741 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8742fi
8743
8744if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8745 for ncn_progname in gcc; do
8746 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8747set dummy ${ncn_progname}; ac_word=$2
8748echo "$as_me:$LINENO: checking for $ac_word" >&5
8749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8750if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8752else
8753 if test -n "$GCC_FOR_TARGET"; then
8754 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8755else
8756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757for as_dir in $PATH
8758do
8759 IFS=$as_save_IFS
8760 test -z "$as_dir" && as_dir=.
8761 for ac_exec_ext in '' $ac_executable_extensions; do
8762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 break 2
8766 fi
8767done
8768done
8769
8770fi
8771fi
8772GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8773if test -n "$GCC_FOR_TARGET"; then
8774 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8775echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8776else
8777 echo "$as_me:$LINENO: result: no" >&5
8778echo "${ECHO_T}no" >&6
8779fi
8780
8781 done
8782fi
8783
8784if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8785 for ncn_progname in gcc; do
8786 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8787echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8788 if test -x $with_build_time_tools/${ncn_progname}; then
8789 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8790 echo "$as_me:$LINENO: result: yes" >&5
8791echo "${ECHO_T}yes" >&6
8792 break
8793 else
8794 echo "$as_me:$LINENO: result: no" >&5
8795echo "${ECHO_T}no" >&6
8796 fi
8797 done
8798fi
8799
8800if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8801 for ncn_progname in gcc; do
8802 if test -n "$ncn_target_tool_prefix"; then
8803 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8804set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8805echo "$as_me:$LINENO: checking for $ac_word" >&5
8806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8807if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8809else
8810 if test -n "$GCC_FOR_TARGET"; then
8811 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8812else
8813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814for as_dir in $PATH
8815do
8816 IFS=$as_save_IFS
8817 test -z "$as_dir" && as_dir=.
8818 for ac_exec_ext in '' $ac_executable_extensions; do
8819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8820 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8822 break 2
8823 fi
8824done
8825done
8826
8827fi
8828fi
8829GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8830if test -n "$GCC_FOR_TARGET"; then
8831 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8832echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8833else
8834 echo "$as_me:$LINENO: result: no" >&5
8835echo "${ECHO_T}no" >&6
8836fi
8837
8838 fi
8839 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8841set dummy ${ncn_progname}; ac_word=$2
8842echo "$as_me:$LINENO: checking for $ac_word" >&5
8843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8844if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8846else
8847 if test -n "$GCC_FOR_TARGET"; then
8848 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8849else
8850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851for as_dir in $PATH
8852do
8853 IFS=$as_save_IFS
8854 test -z "$as_dir" && as_dir=.
8855 for ac_exec_ext in '' $ac_executable_extensions; do
8856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8857 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8859 break 2
8860 fi
8861done
8862done
8863
8864fi
8865fi
8866GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8867if test -n "$GCC_FOR_TARGET"; then
8868 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8869echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8870else
8871 echo "$as_me:$LINENO: result: no" >&5
8872echo "${ECHO_T}no" >&6
8873fi
8874
8875 fi
8876 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8877 done
8878fi
8879
8880if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8881 GCC_FOR_TARGET="${CC_FOR_TARGET}"
8882else
8883 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
8884fi
8885
8886
8887
8888if test -n "$GCJ_FOR_TARGET"; then
8889 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8890elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8891 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8892fi
8893
8894if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8895 for ncn_progname in gcj; do
8896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8897set dummy ${ncn_progname}; ac_word=$2
8898echo "$as_me:$LINENO: checking for $ac_word" >&5
8899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8900if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8902else
8903 if test -n "$GCJ_FOR_TARGET"; then
8904 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8905else
8906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907for as_dir in $PATH
8908do
8909 IFS=$as_save_IFS
8910 test -z "$as_dir" && as_dir=.
8911 for ac_exec_ext in '' $ac_executable_extensions; do
8912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8913 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8915 break 2
8916 fi
8917done
8918done
8919
8920fi
8921fi
8922GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8923if test -n "$GCJ_FOR_TARGET"; then
8924 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8925echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8926else
8927 echo "$as_me:$LINENO: result: no" >&5
8928echo "${ECHO_T}no" >&6
8929fi
8930
8931 done
8932fi
8933
8934if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
8935 for ncn_progname in gcj; do
8936 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8937echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8938 if test -x $with_build_time_tools/${ncn_progname}; then
8939 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8940 echo "$as_me:$LINENO: result: yes" >&5
8941echo "${ECHO_T}yes" >&6
8942 break
8943 else
8944 echo "$as_me:$LINENO: result: no" >&5
8945echo "${ECHO_T}no" >&6
8946 fi
8947 done
8948fi
8949
8950if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8951 for ncn_progname in gcj; do
8952 if test -n "$ncn_target_tool_prefix"; then
8953 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8954set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8955echo "$as_me:$LINENO: checking for $ac_word" >&5
8956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8957if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8959else
8960 if test -n "$GCJ_FOR_TARGET"; then
8961 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8962else
8963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8964for as_dir in $PATH
8965do
8966 IFS=$as_save_IFS
8967 test -z "$as_dir" && as_dir=.
8968 for ac_exec_ext in '' $ac_executable_extensions; do
8969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8970 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8972 break 2
8973 fi
8974done
8975done
8976
8977fi
8978fi
8979GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8980if test -n "$GCJ_FOR_TARGET"; then
8981 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8982echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8983else
8984 echo "$as_me:$LINENO: result: no" >&5
8985echo "${ECHO_T}no" >&6
8986fi
8987
8988 fi
8989 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8991set dummy ${ncn_progname}; ac_word=$2
8992echo "$as_me:$LINENO: checking for $ac_word" >&5
8993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8994if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8996else
8997 if test -n "$GCJ_FOR_TARGET"; then
8998 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8999else
9000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001for as_dir in $PATH
9002do
9003 IFS=$as_save_IFS
9004 test -z "$as_dir" && as_dir=.
9005 for ac_exec_ext in '' $ac_executable_extensions; do
9006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9007 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9009 break 2
9010 fi
9011done
9012done
9013
9014fi
9015fi
9016GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9017if test -n "$GCJ_FOR_TARGET"; then
9018 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9019echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
9020else
9021 echo "$as_me:$LINENO: result: no" >&5
9022echo "${ECHO_T}no" >&6
9023fi
9024
9025 fi
9026 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9027 done
9028fi
9029
9030if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9031 set dummy gcj
9032 if test $build = $target ; then
9033 GCJ_FOR_TARGET="$2"
9034 else
9035 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9036 fi
9037else
9038 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9039fi
9040
9041
9042
9043if test -n "$GFORTRAN_FOR_TARGET"; then
9044 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9045elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9046 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9047fi
9048
9049if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9050 for ncn_progname in gfortran; do
9051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9052set dummy ${ncn_progname}; ac_word=$2
9053echo "$as_me:$LINENO: checking for $ac_word" >&5
9054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9055if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9057else
9058 if test -n "$GFORTRAN_FOR_TARGET"; then
9059 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9060else
9061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062for as_dir in $PATH
9063do
9064 IFS=$as_save_IFS
9065 test -z "$as_dir" && as_dir=.
9066 for ac_exec_ext in '' $ac_executable_extensions; do
9067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9068 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9070 break 2
9071 fi
9072done
9073done
9074
9075fi
9076fi
9077GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9078if test -n "$GFORTRAN_FOR_TARGET"; then
9079 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9080echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
9081else
9082 echo "$as_me:$LINENO: result: no" >&5
9083echo "${ECHO_T}no" >&6
9084fi
9085
9086 done
9087fi
9088
9089if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
9090 for ncn_progname in gfortran; do
9091 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9092echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9093 if test -x $with_build_time_tools/${ncn_progname}; then
9094 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9095 echo "$as_me:$LINENO: result: yes" >&5
9096echo "${ECHO_T}yes" >&6
9097 break
9098 else
9099 echo "$as_me:$LINENO: result: no" >&5
9100echo "${ECHO_T}no" >&6
9101 fi
9102 done
9103fi
9104
9105if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9106 for ncn_progname in gfortran; do
9107 if test -n "$ncn_target_tool_prefix"; then
9108 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9109set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9110echo "$as_me:$LINENO: checking for $ac_word" >&5
9111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9112if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9114else
9115 if test -n "$GFORTRAN_FOR_TARGET"; then
9116 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9117else
9118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119for as_dir in $PATH
9120do
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9125 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9127 break 2
9128 fi
9129done
9130done
9131
9132fi
9133fi
9134GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9135if test -n "$GFORTRAN_FOR_TARGET"; then
9136 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9137echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
9138else
9139 echo "$as_me:$LINENO: result: no" >&5
9140echo "${ECHO_T}no" >&6
9141fi
9142
9143 fi
9144 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9146set dummy ${ncn_progname}; ac_word=$2
9147echo "$as_me:$LINENO: checking for $ac_word" >&5
9148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9149if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
9151else
9152 if test -n "$GFORTRAN_FOR_TARGET"; then
9153 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9154else
9155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9156for as_dir in $PATH
9157do
9158 IFS=$as_save_IFS
9159 test -z "$as_dir" && as_dir=.
9160 for ac_exec_ext in '' $ac_executable_extensions; do
9161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9162 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9164 break 2
9165 fi
9166done
9167done
9168
9169fi
9170fi
9171GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9172if test -n "$GFORTRAN_FOR_TARGET"; then
9173 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9174echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
9175else
9176 echo "$as_me:$LINENO: result: no" >&5
9177echo "${ECHO_T}no" >&6
9178fi
9179
9180 fi
9181 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9182 done
9183fi
9184
9185if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9186 set dummy gfortran
9187 if test $build = $target ; then
9188 GFORTRAN_FOR_TARGET="$2"
9189 else
9190 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9191 fi
9192else
9193 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
9194fi
9195
9196
9197
9198cat > conftest.c << \EOF
9199#ifdef __GNUC__
9200 gcc_yay;
9201#endif
9202EOF
9203if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9204 have_gcc_for_target=yes
9205else
9206 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9207 have_gcc_for_target=no
9208fi
9209rm conftest.c
9210
9211
9212
9213
9214if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9215 if test -n "$with_build_time_tools"; then
9216 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9217echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
9218 if test -x $with_build_time_tools/ar; then
9219 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9220 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9221 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9222echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
9223 else
9224 echo "$as_me:$LINENO: result: no" >&5
9225echo "${ECHO_T}no" >&6
9226 fi
9227 elif test $build != $host && test $have_gcc_for_target = yes; then
9228 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
9229 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9230 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9231 fi
9232fi
9233if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9234 # Extract the first word of "ar", so it can be a program name with args.
9235set dummy ar; ac_word=$2
9236echo "$as_me:$LINENO: checking for $ac_word" >&5
9237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9238if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9240else
9241 case $AR_FOR_TARGET in
9242 [\\/]* | ?:[\\/]*)
9243 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9244 ;;
9245 *)
9246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247for as_dir in $gcc_cv_tool_dirs
9248do
9249 IFS=$as_save_IFS
9250 test -z "$as_dir" && as_dir=.
9251 for ac_exec_ext in '' $ac_executable_extensions; do
9252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9253 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9255 break 2
9256 fi
9257done
9258done
9259
9260 ;;
9261esac
9262fi
9263AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9264
9265if test -n "$AR_FOR_TARGET"; then
9266 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9267echo "${ECHO_T}$AR_FOR_TARGET" >&6
9268else
9269 echo "$as_me:$LINENO: result: no" >&5
9270echo "${ECHO_T}no" >&6
9271fi
9272
9273fi
9274if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9275
9276
9277if test -n "$AR_FOR_TARGET"; then
9278 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9279elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9280 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9281fi
9282
9283if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9284 for ncn_progname in ar; do
9285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9286set dummy ${ncn_progname}; ac_word=$2
9287echo "$as_me:$LINENO: checking for $ac_word" >&5
9288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9289if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9291else
9292 if test -n "$AR_FOR_TARGET"; then
9293 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9294else
9295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296for as_dir in $PATH
9297do
9298 IFS=$as_save_IFS
9299 test -z "$as_dir" && as_dir=.
9300 for ac_exec_ext in '' $ac_executable_extensions; do
9301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9302 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9304 break 2
9305 fi
9306done
9307done
9308
9309fi
9310fi
9311AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9312if test -n "$AR_FOR_TARGET"; then
9313 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9314echo "${ECHO_T}$AR_FOR_TARGET" >&6
9315else
9316 echo "$as_me:$LINENO: result: no" >&5
9317echo "${ECHO_T}no" >&6
9318fi
9319
9320 done
9321fi
9322
9323if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
9324 for ncn_progname in ar; do
9325 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9326echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9327 if test -x $with_build_time_tools/${ncn_progname}; then
9328 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9329 echo "$as_me:$LINENO: result: yes" >&5
9330echo "${ECHO_T}yes" >&6
9331 break
9332 else
9333 echo "$as_me:$LINENO: result: no" >&5
9334echo "${ECHO_T}no" >&6
9335 fi
9336 done
9337fi
9338
9339if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9340 for ncn_progname in ar; do
9341 if test -n "$ncn_target_tool_prefix"; then
9342 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9343set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9344echo "$as_me:$LINENO: checking for $ac_word" >&5
9345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9346if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9348else
9349 if test -n "$AR_FOR_TARGET"; then
9350 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9351else
9352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9353for as_dir in $PATH
9354do
9355 IFS=$as_save_IFS
9356 test -z "$as_dir" && as_dir=.
9357 for ac_exec_ext in '' $ac_executable_extensions; do
9358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9359 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9361 break 2
9362 fi
9363done
9364done
9365
9366fi
9367fi
9368AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9369if test -n "$AR_FOR_TARGET"; then
9370 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9371echo "${ECHO_T}$AR_FOR_TARGET" >&6
9372else
9373 echo "$as_me:$LINENO: result: no" >&5
9374echo "${ECHO_T}no" >&6
9375fi
9376
9377 fi
9378 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9380set dummy ${ncn_progname}; ac_word=$2
9381echo "$as_me:$LINENO: checking for $ac_word" >&5
9382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9383if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9385else
9386 if test -n "$AR_FOR_TARGET"; then
9387 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9388else
9389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390for as_dir in $PATH
9391do
9392 IFS=$as_save_IFS
9393 test -z "$as_dir" && as_dir=.
9394 for ac_exec_ext in '' $ac_executable_extensions; do
9395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9396 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9398 break 2
9399 fi
9400done
9401done
9402
9403fi
9404fi
9405AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9406if test -n "$AR_FOR_TARGET"; then
9407 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9408echo "${ECHO_T}$AR_FOR_TARGET" >&6
9409else
9410 echo "$as_me:$LINENO: result: no" >&5
9411echo "${ECHO_T}no" >&6
9412fi
9413
9414 fi
9415 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9416 done
9417fi
9418
9419if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9420 set dummy ar
9421 if test $build = $target ; then
9422 AR_FOR_TARGET="$2"
9423 else
9424 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
9425 fi
9426else
9427 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
9428fi
9429
9430else
9431 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9432fi
9433
9434
9435
9436
9437if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9438 if test -n "$with_build_time_tools"; then
9439 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9440echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
9441 if test -x $with_build_time_tools/as; then
9442 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9443 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9444 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9445echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
9446 else
9447 echo "$as_me:$LINENO: result: no" >&5
9448echo "${ECHO_T}no" >&6
9449 fi
9450 elif test $build != $host && test $have_gcc_for_target = yes; then
9451 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
9452 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9453 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9454 fi
9455fi
9456if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9457 # Extract the first word of "as", so it can be a program name with args.
9458set dummy as; ac_word=$2
9459echo "$as_me:$LINENO: checking for $ac_word" >&5
9460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9461if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9463else
9464 case $AS_FOR_TARGET in
9465 [\\/]* | ?:[\\/]*)
9466 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9467 ;;
9468 *)
9469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470for as_dir in $gcc_cv_tool_dirs
9471do
9472 IFS=$as_save_IFS
9473 test -z "$as_dir" && as_dir=.
9474 for ac_exec_ext in '' $ac_executable_extensions; do
9475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9476 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9478 break 2
9479 fi
9480done
9481done
9482
9483 ;;
9484esac
9485fi
9486AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9487
9488if test -n "$AS_FOR_TARGET"; then
9489 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9490echo "${ECHO_T}$AS_FOR_TARGET" >&6
9491else
9492 echo "$as_me:$LINENO: result: no" >&5
9493echo "${ECHO_T}no" >&6
9494fi
9495
9496fi
9497if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9498
9499
9500if test -n "$AS_FOR_TARGET"; then
9501 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9502elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9503 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9504fi
9505
9506if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9507 for ncn_progname in as; do
9508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9509set dummy ${ncn_progname}; ac_word=$2
9510echo "$as_me:$LINENO: checking for $ac_word" >&5
9511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9512if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9514else
9515 if test -n "$AS_FOR_TARGET"; then
9516 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9517else
9518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519for as_dir in $PATH
9520do
9521 IFS=$as_save_IFS
9522 test -z "$as_dir" && as_dir=.
9523 for ac_exec_ext in '' $ac_executable_extensions; do
9524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9525 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9527 break 2
9528 fi
9529done
9530done
9531
9532fi
9533fi
9534AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9535if test -n "$AS_FOR_TARGET"; then
9536 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9537echo "${ECHO_T}$AS_FOR_TARGET" >&6
9538else
9539 echo "$as_me:$LINENO: result: no" >&5
9540echo "${ECHO_T}no" >&6
9541fi
9542
9543 done
9544fi
9545
9546if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
9547 for ncn_progname in as; do
9548 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9549echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9550 if test -x $with_build_time_tools/${ncn_progname}; then
9551 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9552 echo "$as_me:$LINENO: result: yes" >&5
9553echo "${ECHO_T}yes" >&6
9554 break
9555 else
9556 echo "$as_me:$LINENO: result: no" >&5
9557echo "${ECHO_T}no" >&6
9558 fi
9559 done
9560fi
9561
9562if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9563 for ncn_progname in as; do
9564 if test -n "$ncn_target_tool_prefix"; then
9565 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9566set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9567echo "$as_me:$LINENO: checking for $ac_word" >&5
9568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9569if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9571else
9572 if test -n "$AS_FOR_TARGET"; then
9573 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9574else
9575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9576for as_dir in $PATH
9577do
9578 IFS=$as_save_IFS
9579 test -z "$as_dir" && as_dir=.
9580 for ac_exec_ext in '' $ac_executable_extensions; do
9581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9582 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9584 break 2
9585 fi
9586done
9587done
9588
9589fi
9590fi
9591AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9592if test -n "$AS_FOR_TARGET"; then
9593 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9594echo "${ECHO_T}$AS_FOR_TARGET" >&6
9595else
9596 echo "$as_me:$LINENO: result: no" >&5
9597echo "${ECHO_T}no" >&6
9598fi
9599
9600 fi
9601 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9603set dummy ${ncn_progname}; ac_word=$2
9604echo "$as_me:$LINENO: checking for $ac_word" >&5
9605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9606if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608else
9609 if test -n "$AS_FOR_TARGET"; then
9610 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9611else
9612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613for as_dir in $PATH
9614do
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
9617 for ac_exec_ext in '' $ac_executable_extensions; do
9618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9619 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9621 break 2
9622 fi
9623done
9624done
9625
9626fi
9627fi
9628AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9629if test -n "$AS_FOR_TARGET"; then
9630 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9631echo "${ECHO_T}$AS_FOR_TARGET" >&6
9632else
9633 echo "$as_me:$LINENO: result: no" >&5
9634echo "${ECHO_T}no" >&6
9635fi
9636
9637 fi
9638 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9639 done
9640fi
9641
9642if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9643 set dummy as
9644 if test $build = $target ; then
9645 AS_FOR_TARGET="$2"
9646 else
9647 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9648 fi
9649else
9650 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
9651fi
9652
9653else
9654 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9655fi
9656
9657
9658
9659
9660if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9661 if test -n "$with_build_time_tools"; then
9662 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9663echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
9664 if test -x $with_build_time_tools/dlltool; then
9665 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9666 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9667 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9668echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
9669 else
9670 echo "$as_me:$LINENO: result: no" >&5
9671echo "${ECHO_T}no" >&6
9672 fi
9673 elif test $build != $host && test $have_gcc_for_target = yes; then
9674 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
9675 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9676 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9677 fi
9678fi
9679if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9680 # Extract the first word of "dlltool", so it can be a program name with args.
9681set dummy dlltool; ac_word=$2
9682echo "$as_me:$LINENO: checking for $ac_word" >&5
9683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9684if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9686else
9687 case $DLLTOOL_FOR_TARGET in
9688 [\\/]* | ?:[\\/]*)
9689 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9690 ;;
9691 *)
9692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9693for as_dir in $gcc_cv_tool_dirs
9694do
9695 IFS=$as_save_IFS
9696 test -z "$as_dir" && as_dir=.
9697 for ac_exec_ext in '' $ac_executable_extensions; do
9698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9699 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9701 break 2
9702 fi
9703done
9704done
9705
9706 ;;
9707esac
9708fi
9709DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9710
9711if test -n "$DLLTOOL_FOR_TARGET"; then
9712 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9713echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9714else
9715 echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6
9717fi
9718
9719fi
9720if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9721
9722
9723if test -n "$DLLTOOL_FOR_TARGET"; then
9724 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9725elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9726 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9727fi
9728
9729if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9730 for ncn_progname in dlltool; do
9731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9732set dummy ${ncn_progname}; ac_word=$2
9733echo "$as_me:$LINENO: checking for $ac_word" >&5
9734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9735if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9737else
9738 if test -n "$DLLTOOL_FOR_TARGET"; then
9739 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9740else
9741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742for as_dir in $PATH
9743do
9744 IFS=$as_save_IFS
9745 test -z "$as_dir" && as_dir=.
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9748 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9750 break 2
9751 fi
9752done
9753done
9754
9755fi
9756fi
9757DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9758if test -n "$DLLTOOL_FOR_TARGET"; then
9759 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9760echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9761else
9762 echo "$as_me:$LINENO: result: no" >&5
9763echo "${ECHO_T}no" >&6
9764fi
9765
9766 done
9767fi
9768
9769if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
9770 for ncn_progname in dlltool; do
9771 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9772echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9773 if test -x $with_build_time_tools/${ncn_progname}; then
9774 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9775 echo "$as_me:$LINENO: result: yes" >&5
9776echo "${ECHO_T}yes" >&6
9777 break
9778 else
9779 echo "$as_me:$LINENO: result: no" >&5
9780echo "${ECHO_T}no" >&6
9781 fi
9782 done
9783fi
9784
9785if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9786 for ncn_progname in dlltool; do
9787 if test -n "$ncn_target_tool_prefix"; then
9788 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9789set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9790echo "$as_me:$LINENO: checking for $ac_word" >&5
9791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9792if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9794else
9795 if test -n "$DLLTOOL_FOR_TARGET"; then
9796 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9797else
9798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9799for as_dir in $PATH
9800do
9801 IFS=$as_save_IFS
9802 test -z "$as_dir" && as_dir=.
9803 for ac_exec_ext in '' $ac_executable_extensions; do
9804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9805 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9807 break 2
9808 fi
9809done
9810done
9811
9812fi
9813fi
9814DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9815if test -n "$DLLTOOL_FOR_TARGET"; then
9816 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9817echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9818else
9819 echo "$as_me:$LINENO: result: no" >&5
9820echo "${ECHO_T}no" >&6
9821fi
9822
9823 fi
9824 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9826set dummy ${ncn_progname}; ac_word=$2
9827echo "$as_me:$LINENO: checking for $ac_word" >&5
9828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9829if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9831else
9832 if test -n "$DLLTOOL_FOR_TARGET"; then
9833 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9834else
9835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9836for as_dir in $PATH
9837do
9838 IFS=$as_save_IFS
9839 test -z "$as_dir" && as_dir=.
9840 for ac_exec_ext in '' $ac_executable_extensions; do
9841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9842 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9844 break 2
9845 fi
9846done
9847done
9848
9849fi
9850fi
9851DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9852if test -n "$DLLTOOL_FOR_TARGET"; then
9853 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9854echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9855else
9856 echo "$as_me:$LINENO: result: no" >&5
9857echo "${ECHO_T}no" >&6
9858fi
9859
9860 fi
9861 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9862 done
9863fi
9864
9865if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9866 set dummy dlltool
9867 if test $build = $target ; then
9868 DLLTOOL_FOR_TARGET="$2"
9869 else
9870 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9871 fi
9872else
9873 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
9874fi
9875
9876else
9877 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9878fi
9879
9880
9881
9882
9883if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9884 if test -n "$with_build_time_tools"; then
9885 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9886echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
9887 if test -x $with_build_time_tools/ld; then
9888 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9889 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9890 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9891echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
9892 else
9893 echo "$as_me:$LINENO: result: no" >&5
9894echo "${ECHO_T}no" >&6
9895 fi
9896 elif test $build != $host && test $have_gcc_for_target = yes; then
9897 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9898 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9899 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9900 fi
9901fi
9902if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9903 # Extract the first word of "ld", so it can be a program name with args.
9904set dummy ld; ac_word=$2
9905echo "$as_me:$LINENO: checking for $ac_word" >&5
9906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9907if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9909else
9910 case $LD_FOR_TARGET in
9911 [\\/]* | ?:[\\/]*)
9912 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9913 ;;
9914 *)
9915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916for as_dir in $gcc_cv_tool_dirs
9917do
9918 IFS=$as_save_IFS
9919 test -z "$as_dir" && as_dir=.
9920 for ac_exec_ext in '' $ac_executable_extensions; do
9921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9922 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9924 break 2
9925 fi
9926done
9927done
9928
9929 ;;
9930esac
9931fi
9932LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9933
9934if test -n "$LD_FOR_TARGET"; then
9935 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9936echo "${ECHO_T}$LD_FOR_TARGET" >&6
9937else
9938 echo "$as_me:$LINENO: result: no" >&5
9939echo "${ECHO_T}no" >&6
9940fi
9941
9942fi
9943if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9944
9945
9946if test -n "$LD_FOR_TARGET"; then
9947 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9948elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9949 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9950fi
9951
9952if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9953 for ncn_progname in ld; do
9954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9955set dummy ${ncn_progname}; ac_word=$2
9956echo "$as_me:$LINENO: checking for $ac_word" >&5
9957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9958if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9960else
9961 if test -n "$LD_FOR_TARGET"; then
9962 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9963else
9964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965for as_dir in $PATH
9966do
9967 IFS=$as_save_IFS
9968 test -z "$as_dir" && as_dir=.
9969 for ac_exec_ext in '' $ac_executable_extensions; do
9970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9971 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9973 break 2
9974 fi
9975done
9976done
9977
9978fi
9979fi
9980LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9981if test -n "$LD_FOR_TARGET"; then
9982 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9983echo "${ECHO_T}$LD_FOR_TARGET" >&6
9984else
9985 echo "$as_me:$LINENO: result: no" >&5
9986echo "${ECHO_T}no" >&6
9987fi
9988
9989 done
9990fi
9991
9992if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
9993 for ncn_progname in ld; do
9994 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9995echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9996 if test -x $with_build_time_tools/${ncn_progname}; then
9997 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9998 echo "$as_me:$LINENO: result: yes" >&5
9999echo "${ECHO_T}yes" >&6
10000 break
10001 else
10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
10004 fi
10005 done
10006fi
10007
10008if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10009 for ncn_progname in ld; do
10010 if test -n "$ncn_target_tool_prefix"; then
10011 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10012set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10013echo "$as_me:$LINENO: checking for $ac_word" >&5
10014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10015if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10017else
10018 if test -n "$LD_FOR_TARGET"; then
10019 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10020else
10021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022for as_dir in $PATH
10023do
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
10026 for ac_exec_ext in '' $ac_executable_extensions; do
10027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10028 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10030 break 2
10031 fi
10032done
10033done
10034
10035fi
10036fi
10037LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10038if test -n "$LD_FOR_TARGET"; then
10039 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10040echo "${ECHO_T}$LD_FOR_TARGET" >&6
10041else
10042 echo "$as_me:$LINENO: result: no" >&5
10043echo "${ECHO_T}no" >&6
10044fi
10045
10046 fi
10047 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10049set dummy ${ncn_progname}; ac_word=$2
10050echo "$as_me:$LINENO: checking for $ac_word" >&5
10051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10052if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10054else
10055 if test -n "$LD_FOR_TARGET"; then
10056 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10057else
10058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059for as_dir in $PATH
10060do
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10065 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 break 2
10068 fi
10069done
10070done
10071
10072fi
10073fi
10074LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10075if test -n "$LD_FOR_TARGET"; then
10076 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10077echo "${ECHO_T}$LD_FOR_TARGET" >&6
10078else
10079 echo "$as_me:$LINENO: result: no" >&5
10080echo "${ECHO_T}no" >&6
10081fi
10082
10083 fi
10084 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10085 done
10086fi
10087
10088if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10089 set dummy ld
10090 if test $build = $target ; then
10091 LD_FOR_TARGET="$2"
10092 else
10093 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10094 fi
10095else
10096 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
10097fi
10098
10099else
10100 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10101fi
10102
10103
10104
10105
10106if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10107 if test -n "$with_build_time_tools"; then
10108 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10109echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
10110 if test -x $with_build_time_tools/lipo; then
10111 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10112 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10113 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10114echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
10115 else
10116 echo "$as_me:$LINENO: result: no" >&5
10117echo "${ECHO_T}no" >&6
10118 fi
10119 elif test $build != $host && test $have_gcc_for_target = yes; then
10120 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
10121 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10122 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10123 fi
10124fi
10125if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10126 # Extract the first word of "lipo", so it can be a program name with args.
10127set dummy lipo; ac_word=$2
10128echo "$as_me:$LINENO: checking for $ac_word" >&5
10129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10130if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10132else
10133 case $LIPO_FOR_TARGET in
10134 [\\/]* | ?:[\\/]*)
10135 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10136 ;;
10137 *)
10138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139for as_dir in $gcc_cv_tool_dirs
10140do
10141 IFS=$as_save_IFS
10142 test -z "$as_dir" && as_dir=.
10143 for ac_exec_ext in '' $ac_executable_extensions; do
10144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10145 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10147 break 2
10148 fi
10149done
10150done
10151
10152 ;;
10153esac
10154fi
10155LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10156
10157if test -n "$LIPO_FOR_TARGET"; then
10158 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10159echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10160else
10161 echo "$as_me:$LINENO: result: no" >&5
10162echo "${ECHO_T}no" >&6
10163fi
10164
10165fi
10166if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10167
10168
10169if test -n "$LIPO_FOR_TARGET"; then
10170 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10171elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10172 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10173fi
10174
10175if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10176 for ncn_progname in lipo; do
10177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10178set dummy ${ncn_progname}; ac_word=$2
10179echo "$as_me:$LINENO: checking for $ac_word" >&5
10180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10181if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183else
10184 if test -n "$LIPO_FOR_TARGET"; then
10185 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10186else
10187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188for as_dir in $PATH
10189do
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10194 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10197 fi
10198done
10199done
10200
10201fi
10202fi
10203LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10204if test -n "$LIPO_FOR_TARGET"; then
10205 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10206echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10207else
10208 echo "$as_me:$LINENO: result: no" >&5
10209echo "${ECHO_T}no" >&6
10210fi
10211
10212 done
10213fi
10214
10215if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
10216 for ncn_progname in lipo; do
10217 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10218echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10219 if test -x $with_build_time_tools/${ncn_progname}; then
10220 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10221 echo "$as_me:$LINENO: result: yes" >&5
10222echo "${ECHO_T}yes" >&6
10223 break
10224 else
10225 echo "$as_me:$LINENO: result: no" >&5
10226echo "${ECHO_T}no" >&6
10227 fi
10228 done
10229fi
10230
10231if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10232 for ncn_progname in lipo; do
10233 if test -n "$ncn_target_tool_prefix"; then
10234 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10235set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10236echo "$as_me:$LINENO: checking for $ac_word" >&5
10237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10238if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10240else
10241 if test -n "$LIPO_FOR_TARGET"; then
10242 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10243else
10244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245for as_dir in $PATH
10246do
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10251 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10253 break 2
10254 fi
10255done
10256done
10257
10258fi
10259fi
10260LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10261if test -n "$LIPO_FOR_TARGET"; then
10262 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10263echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10264else
10265 echo "$as_me:$LINENO: result: no" >&5
10266echo "${ECHO_T}no" >&6
10267fi
10268
10269 fi
10270 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10272set dummy ${ncn_progname}; ac_word=$2
10273echo "$as_me:$LINENO: checking for $ac_word" >&5
10274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10275if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10277else
10278 if test -n "$LIPO_FOR_TARGET"; then
10279 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10280else
10281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10282for as_dir in $PATH
10283do
10284 IFS=$as_save_IFS
10285 test -z "$as_dir" && as_dir=.
10286 for ac_exec_ext in '' $ac_executable_extensions; do
10287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10288 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10290 break 2
10291 fi
10292done
10293done
10294
10295fi
10296fi
10297LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10298if test -n "$LIPO_FOR_TARGET"; then
10299 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10300echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10301else
10302 echo "$as_me:$LINENO: result: no" >&5
10303echo "${ECHO_T}no" >&6
10304fi
10305
10306 fi
10307 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10308 done
10309fi
10310
10311if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10312 set dummy lipo
10313 if test $build = $target ; then
10314 LIPO_FOR_TARGET="$2"
10315 else
10316 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10317 fi
10318else
10319 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
10320fi
10321
10322else
10323 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10324fi
10325
10326
10327
10328
10329if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10330 if test -n "$with_build_time_tools"; then
10331 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10332echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
10333 if test -x $with_build_time_tools/nm; then
10334 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10335 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10336 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10337echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
10338 else
10339 echo "$as_me:$LINENO: result: no" >&5
10340echo "${ECHO_T}no" >&6
10341 fi
10342 elif test $build != $host && test $have_gcc_for_target = yes; then
10343 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
10344 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10345 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10346 fi
10347fi
10348if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10349 # Extract the first word of "nm", so it can be a program name with args.
10350set dummy nm; ac_word=$2
10351echo "$as_me:$LINENO: checking for $ac_word" >&5
10352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10353if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
10355else
10356 case $NM_FOR_TARGET in
10357 [\\/]* | ?:[\\/]*)
10358 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10359 ;;
10360 *)
10361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362for as_dir in $gcc_cv_tool_dirs
10363do
10364 IFS=$as_save_IFS
10365 test -z "$as_dir" && as_dir=.
10366 for ac_exec_ext in '' $ac_executable_extensions; do
10367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10368 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10370 break 2
10371 fi
10372done
10373done
10374
10375 ;;
10376esac
10377fi
10378NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10379
10380if test -n "$NM_FOR_TARGET"; then
10381 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10382echo "${ECHO_T}$NM_FOR_TARGET" >&6
10383else
10384 echo "$as_me:$LINENO: result: no" >&5
10385echo "${ECHO_T}no" >&6
10386fi
10387
10388fi
10389if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10390
10391
10392if test -n "$NM_FOR_TARGET"; then
10393 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10394elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10395 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10396fi
10397
10398if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10399 for ncn_progname in nm; do
10400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10401set dummy ${ncn_progname}; ac_word=$2
10402echo "$as_me:$LINENO: checking for $ac_word" >&5
10403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10404if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10406else
10407 if test -n "$NM_FOR_TARGET"; then
10408 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10409else
10410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411for as_dir in $PATH
10412do
10413 IFS=$as_save_IFS
10414 test -z "$as_dir" && as_dir=.
10415 for ac_exec_ext in '' $ac_executable_extensions; do
10416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10417 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10419 break 2
10420 fi
10421done
10422done
10423
10424fi
10425fi
10426NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10427if test -n "$NM_FOR_TARGET"; then
10428 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10429echo "${ECHO_T}$NM_FOR_TARGET" >&6
10430else
10431 echo "$as_me:$LINENO: result: no" >&5
10432echo "${ECHO_T}no" >&6
10433fi
10434
10435 done
10436fi
10437
10438if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
10439 for ncn_progname in nm; do
10440 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10441echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10442 if test -x $with_build_time_tools/${ncn_progname}; then
10443 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10444 echo "$as_me:$LINENO: result: yes" >&5
10445echo "${ECHO_T}yes" >&6
10446 break
10447 else
10448 echo "$as_me:$LINENO: result: no" >&5
10449echo "${ECHO_T}no" >&6
10450 fi
10451 done
10452fi
10453
10454if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10455 for ncn_progname in nm; do
10456 if test -n "$ncn_target_tool_prefix"; then
10457 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10458set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10459echo "$as_me:$LINENO: checking for $ac_word" >&5
10460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10461if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
10463else
10464 if test -n "$NM_FOR_TARGET"; then
10465 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10466else
10467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10468for as_dir in $PATH
10469do
10470 IFS=$as_save_IFS
10471 test -z "$as_dir" && as_dir=.
10472 for ac_exec_ext in '' $ac_executable_extensions; do
10473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10474 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10476 break 2
10477 fi
10478done
10479done
10480
10481fi
10482fi
10483NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10484if test -n "$NM_FOR_TARGET"; then
10485 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10486echo "${ECHO_T}$NM_FOR_TARGET" >&6
10487else
10488 echo "$as_me:$LINENO: result: no" >&5
10489echo "${ECHO_T}no" >&6
10490fi
10491
10492 fi
10493 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10495set dummy ${ncn_progname}; ac_word=$2
10496echo "$as_me:$LINENO: checking for $ac_word" >&5
10497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10498if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10500else
10501 if test -n "$NM_FOR_TARGET"; then
10502 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10503else
10504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505for as_dir in $PATH
10506do
10507 IFS=$as_save_IFS
10508 test -z "$as_dir" && as_dir=.
10509 for ac_exec_ext in '' $ac_executable_extensions; do
10510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10511 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 break 2
10514 fi
10515done
10516done
10517
10518fi
10519fi
10520NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10521if test -n "$NM_FOR_TARGET"; then
10522 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10523echo "${ECHO_T}$NM_FOR_TARGET" >&6
10524else
10525 echo "$as_me:$LINENO: result: no" >&5
10526echo "${ECHO_T}no" >&6
10527fi
10528
10529 fi
10530 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10531 done
10532fi
10533
10534if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10535 set dummy nm
10536 if test $build = $target ; then
10537 NM_FOR_TARGET="$2"
10538 else
10539 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
10540 fi
10541else
10542 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
10543fi
10544
10545else
10546 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10547fi
10548
10549
10550
10551
10552if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10553 if test -n "$with_build_time_tools"; then
10554 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10555echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
10556 if test -x $with_build_time_tools/objdump; then
10557 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10558 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10559 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10560echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
10561 else
10562 echo "$as_me:$LINENO: result: no" >&5
10563echo "${ECHO_T}no" >&6
10564 fi
10565 elif test $build != $host && test $have_gcc_for_target = yes; then
10566 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
10567 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10568 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10569 fi
10570fi
10571if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10572 # Extract the first word of "objdump", so it can be a program name with args.
10573set dummy objdump; ac_word=$2
10574echo "$as_me:$LINENO: checking for $ac_word" >&5
10575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10576if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578else
10579 case $OBJDUMP_FOR_TARGET in
10580 [\\/]* | ?:[\\/]*)
10581 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10582 ;;
10583 *)
10584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585for as_dir in $gcc_cv_tool_dirs
10586do
10587 IFS=$as_save_IFS
10588 test -z "$as_dir" && as_dir=.
10589 for ac_exec_ext in '' $ac_executable_extensions; do
10590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10591 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10593 break 2
10594 fi
10595done
10596done
10597
10598 ;;
10599esac
10600fi
10601OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10602
10603if test -n "$OBJDUMP_FOR_TARGET"; then
10604 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10605echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10606else
10607 echo "$as_me:$LINENO: result: no" >&5
10608echo "${ECHO_T}no" >&6
10609fi
10610
10611fi
10612if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10613
10614
10615if test -n "$OBJDUMP_FOR_TARGET"; then
10616 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10617elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10618 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10619fi
10620
10621if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10622 for ncn_progname in objdump; do
10623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10624set dummy ${ncn_progname}; ac_word=$2
10625echo "$as_me:$LINENO: checking for $ac_word" >&5
10626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10627if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629else
10630 if test -n "$OBJDUMP_FOR_TARGET"; then
10631 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10632else
10633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634for as_dir in $PATH
10635do
10636 IFS=$as_save_IFS
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10640 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 break 2
10643 fi
10644done
10645done
10646
10647fi
10648fi
10649OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10650if test -n "$OBJDUMP_FOR_TARGET"; then
10651 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10652echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10653else
10654 echo "$as_me:$LINENO: result: no" >&5
10655echo "${ECHO_T}no" >&6
10656fi
10657
10658 done
10659fi
10660
10661if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10662 for ncn_progname in objdump; do
10663 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10664echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10665 if test -x $with_build_time_tools/${ncn_progname}; then
10666 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10667 echo "$as_me:$LINENO: result: yes" >&5
10668echo "${ECHO_T}yes" >&6
10669 break
10670 else
10671 echo "$as_me:$LINENO: result: no" >&5
10672echo "${ECHO_T}no" >&6
10673 fi
10674 done
10675fi
10676
10677if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10678 for ncn_progname in objdump; do
10679 if test -n "$ncn_target_tool_prefix"; then
10680 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10681set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10682echo "$as_me:$LINENO: checking for $ac_word" >&5
10683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10684if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10686else
10687 if test -n "$OBJDUMP_FOR_TARGET"; then
10688 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10689else
10690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10691for as_dir in $PATH
10692do
10693 IFS=$as_save_IFS
10694 test -z "$as_dir" && as_dir=.
10695 for ac_exec_ext in '' $ac_executable_extensions; do
10696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10697 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10699 break 2
10700 fi
10701done
10702done
10703
10704fi
10705fi
10706OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10707if test -n "$OBJDUMP_FOR_TARGET"; then
10708 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10709echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10710else
10711 echo "$as_me:$LINENO: result: no" >&5
10712echo "${ECHO_T}no" >&6
10713fi
10714
10715 fi
10716 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10718set dummy ${ncn_progname}; ac_word=$2
10719echo "$as_me:$LINENO: checking for $ac_word" >&5
10720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10721if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10723else
10724 if test -n "$OBJDUMP_FOR_TARGET"; then
10725 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10726else
10727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728for as_dir in $PATH
10729do
10730 IFS=$as_save_IFS
10731 test -z "$as_dir" && as_dir=.
10732 for ac_exec_ext in '' $ac_executable_extensions; do
10733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10734 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10736 break 2
10737 fi
10738done
10739done
10740
10741fi
10742fi
10743OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10744if test -n "$OBJDUMP_FOR_TARGET"; then
10745 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10746echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10747else
10748 echo "$as_me:$LINENO: result: no" >&5
10749echo "${ECHO_T}no" >&6
10750fi
10751
10752 fi
10753 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10754 done
10755fi
10756
10757if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10758 set dummy objdump
10759 if test $build = $target ; then
10760 OBJDUMP_FOR_TARGET="$2"
10761 else
10762 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10763 fi
10764else
10765 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
10766fi
10767
10768else
10769 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10770fi
10771
10772
10773
10774
10775if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10776 if test -n "$with_build_time_tools"; then
10777 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10778echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
10779 if test -x $with_build_time_tools/ranlib; then
10780 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10781 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10782 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10783echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
10784 else
10785 echo "$as_me:$LINENO: result: no" >&5
10786echo "${ECHO_T}no" >&6
10787 fi
10788 elif test $build != $host && test $have_gcc_for_target = yes; then
10789 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10790 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10791 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10792 fi
10793fi
10794if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10795 # Extract the first word of "ranlib", so it can be a program name with args.
10796set dummy ranlib; ac_word=$2
10797echo "$as_me:$LINENO: checking for $ac_word" >&5
10798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10799if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10801else
10802 case $RANLIB_FOR_TARGET in
10803 [\\/]* | ?:[\\/]*)
10804 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10805 ;;
10806 *)
10807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808for as_dir in $gcc_cv_tool_dirs
10809do
10810 IFS=$as_save_IFS
10811 test -z "$as_dir" && as_dir=.
10812 for ac_exec_ext in '' $ac_executable_extensions; do
10813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10814 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10816 break 2
10817 fi
10818done
10819done
10820
10821 ;;
10822esac
10823fi
10824RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10825
10826if test -n "$RANLIB_FOR_TARGET"; then
10827 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10828echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10829else
10830 echo "$as_me:$LINENO: result: no" >&5
10831echo "${ECHO_T}no" >&6
10832fi
10833
10834fi
10835if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10836
10837
10838if test -n "$RANLIB_FOR_TARGET"; then
10839 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10840elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10841 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10842fi
10843
10844if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10845 for ncn_progname in ranlib; do
10846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10847set dummy ${ncn_progname}; ac_word=$2
10848echo "$as_me:$LINENO: checking for $ac_word" >&5
10849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10850if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10852else
10853 if test -n "$RANLIB_FOR_TARGET"; then
10854 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10855else
10856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10857for as_dir in $PATH
10858do
10859 IFS=$as_save_IFS
10860 test -z "$as_dir" && as_dir=.
10861 for ac_exec_ext in '' $ac_executable_extensions; do
10862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10863 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10865 break 2
10866 fi
10867done
10868done
10869
10870fi
10871fi
10872RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10873if test -n "$RANLIB_FOR_TARGET"; then
10874 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10875echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10876else
10877 echo "$as_me:$LINENO: result: no" >&5
10878echo "${ECHO_T}no" >&6
10879fi
10880
10881 done
10882fi
10883
10884if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
10885 for ncn_progname in ranlib; do
10886 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10887echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10888 if test -x $with_build_time_tools/${ncn_progname}; then
10889 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10890 echo "$as_me:$LINENO: result: yes" >&5
10891echo "${ECHO_T}yes" >&6
10892 break
10893 else
10894 echo "$as_me:$LINENO: result: no" >&5
10895echo "${ECHO_T}no" >&6
10896 fi
10897 done
10898fi
10899
10900if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10901 for ncn_progname in ranlib; do
10902 if test -n "$ncn_target_tool_prefix"; then
10903 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10904set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10905echo "$as_me:$LINENO: checking for $ac_word" >&5
10906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10907if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10909else
10910 if test -n "$RANLIB_FOR_TARGET"; then
10911 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10912else
10913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914for as_dir in $PATH
10915do
10916 IFS=$as_save_IFS
10917 test -z "$as_dir" && as_dir=.
10918 for ac_exec_ext in '' $ac_executable_extensions; do
10919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10920 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10922 break 2
10923 fi
10924done
10925done
10926
10927fi
10928fi
10929RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10930if test -n "$RANLIB_FOR_TARGET"; then
10931 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10932echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10933else
10934 echo "$as_me:$LINENO: result: no" >&5
10935echo "${ECHO_T}no" >&6
10936fi
10937
10938 fi
10939 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10941set dummy ${ncn_progname}; ac_word=$2
10942echo "$as_me:$LINENO: checking for $ac_word" >&5
10943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10944if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946else
10947 if test -n "$RANLIB_FOR_TARGET"; then
10948 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10949else
10950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951for as_dir in $PATH
10952do
10953 IFS=$as_save_IFS
10954 test -z "$as_dir" && as_dir=.
10955 for ac_exec_ext in '' $ac_executable_extensions; do
10956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10957 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10959 break 2
10960 fi
10961done
10962done
10963
10964fi
10965fi
10966RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10967if test -n "$RANLIB_FOR_TARGET"; then
10968 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10969echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10970else
10971 echo "$as_me:$LINENO: result: no" >&5
10972echo "${ECHO_T}no" >&6
10973fi
10974
10975 fi
10976 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10977 done
10978fi
10979
10980if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10981 set dummy ranlib
10982 if test $build = $target ; then
10983 RANLIB_FOR_TARGET="$2"
10984 else
10985 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
10986 fi
10987else
10988 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
10989fi
10990
10991else
10992 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10993fi
10994
10995
10996
10997
10998if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10999 if test -n "$with_build_time_tools"; then
11000 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
11001echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
11002 if test -x $with_build_time_tools/strip; then
11003 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11004 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11005 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11006echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
11007 else
11008 echo "$as_me:$LINENO: result: no" >&5
11009echo "${ECHO_T}no" >&6
11010 fi
11011 elif test $build != $host && test $have_gcc_for_target = yes; then
11012 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
11013 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11014 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11015 fi
11016fi
11017if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11018 # Extract the first word of "strip", so it can be a program name with args.
11019set dummy strip; ac_word=$2
11020echo "$as_me:$LINENO: checking for $ac_word" >&5
11021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11022if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11024else
11025 case $STRIP_FOR_TARGET in
11026 [\\/]* | ?:[\\/]*)
11027 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11028 ;;
11029 *)
11030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11031for as_dir in $gcc_cv_tool_dirs
11032do
11033 IFS=$as_save_IFS
11034 test -z "$as_dir" && as_dir=.
11035 for ac_exec_ext in '' $ac_executable_extensions; do
11036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11037 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11039 break 2
11040 fi
11041done
11042done
11043
11044 ;;
11045esac
11046fi
11047STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11048
11049if test -n "$STRIP_FOR_TARGET"; then
11050 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11051echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11052else
11053 echo "$as_me:$LINENO: result: no" >&5
11054echo "${ECHO_T}no" >&6
11055fi
11056
11057fi
11058if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11059
11060
11061if test -n "$STRIP_FOR_TARGET"; then
11062 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11063elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11064 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11065fi
11066
11067if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11068 for ncn_progname in strip; do
11069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11070set dummy ${ncn_progname}; ac_word=$2
11071echo "$as_me:$LINENO: checking for $ac_word" >&5
11072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11073if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11074 echo $ECHO_N "(cached) $ECHO_C" >&6
11075else
11076 if test -n "$STRIP_FOR_TARGET"; then
11077 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11078else
11079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080for as_dir in $PATH
11081do
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11086 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11088 break 2
11089 fi
11090done
11091done
11092
11093fi
11094fi
11095STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11096if test -n "$STRIP_FOR_TARGET"; then
11097 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11098echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11099else
11100 echo "$as_me:$LINENO: result: no" >&5
11101echo "${ECHO_T}no" >&6
11102fi
11103
11104 done
11105fi
11106
11107if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11108 for ncn_progname in strip; do
11109 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11110echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11111 if test -x $with_build_time_tools/${ncn_progname}; then
11112 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11113 echo "$as_me:$LINENO: result: yes" >&5
11114echo "${ECHO_T}yes" >&6
11115 break
11116 else
11117 echo "$as_me:$LINENO: result: no" >&5
11118echo "${ECHO_T}no" >&6
11119 fi
11120 done
11121fi
11122
11123if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11124 for ncn_progname in strip; do
11125 if test -n "$ncn_target_tool_prefix"; then
11126 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11127set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11128echo "$as_me:$LINENO: checking for $ac_word" >&5
11129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11130if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132else
11133 if test -n "$STRIP_FOR_TARGET"; then
11134 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11135else
11136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11137for as_dir in $PATH
11138do
11139 IFS=$as_save_IFS
11140 test -z "$as_dir" && as_dir=.
11141 for ac_exec_ext in '' $ac_executable_extensions; do
11142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11143 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11145 break 2
11146 fi
11147done
11148done
11149
11150fi
11151fi
11152STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11153if test -n "$STRIP_FOR_TARGET"; then
11154 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11155echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11156else
11157 echo "$as_me:$LINENO: result: no" >&5
11158echo "${ECHO_T}no" >&6
11159fi
11160
11161 fi
11162 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11164set dummy ${ncn_progname}; ac_word=$2
11165echo "$as_me:$LINENO: checking for $ac_word" >&5
11166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11167if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11169else
11170 if test -n "$STRIP_FOR_TARGET"; then
11171 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11172else
11173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174for as_dir in $PATH
11175do
11176 IFS=$as_save_IFS
11177 test -z "$as_dir" && as_dir=.
11178 for ac_exec_ext in '' $ac_executable_extensions; do
11179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11180 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11182 break 2
11183 fi
11184done
11185done
11186
11187fi
11188fi
11189STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11190if test -n "$STRIP_FOR_TARGET"; then
11191 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11192echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11193else
11194 echo "$as_me:$LINENO: result: no" >&5
11195echo "${ECHO_T}no" >&6
11196fi
11197
11198 fi
11199 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11200 done
11201fi
11202
11203if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11204 set dummy strip
11205 if test $build = $target ; then
11206 STRIP_FOR_TARGET="$2"
11207 else
11208 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11209 fi
11210else
11211 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
11212fi
11213
11214else
11215 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11216fi
11217
11218
11219
11220
11221if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11222 if test -n "$with_build_time_tools"; then
11223 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11224echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
11225 if test -x $with_build_time_tools/windres; then
11226 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11227 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11228 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11229echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
11230 else
11231 echo "$as_me:$LINENO: result: no" >&5
11232echo "${ECHO_T}no" >&6
11233 fi
11234 elif test $build != $host && test $have_gcc_for_target = yes; then
11235 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
11236 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11237 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11238 fi
11239fi
11240if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11241 # Extract the first word of "windres", so it can be a program name with args.
11242set dummy windres; ac_word=$2
11243echo "$as_me:$LINENO: checking for $ac_word" >&5
11244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11245if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11247else
11248 case $WINDRES_FOR_TARGET in
11249 [\\/]* | ?:[\\/]*)
11250 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11251 ;;
11252 *)
11253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11254for as_dir in $gcc_cv_tool_dirs
11255do
11256 IFS=$as_save_IFS
11257 test -z "$as_dir" && as_dir=.
11258 for ac_exec_ext in '' $ac_executable_extensions; do
11259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11260 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11262 break 2
11263 fi
11264done
11265done
11266
11267 ;;
11268esac
11269fi
11270WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11271
11272if test -n "$WINDRES_FOR_TARGET"; then
11273 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11274echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11275else
11276 echo "$as_me:$LINENO: result: no" >&5
11277echo "${ECHO_T}no" >&6
11278fi
11279
11280fi
11281if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11282
11283
11284if test -n "$WINDRES_FOR_TARGET"; then
11285 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11286elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11287 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11288fi
11289
11290if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11291 for ncn_progname in windres; do
11292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11293set dummy ${ncn_progname}; ac_word=$2
11294echo "$as_me:$LINENO: checking for $ac_word" >&5
11295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11296if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11298else
11299 if test -n "$WINDRES_FOR_TARGET"; then
11300 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11301else
11302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11303for as_dir in $PATH
11304do
11305 IFS=$as_save_IFS
11306 test -z "$as_dir" && as_dir=.
11307 for ac_exec_ext in '' $ac_executable_extensions; do
11308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11309 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11311 break 2
11312 fi
11313done
11314done
11315
11316fi
11317fi
11318WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11319if test -n "$WINDRES_FOR_TARGET"; then
11320 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11321echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11322else
11323 echo "$as_me:$LINENO: result: no" >&5
11324echo "${ECHO_T}no" >&6
11325fi
11326
11327 done
11328fi
11329
11330if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
11331 for ncn_progname in windres; do
11332 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11333echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11334 if test -x $with_build_time_tools/${ncn_progname}; then
11335 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11336 echo "$as_me:$LINENO: result: yes" >&5
11337echo "${ECHO_T}yes" >&6
11338 break
11339 else
11340 echo "$as_me:$LINENO: result: no" >&5
11341echo "${ECHO_T}no" >&6
11342 fi
11343 done
11344fi
11345
11346if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11347 for ncn_progname in windres; do
11348 if test -n "$ncn_target_tool_prefix"; then
11349 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11350set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11351echo "$as_me:$LINENO: checking for $ac_word" >&5
11352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11353if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11355else
11356 if test -n "$WINDRES_FOR_TARGET"; then
11357 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11358else
11359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11360for as_dir in $PATH
11361do
11362 IFS=$as_save_IFS
11363 test -z "$as_dir" && as_dir=.
11364 for ac_exec_ext in '' $ac_executable_extensions; do
11365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11366 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11368 break 2
11369 fi
11370done
11371done
11372
11373fi
11374fi
11375WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11376if test -n "$WINDRES_FOR_TARGET"; then
11377 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11378echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11379else
11380 echo "$as_me:$LINENO: result: no" >&5
11381echo "${ECHO_T}no" >&6
11382fi
11383
11384 fi
11385 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11387set dummy ${ncn_progname}; ac_word=$2
11388echo "$as_me:$LINENO: checking for $ac_word" >&5
11389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11390if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11392else
11393 if test -n "$WINDRES_FOR_TARGET"; then
11394 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11395else
11396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11397for as_dir in $PATH
11398do
11399 IFS=$as_save_IFS
11400 test -z "$as_dir" && as_dir=.
11401 for ac_exec_ext in '' $ac_executable_extensions; do
11402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11403 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11405 break 2
11406 fi
11407done
11408done
11409
11410fi
11411fi
11412WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11413if test -n "$WINDRES_FOR_TARGET"; then
11414 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11415echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11416else
11417 echo "$as_me:$LINENO: result: no" >&5
11418echo "${ECHO_T}no" >&6
11419fi
11420
11421 fi
11422 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11423 done
11424fi
11425
11426if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11427 set dummy windres
11428 if test $build = $target ; then
11429 WINDRES_FOR_TARGET="$2"
11430 else
11431 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
11432 fi
11433else
11434 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
11435fi
11436
11437else
11438 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11439fi
11440
11441
11442
11443
11444if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11445 if test -n "$with_build_time_tools"; then
11446 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11447echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11448 if test -x $with_build_time_tools/windmc; then
11449 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11450 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11451 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11452echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11453 else
11454 echo "$as_me:$LINENO: result: no" >&5
11455echo "${ECHO_T}no" >&6
11456 fi
11457 elif test $build != $host && test $have_gcc_for_target = yes; then
11458 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11459 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11460 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11461 fi
11462fi
11463if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11464 # Extract the first word of "windmc", so it can be a program name with args.
11465set dummy windmc; ac_word=$2
11466echo "$as_me:$LINENO: checking for $ac_word" >&5
11467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11468if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11470else
11471 case $WINDMC_FOR_TARGET in
11472 [\\/]* | ?:[\\/]*)
11473 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11474 ;;
11475 *)
11476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477for as_dir in $gcc_cv_tool_dirs
11478do
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
11481 for ac_exec_ext in '' $ac_executable_extensions; do
11482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11483 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11485 break 2
11486 fi
11487done
11488done
11489
11490 ;;
11491esac
11492fi
11493WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11494
11495if test -n "$WINDMC_FOR_TARGET"; then
11496 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11497echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11498else
11499 echo "$as_me:$LINENO: result: no" >&5
11500echo "${ECHO_T}no" >&6
11501fi
11502
11503fi
11504if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11505
11506
11507if test -n "$WINDMC_FOR_TARGET"; then
11508 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11509elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11510 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11511fi
11512
11513if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11514 for ncn_progname in windmc; do
11515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11516set dummy ${ncn_progname}; ac_word=$2
11517echo "$as_me:$LINENO: checking for $ac_word" >&5
11518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11519if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11521else
11522 if test -n "$WINDMC_FOR_TARGET"; then
11523 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11524else
11525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526for as_dir in $PATH
11527do
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11532 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 break 2
11535 fi
11536done
11537done
11538
11539fi
11540fi
11541WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11542if test -n "$WINDMC_FOR_TARGET"; then
11543 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11544echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11545else
11546 echo "$as_me:$LINENO: result: no" >&5
11547echo "${ECHO_T}no" >&6
11548fi
11549
11550 done
11551fi
11552
11553if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11554 for ncn_progname in windmc; do
11555 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11556echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11557 if test -x $with_build_time_tools/${ncn_progname}; then
11558 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11559 echo "$as_me:$LINENO: result: yes" >&5
11560echo "${ECHO_T}yes" >&6
11561 break
11562 else
11563 echo "$as_me:$LINENO: result: no" >&5
11564echo "${ECHO_T}no" >&6
11565 fi
11566 done
11567fi
11568
11569if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11570 for ncn_progname in windmc; do
11571 if test -n "$ncn_target_tool_prefix"; then
11572 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11573set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11574echo "$as_me:$LINENO: checking for $ac_word" >&5
11575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11576if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11578else
11579 if test -n "$WINDMC_FOR_TARGET"; then
11580 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11581else
11582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583for as_dir in $PATH
11584do
11585 IFS=$as_save_IFS
11586 test -z "$as_dir" && as_dir=.
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11589 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11591 break 2
11592 fi
11593done
11594done
11595
11596fi
11597fi
11598WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11599if test -n "$WINDMC_FOR_TARGET"; then
11600 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11601echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11602else
11603 echo "$as_me:$LINENO: result: no" >&5
11604echo "${ECHO_T}no" >&6
11605fi
11606
11607 fi
11608 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11609 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11610set dummy ${ncn_progname}; ac_word=$2
11611echo "$as_me:$LINENO: checking for $ac_word" >&5
11612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11613if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11615else
11616 if test -n "$WINDMC_FOR_TARGET"; then
11617 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11618else
11619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620for as_dir in $PATH
11621do
11622 IFS=$as_save_IFS
11623 test -z "$as_dir" && as_dir=.
11624 for ac_exec_ext in '' $ac_executable_extensions; do
11625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11626 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11628 break 2
11629 fi
11630done
11631done
11632
11633fi
11634fi
11635WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11636if test -n "$WINDMC_FOR_TARGET"; then
11637 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11638echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11639else
11640 echo "$as_me:$LINENO: result: no" >&5
11641echo "${ECHO_T}no" >&6
11642fi
11643
11644 fi
11645 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11646 done
11647fi
11648
11649if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11650 set dummy windmc
11651 if test $build = $target ; then
11652 WINDMC_FOR_TARGET="$2"
11653 else
11654 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11655 fi
11656else
11657 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11658fi
11659
11660else
11661 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11662fi
11663
11664
11665RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11666
11667echo "$as_me:$LINENO: checking where to find the target ar" >&5
11668echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
11669if test "x${build}" != "x${host}" ; then
11670 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11671 # We already found the complete path
11672 ac_dir=`dirname $AR_FOR_TARGET`
11673 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11674echo "${ECHO_T}pre-installed in $ac_dir" >&6
11675 else
11676 # Canadian cross, just use what we found
11677 echo "$as_me:$LINENO: result: pre-installed" >&5
11678echo "${ECHO_T}pre-installed" >&6
11679 fi
11680else
11681 ok=yes
11682 case " ${configdirs} " in
11683 *" binutils "*) ;;
11684 *) ok=no ;;
11685 esac
11686
11687 if test $ok = yes; then
11688 # An in-tree tool is available and we can use it
11689 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
11690 echo "$as_me:$LINENO: result: just compiled" >&5
11691echo "${ECHO_T}just compiled" >&6
11692 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11693 # We already found the complete path
11694 ac_dir=`dirname $AR_FOR_TARGET`
11695 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11696echo "${ECHO_T}pre-installed in $ac_dir" >&6
11697 elif test "x$target" = "x$host"; then
11698 # We can use an host tool
11699 AR_FOR_TARGET='$(AR)'
11700 echo "$as_me:$LINENO: result: host tool" >&5
11701echo "${ECHO_T}host tool" >&6
11702 else
11703 # We need a cross tool
11704 echo "$as_me:$LINENO: result: pre-installed" >&5
11705echo "${ECHO_T}pre-installed" >&6
11706 fi
11707fi
11708
11709echo "$as_me:$LINENO: checking where to find the target as" >&5
11710echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
11711if test "x${build}" != "x${host}" ; then
11712 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11713 # We already found the complete path
11714 ac_dir=`dirname $AS_FOR_TARGET`
11715 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11716echo "${ECHO_T}pre-installed in $ac_dir" >&6
11717 else
11718 # Canadian cross, just use what we found
11719 echo "$as_me:$LINENO: result: pre-installed" >&5
11720echo "${ECHO_T}pre-installed" >&6
11721 fi
11722else
11723 ok=yes
11724 case " ${configdirs} " in
11725 *" gas "*) ;;
11726 *) ok=no ;;
11727 esac
11728
11729 if test $ok = yes; then
11730 # An in-tree tool is available and we can use it
11731 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
11732 echo "$as_me:$LINENO: result: just compiled" >&5
11733echo "${ECHO_T}just compiled" >&6
11734 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11735 # We already found the complete path
11736 ac_dir=`dirname $AS_FOR_TARGET`
11737 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11738echo "${ECHO_T}pre-installed in $ac_dir" >&6
11739 elif test "x$target" = "x$host"; then
11740 # We can use an host tool
11741 AS_FOR_TARGET='$(AS)'
11742 echo "$as_me:$LINENO: result: host tool" >&5
11743echo "${ECHO_T}host tool" >&6
11744 else
11745 # We need a cross tool
11746 echo "$as_me:$LINENO: result: pre-installed" >&5
11747echo "${ECHO_T}pre-installed" >&6
11748 fi
11749fi
11750
11751echo "$as_me:$LINENO: checking where to find the target cc" >&5
11752echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
11753if test "x${build}" != "x${host}" ; then
11754 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11755 # We already found the complete path
11756 ac_dir=`dirname $CC_FOR_TARGET`
11757 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11758echo "${ECHO_T}pre-installed in $ac_dir" >&6
11759 else
11760 # Canadian cross, just use what we found
11761 echo "$as_me:$LINENO: result: pre-installed" >&5
11762echo "${ECHO_T}pre-installed" >&6
11763 fi
11764else
11765 ok=yes
11766 case " ${configdirs} " in
11767 *" gcc "*) ;;
11768 *) ok=no ;;
11769 esac
11770
11771 if test $ok = yes; then
11772 # An in-tree tool is available and we can use it
11773 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11774 echo "$as_me:$LINENO: result: just compiled" >&5
11775echo "${ECHO_T}just compiled" >&6
11776 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11777 # We already found the complete path
11778 ac_dir=`dirname $CC_FOR_TARGET`
11779 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11780echo "${ECHO_T}pre-installed in $ac_dir" >&6
11781 elif test "x$target" = "x$host"; then
11782 # We can use an host tool
11783 CC_FOR_TARGET='$(CC)'
11784 echo "$as_me:$LINENO: result: host tool" >&5
11785echo "${ECHO_T}host tool" >&6
11786 else
11787 # We need a cross tool
11788 echo "$as_me:$LINENO: result: pre-installed" >&5
11789echo "${ECHO_T}pre-installed" >&6
11790 fi
11791fi
11792
11793echo "$as_me:$LINENO: checking where to find the target c++" >&5
11794echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
11795if test "x${build}" != "x${host}" ; then
11796 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11797 # We already found the complete path
11798 ac_dir=`dirname $CXX_FOR_TARGET`
11799 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11800echo "${ECHO_T}pre-installed in $ac_dir" >&6
11801 else
11802 # Canadian cross, just use what we found
11803 echo "$as_me:$LINENO: result: pre-installed" >&5
11804echo "${ECHO_T}pre-installed" >&6
11805 fi
11806else
11807 ok=yes
11808 case " ${configdirs} " in
11809 *" gcc "*) ;;
11810 *) ok=no ;;
11811 esac
11812 case ,${enable_languages}, in
11813 *,c++,*) ;;
11814 *) ok=no ;;
11815 esac
11816 if test $ok = yes; then
11817 # An in-tree tool is available and we can use it
11818 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'
11819 echo "$as_me:$LINENO: result: just compiled" >&5
11820echo "${ECHO_T}just compiled" >&6
11821 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11822 # We already found the complete path
11823 ac_dir=`dirname $CXX_FOR_TARGET`
11824 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11825echo "${ECHO_T}pre-installed in $ac_dir" >&6
11826 elif test "x$target" = "x$host"; then
11827 # We can use an host tool
11828 CXX_FOR_TARGET='$(CXX)'
11829 echo "$as_me:$LINENO: result: host tool" >&5
11830echo "${ECHO_T}host tool" >&6
11831 else
11832 # We need a cross tool
11833 echo "$as_me:$LINENO: result: pre-installed" >&5
11834echo "${ECHO_T}pre-installed" >&6
11835 fi
11836fi
11837
11838echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11839echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
11840if test "x${build}" != "x${host}" ; then
11841 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11842 # We already found the complete path
11843 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11844 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11845echo "${ECHO_T}pre-installed in $ac_dir" >&6
11846 else
11847 # Canadian cross, just use what we found
11848 echo "$as_me:$LINENO: result: pre-installed" >&5
11849echo "${ECHO_T}pre-installed" >&6
11850 fi
11851else
11852 ok=yes
11853 case " ${configdirs} " in
11854 *" gcc "*) ;;
11855 *) ok=no ;;
11856 esac
11857 case ,${enable_languages}, in
11858 *,c++,*) ;;
11859 *) ok=no ;;
11860 esac
11861 if test $ok = yes; then
11862 # An in-tree tool is available and we can use it
11863 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'
11864 echo "$as_me:$LINENO: result: just compiled" >&5
11865echo "${ECHO_T}just compiled" >&6
11866 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11867 # We already found the complete path
11868 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11869 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11870echo "${ECHO_T}pre-installed in $ac_dir" >&6
11871 elif test "x$target" = "x$host"; then
11872 # We can use an host tool
11873 RAW_CXX_FOR_TARGET='$(CXX)'
11874 echo "$as_me:$LINENO: result: host tool" >&5
11875echo "${ECHO_T}host tool" >&6
11876 else
11877 # We need a cross tool
11878 echo "$as_me:$LINENO: result: pre-installed" >&5
11879echo "${ECHO_T}pre-installed" >&6
11880 fi
11881fi
11882
11883echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11884echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
11885if test "x${build}" != "x${host}" ; then
11886 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11887 # We already found the complete path
11888 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11889 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11890echo "${ECHO_T}pre-installed in $ac_dir" >&6
11891 else
11892 # Canadian cross, just use what we found
11893 echo "$as_me:$LINENO: result: pre-installed" >&5
11894echo "${ECHO_T}pre-installed" >&6
11895 fi
11896else
11897 ok=yes
11898 case " ${configdirs} " in
11899 *" binutils "*) ;;
11900 *) ok=no ;;
11901 esac
11902
11903 if test $ok = yes; then
11904 # An in-tree tool is available and we can use it
11905 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
11906 echo "$as_me:$LINENO: result: just compiled" >&5
11907echo "${ECHO_T}just compiled" >&6
11908 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11909 # We already found the complete path
11910 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11911 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11912echo "${ECHO_T}pre-installed in $ac_dir" >&6
11913 elif test "x$target" = "x$host"; then
11914 # We can use an host tool
11915 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
11916 echo "$as_me:$LINENO: result: host tool" >&5
11917echo "${ECHO_T}host tool" >&6
11918 else
11919 # We need a cross tool
11920 echo "$as_me:$LINENO: result: pre-installed" >&5
11921echo "${ECHO_T}pre-installed" >&6
11922 fi
11923fi
11924
11925echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11926echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
11927if test "x${build}" != "x${host}" ; then
11928 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11929 # We already found the complete path
11930 ac_dir=`dirname $GCC_FOR_TARGET`
11931 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11932echo "${ECHO_T}pre-installed in $ac_dir" >&6
11933 else
11934 # Canadian cross, just use what we found
11935 echo "$as_me:$LINENO: result: pre-installed" >&5
11936echo "${ECHO_T}pre-installed" >&6
11937 fi
11938else
11939 ok=yes
11940 case " ${configdirs} " in
11941 *" gcc "*) ;;
11942 *) ok=no ;;
11943 esac
11944
11945 if test $ok = yes; then
11946 # An in-tree tool is available and we can use it
11947 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11948 echo "$as_me:$LINENO: result: just compiled" >&5
11949echo "${ECHO_T}just compiled" >&6
11950 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11951 # We already found the complete path
11952 ac_dir=`dirname $GCC_FOR_TARGET`
11953 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11954echo "${ECHO_T}pre-installed in $ac_dir" >&6
11955 elif test "x$target" = "x$host"; then
11956 # We can use an host tool
11957 GCC_FOR_TARGET='$()'
11958 echo "$as_me:$LINENO: result: host tool" >&5
11959echo "${ECHO_T}host tool" >&6
11960 else
11961 # We need a cross tool
11962 echo "$as_me:$LINENO: result: pre-installed" >&5
11963echo "${ECHO_T}pre-installed" >&6
11964 fi
11965fi
11966
11967echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11968echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
11969if test "x${build}" != "x${host}" ; then
11970 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11971 # We already found the complete path
11972 ac_dir=`dirname $GCJ_FOR_TARGET`
11973 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11974echo "${ECHO_T}pre-installed in $ac_dir" >&6
11975 else
11976 # Canadian cross, just use what we found
11977 echo "$as_me:$LINENO: result: pre-installed" >&5
11978echo "${ECHO_T}pre-installed" >&6
11979 fi
11980else
11981 ok=yes
11982 case " ${configdirs} " in
11983 *" gcc "*) ;;
11984 *) ok=no ;;
11985 esac
11986 case ,${enable_languages}, in
11987 *,java,*) ;;
11988 *) ok=no ;;
11989 esac
11990 if test $ok = yes; then
11991 # An in-tree tool is available and we can use it
11992 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
11993 echo "$as_me:$LINENO: result: just compiled" >&5
11994echo "${ECHO_T}just compiled" >&6
11995 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11996 # We already found the complete path
11997 ac_dir=`dirname $GCJ_FOR_TARGET`
11998 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11999echo "${ECHO_T}pre-installed in $ac_dir" >&6
12000 elif test "x$target" = "x$host"; then
12001 # We can use an host tool
12002 GCJ_FOR_TARGET='$(GCJ)'
12003 echo "$as_me:$LINENO: result: host tool" >&5
12004echo "${ECHO_T}host tool" >&6
12005 else
12006 # We need a cross tool
12007 echo "$as_me:$LINENO: result: pre-installed" >&5
12008echo "${ECHO_T}pre-installed" >&6
12009 fi
12010fi
12011
12012echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
12013echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
12014if test "x${build}" != "x${host}" ; then
12015 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12016 # We already found the complete path
12017 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12018 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12019echo "${ECHO_T}pre-installed in $ac_dir" >&6
12020 else
12021 # Canadian cross, just use what we found
12022 echo "$as_me:$LINENO: result: pre-installed" >&5
12023echo "${ECHO_T}pre-installed" >&6
12024 fi
12025else
12026 ok=yes
12027 case " ${configdirs} " in
12028 *" gcc "*) ;;
12029 *) ok=no ;;
12030 esac
12031 case ,${enable_languages}, in
12032 *,fortran,*) ;;
12033 *) ok=no ;;
12034 esac
12035 if test $ok = yes; then
12036 # An in-tree tool is available and we can use it
12037 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
12038 echo "$as_me:$LINENO: result: just compiled" >&5
12039echo "${ECHO_T}just compiled" >&6
12040 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12041 # We already found the complete path
12042 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12043 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12044echo "${ECHO_T}pre-installed in $ac_dir" >&6
12045 elif test "x$target" = "x$host"; then
12046 # We can use an host tool
12047 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
12048 echo "$as_me:$LINENO: result: host tool" >&5
12049echo "${ECHO_T}host tool" >&6
12050 else
12051 # We need a cross tool
12052 echo "$as_me:$LINENO: result: pre-installed" >&5
12053echo "${ECHO_T}pre-installed" >&6
12054 fi
12055fi
12056
12057echo "$as_me:$LINENO: checking where to find the target ld" >&5
12058echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
12059if test "x${build}" != "x${host}" ; then
12060 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12061 # We already found the complete path
12062 ac_dir=`dirname $LD_FOR_TARGET`
12063 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12064echo "${ECHO_T}pre-installed in $ac_dir" >&6
12065 else
12066 # Canadian cross, just use what we found
12067 echo "$as_me:$LINENO: result: pre-installed" >&5
12068echo "${ECHO_T}pre-installed" >&6
12069 fi
12070else
12071 ok=yes
12072 case " ${configdirs} " in
12073 *" ld "*) ;;
12074 *) ok=no ;;
12075 esac
12076
12077 if test $ok = yes; then
12078 # An in-tree tool is available and we can use it
12079 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
12080 echo "$as_me:$LINENO: result: just compiled" >&5
12081echo "${ECHO_T}just compiled" >&6
12082 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12083 # We already found the complete path
12084 ac_dir=`dirname $LD_FOR_TARGET`
12085 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12086echo "${ECHO_T}pre-installed in $ac_dir" >&6
12087 elif test "x$target" = "x$host"; then
12088 # We can use an host tool
12089 LD_FOR_TARGET='$(LD)'
12090 echo "$as_me:$LINENO: result: host tool" >&5
12091echo "${ECHO_T}host tool" >&6
12092 else
12093 # We need a cross tool
12094 echo "$as_me:$LINENO: result: pre-installed" >&5
12095echo "${ECHO_T}pre-installed" >&6
12096 fi
12097fi
12098
12099echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12100echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
12101if test "x${build}" != "x${host}" ; then
12102 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12103 # We already found the complete path
12104 ac_dir=`dirname $LIPO_FOR_TARGET`
12105 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12106echo "${ECHO_T}pre-installed in $ac_dir" >&6
12107 else
12108 # Canadian cross, just use what we found
12109 echo "$as_me:$LINENO: result: pre-installed" >&5
12110echo "${ECHO_T}pre-installed" >&6
12111 fi
12112else
12113 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12114 # We already found the complete path
12115 ac_dir=`dirname $LIPO_FOR_TARGET`
12116 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12117echo "${ECHO_T}pre-installed in $ac_dir" >&6
12118 elif test "x$target" = "x$host"; then
12119 # We can use an host tool
12120 LIPO_FOR_TARGET='$(LIPO)'
12121 echo "$as_me:$LINENO: result: host tool" >&5
12122echo "${ECHO_T}host tool" >&6
12123 else
12124 # We need a cross tool
12125 echo "$as_me:$LINENO: result: pre-installed" >&5
12126echo "${ECHO_T}pre-installed" >&6
12127 fi
12128fi
12129
12130echo "$as_me:$LINENO: checking where to find the target nm" >&5
12131echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
12132if test "x${build}" != "x${host}" ; then
12133 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12134 # We already found the complete path
12135 ac_dir=`dirname $NM_FOR_TARGET`
12136 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12137echo "${ECHO_T}pre-installed in $ac_dir" >&6
12138 else
12139 # Canadian cross, just use what we found
12140 echo "$as_me:$LINENO: result: pre-installed" >&5
12141echo "${ECHO_T}pre-installed" >&6
12142 fi
12143else
12144 ok=yes
12145 case " ${configdirs} " in
12146 *" binutils "*) ;;
12147 *) ok=no ;;
12148 esac
12149
12150 if test $ok = yes; then
12151 # An in-tree tool is available and we can use it
12152 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
12153 echo "$as_me:$LINENO: result: just compiled" >&5
12154echo "${ECHO_T}just compiled" >&6
12155 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12156 # We already found the complete path
12157 ac_dir=`dirname $NM_FOR_TARGET`
12158 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12159echo "${ECHO_T}pre-installed in $ac_dir" >&6
12160 elif test "x$target" = "x$host"; then
12161 # We can use an host tool
12162 NM_FOR_TARGET='$(NM)'
12163 echo "$as_me:$LINENO: result: host tool" >&5
12164echo "${ECHO_T}host tool" >&6
12165 else
12166 # We need a cross tool
12167 echo "$as_me:$LINENO: result: pre-installed" >&5
12168echo "${ECHO_T}pre-installed" >&6
12169 fi
12170fi
12171
12172echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12173echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
12174if test "x${build}" != "x${host}" ; then
12175 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12176 # We already found the complete path
12177 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12178 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12179echo "${ECHO_T}pre-installed in $ac_dir" >&6
12180 else
12181 # Canadian cross, just use what we found
12182 echo "$as_me:$LINENO: result: pre-installed" >&5
12183echo "${ECHO_T}pre-installed" >&6
12184 fi
12185else
12186 ok=yes
12187 case " ${configdirs} " in
12188 *" binutils "*) ;;
12189 *) ok=no ;;
12190 esac
12191
12192 if test $ok = yes; then
12193 # An in-tree tool is available and we can use it
12194 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
12195 echo "$as_me:$LINENO: result: just compiled" >&5
12196echo "${ECHO_T}just compiled" >&6
12197 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12198 # We already found the complete path
12199 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12200 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12201echo "${ECHO_T}pre-installed in $ac_dir" >&6
12202 elif test "x$target" = "x$host"; then
12203 # We can use an host tool
12204 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
12205 echo "$as_me:$LINENO: result: host tool" >&5
12206echo "${ECHO_T}host tool" >&6
12207 else
12208 # We need a cross tool
12209 echo "$as_me:$LINENO: result: pre-installed" >&5
12210echo "${ECHO_T}pre-installed" >&6
12211 fi
12212fi
12213
12214echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12215echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
12216if test "x${build}" != "x${host}" ; then
12217 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12218 # We already found the complete path
12219 ac_dir=`dirname $RANLIB_FOR_TARGET`
12220 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12221echo "${ECHO_T}pre-installed in $ac_dir" >&6
12222 else
12223 # Canadian cross, just use what we found
12224 echo "$as_me:$LINENO: result: pre-installed" >&5
12225echo "${ECHO_T}pre-installed" >&6
12226 fi
12227else
12228 ok=yes
12229 case " ${configdirs} " in
12230 *" binutils "*) ;;
12231 *) ok=no ;;
12232 esac
12233
12234 if test $ok = yes; then
12235 # An in-tree tool is available and we can use it
12236 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
12237 echo "$as_me:$LINENO: result: just compiled" >&5
12238echo "${ECHO_T}just compiled" >&6
12239 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12240 # We already found the complete path
12241 ac_dir=`dirname $RANLIB_FOR_TARGET`
12242 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12243echo "${ECHO_T}pre-installed in $ac_dir" >&6
12244 elif test "x$target" = "x$host"; then
12245 # We can use an host tool
12246 RANLIB_FOR_TARGET='$(RANLIB)'
12247 echo "$as_me:$LINENO: result: host tool" >&5
12248echo "${ECHO_T}host tool" >&6
12249 else
12250 # We need a cross tool
12251 echo "$as_me:$LINENO: result: pre-installed" >&5
12252echo "${ECHO_T}pre-installed" >&6
12253 fi
12254fi
12255
12256echo "$as_me:$LINENO: checking where to find the target strip" >&5
12257echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
12258if test "x${build}" != "x${host}" ; then
12259 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12260 # We already found the complete path
12261 ac_dir=`dirname $STRIP_FOR_TARGET`
12262 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12263echo "${ECHO_T}pre-installed in $ac_dir" >&6
12264 else
12265 # Canadian cross, just use what we found
12266 echo "$as_me:$LINENO: result: pre-installed" >&5
12267echo "${ECHO_T}pre-installed" >&6
12268 fi
12269else
12270 ok=yes
12271 case " ${configdirs} " in
12272 *" binutils "*) ;;
12273 *) ok=no ;;
12274 esac
12275
12276 if test $ok = yes; then
12277 # An in-tree tool is available and we can use it
12278 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
12279 echo "$as_me:$LINENO: result: just compiled" >&5
12280echo "${ECHO_T}just compiled" >&6
12281 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12282 # We already found the complete path
12283 ac_dir=`dirname $STRIP_FOR_TARGET`
12284 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12285echo "${ECHO_T}pre-installed in $ac_dir" >&6
12286 elif test "x$target" = "x$host"; then
12287 # We can use an host tool
12288 STRIP_FOR_TARGET='$(STRIP)'
12289 echo "$as_me:$LINENO: result: host tool" >&5
12290echo "${ECHO_T}host tool" >&6
12291 else
12292 # We need a cross tool
12293 echo "$as_me:$LINENO: result: pre-installed" >&5
12294echo "${ECHO_T}pre-installed" >&6
12295 fi
12296fi
12297
12298echo "$as_me:$LINENO: checking where to find the target windres" >&5
12299echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
12300if test "x${build}" != "x${host}" ; then
12301 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12302 # We already found the complete path
12303 ac_dir=`dirname $WINDRES_FOR_TARGET`
12304 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12305echo "${ECHO_T}pre-installed in $ac_dir" >&6
12306 else
12307 # Canadian cross, just use what we found
12308 echo "$as_me:$LINENO: result: pre-installed" >&5
12309echo "${ECHO_T}pre-installed" >&6
12310 fi
12311else
12312 ok=yes
12313 case " ${configdirs} " in
12314 *" binutils "*) ;;
12315 *) ok=no ;;
12316 esac
12317
12318 if test $ok = yes; then
12319 # An in-tree tool is available and we can use it
12320 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
12321 echo "$as_me:$LINENO: result: just compiled" >&5
12322echo "${ECHO_T}just compiled" >&6
12323 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12324 # We already found the complete path
12325 ac_dir=`dirname $WINDRES_FOR_TARGET`
12326 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12327echo "${ECHO_T}pre-installed in $ac_dir" >&6
12328 elif test "x$target" = "x$host"; then
12329 # We can use an host tool
12330 WINDRES_FOR_TARGET='$(WINDRES)'
12331 echo "$as_me:$LINENO: result: host tool" >&5
12332echo "${ECHO_T}host tool" >&6
12333 else
12334 # We need a cross tool
12335 echo "$as_me:$LINENO: result: pre-installed" >&5
12336echo "${ECHO_T}pre-installed" >&6
12337 fi
12338fi
12339
12340echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12341echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12342if test "x${build}" != "x${host}" ; then
12343 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12344 # We already found the complete path
12345 ac_dir=`dirname $WINDMC_FOR_TARGET`
12346 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12347echo "${ECHO_T}pre-installed in $ac_dir" >&6
12348 else
12349 # Canadian cross, just use what we found
12350 echo "$as_me:$LINENO: result: pre-installed" >&5
12351echo "${ECHO_T}pre-installed" >&6
12352 fi
12353else
12354 ok=yes
12355 case " ${configdirs} " in
12356 *" binutils "*) ;;
12357 *) ok=no ;;
12358 esac
12359
12360 if test $ok = yes; then
12361 # An in-tree tool is available and we can use it
12362 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12363 echo "$as_me:$LINENO: result: just compiled" >&5
12364echo "${ECHO_T}just compiled" >&6
12365 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12366 # We already found the complete path
12367 ac_dir=`dirname $WINDMC_FOR_TARGET`
12368 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12369echo "${ECHO_T}pre-installed in $ac_dir" >&6
12370 elif test "x$target" = "x$host"; then
12371 # We can use an host tool
12372 WINDMC_FOR_TARGET='$(WINDMC)'
12373 echo "$as_me:$LINENO: result: host tool" >&5
12374echo "${ECHO_T}host tool" >&6
12375 else
12376 # We need a cross tool
12377 echo "$as_me:$LINENO: result: pre-installed" >&5
12378echo "${ECHO_T}pre-installed" >&6
12379 fi
12380fi
12381
12382
12383
12384
12385
12386# Certain tools may need extra flags.
12387AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12388RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12389NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12390
12391# When building target libraries, except in a Canadian cross, we use
12392# the same toolchain as the compiler we just built.
12393COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12394COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12395COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12396if test $host = $build; then
12397 case " $configdirs " in
12398 *" gcc "*)
12399 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12400 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12401 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12402 ;;
12403 esac
12404fi
12405
12406
12407
12408
12409
12410echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12411echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12412# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12413if test "${enable_maintainer_mode+set}" = set; then
12414 enableval="$enable_maintainer_mode"
12415 USE_MAINTAINER_MODE=$enableval
12416else
12417 USE_MAINTAINER_MODE=no
12418fi;
12419echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12420echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12421
12422
12423if test "$USE_MAINTAINER_MODE" = yes; then
12424 MAINTAINER_MODE_TRUE=
12425 MAINTAINER_MODE_FALSE='#'
12426else
12427 MAINTAINER_MODE_TRUE='#'
12428 MAINTAINER_MODE_FALSE=
12429fi
12430MAINT=$MAINTAINER_MODE_TRUE
12431
12432# ---------------------
12433# GCC bootstrap support
12434# ---------------------
12435
12436# Stage specific cflags for build.
12437stage1_cflags="-g"
12438case $build in
12439 vax-*-*)
12440 case ${GCC} in
12441 yes) stage1_cflags="-g -Wa,-J" ;;
12442 *) stage1_cflags="-g -J" ;;
12443 esac ;;
12444esac
12445
12446# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12447if test "$GCC" = yes; then
12448 saved_CFLAGS="$CFLAGS"
12449
12450 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12451 CFLAGS="$CFLAGS -fkeep-inline-functions"
12452 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12453echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12454 cat >conftest.$ac_ext <<_ACEOF
12455/* confdefs.h. */
12456_ACEOF
12457cat confdefs.h >>conftest.$ac_ext
12458cat >>conftest.$ac_ext <<_ACEOF
12459/* end confdefs.h. */
12460
12461#if (__GNUC__ < 3) \
12462 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12463 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12464#error http://gcc.gnu.org/PR29382
12465#endif
12466
12467int
12468main ()
12469{
12470
12471 ;
12472 return 0;
12473}
12474_ACEOF
12475rm -f conftest.$ac_objext
12476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12477 (eval $ac_compile) 2>conftest.er1
12478 ac_status=$?
12479 grep -v '^ *+' conftest.er1 >conftest.err
12480 rm -f conftest.er1
12481 cat conftest.err >&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); } &&
12484 { ac_try='test -z "$ac_c_werror_flag"
12485 || test ! -s conftest.err'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12488 ac_status=$?
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; } &&
12491 { ac_try='test -s conftest.$ac_objext'
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12494 ac_status=$?
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; }; then
12497 echo "$as_me:$LINENO: result: yes" >&5
12498echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12499else
12500 echo "$as_me: failed program was:" >&5
12501sed 's/^/| /' conftest.$ac_ext >&5
12502
12503echo "$as_me:$LINENO: result: no" >&5
12504echo "${ECHO_T}no" >&6
12505fi
12506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12507
12508 CFLAGS="$saved_CFLAGS"
12509fi
12510
12511
12512
12513# Enable --enable-checking in stage1 of the compiler.
12514# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12515if test "${enable_stage1_checking+set}" = set; then
12516 enableval="$enable_stage1_checking"
12517 stage1_checking=--enable-checking=${enable_stage1_checking}
12518else
12519 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
12520 stage1_checking=--enable-checking=yes,types
12521else
12522 stage1_checking=--enable-checking=$enable_checking,types
12523fi
12524fi;
12525
12526
12527# Enable -Werror in bootstrap stage2 and later.
12528# Check whether --enable-werror or --disable-werror was given.
12529if test "${enable_werror+set}" = set; then
12530 enableval="$enable_werror"
12531
12532else
12533 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
12534 enable_werror=yes
12535else
12536 enable_werror=no
12537fi
12538fi;
12539case ${enable_werror} in
12540 yes) stage2_werror_flag="--enable-werror-always" ;;
12541 *) stage2_werror_flag="" ;;
12542esac
12543
12544
12545# Flags needed to enable html installing and building
12546
12547# Check whether --with-datarootdir or --without-datarootdir was given.
12548if test "${with_datarootdir+set}" = set; then
12549 withval="$with_datarootdir"
12550 datarootdir="\${prefix}/${withval}"
12551else
12552 datarootdir="\${prefix}/share"
12553fi;
12554
12555
12556# Check whether --with-docdir or --without-docdir was given.
12557if test "${with_docdir+set}" = set; then
12558 withval="$with_docdir"
12559 docdir="\${prefix}/${withval}"
12560else
12561 docdir="\${datarootdir}/doc"
12562fi;
12563
12564
12565# Check whether --with-pdfdir or --without-pdfdir was given.
12566if test "${with_pdfdir+set}" = set; then
12567 withval="$with_pdfdir"
12568 pdfdir="\${prefix}/${withval}"
12569else
12570 pdfdir="\${docdir}"
12571fi;
12572
12573
12574# Check whether --with-htmldir or --without-htmldir was given.
12575if test "${with_htmldir+set}" = set; then
12576 withval="$with_htmldir"
12577 htmldir="\${prefix}/${withval}"
12578else
12579 htmldir="\${docdir}"
12580fi;
12581
12582
12583
12584
12585
12586
12587 ac_config_files="$ac_config_files Makefile"
12588cat >confcache <<\_ACEOF
12589# This file is a shell script that caches the results of configure
12590# tests run on this system so they can be shared between configure
12591# scripts and configure runs, see configure's option --config-cache.
12592# It is not useful on other systems. If it contains results you don't
12593# want to keep, you may remove or edit it.
12594#
12595# config.status only pays attention to the cache file if you give it
12596# the --recheck option to rerun configure.
12597#
12598# `ac_cv_env_foo' variables (set or unset) will be overridden when
12599# loading this file, other *unset* `ac_cv_foo' will be assigned the
12600# following values.
12601
12602_ACEOF
12603
12604# The following way of writing the cache mishandles newlines in values,
12605# but we know of no workaround that is simple, portable, and efficient.
12606# So, don't put newlines in cache variables' values.
12607# Ultrix sh set writes to stderr and can't be redirected directly,
12608# and sets the high bit in the cache file unless we assign to the vars.
12609{
12610 (set) 2>&1 |
12611 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12612 *ac_space=\ *)
12613 # `set' does not quote correctly, so add quotes (double-quote
12614 # substitution turns \\\\ into \\, and sed turns \\ into \).
12615 sed -n \
12616 "s/'/'\\\\''/g;
12617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12618 ;;
12619 *)
12620 # `set' quotes correctly as required by POSIX, so do not add quotes.
12621 sed -n \
12622 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12623 ;;
12624 esac;
12625} |
12626 sed '
12627 t clear
12628 : clear
12629 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12630 t end
12631 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12632 : end' >>confcache
12633if diff $cache_file confcache >/dev/null 2>&1; then :; else
12634 if test -w $cache_file; then
12635 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12636 cat confcache >$cache_file
12637 else
12638 echo "not updating unwritable cache $cache_file"
12639 fi
12640fi
12641rm -f confcache
12642
12643test "x$prefix" = xNONE && prefix=$ac_default_prefix
12644# Let make expand exec_prefix.
12645test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12646
12647# VPATH may cause trouble with some makes, so we remove $(srcdir),
12648# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12649# trailing colons and then remove the whole line if VPATH becomes empty
12650# (actually we leave an empty line to preserve line numbers).
12651if test "x$srcdir" = x.; then
12652 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12653s/:*\$(srcdir):*/:/;
12654s/:*\${srcdir}:*/:/;
12655s/:*@srcdir@:*/:/;
12656s/^\([^=]*=[ ]*\):*/\1/;
12657s/:*$//;
12658s/^[^=]*=[ ]*$//;
12659}'
12660fi
12661
12662# Transform confdefs.h into DEFS.
12663# Protect against shell expansion while executing Makefile rules.
12664# Protect against Makefile macro expansion.
12665#
12666# If the first sed substitution is executed (which looks for macros that
12667# take arguments), then we branch to the quote section. Otherwise,
12668# look for a macro that doesn't take arguments.
12669cat >confdef2opt.sed <<\_ACEOF
12670t clear
12671: clear
12672s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12673t quote
12674s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12675t quote
12676d
12677: quote
12678s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12679s,\[,\\&,g
12680s,\],\\&,g
12681s,\$,$$,g
12682p
12683_ACEOF
12684# We use echo to avoid assuming a particular line-breaking character.
12685# The extra dot is to prevent the shell from consuming trailing
12686# line-breaks from the sub-command output. A line-break within
12687# single-quotes doesn't work because, if this script is created in a
12688# platform that uses two characters for line-breaks (e.g., DOS), tr
12689# would break.
12690ac_LF_and_DOT=`echo; echo .`
12691DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12692rm -f confdef2opt.sed
12693
12694
12695ac_libobjs=
12696ac_ltlibobjs=
12697for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12698 # 1. Remove the extension, and $U if already installed.
12699 ac_i=`echo "$ac_i" |
12700 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12701 # 2. Add them.
12702 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12703 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12704done
12705LIBOBJS=$ac_libobjs
12706
12707LTLIBOBJS=$ac_ltlibobjs
12708
12709
12710
12711: ${CONFIG_STATUS=./config.status}
12712ac_clean_files_save=$ac_clean_files
12713ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12714{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12715echo "$as_me: creating $CONFIG_STATUS" >&6;}
12716cat >$CONFIG_STATUS <<_ACEOF
12717#! $SHELL
12718# Generated by $as_me.
12719# Run this file to recreate the current configuration.
12720# Compiler output produced by configure, useful for debugging
12721# configure, is in config.log if it exists.
12722
12723debug=false
12724ac_cs_recheck=false
12725ac_cs_silent=false
12726SHELL=\${CONFIG_SHELL-$SHELL}
12727_ACEOF
12728
12729cat >>$CONFIG_STATUS <<\_ACEOF
12730## --------------------- ##
12731## M4sh Initialization. ##
12732## --------------------- ##
12733
12734# Be Bourne compatible
12735if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12736 emulate sh
12737 NULLCMD=:
12738 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12739 # is contrary to our usage. Disable this feature.
12740 alias -g '${1+"$@"}'='"$@"'
12741elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12742 set -o posix
12743fi
12744DUALCASE=1; export DUALCASE # for MKS sh
12745
12746# Support unset when possible.
12747if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12748 as_unset=unset
12749else
12750 as_unset=false
12751fi
12752
12753
12754# Work around bugs in pre-3.0 UWIN ksh.
12755$as_unset ENV MAIL MAILPATH
12756PS1='$ '
12757PS2='> '
12758PS4='+ '
12759
12760# NLS nuisances.
12761for as_var in \
12762 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12763 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12764 LC_TELEPHONE LC_TIME
12765do
12766 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12767 eval $as_var=C; export $as_var
12768 else
12769 $as_unset $as_var
12770 fi
12771done
12772
12773# Required to use basename.
12774if expr a : '\(a\)' >/dev/null 2>&1; then
12775 as_expr=expr
12776else
12777 as_expr=false
12778fi
12779
12780if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12781 as_basename=basename
12782else
12783 as_basename=false
12784fi
12785
12786
12787# Name of the executable.
12788as_me=`$as_basename "$0" ||
12789$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12790 X"$0" : 'X\(//\)$' \| \
12791 X"$0" : 'X\(/\)$' \| \
12792 . : '\(.\)' 2>/dev/null ||
12793echo X/"$0" |
12794 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12795 /^X\/\(\/\/\)$/{ s//\1/; q; }
12796 /^X\/\(\/\).*/{ s//\1/; q; }
12797 s/.*/./; q'`
12798
12799
12800# PATH needs CR, and LINENO needs CR and PATH.
12801# Avoid depending upon Character Ranges.
12802as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12803as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12804as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12805as_cr_digits='0123456789'
12806as_cr_alnum=$as_cr_Letters$as_cr_digits
12807
12808# The user is always right.
12809if test "${PATH_SEPARATOR+set}" != set; then
12810 echo "#! /bin/sh" >conf$$.sh
12811 echo "exit 0" >>conf$$.sh
12812 chmod +x conf$$.sh
12813 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12814 PATH_SEPARATOR=';'
12815 else
12816 PATH_SEPARATOR=:
12817 fi
12818 rm -f conf$$.sh
12819fi
12820
12821
12822 as_lineno_1=$LINENO
12823 as_lineno_2=$LINENO
12824 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12825 test "x$as_lineno_1" != "x$as_lineno_2" &&
12826 test "x$as_lineno_3" = "x$as_lineno_2" || {
12827 # Find who we are. Look in the path if we contain no path at all
12828 # relative or not.
12829 case $0 in
12830 *[\\/]* ) as_myself=$0 ;;
12831 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832for as_dir in $PATH
12833do
12834 IFS=$as_save_IFS
12835 test -z "$as_dir" && as_dir=.
12836 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12837done
12838
12839 ;;
12840 esac
12841 # We did not find ourselves, most probably we were run as `sh COMMAND'
12842 # in which case we are not to be found in the path.
12843 if test "x$as_myself" = x; then
12844 as_myself=$0
12845 fi
12846 if test ! -f "$as_myself"; then
12847 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12848echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12849 { (exit 1); exit 1; }; }
12850 fi
12851 case $CONFIG_SHELL in
12852 '')
12853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12854for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12855do
12856 IFS=$as_save_IFS
12857 test -z "$as_dir" && as_dir=.
12858 for as_base in sh bash ksh sh5; do
12859 case $as_dir in
12860 /*)
12861 if ("$as_dir/$as_base" -c '
12862 as_lineno_1=$LINENO
12863 as_lineno_2=$LINENO
12864 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12865 test "x$as_lineno_1" != "x$as_lineno_2" &&
12866 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12867 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12868 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12869 CONFIG_SHELL=$as_dir/$as_base
12870 export CONFIG_SHELL
12871 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12872 fi;;
12873 esac
12874 done
12875done
12876;;
12877 esac
12878
12879 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12880 # uniformly replaced by the line number. The first 'sed' inserts a
12881 # line-number line before each line; the second 'sed' does the real
12882 # work. The second script uses 'N' to pair each line-number line
12883 # with the numbered line, and appends trailing '-' during
12884 # substitution so that $LINENO is not a special case at line end.
12885 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12886 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12887 sed '=' <$as_myself |
12888 sed '
12889 N
12890 s,$,-,
12891 : loop
12892 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12893 t loop
12894 s,-$,,
12895 s,^['$as_cr_digits']*\n,,
12896 ' >$as_me.lineno &&
12897 chmod +x $as_me.lineno ||
12898 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12899echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12900 { (exit 1); exit 1; }; }
12901
12902 # Don't try to exec as it changes $[0], causing all sort of problems
12903 # (the dirname of $[0] is not the place where we might find the
12904 # original and so on. Autoconf is especially sensible to this).
12905 . ./$as_me.lineno
12906 # Exit status is that of the last command.
12907 exit
12908}
12909
12910
12911case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12912 *c*,-n*) ECHO_N= ECHO_C='
12913' ECHO_T=' ' ;;
12914 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12915 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12916esac
12917
12918if expr a : '\(a\)' >/dev/null 2>&1; then
12919 as_expr=expr
12920else
12921 as_expr=false
12922fi
12923
12924rm -f conf$$ conf$$.exe conf$$.file
12925echo >conf$$.file
12926if ln -s conf$$.file conf$$ 2>/dev/null; then
12927 # We could just check for DJGPP; but this test a) works b) is more generic
12928 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12929 if test -f conf$$.exe; then
12930 # Don't use ln at all; we don't have any links
12931 as_ln_s='cp -p'
12932 else
12933 as_ln_s='ln -s'
12934 fi
12935elif ln conf$$.file conf$$ 2>/dev/null; then
12936 as_ln_s=ln
12937else
12938 as_ln_s='cp -p'
12939fi
12940rm -f conf$$ conf$$.exe conf$$.file
12941
12942if mkdir -p . 2>/dev/null; then
12943 as_mkdir_p=:
12944else
12945 test -d ./-p && rmdir ./-p
12946 as_mkdir_p=false
12947fi
12948
12949as_executable_p="test -f"
12950
12951# Sed expression to map a string onto a valid CPP name.
12952as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12953
12954# Sed expression to map a string onto a valid variable name.
12955as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12956
12957
12958# IFS
12959# We need space, tab and new line, in precisely that order.
12960as_nl='
12961'
12962IFS=" $as_nl"
12963
12964# CDPATH.
12965$as_unset CDPATH
12966
12967exec 6>&1
12968
12969# Open the log real soon, to keep \$[0] and so on meaningful, and to
12970# report actual input values of CONFIG_FILES etc. instead of their
12971# values after options handling. Logging --version etc. is OK.
12972exec 5>>config.log
12973{
12974 echo
12975 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12976## Running $as_me. ##
12977_ASBOX
12978} >&5
12979cat >&5 <<_CSEOF
12980
12981This file was extended by $as_me, which was
12982generated by GNU Autoconf 2.59. Invocation command line was
12983
12984 CONFIG_FILES = $CONFIG_FILES
12985 CONFIG_HEADERS = $CONFIG_HEADERS
12986 CONFIG_LINKS = $CONFIG_LINKS
12987 CONFIG_COMMANDS = $CONFIG_COMMANDS
12988 $ $0 $@
12989
12990_CSEOF
12991echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12992echo >&5
12993_ACEOF
12994
12995# Files that config.status was made for.
12996if test -n "$ac_config_files"; then
12997 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12998fi
12999
13000if test -n "$ac_config_headers"; then
13001 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13002fi
13003
13004if test -n "$ac_config_links"; then
13005 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13006fi
13007
13008if test -n "$ac_config_commands"; then
13009 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13010fi
13011
13012cat >>$CONFIG_STATUS <<\_ACEOF
13013
13014ac_cs_usage="\
13015\`$as_me' instantiates files from templates according to the
13016current configuration.
13017
13018Usage: $0 [OPTIONS] [FILE]...
13019
13020 -h, --help print this help, then exit
13021 -V, --version print version number, then exit
13022 -q, --quiet do not print progress messages
13023 -d, --debug don't remove temporary files
13024 --recheck update $as_me by reconfiguring in the same conditions
13025 --file=FILE[:TEMPLATE]
13026 instantiate the configuration file FILE
13027
13028Configuration files:
13029$config_files
13030
13031Report bugs to <bug-autoconf@gnu.org>."
13032_ACEOF
13033
13034cat >>$CONFIG_STATUS <<_ACEOF
13035ac_cs_version="\\
13036config.status
13037configured by $0, generated by GNU Autoconf 2.59,
13038 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13039
13040Copyright (C) 2003 Free Software Foundation, Inc.
13041This config.status script is free software; the Free Software Foundation
13042gives unlimited permission to copy, distribute and modify it."
13043srcdir=$srcdir
13044INSTALL="$INSTALL"
13045_ACEOF
13046
13047cat >>$CONFIG_STATUS <<\_ACEOF
13048# If no file are specified by the user, then we need to provide default
13049# value. By we need to know if files were specified by the user.
13050ac_need_defaults=:
13051while test $# != 0
13052do
13053 case $1 in
13054 --*=*)
13055 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13056 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13057 ac_shift=:
13058 ;;
13059 -*)
13060 ac_option=$1
13061 ac_optarg=$2
13062 ac_shift=shift
13063 ;;
13064 *) # This is not an option, so the user has probably given explicit
13065 # arguments.
13066 ac_option=$1
13067 ac_need_defaults=false;;
13068 esac
13069
13070 case $ac_option in
13071 # Handling of the options.
13072_ACEOF
13073cat >>$CONFIG_STATUS <<\_ACEOF
13074 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13075 ac_cs_recheck=: ;;
13076 --version | --vers* | -V )
13077 echo "$ac_cs_version"; exit 0 ;;
13078 --he | --h)
13079 # Conflict between --help and --header
13080 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13081Try \`$0 --help' for more information." >&5
13082echo "$as_me: error: ambiguous option: $1
13083Try \`$0 --help' for more information." >&2;}
13084 { (exit 1); exit 1; }; };;
13085 --help | --hel | -h )
13086 echo "$ac_cs_usage"; exit 0 ;;
13087 --debug | --d* | -d )
13088 debug=: ;;
13089 --file | --fil | --fi | --f )
13090 $ac_shift
13091 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13092 ac_need_defaults=false;;
13093 --header | --heade | --head | --hea )
13094 $ac_shift
13095 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13096 ac_need_defaults=false;;
13097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13098 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13099 ac_cs_silent=: ;;
13100
13101 # This is an error.
13102 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13103Try \`$0 --help' for more information." >&5
13104echo "$as_me: error: unrecognized option: $1
13105Try \`$0 --help' for more information." >&2;}
13106 { (exit 1); exit 1; }; } ;;
13107
13108 *) ac_config_targets="$ac_config_targets $1" ;;
13109
13110 esac
13111 shift
13112done
13113
13114ac_configure_extra_args=
13115
13116if $ac_cs_silent; then
13117 exec 6>/dev/null
13118 ac_configure_extra_args="$ac_configure_extra_args --silent"
13119fi
13120
13121_ACEOF
13122cat >>$CONFIG_STATUS <<_ACEOF
13123if \$ac_cs_recheck; then
13124 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13125 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13126fi
13127
13128_ACEOF
13129
13130
13131
13132
13133
13134cat >>$CONFIG_STATUS <<\_ACEOF
13135for ac_config_target in $ac_config_targets
13136do
13137 case "$ac_config_target" in
13138 # Handling of arguments.
13139 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13140 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13141echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13142 { (exit 1); exit 1; }; };;
13143 esac
13144done
13145
13146# If the user did not use the arguments to specify the items to instantiate,
13147# then the envvar interface is used. Set only those that are not.
13148# We use the long form for the default assignment because of an extremely
13149# bizarre bug on SunOS 4.1.3.
13150if $ac_need_defaults; then
13151 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13152fi
13153
13154# Have a temporary directory for convenience. Make it in the build tree
13155# simply because there is no reason to put it here, and in addition,
13156# creating and moving files from /tmp can sometimes cause problems.
13157# Create a temporary directory, and hook for its removal unless debugging.
13158$debug ||
13159{
13160 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13161 trap '{ (exit 1); exit 1; }' 1 2 13 15
13162}
13163
13164# Create a (secure) tmp directory for tmp files.
13165
13166{
13167 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13168 test -n "$tmp" && test -d "$tmp"
13169} ||
13170{
13171 tmp=./confstat$$-$RANDOM
13172 (umask 077 && mkdir $tmp)
13173} ||
13174{
13175 echo "$me: cannot create a temporary directory in ." >&2
13176 { (exit 1); exit 1; }
13177}
13178
13179_ACEOF
13180
13181cat >>$CONFIG_STATUS <<_ACEOF
13182
13183#
13184# CONFIG_FILES section.
13185#
13186
13187# No need to generate the scripts if there are no CONFIG_FILES.
13188# This happens for instance when ./config.status config.h
13189if test -n "\$CONFIG_FILES"; then
13190 # Protect against being on the right side of a sed subst in config.status.
13191 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13192 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13193s,@SHELL@,$SHELL,;t t
13194s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13195s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13196s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13197s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13198s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13199s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13200s,@exec_prefix@,$exec_prefix,;t t
13201s,@prefix@,$prefix,;t t
13202s,@program_transform_name@,$program_transform_name,;t t
13203s,@bindir@,$bindir,;t t
13204s,@sbindir@,$sbindir,;t t
13205s,@libexecdir@,$libexecdir,;t t
13206s,@datadir@,$datadir,;t t
13207s,@sysconfdir@,$sysconfdir,;t t
13208s,@sharedstatedir@,$sharedstatedir,;t t
13209s,@localstatedir@,$localstatedir,;t t
13210s,@libdir@,$libdir,;t t
13211s,@includedir@,$includedir,;t t
13212s,@oldincludedir@,$oldincludedir,;t t
13213s,@infodir@,$infodir,;t t
13214s,@mandir@,$mandir,;t t
13215s,@build_alias@,$build_alias,;t t
13216s,@host_alias@,$host_alias,;t t
13217s,@target_alias@,$target_alias,;t t
13218s,@DEFS@,$DEFS,;t t
13219s,@ECHO_C@,$ECHO_C,;t t
13220s,@ECHO_N@,$ECHO_N,;t t
13221s,@ECHO_T@,$ECHO_T,;t t
13222s,@LIBS@,$LIBS,;t t
13223s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
13224s,@build@,$build,;t t
13225s,@build_cpu@,$build_cpu,;t t
13226s,@build_vendor@,$build_vendor,;t t
13227s,@build_os@,$build_os,;t t
13228s,@build_noncanonical@,$build_noncanonical,;t t
13229s,@host_noncanonical@,$host_noncanonical,;t t
13230s,@target_noncanonical@,$target_noncanonical,;t t
13231s,@host@,$host,;t t
13232s,@host_cpu@,$host_cpu,;t t
13233s,@host_vendor@,$host_vendor,;t t
13234s,@host_os@,$host_os,;t t
13235s,@target@,$target,;t t
13236s,@target_cpu@,$target_cpu,;t t
13237s,@target_vendor@,$target_vendor,;t t
13238s,@target_os@,$target_os,;t t
13239s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13240s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13241s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13242s,@LN@,$LN,;t t
13243s,@LN_S@,$LN_S,;t t
13244s,@build_libsubdir@,$build_libsubdir,;t t
13245s,@build_subdir@,$build_subdir,;t t
13246s,@host_subdir@,$host_subdir,;t t
13247s,@target_subdir@,$target_subdir,;t t
13248s,@CC@,$CC,;t t
13249s,@CFLAGS@,$CFLAGS,;t t
13250s,@LDFLAGS@,$LDFLAGS,;t t
13251s,@CPPFLAGS@,$CPPFLAGS,;t t
13252s,@ac_ct_CC@,$ac_ct_CC,;t t
13253s,@EXEEXT@,$EXEEXT,;t t
13254s,@OBJEXT@,$OBJEXT,;t t
13255s,@CXX@,$CXX,;t t
13256s,@CXXFLAGS@,$CXXFLAGS,;t t
13257s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13258s,@GNATBIND@,$GNATBIND,;t t
13259s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
13260s,@GNATMAKE@,$GNATMAKE,;t t
13261s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
13262s,@do_compare@,$do_compare,;t t
13263s,@gmplibs@,$gmplibs,;t t
13264s,@gmpinc@,$gmpinc,;t t
13265s,@ppllibs@,$ppllibs,;t t
13266s,@pplinc@,$pplinc,;t t
13267s,@clooglibs@,$clooglibs,;t t
13268s,@clooginc@,$clooginc,;t t
13269s,@stage1_languages@,$stage1_languages,;t t
13270s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
13271s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
13272s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13273s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
13274s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
13275s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
13276s,@tooldir@,$tooldir,;t t
13277s,@build_tooldir@,$build_tooldir,;t t
13278s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13279s,@GDB_TK@,$GDB_TK,;t t
13280s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13281s,@build_configargs@,$build_configargs,;t t
13282s,@build_configdirs@,$build_configdirs,;t t
13283s,@host_configargs@,$host_configargs,;t t
13284s,@configdirs@,$configdirs,;t t
13285s,@target_configargs@,$target_configargs,;t t
13286s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13287s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
13288s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13289s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13290s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13291s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13292s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13293s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13294s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13295s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13296s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13297s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13298s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13299s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13300s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
13301s,@config_shell@,$config_shell,;t t
13302s,@YACC@,$YACC,;t t
13303s,@BISON@,$BISON,;t t
13304s,@M4@,$M4,;t t
13305s,@LEX@,$LEX,;t t
13306s,@FLEX@,$FLEX,;t t
13307s,@MAKEINFO@,$MAKEINFO,;t t
13308s,@EXPECT@,$EXPECT,;t t
13309s,@RUNTEST@,$RUNTEST,;t t
13310s,@AR@,$AR,;t t
13311s,@AS@,$AS,;t t
13312s,@DLLTOOL@,$DLLTOOL,;t t
13313s,@LD@,$LD,;t t
13314s,@LIPO@,$LIPO,;t t
13315s,@NM@,$NM,;t t
13316s,@RANLIB@,$RANLIB,;t t
13317s,@STRIP@,$STRIP,;t t
13318s,@WINDRES@,$WINDRES,;t t
13319s,@WINDMC@,$WINDMC,;t t
13320s,@OBJCOPY@,$OBJCOPY,;t t
13321s,@OBJDUMP@,$OBJDUMP,;t t
13322s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13323s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13324s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13325s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13326s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13327s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13328s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13329s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13330s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13331s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13332s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13333s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13334s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13335s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13336s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
13337s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
13338s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13339s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13340s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13341s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13342s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13343s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13344s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13345s,@MAINT@,$MAINT,;t t
13346s,@stage1_cflags@,$stage1_cflags,;t t
13347s,@stage1_checking@,$stage1_checking,;t t
13348s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13349s,@datarootdir@,$datarootdir,;t t
13350s,@docdir@,$docdir,;t t
13351s,@pdfdir@,$pdfdir,;t t
13352s,@htmldir@,$htmldir,;t t
13353s,@LIBOBJS@,$LIBOBJS,;t t
13354s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13355/@serialization_dependencies@/r $serialization_dependencies
13356s,@serialization_dependencies@,,;t t
13357/@host_makefile_frag@/r $host_makefile_frag
13358s,@host_makefile_frag@,,;t t
13359/@target_makefile_frag@/r $target_makefile_frag
13360s,@target_makefile_frag@,,;t t
13361/@alphaieee_frag@/r $alphaieee_frag
13362s,@alphaieee_frag@,,;t t
13363/@ospace_frag@/r $ospace_frag
13364s,@ospace_frag@,,;t t
13365CEOF
13366
13367_ACEOF
13368
13369 cat >>$CONFIG_STATUS <<\_ACEOF
13370 # Split the substitutions into bite-sized pieces for seds with
13371 # small command number limits, like on Digital OSF/1 and HP-UX.
13372 ac_max_sed_lines=48
13373 ac_sed_frag=1 # Number of current file.
13374 ac_beg=1 # First line for current file.
13375 ac_end=$ac_max_sed_lines # Line after last line for current file.
13376 ac_more_lines=:
13377 ac_sed_cmds=
13378 while $ac_more_lines; do
13379 if test $ac_beg -gt 1; then
13380 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13381 else
13382 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13383 fi
13384 if test ! -s $tmp/subs.frag; then
13385 ac_more_lines=false
13386 else
13387 # The purpose of the label and of the branching condition is to
13388 # speed up the sed processing (if there are no `@' at all, there
13389 # is no need to browse any of the substitutions).
13390 # These are the two extra sed commands mentioned above.
13391 (echo ':t
13392 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13393 if test -z "$ac_sed_cmds"; then
13394 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13395 else
13396 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13397 fi
13398 ac_sed_frag=`expr $ac_sed_frag + 1`
13399 ac_beg=$ac_end
13400 ac_end=`expr $ac_end + $ac_max_sed_lines`
13401 fi
13402 done
13403 if test -z "$ac_sed_cmds"; then
13404 ac_sed_cmds=cat
13405 fi
13406fi # test -n "$CONFIG_FILES"
13407
13408_ACEOF
13409cat >>$CONFIG_STATUS <<\_ACEOF
13410for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13412 case $ac_file in
13413 - | *:- | *:-:* ) # input from stdin
13414 cat >$tmp/stdin
13415 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13416 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13417 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13418 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13419 * ) ac_file_in=$ac_file.in ;;
13420 esac
13421
13422 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13423 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13424$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13425 X"$ac_file" : 'X\(//\)[^/]' \| \
13426 X"$ac_file" : 'X\(//\)$' \| \
13427 X"$ac_file" : 'X\(/\)' \| \
13428 . : '\(.\)' 2>/dev/null ||
13429echo X"$ac_file" |
13430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13431 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13432 /^X\(\/\/\)$/{ s//\1/; q; }
13433 /^X\(\/\).*/{ s//\1/; q; }
13434 s/.*/./; q'`
13435 { if $as_mkdir_p; then
13436 mkdir -p "$ac_dir"
13437 else
13438 as_dir="$ac_dir"
13439 as_dirs=
13440 while test ! -d "$as_dir"; do
13441 as_dirs="$as_dir $as_dirs"
13442 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13443$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13444 X"$as_dir" : 'X\(//\)[^/]' \| \
13445 X"$as_dir" : 'X\(//\)$' \| \
13446 X"$as_dir" : 'X\(/\)' \| \
13447 . : '\(.\)' 2>/dev/null ||
13448echo X"$as_dir" |
13449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13450 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13451 /^X\(\/\/\)$/{ s//\1/; q; }
13452 /^X\(\/\).*/{ s//\1/; q; }
13453 s/.*/./; q'`
13454 done
13455 test ! -n "$as_dirs" || mkdir $as_dirs
13456 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13457echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13458 { (exit 1); exit 1; }; }; }
13459
13460 ac_builddir=.
13461
13462if test "$ac_dir" != .; then
13463 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13464 # A "../" for each directory in $ac_dir_suffix.
13465 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13466else
13467 ac_dir_suffix= ac_top_builddir=
13468fi
13469
13470case $srcdir in
13471 .) # No --srcdir option. We are building in place.
13472 ac_srcdir=.
13473 if test -z "$ac_top_builddir"; then
13474 ac_top_srcdir=.
13475 else
13476 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13477 fi ;;
13478 [\\/]* | ?:[\\/]* ) # Absolute path.
13479 ac_srcdir=$srcdir$ac_dir_suffix;
13480 ac_top_srcdir=$srcdir ;;
13481 *) # Relative path.
13482 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13483 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13484esac
13485
13486# Do not use `cd foo && pwd` to compute absolute paths, because
13487# the directories may not exist.
13488case `pwd` in
13489.) ac_abs_builddir="$ac_dir";;
13490*)
13491 case "$ac_dir" in
13492 .) ac_abs_builddir=`pwd`;;
13493 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13494 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13495 esac;;
13496esac
13497case $ac_abs_builddir in
13498.) ac_abs_top_builddir=${ac_top_builddir}.;;
13499*)
13500 case ${ac_top_builddir}. in
13501 .) ac_abs_top_builddir=$ac_abs_builddir;;
13502 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13503 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13504 esac;;
13505esac
13506case $ac_abs_builddir in
13507.) ac_abs_srcdir=$ac_srcdir;;
13508*)
13509 case $ac_srcdir in
13510 .) ac_abs_srcdir=$ac_abs_builddir;;
13511 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13512 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13513 esac;;
13514esac
13515case $ac_abs_builddir in
13516.) ac_abs_top_srcdir=$ac_top_srcdir;;
13517*)
13518 case $ac_top_srcdir in
13519 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13520 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13521 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13522 esac;;
13523esac
13524
13525
13526 case $INSTALL in
13527 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13528 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13529 esac
13530
13531 if test x"$ac_file" != x-; then
13532 { echo "$as_me:$LINENO: creating $ac_file" >&5
13533echo "$as_me: creating $ac_file" >&6;}
13534 rm -f "$ac_file"
13535 fi
13536 # Let's still pretend it is `configure' which instantiates (i.e., don't
13537 # use $as_me), people would be surprised to read:
13538 # /* config.h. Generated by config.status. */
13539 if test x"$ac_file" = x-; then
13540 configure_input=
13541 else
13542 configure_input="$ac_file. "
13543 fi
13544 configure_input=$configure_input"Generated from `echo $ac_file_in |
13545 sed 's,.*/,,'` by configure."
13546
13547 # First look for the input files in the build tree, otherwise in the
13548 # src tree.
13549 ac_file_inputs=`IFS=:
13550 for f in $ac_file_in; do
13551 case $f in
13552 -) echo $tmp/stdin ;;
13553 [\\/$]*)
13554 # Absolute (can't be DOS-style, as IFS=:)
13555 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13556echo "$as_me: error: cannot find input file: $f" >&2;}
13557 { (exit 1); exit 1; }; }
13558 echo "$f";;
13559 *) # Relative
13560 if test -f "$f"; then
13561 # Build tree
13562 echo "$f"
13563 elif test -f "$srcdir/$f"; then
13564 # Source tree
13565 echo "$srcdir/$f"
13566 else
13567 # /dev/null tree
13568 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13569echo "$as_me: error: cannot find input file: $f" >&2;}
13570 { (exit 1); exit 1; }; }
13571 fi;;
13572 esac
13573 done` || { (exit 1); exit 1; }
13574_ACEOF
13575cat >>$CONFIG_STATUS <<_ACEOF
13576 sed "$ac_vpsub
13577$extrasub
13578_ACEOF
13579cat >>$CONFIG_STATUS <<\_ACEOF
13580:t
13581/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13582s,@configure_input@,$configure_input,;t t
13583s,@srcdir@,$ac_srcdir,;t t
13584s,@abs_srcdir@,$ac_abs_srcdir,;t t
13585s,@top_srcdir@,$ac_top_srcdir,;t t
13586s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13587s,@builddir@,$ac_builddir,;t t
13588s,@abs_builddir@,$ac_abs_builddir,;t t
13589s,@top_builddir@,$ac_top_builddir,;t t
13590s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13591s,@INSTALL@,$ac_INSTALL,;t t
13592" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13593 rm -f $tmp/stdin
13594 if test x"$ac_file" != x-; then
13595 mv $tmp/out $ac_file
13596 else
13597 cat $tmp/out
13598 rm -f $tmp/out
13599 fi
13600
13601done
13602_ACEOF
13603
13604cat >>$CONFIG_STATUS <<\_ACEOF
13605
13606{ (exit 0); exit 0; }
13607_ACEOF
13608chmod +x $CONFIG_STATUS
13609ac_clean_files=$ac_clean_files_save
13610
13611
13612# configure is writing to config.log, and then calls config.status.
13613# config.status does its own redirection, appending to config.log.
13614# Unfortunately, on DOS this fails, as config.log is still kept open
13615# by configure, so config.status won't be able to write to it; its
13616# output is simply discarded. So we exec the FD to /dev/null,
13617# effectively closing config.log, so it can be properly (re)opened and
13618# appended to by config.status. When coming back to configure, we
13619# need to make the FD available again.
13620if test "$no_create" != yes; then
13621 ac_cs_success=:
13622 ac_config_status_args=
13623 test "$silent" = yes &&
13624 ac_config_status_args="$ac_config_status_args --quiet"
13625 exec 5>/dev/null
13626 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13627 exec 5>>config.log
13628 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13629 # would make configure fail if this is the last instruction.
13630 $ac_cs_success || { (exit 1); exit 1; }
13631fi
13632
This page took 0.069975 seconds and 4 git commands to generate.