OSDN Git Service

* Makefile.tpl (build_alias, host_alias, target_alias): Use
[pf3gnuchains/gcc-fork.git] / configure
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
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
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
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $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.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
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.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="move-if-change"
275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES OBJCOPY OBJDUMP CXX CFLAGS_FOR_BUILD CXXFLAGS CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
276 ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
277
278 # Initialize some variables set by options.
279 ac_init_help=
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
283 cache_file=/dev/null
284 exec_prefix=NONE
285 no_create=
286 no_recursion=
287 prefix=NONE
288 program_prefix=NONE
289 program_suffix=NONE
290 program_transform_name=s,x,x,
291 silent=
292 site=
293 srcdir=
294 verbose=
295 x_includes=NONE
296 x_libraries=NONE
297
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
315
316 ac_prev=
317 for ac_option
318 do
319   # If the previous option needs an argument, assign it.
320   if test -n "$ac_prev"; then
321     eval "$ac_prev=\$ac_option"
322     ac_prev=
323     continue
324   fi
325
326   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327
328   # Accept the important Cygnus configure options, so we can diagnose typos.
329
330   case $ac_option in
331
332   -bindir | --bindir | --bindi | --bind | --bin | --bi)
333     ac_prev=bindir ;;
334   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335     bindir=$ac_optarg ;;
336
337   -build | --build | --buil | --bui | --bu)
338     ac_prev=build_alias ;;
339   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340     build_alias=$ac_optarg ;;
341
342   -cache-file | --cache-file | --cache-fil | --cache-fi \
343   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344     ac_prev=cache_file ;;
345   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347     cache_file=$ac_optarg ;;
348
349   --config-cache | -C)
350     cache_file=config.cache ;;
351
352   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353     ac_prev=datadir ;;
354   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355   | --da=*)
356     datadir=$ac_optarg ;;
357
358   -disable-* | --disable-*)
359     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360     # Reject names that are not valid shell variable names.
361     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363    { (exit 1); exit 1; }; }
364     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365     eval "enable_$ac_feature=no" ;;
366
367   -enable-* | --enable-*)
368     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369     # Reject names that are not valid shell variable names.
370     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372    { (exit 1); exit 1; }; }
373     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374     case $ac_option in
375       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376       *) ac_optarg=yes ;;
377     esac
378     eval "enable_$ac_feature='$ac_optarg'" ;;
379
380   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382   | --exec | --exe | --ex)
383     ac_prev=exec_prefix ;;
384   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386   | --exec=* | --exe=* | --ex=*)
387     exec_prefix=$ac_optarg ;;
388
389   -gas | --gas | --ga | --g)
390     # Obsolete; use --with-gas.
391     with_gas=yes ;;
392
393   -help | --help | --hel | --he | -h)
394     ac_init_help=long ;;
395   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396     ac_init_help=recursive ;;
397   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398     ac_init_help=short ;;
399
400   -host | --host | --hos | --ho)
401     ac_prev=host_alias ;;
402   -host=* | --host=* | --hos=* | --ho=*)
403     host_alias=$ac_optarg ;;
404
405   -includedir | --includedir | --includedi | --included | --include \
406   | --includ | --inclu | --incl | --inc)
407     ac_prev=includedir ;;
408   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409   | --includ=* | --inclu=* | --incl=* | --inc=*)
410     includedir=$ac_optarg ;;
411
412   -infodir | --infodir | --infodi | --infod | --info | --inf)
413     ac_prev=infodir ;;
414   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415     infodir=$ac_optarg ;;
416
417   -libdir | --libdir | --libdi | --libd)
418     ac_prev=libdir ;;
419   -libdir=* | --libdir=* | --libdi=* | --libd=*)
420     libdir=$ac_optarg ;;
421
422   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423   | --libexe | --libex | --libe)
424     ac_prev=libexecdir ;;
425   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426   | --libexe=* | --libex=* | --libe=*)
427     libexecdir=$ac_optarg ;;
428
429   -localstatedir | --localstatedir | --localstatedi | --localstated \
430   | --localstate | --localstat | --localsta | --localst \
431   | --locals | --local | --loca | --loc | --lo)
432     ac_prev=localstatedir ;;
433   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436     localstatedir=$ac_optarg ;;
437
438   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439     ac_prev=mandir ;;
440   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441     mandir=$ac_optarg ;;
442
443   -nfp | --nfp | --nf)
444     # Obsolete; use --without-fp.
445     with_fp=no ;;
446
447   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448   | --no-cr | --no-c | -n)
449     no_create=yes ;;
450
451   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453     no_recursion=yes ;;
454
455   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457   | --oldin | --oldi | --old | --ol | --o)
458     ac_prev=oldincludedir ;;
459   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462     oldincludedir=$ac_optarg ;;
463
464   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465     ac_prev=prefix ;;
466   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467     prefix=$ac_optarg ;;
468
469   -program-prefix | --program-prefix | --program-prefi | --program-pref \
470   | --program-pre | --program-pr | --program-p)
471     ac_prev=program_prefix ;;
472   -program-prefix=* | --program-prefix=* | --program-prefi=* \
473   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474     program_prefix=$ac_optarg ;;
475
476   -program-suffix | --program-suffix | --program-suffi | --program-suff \
477   | --program-suf | --program-su | --program-s)
478     ac_prev=program_suffix ;;
479   -program-suffix=* | --program-suffix=* | --program-suffi=* \
480   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481     program_suffix=$ac_optarg ;;
482
483   -program-transform-name | --program-transform-name \
484   | --program-transform-nam | --program-transform-na \
485   | --program-transform-n | --program-transform- \
486   | --program-transform | --program-transfor \
487   | --program-transfo | --program-transf \
488   | --program-trans | --program-tran \
489   | --progr-tra | --program-tr | --program-t)
490     ac_prev=program_transform_name ;;
491   -program-transform-name=* | --program-transform-name=* \
492   | --program-transform-nam=* | --program-transform-na=* \
493   | --program-transform-n=* | --program-transform-=* \
494   | --program-transform=* | --program-transfor=* \
495   | --program-transfo=* | --program-transf=* \
496   | --program-trans=* | --program-tran=* \
497   | --progr-tra=* | --program-tr=* | --program-t=*)
498     program_transform_name=$ac_optarg ;;
499
500   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501   | -silent | --silent | --silen | --sile | --sil)
502     silent=yes ;;
503
504   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505     ac_prev=sbindir ;;
506   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507   | --sbi=* | --sb=*)
508     sbindir=$ac_optarg ;;
509
510   -sharedstatedir | --sharedstatedir | --sharedstatedi \
511   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512   | --sharedst | --shareds | --shared | --share | --shar \
513   | --sha | --sh)
514     ac_prev=sharedstatedir ;;
515   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518   | --sha=* | --sh=*)
519     sharedstatedir=$ac_optarg ;;
520
521   -site | --site | --sit)
522     ac_prev=site ;;
523   -site=* | --site=* | --sit=*)
524     site=$ac_optarg ;;
525
526   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527     ac_prev=srcdir ;;
528   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529     srcdir=$ac_optarg ;;
530
531   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532   | --syscon | --sysco | --sysc | --sys | --sy)
533     ac_prev=sysconfdir ;;
534   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536     sysconfdir=$ac_optarg ;;
537
538   -target | --target | --targe | --targ | --tar | --ta | --t)
539     ac_prev=target_alias ;;
540   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541     target_alias=$ac_optarg ;;
542
543   -v | -verbose | --verbose | --verbos | --verbo | --verb)
544     verbose=yes ;;
545
546   -version | --version | --versio | --versi | --vers | -V)
547     ac_init_version=: ;;
548
549   -with-* | --with-*)
550     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid package name: $ac_package" >&2
554    { (exit 1); exit 1; }; }
555     ac_package=`echo $ac_package| sed 's/-/_/g'`
556     case $ac_option in
557       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558       *) ac_optarg=yes ;;
559     esac
560     eval "with_$ac_package='$ac_optarg'" ;;
561
562   -without-* | --without-*)
563     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid package name: $ac_package" >&2
567    { (exit 1); exit 1; }; }
568     ac_package=`echo $ac_package | sed 's/-/_/g'`
569     eval "with_$ac_package=no" ;;
570
571   --x)
572     # Obsolete; use --with-x.
573     with_x=yes ;;
574
575   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576   | --x-incl | --x-inc | --x-in | --x-i)
577     ac_prev=x_includes ;;
578   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580     x_includes=$ac_optarg ;;
581
582   -x-libraries | --x-libraries | --x-librarie | --x-librari \
583   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584     ac_prev=x_libraries ;;
585   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587     x_libraries=$ac_optarg ;;
588
589   -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591    { (exit 1); exit 1; }; }
592     ;;
593
594   *=*)
595     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596     # Reject names that are not valid shell variable names.
597     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599    { (exit 1); exit 1; }; }
600     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601     eval "$ac_envvar='$ac_optarg'"
602     export $ac_envvar ;;
603
604   *)
605     # FIXME: should be removed in autoconf 3.0.
606     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
610     ;;
611
612   esac
613 done
614
615 if test -n "$ac_prev"; then
616   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617   { echo "$as_me: error: missing argument to $ac_option" >&2
618    { (exit 1); exit 1; }; }
619 fi
620
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
623 do
624   eval ac_val=$`echo $ac_var`
625   case $ac_val in
626     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628    { (exit 1); exit 1; }; };;
629   esac
630 done
631
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634               localstatedir libdir includedir oldincludedir infodir mandir
635 do
636   eval ac_val=$`echo $ac_var`
637   case $ac_val in
638     [\\/$]* | ?:[\\/]* ) ;;
639     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640    { (exit 1); exit 1; }; };;
641   esac
642 done
643
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
647 build=$build_alias
648 host=$host_alias
649 target=$target_alias
650
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653   if test "x$build_alias" = x; then
654     cross_compiling=maybe
655     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656     If a cross compiler is detected then cross compile mode will be used." >&2
657   elif test "x$build_alias" != "x$host_alias"; then
658     cross_compiling=yes
659   fi
660 fi
661
662 ac_tool_prefix=
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665 test "$silent" = yes && exec 6>/dev/null
666
667
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670   ac_srcdir_defaulted=yes
671   # Try the directory containing this script, then its parent.
672   ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674          X"$0" : 'X\(//\)[^/]' \| \
675          X"$0" : 'X\(//\)$' \| \
676          X"$0" : 'X\(/\)' \| \
677          .     : '\(.\)' 2>/dev/null ||
678 echo X"$0" |
679     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681           /^X\(\/\/\)$/{ s//\1/; q; }
682           /^X\(\/\).*/{ s//\1/; q; }
683           s/.*/./; q'`
684   srcdir=$ac_confdir
685   if test ! -r $srcdir/$ac_unique_file; then
686     srcdir=..
687   fi
688 else
689   ac_srcdir_defaulted=no
690 fi
691 if test ! -r $srcdir/$ac_unique_file; then
692   if test "$ac_srcdir_defaulted" = yes; then
693     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694    { (exit 1); exit 1; }; }
695   else
696     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697    { (exit 1); exit 1; }; }
698   fi
699 fi
700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702    { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
717 ac_env_CC_value=$CC
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732
733 #
734 # Report the --help message.
735 #
736 if test "$ac_init_help" = "long"; then
737   # Omit some internal or obsolete options to make the list less imposing.
738   # This message is too long to be a string in the A/UX 3.1 sh.
739   cat <<_ACEOF
740 \`configure' configures this package to adapt to many kinds of systems.
741
742 Usage: $0 [OPTION]... [VAR=VALUE]...
743
744 To assign environment variables (e.g., CC, CFLAGS...), specify them as
745 VAR=VALUE.  See below for descriptions of some of the useful variables.
746
747 Defaults for the options are specified in brackets.
748
749 Configuration:
750   -h, --help              display this help and exit
751       --help=short        display options specific to this package
752       --help=recursive    display the short help of all the included packages
753   -V, --version           display version information and exit
754   -q, --quiet, --silent   do not print \`checking...' messages
755       --cache-file=FILE   cache test results in FILE [disabled]
756   -C, --config-cache      alias for \`--cache-file=config.cache'
757   -n, --no-create         do not create output files
758       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
759
760 _ACEOF
761
762   cat <<_ACEOF
763 Installation directories:
764   --prefix=PREFIX         install architecture-independent files in PREFIX
765                           [$ac_default_prefix]
766   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
767                           [PREFIX]
768
769 By default, \`make install' will install all the files in
770 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
771 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
772 for instance \`--prefix=\$HOME'.
773
774 For better control, use the options below.
775
776 Fine tuning of the installation directories:
777   --bindir=DIR           user executables [EPREFIX/bin]
778   --sbindir=DIR          system admin executables [EPREFIX/sbin]
779   --libexecdir=DIR       program executables [EPREFIX/libexec]
780   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
781   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
782   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
783   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
784   --libdir=DIR           object code libraries [EPREFIX/lib]
785   --includedir=DIR       C header files [PREFIX/include]
786   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
787   --infodir=DIR          info documentation [PREFIX/info]
788   --mandir=DIR           man documentation [PREFIX/man]
789 _ACEOF
790
791   cat <<\_ACEOF
792
793 Program names:
794   --program-prefix=PREFIX            prepend PREFIX to installed program names
795   --program-suffix=SUFFIX            append SUFFIX to installed program names
796   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
797
798 System types:
799   --build=BUILD     configure for building on BUILD [guessed]
800   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
801   --target=TARGET   configure for building compilers for TARGET [HOST]
802 _ACEOF
803 fi
804
805 if test -n "$ac_init_help"; then
806
807   cat <<\_ACEOF
808
809 Optional Features:
810   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
811   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
812   --enable-libada        Builds libada directory
813   --enable-libssp        Builds libssp directory
814   --enable-stage1-languages=all   choose additional languages to build during
815                           stage1.  Mostly useful for compiler development.
816   --enable-objc-gc       enable the use of Boehm's garbage collector with
817                           the GNU Objective-C runtime.
818   --enable-bootstrap           Enable bootstrapping yes if native build
819   --enable-serial-{host,target,build}-configure
820                           Force sequential configuration of
821                           sub-packages for the host, target or build
822                           machine, or all sub-packages
823   --enable-maintainer-mode enable make rules and dependencies not useful
824                           (and sometimes confusing) to the casual installer
825   --enable-stage1-checking=all   choose additional checking for stage1
826                           of the compiler.
827   --enable-werror         enable -Werror in bootstrap stage2 and later
828
829 Optional Packages:
830   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
831   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
832   --with-build-libsubdir=DIR  Directory where to find libraries for build system
833   --with-mpfr-dir=PATH    This option has been REMOVED
834   --with-mpfr=PATH        Specify prefix directory for installed MPFR package
835                           Equivalent to --with-mpfr-include=PATH/include
836                           plus --with-mpfr-lib=PATH/lib
837   --with-mpfr-include=PATH
838                           Specify directory for installed MPFR include files
839   --with-mpfr-lib=PATH    Specify the directory for the installed MPFR library
840   --with-gmp-dir=PATH     This option has been REMOVED
841   --with-gmp=PATH         Specify prefix directory for the installed GMP package
842                           Equivalent to --with-gmp-include=PATH/include
843                           plus --with-gmp-lib=PATH/lib
844   --with-gmp-include=PATH Specify directory for installed GMP include files
845   --with-gmp-lib=PATH     Specify the directory for the installed GMP library
846   --with-build-sysroot=sysroot
847                           use sysroot as the system root during the build
848   --with-build-time-tools=path
849                           use given path to find target tools during the build
850   --with-datarootdir    Use datarootdir as the data root directory.
851   --with-docdir Install documentation in this directory.
852   --with-htmldir        Install html in this directory.
853
854 Some influential environment variables:
855   CC          C compiler command
856   CFLAGS      C compiler flags
857   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
858               nonstandard directory <lib dir>
859   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
860               headers in a nonstandard directory <include dir>
861
862 Use these variables to override the choices made by `configure' or to help
863 it to find libraries and programs with nonstandard names/locations.
864
865 _ACEOF
866 fi
867
868 if test "$ac_init_help" = "recursive"; then
869   # If there are subdirs, report their specific --help.
870   ac_popdir=`pwd`
871   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
872     test -d $ac_dir || continue
873     ac_builddir=.
874
875 if test "$ac_dir" != .; then
876   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
877   # A "../" for each directory in $ac_dir_suffix.
878   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
879 else
880   ac_dir_suffix= ac_top_builddir=
881 fi
882
883 case $srcdir in
884   .)  # No --srcdir option.  We are building in place.
885     ac_srcdir=.
886     if test -z "$ac_top_builddir"; then
887        ac_top_srcdir=.
888     else
889        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
890     fi ;;
891   [\\/]* | ?:[\\/]* )  # Absolute path.
892     ac_srcdir=$srcdir$ac_dir_suffix;
893     ac_top_srcdir=$srcdir ;;
894   *) # Relative path.
895     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
896     ac_top_srcdir=$ac_top_builddir$srcdir ;;
897 esac
898
899 # Do not use `cd foo && pwd` to compute absolute paths, because
900 # the directories may not exist.
901 case `pwd` in
902 .) ac_abs_builddir="$ac_dir";;
903 *)
904   case "$ac_dir" in
905   .) ac_abs_builddir=`pwd`;;
906   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
907   *) ac_abs_builddir=`pwd`/"$ac_dir";;
908   esac;;
909 esac
910 case $ac_abs_builddir in
911 .) ac_abs_top_builddir=${ac_top_builddir}.;;
912 *)
913   case ${ac_top_builddir}. in
914   .) ac_abs_top_builddir=$ac_abs_builddir;;
915   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
916   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
917   esac;;
918 esac
919 case $ac_abs_builddir in
920 .) ac_abs_srcdir=$ac_srcdir;;
921 *)
922   case $ac_srcdir in
923   .) ac_abs_srcdir=$ac_abs_builddir;;
924   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
925   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
926   esac;;
927 esac
928 case $ac_abs_builddir in
929 .) ac_abs_top_srcdir=$ac_top_srcdir;;
930 *)
931   case $ac_top_srcdir in
932   .) ac_abs_top_srcdir=$ac_abs_builddir;;
933   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
934   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
935   esac;;
936 esac
937
938     cd $ac_dir
939     # Check for guested configure; otherwise get Cygnus style configure.
940     if test -f $ac_srcdir/configure.gnu; then
941       echo
942       $SHELL $ac_srcdir/configure.gnu  --help=recursive
943     elif test -f $ac_srcdir/configure; then
944       echo
945       $SHELL $ac_srcdir/configure  --help=recursive
946     elif test -f $ac_srcdir/configure.ac ||
947            test -f $ac_srcdir/configure.in; then
948       echo
949       $ac_configure --help
950     else
951       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952     fi
953     cd $ac_popdir
954   done
955 fi
956
957 test -n "$ac_init_help" && exit 0
958 if $ac_init_version; then
959   cat <<\_ACEOF
960
961 Copyright (C) 2003 Free Software Foundation, Inc.
962 This configure script is free software; the Free Software Foundation
963 gives unlimited permission to copy, distribute and modify it.
964 _ACEOF
965   exit 0
966 fi
967 exec 5>config.log
968 cat >&5 <<_ACEOF
969 This file contains any messages produced by compilers while
970 running configure, to aid debugging if configure makes a mistake.
971
972 It was created by $as_me, which was
973 generated by GNU Autoconf 2.59.  Invocation command line was
974
975   $ $0 $@
976
977 _ACEOF
978 {
979 cat <<_ASUNAME
980 ## --------- ##
981 ## Platform. ##
982 ## --------- ##
983
984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
989
990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
991 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
992
993 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
994 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
996 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
997 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
998 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
999 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1000
1001 _ASUNAME
1002
1003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 for as_dir in $PATH
1005 do
1006   IFS=$as_save_IFS
1007   test -z "$as_dir" && as_dir=.
1008   echo "PATH: $as_dir"
1009 done
1010
1011 } >&5
1012
1013 cat >&5 <<_ACEOF
1014
1015
1016 ## ----------- ##
1017 ## Core tests. ##
1018 ## ----------- ##
1019
1020 _ACEOF
1021
1022
1023 # Keep a trace of the command line.
1024 # Strip out --no-create and --no-recursion so they do not pile up.
1025 # Strip out --silent because we don't want to record it for future runs.
1026 # Also quote any args containing shell meta-characters.
1027 # Make two passes to allow for proper duplicate-argument suppression.
1028 ac_configure_args=
1029 ac_configure_args0=
1030 ac_configure_args1=
1031 ac_sep=
1032 ac_must_keep_next=false
1033 for ac_pass in 1 2
1034 do
1035   for ac_arg
1036   do
1037     case $ac_arg in
1038     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1039     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040     | -silent | --silent | --silen | --sile | --sil)
1041       continue ;;
1042     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1043       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1044     esac
1045     case $ac_pass in
1046     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1047     2)
1048       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1049       if test $ac_must_keep_next = true; then
1050         ac_must_keep_next=false # Got value, back to normal.
1051       else
1052         case $ac_arg in
1053           *=* | --config-cache | -C | -disable-* | --disable-* \
1054           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1055           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1056           | -with-* | --with-* | -without-* | --without-* | --x)
1057             case "$ac_configure_args0 " in
1058               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1059             esac
1060             ;;
1061           -* ) ac_must_keep_next=true ;;
1062         esac
1063       fi
1064       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1065       # Get rid of the leading space.
1066       ac_sep=" "
1067       ;;
1068     esac
1069   done
1070 done
1071 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1072 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1073
1074 # When interrupted or exit'd, cleanup temporary files, and complete
1075 # config.log.  We remove comments because anyway the quotes in there
1076 # would cause problems or look ugly.
1077 # WARNING: Be sure not to use single quotes in there, as some shells,
1078 # such as our DU 5.0 friend, will then `close' the trap.
1079 trap 'exit_status=$?
1080   # Save into config.log some information that might help in debugging.
1081   {
1082     echo
1083
1084     cat <<\_ASBOX
1085 ## ---------------- ##
1086 ## Cache variables. ##
1087 ## ---------------- ##
1088 _ASBOX
1089     echo
1090     # The following way of writing the cache mishandles newlines in values,
1091 {
1092   (set) 2>&1 |
1093     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1094     *ac_space=\ *)
1095       sed -n \
1096         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1097           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1098       ;;
1099     *)
1100       sed -n \
1101         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1102       ;;
1103     esac;
1104 }
1105     echo
1106
1107     cat <<\_ASBOX
1108 ## ----------------- ##
1109 ## Output variables. ##
1110 ## ----------------- ##
1111 _ASBOX
1112     echo
1113     for ac_var in $ac_subst_vars
1114     do
1115       eval ac_val=$`echo $ac_var`
1116       echo "$ac_var='"'"'$ac_val'"'"'"
1117     done | sort
1118     echo
1119
1120     if test -n "$ac_subst_files"; then
1121       cat <<\_ASBOX
1122 ## ------------- ##
1123 ## Output files. ##
1124 ## ------------- ##
1125 _ASBOX
1126       echo
1127       for ac_var in $ac_subst_files
1128       do
1129         eval ac_val=$`echo $ac_var`
1130         echo "$ac_var='"'"'$ac_val'"'"'"
1131       done | sort
1132       echo
1133     fi
1134
1135     if test -s confdefs.h; then
1136       cat <<\_ASBOX
1137 ## ----------- ##
1138 ## confdefs.h. ##
1139 ## ----------- ##
1140 _ASBOX
1141       echo
1142       sed "/^$/d" confdefs.h | sort
1143       echo
1144     fi
1145     test "$ac_signal" != 0 &&
1146       echo "$as_me: caught signal $ac_signal"
1147     echo "$as_me: exit $exit_status"
1148   } >&5
1149   rm -f core *.core &&
1150   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1151     exit $exit_status
1152      ' 0
1153 for ac_signal in 1 2 13 15; do
1154   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1155 done
1156 ac_signal=0
1157
1158 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1159 rm -rf conftest* confdefs.h
1160 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1161 echo >confdefs.h
1162
1163 # Predefined preprocessor variables.
1164
1165 cat >>confdefs.h <<_ACEOF
1166 #define PACKAGE_NAME "$PACKAGE_NAME"
1167 _ACEOF
1168
1169
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1172 _ACEOF
1173
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_STRING "$PACKAGE_STRING"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1187 _ACEOF
1188
1189
1190 # Let the site file select an alternate cache file if it wants to.
1191 # Prefer explicitly selected file to automatically selected ones.
1192 if test -z "$CONFIG_SITE"; then
1193   if test "x$prefix" != xNONE; then
1194     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1195   else
1196     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1197   fi
1198 fi
1199 for ac_site_file in $CONFIG_SITE; do
1200   if test -r "$ac_site_file"; then
1201     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1202 echo "$as_me: loading site script $ac_site_file" >&6;}
1203     sed 's/^/| /' "$ac_site_file" >&5
1204     . "$ac_site_file"
1205   fi
1206 done
1207
1208 if test -r "$cache_file"; then
1209   # Some versions of bash will fail to source /dev/null (special
1210   # files actually), so we avoid doing that.
1211   if test -f "$cache_file"; then
1212     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1213 echo "$as_me: loading cache $cache_file" >&6;}
1214     case $cache_file in
1215       [\\/]* | ?:[\\/]* ) . $cache_file;;
1216       *)                      . ./$cache_file;;
1217     esac
1218   fi
1219 else
1220   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1221 echo "$as_me: creating cache $cache_file" >&6;}
1222   >$cache_file
1223 fi
1224
1225 # Check that the precious variables saved in the cache have kept the same
1226 # value.
1227 ac_cache_corrupted=false
1228 for ac_var in `(set) 2>&1 |
1229                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1230   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1231   eval ac_new_set=\$ac_env_${ac_var}_set
1232   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1233   eval ac_new_val="\$ac_env_${ac_var}_value"
1234   case $ac_old_set,$ac_new_set in
1235     set,)
1236       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1237 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1238       ac_cache_corrupted=: ;;
1239     ,set)
1240       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1241 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1242       ac_cache_corrupted=: ;;
1243     ,);;
1244     *)
1245       if test "x$ac_old_val" != "x$ac_new_val"; then
1246         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1247 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1248         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1249 echo "$as_me:   former value:  $ac_old_val" >&2;}
1250         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1251 echo "$as_me:   current value: $ac_new_val" >&2;}
1252         ac_cache_corrupted=:
1253       fi;;
1254   esac
1255   # Pass precious variables to config.status.
1256   if test "$ac_new_set" = set; then
1257     case $ac_new_val in
1258     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1260     *) ac_arg=$ac_var=$ac_new_val ;;
1261     esac
1262     case " $ac_configure_args " in
1263       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1264       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1265     esac
1266   fi
1267 done
1268 if $ac_cache_corrupted; then
1269   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1270 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1271   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1272 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1273    { (exit 1); exit 1; }; }
1274 fi
1275
1276 ac_ext=c
1277 ac_cpp='$CPP $CPPFLAGS'
1278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302 # Find the build, host, and target systems.
1303 ac_aux_dir=
1304 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1305   if test -f $ac_dir/install-sh; then
1306     ac_aux_dir=$ac_dir
1307     ac_install_sh="$ac_aux_dir/install-sh -c"
1308     break
1309   elif test -f $ac_dir/install.sh; then
1310     ac_aux_dir=$ac_dir
1311     ac_install_sh="$ac_aux_dir/install.sh -c"
1312     break
1313   elif test -f $ac_dir/shtool; then
1314     ac_aux_dir=$ac_dir
1315     ac_install_sh="$ac_aux_dir/shtool install -c"
1316     break
1317   fi
1318 done
1319 if test -z "$ac_aux_dir"; then
1320   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1321 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1322    { (exit 1); exit 1; }; }
1323 fi
1324 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1325 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1326 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1327
1328 # Make sure we can run config.sub.
1329 $ac_config_sub sun4 >/dev/null 2>&1 ||
1330   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1331 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1332    { (exit 1); exit 1; }; }
1333
1334 echo "$as_me:$LINENO: checking build system type" >&5
1335 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1336 if test "${ac_cv_build+set}" = set; then
1337   echo $ECHO_N "(cached) $ECHO_C" >&6
1338 else
1339   ac_cv_build_alias=$build_alias
1340 test -z "$ac_cv_build_alias" &&
1341   ac_cv_build_alias=`$ac_config_guess`
1342 test -z "$ac_cv_build_alias" &&
1343   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1344 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1345    { (exit 1); exit 1; }; }
1346 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1347   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1348 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1349    { (exit 1); exit 1; }; }
1350
1351 fi
1352 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1353 echo "${ECHO_T}$ac_cv_build" >&6
1354 build=$ac_cv_build
1355 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1356 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1357 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1358
1359
1360  case ${build_alias} in
1361   "") build_noncanonical=${build} ;;
1362   *) build_noncanonical=${build_alias} ;;
1363 esac
1364
1365
1366
1367  case ${host_alias} in
1368   "") host_noncanonical=${build_noncanonical} ;;
1369   *) host_noncanonical=${host_alias} ;;
1370 esac
1371
1372
1373
1374  case ${target_alias} in
1375   "") target_noncanonical=${host_noncanonical} ;;
1376   *) target_noncanonical=${target_alias} ;;
1377 esac
1378
1379
1380
1381
1382 test "$host_noncanonical" = "$target_noncanonical" &&
1383   test "$program_prefix$program_suffix$program_transform_name" = \
1384     NONENONEs,x,x, &&
1385   program_transform_name=s,y,y,
1386
1387 echo "$as_me:$LINENO: checking host system type" >&5
1388 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1389 if test "${ac_cv_host+set}" = set; then
1390   echo $ECHO_N "(cached) $ECHO_C" >&6
1391 else
1392   ac_cv_host_alias=$host_alias
1393 test -z "$ac_cv_host_alias" &&
1394   ac_cv_host_alias=$ac_cv_build_alias
1395 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1396   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1397 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1398    { (exit 1); exit 1; }; }
1399
1400 fi
1401 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1402 echo "${ECHO_T}$ac_cv_host" >&6
1403 host=$ac_cv_host
1404 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1405 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1406 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1407
1408
1409 echo "$as_me:$LINENO: checking target system type" >&5
1410 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1411 if test "${ac_cv_target+set}" = set; then
1412   echo $ECHO_N "(cached) $ECHO_C" >&6
1413 else
1414   ac_cv_target_alias=$target_alias
1415 test "x$ac_cv_target_alias" = "x" &&
1416   ac_cv_target_alias=$ac_cv_host_alias
1417 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1418   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1419 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1420    { (exit 1); exit 1; }; }
1421
1422 fi
1423 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1424 echo "${ECHO_T}$ac_cv_target" >&6
1425 target=$ac_cv_target
1426 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429
1430
1431 # The aliases save the names the user supplied, while $host etc.
1432 # will get canonicalized.
1433 test -n "$target_alias" &&
1434   test "$program_prefix$program_suffix$program_transform_name" = \
1435     NONENONEs,x,x, &&
1436   program_prefix=${target_alias}-
1437 test "$program_prefix" != NONE &&
1438   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1439 # Use a double $ so make ignores it.
1440 test "$program_suffix" != NONE &&
1441   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1442 # Double any \ or $.  echo might interpret backslashes.
1443 # By default was `s,x,x', remove it if useless.
1444 cat <<\_ACEOF >conftest.sed
1445 s/[\\$]/&&/g;s/;s,x,x,$//
1446 _ACEOF
1447 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1448 rm conftest.sed
1449
1450
1451
1452 # Get 'install' or 'install-sh' and its variants.
1453 # Find a good install program.  We prefer a C program (faster),
1454 # so one script is as good as another.  But avoid the broken or
1455 # incompatible versions:
1456 # SysV /etc/install, /usr/sbin/install
1457 # SunOS /usr/etc/install
1458 # IRIX /sbin/install
1459 # AIX /bin/install
1460 # AmigaOS /C/install, which installs bootblocks on floppy discs
1461 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1462 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1463 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1464 # OS/2's system install, which has a completely different semantic
1465 # ./install, which can be erroneously created by make from ./install.sh.
1466 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1467 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1468 if test -z "$INSTALL"; then
1469 if test "${ac_cv_path_install+set}" = set; then
1470   echo $ECHO_N "(cached) $ECHO_C" >&6
1471 else
1472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473 for as_dir in $PATH
1474 do
1475   IFS=$as_save_IFS
1476   test -z "$as_dir" && as_dir=.
1477   # Account for people who put trailing slashes in PATH elements.
1478 case $as_dir/ in
1479   ./ | .// | /cC/* | \
1480   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1481   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1482   /usr/ucb/* ) ;;
1483   *)
1484     # OSF1 and SCO ODT 3.0 have their own names for install.
1485     # Don't use installbsd from OSF since it installs stuff as root
1486     # by default.
1487     for ac_prog in ginstall scoinst install; do
1488       for ac_exec_ext in '' $ac_executable_extensions; do
1489         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1490           if test $ac_prog = install &&
1491             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1492             # AIX install.  It has an incompatible calling convention.
1493             :
1494           elif test $ac_prog = install &&
1495             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1496             # program-specific install script used by HP pwplus--don't use.
1497             :
1498           else
1499             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1500             break 3
1501           fi
1502         fi
1503       done
1504     done
1505     ;;
1506 esac
1507 done
1508
1509
1510 fi
1511   if test "${ac_cv_path_install+set}" = set; then
1512     INSTALL=$ac_cv_path_install
1513   else
1514     # As a last resort, use the slow shell script.  We don't cache a
1515     # path for INSTALL within a source directory, because that will
1516     # break other packages using the cache if that directory is
1517     # removed, or if the path is relative.
1518     INSTALL=$ac_install_sh
1519   fi
1520 fi
1521 echo "$as_me:$LINENO: result: $INSTALL" >&5
1522 echo "${ECHO_T}$INSTALL" >&6
1523
1524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1525 # It thinks the first close brace ends the variable substitution.
1526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1527
1528 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1529
1530 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1531
1532 echo "$as_me:$LINENO: checking whether ln works" >&5
1533 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1534 if test "${acx_cv_prog_LN+set}" = set; then
1535   echo $ECHO_N "(cached) $ECHO_C" >&6
1536 else
1537   rm -f conftestdata_t
1538 echo >conftestdata_f
1539 if ln conftestdata_f conftestdata_t 2>/dev/null
1540 then
1541   acx_cv_prog_LN=ln
1542 else
1543   acx_cv_prog_LN=no
1544 fi
1545 rm -f conftestdata_f conftestdata_t
1546
1547 fi
1548 if test $acx_cv_prog_LN = no; then
1549   LN="cp"
1550   echo "$as_me:$LINENO: result: no, using $LN" >&5
1551 echo "${ECHO_T}no, using $LN" >&6
1552 else
1553   LN="$acx_cv_prog_LN"
1554   echo "$as_me:$LINENO: result: yes" >&5
1555 echo "${ECHO_T}yes" >&6
1556 fi
1557
1558 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1559 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1560 LN_S=$as_ln_s
1561 if test "$LN_S" = "ln -s"; then
1562   echo "$as_me:$LINENO: result: yes" >&5
1563 echo "${ECHO_T}yes" >&6
1564 else
1565   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1566 echo "${ECHO_T}no, using $LN_S" >&6
1567 fi
1568
1569
1570 ### we might need to use some other shell than /bin/sh for running subshells
1571 ### If we are on Windows, search for the shell.  This will permit people
1572 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1573 ### without also having to set CONFIG_SHELL.  This code will work when
1574 ### using bash, which sets OSTYPE.
1575 case "${OSTYPE}" in
1576 *win32*)
1577   if test x${CONFIG_SHELL} = x ; then
1578     if test ! -f /bin/sh ; then
1579       if test x${SHELL} != x && test -f ${SHELL} ; then
1580         CONFIG_SHELL=${SHELL}
1581         export CONFIG_SHELL
1582       else
1583         for prog in sh sh.exe bash bash.exe; do
1584           IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
1585           for dir in $PATH; do
1586             test -z "$dir" && dir=.
1587             if test -f $dir/$prog; then
1588               CONFIG_SHELL=$dir/$prog
1589               export CONFIG_SHELL
1590               break
1591             fi
1592           done
1593           IFS="$save_ifs"
1594           test -n "${CONFIG_SHELL}" && break
1595         done
1596       fi
1597     fi
1598   fi
1599   ;;
1600 esac
1601
1602 config_shell=${CONFIG_SHELL-/bin/sh}
1603
1604 progname=$0
1605 # if PWD already has a value, it is probably wrong.
1606 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1607
1608 # Export original configure arguments for use by sub-configures.  These
1609 # will be expanded by make, so quote '$'.
1610 tmp="$progname $@"
1611 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
1612 $tmp
1613 EOF_SED
1614 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
1615 rm -f conftestsed.out
1616
1617
1618 moveifchange=${srcdir}/move-if-change
1619
1620 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1621
1622 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
1623 # a relative path.
1624 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1625   INSTALL="${srcpwd}/install-sh -c"
1626 fi
1627
1628 # Set srcdir to "." if that's what it is.
1629 # This is important for multilib support.
1630 pwd=`${PWDCMD-pwd}`
1631 if test "${pwd}" = "${srcpwd}" ; then
1632   srcdir=.
1633 fi
1634
1635 topsrcdir=$srcpwd
1636
1637 extra_host_args=
1638
1639 ### To add a new directory to the tree, first choose whether it is a target
1640 ### or a host dependent tool.  Then put it into the appropriate list
1641 ### (library or tools, host or target), doing a dependency sort.
1642
1643 # Subdirs will be configured in the order listed in build_configdirs,
1644 # configdirs, or target_configdirs; see the serialization section below.
1645
1646 # Dependency sorting is only needed when *configuration* must be done in
1647 # a particular order.  In all cases a dependency should be specified in
1648 # the Makefile, whether or not it's implicitly specified here.
1649
1650 # Double entries in build_configdirs, configdirs, or target_configdirs may
1651 # cause circular dependencies and break everything horribly.
1652
1653 # these library is used by various programs built for the build
1654 # environment
1655 #
1656 build_libs="build-libiberty"
1657
1658 # these tools are built for the build environment
1659 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1660
1661 # these libraries are used by various programs built for the host environment
1662 #
1663 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
1664
1665 # these tools are built for the host environment
1666 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1667 # know that we are building the simulator.
1668 # binutils, gas and ld appear in that order because it makes sense to run
1669 # "make check" in that particular order.
1670 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
1671
1672 # libgcj represents the runtime libraries only used by gcj.
1673 libgcj="target-libffi \
1674         target-zlib \
1675         target-qthreads \
1676         target-libjava"
1677
1678 # these libraries are built for the target environment, and are built after
1679 # the host libraries and the host tools (which may be a cross compiler)
1680 #
1681 target_libraries="target-libiberty \
1682                 target-libgcc \
1683                 target-libgloss \
1684                 target-newlib \
1685                 target-libstdc++-v3 \
1686                 target-libmudflap \
1687                 target-libssp \
1688                 target-libgfortran \
1689                 target-boehm-gc \
1690                 ${libgcj} \
1691                 target-libobjc \
1692                 target-libada \
1693                 target-libgomp"
1694
1695 # these tools are built using the target libraries, and are intended to
1696 # run only in the target environment
1697 #
1698 # note: any program that *uses* libraries that are in the "target_libraries"
1699 # list belongs in this list.  those programs are also very likely
1700 # candidates for the "native_only" list which follows
1701 #
1702 target_tools="target-examples target-groff target-gperf target-rda"
1703
1704 ################################################################################
1705
1706 ## All tools belong in one of the four categories, and are assigned above
1707 ## We assign ${configdirs} this way to remove all embedded newlines.  This
1708 ## is important because configure will choke if they ever get through.
1709 ## ${configdirs} is directories we build using the host tools.
1710 ## ${target_configdirs} is directories we build using the target tools.
1711 configdirs=`echo ${host_libs} ${host_tools}`
1712 target_configdirs=`echo ${target_libraries} ${target_tools}`
1713 build_configdirs=`echo ${build_libs} ${build_tools}`
1714
1715 ################################################################################
1716
1717 srcname="gnu development package"
1718
1719 # This gets set non-empty for some net releases of packages.
1720 appdirs=""
1721
1722 # Define is_cross_compiler to save on calls to 'test'.
1723 is_cross_compiler=
1724 if test x"${host}" = x"${target}" ; then
1725   is_cross_compiler=no
1726 else
1727   is_cross_compiler=yes
1728 fi
1729
1730 # Find the build and target subdir names.
1731
1732 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1733 # have matching libraries, they should use host libraries: Makefile.tpl
1734 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1735 # However, they still use the build modules, because the corresponding
1736 # host modules (e.g. bison) are only built for the host when bootstrap
1737 # finishes. So:
1738 # - build_subdir is where we find build modules, and never changes.
1739 # - build_libsubdir is where we find build libraries, and can be overridden.
1740
1741 # Prefix 'build-' so this never conflicts with target_subdir.
1742 build_subdir="build-${build_noncanonical}"
1743
1744 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1745 if test "${with_build_libsubdir+set}" = set; then
1746   withval="$with_build_libsubdir"
1747   build_libsubdir="$withval"
1748 else
1749   build_libsubdir="$build_subdir"
1750 fi;
1751 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1752 if ( test $srcdir = . && test -d gcc ) \
1753    || test -d $srcdir/../host-${host_noncanonical}; then
1754   host_subdir="host-${host_noncanonical}"
1755 else
1756   host_subdir=.
1757 fi
1758 # No prefix.
1759 target_subdir=${target_noncanonical}
1760
1761
1762 # Skipdirs are removed silently.
1763 skipdirs=
1764 # Noconfigdirs are removed loudly.
1765 noconfigdirs=""
1766
1767 use_gnu_ld=
1768 # Make sure we don't let GNU ld be added if we didn't want it.
1769 if test x$with_gnu_ld = xno ; then
1770   use_gnu_ld=no
1771   noconfigdirs="$noconfigdirs ld"
1772 fi
1773
1774 use_gnu_as=
1775 # Make sure we don't let GNU as be added if we didn't want it.
1776 if test x$with_gnu_as = xno ; then
1777   use_gnu_as=no
1778   noconfigdirs="$noconfigdirs gas"
1779 fi
1780
1781 # some tools are so dependent upon X11 that if we're not building with X,
1782 # it's not even worth trying to configure, much less build, that tool.
1783
1784 case ${with_x} in
1785   yes | "") ;; # the default value for this tree is that X11 is available
1786   no)
1787     skipdirs="${skipdirs} tk itcl libgui"
1788     # We won't be able to build gdbtk without X.
1789     enable_gdbtk=no
1790     ;;
1791   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1792 esac
1793
1794 # Some tools are only suitable for building in a "native" situation.
1795 # Remove these if host!=target.
1796 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1797
1798 # Similarly, some are only suitable for cross toolchains.
1799 # Remove these if host=target.
1800 cross_only="target-libgloss target-newlib target-opcodes"
1801
1802 case $is_cross_compiler in
1803   no) skipdirs="${skipdirs} ${cross_only}" ;;
1804   yes) skipdirs="${skipdirs} ${native_only}" ;;
1805 esac
1806
1807 # If both --with-headers and --with-libs are specified, default to
1808 # --without-newlib.
1809 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1810    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1811   if test x"${with_newlib}" = x ; then
1812     with_newlib=no
1813   fi
1814 fi
1815
1816 # Recognize --with-newlib/--without-newlib.
1817 case ${with_newlib} in
1818   no) skipdirs="${skipdirs} target-newlib" ;;
1819   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1820 esac
1821
1822 # Configure extra directories which are host specific
1823
1824 case "${host}" in
1825   *-cygwin*)
1826     configdirs="$configdirs libtermcap" ;;
1827 esac
1828
1829 # A target can indicate whether a language isn't supported for some reason.
1830 # Only spaces may be used in this macro; not newlines or tabs.
1831 unsupported_languages=
1832
1833 # Remove more programs from consideration, based on the host or
1834 # target this usually means that a port of the program doesn't
1835 # exist yet.
1836
1837 case "${host}" in
1838   hppa*64*-*-*)
1839     noconfigdirs="$noconfigdirs byacc"
1840     ;;
1841   i[3456789]86-*-vsta)
1842     noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1843     ;;
1844   i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1845     noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1846     ;;
1847   x86_64-*-mingw*)
1848     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1849     ;;
1850   i[3456789]86-*-mingw32*)
1851     # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1852     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1853     ;;
1854   i[3456789]86-*-beos*)
1855     noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1856     ;;
1857   *-*-cygwin*)
1858     noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1859     ;;
1860   *-*-netbsd*)
1861     noconfigdirs="$noconfigdirs rcs"
1862     ;;
1863   ppc*-*-pe)
1864     noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1865     ;;
1866   powerpc-*-beos*)
1867     noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1868     ;;
1869 esac
1870
1871
1872 # Check whether --enable-libada or --disable-libada was given.
1873 if test "${enable_libada+set}" = set; then
1874   enableval="$enable_libada"
1875   ENABLE_LIBADA=$enableval
1876 else
1877   ENABLE_LIBADA=yes
1878 fi;
1879 if test "${ENABLE_LIBADA}" != "yes" ; then
1880   noconfigdirs="$noconfigdirs gnattools"
1881 fi
1882
1883 # Check whether --enable-libssp or --disable-libssp was given.
1884 if test "${enable_libssp+set}" = set; then
1885   enableval="$enable_libssp"
1886   ENABLE_LIBSSP=$enableval
1887 else
1888   ENABLE_LIBSSP=yes
1889 fi;
1890
1891 # Save it here so that, even in case of --enable-libgcj, if the Java
1892 # front-end isn't enabled, we still get libgcj disabled.
1893 libgcj_saved=$libgcj
1894 case $enable_libgcj in
1895 yes)
1896   # If we reset it here, it won't get added to noconfigdirs in the
1897   # target-specific build rules, so it will be forcibly enabled
1898   # (unless the Java language itself isn't enabled).
1899   libgcj=
1900   ;;
1901 no)
1902   # Make sure we get it printed in the list of not supported target libs.
1903   noconfigdirs="$noconfigdirs ${libgcj}"
1904   ;;
1905 esac
1906
1907
1908 # Disable libmudflap on some systems.
1909 if test x$enable_libmudflap = x ; then
1910     case "${target}" in
1911     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1912         # Enable libmudflap by default in GNU and friends.
1913         ;;
1914     *-*-freebsd*)
1915         # Enable libmudflap by default in FreeBSD.
1916         ;;
1917     *)
1918         # Disable it by default everywhere else.
1919         noconfigdirs="$noconfigdirs target-libmudflap"
1920         ;;
1921     esac
1922 fi
1923
1924 # Disable libgomp on non POSIX hosted systems.
1925 if test x$enable_libgomp = x ; then
1926     # Enable libgomp by default on hosted POSIX systems.
1927     case "${target}" in
1928     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1929         ;;
1930     *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1931         ;;
1932     *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
1933         ;;
1934     *-*-darwin* | *-*-aix*)
1935         ;;
1936     *)
1937         noconfigdirs="$noconfigdirs target-libgomp"
1938         ;;
1939     esac
1940 fi
1941
1942
1943 case "${target}" in
1944   *-*-chorusos)
1945     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1946     ;;
1947   powerpc-*-darwin* | i[3456789]86-*-darwin*)
1948     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1949     noconfigdirs="$noconfigdirs sim target-rda"
1950     ;;
1951   *-*-darwin*)
1952     noconfigdirs="$noconfigdirs ld gas gdb gprof"
1953     noconfigdirs="$noconfigdirs sim target-rda"
1954     noconfigdirs="$noconfigdirs ${libgcj}"
1955     ;;
1956   *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1957     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1958     ;;
1959   *-*-freebsd*)
1960     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1961     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1962         && test -f /usr/local/include/gmp.h; then
1963       with_gmp=/usr/local
1964     fi
1965
1966     # Skip some stuff that's unsupported on some FreeBSD configurations.
1967     case "${target}" in
1968       i*86-*-*) ;;
1969       alpha*-*-*) ;;
1970       *)
1971         noconfigdirs="$noconfigdirs ${libgcj}"
1972         ;;
1973     esac
1974     ;;
1975   *-*-kaos*)
1976     # Remove unsupported stuff on all kaOS configurations.
1977     skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1978     skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1979     skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1980     noconfigdirs="$noconfigdirs target-libgloss"
1981     ;;
1982   *-*-netbsd*)
1983     # Skip some stuff on all NetBSD configurations.
1984     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1985
1986     # Skip some stuff that's unsupported on some NetBSD configurations.
1987     case "${target}" in
1988       i*86-*-netbsdelf*) ;;
1989       arm*-*-netbsdelf*) ;;
1990       *)
1991         noconfigdirs="$noconfigdirs ${libgcj}"
1992         ;;
1993     esac
1994     ;;
1995   *-*-netware*)
1996     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1997     ;;
1998   *-*-rtems*)
1999     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2000     ;;
2001     # The tpf target doesn't support gdb yet.
2002   *-*-tpf*)
2003     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2004     ;;
2005   *-*-uclinux*)
2006     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2007     ;;
2008   *-*-vxworks*)
2009     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2010     ;;
2011   alpha*-dec-osf*)
2012     # ld works, but does not support shared libraries.
2013     # newlib is not 64 bit ready.  I'm not sure about fileutils.
2014     # gas doesn't generate exception information.
2015     noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2016     ;;
2017   alpha*-*-*vms*)
2018     noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2019     ;;
2020   alpha*-*-linux*)
2021     # newlib is not 64 bit ready
2022     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2023     ;;
2024   alpha*-*-*)
2025     # newlib is not 64 bit ready
2026     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2027     ;;
2028   am33_2.0-*-linux*)
2029     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2030     ;;
2031   sh-*-linux*)
2032     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2033     ;;
2034   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2035     noconfigdirs="$noconfigdirs ${libgcj}"
2036     noconfigdirs="$noconfigdirs target-examples"
2037     noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2038     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2039     noconfigdirs="$noconfigdirs expect dejagnu"
2040     # the C++ libraries don't build on top of CE's C libraries
2041     noconfigdirs="$noconfigdirs target-libstdc++-v3"
2042     noconfigdirs="$noconfigdirs target-newlib"
2043     case "${host}" in
2044       *-*-cygwin*) ;; # keep gdb and readline
2045       *) noconfigdirs="$noconfigdirs gdb readline"
2046          ;;
2047     esac
2048     ;;
2049   arc-*-*)
2050     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2051     ;;
2052   arm-semi-aof )
2053     ;;
2054   arm-*-coff | strongarm-*-coff | xscale-*-coff)
2055     noconfigdirs="$noconfigdirs ${libgcj}"
2056     ;;
2057   arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2058     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2059     ;;
2060   arm*-*-linux-gnueabi)
2061     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2062     noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2063     ;;
2064   arm*-*-symbianelf*)
2065     noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2066     ;;
2067   arm-*-pe*)
2068     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2069     ;;
2070   thumb-*-coff)
2071     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2072     ;;
2073   thumb-*-elf)
2074     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2075     ;;
2076   thumb-*-pe)
2077     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2078     ;;
2079   arm-*-riscix*)
2080     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2081     ;;
2082   avr-*-*)
2083     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2084     ;;
2085   bfin-*-*)
2086     noconfigdirs="$noconfigdirs gdb"
2087     if test x${is_cross_compiler} != xno ; then
2088       target_configdirs="${target_configdirs} target-bsp target-cygmon"
2089     fi
2090     ;;
2091   c4x-*-* | tic4x-*-*)
2092     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2093     ;;
2094   c54x*-*-* | tic54x-*-*)
2095     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2096     ;;
2097   cris-*-* | crisv32-*-*)
2098     unsupported_languages="$unsupported_languages java"
2099     case "${target}" in
2100       *-*-aout)
2101         unsupported_languages="$unsupported_languages fortran"
2102         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2103       *-*-elf)
2104         unsupported_languages="$unsupported_languages fortran"
2105         noconfigdirs="$noconfigdirs target-boehm-gc";;
2106       *-*-linux*)
2107         noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2108       *)
2109         unsupported_languages="$unsupported_languages fortran"
2110         noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2111     esac
2112     ;;
2113   crx-*-*)
2114     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2115     ;;
2116   d10v-*-*)
2117     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2118     ;;
2119   d30v-*-*)
2120     noconfigdirs="$noconfigdirs ${libgcj} gdb"
2121     ;;
2122   fr30-*-elf*)
2123     noconfigdirs="$noconfigdirs ${libgcj} gdb"
2124     ;;
2125   frv-*-*)
2126     noconfigdirs="$noconfigdirs ${libgcj}"
2127     ;;
2128   h8300*-*-*)
2129     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2130     ;;
2131   h8500-*-*)
2132     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2133     ;;
2134   hppa1.1-*-osf* | hppa1.1-*-bsd* )
2135     ;;
2136   hppa*64*-*-linux* | parisc*64*-*-linux*)
2137     # In this case, it's because the hppa64-linux target is for
2138     # the kernel only at this point and has no libc, and thus no
2139     # headers, crt*.o, etc., all of which are needed by these.
2140     noconfigdirs="$noconfigdirs target-zlib"
2141     ;;
2142   parisc*-*-linux* | hppa*-*-linux*)
2143     ;;
2144   hppa*-*-*elf* | \
2145   hppa*-*-lites* | \
2146   hppa*-*-openbsd* | \
2147   hppa*64*-*-*)
2148     noconfigdirs="$noconfigdirs ${libgcj}"
2149     ;;
2150   hppa*-hp-hpux11*)
2151     noconfigdirs="$noconfigdirs ld shellutils"
2152     ;;
2153   hppa*-*-*)
2154     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2155     # build on HP-UX 10.20.
2156     noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2157     ;;
2158   i960-*-*)
2159     noconfigdirs="$noconfigdirs ${libgcj} gdb"
2160     ;;
2161   ia64*-*-elf*)
2162     # No gdb support yet.
2163     noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2164     ;;
2165   ia64*-**-hpux*)
2166     # No gdb or ld support yet.
2167     noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2168     ;;
2169   i370-*-opened*)
2170     ;;
2171   i[3456789]86-*-coff | i[3456789]86-*-elf)
2172     noconfigdirs="$noconfigdirs ${libgcj}"
2173     ;;
2174   i[3456789]86-*-linux*)
2175     # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2176     # not build java stuff by default.
2177     case "${target}" in
2178       *-*-*libc1*)
2179         noconfigdirs="$noconfigdirs ${libgcj}";;
2180     esac
2181
2182     # This section makes it possible to build newlib natively on linux.
2183     # If we are using a cross compiler then don't configure newlib.
2184     if test x${is_cross_compiler} != xno ; then
2185       noconfigdirs="$noconfigdirs target-newlib"
2186     fi
2187     noconfigdirs="$noconfigdirs target-libgloss"
2188     # If we are not using a cross compiler, do configure newlib.
2189     # Note however, that newlib will only be configured in this situation
2190     # if the --with-newlib option has been given, because otherwise
2191     # 'target-newlib' will appear in skipdirs.
2192     ;;
2193   i[3456789]86-*-mingw32*)
2194     target_configdirs="$target_configdirs target-winsup"
2195     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2196     ;;
2197   x86_64-*-mingw*)
2198     target_configdirs="$target_configdirs target-winsup"
2199     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2200     ;;
2201   *-*-cygwin*)
2202     target_configdirs="$target_configdirs target-libtermcap target-winsup"
2203     noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2204     # always build newlib if winsup directory is present.
2205     if test -d "$srcdir/winsup/cygwin"; then
2206       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2207     elif test -d "$srcdir/newlib"; then
2208       echo "Warning: winsup/cygwin is missing so newlib can't be built."
2209     fi
2210     ;;
2211   i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2212   i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2213     ;;
2214   i[3456789]86-*-pe)
2215     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2216     ;;
2217   i[3456789]86-*-sco3.2v5*)
2218     # The linker does not yet know about weak symbols in COFF,
2219     # and is not configured to handle mixed ELF and COFF.
2220     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2221     ;;
2222   i[3456789]86-*-sco*)
2223     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2224     ;;
2225   i[3456789]86-*-solaris2*)
2226     noconfigdirs="$noconfigdirs target-libgloss"
2227     ;;
2228   i[3456789]86-*-sysv4*)
2229     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2230     ;;
2231   i[3456789]86-*-beos*)
2232     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2233     ;;
2234   i[3456789]86-*-rdos*)
2235     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2236     ;;
2237   m32r-*-*)
2238     noconfigdirs="$noconfigdirs ${libgcj}"
2239     ;;
2240   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2241     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2242     ;;
2243   m68k-*-elf*)
2244     noconfigdirs="$noconfigdirs ${libgcj}"
2245     ;;
2246   m68k-*-coff*)
2247     noconfigdirs="$noconfigdirs ${libgcj}"
2248     ;;
2249   mcore-*-pe*)
2250   # The EPOC C++ environment does not support exceptions or rtti,
2251   # and so building libstdc++-v3 tends not to always work.
2252     noconfigdirs="$noconfigdirs target-libstdc++-v3"
2253     ;;
2254   mmix-*-*)
2255     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2256     unsupported_languages="$unsupported_languages fortran java"
2257     ;;
2258   mn10200-*-*)
2259     noconfigdirs="$noconfigdirs ${libgcj}"
2260     ;;
2261   mn10300-*-*)
2262     noconfigdirs="$noconfigdirs ${libgcj}"
2263     ;;
2264   mt-*-*)
2265     noconfigdirs="$noconfigdirs sim"
2266     ;;
2267   powerpc-*-aix*)
2268     # copied from rs6000-*-* entry
2269     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2270     ;;
2271   powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2272     target_configdirs="$target_configdirs target-winsup"
2273     noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2274     # always build newlib.
2275     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2276     ;;
2277     # This is temporary until we can link against shared libraries
2278   powerpcle-*-solaris*)
2279     noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2280     ;;
2281   powerpc-*-beos*)
2282     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2283     ;;
2284   powerpc-*-eabi)
2285     noconfigdirs="$noconfigdirs ${libgcj}"
2286     ;;
2287   powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2288     ;;
2289   rs6000-*-lynxos*)
2290     noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2291     ;;
2292   rs6000-*-aix*)
2293     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2294     ;;
2295   rs6000-*-*)
2296     noconfigdirs="$noconfigdirs gprof ${libgcj}"
2297     ;;
2298   m68k-apollo-*)
2299     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2300     ;;
2301   mips*-*-irix5*)
2302     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2303     ;;
2304   mips*-*-irix6*)
2305     # Linking libjava exceeds command-line length limits on at least
2306     # IRIX 6.2, but not on IRIX 6.5.
2307     # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2308     # <oldham@codesourcery.com>
2309     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2310     ;;
2311   mips*-*-bsd*)
2312     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2313     ;;
2314   mips64*-*-linux*)
2315     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2316     ;;
2317   mips*-*-linux*)
2318     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2319     ;;
2320   mips*-*-*)
2321     noconfigdirs="$noconfigdirs gprof ${libgcj}"
2322     ;;
2323   romp-*-*)
2324     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2325     ;;
2326   sh-*-* | sh64-*-*)
2327     case "${host}" in
2328       i[3456789]86-*-vsta) ;; # don't add gprof back in
2329       i[3456789]86-*-go32*) ;; # don't add gprof back in
2330       i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2331       *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2332     esac
2333     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2334     ;;
2335   sparc-*-elf*)
2336     noconfigdirs="$noconfigdirs ${libgcj}"
2337     ;;
2338   sparc64-*-elf*)
2339     noconfigdirs="$noconfigdirs ${libgcj}"
2340     ;;
2341   sparclite-*-*)
2342     noconfigdirs="$noconfigdirs ${libgcj}"
2343     ;;
2344   sparc-*-sunos4*)
2345     noconfigdirs="$noconfigdirs ${libgcj}"
2346     if test x${is_cross_compiler} != xno ; then
2347            noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2348     else
2349            use_gnu_ld=no
2350     fi
2351     ;;
2352   sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2353     noconfigdirs="$noconfigdirs ${libgcj}"
2354     ;;
2355   sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2356     ;;
2357   spu-*-*)
2358     skipdirs="target-libssp"
2359     ;;
2360   v810-*-*)
2361     noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2362     ;;
2363   v850-*-*)
2364     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2365     ;;
2366   v850e-*-*)
2367     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2368     ;;
2369   v850ea-*-*)
2370     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2371     ;;
2372   vax-*-vms)
2373     noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2374     ;;
2375   vax-*-*)
2376     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2377     ;;
2378   xtensa-*-*)
2379     noconfigdirs="$noconfigdirs ${libgcj}"
2380     ;;
2381   ip2k-*-*)
2382     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2383     ;;
2384   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2385     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2386     ;;
2387   *-*-lynxos*)
2388     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2389     ;;
2390   *-*-*)
2391     noconfigdirs="$noconfigdirs ${libgcj}"
2392     ;;
2393 esac
2394
2395 # If we aren't building newlib, then don't build libgloss, since libgloss
2396 # depends upon some newlib header files.
2397 case "${noconfigdirs}" in
2398   *target-libgloss*) ;;
2399   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2400 esac
2401
2402 # Work in distributions that contain no compiler tools, like Autoconf.
2403 tentative_cc=""
2404 host_makefile_frag=/dev/null
2405 if test -d ${srcdir}/config ; then
2406 case "${host}" in
2407   m68k-hp-hpux*)
2408     # Avoid "too much defining" errors from HPUX compiler.
2409     tentative_cc="cc -Wp,-H256000"
2410     # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2411     # If it's HP/UX ar, this should be harmless.
2412     RANLIB="ar ts"
2413     ;;
2414   m68k-apollo-sysv*)
2415     tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2416     ;;
2417   m68k-apollo-bsd*)
2418     #None of the Apollo compilers can compile gas or binutils.  The preprocessor
2419     # chokes on bfd, the compiler won't let you assign integers to enums, and
2420     # other problems.  Defining CC to gcc is a questionable way to say "don't use
2421     # the apollo compiler" (the preferred version of GCC could be called cc,
2422     # or whatever), but I'm not sure leaving CC as cc is any better...
2423     #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2424     # Used to have BISON=yacc.
2425     tentative_cc=gcc
2426     ;;
2427   m88k-dg-dgux*)
2428     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2429     ;;
2430   m88k-harris-cxux*)
2431     # Under CX/UX, we want to tell the compiler to use ANSI mode.
2432     tentative_cc="cc -Xa"
2433     host_makefile_frag="config/mh-cxux"
2434     ;;
2435   m88k-motorola-sysv*)
2436     ;;
2437   mips*-dec-ultrix*)
2438     tentative_cc="cc -Wf,-XNg1000"
2439     host_makefile_frag="config/mh-decstation"
2440     ;;
2441   mips*-nec-sysv4*)
2442     # The C compiler on NEC MIPS SVR4 needs bigger tables.
2443     tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2444     host_makefile_frag="config/mh-necv4"
2445     ;;
2446   mips*-sgi-irix4*)
2447     # Tell compiler to use K&R C.  We can't compile under the SGI Ansi
2448     # environment.  Also bump switch table size so that cp-parse will
2449     # compile.  Bump string length limit so linker builds.
2450     tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2451     ;;
2452   mips*-*-sysv4*)
2453     host_makefile_frag="config/mh-sysv4"
2454     ;;
2455   mips*-*-sysv*)
2456     # This is for a MIPS running RISC/os 4.52C.
2457
2458     # This is needed for GDB, but needs to be in the top-level make because
2459     # if a library is compiled with the bsd headers and gets linked with the
2460     # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2461     # a different size).
2462     # ptrace(2) apparently has problems in the BSD environment.  No workaround is
2463     # known except to select the sysv environment.  Could we use /proc instead?
2464     # These "sysv environments" and "bsd environments" often end up being a pain.
2465     #
2466     # This is not part of CFLAGS because perhaps not all C compilers have this
2467     # option.
2468     tentative_cc="cc -systype sysv"
2469     ;;
2470   i370-ibm-opened*)
2471     tentative_cc="c89"
2472     ;;
2473   i[3456789]86-*-sysv5*)
2474     host_makefile_frag="config/mh-sysv5"
2475     ;;
2476   i[3456789]86-*-dgux*)
2477     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2478     host_makefile_frag="config/mh-dgux386"
2479     ;;
2480   i[3456789]86-ncr-sysv4.3*)
2481     # The MetaWare compiler will generate a copyright message unless you
2482     # turn it off by adding the -Hnocopyr flag.
2483     tentative_cc="cc -Hnocopyr"
2484     ;;
2485   i[3456789]86-ncr-sysv4*)
2486     # for an NCR 3000 (i486/SVR4) system.
2487     # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2488     # This compiler not only emits obnoxious copyright messages every time
2489     # you run it, but it chokes and dies on a whole bunch of GNU source
2490     # files.  Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2491     tentative_cc="/usr/ccs/ATT/cc"
2492     host_makefile_frag="config/mh-ncr3000"
2493     ;;
2494   i[3456789]86-*-sco3.2v5*)
2495     ;;
2496   i[3456789]86-*-sco*)
2497     # The native C compiler botches some simple uses of const.  Unfortunately,
2498     # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2499     tentative_cc="cc -Dconst="
2500     host_makefile_frag="config/mh-sco"
2501     ;;
2502   i[3456789]86-*-udk*)
2503     host_makefile_frag="config/mh-sysv5"
2504     ;;
2505   i[3456789]86-*-solaris2*)
2506     host_makefile_frag="config/mh-sysv4"
2507     ;;
2508   i[3456789]86-*-msdosdjgpp*)
2509     host_makefile_frag="config/mh-djgpp"
2510     ;;
2511   *-cygwin*)
2512     host_makefile_frag="config/mh-cygwin"
2513     ;;
2514   *-mingw32*)
2515     ;;
2516   *-mingw64*)
2517     ;;
2518   *-interix*)
2519     host_makefile_frag="config/mh-interix"
2520     ;;
2521   vax-*-ultrix2*)
2522     # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2523     tentative_cc=gcc
2524     ;;
2525   *-*-solaris2*)
2526     host_makefile_frag="config/mh-solaris"
2527     ;;
2528   m68k-sun-sunos*)
2529     # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2530     # without overflowing the jump tables (-J says to use a 32 bit table)
2531     tentative_cc="cc -J"
2532     ;;
2533   *-hp-hpux*)
2534     tentative_cc="cc -Wp,-H256000"
2535     ;;
2536   *-*-hiux*)
2537     tentative_cc="cc -Wp,-H256000"
2538     ;;
2539   rs6000-*-lynxos*)
2540     # /bin/cc is less than useful for our purposes.  Always use GCC
2541     tentative_cc="/usr/cygnus/progressive/bin/gcc"
2542     host_makefile_frag="config/mh-lynxrs6k"
2543     ;;
2544   powerpc-*-darwin*)
2545     host_makefile_frag="config/mh-ppc-darwin"
2546     ;;
2547   powerpc-*-aix*)
2548     host_makefile_frag="config/mh-ppc-aix"
2549     ;;
2550   rs6000-*-aix*)
2551     host_makefile_frag="config/mh-ppc-aix"
2552     ;;
2553   *-*-lynxos*)
2554     # /bin/cc is less than useful for our purposes.  Always use GCC
2555     tentative_cc="/bin/gcc"
2556     ;;
2557   *-*-sysv4*)
2558     host_makefile_frag="config/mh-sysv4"
2559     ;;
2560   # This is placed last to prevent interfering with the cases above.
2561   i[3456789]86-*-*)
2562     # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2563     host_makefile_frag="config/mh-x86omitfp"
2564     ;;
2565 esac
2566 fi
2567
2568 # If we aren't going to be using gcc, see if we can extract a definition
2569 # of CC from the fragment.
2570 # Actually, use the 'pre-extracted' version above.
2571 if test -z "${CC}" && test "${build}" = "${host}" ; then
2572   IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
2573   found=
2574   for dir in $PATH; do
2575     test -z "$dir" && dir=.
2576     if test -f $dir/gcc; then
2577       found=yes
2578       break
2579     fi
2580   done
2581   IFS="$save_ifs"
2582   if test -z "${found}" && test -n "${tentative_cc}" ; then
2583     CC=$tentative_cc
2584   fi
2585 fi
2586
2587 if test "${build}" != "${host}" ; then
2588   # If we are doing a Canadian Cross, in which the host and build systems
2589   # are not the same, we set reasonable default values for the tools.
2590
2591   CC=${CC-${host_noncanonical}-gcc}
2592   CFLAGS=${CFLAGS-"-g -O2"}
2593   CXX=${CXX-${host_noncanonical}-c++}
2594   CXXFLAGS=${CXXFLAGS-"-g -O2"}
2595   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2596
2597 else
2598   # Set reasonable default values for some tools even if not Canadian.
2599   # Of course, these are different reasonable default values, originally
2600   # specified directly in the Makefile.
2601   # We don't export, so that autoconf can do its job.
2602   # Note that all these settings are above the fragment inclusion point
2603   # in Makefile.in, so can still be overridden by fragments.
2604   # This is all going to change when we autoconfiscate...
2605
2606   CC_FOR_BUILD="\$(CC)"
2607   ac_ext=c
2608 ac_cpp='$CPP $CPPFLAGS'
2609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2612 if test -n "$ac_tool_prefix"; then
2613   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2614 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2615 echo "$as_me:$LINENO: checking for $ac_word" >&5
2616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2617 if test "${ac_cv_prog_CC+set}" = set; then
2618   echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620   if test -n "$CC"; then
2621   ac_cv_prog_CC="$CC" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626   IFS=$as_save_IFS
2627   test -z "$as_dir" && as_dir=.
2628   for ac_exec_ext in '' $ac_executable_extensions; do
2629   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632     break 2
2633   fi
2634 done
2635 done
2636
2637 fi
2638 fi
2639 CC=$ac_cv_prog_CC
2640 if test -n "$CC"; then
2641   echo "$as_me:$LINENO: result: $CC" >&5
2642 echo "${ECHO_T}$CC" >&6
2643 else
2644   echo "$as_me:$LINENO: result: no" >&5
2645 echo "${ECHO_T}no" >&6
2646 fi
2647
2648 fi
2649 if test -z "$ac_cv_prog_CC"; then
2650   ac_ct_CC=$CC
2651   # Extract the first word of "gcc", so it can be a program name with args.
2652 set dummy gcc; ac_word=$2
2653 echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2656   echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658   if test -n "$ac_ct_CC"; then
2659   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664   IFS=$as_save_IFS
2665   test -z "$as_dir" && as_dir=.
2666   for ac_exec_ext in '' $ac_executable_extensions; do
2667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668     ac_cv_prog_ac_ct_CC="gcc"
2669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670     break 2
2671   fi
2672 done
2673 done
2674
2675 fi
2676 fi
2677 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2678 if test -n "$ac_ct_CC"; then
2679   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2680 echo "${ECHO_T}$ac_ct_CC" >&6
2681 else
2682   echo "$as_me:$LINENO: result: no" >&5
2683 echo "${ECHO_T}no" >&6
2684 fi
2685
2686   CC=$ac_ct_CC
2687 else
2688   CC="$ac_cv_prog_CC"
2689 fi
2690
2691 if test -z "$CC"; then
2692   if test -n "$ac_tool_prefix"; then
2693   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2694 set dummy ${ac_tool_prefix}cc; ac_word=$2
2695 echo "$as_me:$LINENO: checking for $ac_word" >&5
2696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2697 if test "${ac_cv_prog_CC+set}" = set; then
2698   echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700   if test -n "$CC"; then
2701   ac_cv_prog_CC="$CC" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706   IFS=$as_save_IFS
2707   test -z "$as_dir" && as_dir=.
2708   for ac_exec_ext in '' $ac_executable_extensions; do
2709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710     ac_cv_prog_CC="${ac_tool_prefix}cc"
2711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712     break 2
2713   fi
2714 done
2715 done
2716
2717 fi
2718 fi
2719 CC=$ac_cv_prog_CC
2720 if test -n "$CC"; then
2721   echo "$as_me:$LINENO: result: $CC" >&5
2722 echo "${ECHO_T}$CC" >&6
2723 else
2724   echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6
2726 fi
2727
2728 fi
2729 if test -z "$ac_cv_prog_CC"; then
2730   ac_ct_CC=$CC
2731   # Extract the first word of "cc", so it can be a program name with args.
2732 set dummy cc; ac_word=$2
2733 echo "$as_me:$LINENO: checking for $ac_word" >&5
2734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2736   echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738   if test -n "$ac_ct_CC"; then
2739   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744   IFS=$as_save_IFS
2745   test -z "$as_dir" && as_dir=.
2746   for ac_exec_ext in '' $ac_executable_extensions; do
2747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748     ac_cv_prog_ac_ct_CC="cc"
2749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750     break 2
2751   fi
2752 done
2753 done
2754
2755 fi
2756 fi
2757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2758 if test -n "$ac_ct_CC"; then
2759   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2760 echo "${ECHO_T}$ac_ct_CC" >&6
2761 else
2762   echo "$as_me:$LINENO: result: no" >&5
2763 echo "${ECHO_T}no" >&6
2764 fi
2765
2766   CC=$ac_ct_CC
2767 else
2768   CC="$ac_cv_prog_CC"
2769 fi
2770
2771 fi
2772 if test -z "$CC"; then
2773   # Extract the first word of "cc", so it can be a program name with args.
2774 set dummy cc; ac_word=$2
2775 echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2777 if test "${ac_cv_prog_CC+set}" = set; then
2778   echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780   if test -n "$CC"; then
2781   ac_cv_prog_CC="$CC" # Let the user override the test.
2782 else
2783   ac_prog_rejected=no
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
2787   IFS=$as_save_IFS
2788   test -z "$as_dir" && as_dir=.
2789   for ac_exec_ext in '' $ac_executable_extensions; do
2790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2792        ac_prog_rejected=yes
2793        continue
2794      fi
2795     ac_cv_prog_CC="cc"
2796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797     break 2
2798   fi
2799 done
2800 done
2801
2802 if test $ac_prog_rejected = yes; then
2803   # We found a bogon in the path, so make sure we never use it.
2804   set dummy $ac_cv_prog_CC
2805   shift
2806   if test $# != 0; then
2807     # We chose a different compiler from the bogus one.
2808     # However, it has the same basename, so the bogon will be chosen
2809     # first if we set CC to just the basename; use the full file name.
2810     shift
2811     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2812   fi
2813 fi
2814 fi
2815 fi
2816 CC=$ac_cv_prog_CC
2817 if test -n "$CC"; then
2818   echo "$as_me:$LINENO: result: $CC" >&5
2819 echo "${ECHO_T}$CC" >&6
2820 else
2821   echo "$as_me:$LINENO: result: no" >&5
2822 echo "${ECHO_T}no" >&6
2823 fi
2824
2825 fi
2826 if test -z "$CC"; then
2827   if test -n "$ac_tool_prefix"; then
2828   for ac_prog in cl
2829   do
2830     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2832 echo "$as_me:$LINENO: checking for $ac_word" >&5
2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2834 if test "${ac_cv_prog_CC+set}" = set; then
2835   echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837   if test -n "$CC"; then
2838   ac_cv_prog_CC="$CC" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843   IFS=$as_save_IFS
2844   test -z "$as_dir" && as_dir=.
2845   for ac_exec_ext in '' $ac_executable_extensions; do
2846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849     break 2
2850   fi
2851 done
2852 done
2853
2854 fi
2855 fi
2856 CC=$ac_cv_prog_CC
2857 if test -n "$CC"; then
2858   echo "$as_me:$LINENO: result: $CC" >&5
2859 echo "${ECHO_T}$CC" >&6
2860 else
2861   echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6
2863 fi
2864
2865     test -n "$CC" && break
2866   done
2867 fi
2868 if test -z "$CC"; then
2869   ac_ct_CC=$CC
2870   for ac_prog in cl
2871 do
2872   # Extract the first word of "$ac_prog", so it can be a program name with args.
2873 set dummy $ac_prog; ac_word=$2
2874 echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2877   echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879   if test -n "$ac_ct_CC"; then
2880   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2884 do
2885   IFS=$as_save_IFS
2886   test -z "$as_dir" && as_dir=.
2887   for ac_exec_ext in '' $ac_executable_extensions; do
2888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889     ac_cv_prog_ac_ct_CC="$ac_prog"
2890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891     break 2
2892   fi
2893 done
2894 done
2895
2896 fi
2897 fi
2898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899 if test -n "$ac_ct_CC"; then
2900   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2901 echo "${ECHO_T}$ac_ct_CC" >&6
2902 else
2903   echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6
2905 fi
2906
2907   test -n "$ac_ct_CC" && break
2908 done
2909
2910   CC=$ac_ct_CC
2911 fi
2912
2913 fi
2914
2915
2916 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2917 See \`config.log' for more details." >&5
2918 echo "$as_me: error: no acceptable C compiler found in \$PATH
2919 See \`config.log' for more details." >&2;}
2920    { (exit 1); exit 1; }; }
2921
2922 # Provide some information about the compiler.
2923 echo "$as_me:$LINENO:" \
2924      "checking for C compiler version" >&5
2925 ac_compiler=`set X $ac_compile; echo $2`
2926 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2927   (eval $ac_compiler --version </dev/null >&5) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }
2931 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2932   (eval $ac_compiler -v </dev/null >&5) 2>&5
2933   ac_status=$?
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); }
2936 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2937   (eval $ac_compiler -V </dev/null >&5) 2>&5
2938   ac_status=$?
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); }
2941
2942 cat >conftest.$ac_ext <<_ACEOF
2943 /* confdefs.h.  */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h.  */
2948
2949 int
2950 main ()
2951 {
2952
2953   ;
2954   return 0;
2955 }
2956 _ACEOF
2957 ac_clean_files_save=$ac_clean_files
2958 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2959 # Try to create an executable without -o first, disregard a.out.
2960 # It will help us diagnose broken compilers, and finding out an intuition
2961 # of exeext.
2962 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2963 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2964 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2965 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2966   (eval $ac_link_default) 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); }; then
2970   # Find the output, starting from the most likely.  This scheme is
2971 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2972 # resort.
2973
2974 # Be careful to initialize this variable, since it used to be cached.
2975 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2976 ac_cv_exeext=
2977 # b.out is created by i960 compilers.
2978 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2979 do
2980   test -f "$ac_file" || continue
2981   case $ac_file in
2982     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2983         ;;
2984     conftest.$ac_ext )
2985         # This is the source file.
2986         ;;
2987     [ab].out )
2988         # We found the default executable, but exeext='' is most
2989         # certainly right.
2990         break;;
2991     *.* )
2992         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2993         # FIXME: I believe we export ac_cv_exeext for Libtool,
2994         # but it would be cool to find out if it's true.  Does anybody
2995         # maintain Libtool? --akim.
2996         export ac_cv_exeext
2997         break;;
2998     * )
2999         break;;
3000   esac
3001 done
3002 else
3003   echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3007 See \`config.log' for more details." >&5
3008 echo "$as_me: error: C compiler cannot create executables
3009 See \`config.log' for more details." >&2;}
3010    { (exit 77); exit 77; }; }
3011 fi
3012
3013 ac_exeext=$ac_cv_exeext
3014 echo "$as_me:$LINENO: result: $ac_file" >&5
3015 echo "${ECHO_T}$ac_file" >&6
3016
3017 # Check the compiler produces executables we can run.  If not, either
3018 # the compiler is broken, or we cross compile.
3019 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3020 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3021 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3022 # If not cross compiling, check that we can run a simple program.
3023 if test "$cross_compiling" != yes; then
3024   if { ac_try='./$ac_file'
3025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026   (eval $ac_try) 2>&5
3027   ac_status=$?
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); }; }; then
3030     cross_compiling=no
3031   else
3032     if test "$cross_compiling" = maybe; then
3033         cross_compiling=yes
3034     else
3035         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3036 If you meant to cross compile, use \`--host'.
3037 See \`config.log' for more details." >&5
3038 echo "$as_me: error: cannot run C compiled programs.
3039 If you meant to cross compile, use \`--host'.
3040 See \`config.log' for more details." >&2;}
3041    { (exit 1); exit 1; }; }
3042     fi
3043   fi
3044 fi
3045 echo "$as_me:$LINENO: result: yes" >&5
3046 echo "${ECHO_T}yes" >&6
3047
3048 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3049 ac_clean_files=$ac_clean_files_save
3050 # Check the compiler produces executables we can run.  If not, either
3051 # the compiler is broken, or we cross compile.
3052 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3053 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3054 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3055 echo "${ECHO_T}$cross_compiling" >&6
3056
3057 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3058 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3060   (eval $ac_link) 2>&5
3061   ac_status=$?
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); }; then
3064   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3065 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3066 # work properly (i.e., refer to `conftest.exe'), while it won't with
3067 # `rm'.
3068 for ac_file in conftest.exe conftest conftest.*; do
3069   test -f "$ac_file" || continue
3070   case $ac_file in
3071     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3072     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3073           export ac_cv_exeext
3074           break;;
3075     * ) break;;
3076   esac
3077 done
3078 else
3079   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3080 See \`config.log' for more details." >&5
3081 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3082 See \`config.log' for more details." >&2;}
3083    { (exit 1); exit 1; }; }
3084 fi
3085
3086 rm -f conftest$ac_cv_exeext
3087 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3088 echo "${ECHO_T}$ac_cv_exeext" >&6
3089
3090 rm -f conftest.$ac_ext
3091 EXEEXT=$ac_cv_exeext
3092 ac_exeext=$EXEEXT
3093 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3094 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3095 if test "${ac_cv_objext+set}" = set; then
3096   echo $ECHO_N "(cached) $ECHO_C" >&6
3097 else
3098   cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h.  */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h.  */
3104
3105 int
3106 main ()
3107 {
3108
3109   ;
3110   return 0;
3111 }
3112 _ACEOF
3113 rm -f conftest.o conftest.obj
3114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3115   (eval $ac_compile) 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }; then
3119   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3120   case $ac_file in
3121     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3122     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3123        break;;
3124   esac
3125 done
3126 else
3127   echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3129
3130 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3131 See \`config.log' for more details." >&5
3132 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3133 See \`config.log' for more details." >&2;}
3134    { (exit 1); exit 1; }; }
3135 fi
3136
3137 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3138 fi
3139 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3140 echo "${ECHO_T}$ac_cv_objext" >&6
3141 OBJEXT=$ac_cv_objext
3142 ac_objext=$OBJEXT
3143 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3144 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3145 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3146   echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148   cat >conftest.$ac_ext <<_ACEOF
3149 /* confdefs.h.  */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h.  */
3154
3155 int
3156 main ()
3157 {
3158 #ifndef __GNUC__
3159        choke me
3160 #endif
3161
3162   ;
3163   return 0;
3164 }
3165 _ACEOF
3166 rm -f conftest.$ac_objext
3167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3168   (eval $ac_compile) 2>conftest.er1
3169   ac_status=$?
3170   grep -v '^ *+' conftest.er1 >conftest.err
3171   rm -f conftest.er1
3172   cat conftest.err >&5
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); } &&
3175          { ac_try='test -z "$ac_c_werror_flag"
3176                          || test ! -s conftest.err'
3177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178   (eval $ac_try) 2>&5
3179   ac_status=$?
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); }; } &&
3182          { ac_try='test -s conftest.$ac_objext'
3183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184   (eval $ac_try) 2>&5
3185   ac_status=$?
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); }; }; then
3188   ac_compiler_gnu=yes
3189 else
3190   echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3192
3193 ac_compiler_gnu=no
3194 fi
3195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3197
3198 fi
3199 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3200 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3201 GCC=`test $ac_compiler_gnu = yes && echo yes`
3202 ac_test_CFLAGS=${CFLAGS+set}
3203 ac_save_CFLAGS=$CFLAGS
3204 CFLAGS="-g"
3205 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3206 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3207 if test "${ac_cv_prog_cc_g+set}" = set; then
3208   echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210   cat >conftest.$ac_ext <<_ACEOF
3211 /* confdefs.h.  */
3212 _ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h.  */
3216
3217 int
3218 main ()
3219 {
3220
3221   ;
3222   return 0;
3223 }
3224 _ACEOF
3225 rm -f conftest.$ac_objext
3226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3227   (eval $ac_compile) 2>conftest.er1
3228   ac_status=$?
3229   grep -v '^ *+' conftest.er1 >conftest.err
3230   rm -f conftest.er1
3231   cat conftest.err >&5
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); } &&
3234          { ac_try='test -z "$ac_c_werror_flag"
3235                          || test ! -s conftest.err'
3236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237   (eval $ac_try) 2>&5
3238   ac_status=$?
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); }; } &&
3241          { ac_try='test -s conftest.$ac_objext'
3242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243   (eval $ac_try) 2>&5
3244   ac_status=$?
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); }; }; then
3247   ac_cv_prog_cc_g=yes
3248 else
3249   echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252 ac_cv_prog_cc_g=no
3253 fi
3254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3255 fi
3256 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3257 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3258 if test "$ac_test_CFLAGS" = set; then
3259   CFLAGS=$ac_save_CFLAGS
3260 elif test $ac_cv_prog_cc_g = yes; then
3261   if test "$GCC" = yes; then
3262     CFLAGS="-g -O2"
3263   else
3264     CFLAGS="-g"
3265   fi
3266 else
3267   if test "$GCC" = yes; then
3268     CFLAGS="-O2"
3269   else
3270     CFLAGS=
3271   fi
3272 fi
3273 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3274 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3275 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278   ac_cv_prog_cc_stdc=no
3279 ac_save_CC=$CC
3280 cat >conftest.$ac_ext <<_ACEOF
3281 /* confdefs.h.  */
3282 _ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h.  */
3286 #include <stdarg.h>
3287 #include <stdio.h>
3288 #include <sys/types.h>
3289 #include <sys/stat.h>
3290 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3291 struct buf { int x; };
3292 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3293 static char *e (p, i)
3294      char **p;
3295      int i;
3296 {
3297   return p[i];
3298 }
3299 static char *f (char * (*g) (char **, int), char **p, ...)
3300 {
3301   char *s;
3302   va_list v;
3303   va_start (v,p);
3304   s = g (p, va_arg (v,int));
3305   va_end (v);
3306   return s;
3307 }
3308
3309 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3310    function prototypes and stuff, but not '\xHH' hex character constants.
3311    These don't provoke an error unfortunately, instead are silently treated
3312    as 'x'.  The following induces an error, until -std1 is added to get
3313    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3314    array size at least.  It's necessary to write '\x00'==0 to get something
3315    that's true only with -std1.  */
3316 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3317
3318 int test (int i, double x);
3319 struct s1 {int (*f) (int a);};
3320 struct s2 {int (*f) (double a);};
3321 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3322 int argc;
3323 char **argv;
3324 int
3325 main ()
3326 {
3327 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3328   ;
3329   return 0;
3330 }
3331 _ACEOF
3332 # Don't try gcc -ansi; that turns off useful extensions and
3333 # breaks some systems' header files.
3334 # AIX                   -qlanglvl=ansi
3335 # Ultrix and OSF/1      -std1
3336 # HP-UX 10.20 and later -Ae
3337 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3338 # SVR4                  -Xc -D__EXTENSIONS__
3339 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3340 do
3341   CC="$ac_save_CC $ac_arg"
3342   rm -f conftest.$ac_objext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344   (eval $ac_compile) 2>conftest.er1
3345   ac_status=$?
3346   grep -v '^ *+' conftest.er1 >conftest.err
3347   rm -f conftest.er1
3348   cat conftest.err >&5
3349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); } &&
3351          { ac_try='test -z "$ac_c_werror_flag"
3352                          || test ! -s conftest.err'
3353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354   (eval $ac_try) 2>&5
3355   ac_status=$?
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); }; } &&
3358          { ac_try='test -s conftest.$ac_objext'
3359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360   (eval $ac_try) 2>&5
3361   ac_status=$?
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); }; }; then
3364   ac_cv_prog_cc_stdc=$ac_arg
3365 break
3366 else
3367   echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3369
3370 fi
3371 rm -f conftest.err conftest.$ac_objext
3372 done
3373 rm -f conftest.$ac_ext conftest.$ac_objext
3374 CC=$ac_save_CC
3375
3376 fi
3377
3378 case "x$ac_cv_prog_cc_stdc" in
3379   x|xno)
3380     echo "$as_me:$LINENO: result: none needed" >&5
3381 echo "${ECHO_T}none needed" >&6 ;;
3382   *)
3383     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3384 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3385     CC="$CC $ac_cv_prog_cc_stdc" ;;
3386 esac
3387
3388 # Some people use a C++ compiler to compile C.  Since we use `exit',
3389 # in C++ we need to declare it.  In case someone uses the same compiler
3390 # for both compiling C and C++ we need to have the C++ compiler decide
3391 # the declaration of exit, since it's the most demanding environment.
3392 cat >conftest.$ac_ext <<_ACEOF
3393 #ifndef __cplusplus
3394   choke me
3395 #endif
3396 _ACEOF
3397 rm -f conftest.$ac_objext
3398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3399   (eval $ac_compile) 2>conftest.er1
3400   ac_status=$?
3401   grep -v '^ *+' conftest.er1 >conftest.err
3402   rm -f conftest.er1
3403   cat conftest.err >&5
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); } &&
3406          { ac_try='test -z "$ac_c_werror_flag"
3407                          || test ! -s conftest.err'
3408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409   (eval $ac_try) 2>&5
3410   ac_status=$?
3411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412   (exit $ac_status); }; } &&
3413          { ac_try='test -s conftest.$ac_objext'
3414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415   (eval $ac_try) 2>&5
3416   ac_status=$?
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); }; }; then
3419   for ac_declaration in \
3420    '' \
3421    'extern "C" void std::exit (int) throw (); using std::exit;' \
3422    'extern "C" void std::exit (int); using std::exit;' \
3423    'extern "C" void exit (int) throw ();' \
3424    'extern "C" void exit (int);' \
3425    'void exit (int);'
3426 do
3427   cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h.  */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h.  */
3433 $ac_declaration
3434 #include <stdlib.h>
3435 int
3436 main ()
3437 {
3438 exit (42);
3439   ;
3440   return 0;
3441 }
3442 _ACEOF
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445   (eval $ac_compile) 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } &&
3452          { ac_try='test -z "$ac_c_werror_flag"
3453                          || test ! -s conftest.err'
3454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455   (eval $ac_try) 2>&5
3456   ac_status=$?
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); }; } &&
3459          { ac_try='test -s conftest.$ac_objext'
3460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461   (eval $ac_try) 2>&5
3462   ac_status=$?
3463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); }; }; then
3465   :
3466 else
3467   echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 continue
3471 fi
3472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473   cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h.  */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h.  */
3479 $ac_declaration
3480 int
3481 main ()
3482 {
3483 exit (42);
3484   ;
3485   return 0;
3486 }
3487 _ACEOF
3488 rm -f conftest.$ac_objext
3489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490   (eval $ac_compile) 2>conftest.er1
3491   ac_status=$?
3492   grep -v '^ *+' conftest.er1 >conftest.err
3493   rm -f conftest.er1
3494   cat conftest.err >&5
3495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496   (exit $ac_status); } &&
3497          { ac_try='test -z "$ac_c_werror_flag"
3498                          || test ! -s conftest.err'
3499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500   (eval $ac_try) 2>&5
3501   ac_status=$?
3502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503   (exit $ac_status); }; } &&
3504          { ac_try='test -s conftest.$ac_objext'
3505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506   (eval $ac_try) 2>&5
3507   ac_status=$?
3508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509   (exit $ac_status); }; }; then
3510   break
3511 else
3512   echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3514
3515 fi
3516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3517 done
3518 rm -f conftest*
3519 if test -n "$ac_declaration"; then
3520   echo '#ifdef __cplusplus' >>confdefs.h
3521   echo $ac_declaration      >>confdefs.h
3522   echo '#endif'             >>confdefs.h
3523 fi
3524
3525 else
3526   echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3528
3529 fi
3530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3531 ac_ext=c
3532 ac_cpp='$CPP $CPPFLAGS'
3533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536
3537
3538   # We must set the default linker to the linker used by gcc for the correct
3539   # operation of libtool.  If LD is not defined and we are using gcc, try to
3540   # set the LD default to the ld used by gcc.
3541   if test -z "$LD"; then
3542     if test "$GCC" = yes; then
3543       case $build in
3544       *-*-mingw*)
3545         gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
3546       *)
3547         gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
3548       esac
3549       case $gcc_prog_ld in
3550       # Accept absolute paths.
3551       [\\/]* | [A-Za-z]:[\\/]*)
3552         LD="$gcc_prog_ld" ;;
3553       esac
3554     fi
3555   fi
3556
3557   CXX=${CXX-"c++"}
3558   CFLAGS=${CFLAGS-"-g"}
3559   CXXFLAGS=${CXXFLAGS-"-g -O2"}
3560 fi
3561
3562
3563
3564
3565 if test -n "$ac_tool_prefix"; then
3566   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3567 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3568 echo "$as_me:$LINENO: checking for $ac_word" >&5
3569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3570 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3571   echo $ECHO_N "(cached) $ECHO_C" >&6
3572 else
3573   if test -n "$GNATBIND"; then
3574   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3578 do
3579   IFS=$as_save_IFS
3580   test -z "$as_dir" && as_dir=.
3581   for ac_exec_ext in '' $ac_executable_extensions; do
3582   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3585     break 2
3586   fi
3587 done
3588 done
3589
3590 fi
3591 fi
3592 GNATBIND=$ac_cv_prog_GNATBIND
3593 if test -n "$GNATBIND"; then
3594   echo "$as_me:$LINENO: result: $GNATBIND" >&5
3595 echo "${ECHO_T}$GNATBIND" >&6
3596 else
3597   echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3599 fi
3600
3601 fi
3602 if test -z "$ac_cv_prog_GNATBIND"; then
3603   ac_ct_GNATBIND=$GNATBIND
3604   # Extract the first word of "gnatbind", so it can be a program name with args.
3605 set dummy gnatbind; ac_word=$2
3606 echo "$as_me:$LINENO: checking for $ac_word" >&5
3607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3608 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3609   echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611   if test -n "$ac_ct_GNATBIND"; then
3612   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3616 do
3617   IFS=$as_save_IFS
3618   test -z "$as_dir" && as_dir=.
3619   for ac_exec_ext in '' $ac_executable_extensions; do
3620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623     break 2
3624   fi
3625 done
3626 done
3627
3628   test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3629 fi
3630 fi
3631 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3632 if test -n "$ac_ct_GNATBIND"; then
3633   echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3634 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3635 else
3636   echo "$as_me:$LINENO: result: no" >&5
3637 echo "${ECHO_T}no" >&6
3638 fi
3639
3640   GNATBIND=$ac_ct_GNATBIND
3641 else
3642   GNATBIND="$ac_cv_prog_GNATBIND"
3643 fi
3644
3645 if test -n "$ac_tool_prefix"; then
3646   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3647 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
3648 echo "$as_me:$LINENO: checking for $ac_word" >&5
3649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3650 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3651   echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653   if test -n "$GNATMAKE"; then
3654   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659   IFS=$as_save_IFS
3660   test -z "$as_dir" && as_dir=.
3661   for ac_exec_ext in '' $ac_executable_extensions; do
3662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
3664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3665     break 2
3666   fi
3667 done
3668 done
3669
3670 fi
3671 fi
3672 GNATMAKE=$ac_cv_prog_GNATMAKE
3673 if test -n "$GNATMAKE"; then
3674   echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3675 echo "${ECHO_T}$GNATMAKE" >&6
3676 else
3677   echo "$as_me:$LINENO: result: no" >&5
3678 echo "${ECHO_T}no" >&6
3679 fi
3680
3681 fi
3682 if test -z "$ac_cv_prog_GNATMAKE"; then
3683   ac_ct_GNATMAKE=$GNATMAKE
3684   # Extract the first word of "gnatmake", so it can be a program name with args.
3685 set dummy gnatmake; ac_word=$2
3686 echo "$as_me:$LINENO: checking for $ac_word" >&5
3687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3688 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3689   echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691   if test -n "$ac_ct_GNATMAKE"; then
3692   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
3693 else
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3696 do
3697   IFS=$as_save_IFS
3698   test -z "$as_dir" && as_dir=.
3699   for ac_exec_ext in '' $ac_executable_extensions; do
3700   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
3702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3703     break 2
3704   fi
3705 done
3706 done
3707
3708   test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
3709 fi
3710 fi
3711 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
3712 if test -n "$ac_ct_GNATMAKE"; then
3713   echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3714 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3715 else
3716   echo "$as_me:$LINENO: result: no" >&5
3717 echo "${ECHO_T}no" >&6
3718 fi
3719
3720   GNATMAKE=$ac_ct_GNATMAKE
3721 else
3722   GNATMAKE="$ac_cv_prog_GNATMAKE"
3723 fi
3724
3725 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3726 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3727 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   cat >conftest.adb <<EOF
3731 procedure conftest is begin null; end conftest;
3732 EOF
3733 acx_cv_cc_gcc_supports_ada=no
3734 # There is a bug in old released versions of GCC which causes the
3735 # driver to exit successfully when the appropriate language module
3736 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
3737 # Therefore we must check for the error message as well as an
3738 # unsuccessful exit.
3739 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3740 # given a .adb file, but produce no object file.  So we must check
3741 # if an object file was really produced to guard against this.
3742 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3743 if test x"$errors" = x && test -f conftest.$ac_objext; then
3744   acx_cv_cc_gcc_supports_ada=yes
3745 fi
3746 rm -f conftest.*
3747 fi
3748 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3749 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3750
3751 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3752   have_gnat=yes
3753 else
3754   have_gnat=no
3755 fi
3756
3757 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
3758 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
3759 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
3760   echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762    echo abfoo >t1
3763   echo cdfoo >t2
3764   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
3765   if cmp t1 t2 2 2 > /dev/null 2>&1; then
3766     if cmp t1 t2 1 1 > /dev/null 2>&1; then
3767       :
3768     else
3769       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
3770     fi
3771   fi
3772   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
3773     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
3774       :
3775     else
3776       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
3777     fi
3778   fi
3779   rm t1 t2
3780
3781 fi
3782 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
3783 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
3784 do_compare="$gcc_cv_prog_cmp_skip"
3785
3786
3787
3788 # Check for GMP and MPFR
3789 gmplibs="-lmpfr -lgmp"
3790 gmpinc=
3791 have_gmp=no
3792
3793 # Specify a location for mpfr
3794 # check for this first so it ends up on the link line before gmp.
3795
3796 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
3797 if test "${with_mpfr_dir+set}" = set; then
3798   withval="$with_mpfr_dir"
3799   { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
3800 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
3801 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
3802 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
3803    { (exit 1); exit 1; }; }
3804 fi;
3805
3806
3807 # Check whether --with-mpfr or --without-mpfr was given.
3808 if test "${with_mpfr+set}" = set; then
3809   withval="$with_mpfr"
3810
3811 fi;
3812
3813 # Check whether --with-mpfr_include or --without-mpfr_include was given.
3814 if test "${with_mpfr_include+set}" = set; then
3815   withval="$with_mpfr_include"
3816
3817 fi;
3818
3819 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
3820 if test "${with_mpfr_lib+set}" = set; then
3821   withval="$with_mpfr_lib"
3822
3823 fi;
3824
3825 if test "x$with_mpfr" != x; then
3826   gmplibs="-L$with_mpfr/lib $gmplibs"
3827   gmpinc="-I$with_mpfr/include"
3828 fi
3829 if test "x$with_mpfr_include" != x; then
3830   gmpinc="-I$with_mpfr_include"
3831 fi
3832 if test "x$with_mpfr_lib" != x; then
3833   gmplibs="-L$with_mpfr_lib $gmplibs"
3834 fi
3835 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
3836   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
3837   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
3838   # Do not test the mpfr version.  Assume that it is sufficient, since
3839   # it is in the source tree, and the library has not been built yet
3840   # but it would be included on the link line in the version check below
3841   # hence making the test fail.
3842   have_gmp=yes
3843 fi
3844
3845 # Specify a location for gmp
3846
3847 # Check whether --with-gmp-dir or --without-gmp-dir was given.
3848 if test "${with_gmp_dir+set}" = set; then
3849   withval="$with_gmp_dir"
3850   { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
3851 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
3852 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
3853 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
3854    { (exit 1); exit 1; }; }
3855 fi;
3856
3857
3858 # Check whether --with-gmp or --without-gmp was given.
3859 if test "${with_gmp+set}" = set; then
3860   withval="$with_gmp"
3861
3862 fi;
3863
3864 # Check whether --with-gmp_include or --without-gmp_include was given.
3865 if test "${with_gmp_include+set}" = set; then
3866   withval="$with_gmp_include"
3867
3868 fi;
3869
3870 # Check whether --with-gmp_lib or --without-gmp_lib was given.
3871 if test "${with_gmp_lib+set}" = set; then
3872   withval="$with_gmp_lib"
3873
3874 fi;
3875
3876
3877 if test "x$with_gmp" != x; then
3878   gmplibs="-L$with_gmp/lib $gmplibs"
3879   gmpinc="-I$with_gmp/include $gmpinc"
3880 fi
3881 if test "x$with_gmp_include" != x; then
3882   gmpinc="-I$with_gmp_include $gmpinc"
3883 fi
3884 if test "x$with_gmp_lib" != x; then
3885   gmplibs="-L$with_gmp_lib $gmplibs"
3886 fi
3887 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
3888   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
3889   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
3890   # Do not test the gmp version.  Assume that it is sufficient, since
3891   # it is in the source tree, and the library has not been built yet
3892   # but it would be included on the link line in the version check below
3893   # hence making the test fail.
3894   have_gmp=yes
3895 fi
3896
3897 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
3898   have_gmp=yes
3899   saved_CFLAGS="$CFLAGS"
3900   CFLAGS="$CFLAGS $gmpinc"
3901   # Check GMP actually works
3902   echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
3903 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
3904
3905 cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h.  */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h.  */
3911 #include "gmp.h"
3912 int
3913 main ()
3914 {
3915
3916   #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
3917   choke me
3918   #endif
3919
3920   ;
3921   return 0;
3922 }
3923 _ACEOF
3924 rm -f conftest.$ac_objext
3925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3926   (eval $ac_compile) 2>conftest.er1
3927   ac_status=$?
3928   grep -v '^ *+' conftest.er1 >conftest.err
3929   rm -f conftest.er1
3930   cat conftest.err >&5
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); } &&
3933          { ac_try='test -z "$ac_c_werror_flag"
3934                          || test ! -s conftest.err'
3935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936   (eval $ac_try) 2>&5
3937   ac_status=$?
3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939   (exit $ac_status); }; } &&
3940          { ac_try='test -s conftest.$ac_objext'
3941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942   (eval $ac_try) 2>&5
3943   ac_status=$?
3944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945   (exit $ac_status); }; }; then
3946   echo "$as_me:$LINENO: result: yes" >&5
3947 echo "${ECHO_T}yes" >&6
3948 else
3949   echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3951
3952 echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6; have_gmp=no
3954 fi
3955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3956
3957   if test x"$have_gmp" = xyes; then
3958     saved_LIBS="$LIBS"
3959     LIBS="$LIBS $gmplibs"
3960         echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
3961 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
3962     cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h.  */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h.  */
3968 #include <gmp.h>
3969     #include <mpfr.h>
3970 int
3971 main ()
3972 {
3973
3974     #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
3975     choke me
3976     #endif
3977     mpfr_t n; mpfr_init(n);
3978     mpfr_t x; mpfr_init(x);
3979     int t;
3980     mpfr_atan2 (n, n, x, GMP_RNDN);
3981     mpfr_erfc (n, x, GMP_RNDN);
3982     mpfr_subnormalize (x, t, GMP_RNDN);
3983
3984   ;
3985   return 0;
3986 }
3987 _ACEOF
3988 rm -f conftest.$ac_objext conftest$ac_exeext
3989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3990   (eval $ac_link) 2>conftest.er1
3991   ac_status=$?
3992   grep -v '^ *+' conftest.er1 >conftest.err
3993   rm -f conftest.er1
3994   cat conftest.err >&5
3995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996   (exit $ac_status); } &&
3997          { ac_try='test -z "$ac_c_werror_flag"
3998                          || test ! -s conftest.err'
3999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000   (eval $ac_try) 2>&5
4001   ac_status=$?
4002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003   (exit $ac_status); }; } &&
4004          { ac_try='test -s conftest$ac_exeext'
4005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006   (eval $ac_try) 2>&5
4007   ac_status=$?
4008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009   (exit $ac_status); }; }; then
4010   cat >conftest.$ac_ext <<_ACEOF
4011 /* confdefs.h.  */
4012 _ACEOF
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h.  */
4016 #include <gmp.h>
4017     #include <mpfr.h>
4018 int
4019 main ()
4020 {
4021
4022     #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4023     choke me
4024     #endif
4025     mpfr_t n; mpfr_init(n);
4026
4027   ;
4028   return 0;
4029 }
4030 _ACEOF
4031 rm -f conftest.$ac_objext conftest$ac_exeext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4033   (eval $ac_link) 2>conftest.er1
4034   ac_status=$?
4035   grep -v '^ *+' conftest.er1 >conftest.err
4036   rm -f conftest.er1
4037   cat conftest.err >&5
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); } &&
4040          { ac_try='test -z "$ac_c_werror_flag"
4041                          || test ! -s conftest.err'
4042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043   (eval $ac_try) 2>&5
4044   ac_status=$?
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); }; } &&
4047          { ac_try='test -s conftest$ac_exeext'
4048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049   (eval $ac_try) 2>&5
4050   ac_status=$?
4051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); }; }; then
4053   echo "$as_me:$LINENO: result: yes" >&5
4054 echo "${ECHO_T}yes" >&6
4055 else
4056   echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4058
4059 echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4060 echo "${ECHO_T}buggy but acceptable" >&6
4061 fi
4062 rm -f conftest.err conftest.$ac_objext \
4063       conftest$ac_exeext conftest.$ac_ext
4064 else
4065   echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4067
4068 echo "$as_me:$LINENO: result: no" >&5
4069 echo "${ECHO_T}no" >&6; have_gmp=no
4070 fi
4071 rm -f conftest.err conftest.$ac_objext \
4072       conftest$ac_exeext conftest.$ac_ext
4073       LIBS="$saved_LIBS"
4074   fi
4075   CFLAGS="$saved_CFLAGS"
4076
4077   if test x$have_gmp != xyes; then
4078     { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4079 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4080 Copies of these libraries' source code can be found at their respective
4081 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4082 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4083 If you obtained GMP and/or MPFR from a vendor distribution package, make
4084 sure that you have installed both the libraries and the header files.
4085 They may be located in separate packages." >&5
4086 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4087 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4088 Copies of these libraries' source code can be found at their respective
4089 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4090 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4091 If you obtained GMP and/or MPFR from a vendor distribution package, make
4092 sure that you have installed both the libraries and the header files.
4093 They may be located in separate packages." >&2;}
4094    { (exit 1); exit 1; }; }
4095   fi
4096 fi
4097
4098 # Flags needed for both GMP and/or MPFR
4099
4100
4101
4102 # By default, C is the only stage 1 language.
4103 stage1_languages=,c,
4104
4105 # Figure out what language subdirectories are present.
4106 # Look if the user specified --enable-languages="..."; if not, use
4107 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4108 # go away some day.
4109 # NB:  embedded tabs in this IF block -- do not untabify
4110 if test -d ${srcdir}/gcc; then
4111   if test x"${enable_languages+set}" != xset; then
4112     if test x"${LANGUAGES+set}" = xset; then
4113       enable_languages="${LANGUAGES}"
4114         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4115     else
4116       enable_languages=all
4117     fi
4118   else
4119     if test x"${enable_languages}" = x ||
4120        test x"${enable_languages}" = xyes;
4121        then
4122       echo configure.in: --enable-languages needs at least one language argument 1>&2
4123       exit 1
4124     fi
4125   fi
4126   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
4127
4128   # 'f95' is the old name for the 'fortran' language. We issue a warning
4129   # and make the substitution.
4130   case ,${enable_languages}, in
4131     *,f95,*)
4132       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4133       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4134       ;;
4135   esac
4136
4137   # First scan to see if an enabled language requires some other language.
4138   # We assume that a given config-lang.in will list all the language
4139   # front ends it requires, even if some are required indirectly.
4140   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4141     case ${lang_frag} in
4142       ..) ;;
4143       # The odd quoting in the next line works around
4144       # an apparent bug in bash 1.12 on linux.
4145       ${srcdir}/gcc/[*]/config-lang.in) ;;
4146       *)
4147         # From the config-lang.in, get $language, $lang_requires
4148         language=
4149         lang_requires=
4150         . ${lang_frag}
4151         for other in ${lang_requires} ; do
4152           case ,${enable_languages}, in
4153             *,$other,*) ;;
4154             *,all,*) ;;
4155             *,$language,*)
4156               echo " \`$other' language required by \`$language'; enabling" 1>&2
4157               enable_languages="${enable_languages},${other}"
4158               ;;
4159           esac
4160         done
4161         ;;
4162     esac
4163   done
4164
4165   new_enable_languages=,c,
4166   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
4167   potential_languages=,c,
4168
4169   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4170     case ${lang_frag} in
4171       ..) ;;
4172       # The odd quoting in the next line works around
4173       # an apparent bug in bash 1.12 on linux.
4174       ${srcdir}/gcc/[*]/config-lang.in) ;;
4175       *)
4176         # From the config-lang.in, get $language, $target_libs,
4177         # $lang_dirs, $boot_language, and $build_by_default
4178         language=
4179         target_libs=
4180         lang_dirs=
4181         subdir_requires=
4182         boot_language=no
4183         build_by_default=yes
4184         . ${lang_frag}
4185         if test x${language} = x; then
4186           echo "${lang_frag} doesn't set \$language." 1>&2
4187           exit 1
4188         fi
4189
4190         case ,${enable_languages}, in
4191           *,${language},*)
4192             # Language was explicitly selected; include it.
4193             add_this_lang=yes
4194             ;;
4195           *,all,*)
4196             # 'all' was selected, select it if it is a default language
4197             add_this_lang=${build_by_default}
4198             ;;
4199           *)
4200             add_this_lang=no
4201             ;;
4202         esac
4203
4204         # Disable languages that need other directories if these aren't available.
4205         for i in $subdir_requires; do
4206           test -f "$srcdir/gcc/$i/config-lang.in" && continue
4207           case ,${enable_languages}, in
4208             *,${language},*)
4209               # Specifically requested language; tell them.
4210               { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4211 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4212    { (exit 1); exit 1; }; }
4213               ;;
4214             *)
4215               # Silently disable.
4216               add_this_lang=unsupported
4217               ;;
4218           esac
4219         done
4220
4221         # Disable Ada if no preexisting GNAT is available.
4222         case ,${enable_languages},:${language}:${have_gnat} in
4223           *,${language},*:ada:no)
4224             # Specifically requested language; tell them.
4225             { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4226 echo "$as_me: error: GNAT is required to build $language" >&2;}
4227    { (exit 1); exit 1; }; }
4228             ;;
4229           *:ada:no)
4230             # Silently disable.
4231             add_this_lang=unsupported
4232             ;;
4233         esac
4234
4235         # Disable a language that is unsupported by the target.
4236         case " $unsupported_languages " in
4237           *" $language "*)
4238             add_this_lang=unsupported
4239             ;;
4240         esac
4241
4242         case $add_this_lang in
4243           unsupported)
4244             # Remove language-dependent dirs.
4245             eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4246             ;;
4247           no)
4248             # Remove language-dependent dirs; still show language as supported.
4249             eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4250             potential_languages="${potential_languages}${language},"
4251             ;;
4252           yes)
4253             new_enable_languages="${new_enable_languages}${language},"
4254             potential_languages="${potential_languages}${language},"
4255             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4256             case ${boot_language} in
4257               yes)
4258                 # Add to (comma-separated) list of stage 1 languages.
4259                 stage1_languages="${stage1_languages}${language},"
4260                 ;;
4261             esac
4262             ;;
4263         esac
4264         ;;
4265     esac
4266   done
4267
4268   # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4269 if test "${enable_stage1_languages+set}" = set; then
4270   enableval="$enable_stage1_languages"
4271   case ,${enable_stage1_languages}, in
4272     ,no,|,,)
4273       # Set it to something that will have no effect in the loop below
4274       enable_stage1_languages=c ;;
4275     ,yes,)
4276       enable_stage1_languages=`echo $new_enable_languages | \
4277         sed -e "s/^,//" -e "s/,$//" ` ;;
4278     *,all,*)
4279       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4280         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4281   esac
4282
4283   # Add "good" languages from enable_stage1_languages to stage1_languages,
4284   # while "bad" languages go in missing_languages.  Leave no duplicates.
4285   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4286     case $potential_languages in
4287       *,$i,*)
4288         case $stage1_languages in
4289           *,$i,*) ;;
4290           *) stage1_languages="$stage1_languages$i," ;;
4291         esac ;;
4292       *)
4293         case $missing_languages in
4294           *,$i,*) ;;
4295           *) missing_languages="$missing_languages$i," ;;
4296         esac ;;
4297      esac
4298   done
4299 fi;
4300
4301   # Remove leading/trailing commas that were added for simplicity
4302   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4303   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4304   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4305   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4306
4307   if test "x$missing_languages" != x; then
4308     { { echo "$as_me:$LINENO: error:
4309 The following requested languages could not be built: ${missing_languages}
4310 Supported languages are: ${potential_languages}" >&5
4311 echo "$as_me: error:
4312 The following requested languages could not be built: ${missing_languages}
4313 Supported languages are: ${potential_languages}" >&2;}
4314    { (exit 1); exit 1; }; }
4315   fi
4316   if test "x$new_enable_languages" != "x$enable_languages"; then
4317     echo The following languages will be built: ${new_enable_languages}
4318     enable_languages="$new_enable_languages"
4319   fi
4320
4321
4322   ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
4323 fi
4324
4325 # Handle --disable-<component> generically.
4326 for dir in $configdirs $build_configdirs $target_configdirs ; do
4327   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4328   if eval test x\${enable_${dirname}} "=" xno ; then
4329     noconfigdirs="$noconfigdirs $dir"
4330   fi
4331 done
4332
4333 # Check for Boehm's garbage collector
4334 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4335 if test "${enable_objc_gc+set}" = set; then
4336   enableval="$enable_objc_gc"
4337   case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4338   *,objc,*:*:yes:*target-boehm-gc*)
4339     { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4340 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4341    { (exit 1); exit 1; }; }
4342     ;;
4343 esac
4344 fi;
4345
4346 # Make sure we only build Boehm's garbage collector if required.
4347 case ,${enable_languages},:${enable_objc_gc} in
4348   *,objc,*:yes)
4349     # Keep target-boehm-gc if requested for Objective-C.
4350     ;;
4351   *)
4352     # Otherwise remove target-boehm-gc depending on target-libjava.
4353     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4354       noconfigdirs="$noconfigdirs target-boehm-gc"
4355     fi
4356     ;;
4357 esac
4358
4359 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4360 # $build_configdirs and $target_configdirs.
4361 # If we have the source for $noconfigdirs entries, add them to $notsupp.
4362
4363 notsupp=""
4364 for dir in . $skipdirs $noconfigdirs ; do
4365   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
4366   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4367     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4368     if test -r $srcdir/$dirname/configure ; then
4369       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4370         true
4371       else
4372         notsupp="$notsupp $dir"
4373       fi
4374     fi
4375   fi
4376   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4377     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4378     if test -r $srcdir/$dirname/configure ; then
4379       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4380         true
4381       else
4382         notsupp="$notsupp $dir"
4383       fi
4384     fi
4385   fi
4386   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4387     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4388     if test -r $srcdir/$dirname/configure ; then
4389       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4390         true
4391       else
4392         notsupp="$notsupp $dir"
4393       fi
4394     fi
4395   fi
4396 done
4397
4398 # Sometimes the tools are distributed with libiberty but with no other
4399 # libraries.  In that case, we don't want to build target-libiberty.
4400 # Don't let libgcc imply libiberty either.
4401 if test -n "${target_configdirs}" ; then
4402   libgcc=
4403   others=
4404   for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
4405     if test "$i" = "libgcc"; then
4406       libgcc=target-libgcc
4407     elif test "$i" != "libiberty" ; then
4408       if test -r $srcdir/$i/configure ; then
4409         others=yes;
4410         break;
4411       fi
4412     fi
4413   done
4414   if test -z "${others}" ; then
4415     target_configdirs=$libgcc
4416   fi
4417 fi
4418
4419 # Quietly strip out all directories which aren't configurable in this tree.
4420 # This relies on all configurable subdirectories being autoconfiscated, which
4421 # is now the case.
4422 build_configdirs_all="$build_configdirs"
4423 build_configdirs=
4424 for i in ${build_configdirs_all} ; do
4425   j=`echo $i | sed -e s/build-//g`
4426   if test -f ${srcdir}/$j/configure ; then
4427     build_configdirs="${build_configdirs} $i"
4428   fi
4429 done
4430
4431 configdirs_all="$configdirs"
4432 configdirs=
4433 for i in ${configdirs_all} ; do
4434   if test -f ${srcdir}/$i/configure ; then
4435     configdirs="${configdirs} $i"
4436   fi
4437 done
4438
4439 target_configdirs_all="$target_configdirs"
4440 target_configdirs=
4441 for i in ${target_configdirs_all} ; do
4442   j=`echo $i | sed -e s/target-//g`
4443   if test -f ${srcdir}/$j/configure ; then
4444     target_configdirs="${target_configdirs} $i"
4445   fi
4446 done
4447
4448 # Produce a warning message for the subdirs we can't configure.
4449 # This isn't especially interesting in the Cygnus tree, but in the individual
4450 # FSF releases, it's important to let people know when their machine isn't
4451 # supported by the one or two programs in a package.
4452
4453 if test -n "${notsupp}" && test -z "${norecursion}" ; then
4454   # If $appdirs is non-empty, at least one of those directories must still
4455   # be configured, or we error out.  (E.g., if the gas release supports a
4456   # specified target in some subdirs but not the gas subdir, we shouldn't
4457   # pretend that all is well.)
4458   if test -n "$appdirs" ; then
4459     for dir in $appdirs ; do
4460       if test -r $dir/Makefile.in ; then
4461         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4462           appdirs=""
4463           break
4464         fi
4465         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
4466           appdirs=""
4467           break
4468         fi
4469       fi
4470     done
4471     if test -n "$appdirs" ; then
4472       echo "*** This configuration is not supported by this package." 1>&2
4473       exit 1
4474     fi
4475   fi
4476   # Okay, some application will build, or we don't care to check.  Still
4477   # notify of subdirs not getting built.
4478   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4479   echo "    ${notsupp}" 1>&2
4480   echo "    (Any other directories should still work fine.)" 1>&2
4481 fi
4482
4483 case "$host" in
4484   *msdosdjgpp*)
4485     enable_gdbtk=no ;;
4486 esac
4487
4488 copy_dirs=
4489
4490
4491 # Check whether --with-build-sysroot or --without-build-sysroot was given.
4492 if test "${with_build_sysroot+set}" = set; then
4493   withval="$with_build_sysroot"
4494   if test x"$withval" != x ; then
4495      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
4496    fi
4497 else
4498   SYSROOT_CFLAGS_FOR_TARGET=
4499 fi;
4500
4501
4502 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
4503 # the named directory are copied to $(tooldir)/sys-include.
4504 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
4505   if test x${is_cross_compiler} = xno ; then
4506     echo 1>&2 '***' --with-headers is only supported when cross compiling
4507     exit 1
4508   fi
4509   if test x"${with_headers}" != xyes ; then
4510     case "${exec_prefixoption}" in
4511     "") x=${prefix} ;;
4512     *) x=${exec_prefix} ;;
4513     esac
4514     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
4515   fi
4516 fi
4517
4518 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
4519 # the name directories are copied to $(tooldir)/lib.  Multiple directories
4520 # are permitted.
4521 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
4522   if test x${is_cross_compiler} = xno ; then
4523     echo 1>&2 '***' --with-libs is only supported when cross compiling
4524     exit 1
4525   fi
4526   if test x"${with_libs}" != xyes ; then
4527     # Copy the libraries in reverse order, so that files in the first named
4528     # library override files in subsequent libraries.
4529     case "${exec_prefixoption}" in
4530     "") x=${prefix} ;;
4531     *) x=${exec_prefix} ;;
4532     esac
4533     for l in ${with_libs}; do
4534       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
4535     done
4536   fi
4537 fi
4538
4539 # Set with_gnu_as and with_gnu_ld as appropriate.
4540 #
4541 # This is done by determining whether or not the appropriate directory
4542 # is available, and by checking whether or not specific configurations
4543 # have requested that this magic not happen.
4544 #
4545 # The command line options always override the explicit settings in
4546 # configure.in, and the settings in configure.in override this magic.
4547 #
4548 # If the default for a toolchain is to use GNU as and ld, and you don't
4549 # want to do that, then you should use the --without-gnu-as and
4550 # --without-gnu-ld options for the configure script.
4551
4552 if test x${use_gnu_as} = x &&
4553    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
4554   with_gnu_as=yes
4555   extra_host_args="$extra_host_args --with-gnu-as"
4556 fi
4557
4558 if test x${use_gnu_ld} = x &&
4559    echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
4560   with_gnu_ld=yes
4561   extra_host_args="$extra_host_args --with-gnu-ld"
4562 fi
4563
4564 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
4565 # can detect this case.
4566
4567 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
4568   with_newlib=yes
4569   extra_host_args="$extra_host_args --with-newlib"
4570 fi
4571
4572 # Handle ${copy_dirs}
4573 set fnord ${copy_dirs}
4574 shift
4575 while test $# != 0 ; do
4576   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
4577     :
4578   else
4579     echo Copying $1 to $2
4580
4581     # Use the install script to create the directory and all required
4582     # parent directories.
4583     if test -d $2 ; then
4584       :
4585     else
4586       echo >config.temp
4587       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
4588     fi
4589
4590     # Copy the directory, assuming we have tar.
4591     # FIXME: Should we use B in the second tar?  Not all systems support it.
4592     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
4593
4594     # It is the responsibility of the user to correctly adjust all
4595     # symlinks.  If somebody can figure out how to handle them correctly
4596     # here, feel free to add the code.
4597
4598     echo $1 > $2/COPIED
4599   fi
4600   shift; shift
4601 done
4602
4603 # Determine a target-dependent exec_prefix that the installed
4604 # gcc will search in.  Keep this list sorted by triplet, with
4605 # the *-*-osname triplets last.
4606 md_exec_prefix=
4607 case "${target}" in
4608   alpha*-*-*vms*)
4609     md_exec_prefix=/gnu/lib/gcc-lib
4610     ;;
4611   i3456786-pc-msdosdjgpp*)
4612     md_exec_prefix=/dev/env/DJDIR/bin
4613     ;;
4614   i3456786-*-sco3.2v5*)
4615     if test $with_gnu_as = yes; then
4616       md_exec_prefix=/usr/gnu/bin
4617     else
4618       md_exec_prefix=/usr/ccs/bin/elf
4619     fi
4620     ;;
4621
4622   mn10300-*-* | \
4623   powerpc-*-chorusos* | \
4624   powerpc*-*-eabi* | \
4625   powerpc*-*-sysv* | \
4626   powerpc*-*-kaos* | \
4627   s390x-ibm-tpf*)
4628     md_exec_prefix=/usr/ccs/bin
4629     ;;
4630   sparc64-*-elf*)
4631     ;;
4632   v850*-*-*)
4633     md_exec_prefix=/usr/ccs/bin
4634     ;;
4635   xtensa-*-elf*)
4636     ;;
4637
4638   *-*-beos* | \
4639   *-*-elf* | \
4640   *-*-hpux* | \
4641   *-*-netware* | \
4642   *-*-nto-qnx* | \
4643   *-*-rtems* | \
4644   *-*-solaris2* | \
4645   *-*-sysv45* | \
4646   *-*-vxworks* | \
4647   *-wrs-windiss)
4648     md_exec_prefix=/usr/ccs/bin
4649     ;;
4650 esac
4651
4652 extra_arflags_for_target=
4653 extra_nmflags_for_target=
4654 extra_ranlibflags_for_target=
4655 target_makefile_frag=/dev/null
4656 case "${target}" in
4657   spu-*-*)
4658     target_makefile_frag="config/mt-spu"
4659     ;;
4660   *-*-netware*)
4661     target_makefile_frag="config/mt-netware"
4662     ;;
4663   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
4664     target_makefile_frag="config/mt-gnu"
4665     ;;
4666   *-*-aix4.[3456789]* | *-*-aix[56789].*)
4667     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
4668     # commands to handle both 32-bit and 64-bit objects.  These flags are
4669     # harmless if we're using GNU nm or ar.
4670     extra_arflags_for_target=" -X32_64"
4671     extra_nmflags_for_target=" -B -X32_64"
4672     ;;
4673   *-*-darwin*)
4674     # ranlib from Darwin requires the -c flag to look at common symbols.
4675     extra_ranlibflags_for_target=" -c"
4676     ;;
4677   mips*-*-pe | sh*-*-pe | *arm-wince-pe)
4678     target_makefile_frag="config/mt-wince"
4679     ;;
4680 esac
4681
4682 alphaieee_frag=/dev/null
4683 case $target in
4684   alpha*-*-*)
4685     # This just makes sure to use the -mieee option to build target libs.
4686     # This should probably be set individually by each library.
4687     alphaieee_frag="config/mt-alphaieee"
4688     ;;
4689 esac
4690
4691 # If --enable-target-optspace always use -Os instead of -O2 to build
4692 # the target libraries, similarly if it is not specified, use -Os
4693 # on selected platforms.
4694 ospace_frag=/dev/null
4695 case "${enable_target_optspace}:${target}" in
4696   yes:*)
4697     ospace_frag="config/mt-ospace"
4698     ;;
4699   :d30v-*)
4700     ospace_frag="config/mt-d30v"
4701     ;;
4702   :m32r-* | :d10v-* | :fr30-*)
4703     ospace_frag="config/mt-ospace"
4704     ;;
4705   no:* | :*)
4706     ;;
4707   *)
4708     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
4709     ;;
4710 esac
4711
4712 # Default to using --with-stabs for certain targets.
4713 if test x${with_stabs} = x ; then
4714   case "${target}" in
4715   mips*-*-irix[56]*)
4716     ;;
4717   mips*-*-* | alpha*-*-osf*)
4718     with_stabs=yes;
4719     extra_host_args="${extra_host_args} --with-stabs"
4720     ;;
4721   esac
4722 fi
4723
4724 # hpux11 in 64bit mode has libraries in a weird place.  Arrange to find
4725 # them automatically.
4726 case "${host}" in
4727   hppa*64*-*-hpux11*)
4728     extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
4729     ;;
4730 esac
4731
4732 # Some systems (e.g., one of the i386-aix systems the gas testers are
4733 # using) don't handle "\$" correctly, so don't use it here.
4734 tooldir='${exec_prefix}'/${target_noncanonical}
4735 build_tooldir=${tooldir}
4736
4737 # Create a .gdbinit file which runs the one in srcdir
4738 # and tells GDB to look there for source files.
4739
4740 if test -r ${srcdir}/.gdbinit ; then
4741   case ${srcdir} in
4742     .) ;;
4743     *) cat > ./.gdbinit <<EOF
4744 # ${NO_EDIT}
4745 dir ${srcdir}
4746 dir .
4747 source ${srcdir}/.gdbinit
4748 EOF
4749     ;;
4750   esac
4751 fi
4752
4753 # Make sure that the compiler is able to generate an executable.  If it
4754 # can't, we are probably in trouble.  We don't care whether we can run the
4755 # executable--we might be using a cross compiler--we only care whether it
4756 # can be created.  At this point the main configure script has set CC.
4757 we_are_ok=no
4758 echo "int main () { return 0; }" > conftest.c
4759 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
4760 if test $? = 0 ; then
4761   if test -s conftest || test -s conftest.exe ; then
4762     we_are_ok=yes
4763   fi
4764 fi
4765 case $we_are_ok in
4766   no)
4767     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
4768     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
4769     rm -f conftest*
4770     exit 1
4771     ;;
4772 esac
4773 rm -f conftest*
4774
4775 # The Solaris /usr/ucb/cc compiler does not appear to work.
4776 case "${host}" in
4777   sparc-sun-solaris2*)
4778       CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
4779       if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
4780           could_use=
4781           test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
4782           if test -d /opt/cygnus/bin ; then
4783               if test "$could_use" = "" ; then
4784                   could_use="/opt/cygnus/bin"
4785               else
4786                   could_use="$could_use or /opt/cygnus/bin"
4787               fi
4788           fi
4789         if test "$could_use" = "" ; then
4790             echo "Warning: compilation may fail because you're using"
4791             echo "/usr/ucb/cc.  You should change your PATH or CC "
4792             echo "variable and rerun configure."
4793         else
4794             echo "Warning: compilation may fail because you're using"
4795             echo "/usr/ucb/cc, when you should use the C compiler from"
4796             echo "$could_use.  You should change your"
4797             echo "PATH or CC variable and rerun configure."
4798         fi
4799       fi
4800   ;;
4801 esac
4802
4803 case "${host}" in
4804   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
4805   *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
4806   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
4807 esac
4808
4809 # Record target_configdirs and the configure arguments for target and
4810 # build configuration in Makefile.
4811 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
4812 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
4813
4814 # Determine whether gdb needs tk/tcl or not.
4815 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
4816 # and in that case we want gdb to be built without tk.  Ugh!
4817 # In fact I believe gdb is the *only* package directly dependent on tk,
4818 # so we should be able to put the 'maybe's in unconditionally and
4819 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
4820 # 100% sure that that's safe though.
4821
4822 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
4823 case "$enable_gdbtk" in
4824   no)
4825     GDB_TK="" ;;
4826   yes)
4827     GDB_TK="${gdb_tk}" ;;
4828   *)
4829     # Only add the dependency on gdbtk when GDBtk is part of the gdb
4830     # distro.  Eventually someone will fix this and move Insight, nee
4831     # gdbtk to a separate directory.
4832     if test -d ${srcdir}/gdb/gdbtk ; then
4833       GDB_TK="${gdb_tk}"
4834     else
4835       GDB_TK=""
4836     fi
4837     ;;
4838 esac
4839 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
4840 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
4841
4842 # Strip out unwanted targets.
4843
4844 # While at that, we remove Makefiles if we were started for recursive
4845 # configuration, so that the top-level Makefile reconfigures them,
4846 # like we used to do when configure itself was recursive.
4847
4848 # Loop over modules.  $extrasub must be used with care, limiting as
4849 # much as possible the usage of range addresses.  That's because autoconf
4850 # splits the sed script to overcome limits in the number of commands,
4851 # and relying on carefully-timed sed passes may turn out to be very hard
4852 # to maintain later.  In this particular case, you just have to be careful
4853 # not to nest @if/@endif pairs, because configure will not warn you at all.
4854
4855 # Check whether --enable-bootstrap or --disable-bootstrap was given.
4856 if test "${enable_bootstrap+set}" = set; then
4857   enableval="$enable_bootstrap"
4858
4859 else
4860   enable_bootstrap=default
4861 fi;
4862
4863 # Issue errors and warnings for invalid/strange bootstrap combinations.
4864 case "$configdirs" in
4865   *gcc*) have_compiler=yes ;;
4866   *) have_compiler=no ;;
4867 esac
4868
4869 case "$have_compiler:$host:$target:$enable_bootstrap" in
4870   *:*:*:no) ;;
4871
4872   # Default behavior.  Enable bootstrap if we have a compiler
4873   # and we are in a native configuration.
4874   yes:$build:$build:default)
4875     enable_bootstrap=yes ;;
4876
4877   *:*:*:default)
4878     enable_bootstrap=no ;;
4879
4880   # We have a compiler and we are in a native configuration, bootstrap is ok
4881   yes:$build:$build:yes)
4882     ;;
4883
4884   # Other configurations, but we have a compiler.  Assume the user knows
4885   # what he's doing.
4886   yes:*:*:yes)
4887     { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
4888 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
4889     ;;
4890
4891   # No compiler: if they passed --enable-bootstrap explicitly, fail
4892   no:*:*:yes)
4893     { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
4894 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
4895    { (exit 1); exit 1; }; } ;;
4896
4897   # Fail if wrong command line
4898   *)
4899     { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
4900 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
4901    { (exit 1); exit 1; }; }
4902     ;;
4903 esac
4904
4905 # Adjust the toplevel makefile according to whether bootstrap was selected.
4906 case "$enable_bootstrap" in
4907   yes)
4908     bootstrap_suffix=bootstrap ;;
4909   no)
4910     bootstrap_suffix=no-bootstrap ;;
4911 esac
4912
4913 for module in ${build_configdirs} ; do
4914   if test -z "${no_recursion}" \
4915      && test -f ${build_subdir}/${module}/Makefile; then
4916     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
4917     rm -f ${build_subdir}/${module}/Makefile
4918   fi
4919   extrasub="$extrasub
4920 /^@if build-$module\$/d
4921 /^@endif build-$module\$/d
4922 /^@if build-$module-$bootstrap_suffix\$/d
4923 /^@endif build-$module-$bootstrap_suffix\$/d"
4924 done
4925 for module in ${configdirs} ; do
4926   if test -z "${no_recursion}"; then
4927     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
4928       if test -f ${file}; then
4929         echo 1>&2 "*** removing ${file} to force reconfigure"
4930         rm -f ${file}
4931       fi
4932     done
4933   fi
4934   extrasub="$extrasub
4935 /^@if $module\$/d
4936 /^@endif $module\$/d
4937 /^@if $module-$bootstrap_suffix\$/d
4938 /^@endif $module-$bootstrap_suffix\$/d"
4939 done
4940 for module in ${target_configdirs} ; do
4941   if test -z "${no_recursion}" \
4942      && test -f ${target_subdir}/${module}/Makefile; then
4943     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
4944     rm -f ${target_subdir}/${module}/Makefile
4945   fi
4946   extrasub="$extrasub
4947 /^@if target-$module\$/d
4948 /^@endif target-$module\$/d
4949 /^@if target-$module-$bootstrap_suffix\$/d
4950 /^@endif target-$module-$bootstrap_suffix\$/d"
4951 done
4952
4953 extrasub="$extrasub
4954 /^@if /,/^@endif /d"
4955
4956 # Create the serialization dependencies.  This uses a temporary file.
4957
4958 # Check whether --enable-serial-configure or --disable-serial-configure was given.
4959 if test "${enable_serial_configure+set}" = set; then
4960   enableval="$enable_serial_configure"
4961
4962 fi;
4963
4964 case ${enable_serial_configure} in
4965   yes)
4966     enable_serial_build_configure=yes
4967     enable_serial_host_configure=yes
4968     enable_serial_target_configure=yes
4969     ;;
4970 esac
4971
4972 # These force 'configure's to be done one at a time, to avoid problems
4973 # with contention over a shared config.cache.
4974 rm -f serdep.tmp
4975 echo '# serdep.tmp' > serdep.tmp
4976 olditem=
4977 test "x${enable_serial_build_configure}" = xyes &&
4978 for item in ${build_configdirs} ; do
4979   case ${olditem} in
4980     "") ;;
4981     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
4982   esac
4983   olditem=${item}
4984 done
4985 olditem=
4986 test "x${enable_serial_host_configure}" = xyes &&
4987 for item in ${configdirs} ; do
4988   case ${olditem} in
4989     "") ;;
4990     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
4991   esac
4992   olditem=${item}
4993 done
4994 olditem=
4995 test "x${enable_serial_target_configure}" = xyes &&
4996 for item in ${target_configdirs} ; do
4997   case ${olditem} in
4998     "") ;;
4999     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
5000   esac
5001   olditem=${item}
5002 done
5003 serialization_dependencies=serdep.tmp
5004
5005
5006 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
5007 # target, nonopt, and variable assignments.  These are the ones we
5008 # might not want to pass down to subconfigures.  Also strip
5009 # program-prefix, program-suffix, and program-transform-name, so that
5010 # we can pass down a consistent program-transform-name.
5011 baseargs=
5012 keep_next=no
5013 skip_next=no
5014 eval "set -- $ac_configure_args"
5015 for ac_arg; do
5016   if test X"$skip_next" = X"yes"; then
5017     skip_next=no
5018     continue
5019   fi
5020   if test X"$keep_next" = X"yes"; then
5021     case $ac_arg in
5022       *\'*)
5023         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5024     esac
5025     baseargs="$baseargs '$ac_arg'"
5026     keep_next=no
5027     continue
5028   fi
5029
5030   # Handle separated arguments.  Based on the logic generated by
5031   # autoconf 2.59.
5032   case $ac_arg in
5033     *=* | --config-cache | -C | -disable-* | --disable-* \
5034       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5035       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5036       | -with-* | --with-* | -without-* | --without-* | --x)
5037       separate_arg=no
5038       ;;
5039     -*)
5040       separate_arg=yes
5041       ;;
5042     *)
5043       separate_arg=no
5044       ;;
5045   esac
5046
5047   case "$ac_arg" in
5048     --no*)
5049       continue
5050       ;;
5051     --c* | \
5052     --sr* | \
5053     --ho* | \
5054     --bu* | \
5055     --t* | \
5056     --program-* | \
5057     -cache_file* | \
5058     -srcdir* | \
5059     -host* | \
5060     -build* | \
5061     -target* | \
5062     -program-prefix* | \
5063     -program-suffix* | \
5064     -program-transform-name* )
5065       skip_next=$separate_arg
5066       continue
5067       ;;
5068     -*)
5069       # An option.  Add it.
5070       case $ac_arg in
5071         *\'*)
5072           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5073       esac
5074       baseargs="$baseargs '$ac_arg'"
5075       keep_next=$separate_arg
5076       ;;
5077     *)
5078       # Either a variable assignment, or a nonopt (triplet).  Don't
5079       # pass it down; let the Makefile handle this.
5080       continue
5081       ;;
5082   esac
5083 done
5084 # Remove the initial space we just introduced and, as these will be
5085 # expanded by make, quote '$'.
5086 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
5087
5088 # Add in --program-transform-name, after --program-prefix and
5089 # --program-suffix have been applied to it.  Autoconf has already
5090 # doubled dollar signs and backslashes in program_transform_name; we want
5091 # the backslashes un-doubled, and then the entire thing wrapped in single
5092 # quotes, because this will be expanded first by make and then by the shell.
5093 # Also, because we want to override the logic in subdir configure scripts to
5094 # choose program_transform_name, replace any s,x,x, with s,y,y,.
5095 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5096 ${program_transform_name}
5097 EOF_SED
5098 gcc_transform_name=`cat conftestsed.out`
5099 rm -f conftestsed.out
5100 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5101
5102 # For the build-side libraries, we just need to pretend we're native,
5103 # and not use the same cache file.  Multilibs are neither needed nor
5104 # desired.
5105 build_configargs="--cache-file=../config.cache ${baseargs}"
5106
5107 # For host modules, accept cache file option, or specification as blank.
5108 case "${cache_file}" in
5109 "") # empty
5110   cache_file_option="" ;;
5111 /* | [A-Za-z]:[\\/]* ) # absolute path
5112   cache_file_option="--cache-file=${cache_file}" ;;
5113 *) # relative path
5114   cache_file_option="--cache-file=../${cache_file}" ;;
5115 esac
5116
5117 # Host dirs don't like to share a cache file either, horribly enough.
5118 # This seems to be due to autoconf 2.5x stupidity.
5119 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
5120
5121 target_configargs=${baseargs}
5122
5123 # Passing a --with-cross-host argument lets the target libraries know
5124 # whether they are being built with a cross-compiler or being built
5125 # native.  However, it would be better to use other mechanisms to make the
5126 # sorts of decisions they want to make on this basis.  Please consider
5127 # this option to be deprecated.  FIXME.
5128 if test x${is_cross_compiler} = xyes ; then
5129   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
5130 fi
5131
5132 # Default to --enable-multilib.
5133 if test x${enable_multilib} = x ; then
5134   target_configargs="--enable-multilib ${target_configargs}"
5135 fi
5136
5137 # Pass --with-newlib if appropriate.  Note that target_configdirs has
5138 # changed from the earlier setting of with_newlib.
5139 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5140   target_configargs="--with-newlib ${target_configargs}"
5141 fi
5142
5143 # Different target subdirs use different values of certain variables
5144 # (notably CXX).  Worse, multilibs use *lots* of different values.
5145 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5146 # it doesn't automatically accept command-line overrides of them.
5147 # This means it's not safe for target subdirs to share a cache file,
5148 # which is disgusting, but there you have it.  Hopefully this can be
5149 # fixed in future.  It's still worthwhile to use a cache file for each
5150 # directory.  I think.
5151
5152 # Pass the appropriate --build, --host, --target and --cache-file arguments.
5153 # We need to pass --target, as newer autoconf's requires consistency
5154 # for target_alias and gcc doesn't manage it consistently.
5155 target_configargs="--cache-file=./config.cache ${target_configargs}"
5156
5157 FLAGS_FOR_TARGET=
5158 case " $target_configdirs " in
5159  *" newlib "*)
5160   case " $target_configargs " in
5161   *" --with-newlib "*)
5162    case "$target" in
5163    *-cygwin*)
5164      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' ;;
5165    esac
5166
5167    # If we're not building GCC, don't discard standard headers.
5168    if test -d ${srcdir}/gcc; then
5169      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5170
5171      if test "${build}" != "${host}"; then
5172        # On Canadian crosses, CC_FOR_TARGET will have already been set
5173        # by `configure', so we won't have an opportunity to add -Bgcc/
5174        # to it.  This is right: we don't want to search that directory
5175        # for binaries, but we want the header files in there, so add
5176        # them explicitly.
5177        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
5178
5179        # Someone might think of using the pre-installed headers on
5180        # Canadian crosses, in case the installed compiler is not fully
5181        # compatible with the compiler being built.  In this case, it
5182        # would be better to flag an error than risking having
5183        # incompatible object files being constructed.  We can't
5184        # guarantee that an error will be flagged, but let's hope the
5185        # compiler will do it, when presented with incompatible header
5186        # files.
5187      fi
5188    fi
5189
5190    case "${target}-${is_cross_compiler}" in
5191    i[3456789]86-*-linux*-no)
5192       # Here host == target, so we don't need to build gcc,
5193       # so we don't want to discard standard headers.
5194       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5195       ;;
5196    *)
5197       # If we're building newlib, use its generic headers last, but search
5198       # for any libc-related directories first (so make it the last -B
5199       # switch).
5200       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5201       ;;
5202    esac
5203    ;;
5204   esac
5205   ;;
5206 esac
5207 case "$target" in
5208 *-mingw*)
5209   # Can't be handled as Cygwin above since Mingw does not use newlib.
5210   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' ;;
5211 esac
5212
5213 # Allow the user to override the flags for
5214 # our build compiler if desired.
5215 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5216
5217 # On Canadian crosses, we'll be searching the right directories for
5218 # the previously-installed cross compiler, so don't bother to add
5219 # flags for directories within the install tree of the compiler
5220 # being built; programs in there won't even run.
5221 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5222   # Search for pre-installed headers if nothing else fits.
5223   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
5224 fi
5225
5226 if test "x${use_gnu_ld}" = x &&
5227    echo " ${configdirs} " | grep " ld " > /dev/null ; then
5228   # Arrange for us to find uninstalled linker scripts.
5229   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
5230 fi
5231
5232 # Search for other target-specific linker scripts and such.
5233 case "${target}" in
5234   m32c-*-* )
5235     if test -d ${srcdir}/libgloss/m32c; then
5236       # This is for crt0.o
5237       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5238       # This is for r8c.ld
5239       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5240       # This is for libnosys.a
5241       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5242     fi
5243     ;;
5244 esac
5245
5246 # Makefile fragments.
5247 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5248 do
5249   eval fragval=\$$frag
5250   if test $fragval != /dev/null; then
5251     eval $frag=${srcdir}/$fragval
5252   fi
5253 done
5254
5255
5256
5257
5258
5259 # Miscellanea: directories, flags, etc.
5260
5261
5262
5263
5264
5265
5266
5267 # Build module lists & subconfigure args.
5268
5269
5270
5271 # Host module lists & subconfigure args.
5272
5273
5274
5275 # Target module lists & subconfigure args.
5276
5277
5278
5279 # Build tools.
5280
5281
5282
5283 # Generate default definitions for YACC, M4, LEX and other programs that run
5284 # on the build machine.  These are used if the Makefile can't locate these
5285 # programs in objdir.
5286 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5287
5288 for ac_prog in 'bison -y' byacc yacc
5289 do
5290   # Extract the first word of "$ac_prog", so it can be a program name with args.
5291 set dummy $ac_prog; ac_word=$2
5292 echo "$as_me:$LINENO: checking for $ac_word" >&5
5293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5294 if test "${ac_cv_prog_YACC+set}" = set; then
5295   echo $ECHO_N "(cached) $ECHO_C" >&6
5296 else
5297   if test -n "$YACC"; then
5298   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5299 else
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303   IFS=$as_save_IFS
5304   test -z "$as_dir" && as_dir=.
5305   for ac_exec_ext in '' $ac_executable_extensions; do
5306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307     ac_cv_prog_YACC="$ac_prog"
5308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5309     break 2
5310   fi
5311 done
5312 done
5313
5314 fi
5315 fi
5316 YACC=$ac_cv_prog_YACC
5317 if test -n "$YACC"; then
5318   echo "$as_me:$LINENO: result: $YACC" >&5
5319 echo "${ECHO_T}$YACC" >&6
5320 else
5321   echo "$as_me:$LINENO: result: no" >&5
5322 echo "${ECHO_T}no" >&6
5323 fi
5324
5325   test -n "$YACC" && break
5326 done
5327 test -n "$YACC" || YACC="$MISSING bison -y"
5328
5329 case " $build_configdirs " in
5330   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5331   *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5332 esac
5333
5334 for ac_prog in bison
5335 do
5336   # Extract the first word of "$ac_prog", so it can be a program name with args.
5337 set dummy $ac_prog; ac_word=$2
5338 echo "$as_me:$LINENO: checking for $ac_word" >&5
5339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5340 if test "${ac_cv_prog_BISON+set}" = set; then
5341   echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343   if test -n "$BISON"; then
5344   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5345 else
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH
5348 do
5349   IFS=$as_save_IFS
5350   test -z "$as_dir" && as_dir=.
5351   for ac_exec_ext in '' $ac_executable_extensions; do
5352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353     ac_cv_prog_BISON="$ac_prog"
5354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355     break 2
5356   fi
5357 done
5358 done
5359
5360 fi
5361 fi
5362 BISON=$ac_cv_prog_BISON
5363 if test -n "$BISON"; then
5364   echo "$as_me:$LINENO: result: $BISON" >&5
5365 echo "${ECHO_T}$BISON" >&6
5366 else
5367   echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6
5369 fi
5370
5371   test -n "$BISON" && break
5372 done
5373 test -n "$BISON" || BISON="$MISSING bison"
5374
5375 case " $build_configdirs " in
5376   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5377 esac
5378
5379 for ac_prog in gm4 gnum4 m4
5380 do
5381   # Extract the first word of "$ac_prog", so it can be a program name with args.
5382 set dummy $ac_prog; ac_word=$2
5383 echo "$as_me:$LINENO: checking for $ac_word" >&5
5384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5385 if test "${ac_cv_prog_M4+set}" = set; then
5386   echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388   if test -n "$M4"; then
5389   ac_cv_prog_M4="$M4" # Let the user override the test.
5390 else
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5393 do
5394   IFS=$as_save_IFS
5395   test -z "$as_dir" && as_dir=.
5396   for ac_exec_ext in '' $ac_executable_extensions; do
5397   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398     ac_cv_prog_M4="$ac_prog"
5399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400     break 2
5401   fi
5402 done
5403 done
5404
5405 fi
5406 fi
5407 M4=$ac_cv_prog_M4
5408 if test -n "$M4"; then
5409   echo "$as_me:$LINENO: result: $M4" >&5
5410 echo "${ECHO_T}$M4" >&6
5411 else
5412   echo "$as_me:$LINENO: result: no" >&5
5413 echo "${ECHO_T}no" >&6
5414 fi
5415
5416   test -n "$M4" && break
5417 done
5418 test -n "$M4" || M4="$MISSING m4"
5419
5420 case " $build_configdirs " in
5421   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5422 esac
5423
5424 for ac_prog in flex lex
5425 do
5426   # Extract the first word of "$ac_prog", so it can be a program name with args.
5427 set dummy $ac_prog; ac_word=$2
5428 echo "$as_me:$LINENO: checking for $ac_word" >&5
5429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5430 if test "${ac_cv_prog_LEX+set}" = set; then
5431   echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433   if test -n "$LEX"; then
5434   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5435 else
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5438 do
5439   IFS=$as_save_IFS
5440   test -z "$as_dir" && as_dir=.
5441   for ac_exec_ext in '' $ac_executable_extensions; do
5442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443     ac_cv_prog_LEX="$ac_prog"
5444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445     break 2
5446   fi
5447 done
5448 done
5449
5450 fi
5451 fi
5452 LEX=$ac_cv_prog_LEX
5453 if test -n "$LEX"; then
5454   echo "$as_me:$LINENO: result: $LEX" >&5
5455 echo "${ECHO_T}$LEX" >&6
5456 else
5457   echo "$as_me:$LINENO: result: no" >&5
5458 echo "${ECHO_T}no" >&6
5459 fi
5460
5461   test -n "$LEX" && break
5462 done
5463 test -n "$LEX" || LEX="$MISSING flex"
5464
5465 case " $build_configdirs " in
5466   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5467   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
5468 esac
5469
5470 for ac_prog in flex
5471 do
5472   # Extract the first word of "$ac_prog", so it can be a program name with args.
5473 set dummy $ac_prog; ac_word=$2
5474 echo "$as_me:$LINENO: checking for $ac_word" >&5
5475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5476 if test "${ac_cv_prog_FLEX+set}" = set; then
5477   echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479   if test -n "$FLEX"; then
5480   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5481 else
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5484 do
5485   IFS=$as_save_IFS
5486   test -z "$as_dir" && as_dir=.
5487   for ac_exec_ext in '' $ac_executable_extensions; do
5488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489     ac_cv_prog_FLEX="$ac_prog"
5490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491     break 2
5492   fi
5493 done
5494 done
5495
5496 fi
5497 fi
5498 FLEX=$ac_cv_prog_FLEX
5499 if test -n "$FLEX"; then
5500   echo "$as_me:$LINENO: result: $FLEX" >&5
5501 echo "${ECHO_T}$FLEX" >&6
5502 else
5503   echo "$as_me:$LINENO: result: no" >&5
5504 echo "${ECHO_T}no" >&6
5505 fi
5506
5507   test -n "$FLEX" && break
5508 done
5509 test -n "$FLEX" || FLEX="$MISSING flex"
5510
5511 case " $build_configdirs " in
5512   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5513 esac
5514
5515 for ac_prog in makeinfo
5516 do
5517   # Extract the first word of "$ac_prog", so it can be a program name with args.
5518 set dummy $ac_prog; ac_word=$2
5519 echo "$as_me:$LINENO: checking for $ac_word" >&5
5520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5521 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5522   echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524   if test -n "$MAKEINFO"; then
5525   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530   IFS=$as_save_IFS
5531   test -z "$as_dir" && as_dir=.
5532   for ac_exec_ext in '' $ac_executable_extensions; do
5533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534     ac_cv_prog_MAKEINFO="$ac_prog"
5535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536     break 2
5537   fi
5538 done
5539 done
5540
5541 fi
5542 fi
5543 MAKEINFO=$ac_cv_prog_MAKEINFO
5544 if test -n "$MAKEINFO"; then
5545   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5546 echo "${ECHO_T}$MAKEINFO" >&6
5547 else
5548   echo "$as_me:$LINENO: result: no" >&5
5549 echo "${ECHO_T}no" >&6
5550 fi
5551
5552   test -n "$MAKEINFO" && break
5553 done
5554 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
5555
5556 case " $build_configdirs " in
5557   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
5558   *)
5559
5560     # For an installed makeinfo, we require it to be from texinfo 4.4 or
5561     # higher, else we use the "missing" dummy.
5562     if ${MAKEINFO} --version \
5563        | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
5564       :
5565     else
5566       MAKEINFO="$MISSING makeinfo"
5567     fi
5568     ;;
5569
5570 esac
5571
5572 # FIXME: expect and dejagnu may become build tools?
5573
5574 for ac_prog in expect
5575 do
5576   # Extract the first word of "$ac_prog", so it can be a program name with args.
5577 set dummy $ac_prog; ac_word=$2
5578 echo "$as_me:$LINENO: checking for $ac_word" >&5
5579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5580 if test "${ac_cv_prog_EXPECT+set}" = set; then
5581   echo $ECHO_N "(cached) $ECHO_C" >&6
5582 else
5583   if test -n "$EXPECT"; then
5584   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
5585 else
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589   IFS=$as_save_IFS
5590   test -z "$as_dir" && as_dir=.
5591   for ac_exec_ext in '' $ac_executable_extensions; do
5592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593     ac_cv_prog_EXPECT="$ac_prog"
5594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595     break 2
5596   fi
5597 done
5598 done
5599
5600 fi
5601 fi
5602 EXPECT=$ac_cv_prog_EXPECT
5603 if test -n "$EXPECT"; then
5604   echo "$as_me:$LINENO: result: $EXPECT" >&5
5605 echo "${ECHO_T}$EXPECT" >&6
5606 else
5607   echo "$as_me:$LINENO: result: no" >&5
5608 echo "${ECHO_T}no" >&6
5609 fi
5610
5611   test -n "$EXPECT" && break
5612 done
5613 test -n "$EXPECT" || EXPECT="expect"
5614
5615 case " $configdirs " in
5616   *" expect "*)
5617     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
5618     ;;
5619 esac
5620
5621 for ac_prog in runtest
5622 do
5623   # Extract the first word of "$ac_prog", so it can be a program name with args.
5624 set dummy $ac_prog; ac_word=$2
5625 echo "$as_me:$LINENO: checking for $ac_word" >&5
5626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5627 if test "${ac_cv_prog_RUNTEST+set}" = set; then
5628   echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630   if test -n "$RUNTEST"; then
5631   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5635 do
5636   IFS=$as_save_IFS
5637   test -z "$as_dir" && as_dir=.
5638   for ac_exec_ext in '' $ac_executable_extensions; do
5639   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640     ac_cv_prog_RUNTEST="$ac_prog"
5641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5642     break 2
5643   fi
5644 done
5645 done
5646
5647 fi
5648 fi
5649 RUNTEST=$ac_cv_prog_RUNTEST
5650 if test -n "$RUNTEST"; then
5651   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5652 echo "${ECHO_T}$RUNTEST" >&6
5653 else
5654   echo "$as_me:$LINENO: result: no" >&5
5655 echo "${ECHO_T}no" >&6
5656 fi
5657
5658   test -n "$RUNTEST" && break
5659 done
5660 test -n "$RUNTEST" || RUNTEST="runtest"
5661
5662 case " $configdirs " in
5663   *" dejagnu "*)
5664     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
5665     ;;
5666 esac
5667
5668
5669 # Host tools.
5670 ncn_tool_prefix=
5671 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
5672 ncn_target_tool_prefix=
5673 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
5674
5675  for ncn_progname in ar; do
5676   if test -n "$ncn_tool_prefix"; then
5677     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5678 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5679 echo "$as_me:$LINENO: checking for $ac_word" >&5
5680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5681 if test "${ac_cv_prog_AR+set}" = set; then
5682   echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684   if test -n "$AR"; then
5685   ac_cv_prog_AR="$AR" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5689 do
5690   IFS=$as_save_IFS
5691   test -z "$as_dir" && as_dir=.
5692   for ac_exec_ext in '' $ac_executable_extensions; do
5693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5696     break 2
5697   fi
5698 done
5699 done
5700
5701 fi
5702 fi
5703 AR=$ac_cv_prog_AR
5704 if test -n "$AR"; then
5705   echo "$as_me:$LINENO: result: $AR" >&5
5706 echo "${ECHO_T}$AR" >&6
5707 else
5708   echo "$as_me:$LINENO: result: no" >&5
5709 echo "${ECHO_T}no" >&6
5710 fi
5711
5712   fi
5713   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
5714     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5715 set dummy ${ncn_progname}; ac_word=$2
5716 echo "$as_me:$LINENO: checking for $ac_word" >&5
5717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5718 if test "${ac_cv_prog_AR+set}" = set; then
5719   echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721   if test -n "$AR"; then
5722   ac_cv_prog_AR="$AR" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5726 do
5727   IFS=$as_save_IFS
5728   test -z "$as_dir" && as_dir=.
5729   for ac_exec_ext in '' $ac_executable_extensions; do
5730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731     ac_cv_prog_AR="${ncn_progname}"
5732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5733     break 2
5734   fi
5735 done
5736 done
5737
5738 fi
5739 fi
5740 AR=$ac_cv_prog_AR
5741 if test -n "$AR"; then
5742   echo "$as_me:$LINENO: result: $AR" >&5
5743 echo "${ECHO_T}$AR" >&6
5744 else
5745   echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6
5747 fi
5748
5749   fi
5750   test -n "$ac_cv_prog_AR" && break
5751 done
5752
5753 if test -z "$ac_cv_prog_AR" ; then
5754   set dummy ar
5755   if test $build = $host ; then
5756     AR="$2"
5757   else
5758     AR="${ncn_tool_prefix}$2"
5759   fi
5760 fi
5761
5762  for ncn_progname in as; do
5763   if test -n "$ncn_tool_prefix"; then
5764     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5765 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5766 echo "$as_me:$LINENO: checking for $ac_word" >&5
5767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5768 if test "${ac_cv_prog_AS+set}" = set; then
5769   echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771   if test -n "$AS"; then
5772   ac_cv_prog_AS="$AS" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777   IFS=$as_save_IFS
5778   test -z "$as_dir" && as_dir=.
5779   for ac_exec_ext in '' $ac_executable_extensions; do
5780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783     break 2
5784   fi
5785 done
5786 done
5787
5788 fi
5789 fi
5790 AS=$ac_cv_prog_AS
5791 if test -n "$AS"; then
5792   echo "$as_me:$LINENO: result: $AS" >&5
5793 echo "${ECHO_T}$AS" >&6
5794 else
5795   echo "$as_me:$LINENO: result: no" >&5
5796 echo "${ECHO_T}no" >&6
5797 fi
5798
5799   fi
5800   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
5801     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5802 set dummy ${ncn_progname}; ac_word=$2
5803 echo "$as_me:$LINENO: checking for $ac_word" >&5
5804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5805 if test "${ac_cv_prog_AS+set}" = set; then
5806   echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808   if test -n "$AS"; then
5809   ac_cv_prog_AS="$AS" # Let the user override the test.
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814   IFS=$as_save_IFS
5815   test -z "$as_dir" && as_dir=.
5816   for ac_exec_ext in '' $ac_executable_extensions; do
5817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818     ac_cv_prog_AS="${ncn_progname}"
5819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820     break 2
5821   fi
5822 done
5823 done
5824
5825 fi
5826 fi
5827 AS=$ac_cv_prog_AS
5828 if test -n "$AS"; then
5829   echo "$as_me:$LINENO: result: $AS" >&5
5830 echo "${ECHO_T}$AS" >&6
5831 else
5832   echo "$as_me:$LINENO: result: no" >&5
5833 echo "${ECHO_T}no" >&6
5834 fi
5835
5836   fi
5837   test -n "$ac_cv_prog_AS" && break
5838 done
5839
5840 if test -z "$ac_cv_prog_AS" ; then
5841   set dummy as
5842   if test $build = $host ; then
5843     AS="$2"
5844   else
5845     AS="${ncn_tool_prefix}$2"
5846   fi
5847 fi
5848
5849  for ncn_progname in dlltool; do
5850   if test -n "$ncn_tool_prefix"; then
5851     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5852 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5853 echo "$as_me:$LINENO: checking for $ac_word" >&5
5854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5855 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5856   echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858   if test -n "$DLLTOOL"; then
5859   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5863 do
5864   IFS=$as_save_IFS
5865   test -z "$as_dir" && as_dir=.
5866   for ac_exec_ext in '' $ac_executable_extensions; do
5867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5870     break 2
5871   fi
5872 done
5873 done
5874
5875 fi
5876 fi
5877 DLLTOOL=$ac_cv_prog_DLLTOOL
5878 if test -n "$DLLTOOL"; then
5879   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5880 echo "${ECHO_T}$DLLTOOL" >&6
5881 else
5882   echo "$as_me:$LINENO: result: no" >&5
5883 echo "${ECHO_T}no" >&6
5884 fi
5885
5886   fi
5887   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
5888     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5889 set dummy ${ncn_progname}; ac_word=$2
5890 echo "$as_me:$LINENO: checking for $ac_word" >&5
5891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5892 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5893   echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895   if test -n "$DLLTOOL"; then
5896   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5897 else
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH
5900 do
5901   IFS=$as_save_IFS
5902   test -z "$as_dir" && as_dir=.
5903   for ac_exec_ext in '' $ac_executable_extensions; do
5904   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5905     ac_cv_prog_DLLTOOL="${ncn_progname}"
5906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907     break 2
5908   fi
5909 done
5910 done
5911
5912 fi
5913 fi
5914 DLLTOOL=$ac_cv_prog_DLLTOOL
5915 if test -n "$DLLTOOL"; then
5916   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5917 echo "${ECHO_T}$DLLTOOL" >&6
5918 else
5919   echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6
5921 fi
5922
5923   fi
5924   test -n "$ac_cv_prog_DLLTOOL" && break
5925 done
5926
5927 if test -z "$ac_cv_prog_DLLTOOL" ; then
5928   set dummy dlltool
5929   if test $build = $host ; then
5930     DLLTOOL="$2"
5931   else
5932     DLLTOOL="${ncn_tool_prefix}$2"
5933   fi
5934 fi
5935
5936  for ncn_progname in ld; do
5937   if test -n "$ncn_tool_prefix"; then
5938     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5939 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5940 echo "$as_me:$LINENO: checking for $ac_word" >&5
5941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5942 if test "${ac_cv_prog_LD+set}" = set; then
5943   echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945   if test -n "$LD"; then
5946   ac_cv_prog_LD="$LD" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5950 do
5951   IFS=$as_save_IFS
5952   test -z "$as_dir" && as_dir=.
5953   for ac_exec_ext in '' $ac_executable_extensions; do
5954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957     break 2
5958   fi
5959 done
5960 done
5961
5962 fi
5963 fi
5964 LD=$ac_cv_prog_LD
5965 if test -n "$LD"; then
5966   echo "$as_me:$LINENO: result: $LD" >&5
5967 echo "${ECHO_T}$LD" >&6
5968 else
5969   echo "$as_me:$LINENO: result: no" >&5
5970 echo "${ECHO_T}no" >&6
5971 fi
5972
5973   fi
5974   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
5975     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5976 set dummy ${ncn_progname}; ac_word=$2
5977 echo "$as_me:$LINENO: checking for $ac_word" >&5
5978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5979 if test "${ac_cv_prog_LD+set}" = set; then
5980   echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982   if test -n "$LD"; then
5983   ac_cv_prog_LD="$LD" # Let the user override the test.
5984 else
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in $PATH
5987 do
5988   IFS=$as_save_IFS
5989   test -z "$as_dir" && as_dir=.
5990   for ac_exec_ext in '' $ac_executable_extensions; do
5991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5992     ac_cv_prog_LD="${ncn_progname}"
5993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994     break 2
5995   fi
5996 done
5997 done
5998
5999 fi
6000 fi
6001 LD=$ac_cv_prog_LD
6002 if test -n "$LD"; then
6003   echo "$as_me:$LINENO: result: $LD" >&5
6004 echo "${ECHO_T}$LD" >&6
6005 else
6006   echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6
6008 fi
6009
6010   fi
6011   test -n "$ac_cv_prog_LD" && break
6012 done
6013
6014 if test -z "$ac_cv_prog_LD" ; then
6015   set dummy ld
6016   if test $build = $host ; then
6017     LD="$2"
6018   else
6019     LD="${ncn_tool_prefix}$2"
6020   fi
6021 fi
6022
6023  for ncn_progname in lipo; do
6024   if test -n "$ncn_tool_prefix"; then
6025     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6026 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6027 echo "$as_me:$LINENO: checking for $ac_word" >&5
6028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6029 if test "${ac_cv_prog_LIPO+set}" = set; then
6030   echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032   if test -n "$LIPO"; then
6033   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038   IFS=$as_save_IFS
6039   test -z "$as_dir" && as_dir=.
6040   for ac_exec_ext in '' $ac_executable_extensions; do
6041   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6042     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6044     break 2
6045   fi
6046 done
6047 done
6048
6049 fi
6050 fi
6051 LIPO=$ac_cv_prog_LIPO
6052 if test -n "$LIPO"; then
6053   echo "$as_me:$LINENO: result: $LIPO" >&5
6054 echo "${ECHO_T}$LIPO" >&6
6055 else
6056   echo "$as_me:$LINENO: result: no" >&5
6057 echo "${ECHO_T}no" >&6
6058 fi
6059
6060   fi
6061   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6062     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6063 set dummy ${ncn_progname}; ac_word=$2
6064 echo "$as_me:$LINENO: checking for $ac_word" >&5
6065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6066 if test "${ac_cv_prog_LIPO+set}" = set; then
6067   echo $ECHO_N "(cached) $ECHO_C" >&6
6068 else
6069   if test -n "$LIPO"; then
6070   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6071 else
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6074 do
6075   IFS=$as_save_IFS
6076   test -z "$as_dir" && as_dir=.
6077   for ac_exec_ext in '' $ac_executable_extensions; do
6078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079     ac_cv_prog_LIPO="${ncn_progname}"
6080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081     break 2
6082   fi
6083 done
6084 done
6085
6086 fi
6087 fi
6088 LIPO=$ac_cv_prog_LIPO
6089 if test -n "$LIPO"; then
6090   echo "$as_me:$LINENO: result: $LIPO" >&5
6091 echo "${ECHO_T}$LIPO" >&6
6092 else
6093   echo "$as_me:$LINENO: result: no" >&5
6094 echo "${ECHO_T}no" >&6
6095 fi
6096
6097   fi
6098   test -n "$ac_cv_prog_LIPO" && break
6099 done
6100
6101 if test -z "$ac_cv_prog_LIPO" ; then
6102   set dummy lipo
6103   if test $build = $host ; then
6104     LIPO="$2"
6105   else
6106     LIPO="${ncn_tool_prefix}$2"
6107   fi
6108 fi
6109
6110  for ncn_progname in nm; do
6111   if test -n "$ncn_tool_prefix"; then
6112     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6113 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6114 echo "$as_me:$LINENO: checking for $ac_word" >&5
6115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6116 if test "${ac_cv_prog_NM+set}" = set; then
6117   echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119   if test -n "$NM"; then
6120   ac_cv_prog_NM="$NM" # Let the user override the test.
6121 else
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 for as_dir in $PATH
6124 do
6125   IFS=$as_save_IFS
6126   test -z "$as_dir" && as_dir=.
6127   for ac_exec_ext in '' $ac_executable_extensions; do
6128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6129     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
6130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131     break 2
6132   fi
6133 done
6134 done
6135
6136 fi
6137 fi
6138 NM=$ac_cv_prog_NM
6139 if test -n "$NM"; then
6140   echo "$as_me:$LINENO: result: $NM" >&5
6141 echo "${ECHO_T}$NM" >&6
6142 else
6143   echo "$as_me:$LINENO: result: no" >&5
6144 echo "${ECHO_T}no" >&6
6145 fi
6146
6147   fi
6148   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6149     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6150 set dummy ${ncn_progname}; ac_word=$2
6151 echo "$as_me:$LINENO: checking for $ac_word" >&5
6152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6153 if test "${ac_cv_prog_NM+set}" = set; then
6154   echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156   if test -n "$NM"; then
6157   ac_cv_prog_NM="$NM" # Let the user override the test.
6158 else
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6161 do
6162   IFS=$as_save_IFS
6163   test -z "$as_dir" && as_dir=.
6164   for ac_exec_ext in '' $ac_executable_extensions; do
6165   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6166     ac_cv_prog_NM="${ncn_progname}"
6167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168     break 2
6169   fi
6170 done
6171 done
6172
6173 fi
6174 fi
6175 NM=$ac_cv_prog_NM
6176 if test -n "$NM"; then
6177   echo "$as_me:$LINENO: result: $NM" >&5
6178 echo "${ECHO_T}$NM" >&6
6179 else
6180   echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6
6182 fi
6183
6184   fi
6185   test -n "$ac_cv_prog_NM" && break
6186 done
6187
6188 if test -z "$ac_cv_prog_NM" ; then
6189   set dummy nm
6190   if test $build = $host ; then
6191     NM="$2"
6192   else
6193     NM="${ncn_tool_prefix}$2"
6194   fi
6195 fi
6196
6197  for ncn_progname in ranlib; do
6198   if test -n "$ncn_tool_prefix"; then
6199     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6200 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6201 echo "$as_me:$LINENO: checking for $ac_word" >&5
6202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6203 if test "${ac_cv_prog_RANLIB+set}" = set; then
6204   echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206   if test -n "$RANLIB"; then
6207   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6208 else
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 for as_dir in $PATH
6211 do
6212   IFS=$as_save_IFS
6213   test -z "$as_dir" && as_dir=.
6214   for ac_exec_ext in '' $ac_executable_extensions; do
6215   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
6217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6218     break 2
6219   fi
6220 done
6221 done
6222
6223 fi
6224 fi
6225 RANLIB=$ac_cv_prog_RANLIB
6226 if test -n "$RANLIB"; then
6227   echo "$as_me:$LINENO: result: $RANLIB" >&5
6228 echo "${ECHO_T}$RANLIB" >&6
6229 else
6230   echo "$as_me:$LINENO: result: no" >&5
6231 echo "${ECHO_T}no" >&6
6232 fi
6233
6234   fi
6235   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
6236     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6237 set dummy ${ncn_progname}; ac_word=$2
6238 echo "$as_me:$LINENO: checking for $ac_word" >&5
6239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6240 if test "${ac_cv_prog_RANLIB+set}" = set; then
6241   echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243   if test -n "$RANLIB"; then
6244   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6245 else
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6248 do
6249   IFS=$as_save_IFS
6250   test -z "$as_dir" && as_dir=.
6251   for ac_exec_ext in '' $ac_executable_extensions; do
6252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6253     ac_cv_prog_RANLIB="${ncn_progname}"
6254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255     break 2
6256   fi
6257 done
6258 done
6259
6260 fi
6261 fi
6262 RANLIB=$ac_cv_prog_RANLIB
6263 if test -n "$RANLIB"; then
6264   echo "$as_me:$LINENO: result: $RANLIB" >&5
6265 echo "${ECHO_T}$RANLIB" >&6
6266 else
6267   echo "$as_me:$LINENO: result: no" >&5
6268 echo "${ECHO_T}no" >&6
6269 fi
6270
6271   fi
6272   test -n "$ac_cv_prog_RANLIB" && break
6273 done
6274
6275 if test -z "$ac_cv_prog_RANLIB" ; then
6276   RANLIB=":"
6277 fi
6278
6279  for ncn_progname in strip; do
6280   if test -n "$ncn_tool_prefix"; then
6281     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6282 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6283 echo "$as_me:$LINENO: checking for $ac_word" >&5
6284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6285 if test "${ac_cv_prog_STRIP+set}" = set; then
6286   echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288   if test -n "$STRIP"; then
6289   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6290 else
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH
6293 do
6294   IFS=$as_save_IFS
6295   test -z "$as_dir" && as_dir=.
6296   for ac_exec_ext in '' $ac_executable_extensions; do
6297   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
6299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6300     break 2
6301   fi
6302 done
6303 done
6304
6305 fi
6306 fi
6307 STRIP=$ac_cv_prog_STRIP
6308 if test -n "$STRIP"; then
6309   echo "$as_me:$LINENO: result: $STRIP" >&5
6310 echo "${ECHO_T}$STRIP" >&6
6311 else
6312   echo "$as_me:$LINENO: result: no" >&5
6313 echo "${ECHO_T}no" >&6
6314 fi
6315
6316   fi
6317   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
6318     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6319 set dummy ${ncn_progname}; ac_word=$2
6320 echo "$as_me:$LINENO: checking for $ac_word" >&5
6321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6322 if test "${ac_cv_prog_STRIP+set}" = set; then
6323   echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325   if test -n "$STRIP"; then
6326   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6327 else
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6330 do
6331   IFS=$as_save_IFS
6332   test -z "$as_dir" && as_dir=.
6333   for ac_exec_ext in '' $ac_executable_extensions; do
6334   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6335     ac_cv_prog_STRIP="${ncn_progname}"
6336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337     break 2
6338   fi
6339 done
6340 done
6341
6342 fi
6343 fi
6344 STRIP=$ac_cv_prog_STRIP
6345 if test -n "$STRIP"; then
6346   echo "$as_me:$LINENO: result: $STRIP" >&5
6347 echo "${ECHO_T}$STRIP" >&6
6348 else
6349   echo "$as_me:$LINENO: result: no" >&5
6350 echo "${ECHO_T}no" >&6
6351 fi
6352
6353   fi
6354   test -n "$ac_cv_prog_STRIP" && break
6355 done
6356
6357 if test -z "$ac_cv_prog_STRIP" ; then
6358   STRIP=":"
6359 fi
6360
6361  for ncn_progname in windres; do
6362   if test -n "$ncn_tool_prefix"; then
6363     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6364 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6365 echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6367 if test "${ac_cv_prog_WINDRES+set}" = set; then
6368   echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370   if test -n "$WINDRES"; then
6371   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6372 else
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6375 do
6376   IFS=$as_save_IFS
6377   test -z "$as_dir" && as_dir=.
6378   for ac_exec_ext in '' $ac_executable_extensions; do
6379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6380     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
6381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6382     break 2
6383   fi
6384 done
6385 done
6386
6387 fi
6388 fi
6389 WINDRES=$ac_cv_prog_WINDRES
6390 if test -n "$WINDRES"; then
6391   echo "$as_me:$LINENO: result: $WINDRES" >&5
6392 echo "${ECHO_T}$WINDRES" >&6
6393 else
6394   echo "$as_me:$LINENO: result: no" >&5
6395 echo "${ECHO_T}no" >&6
6396 fi
6397
6398   fi
6399   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
6400     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6401 set dummy ${ncn_progname}; ac_word=$2
6402 echo "$as_me:$LINENO: checking for $ac_word" >&5
6403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6404 if test "${ac_cv_prog_WINDRES+set}" = set; then
6405   echo $ECHO_N "(cached) $ECHO_C" >&6
6406 else
6407   if test -n "$WINDRES"; then
6408   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6409 else
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 for as_dir in $PATH
6412 do
6413   IFS=$as_save_IFS
6414   test -z "$as_dir" && as_dir=.
6415   for ac_exec_ext in '' $ac_executable_extensions; do
6416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6417     ac_cv_prog_WINDRES="${ncn_progname}"
6418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419     break 2
6420   fi
6421 done
6422 done
6423
6424 fi
6425 fi
6426 WINDRES=$ac_cv_prog_WINDRES
6427 if test -n "$WINDRES"; then
6428   echo "$as_me:$LINENO: result: $WINDRES" >&5
6429 echo "${ECHO_T}$WINDRES" >&6
6430 else
6431   echo "$as_me:$LINENO: result: no" >&5
6432 echo "${ECHO_T}no" >&6
6433 fi
6434
6435   fi
6436   test -n "$ac_cv_prog_WINDRES" && break
6437 done
6438
6439 if test -z "$ac_cv_prog_WINDRES" ; then
6440   set dummy windres
6441   if test $build = $host ; then
6442     WINDRES="$2"
6443   else
6444     WINDRES="${ncn_tool_prefix}$2"
6445   fi
6446 fi
6447
6448  for ncn_progname in objcopy; do
6449   if test -n "$ncn_tool_prefix"; then
6450     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6451 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6452 echo "$as_me:$LINENO: checking for $ac_word" >&5
6453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6454 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6455   echo $ECHO_N "(cached) $ECHO_C" >&6
6456 else
6457   if test -n "$OBJCOPY"; then
6458   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6459 else
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 for as_dir in $PATH
6462 do
6463   IFS=$as_save_IFS
6464   test -z "$as_dir" && as_dir=.
6465   for ac_exec_ext in '' $ac_executable_extensions; do
6466   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6467     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
6468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6469     break 2
6470   fi
6471 done
6472 done
6473
6474 fi
6475 fi
6476 OBJCOPY=$ac_cv_prog_OBJCOPY
6477 if test -n "$OBJCOPY"; then
6478   echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6479 echo "${ECHO_T}$OBJCOPY" >&6
6480 else
6481   echo "$as_me:$LINENO: result: no" >&5
6482 echo "${ECHO_T}no" >&6
6483 fi
6484
6485   fi
6486   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
6487     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6488 set dummy ${ncn_progname}; ac_word=$2
6489 echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6491 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6492   echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494   if test -n "$OBJCOPY"; then
6495   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500   IFS=$as_save_IFS
6501   test -z "$as_dir" && as_dir=.
6502   for ac_exec_ext in '' $ac_executable_extensions; do
6503   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504     ac_cv_prog_OBJCOPY="${ncn_progname}"
6505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506     break 2
6507   fi
6508 done
6509 done
6510
6511 fi
6512 fi
6513 OBJCOPY=$ac_cv_prog_OBJCOPY
6514 if test -n "$OBJCOPY"; then
6515   echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6516 echo "${ECHO_T}$OBJCOPY" >&6
6517 else
6518   echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6
6520 fi
6521
6522   fi
6523   test -n "$ac_cv_prog_OBJCOPY" && break
6524 done
6525
6526 if test -z "$ac_cv_prog_OBJCOPY" ; then
6527   set dummy objcopy
6528   if test $build = $host ; then
6529     OBJCOPY="$2"
6530   else
6531     OBJCOPY="${ncn_tool_prefix}$2"
6532   fi
6533 fi
6534
6535  for ncn_progname in objdump; do
6536   if test -n "$ncn_tool_prefix"; then
6537     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6538 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6539 echo "$as_me:$LINENO: checking for $ac_word" >&5
6540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6541 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6542   echo $ECHO_N "(cached) $ECHO_C" >&6
6543 else
6544   if test -n "$OBJDUMP"; then
6545   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6546 else
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6549 do
6550   IFS=$as_save_IFS
6551   test -z "$as_dir" && as_dir=.
6552   for ac_exec_ext in '' $ac_executable_extensions; do
6553   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6554     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
6555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6556     break 2
6557   fi
6558 done
6559 done
6560
6561 fi
6562 fi
6563 OBJDUMP=$ac_cv_prog_OBJDUMP
6564 if test -n "$OBJDUMP"; then
6565   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6566 echo "${ECHO_T}$OBJDUMP" >&6
6567 else
6568   echo "$as_me:$LINENO: result: no" >&5
6569 echo "${ECHO_T}no" >&6
6570 fi
6571
6572   fi
6573   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
6574     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6575 set dummy ${ncn_progname}; ac_word=$2
6576 echo "$as_me:$LINENO: checking for $ac_word" >&5
6577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6578 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6579   echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581   if test -n "$OBJDUMP"; then
6582   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587   IFS=$as_save_IFS
6588   test -z "$as_dir" && as_dir=.
6589   for ac_exec_ext in '' $ac_executable_extensions; do
6590   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6591     ac_cv_prog_OBJDUMP="${ncn_progname}"
6592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593     break 2
6594   fi
6595 done
6596 done
6597
6598 fi
6599 fi
6600 OBJDUMP=$ac_cv_prog_OBJDUMP
6601 if test -n "$OBJDUMP"; then
6602   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6603 echo "${ECHO_T}$OBJDUMP" >&6
6604 else
6605   echo "$as_me:$LINENO: result: no" >&5
6606 echo "${ECHO_T}no" >&6
6607 fi
6608
6609   fi
6610   test -n "$ac_cv_prog_OBJDUMP" && break
6611 done
6612
6613 if test -z "$ac_cv_prog_OBJDUMP" ; then
6614   set dummy objdump
6615   if test $build = $host ; then
6616     OBJDUMP="$2"
6617   else
6618     OBJDUMP="${ncn_tool_prefix}$2"
6619   fi
6620 fi
6621
6622
6623
6624
6625
6626
6627
6628 # Target tools.
6629
6630 # Check whether --with-build-time-tools or --without-build-time-tools was given.
6631 if test "${with_build_time_tools+set}" = set; then
6632   withval="$with_build_time_tools"
6633   case x"$withval" in
6634      x/*) ;;
6635      *)
6636        with_build_time_tools=
6637        { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
6638 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
6639        ;;
6640    esac
6641 else
6642   with_build_time_tools=
6643 fi;
6644
6645  if test -n "$with_build_time_tools"; then
6646   for ncn_progname in cc gcc; do
6647     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6648 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6649     if test -x $with_build_time_tools/${ncn_progname}; then
6650       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6651       echo "$as_me:$LINENO: result: yes" >&5
6652 echo "${ECHO_T}yes" >&6
6653       break
6654     else
6655       echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6
6657     fi
6658   done
6659 fi
6660
6661 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
6662   for ncn_progname in cc gcc; do
6663     if test -n "$ncn_target_tool_prefix"; then
6664       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6665 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6666 echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6668 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6669   echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671   if test -n "$CC_FOR_TARGET"; then
6672   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677   IFS=$as_save_IFS
6678   test -z "$as_dir" && as_dir=.
6679   for ac_exec_ext in '' $ac_executable_extensions; do
6680   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683     break 2
6684   fi
6685 done
6686 done
6687
6688 fi
6689 fi
6690 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
6691 if test -n "$CC_FOR_TARGET"; then
6692   echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6693 echo "${ECHO_T}$CC_FOR_TARGET" >&6
6694 else
6695   echo "$as_me:$LINENO: result: no" >&5
6696 echo "${ECHO_T}no" >&6
6697 fi
6698
6699     fi
6700     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
6701       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6702 set dummy ${ncn_progname}; ac_word=$2
6703 echo "$as_me:$LINENO: checking for $ac_word" >&5
6704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6705 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6706   echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708   if test -n "$CC_FOR_TARGET"; then
6709   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
6710 else
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6713 do
6714   IFS=$as_save_IFS
6715   test -z "$as_dir" && as_dir=.
6716   for ac_exec_ext in '' $ac_executable_extensions; do
6717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6718     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
6719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6720     break 2
6721   fi
6722 done
6723 done
6724
6725 fi
6726 fi
6727 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
6728 if test -n "$CC_FOR_TARGET"; then
6729   echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6730 echo "${ECHO_T}$CC_FOR_TARGET" >&6
6731 else
6732   echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6
6734 fi
6735
6736     fi
6737     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
6738   done
6739 fi
6740
6741 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
6742   set dummy cc gcc
6743   if test $build = $target ; then
6744     CC_FOR_TARGET="$2"
6745   else
6746     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
6747   fi
6748 fi
6749
6750  if test -n "$with_build_time_tools"; then
6751   for ncn_progname in c++ g++ cxx gxx; do
6752     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6753 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6754     if test -x $with_build_time_tools/${ncn_progname}; then
6755       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6756       echo "$as_me:$LINENO: result: yes" >&5
6757 echo "${ECHO_T}yes" >&6
6758       break
6759     else
6760       echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6
6762     fi
6763   done
6764 fi
6765
6766 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
6767   for ncn_progname in c++ g++ cxx gxx; do
6768     if test -n "$ncn_target_tool_prefix"; then
6769       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6770 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6771 echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6773 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776   if test -n "$CXX_FOR_TARGET"; then
6777   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782   IFS=$as_save_IFS
6783   test -z "$as_dir" && as_dir=.
6784   for ac_exec_ext in '' $ac_executable_extensions; do
6785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6786     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788     break 2
6789   fi
6790 done
6791 done
6792
6793 fi
6794 fi
6795 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
6796 if test -n "$CXX_FOR_TARGET"; then
6797   echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6798 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
6799 else
6800   echo "$as_me:$LINENO: result: no" >&5
6801 echo "${ECHO_T}no" >&6
6802 fi
6803
6804     fi
6805     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
6806       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6807 set dummy ${ncn_progname}; ac_word=$2
6808 echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6810 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6811   echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813   if test -n "$CXX_FOR_TARGET"; then
6814   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819   IFS=$as_save_IFS
6820   test -z "$as_dir" && as_dir=.
6821   for ac_exec_ext in '' $ac_executable_extensions; do
6822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6823     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
6824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825     break 2
6826   fi
6827 done
6828 done
6829
6830 fi
6831 fi
6832 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
6833 if test -n "$CXX_FOR_TARGET"; then
6834   echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6835 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
6836 else
6837   echo "$as_me:$LINENO: result: no" >&5
6838 echo "${ECHO_T}no" >&6
6839 fi
6840
6841     fi
6842     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
6843   done
6844 fi
6845
6846 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
6847   set dummy c++ g++ cxx gxx
6848   if test $build = $target ; then
6849     CXX_FOR_TARGET="$2"
6850   else
6851     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
6852   fi
6853 fi
6854
6855  if test -n "$with_build_time_tools"; then
6856   for ncn_progname in gcc; do
6857     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6858 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6859     if test -x $with_build_time_tools/${ncn_progname}; then
6860       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6861       echo "$as_me:$LINENO: result: yes" >&5
6862 echo "${ECHO_T}yes" >&6
6863       break
6864     else
6865       echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6
6867     fi
6868   done
6869 fi
6870
6871 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
6872   for ncn_progname in gcc; do
6873     if test -n "$ncn_target_tool_prefix"; then
6874       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6875 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6876 echo "$as_me:$LINENO: checking for $ac_word" >&5
6877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6878 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6879   echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881   if test -n "$GCC_FOR_TARGET"; then
6882   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887   IFS=$as_save_IFS
6888   test -z "$as_dir" && as_dir=.
6889   for ac_exec_ext in '' $ac_executable_extensions; do
6890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893     break 2
6894   fi
6895 done
6896 done
6897
6898 fi
6899 fi
6900 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
6901 if test -n "$GCC_FOR_TARGET"; then
6902   echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6903 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
6904 else
6905   echo "$as_me:$LINENO: result: no" >&5
6906 echo "${ECHO_T}no" >&6
6907 fi
6908
6909     fi
6910     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
6911       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6912 set dummy ${ncn_progname}; ac_word=$2
6913 echo "$as_me:$LINENO: checking for $ac_word" >&5
6914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6915 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6916   echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918   if test -n "$GCC_FOR_TARGET"; then
6919   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
6920 else
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924   IFS=$as_save_IFS
6925   test -z "$as_dir" && as_dir=.
6926   for ac_exec_ext in '' $ac_executable_extensions; do
6927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6928     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
6929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930     break 2
6931   fi
6932 done
6933 done
6934
6935 fi
6936 fi
6937 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
6938 if test -n "$GCC_FOR_TARGET"; then
6939   echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6940 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
6941 else
6942   echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6
6944 fi
6945
6946     fi
6947     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
6948   done
6949 fi
6950
6951 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
6952   GCC_FOR_TARGET="${CC_FOR_TARGET}"
6953 fi
6954
6955  if test -n "$with_build_time_tools"; then
6956   for ncn_progname in gcj; do
6957     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6958 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6959     if test -x $with_build_time_tools/${ncn_progname}; then
6960       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6961       echo "$as_me:$LINENO: result: yes" >&5
6962 echo "${ECHO_T}yes" >&6
6963       break
6964     else
6965       echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6
6967     fi
6968   done
6969 fi
6970
6971 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
6972   for ncn_progname in gcj; do
6973     if test -n "$ncn_target_tool_prefix"; then
6974       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6975 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6976 echo "$as_me:$LINENO: checking for $ac_word" >&5
6977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6978 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
6979   echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981   if test -n "$GCJ_FOR_TARGET"; then
6982   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
6983 else
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6986 do
6987   IFS=$as_save_IFS
6988   test -z "$as_dir" && as_dir=.
6989   for ac_exec_ext in '' $ac_executable_extensions; do
6990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6991     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6993     break 2
6994   fi
6995 done
6996 done
6997
6998 fi
6999 fi
7000 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
7001 if test -n "$GCJ_FOR_TARGET"; then
7002   echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
7003 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
7004 else
7005   echo "$as_me:$LINENO: result: no" >&5
7006 echo "${ECHO_T}no" >&6
7007 fi
7008
7009     fi
7010     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
7011       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7012 set dummy ${ncn_progname}; ac_word=$2
7013 echo "$as_me:$LINENO: checking for $ac_word" >&5
7014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7015 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
7016   echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018   if test -n "$GCJ_FOR_TARGET"; then
7019   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
7020 else
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH
7023 do
7024   IFS=$as_save_IFS
7025   test -z "$as_dir" && as_dir=.
7026   for ac_exec_ext in '' $ac_executable_extensions; do
7027   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7028     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
7029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030     break 2
7031   fi
7032 done
7033 done
7034
7035 fi
7036 fi
7037 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
7038 if test -n "$GCJ_FOR_TARGET"; then
7039   echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
7040 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
7041 else
7042   echo "$as_me:$LINENO: result: no" >&5
7043 echo "${ECHO_T}no" >&6
7044 fi
7045
7046     fi
7047     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
7048   done
7049 fi
7050
7051 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
7052   set dummy gcj
7053   if test $build = $target ; then
7054     GCJ_FOR_TARGET="$2"
7055   else
7056     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
7057   fi
7058 fi
7059
7060  if test -n "$with_build_time_tools"; then
7061   for ncn_progname in gfortran; do
7062     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7063 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7064     if test -x $with_build_time_tools/${ncn_progname}; then
7065       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7066       echo "$as_me:$LINENO: result: yes" >&5
7067 echo "${ECHO_T}yes" >&6
7068       break
7069     else
7070       echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6
7072     fi
7073   done
7074 fi
7075
7076 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
7077   for ncn_progname in gfortran; do
7078     if test -n "$ncn_target_tool_prefix"; then
7079       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7080 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7081 echo "$as_me:$LINENO: checking for $ac_word" >&5
7082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7083 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7084   echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086   if test -n "$GFORTRAN_FOR_TARGET"; then
7087   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092   IFS=$as_save_IFS
7093   test -z "$as_dir" && as_dir=.
7094   for ac_exec_ext in '' $ac_executable_extensions; do
7095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098     break 2
7099   fi
7100 done
7101 done
7102
7103 fi
7104 fi
7105 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
7106 if test -n "$GFORTRAN_FOR_TARGET"; then
7107   echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7108 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
7109 else
7110   echo "$as_me:$LINENO: result: no" >&5
7111 echo "${ECHO_T}no" >&6
7112 fi
7113
7114     fi
7115     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
7116       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7117 set dummy ${ncn_progname}; ac_word=$2
7118 echo "$as_me:$LINENO: checking for $ac_word" >&5
7119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7120 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7121   echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123   if test -n "$GFORTRAN_FOR_TARGET"; then
7124   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129   IFS=$as_save_IFS
7130   test -z "$as_dir" && as_dir=.
7131   for ac_exec_ext in '' $ac_executable_extensions; do
7132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
7134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135     break 2
7136   fi
7137 done
7138 done
7139
7140 fi
7141 fi
7142 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
7143 if test -n "$GFORTRAN_FOR_TARGET"; then
7144   echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7145 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
7146 else
7147   echo "$as_me:$LINENO: result: no" >&5
7148 echo "${ECHO_T}no" >&6
7149 fi
7150
7151     fi
7152     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
7153   done
7154 fi
7155
7156 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
7157   set dummy gfortran
7158   if test $build = $target ; then
7159     GFORTRAN_FOR_TARGET="$2"
7160   else
7161     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
7162   fi
7163 fi
7164
7165
7166
7167 # The user is always right.
7168 if test "${PATH_SEPARATOR+set}" != set; then
7169   echo "#! /bin/sh" >conf$$.sh
7170   echo  "exit 0"   >>conf$$.sh
7171   chmod +x conf$$.sh
7172   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7173     PATH_SEPARATOR=';'
7174   else
7175     PATH_SEPARATOR=:
7176   fi
7177   rm -f conf$$.sh
7178 fi
7179
7180
7181
7182 if test "x$exec_prefix" = xNONE; then
7183         if test "x$prefix" = xNONE; then
7184                 gcc_cv_tool_prefix=$ac_default_prefix
7185         else
7186                 gcc_cv_tool_prefix=$prefix
7187         fi
7188 else
7189         gcc_cv_tool_prefix=$exec_prefix
7190 fi
7191
7192 # If there is no compiler in the tree, use the PATH only.  In any
7193 # case, if there is no compiler in the tree nobody should use
7194 # AS_FOR_TARGET and LD_FOR_TARGET.
7195 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7196     gcc_version=`cat $srcdir/gcc/BASE-VER`
7197     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7198     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7199     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7200     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7201     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7202     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7203 else
7204     gcc_cv_tool_dirs=
7205 fi
7206
7207 if test x$build = x$target && test -n "$md_exec_prefix"; then
7208         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7209 fi
7210
7211
7212
7213 cat > conftest.c << \EOF
7214 #ifdef __GNUC__
7215   gcc_yay;
7216 #endif
7217 EOF
7218 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
7219   have_gcc_for_target=yes
7220 else
7221   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
7222   have_gcc_for_target=no
7223 fi
7224 rm conftest.c
7225
7226
7227
7228
7229 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7230   if test -n "$with_build_time_tools"; then
7231     echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
7232 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
7233     if test -x $with_build_time_tools/ar; then
7234       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
7235       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
7236       echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
7237 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
7238     else
7239       echo "$as_me:$LINENO: result: no" >&5
7240 echo "${ECHO_T}no" >&6
7241     fi
7242   elif test $build != $host && test $have_gcc_for_target = yes; then
7243     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
7244     test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
7245     ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
7246   fi
7247 fi
7248 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7249   # Extract the first word of "ar", so it can be a program name with args.
7250 set dummy ar; ac_word=$2
7251 echo "$as_me:$LINENO: checking for $ac_word" >&5
7252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7253 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
7254   echo $ECHO_N "(cached) $ECHO_C" >&6
7255 else
7256   case $AR_FOR_TARGET in
7257   [\\/]* | ?:[\\/]*)
7258   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
7259   ;;
7260   *)
7261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $gcc_cv_tool_dirs
7263 do
7264   IFS=$as_save_IFS
7265   test -z "$as_dir" && as_dir=.
7266   for ac_exec_ext in '' $ac_executable_extensions; do
7267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270     break 2
7271   fi
7272 done
7273 done
7274
7275   ;;
7276 esac
7277 fi
7278 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7279
7280 if test -n "$AR_FOR_TARGET"; then
7281   echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7282 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7283 else
7284   echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6
7286 fi
7287
7288 fi
7289 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7290    if test -n "$with_build_time_tools"; then
7291   for ncn_progname in ar; do
7292     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7293 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7294     if test -x $with_build_time_tools/${ncn_progname}; then
7295       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7296       echo "$as_me:$LINENO: result: yes" >&5
7297 echo "${ECHO_T}yes" >&6
7298       break
7299     else
7300       echo "$as_me:$LINENO: result: no" >&5
7301 echo "${ECHO_T}no" >&6
7302     fi
7303   done
7304 fi
7305
7306 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
7307   for ncn_progname in ar; do
7308     if test -n "$ncn_target_tool_prefix"; then
7309       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7310 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7311 echo "$as_me:$LINENO: checking for $ac_word" >&5
7312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7313 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7314   echo $ECHO_N "(cached) $ECHO_C" >&6
7315 else
7316   if test -n "$AR_FOR_TARGET"; then
7317   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322   IFS=$as_save_IFS
7323   test -z "$as_dir" && as_dir=.
7324   for ac_exec_ext in '' $ac_executable_extensions; do
7325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328     break 2
7329   fi
7330 done
7331 done
7332
7333 fi
7334 fi
7335 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
7336 if test -n "$AR_FOR_TARGET"; then
7337   echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7338 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7339 else
7340   echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6
7342 fi
7343
7344     fi
7345     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
7346       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7347 set dummy ${ncn_progname}; ac_word=$2
7348 echo "$as_me:$LINENO: checking for $ac_word" >&5
7349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7350 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7351   echo $ECHO_N "(cached) $ECHO_C" >&6
7352 else
7353   if test -n "$AR_FOR_TARGET"; then
7354   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7355 else
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7358 do
7359   IFS=$as_save_IFS
7360   test -z "$as_dir" && as_dir=.
7361   for ac_exec_ext in '' $ac_executable_extensions; do
7362   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
7364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365     break 2
7366   fi
7367 done
7368 done
7369
7370 fi
7371 fi
7372 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
7373 if test -n "$AR_FOR_TARGET"; then
7374   echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7375 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7376 else
7377   echo "$as_me:$LINENO: result: no" >&5
7378 echo "${ECHO_T}no" >&6
7379 fi
7380
7381     fi
7382     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
7383   done
7384 fi
7385
7386 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
7387   set dummy ar
7388   if test $build = $target ; then
7389     AR_FOR_TARGET="$2"
7390   else
7391     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7392   fi
7393 fi
7394
7395 else
7396   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7397 fi
7398
7399
7400
7401
7402 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7403   if test -n "$with_build_time_tools"; then
7404     echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
7405 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
7406     if test -x $with_build_time_tools/as; then
7407       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
7408       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7409       echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
7410 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
7411     else
7412       echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6
7414     fi
7415   elif test $build != $host && test $have_gcc_for_target = yes; then
7416     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
7417     test $AS_FOR_TARGET=as && AS_FOR_TARGET=
7418     ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7419   fi
7420 fi
7421 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7422   # Extract the first word of "as", so it can be a program name with args.
7423 set dummy as; ac_word=$2
7424 echo "$as_me:$LINENO: checking for $ac_word" >&5
7425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7426 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
7427   echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429   case $AS_FOR_TARGET in
7430   [\\/]* | ?:[\\/]*)
7431   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
7432   ;;
7433   *)
7434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $gcc_cv_tool_dirs
7436 do
7437   IFS=$as_save_IFS
7438   test -z "$as_dir" && as_dir=.
7439   for ac_exec_ext in '' $ac_executable_extensions; do
7440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7441     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443     break 2
7444   fi
7445 done
7446 done
7447
7448   ;;
7449 esac
7450 fi
7451 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7452
7453 if test -n "$AS_FOR_TARGET"; then
7454   echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7455 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7456 else
7457   echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6
7459 fi
7460
7461 fi
7462 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7463    if test -n "$with_build_time_tools"; then
7464   for ncn_progname in as; do
7465     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7466 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7467     if test -x $with_build_time_tools/${ncn_progname}; then
7468       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7469       echo "$as_me:$LINENO: result: yes" >&5
7470 echo "${ECHO_T}yes" >&6
7471       break
7472     else
7473       echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6
7475     fi
7476   done
7477 fi
7478
7479 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
7480   for ncn_progname in as; do
7481     if test -n "$ncn_target_tool_prefix"; then
7482       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7483 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7484 echo "$as_me:$LINENO: checking for $ac_word" >&5
7485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7486 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7487   echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489   if test -n "$AS_FOR_TARGET"; then
7490   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7491 else
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 for as_dir in $PATH
7494 do
7495   IFS=$as_save_IFS
7496   test -z "$as_dir" && as_dir=.
7497   for ac_exec_ext in '' $ac_executable_extensions; do
7498   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7499     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7501     break 2
7502   fi
7503 done
7504 done
7505
7506 fi
7507 fi
7508 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7509 if test -n "$AS_FOR_TARGET"; then
7510   echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7511 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7512 else
7513   echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6
7515 fi
7516
7517     fi
7518     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
7519       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7520 set dummy ${ncn_progname}; ac_word=$2
7521 echo "$as_me:$LINENO: checking for $ac_word" >&5
7522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7523 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7524   echo $ECHO_N "(cached) $ECHO_C" >&6
7525 else
7526   if test -n "$AS_FOR_TARGET"; then
7527   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7528 else
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 for as_dir in $PATH
7531 do
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_AS_FOR_TARGET="${ncn_progname}"
7537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538     break 2
7539   fi
7540 done
7541 done
7542
7543 fi
7544 fi
7545 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7546 if test -n "$AS_FOR_TARGET"; then
7547   echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7548 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7549 else
7550   echo "$as_me:$LINENO: result: no" >&5
7551 echo "${ECHO_T}no" >&6
7552 fi
7553
7554     fi
7555     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
7556   done
7557 fi
7558
7559 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
7560   set dummy as
7561   if test $build = $target ; then
7562     AS_FOR_TARGET="$2"
7563   else
7564     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
7565   fi
7566 fi
7567
7568 else
7569   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7570 fi
7571
7572
7573
7574
7575 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7576   if test -n "$with_build_time_tools"; then
7577     echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
7578 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
7579     if test -x $with_build_time_tools/dlltool; then
7580       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
7581       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7582       echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
7583 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
7584     else
7585       echo "$as_me:$LINENO: result: no" >&5
7586 echo "${ECHO_T}no" >&6
7587     fi
7588   elif test $build != $host && test $have_gcc_for_target = yes; then
7589     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
7590     test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
7591     ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7592   fi
7593 fi
7594 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7595   # Extract the first word of "dlltool", so it can be a program name with args.
7596 set dummy dlltool; ac_word=$2
7597 echo "$as_me:$LINENO: checking for $ac_word" >&5
7598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7599 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
7600   echo $ECHO_N "(cached) $ECHO_C" >&6
7601 else
7602   case $DLLTOOL_FOR_TARGET in
7603   [\\/]* | ?:[\\/]*)
7604   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
7605   ;;
7606   *)
7607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $gcc_cv_tool_dirs
7609 do
7610   IFS=$as_save_IFS
7611   test -z "$as_dir" && as_dir=.
7612   for ac_exec_ext in '' $ac_executable_extensions; do
7613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7614     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7616     break 2
7617   fi
7618 done
7619 done
7620
7621   ;;
7622 esac
7623 fi
7624 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7625
7626 if test -n "$DLLTOOL_FOR_TARGET"; then
7627   echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7628 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7629 else
7630   echo "$as_me:$LINENO: result: no" >&5
7631 echo "${ECHO_T}no" >&6
7632 fi
7633
7634 fi
7635 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7636    if test -n "$with_build_time_tools"; then
7637   for ncn_progname in dlltool; do
7638     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7639 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7640     if test -x $with_build_time_tools/${ncn_progname}; then
7641       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7642       echo "$as_me:$LINENO: result: yes" >&5
7643 echo "${ECHO_T}yes" >&6
7644       break
7645     else
7646       echo "$as_me:$LINENO: result: no" >&5
7647 echo "${ECHO_T}no" >&6
7648     fi
7649   done
7650 fi
7651
7652 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
7653   for ncn_progname in dlltool; do
7654     if test -n "$ncn_target_tool_prefix"; then
7655       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7656 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7657 echo "$as_me:$LINENO: checking for $ac_word" >&5
7658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7659 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7660   echo $ECHO_N "(cached) $ECHO_C" >&6
7661 else
7662   if test -n "$DLLTOOL_FOR_TARGET"; then
7663   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
7664 else
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7667 do
7668   IFS=$as_save_IFS
7669   test -z "$as_dir" && as_dir=.
7670   for ac_exec_ext in '' $ac_executable_extensions; do
7671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7674     break 2
7675   fi
7676 done
7677 done
7678
7679 fi
7680 fi
7681 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
7682 if test -n "$DLLTOOL_FOR_TARGET"; then
7683   echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7684 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7685 else
7686   echo "$as_me:$LINENO: result: no" >&5
7687 echo "${ECHO_T}no" >&6
7688 fi
7689
7690     fi
7691     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
7692       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7693 set dummy ${ncn_progname}; ac_word=$2
7694 echo "$as_me:$LINENO: checking for $ac_word" >&5
7695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7696 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7697   echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699   if test -n "$DLLTOOL_FOR_TARGET"; then
7700   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
7701 else
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705   IFS=$as_save_IFS
7706   test -z "$as_dir" && as_dir=.
7707   for ac_exec_ext in '' $ac_executable_extensions; do
7708   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7709     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
7710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7711     break 2
7712   fi
7713 done
7714 done
7715
7716 fi
7717 fi
7718 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
7719 if test -n "$DLLTOOL_FOR_TARGET"; then
7720   echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7721 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7722 else
7723   echo "$as_me:$LINENO: result: no" >&5
7724 echo "${ECHO_T}no" >&6
7725 fi
7726
7727     fi
7728     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
7729   done
7730 fi
7731
7732 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
7733   set dummy dlltool
7734   if test $build = $target ; then
7735     DLLTOOL_FOR_TARGET="$2"
7736   else
7737     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
7738   fi
7739 fi
7740
7741 else
7742   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7743 fi
7744
7745
7746
7747
7748 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7749   if test -n "$with_build_time_tools"; then
7750     echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
7751 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
7752     if test -x $with_build_time_tools/ld; then
7753       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
7754       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
7755       echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
7756 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
7757     else
7758       echo "$as_me:$LINENO: result: no" >&5
7759 echo "${ECHO_T}no" >&6
7760     fi
7761   elif test $build != $host && test $have_gcc_for_target = yes; then
7762     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
7763     test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
7764     ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
7765   fi
7766 fi
7767 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7768   # Extract the first word of "ld", so it can be a program name with args.
7769 set dummy ld; ac_word=$2
7770 echo "$as_me:$LINENO: checking for $ac_word" >&5
7771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7772 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
7773   echo $ECHO_N "(cached) $ECHO_C" >&6
7774 else
7775   case $LD_FOR_TARGET in
7776   [\\/]* | ?:[\\/]*)
7777   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
7778   ;;
7779   *)
7780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $gcc_cv_tool_dirs
7782 do
7783   IFS=$as_save_IFS
7784   test -z "$as_dir" && as_dir=.
7785   for ac_exec_ext in '' $ac_executable_extensions; do
7786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7787     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789     break 2
7790   fi
7791 done
7792 done
7793
7794   ;;
7795 esac
7796 fi
7797 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
7798
7799 if test -n "$LD_FOR_TARGET"; then
7800   echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7801 echo "${ECHO_T}$LD_FOR_TARGET" >&6
7802 else
7803   echo "$as_me:$LINENO: result: no" >&5
7804 echo "${ECHO_T}no" >&6
7805 fi
7806
7807 fi
7808 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7809    if test -n "$with_build_time_tools"; then
7810   for ncn_progname in ld; do
7811     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7812 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7813     if test -x $with_build_time_tools/${ncn_progname}; then
7814       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7815       echo "$as_me:$LINENO: result: yes" >&5
7816 echo "${ECHO_T}yes" >&6
7817       break
7818     else
7819       echo "$as_me:$LINENO: result: no" >&5
7820 echo "${ECHO_T}no" >&6
7821     fi
7822   done
7823 fi
7824
7825 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
7826   for ncn_progname in ld; do
7827     if test -n "$ncn_target_tool_prefix"; then
7828       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7829 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7830 echo "$as_me:$LINENO: checking for $ac_word" >&5
7831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7832 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
7833   echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
7835   if test -n "$LD_FOR_TARGET"; then
7836   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
7837 else
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7840 do
7841   IFS=$as_save_IFS
7842   test -z "$as_dir" && as_dir=.
7843   for ac_exec_ext in '' $ac_executable_extensions; do
7844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7847     break 2
7848   fi
7849 done
7850 done
7851
7852 fi
7853 fi
7854 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
7855 if test -n "$LD_FOR_TARGET"; then
7856   echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7857 echo "${ECHO_T}$LD_FOR_TARGET" >&6
7858 else
7859   echo "$as_me:$LINENO: result: no" >&5
7860 echo "${ECHO_T}no" >&6
7861 fi
7862
7863     fi
7864     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
7865       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7866 set dummy ${ncn_progname}; ac_word=$2
7867 echo "$as_me:$LINENO: checking for $ac_word" >&5
7868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7869 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
7870   echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872   if test -n "$LD_FOR_TARGET"; then
7873   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
7874 else
7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 for as_dir in $PATH
7877 do
7878   IFS=$as_save_IFS
7879   test -z "$as_dir" && as_dir=.
7880   for ac_exec_ext in '' $ac_executable_extensions; do
7881   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7882     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
7883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7884     break 2
7885   fi
7886 done
7887 done
7888
7889 fi
7890 fi
7891 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
7892 if test -n "$LD_FOR_TARGET"; then
7893   echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7894 echo "${ECHO_T}$LD_FOR_TARGET" >&6
7895 else
7896   echo "$as_me:$LINENO: result: no" >&5
7897 echo "${ECHO_T}no" >&6
7898 fi
7899
7900     fi
7901     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
7902   done
7903 fi
7904
7905 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
7906   set dummy ld
7907   if test $build = $target ; then
7908     LD_FOR_TARGET="$2"
7909   else
7910     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
7911   fi
7912 fi
7913
7914 else
7915   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
7916 fi
7917
7918
7919
7920
7921 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7922   if test -n "$with_build_time_tools"; then
7923     echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
7924 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
7925     if test -x $with_build_time_tools/lipo; then
7926       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
7927       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
7928       echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
7929 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
7930     else
7931       echo "$as_me:$LINENO: result: no" >&5
7932 echo "${ECHO_T}no" >&6
7933     fi
7934   elif test $build != $host && test $have_gcc_for_target = yes; then
7935     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
7936     test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
7937     ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
7938   fi
7939 fi
7940 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7941   # Extract the first word of "lipo", so it can be a program name with args.
7942 set dummy lipo; ac_word=$2
7943 echo "$as_me:$LINENO: checking for $ac_word" >&5
7944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7945 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
7946   echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948   case $LIPO_FOR_TARGET in
7949   [\\/]* | ?:[\\/]*)
7950   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
7951   ;;
7952   *)
7953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $gcc_cv_tool_dirs
7955 do
7956   IFS=$as_save_IFS
7957   test -z "$as_dir" && as_dir=.
7958   for ac_exec_ext in '' $ac_executable_extensions; do
7959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7962     break 2
7963   fi
7964 done
7965 done
7966
7967   ;;
7968 esac
7969 fi
7970 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
7971
7972 if test -n "$LIPO_FOR_TARGET"; then
7973   echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7974 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
7975 else
7976   echo "$as_me:$LINENO: result: no" >&5
7977 echo "${ECHO_T}no" >&6
7978 fi
7979
7980 fi
7981 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7982    if test -n "$with_build_time_tools"; then
7983   for ncn_progname in lipo; do
7984     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7985 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7986     if test -x $with_build_time_tools/${ncn_progname}; then
7987       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7988       echo "$as_me:$LINENO: result: yes" >&5
7989 echo "${ECHO_T}yes" >&6
7990       break
7991     else
7992       echo "$as_me:$LINENO: result: no" >&5
7993 echo "${ECHO_T}no" >&6
7994     fi
7995   done
7996 fi
7997
7998 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
7999   for ncn_progname in lipo; do
8000     if test -n "$ncn_target_tool_prefix"; then
8001       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8002 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8003 echo "$as_me:$LINENO: checking for $ac_word" >&5
8004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8005 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8006   echo $ECHO_N "(cached) $ECHO_C" >&6
8007 else
8008   if test -n "$LIPO_FOR_TARGET"; then
8009   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8010 else
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8013 do
8014   IFS=$as_save_IFS
8015   test -z "$as_dir" && as_dir=.
8016   for ac_exec_ext in '' $ac_executable_extensions; do
8017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8018     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8020     break 2
8021   fi
8022 done
8023 done
8024
8025 fi
8026 fi
8027 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
8028 if test -n "$LIPO_FOR_TARGET"; then
8029   echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8030 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
8031 else
8032   echo "$as_me:$LINENO: result: no" >&5
8033 echo "${ECHO_T}no" >&6
8034 fi
8035
8036     fi
8037     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
8038       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8039 set dummy ${ncn_progname}; ac_word=$2
8040 echo "$as_me:$LINENO: checking for $ac_word" >&5
8041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8042 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8043   echo $ECHO_N "(cached) $ECHO_C" >&6
8044 else
8045   if test -n "$LIPO_FOR_TARGET"; then
8046   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8047 else
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 for as_dir in $PATH
8050 do
8051   IFS=$as_save_IFS
8052   test -z "$as_dir" && as_dir=.
8053   for ac_exec_ext in '' $ac_executable_extensions; do
8054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8055     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
8056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8057     break 2
8058   fi
8059 done
8060 done
8061
8062 fi
8063 fi
8064 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
8065 if test -n "$LIPO_FOR_TARGET"; then
8066   echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8067 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
8068 else
8069   echo "$as_me:$LINENO: result: no" >&5
8070 echo "${ECHO_T}no" >&6
8071 fi
8072
8073     fi
8074     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
8075   done
8076 fi
8077
8078 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
8079   set dummy lipo
8080   if test $build = $target ; then
8081     LIPO_FOR_TARGET="$2"
8082   else
8083     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
8084   fi
8085 fi
8086
8087 else
8088   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
8089 fi
8090
8091
8092
8093
8094 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8095   if test -n "$with_build_time_tools"; then
8096     echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
8097 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
8098     if test -x $with_build_time_tools/nm; then
8099       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
8100       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8101       echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
8102 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
8103     else
8104       echo "$as_me:$LINENO: result: no" >&5
8105 echo "${ECHO_T}no" >&6
8106     fi
8107   elif test $build != $host && test $have_gcc_for_target = yes; then
8108     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
8109     test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
8110     ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8111   fi
8112 fi
8113 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8114   # Extract the first word of "nm", so it can be a program name with args.
8115 set dummy nm; ac_word=$2
8116 echo "$as_me:$LINENO: checking for $ac_word" >&5
8117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8118 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
8119   echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121   case $NM_FOR_TARGET in
8122   [\\/]* | ?:[\\/]*)
8123   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
8124   ;;
8125   *)
8126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127 for as_dir in $gcc_cv_tool_dirs
8128 do
8129   IFS=$as_save_IFS
8130   test -z "$as_dir" && as_dir=.
8131   for ac_exec_ext in '' $ac_executable_extensions; do
8132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8133     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8135     break 2
8136   fi
8137 done
8138 done
8139
8140   ;;
8141 esac
8142 fi
8143 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8144
8145 if test -n "$NM_FOR_TARGET"; then
8146   echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8147 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8148 else
8149   echo "$as_me:$LINENO: result: no" >&5
8150 echo "${ECHO_T}no" >&6
8151 fi
8152
8153 fi
8154 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8155    if test -n "$with_build_time_tools"; then
8156   for ncn_progname in nm; do
8157     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8158 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8159     if test -x $with_build_time_tools/${ncn_progname}; then
8160       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8161       echo "$as_me:$LINENO: result: yes" >&5
8162 echo "${ECHO_T}yes" >&6
8163       break
8164     else
8165       echo "$as_me:$LINENO: result: no" >&5
8166 echo "${ECHO_T}no" >&6
8167     fi
8168   done
8169 fi
8170
8171 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
8172   for ncn_progname in nm; do
8173     if test -n "$ncn_target_tool_prefix"; then
8174       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8175 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8176 echo "$as_me:$LINENO: checking for $ac_word" >&5
8177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8178 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8179   echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181   if test -n "$NM_FOR_TARGET"; then
8182   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
8183 else
8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 for as_dir in $PATH
8186 do
8187   IFS=$as_save_IFS
8188   test -z "$as_dir" && as_dir=.
8189   for ac_exec_ext in '' $ac_executable_extensions; do
8190   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8191     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8193     break 2
8194   fi
8195 done
8196 done
8197
8198 fi
8199 fi
8200 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
8201 if test -n "$NM_FOR_TARGET"; then
8202   echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8203 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8204 else
8205   echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8207 fi
8208
8209     fi
8210     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
8211       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8212 set dummy ${ncn_progname}; ac_word=$2
8213 echo "$as_me:$LINENO: checking for $ac_word" >&5
8214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8215 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8216   echo $ECHO_N "(cached) $ECHO_C" >&6
8217 else
8218   if test -n "$NM_FOR_TARGET"; then
8219   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
8220 else
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8223 do
8224   IFS=$as_save_IFS
8225   test -z "$as_dir" && as_dir=.
8226   for ac_exec_ext in '' $ac_executable_extensions; do
8227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8228     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
8229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8230     break 2
8231   fi
8232 done
8233 done
8234
8235 fi
8236 fi
8237 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
8238 if test -n "$NM_FOR_TARGET"; then
8239   echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8240 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8241 else
8242   echo "$as_me:$LINENO: result: no" >&5
8243 echo "${ECHO_T}no" >&6
8244 fi
8245
8246     fi
8247     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
8248   done
8249 fi
8250
8251 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
8252   set dummy nm
8253   if test $build = $target ; then
8254     NM_FOR_TARGET="$2"
8255   else
8256     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
8257   fi
8258 fi
8259
8260 else
8261   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8262 fi
8263
8264
8265
8266
8267 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8268   if test -n "$with_build_time_tools"; then
8269     echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
8270 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
8271     if test -x $with_build_time_tools/objdump; then
8272       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
8273       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8274       echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
8275 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
8276     else
8277       echo "$as_me:$LINENO: result: no" >&5
8278 echo "${ECHO_T}no" >&6
8279     fi
8280   elif test $build != $host && test $have_gcc_for_target = yes; then
8281     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
8282     test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
8283     ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8284   fi
8285 fi
8286 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8287   # Extract the first word of "objdump", so it can be a program name with args.
8288 set dummy objdump; ac_word=$2
8289 echo "$as_me:$LINENO: checking for $ac_word" >&5
8290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8291 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
8292   echo $ECHO_N "(cached) $ECHO_C" >&6
8293 else
8294   case $OBJDUMP_FOR_TARGET in
8295   [\\/]* | ?:[\\/]*)
8296   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
8297   ;;
8298   *)
8299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 for as_dir in $gcc_cv_tool_dirs
8301 do
8302   IFS=$as_save_IFS
8303   test -z "$as_dir" && as_dir=.
8304   for ac_exec_ext in '' $ac_executable_extensions; do
8305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8306     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8308     break 2
8309   fi
8310 done
8311 done
8312
8313   ;;
8314 esac
8315 fi
8316 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8317
8318 if test -n "$OBJDUMP_FOR_TARGET"; then
8319   echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8320 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8321 else
8322   echo "$as_me:$LINENO: result: no" >&5
8323 echo "${ECHO_T}no" >&6
8324 fi
8325
8326 fi
8327 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8328    if test -n "$with_build_time_tools"; then
8329   for ncn_progname in objdump; do
8330     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8331 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8332     if test -x $with_build_time_tools/${ncn_progname}; then
8333       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8334       echo "$as_me:$LINENO: result: yes" >&5
8335 echo "${ECHO_T}yes" >&6
8336       break
8337     else
8338       echo "$as_me:$LINENO: result: no" >&5
8339 echo "${ECHO_T}no" >&6
8340     fi
8341   done
8342 fi
8343
8344 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
8345   for ncn_progname in objdump; do
8346     if test -n "$ncn_target_tool_prefix"; then
8347       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8348 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8349 echo "$as_me:$LINENO: checking for $ac_word" >&5
8350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8351 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8352   echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354   if test -n "$OBJDUMP_FOR_TARGET"; then
8355   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8356 else
8357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 for as_dir in $PATH
8359 do
8360   IFS=$as_save_IFS
8361   test -z "$as_dir" && as_dir=.
8362   for ac_exec_ext in '' $ac_executable_extensions; do
8363   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8364     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8366     break 2
8367   fi
8368 done
8369 done
8370
8371 fi
8372 fi
8373 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
8374 if test -n "$OBJDUMP_FOR_TARGET"; then
8375   echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8376 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8377 else
8378   echo "$as_me:$LINENO: result: no" >&5
8379 echo "${ECHO_T}no" >&6
8380 fi
8381
8382     fi
8383     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
8384       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8385 set dummy ${ncn_progname}; ac_word=$2
8386 echo "$as_me:$LINENO: checking for $ac_word" >&5
8387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8388 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8389   echo $ECHO_N "(cached) $ECHO_C" >&6
8390 else
8391   if test -n "$OBJDUMP_FOR_TARGET"; then
8392   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8393 else
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395 for as_dir in $PATH
8396 do
8397   IFS=$as_save_IFS
8398   test -z "$as_dir" && as_dir=.
8399   for ac_exec_ext in '' $ac_executable_extensions; do
8400   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8401     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
8402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8403     break 2
8404   fi
8405 done
8406 done
8407
8408 fi
8409 fi
8410 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
8411 if test -n "$OBJDUMP_FOR_TARGET"; then
8412   echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8413 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8414 else
8415   echo "$as_me:$LINENO: result: no" >&5
8416 echo "${ECHO_T}no" >&6
8417 fi
8418
8419     fi
8420     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
8421   done
8422 fi
8423
8424 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
8425   set dummy objdump
8426   if test $build = $target ; then
8427     OBJDUMP_FOR_TARGET="$2"
8428   else
8429     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8430   fi
8431 fi
8432
8433 else
8434   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8435 fi
8436
8437
8438
8439
8440 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8441   if test -n "$with_build_time_tools"; then
8442     echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
8443 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
8444     if test -x $with_build_time_tools/ranlib; then
8445       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
8446       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8447       echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
8448 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
8449     else
8450       echo "$as_me:$LINENO: result: no" >&5
8451 echo "${ECHO_T}no" >&6
8452     fi
8453   elif test $build != $host && test $have_gcc_for_target = yes; then
8454     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
8455     test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
8456     ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8457   fi
8458 fi
8459 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8460   # Extract the first word of "ranlib", so it can be a program name with args.
8461 set dummy ranlib; ac_word=$2
8462 echo "$as_me:$LINENO: checking for $ac_word" >&5
8463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8464 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
8465   echo $ECHO_N "(cached) $ECHO_C" >&6
8466 else
8467   case $RANLIB_FOR_TARGET in
8468   [\\/]* | ?:[\\/]*)
8469   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
8470   ;;
8471   *)
8472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473 for as_dir in $gcc_cv_tool_dirs
8474 do
8475   IFS=$as_save_IFS
8476   test -z "$as_dir" && as_dir=.
8477   for ac_exec_ext in '' $ac_executable_extensions; do
8478   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8479     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8481     break 2
8482   fi
8483 done
8484 done
8485
8486   ;;
8487 esac
8488 fi
8489 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8490
8491 if test -n "$RANLIB_FOR_TARGET"; then
8492   echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8493 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8494 else
8495   echo "$as_me:$LINENO: result: no" >&5
8496 echo "${ECHO_T}no" >&6
8497 fi
8498
8499 fi
8500 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8501    if test -n "$with_build_time_tools"; then
8502   for ncn_progname in ranlib; do
8503     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8504 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8505     if test -x $with_build_time_tools/${ncn_progname}; then
8506       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8507       echo "$as_me:$LINENO: result: yes" >&5
8508 echo "${ECHO_T}yes" >&6
8509       break
8510     else
8511       echo "$as_me:$LINENO: result: no" >&5
8512 echo "${ECHO_T}no" >&6
8513     fi
8514   done
8515 fi
8516
8517 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
8518   for ncn_progname in ranlib; do
8519     if test -n "$ncn_target_tool_prefix"; then
8520       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8521 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8522 echo "$as_me:$LINENO: checking for $ac_word" >&5
8523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8524 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8525   echo $ECHO_N "(cached) $ECHO_C" >&6
8526 else
8527   if test -n "$RANLIB_FOR_TARGET"; then
8528   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8529 else
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 for as_dir in $PATH
8532 do
8533   IFS=$as_save_IFS
8534   test -z "$as_dir" && as_dir=.
8535   for ac_exec_ext in '' $ac_executable_extensions; do
8536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8537     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8539     break 2
8540   fi
8541 done
8542 done
8543
8544 fi
8545 fi
8546 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8547 if test -n "$RANLIB_FOR_TARGET"; then
8548   echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8549 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8550 else
8551   echo "$as_me:$LINENO: result: no" >&5
8552 echo "${ECHO_T}no" >&6
8553 fi
8554
8555     fi
8556     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
8557       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8558 set dummy ${ncn_progname}; ac_word=$2
8559 echo "$as_me:$LINENO: checking for $ac_word" >&5
8560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8561 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8562   echo $ECHO_N "(cached) $ECHO_C" >&6
8563 else
8564   if test -n "$RANLIB_FOR_TARGET"; then
8565   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8566 else
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8569 do
8570   IFS=$as_save_IFS
8571   test -z "$as_dir" && as_dir=.
8572   for ac_exec_ext in '' $ac_executable_extensions; do
8573   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8574     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
8575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8576     break 2
8577   fi
8578 done
8579 done
8580
8581 fi
8582 fi
8583 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8584 if test -n "$RANLIB_FOR_TARGET"; then
8585   echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8586 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8587 else
8588   echo "$as_me:$LINENO: result: no" >&5
8589 echo "${ECHO_T}no" >&6
8590 fi
8591
8592     fi
8593     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
8594   done
8595 fi
8596
8597 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
8598   set dummy ranlib
8599   if test $build = $target ; then
8600     RANLIB_FOR_TARGET="$2"
8601   else
8602     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
8603   fi
8604 fi
8605
8606 else
8607   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8608 fi
8609
8610
8611
8612
8613 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8614   if test -n "$with_build_time_tools"; then
8615     echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
8616 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
8617     if test -x $with_build_time_tools/strip; then
8618       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
8619       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8620       echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
8621 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
8622     else
8623       echo "$as_me:$LINENO: result: no" >&5
8624 echo "${ECHO_T}no" >&6
8625     fi
8626   elif test $build != $host && test $have_gcc_for_target = yes; then
8627     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
8628     test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
8629     ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8630   fi
8631 fi
8632 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8633   # Extract the first word of "strip", so it can be a program name with args.
8634 set dummy strip; ac_word=$2
8635 echo "$as_me:$LINENO: checking for $ac_word" >&5
8636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8637 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
8638   echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640   case $STRIP_FOR_TARGET in
8641   [\\/]* | ?:[\\/]*)
8642   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
8643   ;;
8644   *)
8645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646 for as_dir in $gcc_cv_tool_dirs
8647 do
8648   IFS=$as_save_IFS
8649   test -z "$as_dir" && as_dir=.
8650   for ac_exec_ext in '' $ac_executable_extensions; do
8651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8652     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8654     break 2
8655   fi
8656 done
8657 done
8658
8659   ;;
8660 esac
8661 fi
8662 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
8663
8664 if test -n "$STRIP_FOR_TARGET"; then
8665   echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8666 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
8667 else
8668   echo "$as_me:$LINENO: result: no" >&5
8669 echo "${ECHO_T}no" >&6
8670 fi
8671
8672 fi
8673 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8674    if test -n "$with_build_time_tools"; then
8675   for ncn_progname in strip; do
8676     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8677 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8678     if test -x $with_build_time_tools/${ncn_progname}; then
8679       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8680       echo "$as_me:$LINENO: result: yes" >&5
8681 echo "${ECHO_T}yes" >&6
8682       break
8683     else
8684       echo "$as_me:$LINENO: result: no" >&5
8685 echo "${ECHO_T}no" >&6
8686     fi
8687   done
8688 fi
8689
8690 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
8691   for ncn_progname in strip; do
8692     if test -n "$ncn_target_tool_prefix"; then
8693       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8694 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8695 echo "$as_me:$LINENO: checking for $ac_word" >&5
8696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8697 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8698   echo $ECHO_N "(cached) $ECHO_C" >&6
8699 else
8700   if test -n "$STRIP_FOR_TARGET"; then
8701   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
8702 else
8703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704 for as_dir in $PATH
8705 do
8706   IFS=$as_save_IFS
8707   test -z "$as_dir" && as_dir=.
8708   for ac_exec_ext in '' $ac_executable_extensions; do
8709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8710     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8712     break 2
8713   fi
8714 done
8715 done
8716
8717 fi
8718 fi
8719 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
8720 if test -n "$STRIP_FOR_TARGET"; then
8721   echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8722 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
8723 else
8724   echo "$as_me:$LINENO: result: no" >&5
8725 echo "${ECHO_T}no" >&6
8726 fi
8727
8728     fi
8729     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
8730       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8731 set dummy ${ncn_progname}; ac_word=$2
8732 echo "$as_me:$LINENO: checking for $ac_word" >&5
8733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8734 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8735   echo $ECHO_N "(cached) $ECHO_C" >&6
8736 else
8737   if test -n "$STRIP_FOR_TARGET"; then
8738   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
8739 else
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 for as_dir in $PATH
8742 do
8743   IFS=$as_save_IFS
8744   test -z "$as_dir" && as_dir=.
8745   for ac_exec_ext in '' $ac_executable_extensions; do
8746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8747     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
8748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8749     break 2
8750   fi
8751 done
8752 done
8753
8754 fi
8755 fi
8756 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
8757 if test -n "$STRIP_FOR_TARGET"; then
8758   echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8759 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
8760 else
8761   echo "$as_me:$LINENO: result: no" >&5
8762 echo "${ECHO_T}no" >&6
8763 fi
8764
8765     fi
8766     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
8767   done
8768 fi
8769
8770 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
8771   set dummy strip
8772   if test $build = $target ; then
8773     STRIP_FOR_TARGET="$2"
8774   else
8775     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8776   fi
8777 fi
8778
8779 else
8780   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
8781 fi
8782
8783
8784
8785
8786 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8787   if test -n "$with_build_time_tools"; then
8788     echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
8789 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
8790     if test -x $with_build_time_tools/windres; then
8791       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
8792       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
8793       echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
8794 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
8795     else
8796       echo "$as_me:$LINENO: result: no" >&5
8797 echo "${ECHO_T}no" >&6
8798     fi
8799   elif test $build != $host && test $have_gcc_for_target = yes; then
8800     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
8801     test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
8802     ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
8803   fi
8804 fi
8805 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8806   # Extract the first word of "windres", so it can be a program name with args.
8807 set dummy windres; ac_word=$2
8808 echo "$as_me:$LINENO: checking for $ac_word" >&5
8809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8810 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
8811   echo $ECHO_N "(cached) $ECHO_C" >&6
8812 else
8813   case $WINDRES_FOR_TARGET in
8814   [\\/]* | ?:[\\/]*)
8815   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
8816   ;;
8817   *)
8818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819 for as_dir in $gcc_cv_tool_dirs
8820 do
8821   IFS=$as_save_IFS
8822   test -z "$as_dir" && as_dir=.
8823   for ac_exec_ext in '' $ac_executable_extensions; do
8824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8825     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8827     break 2
8828   fi
8829 done
8830 done
8831
8832   ;;
8833 esac
8834 fi
8835 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
8836
8837 if test -n "$WINDRES_FOR_TARGET"; then
8838   echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8839 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
8840 else
8841   echo "$as_me:$LINENO: result: no" >&5
8842 echo "${ECHO_T}no" >&6
8843 fi
8844
8845 fi
8846 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8847    if test -n "$with_build_time_tools"; then
8848   for ncn_progname in windres; do
8849     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8850 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8851     if test -x $with_build_time_tools/${ncn_progname}; then
8852       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8853       echo "$as_me:$LINENO: result: yes" >&5
8854 echo "${ECHO_T}yes" >&6
8855       break
8856     else
8857       echo "$as_me:$LINENO: result: no" >&5
8858 echo "${ECHO_T}no" >&6
8859     fi
8860   done
8861 fi
8862
8863 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
8864   for ncn_progname in windres; do
8865     if test -n "$ncn_target_tool_prefix"; then
8866       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8867 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8868 echo "$as_me:$LINENO: checking for $ac_word" >&5
8869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8870 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
8871   echo $ECHO_N "(cached) $ECHO_C" >&6
8872 else
8873   if test -n "$WINDRES_FOR_TARGET"; then
8874   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
8875 else
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in $PATH
8878 do
8879   IFS=$as_save_IFS
8880   test -z "$as_dir" && as_dir=.
8881   for ac_exec_ext in '' $ac_executable_extensions; do
8882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8883     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8885     break 2
8886   fi
8887 done
8888 done
8889
8890 fi
8891 fi
8892 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
8893 if test -n "$WINDRES_FOR_TARGET"; then
8894   echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8895 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
8896 else
8897   echo "$as_me:$LINENO: result: no" >&5
8898 echo "${ECHO_T}no" >&6
8899 fi
8900
8901     fi
8902     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
8903       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8904 set dummy ${ncn_progname}; ac_word=$2
8905 echo "$as_me:$LINENO: checking for $ac_word" >&5
8906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8907 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
8908   echo $ECHO_N "(cached) $ECHO_C" >&6
8909 else
8910   if test -n "$WINDRES_FOR_TARGET"; then
8911   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
8912 else
8913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8914 for as_dir in $PATH
8915 do
8916   IFS=$as_save_IFS
8917   test -z "$as_dir" && as_dir=.
8918   for ac_exec_ext in '' $ac_executable_extensions; do
8919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8920     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
8921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8922     break 2
8923   fi
8924 done
8925 done
8926
8927 fi
8928 fi
8929 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
8930 if test -n "$WINDRES_FOR_TARGET"; then
8931   echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8932 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
8933 else
8934   echo "$as_me:$LINENO: result: no" >&5
8935 echo "${ECHO_T}no" >&6
8936 fi
8937
8938     fi
8939     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
8940   done
8941 fi
8942
8943 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
8944   set dummy windres
8945   if test $build = $target ; then
8946     WINDRES_FOR_TARGET="$2"
8947   else
8948     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
8949   fi
8950 fi
8951
8952 else
8953   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
8954 fi
8955
8956
8957 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
8958
8959 echo "$as_me:$LINENO: checking where to find the target ar" >&5
8960 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
8961 if test "x${build}" != "x${host}" ; then
8962   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
8963     # We already found the complete path
8964     echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
8965 echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
8966   else
8967     # Canadian cross, just use what we found
8968     echo "$as_me:$LINENO: result: pre-installed" >&5
8969 echo "${ECHO_T}pre-installed" >&6
8970   fi
8971 else
8972   ok=yes
8973   case " ${configdirs} " in
8974     *" binutils "*) ;;
8975     *) ok=no ;;
8976   esac
8977
8978   if test $ok = yes; then
8979     # An in-tree tool is available and we can use it
8980     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
8981     echo "$as_me:$LINENO: result: just compiled" >&5
8982 echo "${ECHO_T}just compiled" >&6
8983   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
8984     # We already found the complete path
8985     echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
8986 echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
8987   elif test "x$target" = "x$host"; then
8988     # We can use an host tool
8989     AR_FOR_TARGET='$(AR)'
8990     echo "$as_me:$LINENO: result: host tool" >&5
8991 echo "${ECHO_T}host tool" >&6
8992   else
8993     # We need a cross tool
8994     echo "$as_me:$LINENO: result: pre-installed" >&5
8995 echo "${ECHO_T}pre-installed" >&6
8996   fi
8997 fi
8998
8999 echo "$as_me:$LINENO: checking where to find the target as" >&5
9000 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
9001 if test "x${build}" != "x${host}" ; then
9002   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
9003     # We already found the complete path
9004     echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
9005 echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
9006   else
9007     # Canadian cross, just use what we found
9008     echo "$as_me:$LINENO: result: pre-installed" >&5
9009 echo "${ECHO_T}pre-installed" >&6
9010   fi
9011 else
9012   ok=yes
9013   case " ${configdirs} " in
9014     *" gas "*) ;;
9015     *) ok=no ;;
9016   esac
9017
9018   if test $ok = yes; then
9019     # An in-tree tool is available and we can use it
9020     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
9021     echo "$as_me:$LINENO: result: just compiled" >&5
9022 echo "${ECHO_T}just compiled" >&6
9023   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
9024     # We already found the complete path
9025     echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
9026 echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
9027   elif test "x$target" = "x$host"; then
9028     # We can use an host tool
9029     AS_FOR_TARGET='$(AS)'
9030     echo "$as_me:$LINENO: result: host tool" >&5
9031 echo "${ECHO_T}host tool" >&6
9032   else
9033     # We need a cross tool
9034     echo "$as_me:$LINENO: result: pre-installed" >&5
9035 echo "${ECHO_T}pre-installed" >&6
9036   fi
9037 fi
9038
9039 echo "$as_me:$LINENO: checking where to find the target cc" >&5
9040 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
9041 if test "x${build}" != "x${host}" ; then
9042   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
9043     # We already found the complete path
9044     echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
9045 echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
9046   else
9047     # Canadian cross, just use what we found
9048     echo "$as_me:$LINENO: result: pre-installed" >&5
9049 echo "${ECHO_T}pre-installed" >&6
9050   fi
9051 else
9052   ok=yes
9053   case " ${configdirs} " in
9054     *" gcc "*) ;;
9055     *) ok=no ;;
9056   esac
9057
9058   if test $ok = yes; then
9059     # An in-tree tool is available and we can use it
9060     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
9061     echo "$as_me:$LINENO: result: just compiled" >&5
9062 echo "${ECHO_T}just compiled" >&6
9063   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
9064     # We already found the complete path
9065     echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
9066 echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
9067   elif test "x$target" = "x$host"; then
9068     # We can use an host tool
9069     CC_FOR_TARGET='$(CC)'
9070     echo "$as_me:$LINENO: result: host tool" >&5
9071 echo "${ECHO_T}host tool" >&6
9072   else
9073     # We need a cross tool
9074     echo "$as_me:$LINENO: result: pre-installed" >&5
9075 echo "${ECHO_T}pre-installed" >&6
9076   fi
9077 fi
9078
9079 echo "$as_me:$LINENO: checking where to find the target c++" >&5
9080 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
9081 if test "x${build}" != "x${host}" ; then
9082   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9083     # We already found the complete path
9084     echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9085 echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
9086   else
9087     # Canadian cross, just use what we found
9088     echo "$as_me:$LINENO: result: pre-installed" >&5
9089 echo "${ECHO_T}pre-installed" >&6
9090   fi
9091 else
9092   ok=yes
9093   case " ${configdirs} " in
9094     *" gcc "*) ;;
9095     *) ok=no ;;
9096   esac
9097   case ,${enable_languages}, in
9098     *,c++,*) ;;
9099     *) ok=no ;;
9100   esac
9101   if test $ok = yes; then
9102     # An in-tree tool is available and we can use it
9103     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'
9104     echo "$as_me:$LINENO: result: just compiled" >&5
9105 echo "${ECHO_T}just compiled" >&6
9106   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9107     # We already found the complete path
9108     echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9109 echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
9110   elif test "x$target" = "x$host"; then
9111     # We can use an host tool
9112     CXX_FOR_TARGET='$(CXX)'
9113     echo "$as_me:$LINENO: result: host tool" >&5
9114 echo "${ECHO_T}host tool" >&6
9115   else
9116     # We need a cross tool
9117     echo "$as_me:$LINENO: result: pre-installed" >&5
9118 echo "${ECHO_T}pre-installed" >&6
9119   fi
9120 fi
9121
9122 echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
9123 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
9124 if test "x${build}" != "x${host}" ; then
9125   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9126     # We already found the complete path
9127     echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9128 echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
9129   else
9130     # Canadian cross, just use what we found
9131     echo "$as_me:$LINENO: result: pre-installed" >&5
9132 echo "${ECHO_T}pre-installed" >&6
9133   fi
9134 else
9135   ok=yes
9136   case " ${configdirs} " in
9137     *" gcc "*) ;;
9138     *) ok=no ;;
9139   esac
9140   case ,${enable_languages}, in
9141     *,c++,*) ;;
9142     *) ok=no ;;
9143   esac
9144   if test $ok = yes; then
9145     # An in-tree tool is available and we can use it
9146     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'
9147     echo "$as_me:$LINENO: result: just compiled" >&5
9148 echo "${ECHO_T}just compiled" >&6
9149   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9150     # We already found the complete path
9151     echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9152 echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
9153   elif test "x$target" = "x$host"; then
9154     # We can use an host tool
9155     RAW_CXX_FOR_TARGET='$(CXX)'
9156     echo "$as_me:$LINENO: result: host tool" >&5
9157 echo "${ECHO_T}host tool" >&6
9158   else
9159     # We need a cross tool
9160     echo "$as_me:$LINENO: result: pre-installed" >&5
9161 echo "${ECHO_T}pre-installed" >&6
9162   fi
9163 fi
9164
9165 echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
9166 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
9167 if test "x${build}" != "x${host}" ; then
9168   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9169     # We already found the complete path
9170     echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9171 echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
9172   else
9173     # Canadian cross, just use what we found
9174     echo "$as_me:$LINENO: result: pre-installed" >&5
9175 echo "${ECHO_T}pre-installed" >&6
9176   fi
9177 else
9178   ok=yes
9179   case " ${configdirs} " in
9180     *" binutils "*) ;;
9181     *) ok=no ;;
9182   esac
9183
9184   if test $ok = yes; then
9185     # An in-tree tool is available and we can use it
9186     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
9187     echo "$as_me:$LINENO: result: just compiled" >&5
9188 echo "${ECHO_T}just compiled" >&6
9189   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9190     # We already found the complete path
9191     echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9192 echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
9193   elif test "x$target" = "x$host"; then
9194     # We can use an host tool
9195     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
9196     echo "$as_me:$LINENO: result: host tool" >&5
9197 echo "${ECHO_T}host tool" >&6
9198   else
9199     # We need a cross tool
9200     echo "$as_me:$LINENO: result: pre-installed" >&5
9201 echo "${ECHO_T}pre-installed" >&6
9202   fi
9203 fi
9204
9205 echo "$as_me:$LINENO: checking where to find the target gcc" >&5
9206 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
9207 if test "x${build}" != "x${host}" ; then
9208   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9209     # We already found the complete path
9210     echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9211 echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
9212   else
9213     # Canadian cross, just use what we found
9214     echo "$as_me:$LINENO: result: pre-installed" >&5
9215 echo "${ECHO_T}pre-installed" >&6
9216   fi
9217 else
9218   ok=yes
9219   case " ${configdirs} " in
9220     *" gcc "*) ;;
9221     *) ok=no ;;
9222   esac
9223
9224   if test $ok = yes; then
9225     # An in-tree tool is available and we can use it
9226     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
9227     echo "$as_me:$LINENO: result: just compiled" >&5
9228 echo "${ECHO_T}just compiled" >&6
9229   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9230     # We already found the complete path
9231     echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9232 echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
9233   elif test "x$target" = "x$host"; then
9234     # We can use an host tool
9235     GCC_FOR_TARGET='$()'
9236     echo "$as_me:$LINENO: result: host tool" >&5
9237 echo "${ECHO_T}host tool" >&6
9238   else
9239     # We need a cross tool
9240     echo "$as_me:$LINENO: result: pre-installed" >&5
9241 echo "${ECHO_T}pre-installed" >&6
9242   fi
9243 fi
9244
9245 echo "$as_me:$LINENO: checking where to find the target gcj" >&5
9246 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
9247 if test "x${build}" != "x${host}" ; then
9248   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9249     # We already found the complete path
9250     echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9251 echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
9252   else
9253     # Canadian cross, just use what we found
9254     echo "$as_me:$LINENO: result: pre-installed" >&5
9255 echo "${ECHO_T}pre-installed" >&6
9256   fi
9257 else
9258   ok=yes
9259   case " ${configdirs} " in
9260     *" gcc "*) ;;
9261     *) ok=no ;;
9262   esac
9263   case ,${enable_languages}, in
9264     *,java,*) ;;
9265     *) ok=no ;;
9266   esac
9267   if test $ok = yes; then
9268     # An in-tree tool is available and we can use it
9269     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
9270     echo "$as_me:$LINENO: result: just compiled" >&5
9271 echo "${ECHO_T}just compiled" >&6
9272   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9273     # We already found the complete path
9274     echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9275 echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
9276   elif test "x$target" = "x$host"; then
9277     # We can use an host tool
9278     GCJ_FOR_TARGET='$(GCJ)'
9279     echo "$as_me:$LINENO: result: host tool" >&5
9280 echo "${ECHO_T}host tool" >&6
9281   else
9282     # We need a cross tool
9283     echo "$as_me:$LINENO: result: pre-installed" >&5
9284 echo "${ECHO_T}pre-installed" >&6
9285   fi
9286 fi
9287
9288 echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
9289 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
9290 if test "x${build}" != "x${host}" ; then
9291   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9292     # We already found the complete path
9293     echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9294 echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
9295   else
9296     # Canadian cross, just use what we found
9297     echo "$as_me:$LINENO: result: pre-installed" >&5
9298 echo "${ECHO_T}pre-installed" >&6
9299   fi
9300 else
9301   ok=yes
9302   case " ${configdirs} " in
9303     *" gcc "*) ;;
9304     *) ok=no ;;
9305   esac
9306   case ,${enable_languages}, in
9307     *,fortran,*) ;;
9308     *) ok=no ;;
9309   esac
9310   if test $ok = yes; then
9311     # An in-tree tool is available and we can use it
9312     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
9313     echo "$as_me:$LINENO: result: just compiled" >&5
9314 echo "${ECHO_T}just compiled" >&6
9315   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9316     # We already found the complete path
9317     echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9318 echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
9319   elif test "x$target" = "x$host"; then
9320     # We can use an host tool
9321     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
9322     echo "$as_me:$LINENO: result: host tool" >&5
9323 echo "${ECHO_T}host tool" >&6
9324   else
9325     # We need a cross tool
9326     echo "$as_me:$LINENO: result: pre-installed" >&5
9327 echo "${ECHO_T}pre-installed" >&6
9328   fi
9329 fi
9330
9331 echo "$as_me:$LINENO: checking where to find the target ld" >&5
9332 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
9333 if test "x${build}" != "x${host}" ; then
9334   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9335     # We already found the complete path
9336     echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9337 echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
9338   else
9339     # Canadian cross, just use what we found
9340     echo "$as_me:$LINENO: result: pre-installed" >&5
9341 echo "${ECHO_T}pre-installed" >&6
9342   fi
9343 else
9344   ok=yes
9345   case " ${configdirs} " in
9346     *" ld "*) ;;
9347     *) ok=no ;;
9348   esac
9349
9350   if test $ok = yes; then
9351     # An in-tree tool is available and we can use it
9352     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
9353     echo "$as_me:$LINENO: result: just compiled" >&5
9354 echo "${ECHO_T}just compiled" >&6
9355   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9356     # We already found the complete path
9357     echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9358 echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
9359   elif test "x$target" = "x$host"; then
9360     # We can use an host tool
9361     LD_FOR_TARGET='$(LD)'
9362     echo "$as_me:$LINENO: result: host tool" >&5
9363 echo "${ECHO_T}host tool" >&6
9364   else
9365     # We need a cross tool
9366     echo "$as_me:$LINENO: result: pre-installed" >&5
9367 echo "${ECHO_T}pre-installed" >&6
9368   fi
9369 fi
9370
9371 echo "$as_me:$LINENO: checking where to find the target lipo" >&5
9372 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
9373 if test "x${build}" != "x${host}" ; then
9374   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9375     # We already found the complete path
9376     echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9377 echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
9378   else
9379     # Canadian cross, just use what we found
9380     echo "$as_me:$LINENO: result: pre-installed" >&5
9381 echo "${ECHO_T}pre-installed" >&6
9382   fi
9383 else
9384   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9385     # We already found the complete path
9386     echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9387 echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
9388   elif test "x$target" = "x$host"; then
9389     # We can use an host tool
9390     LIPO_FOR_TARGET='$(LIPO)'
9391     echo "$as_me:$LINENO: result: host tool" >&5
9392 echo "${ECHO_T}host tool" >&6
9393   else
9394     # We need a cross tool
9395     echo "$as_me:$LINENO: result: pre-installed" >&5
9396 echo "${ECHO_T}pre-installed" >&6
9397   fi
9398 fi
9399
9400 echo "$as_me:$LINENO: checking where to find the target nm" >&5
9401 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
9402 if test "x${build}" != "x${host}" ; then
9403   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9404     # We already found the complete path
9405     echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9406 echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
9407   else
9408     # Canadian cross, just use what we found
9409     echo "$as_me:$LINENO: result: pre-installed" >&5
9410 echo "${ECHO_T}pre-installed" >&6
9411   fi
9412 else
9413   ok=yes
9414   case " ${configdirs} " in
9415     *" binutils "*) ;;
9416     *) ok=no ;;
9417   esac
9418
9419   if test $ok = yes; then
9420     # An in-tree tool is available and we can use it
9421     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
9422     echo "$as_me:$LINENO: result: just compiled" >&5
9423 echo "${ECHO_T}just compiled" >&6
9424   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9425     # We already found the complete path
9426     echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9427 echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
9428   elif test "x$target" = "x$host"; then
9429     # We can use an host tool
9430     NM_FOR_TARGET='$(NM)'
9431     echo "$as_me:$LINENO: result: host tool" >&5
9432 echo "${ECHO_T}host tool" >&6
9433   else
9434     # We need a cross tool
9435     echo "$as_me:$LINENO: result: pre-installed" >&5
9436 echo "${ECHO_T}pre-installed" >&6
9437   fi
9438 fi
9439
9440 echo "$as_me:$LINENO: checking where to find the target objdump" >&5
9441 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
9442 if test "x${build}" != "x${host}" ; then
9443   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9444     # We already found the complete path
9445     echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9446 echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
9447   else
9448     # Canadian cross, just use what we found
9449     echo "$as_me:$LINENO: result: pre-installed" >&5
9450 echo "${ECHO_T}pre-installed" >&6
9451   fi
9452 else
9453   ok=yes
9454   case " ${configdirs} " in
9455     *" binutils "*) ;;
9456     *) ok=no ;;
9457   esac
9458
9459   if test $ok = yes; then
9460     # An in-tree tool is available and we can use it
9461     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
9462     echo "$as_me:$LINENO: result: just compiled" >&5
9463 echo "${ECHO_T}just compiled" >&6
9464   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9465     # We already found the complete path
9466     echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9467 echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
9468   elif test "x$target" = "x$host"; then
9469     # We can use an host tool
9470     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
9471     echo "$as_me:$LINENO: result: host tool" >&5
9472 echo "${ECHO_T}host tool" >&6
9473   else
9474     # We need a cross tool
9475     echo "$as_me:$LINENO: result: pre-installed" >&5
9476 echo "${ECHO_T}pre-installed" >&6
9477   fi
9478 fi
9479
9480 echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
9481 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
9482 if test "x${build}" != "x${host}" ; then
9483   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9484     # We already found the complete path
9485     echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9486 echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
9487   else
9488     # Canadian cross, just use what we found
9489     echo "$as_me:$LINENO: result: pre-installed" >&5
9490 echo "${ECHO_T}pre-installed" >&6
9491   fi
9492 else
9493   ok=yes
9494   case " ${configdirs} " in
9495     *" binutils "*) ;;
9496     *) ok=no ;;
9497   esac
9498
9499   if test $ok = yes; then
9500     # An in-tree tool is available and we can use it
9501     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
9502     echo "$as_me:$LINENO: result: just compiled" >&5
9503 echo "${ECHO_T}just compiled" >&6
9504   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9505     # We already found the complete path
9506     echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9507 echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
9508   elif test "x$target" = "x$host"; then
9509     # We can use an host tool
9510     RANLIB_FOR_TARGET='$(RANLIB)'
9511     echo "$as_me:$LINENO: result: host tool" >&5
9512 echo "${ECHO_T}host tool" >&6
9513   else
9514     # We need a cross tool
9515     echo "$as_me:$LINENO: result: pre-installed" >&5
9516 echo "${ECHO_T}pre-installed" >&6
9517   fi
9518 fi
9519
9520 echo "$as_me:$LINENO: checking where to find the target strip" >&5
9521 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
9522 if test "x${build}" != "x${host}" ; then
9523   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9524     # We already found the complete path
9525     echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9526 echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
9527   else
9528     # Canadian cross, just use what we found
9529     echo "$as_me:$LINENO: result: pre-installed" >&5
9530 echo "${ECHO_T}pre-installed" >&6
9531   fi
9532 else
9533   ok=yes
9534   case " ${configdirs} " in
9535     *" binutils "*) ;;
9536     *) ok=no ;;
9537   esac
9538
9539   if test $ok = yes; then
9540     # An in-tree tool is available and we can use it
9541     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
9542     echo "$as_me:$LINENO: result: just compiled" >&5
9543 echo "${ECHO_T}just compiled" >&6
9544   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9545     # We already found the complete path
9546     echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9547 echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
9548   elif test "x$target" = "x$host"; then
9549     # We can use an host tool
9550     STRIP_FOR_TARGET='$(STRIP)'
9551     echo "$as_me:$LINENO: result: host tool" >&5
9552 echo "${ECHO_T}host tool" >&6
9553   else
9554     # We need a cross tool
9555     echo "$as_me:$LINENO: result: pre-installed" >&5
9556 echo "${ECHO_T}pre-installed" >&6
9557   fi
9558 fi
9559
9560 echo "$as_me:$LINENO: checking where to find the target windres" >&5
9561 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
9562 if test "x${build}" != "x${host}" ; then
9563   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9564     # We already found the complete path
9565     echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9566 echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
9567   else
9568     # Canadian cross, just use what we found
9569     echo "$as_me:$LINENO: result: pre-installed" >&5
9570 echo "${ECHO_T}pre-installed" >&6
9571   fi
9572 else
9573   ok=yes
9574   case " ${configdirs} " in
9575     *" binutils "*) ;;
9576     *) ok=no ;;
9577   esac
9578
9579   if test $ok = yes; then
9580     # An in-tree tool is available and we can use it
9581     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
9582     echo "$as_me:$LINENO: result: just compiled" >&5
9583 echo "${ECHO_T}just compiled" >&6
9584   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9585     # We already found the complete path
9586     echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9587 echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
9588   elif test "x$target" = "x$host"; then
9589     # We can use an host tool
9590     WINDRES_FOR_TARGET='$(WINDRES)'
9591     echo "$as_me:$LINENO: result: host tool" >&5
9592 echo "${ECHO_T}host tool" >&6
9593   else
9594     # We need a cross tool
9595     echo "$as_me:$LINENO: result: pre-installed" >&5
9596 echo "${ECHO_T}pre-installed" >&6
9597   fi
9598 fi
9599
9600
9601
9602
9603
9604 # Certain tools may need extra flags.
9605 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
9606 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
9607 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
9608
9609 # When building target libraries, except in a Canadian cross, we use
9610 # the same toolchain as the compiler we just built.
9611 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
9612 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
9613 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
9614 if test $host = $build; then
9615   case " $configdirs " in
9616     *" gcc "*)
9617       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
9618       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
9619       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
9620       ;;
9621   esac
9622 fi
9623
9624
9625
9626
9627
9628 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9629 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9630 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9631 if test "${enable_maintainer_mode+set}" = set; then
9632   enableval="$enable_maintainer_mode"
9633   USE_MAINTAINER_MODE=$enableval
9634 else
9635   USE_MAINTAINER_MODE=no
9636 fi;
9637 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9638 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9639
9640
9641 if test "$USE_MAINTAINER_MODE" = yes; then
9642   MAINTAINER_MODE_TRUE=
9643   MAINTAINER_MODE_FALSE='#'
9644 else
9645   MAINTAINER_MODE_TRUE='#'
9646   MAINTAINER_MODE_FALSE=
9647 fi
9648 MAINT=$MAINTAINER_MODE_TRUE
9649
9650 # ---------------------
9651 # GCC bootstrap support
9652 # ---------------------
9653
9654 # Stage specific cflags for build.
9655 stage1_cflags="-g"
9656 case $build in
9657   vax-*-*)
9658     case ${GCC} in
9659       yes) stage1_cflags="-g -Wa,-J" ;;
9660       *) stage1_cflags="-g -J" ;;
9661     esac ;;
9662 esac
9663
9664 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
9665 if test "$GCC" = yes; then
9666   saved_CFLAGS="$CFLAGS"
9667
9668   # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
9669   CFLAGS="$CFLAGS -fkeep-inline-functions"
9670   echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
9671 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
9672   cat >conftest.$ac_ext <<_ACEOF
9673 /* confdefs.h.  */
9674 _ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h.  */
9678
9679 int
9680 main ()
9681 {
9682
9683   ;
9684   return 0;
9685 }
9686 _ACEOF
9687 rm -f conftest.$ac_objext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9689   (eval $ac_compile) 2>conftest.er1
9690   ac_status=$?
9691   grep -v '^ *+' conftest.er1 >conftest.err
9692   rm -f conftest.er1
9693   cat conftest.err >&5
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); } &&
9696          { ac_try='test -z "$ac_c_werror_flag"
9697                          || test ! -s conftest.err'
9698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699   (eval $ac_try) 2>&5
9700   ac_status=$?
9701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702   (exit $ac_status); }; } &&
9703          { ac_try='test -s conftest.$ac_objext'
9704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705   (eval $ac_try) 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); }; }; then
9709   echo "$as_me:$LINENO: result: yes" >&5
9710 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
9711 else
9712   echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9714
9715 echo "$as_me:$LINENO: result: no" >&5
9716 echo "${ECHO_T}no" >&6
9717 fi
9718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9719
9720   CFLAGS="$saved_CFLAGS"
9721 fi
9722
9723
9724
9725 # Enable --enable-checking in stage1 of the compiler.
9726 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
9727 if test "${enable_stage1_checking+set}" = set; then
9728   enableval="$enable_stage1_checking"
9729   stage1_checking=--enable-checking=${enable_stage1_checking}
9730 else
9731   if test "x$enable_checking" = xno; then
9732   stage1_checking=--enable-checking
9733 else
9734   stage1_checking=--enable-checking${enable_checking+=}$enable_checking
9735 fi
9736 fi;
9737
9738
9739 # Enable -Werror in bootstrap stage2 and later.
9740 # Check whether --enable-werror or --disable-werror was given.
9741 if test "${enable_werror+set}" = set; then
9742   enableval="$enable_werror"
9743
9744 else
9745   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
9746   enable_werror=yes
9747 else
9748   enable_werror=no
9749 fi
9750 fi;
9751 case ${enable_werror} in
9752   yes) stage2_werror_flag="--enable-werror-always" ;;
9753   *) stage2_werror_flag="" ;;
9754 esac
9755
9756
9757 # Flags needed to enable html installing and building
9758
9759 # Check whether --with-datarootdir or --without-datarootdir was given.
9760 if test "${with_datarootdir+set}" = set; then
9761   withval="$with_datarootdir"
9762   datarootdir="\${prefix}/${withval}"
9763 else
9764   datarootdir="\${prefix}/share"
9765 fi;
9766
9767
9768 # Check whether --with-docdir or --without-docdir was given.
9769 if test "${with_docdir+set}" = set; then
9770   withval="$with_docdir"
9771   docdir="\${prefix}/${withval}"
9772 else
9773   docdir="\${datarootdir}/doc"
9774 fi;
9775
9776
9777 # Check whether --with-htmldir or --without-htmldir was given.
9778 if test "${with_htmldir+set}" = set; then
9779   withval="$with_htmldir"
9780   htmldir="\${prefix}/${withval}"
9781 else
9782   htmldir="\${docdir}"
9783 fi;
9784
9785
9786
9787
9788
9789           ac_config_files="$ac_config_files Makefile"
9790 cat >confcache <<\_ACEOF
9791 # This file is a shell script that caches the results of configure
9792 # tests run on this system so they can be shared between configure
9793 # scripts and configure runs, see configure's option --config-cache.
9794 # It is not useful on other systems.  If it contains results you don't
9795 # want to keep, you may remove or edit it.
9796 #
9797 # config.status only pays attention to the cache file if you give it
9798 # the --recheck option to rerun configure.
9799 #
9800 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9801 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9802 # following values.
9803
9804 _ACEOF
9805
9806 # The following way of writing the cache mishandles newlines in values,
9807 # but we know of no workaround that is simple, portable, and efficient.
9808 # So, don't put newlines in cache variables' values.
9809 # Ultrix sh set writes to stderr and can't be redirected directly,
9810 # and sets the high bit in the cache file unless we assign to the vars.
9811 {
9812   (set) 2>&1 |
9813     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9814     *ac_space=\ *)
9815       # `set' does not quote correctly, so add quotes (double-quote
9816       # substitution turns \\\\ into \\, and sed turns \\ into \).
9817       sed -n \
9818         "s/'/'\\\\''/g;
9819           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9820       ;;
9821     *)
9822       # `set' quotes correctly as required by POSIX, so do not add quotes.
9823       sed -n \
9824         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9825       ;;
9826     esac;
9827 } |
9828   sed '
9829      t clear
9830      : clear
9831      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9832      t end
9833      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9834      : end' >>confcache
9835 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9836   if test -w $cache_file; then
9837     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9838     cat confcache >$cache_file
9839   else
9840     echo "not updating unwritable cache $cache_file"
9841   fi
9842 fi
9843 rm -f confcache
9844
9845 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9846 # Let make expand exec_prefix.
9847 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9848
9849 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9850 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9851 # trailing colons and then remove the whole line if VPATH becomes empty
9852 # (actually we leave an empty line to preserve line numbers).
9853 if test "x$srcdir" = x.; then
9854   ac_vpsub='/^[  ]*VPATH[        ]*=/{
9855 s/:*\$(srcdir):*/:/;
9856 s/:*\${srcdir}:*/:/;
9857 s/:*@srcdir@:*/:/;
9858 s/^\([^=]*=[     ]*\):*/\1/;
9859 s/:*$//;
9860 s/^[^=]*=[       ]*$//;
9861 }'
9862 fi
9863
9864 # Transform confdefs.h into DEFS.
9865 # Protect against shell expansion while executing Makefile rules.
9866 # Protect against Makefile macro expansion.
9867 #
9868 # If the first sed substitution is executed (which looks for macros that
9869 # take arguments), then we branch to the quote section.  Otherwise,
9870 # look for a macro that doesn't take arguments.
9871 cat >confdef2opt.sed <<\_ACEOF
9872 t clear
9873 : clear
9874 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
9875 t quote
9876 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
9877 t quote
9878 d
9879 : quote
9880 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
9881 s,\[,\\&,g
9882 s,\],\\&,g
9883 s,\$,$$,g
9884 p
9885 _ACEOF
9886 # We use echo to avoid assuming a particular line-breaking character.
9887 # The extra dot is to prevent the shell from consuming trailing
9888 # line-breaks from the sub-command output.  A line-break within
9889 # single-quotes doesn't work because, if this script is created in a
9890 # platform that uses two characters for line-breaks (e.g., DOS), tr
9891 # would break.
9892 ac_LF_and_DOT=`echo; echo .`
9893 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
9894 rm -f confdef2opt.sed
9895
9896
9897 ac_libobjs=
9898 ac_ltlibobjs=
9899 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9900   # 1. Remove the extension, and $U if already installed.
9901   ac_i=`echo "$ac_i" |
9902          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9903   # 2. Add them.
9904   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9905   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9906 done
9907 LIBOBJS=$ac_libobjs
9908
9909 LTLIBOBJS=$ac_ltlibobjs
9910
9911
9912
9913 : ${CONFIG_STATUS=./config.status}
9914 ac_clean_files_save=$ac_clean_files
9915 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9916 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9917 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9918 cat >$CONFIG_STATUS <<_ACEOF
9919 #! $SHELL
9920 # Generated by $as_me.
9921 # Run this file to recreate the current configuration.
9922 # Compiler output produced by configure, useful for debugging
9923 # configure, is in config.log if it exists.
9924
9925 debug=false
9926 ac_cs_recheck=false
9927 ac_cs_silent=false
9928 SHELL=\${CONFIG_SHELL-$SHELL}
9929 _ACEOF
9930
9931 cat >>$CONFIG_STATUS <<\_ACEOF
9932 ## --------------------- ##
9933 ## M4sh Initialization.  ##
9934 ## --------------------- ##
9935
9936 # Be Bourne compatible
9937 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9938   emulate sh
9939   NULLCMD=:
9940   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9941   # is contrary to our usage.  Disable this feature.
9942   alias -g '${1+"$@"}'='"$@"'
9943 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9944   set -o posix
9945 fi
9946 DUALCASE=1; export DUALCASE # for MKS sh
9947
9948 # Support unset when possible.
9949 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9950   as_unset=unset
9951 else
9952   as_unset=false
9953 fi
9954
9955
9956 # Work around bugs in pre-3.0 UWIN ksh.
9957 $as_unset ENV MAIL MAILPATH
9958 PS1='$ '
9959 PS2='> '
9960 PS4='+ '
9961
9962 # NLS nuisances.
9963 for as_var in \
9964   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9965   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9966   LC_TELEPHONE LC_TIME
9967 do
9968   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9969     eval $as_var=C; export $as_var
9970   else
9971     $as_unset $as_var
9972   fi
9973 done
9974
9975 # Required to use basename.
9976 if expr a : '\(a\)' >/dev/null 2>&1; then
9977   as_expr=expr
9978 else
9979   as_expr=false
9980 fi
9981
9982 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9983   as_basename=basename
9984 else
9985   as_basename=false
9986 fi
9987
9988
9989 # Name of the executable.
9990 as_me=`$as_basename "$0" ||
9991 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9992          X"$0" : 'X\(//\)$' \| \
9993          X"$0" : 'X\(/\)$' \| \
9994          .     : '\(.\)' 2>/dev/null ||
9995 echo X/"$0" |
9996     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9997           /^X\/\(\/\/\)$/{ s//\1/; q; }
9998           /^X\/\(\/\).*/{ s//\1/; q; }
9999           s/.*/./; q'`
10000
10001
10002 # PATH needs CR, and LINENO needs CR and PATH.
10003 # Avoid depending upon Character Ranges.
10004 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10005 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10006 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10007 as_cr_digits='0123456789'
10008 as_cr_alnum=$as_cr_Letters$as_cr_digits
10009
10010 # The user is always right.
10011 if test "${PATH_SEPARATOR+set}" != set; then
10012   echo "#! /bin/sh" >conf$$.sh
10013   echo  "exit 0"   >>conf$$.sh
10014   chmod +x conf$$.sh
10015   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10016     PATH_SEPARATOR=';'
10017   else
10018     PATH_SEPARATOR=:
10019   fi
10020   rm -f conf$$.sh
10021 fi
10022
10023
10024   as_lineno_1=$LINENO
10025   as_lineno_2=$LINENO
10026   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10027   test "x$as_lineno_1" != "x$as_lineno_2" &&
10028   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10029   # Find who we are.  Look in the path if we contain no path at all
10030   # relative or not.
10031   case $0 in
10032     *[\\/]* ) as_myself=$0 ;;
10033     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10034 for as_dir in $PATH
10035 do
10036   IFS=$as_save_IFS
10037   test -z "$as_dir" && as_dir=.
10038   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10039 done
10040
10041        ;;
10042   esac
10043   # We did not find ourselves, most probably we were run as `sh COMMAND'
10044   # in which case we are not to be found in the path.
10045   if test "x$as_myself" = x; then
10046     as_myself=$0
10047   fi
10048   if test ! -f "$as_myself"; then
10049     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10050 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10051    { (exit 1); exit 1; }; }
10052   fi
10053   case $CONFIG_SHELL in
10054   '')
10055     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10057 do
10058   IFS=$as_save_IFS
10059   test -z "$as_dir" && as_dir=.
10060   for as_base in sh bash ksh sh5; do
10061          case $as_dir in
10062          /*)
10063            if ("$as_dir/$as_base" -c '
10064   as_lineno_1=$LINENO
10065   as_lineno_2=$LINENO
10066   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10067   test "x$as_lineno_1" != "x$as_lineno_2" &&
10068   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10069              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10070              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10071              CONFIG_SHELL=$as_dir/$as_base
10072              export CONFIG_SHELL
10073              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10074            fi;;
10075          esac
10076        done
10077 done
10078 ;;
10079   esac
10080
10081   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10082   # uniformly replaced by the line number.  The first 'sed' inserts a
10083   # line-number line before each line; the second 'sed' does the real
10084   # work.  The second script uses 'N' to pair each line-number line
10085   # with the numbered line, and appends trailing '-' during
10086   # substitution so that $LINENO is not a special case at line end.
10087   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10088   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10089   sed '=' <$as_myself |
10090     sed '
10091       N
10092       s,$,-,
10093       : loop
10094       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10095       t loop
10096       s,-$,,
10097       s,^['$as_cr_digits']*\n,,
10098     ' >$as_me.lineno &&
10099   chmod +x $as_me.lineno ||
10100     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10101 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10102    { (exit 1); exit 1; }; }
10103
10104   # Don't try to exec as it changes $[0], causing all sort of problems
10105   # (the dirname of $[0] is not the place where we might find the
10106   # original and so on.  Autoconf is especially sensible to this).
10107   . ./$as_me.lineno
10108   # Exit status is that of the last command.
10109   exit
10110 }
10111
10112
10113 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10114   *c*,-n*) ECHO_N= ECHO_C='
10115 ' ECHO_T='      ' ;;
10116   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10117   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10118 esac
10119
10120 if expr a : '\(a\)' >/dev/null 2>&1; then
10121   as_expr=expr
10122 else
10123   as_expr=false
10124 fi
10125
10126 rm -f conf$$ conf$$.exe conf$$.file
10127 echo >conf$$.file
10128 if ln -s conf$$.file conf$$ 2>/dev/null; then
10129   # We could just check for DJGPP; but this test a) works b) is more generic
10130   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10131   if test -f conf$$.exe; then
10132     # Don't use ln at all; we don't have any links
10133     as_ln_s='cp -p'
10134   else
10135     as_ln_s='ln -s'
10136   fi
10137 elif ln conf$$.file conf$$ 2>/dev/null; then
10138   as_ln_s=ln
10139 else
10140   as_ln_s='cp -p'
10141 fi
10142 rm -f conf$$ conf$$.exe conf$$.file
10143
10144 if mkdir -p . 2>/dev/null; then
10145   as_mkdir_p=:
10146 else
10147   test -d ./-p && rmdir ./-p
10148   as_mkdir_p=false
10149 fi
10150
10151 as_executable_p="test -f"
10152
10153 # Sed expression to map a string onto a valid CPP name.
10154 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10155
10156 # Sed expression to map a string onto a valid variable name.
10157 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10158
10159
10160 # IFS
10161 # We need space, tab and new line, in precisely that order.
10162 as_nl='
10163 '
10164 IFS="   $as_nl"
10165
10166 # CDPATH.
10167 $as_unset CDPATH
10168
10169 exec 6>&1
10170
10171 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10172 # report actual input values of CONFIG_FILES etc. instead of their
10173 # values after options handling.  Logging --version etc. is OK.
10174 exec 5>>config.log
10175 {
10176   echo
10177   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10178 ## Running $as_me. ##
10179 _ASBOX
10180 } >&5
10181 cat >&5 <<_CSEOF
10182
10183 This file was extended by $as_me, which was
10184 generated by GNU Autoconf 2.59.  Invocation command line was
10185
10186   CONFIG_FILES    = $CONFIG_FILES
10187   CONFIG_HEADERS  = $CONFIG_HEADERS
10188   CONFIG_LINKS    = $CONFIG_LINKS
10189   CONFIG_COMMANDS = $CONFIG_COMMANDS
10190   $ $0 $@
10191
10192 _CSEOF
10193 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10194 echo >&5
10195 _ACEOF
10196
10197 # Files that config.status was made for.
10198 if test -n "$ac_config_files"; then
10199   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10200 fi
10201
10202 if test -n "$ac_config_headers"; then
10203   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10204 fi
10205
10206 if test -n "$ac_config_links"; then
10207   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10208 fi
10209
10210 if test -n "$ac_config_commands"; then
10211   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10212 fi
10213
10214 cat >>$CONFIG_STATUS <<\_ACEOF
10215
10216 ac_cs_usage="\
10217 \`$as_me' instantiates files from templates according to the
10218 current configuration.
10219
10220 Usage: $0 [OPTIONS] [FILE]...
10221
10222   -h, --help       print this help, then exit
10223   -V, --version    print version number, then exit
10224   -q, --quiet      do not print progress messages
10225   -d, --debug      don't remove temporary files
10226       --recheck    update $as_me by reconfiguring in the same conditions
10227   --file=FILE[:TEMPLATE]
10228                    instantiate the configuration file FILE
10229
10230 Configuration files:
10231 $config_files
10232
10233 Report bugs to <bug-autoconf@gnu.org>."
10234 _ACEOF
10235
10236 cat >>$CONFIG_STATUS <<_ACEOF
10237 ac_cs_version="\\
10238 config.status
10239 configured by $0, generated by GNU Autoconf 2.59,
10240   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10241
10242 Copyright (C) 2003 Free Software Foundation, Inc.
10243 This config.status script is free software; the Free Software Foundation
10244 gives unlimited permission to copy, distribute and modify it."
10245 srcdir=$srcdir
10246 INSTALL="$INSTALL"
10247 _ACEOF
10248
10249 cat >>$CONFIG_STATUS <<\_ACEOF
10250 # If no file are specified by the user, then we need to provide default
10251 # value.  By we need to know if files were specified by the user.
10252 ac_need_defaults=:
10253 while test $# != 0
10254 do
10255   case $1 in
10256   --*=*)
10257     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10258     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10259     ac_shift=:
10260     ;;
10261   -*)
10262     ac_option=$1
10263     ac_optarg=$2
10264     ac_shift=shift
10265     ;;
10266   *) # This is not an option, so the user has probably given explicit
10267      # arguments.
10268      ac_option=$1
10269      ac_need_defaults=false;;
10270   esac
10271
10272   case $ac_option in
10273   # Handling of the options.
10274 _ACEOF
10275 cat >>$CONFIG_STATUS <<\_ACEOF
10276   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10277     ac_cs_recheck=: ;;
10278   --version | --vers* | -V )
10279     echo "$ac_cs_version"; exit 0 ;;
10280   --he | --h)
10281     # Conflict between --help and --header
10282     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10283 Try \`$0 --help' for more information." >&5
10284 echo "$as_me: error: ambiguous option: $1
10285 Try \`$0 --help' for more information." >&2;}
10286    { (exit 1); exit 1; }; };;
10287   --help | --hel | -h )
10288     echo "$ac_cs_usage"; exit 0 ;;
10289   --debug | --d* | -d )
10290     debug=: ;;
10291   --file | --fil | --fi | --f )
10292     $ac_shift
10293     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10294     ac_need_defaults=false;;
10295   --header | --heade | --head | --hea )
10296     $ac_shift
10297     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10298     ac_need_defaults=false;;
10299   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10300   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10301     ac_cs_silent=: ;;
10302
10303   # This is an error.
10304   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10305 Try \`$0 --help' for more information." >&5
10306 echo "$as_me: error: unrecognized option: $1
10307 Try \`$0 --help' for more information." >&2;}
10308    { (exit 1); exit 1; }; } ;;
10309
10310   *) ac_config_targets="$ac_config_targets $1" ;;
10311
10312   esac
10313   shift
10314 done
10315
10316 ac_configure_extra_args=
10317
10318 if $ac_cs_silent; then
10319   exec 6>/dev/null
10320   ac_configure_extra_args="$ac_configure_extra_args --silent"
10321 fi
10322
10323 _ACEOF
10324 cat >>$CONFIG_STATUS <<_ACEOF
10325 if \$ac_cs_recheck; then
10326   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10327   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10328 fi
10329
10330 _ACEOF
10331
10332
10333
10334
10335
10336 cat >>$CONFIG_STATUS <<\_ACEOF
10337 for ac_config_target in $ac_config_targets
10338 do
10339   case "$ac_config_target" in
10340   # Handling of arguments.
10341   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10342   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10343 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10344    { (exit 1); exit 1; }; };;
10345   esac
10346 done
10347
10348 # If the user did not use the arguments to specify the items to instantiate,
10349 # then the envvar interface is used.  Set only those that are not.
10350 # We use the long form for the default assignment because of an extremely
10351 # bizarre bug on SunOS 4.1.3.
10352 if $ac_need_defaults; then
10353   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10354 fi
10355
10356 # Have a temporary directory for convenience.  Make it in the build tree
10357 # simply because there is no reason to put it here, and in addition,
10358 # creating and moving files from /tmp can sometimes cause problems.
10359 # Create a temporary directory, and hook for its removal unless debugging.
10360 $debug ||
10361 {
10362   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10363   trap '{ (exit 1); exit 1; }' 1 2 13 15
10364 }
10365
10366 # Create a (secure) tmp directory for tmp files.
10367
10368 {
10369   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10370   test -n "$tmp" && test -d "$tmp"
10371 }  ||
10372 {
10373   tmp=./confstat$$-$RANDOM
10374   (umask 077 && mkdir $tmp)
10375 } ||
10376 {
10377    echo "$me: cannot create a temporary directory in ." >&2
10378    { (exit 1); exit 1; }
10379 }
10380
10381 _ACEOF
10382
10383 cat >>$CONFIG_STATUS <<_ACEOF
10384
10385 #
10386 # CONFIG_FILES section.
10387 #
10388
10389 # No need to generate the scripts if there are no CONFIG_FILES.
10390 # This happens for instance when ./config.status config.h
10391 if test -n "\$CONFIG_FILES"; then
10392   # Protect against being on the right side of a sed subst in config.status.
10393   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10394    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10395 s,@SHELL@,$SHELL,;t t
10396 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10397 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10398 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10399 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10400 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10401 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10402 s,@exec_prefix@,$exec_prefix,;t t
10403 s,@prefix@,$prefix,;t t
10404 s,@program_transform_name@,$program_transform_name,;t t
10405 s,@bindir@,$bindir,;t t
10406 s,@sbindir@,$sbindir,;t t
10407 s,@libexecdir@,$libexecdir,;t t
10408 s,@datadir@,$datadir,;t t
10409 s,@sysconfdir@,$sysconfdir,;t t
10410 s,@sharedstatedir@,$sharedstatedir,;t t
10411 s,@localstatedir@,$localstatedir,;t t
10412 s,@libdir@,$libdir,;t t
10413 s,@includedir@,$includedir,;t t
10414 s,@oldincludedir@,$oldincludedir,;t t
10415 s,@infodir@,$infodir,;t t
10416 s,@mandir@,$mandir,;t t
10417 s,@build_alias@,$build_alias,;t t
10418 s,@host_alias@,$host_alias,;t t
10419 s,@target_alias@,$target_alias,;t t
10420 s,@DEFS@,$DEFS,;t t
10421 s,@ECHO_C@,$ECHO_C,;t t
10422 s,@ECHO_N@,$ECHO_N,;t t
10423 s,@ECHO_T@,$ECHO_T,;t t
10424 s,@LIBS@,$LIBS,;t t
10425 s,@build@,$build,;t t
10426 s,@build_cpu@,$build_cpu,;t t
10427 s,@build_vendor@,$build_vendor,;t t
10428 s,@build_os@,$build_os,;t t
10429 s,@build_noncanonical@,$build_noncanonical,;t t
10430 s,@host_noncanonical@,$host_noncanonical,;t t
10431 s,@target_noncanonical@,$target_noncanonical,;t t
10432 s,@host@,$host,;t t
10433 s,@host_cpu@,$host_cpu,;t t
10434 s,@host_vendor@,$host_vendor,;t t
10435 s,@host_os@,$host_os,;t t
10436 s,@target@,$target,;t t
10437 s,@target_cpu@,$target_cpu,;t t
10438 s,@target_vendor@,$target_vendor,;t t
10439 s,@target_os@,$target_os,;t t
10440 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10441 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10442 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10443 s,@LN@,$LN,;t t
10444 s,@LN_S@,$LN_S,;t t
10445 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
10446 s,@build_libsubdir@,$build_libsubdir,;t t
10447 s,@build_subdir@,$build_subdir,;t t
10448 s,@host_subdir@,$host_subdir,;t t
10449 s,@target_subdir@,$target_subdir,;t t
10450 s,@CC@,$CC,;t t
10451 s,@CFLAGS@,$CFLAGS,;t t
10452 s,@LDFLAGS@,$LDFLAGS,;t t
10453 s,@CPPFLAGS@,$CPPFLAGS,;t t
10454 s,@ac_ct_CC@,$ac_ct_CC,;t t
10455 s,@EXEEXT@,$EXEEXT,;t t
10456 s,@OBJEXT@,$OBJEXT,;t t
10457 s,@GNATBIND@,$GNATBIND,;t t
10458 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
10459 s,@GNATMAKE@,$GNATMAKE,;t t
10460 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
10461 s,@do_compare@,$do_compare,;t t
10462 s,@gmplibs@,$gmplibs,;t t
10463 s,@gmpinc@,$gmpinc,;t t
10464 s,@stage1_languages@,$stage1_languages,;t t
10465 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
10466 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
10467 s,@tooldir@,$tooldir,;t t
10468 s,@build_tooldir@,$build_tooldir,;t t
10469 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
10470 s,@GDB_TK@,$GDB_TK,;t t
10471 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
10472 s,@build_configargs@,$build_configargs,;t t
10473 s,@build_configdirs@,$build_configdirs,;t t
10474 s,@host_configargs@,$host_configargs,;t t
10475 s,@configdirs@,$configdirs,;t t
10476 s,@target_configargs@,$target_configargs,;t t
10477 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
10478 s,@config_shell@,$config_shell,;t t
10479 s,@YACC@,$YACC,;t t
10480 s,@BISON@,$BISON,;t t
10481 s,@M4@,$M4,;t t
10482 s,@LEX@,$LEX,;t t
10483 s,@FLEX@,$FLEX,;t t
10484 s,@MAKEINFO@,$MAKEINFO,;t t
10485 s,@EXPECT@,$EXPECT,;t t
10486 s,@RUNTEST@,$RUNTEST,;t t
10487 s,@AR@,$AR,;t t
10488 s,@AS@,$AS,;t t
10489 s,@DLLTOOL@,$DLLTOOL,;t t
10490 s,@LD@,$LD,;t t
10491 s,@LIPO@,$LIPO,;t t
10492 s,@NM@,$NM,;t t
10493 s,@RANLIB@,$RANLIB,;t t
10494 s,@STRIP@,$STRIP,;t t
10495 s,@WINDRES@,$WINDRES,;t t
10496 s,@OBJCOPY@,$OBJCOPY,;t t
10497 s,@OBJDUMP@,$OBJDUMP,;t t
10498 s,@CXX@,$CXX,;t t
10499 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
10500 s,@CXXFLAGS@,$CXXFLAGS,;t t
10501 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
10502 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
10503 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
10504 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
10505 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
10506 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
10507 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
10508 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
10509 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
10510 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
10511 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
10512 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
10513 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
10514 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
10515 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
10516 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
10517 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
10518 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
10519 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
10520 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
10521 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10522 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10523 s,@MAINT@,$MAINT,;t t
10524 s,@stage1_cflags@,$stage1_cflags,;t t
10525 s,@stage1_checking@,$stage1_checking,;t t
10526 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
10527 s,@datarootdir@,$datarootdir,;t t
10528 s,@docdir@,$docdir,;t t
10529 s,@htmldir@,$htmldir,;t t
10530 s,@LIBOBJS@,$LIBOBJS,;t t
10531 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10532 /@serialization_dependencies@/r $serialization_dependencies
10533 s,@serialization_dependencies@,,;t t
10534 /@host_makefile_frag@/r $host_makefile_frag
10535 s,@host_makefile_frag@,,;t t
10536 /@target_makefile_frag@/r $target_makefile_frag
10537 s,@target_makefile_frag@,,;t t
10538 /@alphaieee_frag@/r $alphaieee_frag
10539 s,@alphaieee_frag@,,;t t
10540 /@ospace_frag@/r $ospace_frag
10541 s,@ospace_frag@,,;t t
10542 CEOF
10543
10544 _ACEOF
10545
10546   cat >>$CONFIG_STATUS <<\_ACEOF
10547   # Split the substitutions into bite-sized pieces for seds with
10548   # small command number limits, like on Digital OSF/1 and HP-UX.
10549   ac_max_sed_lines=48
10550   ac_sed_frag=1 # Number of current file.
10551   ac_beg=1 # First line for current file.
10552   ac_end=$ac_max_sed_lines # Line after last line for current file.
10553   ac_more_lines=:
10554   ac_sed_cmds=
10555   while $ac_more_lines; do
10556     if test $ac_beg -gt 1; then
10557       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10558     else
10559       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10560     fi
10561     if test ! -s $tmp/subs.frag; then
10562       ac_more_lines=false
10563     else
10564       # The purpose of the label and of the branching condition is to
10565       # speed up the sed processing (if there are no `@' at all, there
10566       # is no need to browse any of the substitutions).
10567       # These are the two extra sed commands mentioned above.
10568       (echo ':t
10569   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10570       if test -z "$ac_sed_cmds"; then
10571         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10572       else
10573         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10574       fi
10575       ac_sed_frag=`expr $ac_sed_frag + 1`
10576       ac_beg=$ac_end
10577       ac_end=`expr $ac_end + $ac_max_sed_lines`
10578     fi
10579   done
10580   if test -z "$ac_sed_cmds"; then
10581     ac_sed_cmds=cat
10582   fi
10583 fi # test -n "$CONFIG_FILES"
10584
10585 _ACEOF
10586 cat >>$CONFIG_STATUS <<\_ACEOF
10587 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10588   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10589   case $ac_file in
10590   - | *:- | *:-:* ) # input from stdin
10591         cat >$tmp/stdin
10592         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10593         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10594   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10595         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10596   * )   ac_file_in=$ac_file.in ;;
10597   esac
10598
10599   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10600   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10601 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10602          X"$ac_file" : 'X\(//\)[^/]' \| \
10603          X"$ac_file" : 'X\(//\)$' \| \
10604          X"$ac_file" : 'X\(/\)' \| \
10605          .     : '\(.\)' 2>/dev/null ||
10606 echo X"$ac_file" |
10607     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10608           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10609           /^X\(\/\/\)$/{ s//\1/; q; }
10610           /^X\(\/\).*/{ s//\1/; q; }
10611           s/.*/./; q'`
10612   { if $as_mkdir_p; then
10613     mkdir -p "$ac_dir"
10614   else
10615     as_dir="$ac_dir"
10616     as_dirs=
10617     while test ! -d "$as_dir"; do
10618       as_dirs="$as_dir $as_dirs"
10619       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10620 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10621          X"$as_dir" : 'X\(//\)[^/]' \| \
10622          X"$as_dir" : 'X\(//\)$' \| \
10623          X"$as_dir" : 'X\(/\)' \| \
10624          .     : '\(.\)' 2>/dev/null ||
10625 echo X"$as_dir" |
10626     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10627           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10628           /^X\(\/\/\)$/{ s//\1/; q; }
10629           /^X\(\/\).*/{ s//\1/; q; }
10630           s/.*/./; q'`
10631     done
10632     test ! -n "$as_dirs" || mkdir $as_dirs
10633   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10634 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10635    { (exit 1); exit 1; }; }; }
10636
10637   ac_builddir=.
10638
10639 if test "$ac_dir" != .; then
10640   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10641   # A "../" for each directory in $ac_dir_suffix.
10642   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10643 else
10644   ac_dir_suffix= ac_top_builddir=
10645 fi
10646
10647 case $srcdir in
10648   .)  # No --srcdir option.  We are building in place.
10649     ac_srcdir=.
10650     if test -z "$ac_top_builddir"; then
10651        ac_top_srcdir=.
10652     else
10653        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10654     fi ;;
10655   [\\/]* | ?:[\\/]* )  # Absolute path.
10656     ac_srcdir=$srcdir$ac_dir_suffix;
10657     ac_top_srcdir=$srcdir ;;
10658   *) # Relative path.
10659     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10660     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10661 esac
10662
10663 # Do not use `cd foo && pwd` to compute absolute paths, because
10664 # the directories may not exist.
10665 case `pwd` in
10666 .) ac_abs_builddir="$ac_dir";;
10667 *)
10668   case "$ac_dir" in
10669   .) ac_abs_builddir=`pwd`;;
10670   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10671   *) ac_abs_builddir=`pwd`/"$ac_dir";;
10672   esac;;
10673 esac
10674 case $ac_abs_builddir in
10675 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10676 *)
10677   case ${ac_top_builddir}. in
10678   .) ac_abs_top_builddir=$ac_abs_builddir;;
10679   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10680   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10681   esac;;
10682 esac
10683 case $ac_abs_builddir in
10684 .) ac_abs_srcdir=$ac_srcdir;;
10685 *)
10686   case $ac_srcdir in
10687   .) ac_abs_srcdir=$ac_abs_builddir;;
10688   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10689   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10690   esac;;
10691 esac
10692 case $ac_abs_builddir in
10693 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10694 *)
10695   case $ac_top_srcdir in
10696   .) ac_abs_top_srcdir=$ac_abs_builddir;;
10697   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10698   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10699   esac;;
10700 esac
10701
10702
10703   case $INSTALL in
10704   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10705   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10706   esac
10707
10708   if test x"$ac_file" != x-; then
10709     { echo "$as_me:$LINENO: creating $ac_file" >&5
10710 echo "$as_me: creating $ac_file" >&6;}
10711     rm -f "$ac_file"
10712   fi
10713   # Let's still pretend it is `configure' which instantiates (i.e., don't
10714   # use $as_me), people would be surprised to read:
10715   #    /* config.h.  Generated by config.status.  */
10716   if test x"$ac_file" = x-; then
10717     configure_input=
10718   else
10719     configure_input="$ac_file.  "
10720   fi
10721   configure_input=$configure_input"Generated from `echo $ac_file_in |
10722                                      sed 's,.*/,,'` by configure."
10723
10724   # First look for the input files in the build tree, otherwise in the
10725   # src tree.
10726   ac_file_inputs=`IFS=:
10727     for f in $ac_file_in; do
10728       case $f in
10729       -) echo $tmp/stdin ;;
10730       [\\/$]*)
10731          # Absolute (can't be DOS-style, as IFS=:)
10732          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10733 echo "$as_me: error: cannot find input file: $f" >&2;}
10734    { (exit 1); exit 1; }; }
10735          echo "$f";;
10736       *) # Relative
10737          if test -f "$f"; then
10738            # Build tree
10739            echo "$f"
10740          elif test -f "$srcdir/$f"; then
10741            # Source tree
10742            echo "$srcdir/$f"
10743          else
10744            # /dev/null tree
10745            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10746 echo "$as_me: error: cannot find input file: $f" >&2;}
10747    { (exit 1); exit 1; }; }
10748          fi;;
10749       esac
10750     done` || { (exit 1); exit 1; }
10751 _ACEOF
10752 cat >>$CONFIG_STATUS <<_ACEOF
10753   sed "$ac_vpsub
10754 $extrasub
10755 _ACEOF
10756 cat >>$CONFIG_STATUS <<\_ACEOF
10757 :t
10758 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10759 s,@configure_input@,$configure_input,;t t
10760 s,@srcdir@,$ac_srcdir,;t t
10761 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10762 s,@top_srcdir@,$ac_top_srcdir,;t t
10763 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10764 s,@builddir@,$ac_builddir,;t t
10765 s,@abs_builddir@,$ac_abs_builddir,;t t
10766 s,@top_builddir@,$ac_top_builddir,;t t
10767 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10768 s,@INSTALL@,$ac_INSTALL,;t t
10769 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10770   rm -f $tmp/stdin
10771   if test x"$ac_file" != x-; then
10772     mv $tmp/out $ac_file
10773   else
10774     cat $tmp/out
10775     rm -f $tmp/out
10776   fi
10777
10778 done
10779 _ACEOF
10780
10781 cat >>$CONFIG_STATUS <<\_ACEOF
10782
10783 { (exit 0); exit 0; }
10784 _ACEOF
10785 chmod +x $CONFIG_STATUS
10786 ac_clean_files=$ac_clean_files_save
10787
10788
10789 # configure is writing to config.log, and then calls config.status.
10790 # config.status does its own redirection, appending to config.log.
10791 # Unfortunately, on DOS this fails, as config.log is still kept open
10792 # by configure, so config.status won't be able to write to it; its
10793 # output is simply discarded.  So we exec the FD to /dev/null,
10794 # effectively closing config.log, so it can be properly (re)opened and
10795 # appended to by config.status.  When coming back to configure, we
10796 # need to make the FD available again.
10797 if test "$no_create" != yes; then
10798   ac_cs_success=:
10799   ac_config_status_args=
10800   test "$silent" = yes &&
10801     ac_config_status_args="$ac_config_status_args --quiet"
10802   exec 5>/dev/null
10803   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10804   exec 5>>config.log
10805   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10806   # would make configure fail if this is the last instruction.
10807   $ac_cs_success || { (exit 1); exit 1; }
10808 fi
10809