OSDN Git Service

2006-12-20 Adam Megacz <megacz@cs.berkeley.edu>
[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 host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GNATBIND ac_ct_GNATBIND do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES OBJCOPY OBJDUMP CXX CFLAGS_FOR_BUILD CXXFLAGS CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
276 ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
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-objc-gc       enable the use of Boehm's garbage collector with
815                           the GNU Objective-C runtime.
816   --enable-bootstrap           Enable bootstrapping yes if native build
817   --enable-serial-{host,target,build}-configure
818                           Force sequential configuration of
819                           sub-packages for the host, target or build
820                           machine, or all sub-packages
821   --enable-maintainer-mode enable make rules and dependencies not useful
822                           (and sometimes confusing) to the casual installer
823   --enable-stage1-checking=all   choose additional checking for stage1
824                           of the compiler.
825   --enable-werror         enable -Werror in bootstrap stage2 and later
826
827 Optional Packages:
828   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
829   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
830   --with-build-libsubdir=DIR  Directory where to find libraries for build system
831   --with-mpfr-dir=PATH    This option has been REMOVED
832   --with-mpfr=PATH        Specify prefix directory for installed MPFR package
833                           Equivalent to --with-mpfr-include=PATH/include
834                           plus --with-mpfr-lib=PATH/lib
835   --with-mpfr-include=PATH
836                           Specify directory for installed MPFR include files
837   --with-mpfr-lib=PATH    Specify the directory for the installed MPFR library
838   --with-gmp-dir=PATH     This option has been REMOVED
839   --with-gmp=PATH         Specify prefix directory for the installed GMP package
840                           Equivalent to --with-gmp-include=PATH/include
841                           plus --with-gmp-lib=PATH/lib
842   --with-gmp-include=PATH Specify directory for installed GMP include files
843   --with-gmp-lib=PATH     Specify the directory for the installed GMP library
844   --with-build-sysroot=sysroot
845                           use sysroot as the system root during the build
846   --with-build-time-tools=path
847                           use given path to find target tools during the build
848   --with-datarootdir    Use datarootdir as the data root directory.
849   --with-docdir Install documentation in this directory.
850   --with-htmldir        Install html in this directory.
851
852 Some influential environment variables:
853   CC          C compiler command
854   CFLAGS      C compiler flags
855   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
856               nonstandard directory <lib dir>
857   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
858               headers in a nonstandard directory <include dir>
859
860 Use these variables to override the choices made by `configure' or to help
861 it to find libraries and programs with nonstandard names/locations.
862
863 _ACEOF
864 fi
865
866 if test "$ac_init_help" = "recursive"; then
867   # If there are subdirs, report their specific --help.
868   ac_popdir=`pwd`
869   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
870     test -d $ac_dir || continue
871     ac_builddir=.
872
873 if test "$ac_dir" != .; then
874   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
875   # A "../" for each directory in $ac_dir_suffix.
876   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
877 else
878   ac_dir_suffix= ac_top_builddir=
879 fi
880
881 case $srcdir in
882   .)  # No --srcdir option.  We are building in place.
883     ac_srcdir=.
884     if test -z "$ac_top_builddir"; then
885        ac_top_srcdir=.
886     else
887        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
888     fi ;;
889   [\\/]* | ?:[\\/]* )  # Absolute path.
890     ac_srcdir=$srcdir$ac_dir_suffix;
891     ac_top_srcdir=$srcdir ;;
892   *) # Relative path.
893     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
894     ac_top_srcdir=$ac_top_builddir$srcdir ;;
895 esac
896
897 # Do not use `cd foo && pwd` to compute absolute paths, because
898 # the directories may not exist.
899 case `pwd` in
900 .) ac_abs_builddir="$ac_dir";;
901 *)
902   case "$ac_dir" in
903   .) ac_abs_builddir=`pwd`;;
904   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
905   *) ac_abs_builddir=`pwd`/"$ac_dir";;
906   esac;;
907 esac
908 case $ac_abs_builddir in
909 .) ac_abs_top_builddir=${ac_top_builddir}.;;
910 *)
911   case ${ac_top_builddir}. in
912   .) ac_abs_top_builddir=$ac_abs_builddir;;
913   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
914   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
915   esac;;
916 esac
917 case $ac_abs_builddir in
918 .) ac_abs_srcdir=$ac_srcdir;;
919 *)
920   case $ac_srcdir in
921   .) ac_abs_srcdir=$ac_abs_builddir;;
922   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
923   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
924   esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_top_srcdir=$ac_top_srcdir;;
928 *)
929   case $ac_top_srcdir in
930   .) ac_abs_top_srcdir=$ac_abs_builddir;;
931   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
932   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
933   esac;;
934 esac
935
936     cd $ac_dir
937     # Check for guested configure; otherwise get Cygnus style configure.
938     if test -f $ac_srcdir/configure.gnu; then
939       echo
940       $SHELL $ac_srcdir/configure.gnu  --help=recursive
941     elif test -f $ac_srcdir/configure; then
942       echo
943       $SHELL $ac_srcdir/configure  --help=recursive
944     elif test -f $ac_srcdir/configure.ac ||
945            test -f $ac_srcdir/configure.in; then
946       echo
947       $ac_configure --help
948     else
949       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950     fi
951     cd $ac_popdir
952   done
953 fi
954
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
957   cat <<\_ACEOF
958
959 Copyright (C) 2003 Free Software Foundation, Inc.
960 This configure script is free software; the Free Software Foundation
961 gives unlimited permission to copy, distribute and modify it.
962 _ACEOF
963   exit 0
964 fi
965 exec 5>config.log
966 cat >&5 <<_ACEOF
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
969
970 It was created by $as_me, which was
971 generated by GNU Autoconf 2.59.  Invocation command line was
972
973   $ $0 $@
974
975 _ACEOF
976 {
977 cat <<_ASUNAME
978 ## --------- ##
979 ## Platform. ##
980 ## --------- ##
981
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
990
991 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
992 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
995 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
996 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
997 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
998
999 _ASUNAME
1000
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1002 for as_dir in $PATH
1003 do
1004   IFS=$as_save_IFS
1005   test -z "$as_dir" && as_dir=.
1006   echo "PATH: $as_dir"
1007 done
1008
1009 } >&5
1010
1011 cat >&5 <<_ACEOF
1012
1013
1014 ## ----------- ##
1015 ## Core tests. ##
1016 ## ----------- ##
1017
1018 _ACEOF
1019
1020
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Strip out --silent because we don't want to record it for future runs.
1024 # Also quote any args containing shell meta-characters.
1025 # Make two passes to allow for proper duplicate-argument suppression.
1026 ac_configure_args=
1027 ac_configure_args0=
1028 ac_configure_args1=
1029 ac_sep=
1030 ac_must_keep_next=false
1031 for ac_pass in 1 2
1032 do
1033   for ac_arg
1034   do
1035     case $ac_arg in
1036     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1037     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038     | -silent | --silent | --silen | --sile | --sil)
1039       continue ;;
1040     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1041       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1042     esac
1043     case $ac_pass in
1044     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1045     2)
1046       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1047       if test $ac_must_keep_next = true; then
1048         ac_must_keep_next=false # Got value, back to normal.
1049       else
1050         case $ac_arg in
1051           *=* | --config-cache | -C | -disable-* | --disable-* \
1052           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1053           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1054           | -with-* | --with-* | -without-* | --without-* | --x)
1055             case "$ac_configure_args0 " in
1056               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1057             esac
1058             ;;
1059           -* ) ac_must_keep_next=true ;;
1060         esac
1061       fi
1062       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1063       # Get rid of the leading space.
1064       ac_sep=" "
1065       ;;
1066     esac
1067   done
1068 done
1069 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1070 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1071
1072 # When interrupted or exit'd, cleanup temporary files, and complete
1073 # config.log.  We remove comments because anyway the quotes in there
1074 # would cause problems or look ugly.
1075 # WARNING: Be sure not to use single quotes in there, as some shells,
1076 # such as our DU 5.0 friend, will then `close' the trap.
1077 trap 'exit_status=$?
1078   # Save into config.log some information that might help in debugging.
1079   {
1080     echo
1081
1082     cat <<\_ASBOX
1083 ## ---------------- ##
1084 ## Cache variables. ##
1085 ## ---------------- ##
1086 _ASBOX
1087     echo
1088     # The following way of writing the cache mishandles newlines in values,
1089 {
1090   (set) 2>&1 |
1091     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1092     *ac_space=\ *)
1093       sed -n \
1094         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1095           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1096       ;;
1097     *)
1098       sed -n \
1099         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1100       ;;
1101     esac;
1102 }
1103     echo
1104
1105     cat <<\_ASBOX
1106 ## ----------------- ##
1107 ## Output variables. ##
1108 ## ----------------- ##
1109 _ASBOX
1110     echo
1111     for ac_var in $ac_subst_vars
1112     do
1113       eval ac_val=$`echo $ac_var`
1114       echo "$ac_var='"'"'$ac_val'"'"'"
1115     done | sort
1116     echo
1117
1118     if test -n "$ac_subst_files"; then
1119       cat <<\_ASBOX
1120 ## ------------- ##
1121 ## Output files. ##
1122 ## ------------- ##
1123 _ASBOX
1124       echo
1125       for ac_var in $ac_subst_files
1126       do
1127         eval ac_val=$`echo $ac_var`
1128         echo "$ac_var='"'"'$ac_val'"'"'"
1129       done | sort
1130       echo
1131     fi
1132
1133     if test -s confdefs.h; then
1134       cat <<\_ASBOX
1135 ## ----------- ##
1136 ## confdefs.h. ##
1137 ## ----------- ##
1138 _ASBOX
1139       echo
1140       sed "/^$/d" confdefs.h | sort
1141       echo
1142     fi
1143     test "$ac_signal" != 0 &&
1144       echo "$as_me: caught signal $ac_signal"
1145     echo "$as_me: exit $exit_status"
1146   } >&5
1147   rm -f core *.core &&
1148   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1149     exit $exit_status
1150      ' 0
1151 for ac_signal in 1 2 13 15; do
1152   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1153 done
1154 ac_signal=0
1155
1156 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1157 rm -rf conftest* confdefs.h
1158 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1159 echo >confdefs.h
1160
1161 # Predefined preprocessor variables.
1162
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_NAME "$PACKAGE_NAME"
1165 _ACEOF
1166
1167
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1170 _ACEOF
1171
1172
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1175 _ACEOF
1176
1177
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_STRING "$PACKAGE_STRING"
1180 _ACEOF
1181
1182
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1185 _ACEOF
1186
1187
1188 # Let the site file select an alternate cache file if it wants to.
1189 # Prefer explicitly selected file to automatically selected ones.
1190 if test -z "$CONFIG_SITE"; then
1191   if test "x$prefix" != xNONE; then
1192     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1193   else
1194     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1195   fi
1196 fi
1197 for ac_site_file in $CONFIG_SITE; do
1198   if test -r "$ac_site_file"; then
1199     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1200 echo "$as_me: loading site script $ac_site_file" >&6;}
1201     sed 's/^/| /' "$ac_site_file" >&5
1202     . "$ac_site_file"
1203   fi
1204 done
1205
1206 if test -r "$cache_file"; then
1207   # Some versions of bash will fail to source /dev/null (special
1208   # files actually), so we avoid doing that.
1209   if test -f "$cache_file"; then
1210     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1211 echo "$as_me: loading cache $cache_file" >&6;}
1212     case $cache_file in
1213       [\\/]* | ?:[\\/]* ) . $cache_file;;
1214       *)                      . ./$cache_file;;
1215     esac
1216   fi
1217 else
1218   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1219 echo "$as_me: creating cache $cache_file" >&6;}
1220   >$cache_file
1221 fi
1222
1223 # Check that the precious variables saved in the cache have kept the same
1224 # value.
1225 ac_cache_corrupted=false
1226 for ac_var in `(set) 2>&1 |
1227                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1228   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1229   eval ac_new_set=\$ac_env_${ac_var}_set
1230   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1231   eval ac_new_val="\$ac_env_${ac_var}_value"
1232   case $ac_old_set,$ac_new_set in
1233     set,)
1234       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1235 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1236       ac_cache_corrupted=: ;;
1237     ,set)
1238       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1239 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1240       ac_cache_corrupted=: ;;
1241     ,);;
1242     *)
1243       if test "x$ac_old_val" != "x$ac_new_val"; then
1244         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1245 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1246         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1247 echo "$as_me:   former value:  $ac_old_val" >&2;}
1248         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1249 echo "$as_me:   current value: $ac_new_val" >&2;}
1250         ac_cache_corrupted=:
1251       fi;;
1252   esac
1253   # Pass precious variables to config.status.
1254   if test "$ac_new_set" = set; then
1255     case $ac_new_val in
1256     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1257       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1258     *) ac_arg=$ac_var=$ac_new_val ;;
1259     esac
1260     case " $ac_configure_args " in
1261       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1262       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1263     esac
1264   fi
1265 done
1266 if $ac_cache_corrupted; then
1267   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1268 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1269   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1270 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1271    { (exit 1); exit 1; }; }
1272 fi
1273
1274 ac_ext=c
1275 ac_cpp='$CPP $CPPFLAGS'
1276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299 ac_aux_dir=
1300 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1301   if test -f $ac_dir/install-sh; then
1302     ac_aux_dir=$ac_dir
1303     ac_install_sh="$ac_aux_dir/install-sh -c"
1304     break
1305   elif 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/shtool; then
1310     ac_aux_dir=$ac_dir
1311     ac_install_sh="$ac_aux_dir/shtool install -c"
1312     break
1313   fi
1314 done
1315 if test -z "$ac_aux_dir"; then
1316   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1317 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1318    { (exit 1); exit 1; }; }
1319 fi
1320 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1321 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1322 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1323
1324 # Make sure we can run config.sub.
1325 $ac_config_sub sun4 >/dev/null 2>&1 ||
1326   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1327 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1328    { (exit 1); exit 1; }; }
1329
1330 echo "$as_me:$LINENO: checking build system type" >&5
1331 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1332 if test "${ac_cv_build+set}" = set; then
1333   echo $ECHO_N "(cached) $ECHO_C" >&6
1334 else
1335   ac_cv_build_alias=$build_alias
1336 test -z "$ac_cv_build_alias" &&
1337   ac_cv_build_alias=`$ac_config_guess`
1338 test -z "$ac_cv_build_alias" &&
1339   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1340 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1341    { (exit 1); exit 1; }; }
1342 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1343   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1344 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1345    { (exit 1); exit 1; }; }
1346
1347 fi
1348 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1349 echo "${ECHO_T}$ac_cv_build" >&6
1350 build=$ac_cv_build
1351 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1352 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1353 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1354
1355
1356 echo "$as_me:$LINENO: checking host system type" >&5
1357 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1358 if test "${ac_cv_host+set}" = set; then
1359   echo $ECHO_N "(cached) $ECHO_C" >&6
1360 else
1361   ac_cv_host_alias=$host_alias
1362 test -z "$ac_cv_host_alias" &&
1363   ac_cv_host_alias=$ac_cv_build_alias
1364 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1365   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1366 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1367    { (exit 1); exit 1; }; }
1368
1369 fi
1370 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1371 echo "${ECHO_T}$ac_cv_host" >&6
1372 host=$ac_cv_host
1373 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1376
1377
1378 echo "$as_me:$LINENO: checking target system type" >&5
1379 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1380 if test "${ac_cv_target+set}" = set; then
1381   echo $ECHO_N "(cached) $ECHO_C" >&6
1382 else
1383   ac_cv_target_alias=$target_alias
1384 test "x$ac_cv_target_alias" = "x" &&
1385   ac_cv_target_alias=$ac_cv_host_alias
1386 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1387   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1388 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1389    { (exit 1); exit 1; }; }
1390
1391 fi
1392 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1393 echo "${ECHO_T}$ac_cv_target" >&6
1394 target=$ac_cv_target
1395 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1398
1399
1400 # The aliases save the names the user supplied, while $host etc.
1401 # will get canonicalized.
1402 test -n "$target_alias" &&
1403   test "$program_prefix$program_suffix$program_transform_name" = \
1404     NONENONEs,x,x, &&
1405   program_prefix=${target_alias}-
1406 test "$program_prefix" != NONE &&
1407   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1408 # Use a double $ so make ignores it.
1409 test "$program_suffix" != NONE &&
1410   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1411 # Double any \ or $.  echo might interpret backslashes.
1412 # By default was `s,x,x', remove it if useless.
1413 cat <<\_ACEOF >conftest.sed
1414 s/[\\$]/&&/g;s/;s,x,x,$//
1415 _ACEOF
1416 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1417 rm conftest.sed
1418
1419
1420 # Get 'install' or 'install-sh' and its variants.
1421 # Find a good install program.  We prefer a C program (faster),
1422 # so one script is as good as another.  But avoid the broken or
1423 # incompatible versions:
1424 # SysV /etc/install, /usr/sbin/install
1425 # SunOS /usr/etc/install
1426 # IRIX /sbin/install
1427 # AIX /bin/install
1428 # AmigaOS /C/install, which installs bootblocks on floppy discs
1429 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1430 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1431 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1432 # OS/2's system install, which has a completely different semantic
1433 # ./install, which can be erroneously created by make from ./install.sh.
1434 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1435 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1436 if test -z "$INSTALL"; then
1437 if test "${ac_cv_path_install+set}" = set; then
1438   echo $ECHO_N "(cached) $ECHO_C" >&6
1439 else
1440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441 for as_dir in $PATH
1442 do
1443   IFS=$as_save_IFS
1444   test -z "$as_dir" && as_dir=.
1445   # Account for people who put trailing slashes in PATH elements.
1446 case $as_dir/ in
1447   ./ | .// | /cC/* | \
1448   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1449   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1450   /usr/ucb/* ) ;;
1451   *)
1452     # OSF1 and SCO ODT 3.0 have their own names for install.
1453     # Don't use installbsd from OSF since it installs stuff as root
1454     # by default.
1455     for ac_prog in ginstall scoinst install; do
1456       for ac_exec_ext in '' $ac_executable_extensions; do
1457         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1458           if test $ac_prog = install &&
1459             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1460             # AIX install.  It has an incompatible calling convention.
1461             :
1462           elif test $ac_prog = install &&
1463             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1464             # program-specific install script used by HP pwplus--don't use.
1465             :
1466           else
1467             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1468             break 3
1469           fi
1470         fi
1471       done
1472     done
1473     ;;
1474 esac
1475 done
1476
1477
1478 fi
1479   if test "${ac_cv_path_install+set}" = set; then
1480     INSTALL=$ac_cv_path_install
1481   else
1482     # As a last resort, use the slow shell script.  We don't cache a
1483     # path for INSTALL within a source directory, because that will
1484     # break other packages using the cache if that directory is
1485     # removed, or if the path is relative.
1486     INSTALL=$ac_install_sh
1487   fi
1488 fi
1489 echo "$as_me:$LINENO: result: $INSTALL" >&5
1490 echo "${ECHO_T}$INSTALL" >&6
1491
1492 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1493 # It thinks the first close brace ends the variable substitution.
1494 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1495
1496 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1497
1498 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1499
1500 echo "$as_me:$LINENO: checking whether ln works" >&5
1501 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1502 if test "${acx_cv_prog_LN+set}" = set; then
1503   echo $ECHO_N "(cached) $ECHO_C" >&6
1504 else
1505   rm -f conftestdata_t
1506 echo >conftestdata_f
1507 if ln conftestdata_f conftestdata_t 2>/dev/null
1508 then
1509   acx_cv_prog_LN=ln
1510 else
1511   acx_cv_prog_LN=no
1512 fi
1513 rm -f conftestdata_f conftestdata_t
1514
1515 fi
1516 if test $acx_cv_prog_LN = no; then
1517   LN="cp"
1518   echo "$as_me:$LINENO: result: no, using $LN" >&5
1519 echo "${ECHO_T}no, using $LN" >&6
1520 else
1521   LN="$acx_cv_prog_LN"
1522   echo "$as_me:$LINENO: result: yes" >&5
1523 echo "${ECHO_T}yes" >&6
1524 fi
1525
1526 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1527 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1528 LN_S=$as_ln_s
1529 if test "$LN_S" = "ln -s"; then
1530   echo "$as_me:$LINENO: result: yes" >&5
1531 echo "${ECHO_T}yes" >&6
1532 else
1533   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1534 echo "${ECHO_T}no, using $LN_S" >&6
1535 fi
1536
1537
1538 ### we might need to use some other shell than /bin/sh for running subshells
1539 ### If we are on Windows, search for the shell.  This will permit people
1540 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1541 ### without also having to set CONFIG_SHELL.  This code will work when
1542 ### using bash, which sets OSTYPE.
1543 case "${OSTYPE}" in
1544 *win32*)
1545   if test x${CONFIG_SHELL} = x ; then
1546     if test ! -f /bin/sh ; then
1547       if test x${SHELL} != x && test -f ${SHELL} ; then
1548         CONFIG_SHELL=${SHELL}
1549         export CONFIG_SHELL
1550       else
1551         for prog in sh sh.exe bash bash.exe; do
1552           IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
1553           for dir in $PATH; do
1554             test -z "$dir" && dir=.
1555             if test -f $dir/$prog; then
1556               CONFIG_SHELL=$dir/$prog
1557               export CONFIG_SHELL
1558               break
1559             fi
1560           done
1561           IFS="$save_ifs"
1562           test -n "${CONFIG_SHELL}" && break
1563         done
1564       fi
1565     fi
1566   fi
1567   ;;
1568 esac
1569
1570 config_shell=${CONFIG_SHELL-/bin/sh}
1571
1572 progname=$0
1573 # if PWD already has a value, it is probably wrong.
1574 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1575
1576 # Export original configure arguments for use by sub-configures.  These
1577 # will be expanded by make, so quote '$'.
1578 tmp="$progname $@"
1579 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
1580 $tmp
1581 EOF_SED
1582 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
1583 rm -f conftestsed.out
1584
1585
1586 moveifchange=${srcdir}/move-if-change
1587
1588 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1589
1590 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
1591 # a relative path.
1592 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1593   INSTALL="${srcpwd}/install-sh -c"
1594 fi
1595
1596 # Set srcdir to "." if that's what it is.
1597 # This is important for multilib support.
1598 pwd=`${PWDCMD-pwd}`
1599 if test "${pwd}" = "${srcpwd}" ; then
1600   srcdir=.
1601 fi
1602
1603 topsrcdir=$srcpwd
1604
1605 extra_host_args=
1606
1607 ### To add a new directory to the tree, first choose whether it is a target
1608 ### or a host dependent tool.  Then put it into the appropriate list
1609 ### (library or tools, host or target), doing a dependency sort.
1610
1611 # Subdirs will be configured in the order listed in build_configdirs,
1612 # configdirs, or target_configdirs; see the serialization section below.
1613
1614 # Dependency sorting is only needed when *configuration* must be done in
1615 # a particular order.  In all cases a dependency should be specified in
1616 # the Makefile, whether or not it's implicitly specified here.
1617
1618 # Double entries in build_configdirs, configdirs, or target_configdirs may
1619 # cause circular dependencies and break everything horribly.
1620
1621 # these library is used by various programs built for the build
1622 # environment
1623 #
1624 build_libs="build-libiberty"
1625
1626 # these tools are built for the build environment
1627 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1628
1629 # these libraries are used by various programs built for the host environment
1630 #
1631 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
1632
1633 # these tools are built for the host environment
1634 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1635 # know that we are building the simulator.
1636 # binutils, gas and ld appear in that order because it makes sense to run
1637 # "make check" in that particular order.
1638 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"
1639
1640 # libgcj represents the runtime libraries only used by gcj.
1641 libgcj="target-libffi \
1642         target-zlib \
1643         target-qthreads \
1644         target-libjava"
1645
1646 # these libraries are built for the target environment, and are built after
1647 # the host libraries and the host tools (which may be a cross compiler)
1648 #
1649 target_libraries="target-libiberty \
1650                 target-libgloss \
1651                 target-newlib \
1652                 target-libstdc++-v3 \
1653                 target-libmudflap \
1654                 target-libssp \
1655                 target-libgfortran \
1656                 target-boehm-gc \
1657                 ${libgcj} \
1658                 target-libobjc \
1659                 target-libada \
1660                 target-libgomp"
1661
1662 # these tools are built using the target libraries, and are intended to
1663 # run only in the target environment
1664 #
1665 # note: any program that *uses* libraries that are in the "target_libraries"
1666 # list belongs in this list.  those programs are also very likely
1667 # candidates for the "native_only" list which follows
1668 #
1669 target_tools="target-examples target-groff target-gperf target-rda"
1670
1671 ################################################################################
1672
1673 ## All tools belong in one of the four categories, and are assigned above
1674 ## We assign ${configdirs} this way to remove all embedded newlines.  This
1675 ## is important because configure will choke if they ever get through.
1676 ## ${configdirs} is directories we build using the host tools.
1677 ## ${target_configdirs} is directories we build using the target tools.
1678 configdirs=`echo ${host_libs} ${host_tools}`
1679 target_configdirs=`echo ${target_libraries} ${target_tools}`
1680 build_configdirs=`echo ${build_libs} ${build_tools}`
1681
1682 ################################################################################
1683
1684 srcname="gnu development package"
1685
1686 # This gets set non-empty for some net releases of packages.
1687 appdirs=""
1688
1689 # Define is_cross_compiler to save on calls to 'test'.
1690 is_cross_compiler=
1691 if test x"${host}" = x"${target}" ; then
1692   is_cross_compiler=no
1693 else
1694   is_cross_compiler=yes
1695 fi
1696
1697 # Find the build and target subdir names.
1698  case ${build_alias} in
1699   "") build_noncanonical=${build} ;;
1700   *) build_noncanonical=${build_alias} ;;
1701 esac
1702
1703  case ${host_alias} in
1704   "") host_noncanonical=${build_noncanonical} ;;
1705   *) host_noncanonical=${host_alias} ;;
1706 esac
1707
1708  case ${target_alias} in
1709   "") target_noncanonical=${host_noncanonical} ;;
1710   *) target_noncanonical=${target_alias} ;;
1711 esac
1712
1713
1714 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1715 # have matching libraries, they should use host libraries: Makefile.tpl
1716 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1717 # However, they still use the build modules, because the corresponding
1718 # host modules (e.g. bison) are only built for the host when bootstrap
1719 # finishes. So:
1720 # - build_subdir is where we find build modules, and never changes.
1721 # - build_libsubdir is where we find build libraries, and can be overridden.
1722
1723 # Prefix 'build-' so this never conflicts with target_subdir.
1724 build_subdir="build-${build_noncanonical}"
1725
1726 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1727 if test "${with_build_libsubdir+set}" = set; then
1728   withval="$with_build_libsubdir"
1729   build_libsubdir="$withval"
1730 else
1731   build_libsubdir="$build_subdir"
1732 fi;
1733 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1734 if ( test $srcdir = . && test -d gcc ) \
1735    || test -d $srcdir/../host-${host_noncanonical}; then
1736   host_subdir="host-${host_noncanonical}"
1737 else
1738   host_subdir=.
1739 fi
1740 # No prefix.
1741 target_subdir=${target_noncanonical}
1742
1743
1744 # Skipdirs are removed silently.
1745 skipdirs=
1746 # Noconfigdirs are removed loudly.
1747 noconfigdirs=""
1748
1749 use_gnu_ld=
1750 # Make sure we don't let GNU ld be added if we didn't want it.
1751 if test x$with_gnu_ld = xno ; then
1752   use_gnu_ld=no
1753   noconfigdirs="$noconfigdirs ld"
1754 fi
1755
1756 use_gnu_as=
1757 # Make sure we don't let GNU as be added if we didn't want it.
1758 if test x$with_gnu_as = xno ; then
1759   use_gnu_as=no
1760   noconfigdirs="$noconfigdirs gas"
1761 fi
1762
1763 # some tools are so dependent upon X11 that if we're not building with X,
1764 # it's not even worth trying to configure, much less build, that tool.
1765
1766 case ${with_x} in
1767   yes | "") ;; # the default value for this tree is that X11 is available
1768   no)
1769     skipdirs="${skipdirs} tk itcl libgui"
1770     # We won't be able to build gdbtk without X.
1771     enable_gdbtk=no
1772     ;;
1773   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1774 esac
1775
1776 # Some tools are only suitable for building in a "native" situation.
1777 # Remove these if host!=target.
1778 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"
1779
1780 # Similarly, some are only suitable for cross toolchains.
1781 # Remove these if host=target.
1782 cross_only="target-libgloss target-newlib target-opcodes"
1783
1784 case $is_cross_compiler in
1785   no) skipdirs="${skipdirs} ${cross_only}" ;;
1786   yes) skipdirs="${skipdirs} ${native_only}" ;;
1787 esac
1788
1789 # If both --with-headers and --with-libs are specified, default to
1790 # --without-newlib.
1791 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1792    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1793   if test x"${with_newlib}" = x ; then
1794     with_newlib=no
1795   fi
1796 fi
1797
1798 # Recognize --with-newlib/--without-newlib.
1799 case ${with_newlib} in
1800   no) skipdirs="${skipdirs} target-newlib" ;;
1801   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1802 esac
1803
1804 # Configure extra directories which are host specific
1805
1806 case "${host}" in
1807   *-cygwin*)
1808     configdirs="$configdirs libtermcap" ;;
1809 esac
1810
1811 # A target can indicate whether a language isn't supported for some reason.
1812 # Only spaces may be used in this macro; not newlines or tabs.
1813 unsupported_languages=
1814
1815 # Remove more programs from consideration, based on the host or
1816 # target this usually means that a port of the program doesn't
1817 # exist yet.
1818
1819 case "${host}" in
1820   hppa*64*-*-*)
1821     noconfigdirs="$noconfigdirs byacc"
1822     ;;
1823   i[3456789]86-*-vsta)
1824     noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1825     ;;
1826   i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1827     noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1828     ;;
1829   i[3456789]86-*-mingw32*)
1830     # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1831     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1832     ;;
1833   i[3456789]86-*-beos*)
1834     noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1835     ;;
1836   *-*-cygwin*)
1837     noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1838     ;;
1839   *-*-netbsd*)
1840     noconfigdirs="$noconfigdirs rcs"
1841     ;;
1842   ppc*-*-pe)
1843     noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1844     ;;
1845   powerpc-*-beos*)
1846     noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1847     ;;
1848 esac
1849
1850
1851 # Check whether --enable-libada or --disable-libada was given.
1852 if test "${enable_libada+set}" = set; then
1853   enableval="$enable_libada"
1854   ENABLE_LIBADA=$enableval
1855 else
1856   ENABLE_LIBADA=yes
1857 fi;
1858 if test "${ENABLE_LIBADA}" != "yes" ; then
1859   noconfigdirs="$noconfigdirs gnattools"
1860 fi
1861
1862 # Check whether --enable-libssp or --disable-libssp was given.
1863 if test "${enable_libssp+set}" = set; then
1864   enableval="$enable_libssp"
1865   ENABLE_LIBSSP=$enableval
1866 else
1867   ENABLE_LIBSSP=yes
1868 fi;
1869
1870 # Save it here so that, even in case of --enable-libgcj, if the Java
1871 # front-end isn't enabled, we still get libgcj disabled.
1872 libgcj_saved=$libgcj
1873 case $enable_libgcj in
1874 yes)
1875   # If we reset it here, it won't get added to noconfigdirs in the
1876   # target-specific build rules, so it will be forcibly enabled
1877   # (unless the Java language itself isn't enabled).
1878   libgcj=
1879   ;;
1880 no)
1881   # Make sure we get it printed in the list of not supported target libs.
1882   noconfigdirs="$noconfigdirs ${libgcj}"
1883   ;;
1884 esac
1885
1886
1887 # Disable libmudflap on some systems.
1888 if test x$enable_libmudflap = x ; then
1889     case "${target}" in
1890     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1891         # Enable libmudflap by default in GNU and friends.
1892         ;;
1893     *-*-freebsd*)
1894         # Enable libmudflap by default in FreeBSD.
1895         ;;
1896     *)
1897         # Disable it by default everywhere else.
1898         noconfigdirs="$noconfigdirs target-libmudflap"
1899         ;;
1900     esac
1901 fi
1902
1903 # Disable libgomp on non POSIX hosted systems.
1904 if test x$enable_libgomp = x ; then
1905     # Enable libgomp by default on hosted POSIX systems.
1906     case "${target}" in
1907     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1908         ;;
1909     *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1910         ;;
1911     *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
1912         ;;
1913     *-*-darwin* | *-*-aix*)
1914         ;;
1915     *)
1916         noconfigdirs="$noconfigdirs target-libgomp"
1917         ;;
1918     esac
1919 fi
1920
1921
1922 case "${target}" in
1923   *-*-chorusos)
1924     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1925     ;;
1926   powerpc-*-darwin* | i[3456789]86-*-darwin*)
1927     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1928     noconfigdirs="$noconfigdirs sim target-rda"
1929     ;;
1930   *-*-darwin*)
1931     noconfigdirs="$noconfigdirs ld gas gdb gprof"
1932     noconfigdirs="$noconfigdirs sim target-rda"
1933     noconfigdirs="$noconfigdirs ${libgcj}"
1934     ;;
1935   *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1936     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1937     ;;
1938   *-*-freebsd*)
1939     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1940     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1941         && test -f /usr/local/include/gmp.h; then
1942       with_gmp=/usr/local
1943     fi
1944
1945     # Skip some stuff that's unsupported on some FreeBSD configurations.
1946     case "${target}" in
1947       i*86-*-*) ;;
1948       alpha*-*-*) ;;
1949       *)
1950         noconfigdirs="$noconfigdirs ${libgcj}"
1951         ;;
1952     esac
1953     ;;
1954   *-*-kaos*)
1955     # Remove unsupported stuff on all kaOS configurations.
1956     skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1957     skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1958     skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1959     noconfigdirs="$noconfigdirs target-libgloss"
1960     ;;
1961   *-*-netbsd*)
1962     # Skip some stuff on all NetBSD configurations.
1963     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1964
1965     # Skip some stuff that's unsupported on some NetBSD configurations.
1966     case "${target}" in
1967       i*86-*-netbsdelf*) ;;
1968       arm*-*-netbsdelf*) ;;
1969       *)
1970         noconfigdirs="$noconfigdirs ${libgcj}"
1971         ;;
1972     esac
1973     ;;
1974   *-*-netware*)
1975     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1976     ;;
1977   *-*-rtems*)
1978     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1979     ;;
1980     # The tpf target doesn't support gdb yet.
1981   *-*-tpf*)
1982     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1983     ;;
1984   *-*-uclinux*)
1985     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1986     ;;
1987   *-*-vxworks*)
1988     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1989     ;;
1990   alpha*-dec-osf*)
1991     # ld works, but does not support shared libraries.
1992     # newlib is not 64 bit ready.  I'm not sure about fileutils.
1993     # gas doesn't generate exception information.
1994     noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1995     ;;
1996   alpha*-*-*vms*)
1997     noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1998     ;;
1999   alpha*-*-linux*)
2000     # newlib is not 64 bit ready
2001     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2002     ;;
2003   alpha*-*-*)
2004     # newlib is not 64 bit ready
2005     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2006     ;;
2007   am33_2.0-*-linux*)
2008     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2009     ;;
2010   sh-*-linux*)
2011     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2012     ;;
2013   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2014     noconfigdirs="$noconfigdirs ${libgcj}"
2015     noconfigdirs="$noconfigdirs target-examples"
2016     noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2017     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2018     noconfigdirs="$noconfigdirs expect dejagnu"
2019     # the C++ libraries don't build on top of CE's C libraries
2020     noconfigdirs="$noconfigdirs target-libstdc++-v3"
2021     noconfigdirs="$noconfigdirs target-newlib"
2022     case "${host}" in
2023       *-*-cygwin*) ;; # keep gdb and readline
2024       *) noconfigdirs="$noconfigdirs gdb readline"
2025          ;;
2026     esac
2027     ;;
2028   arc-*-*)
2029     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2030     ;;
2031   arm-semi-aof )
2032     ;;
2033   arm-*-coff | strongarm-*-coff | xscale-*-coff)
2034     noconfigdirs="$noconfigdirs ${libgcj}"
2035     ;;
2036   arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2037     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2038     ;;
2039   arm*-*-linux-gnueabi)
2040     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2041     noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2042     ;;
2043   arm*-*-symbianelf*)
2044     noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2045     ;;
2046   arm-*-pe*)
2047     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2048     ;;
2049   thumb-*-coff)
2050     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2051     ;;
2052   thumb-*-elf)
2053     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2054     ;;
2055   thumb-*-pe)
2056     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2057     ;;
2058   arm-*-riscix*)
2059     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2060     ;;
2061   avr-*-*)
2062     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2063     ;;
2064   bfin-*-*)
2065     noconfigdirs="$noconfigdirs gdb"
2066     if test x${is_cross_compiler} != xno ; then
2067       target_configdirs="${target_configdirs} target-bsp target-cygmon"
2068     fi
2069     ;;
2070   c4x-*-* | tic4x-*-*)
2071     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2072     ;;
2073   c54x*-*-* | tic54x-*-*)
2074     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2075     ;;
2076   cris-*-* | crisv32-*-*)
2077     unsupported_languages="$unsupported_languages java"
2078     case "${target}" in
2079       *-*-aout)
2080         unsupported_languages="$unsupported_languages fortran"
2081         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2082       *-*-elf)
2083         unsupported_languages="$unsupported_languages fortran"
2084         noconfigdirs="$noconfigdirs target-boehm-gc";;
2085       *-*-linux*)
2086         noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2087       *)
2088         unsupported_languages="$unsupported_languages fortran"
2089         noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2090     esac
2091     ;;
2092   crx-*-*)
2093     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2094     ;;
2095   d10v-*-*)
2096     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2097     ;;
2098   d30v-*-*)
2099     noconfigdirs="$noconfigdirs ${libgcj} gdb"
2100     ;;
2101   fr30-*-elf*)
2102     noconfigdirs="$noconfigdirs ${libgcj} gdb"
2103     ;;
2104   frv-*-*)
2105     noconfigdirs="$noconfigdirs ${libgcj}"
2106     ;;
2107   h8300*-*-*)
2108     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2109     ;;
2110   h8500-*-*)
2111     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2112     ;;
2113   hppa1.1-*-osf* | hppa1.1-*-bsd* )
2114     ;;
2115   hppa*64*-*-linux* | parisc*64*-*-linux*)
2116     # In this case, it's because the hppa64-linux target is for
2117     # the kernel only at this point and has no libc, and thus no
2118     # headers, crt*.o, etc., all of which are needed by these.
2119     noconfigdirs="$noconfigdirs target-zlib"
2120     ;;
2121   parisc*-*-linux* | hppa*-*-linux*)
2122     ;;
2123   hppa*-*-*elf* | \
2124   hppa*-*-lites* | \
2125   hppa*-*-openbsd* | \
2126   hppa*64*-*-*)
2127     noconfigdirs="$noconfigdirs ${libgcj}"
2128     ;;
2129   hppa*-hp-hpux11*)
2130     noconfigdirs="$noconfigdirs ld shellutils"
2131     ;;
2132   hppa*-*-*)
2133     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2134     # build on HP-UX 10.20.
2135     noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2136     ;;
2137   i960-*-*)
2138     noconfigdirs="$noconfigdirs ${libgcj} gdb"
2139     ;;
2140   ia64*-*-elf*)
2141     # No gdb support yet.
2142     noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2143     ;;
2144   ia64*-**-hpux*)
2145     # No gdb or ld support yet.
2146     noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2147     ;;
2148   i370-*-opened*)
2149     ;;
2150   i[3456789]86-*-coff | i[3456789]86-*-elf)
2151     noconfigdirs="$noconfigdirs ${libgcj}"
2152     ;;
2153   i[3456789]86-*-linux*)
2154     # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2155     # not build java stuff by default.
2156     case "${target}" in
2157       *-*-*libc1*)
2158         noconfigdirs="$noconfigdirs ${libgcj}";;
2159     esac
2160
2161     # This section makes it possible to build newlib natively on linux.
2162     # If we are using a cross compiler then don't configure newlib.
2163     if test x${is_cross_compiler} != xno ; then
2164       noconfigdirs="$noconfigdirs target-newlib"
2165     fi
2166     noconfigdirs="$noconfigdirs target-libgloss"
2167     # If we are not using a cross compiler, do configure newlib.
2168     # Note however, that newlib will only be configured in this situation
2169     # if the --with-newlib option has been given, because otherwise
2170     # 'target-newlib' will appear in skipdirs.
2171     ;;
2172   i[3456789]86-*-mingw32*)
2173     target_configdirs="$target_configdirs target-winsup"
2174     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2175     ;;
2176   *-*-cygwin*)
2177     target_configdirs="$target_configdirs target-libtermcap target-winsup"
2178     noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2179     # always build newlib if winsup directory is present.
2180     if test -d "$srcdir/winsup/cygwin"; then
2181       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2182     elif test -d "$srcdir/newlib"; then
2183       echo "Warning: winsup/cygwin is missing so newlib can't be built."
2184     fi
2185     ;;
2186   i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2187   i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2188     ;;
2189   i[3456789]86-*-pe)
2190     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2191     ;;
2192   i[3456789]86-*-sco3.2v5*)
2193     # The linker does not yet know about weak symbols in COFF,
2194     # and is not configured to handle mixed ELF and COFF.
2195     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2196     ;;
2197   i[3456789]86-*-sco*)
2198     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2199     ;;
2200   i[3456789]86-*-solaris2*)
2201     noconfigdirs="$noconfigdirs target-libgloss"
2202     ;;
2203   i[3456789]86-*-sysv4*)
2204     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2205     ;;
2206   i[3456789]86-*-beos*)
2207     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2208     ;;
2209   i[3456789]86-*-rdos*)
2210     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2211     ;;
2212   m32r-*-*)
2213     noconfigdirs="$noconfigdirs ${libgcj}"
2214     ;;
2215   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2216     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2217     ;;
2218   m68k-*-elf*)
2219     noconfigdirs="$noconfigdirs ${libgcj}"
2220     ;;
2221   m68k-*-coff*)
2222     noconfigdirs="$noconfigdirs ${libgcj}"
2223     ;;
2224   mcore-*-pe*)
2225   # The EPOC C++ environment does not support exceptions or rtti,
2226   # and so building libstdc++-v3 tends not to always work.
2227     noconfigdirs="$noconfigdirs target-libstdc++-v3"
2228     ;;
2229   mmix-*-*)
2230     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2231     unsupported_languages="$unsupported_languages fortran java"
2232     ;;
2233   mn10200-*-*)
2234     noconfigdirs="$noconfigdirs ${libgcj}"
2235     ;;
2236   mn10300-*-*)
2237     noconfigdirs="$noconfigdirs ${libgcj}"
2238     ;;
2239   mt-*-*)
2240     noconfigdirs="$noconfigdirs sim"
2241     ;;
2242   powerpc-*-aix*)
2243     # copied from rs6000-*-* entry
2244     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2245     ;;
2246   powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2247     target_configdirs="$target_configdirs target-winsup"
2248     noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2249     # always build newlib.
2250     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2251     ;;
2252     # This is temporary until we can link against shared libraries
2253   powerpcle-*-solaris*)
2254     noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2255     ;;
2256   powerpc-*-beos*)
2257     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2258     ;;
2259   powerpc-*-eabi)
2260     noconfigdirs="$noconfigdirs ${libgcj}"
2261     ;;
2262   powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2263     ;;
2264   rs6000-*-lynxos*)
2265     noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2266     ;;
2267   rs6000-*-aix*)
2268     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2269     ;;
2270   rs6000-*-*)
2271     noconfigdirs="$noconfigdirs gprof ${libgcj}"
2272     ;;
2273   m68k-apollo-*)
2274     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2275     ;;
2276   mips*-*-irix5*)
2277     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2278     ;;
2279   mips*-*-irix6*)
2280     # Linking libjava exceeds command-line length limits on at least
2281     # IRIX 6.2, but not on IRIX 6.5.
2282     # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2283     # <oldham@codesourcery.com>
2284     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2285     ;;
2286   mips*-*-bsd*)
2287     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2288     ;;
2289   mips64*-*-linux*)
2290     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2291     ;;
2292   mips*-*-linux*)
2293     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2294     ;;
2295   mips*-*-*)
2296     noconfigdirs="$noconfigdirs gprof ${libgcj}"
2297     ;;
2298   romp-*-*)
2299     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2300     ;;
2301   sh-*-* | sh64-*-*)
2302     case "${host}" in
2303       i[3456789]86-*-vsta) ;; # don't add gprof back in
2304       i[3456789]86-*-go32*) ;; # don't add gprof back in
2305       i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2306       *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2307     esac
2308     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2309     ;;
2310   sparc-*-elf*)
2311     noconfigdirs="$noconfigdirs ${libgcj}"
2312     ;;
2313   sparc64-*-elf*)
2314     noconfigdirs="$noconfigdirs ${libgcj}"
2315     ;;
2316   sparclite-*-*)
2317     noconfigdirs="$noconfigdirs ${libgcj}"
2318     ;;
2319   sparc-*-sunos4*)
2320     noconfigdirs="$noconfigdirs ${libgcj}"
2321     if test x${is_cross_compiler} != xno ; then
2322            noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2323     else
2324            use_gnu_ld=no
2325     fi
2326     ;;
2327   sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2328     noconfigdirs="$noconfigdirs ${libgcj}"
2329     ;;
2330   sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2331     ;;
2332   spu-*-*)
2333     skipdirs="target-libssp"
2334     ;;
2335   v810-*-*)
2336     noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2337     ;;
2338   v850-*-*)
2339     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2340     ;;
2341   v850e-*-*)
2342     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2343     ;;
2344   v850ea-*-*)
2345     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2346     ;;
2347   vax-*-vms)
2348     noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2349     ;;
2350   vax-*-*)
2351     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2352     ;;
2353   xtensa-*-*)
2354     noconfigdirs="$noconfigdirs ${libgcj}"
2355     ;;
2356   ip2k-*-*)
2357     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2358     ;;
2359   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2360     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2361     ;;
2362   *-*-lynxos*)
2363     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2364     ;;
2365   *-*-*)
2366     noconfigdirs="$noconfigdirs ${libgcj}"
2367     ;;
2368 esac
2369
2370 # If we aren't building newlib, then don't build libgloss, since libgloss
2371 # depends upon some newlib header files.
2372 case "${noconfigdirs}" in
2373   *target-libgloss*) ;;
2374   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2375 esac
2376
2377 # Work in distributions that contain no compiler tools, like Autoconf.
2378 tentative_cc=""
2379 host_makefile_frag=/dev/null
2380 if test -d ${srcdir}/config ; then
2381 case "${host}" in
2382   m68k-hp-hpux*)
2383     # Avoid "too much defining" errors from HPUX compiler.
2384     tentative_cc="cc -Wp,-H256000"
2385     # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2386     # If it's HP/UX ar, this should be harmless.
2387     RANLIB="ar ts"
2388     ;;
2389   m68k-apollo-sysv*)
2390     tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2391     ;;
2392   m68k-apollo-bsd*)
2393     #None of the Apollo compilers can compile gas or binutils.  The preprocessor
2394     # chokes on bfd, the compiler won't let you assign integers to enums, and
2395     # other problems.  Defining CC to gcc is a questionable way to say "don't use
2396     # the apollo compiler" (the preferred version of GCC could be called cc,
2397     # or whatever), but I'm not sure leaving CC as cc is any better...
2398     #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2399     # Used to have BISON=yacc.
2400     tentative_cc=gcc
2401     ;;
2402   m88k-dg-dgux*)
2403     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2404     ;;
2405   m88k-harris-cxux*)
2406     # Under CX/UX, we want to tell the compiler to use ANSI mode.
2407     tentative_cc="cc -Xa"
2408     host_makefile_frag="config/mh-cxux"
2409     ;;
2410   m88k-motorola-sysv*)
2411     ;;
2412   mips*-dec-ultrix*)
2413     tentative_cc="cc -Wf,-XNg1000"
2414     host_makefile_frag="config/mh-decstation"
2415     ;;
2416   mips*-nec-sysv4*)
2417     # The C compiler on NEC MIPS SVR4 needs bigger tables.
2418     tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2419     host_makefile_frag="config/mh-necv4"
2420     ;;
2421   mips*-sgi-irix4*)
2422     # Tell compiler to use K&R C.  We can't compile under the SGI Ansi
2423     # environment.  Also bump switch table size so that cp-parse will
2424     # compile.  Bump string length limit so linker builds.
2425     tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2426     ;;
2427   mips*-*-sysv4*)
2428     host_makefile_frag="config/mh-sysv4"
2429     ;;
2430   mips*-*-sysv*)
2431     # This is for a MIPS running RISC/os 4.52C.
2432
2433     # This is needed for GDB, but needs to be in the top-level make because
2434     # if a library is compiled with the bsd headers and gets linked with the
2435     # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2436     # a different size).
2437     # ptrace(2) apparently has problems in the BSD environment.  No workaround is
2438     # known except to select the sysv environment.  Could we use /proc instead?
2439     # These "sysv environments" and "bsd environments" often end up being a pain.
2440     #
2441     # This is not part of CFLAGS because perhaps not all C compilers have this
2442     # option.
2443     tentative_cc="cc -systype sysv"
2444     ;;
2445   i370-ibm-opened*)
2446     tentative_cc="c89"
2447     ;;
2448   i[3456789]86-*-sysv5*)
2449     host_makefile_frag="config/mh-sysv5"
2450     ;;
2451   i[3456789]86-*-dgux*)
2452     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2453     host_makefile_frag="config/mh-dgux386"
2454     ;;
2455   i[3456789]86-ncr-sysv4.3*)
2456     # The MetaWare compiler will generate a copyright message unless you
2457     # turn it off by adding the -Hnocopyr flag.
2458     tentative_cc="cc -Hnocopyr"
2459     ;;
2460   i[3456789]86-ncr-sysv4*)
2461     # for an NCR 3000 (i486/SVR4) system.
2462     # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2463     # This compiler not only emits obnoxious copyright messages every time
2464     # you run it, but it chokes and dies on a whole bunch of GNU source
2465     # files.  Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2466     tentative_cc="/usr/ccs/ATT/cc"
2467     host_makefile_frag="config/mh-ncr3000"
2468     ;;
2469   i[3456789]86-*-sco3.2v5*)
2470     ;;
2471   i[3456789]86-*-sco*)
2472     # The native C compiler botches some simple uses of const.  Unfortunately,
2473     # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2474     tentative_cc="cc -Dconst="
2475     host_makefile_frag="config/mh-sco"
2476     ;;
2477   i[3456789]86-*-udk*)
2478     host_makefile_frag="config/mh-sysv5"
2479     ;;
2480   i[3456789]86-*-solaris2*)
2481     host_makefile_frag="config/mh-sysv4"
2482     ;;
2483   i[3456789]86-*-msdosdjgpp*)
2484     host_makefile_frag="config/mh-djgpp"
2485     ;;
2486   *-cygwin*)
2487     host_makefile_frag="config/mh-cygwin"
2488     ;;
2489   *-mingw32*)
2490     ;;
2491   *-interix*)
2492     host_makefile_frag="config/mh-interix"
2493     ;;
2494   vax-*-ultrix2*)
2495     # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2496     tentative_cc=gcc
2497     ;;
2498   *-*-solaris2*)
2499     host_makefile_frag="config/mh-solaris"
2500     ;;
2501   m68k-sun-sunos*)
2502     # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2503     # without overflowing the jump tables (-J says to use a 32 bit table)
2504     tentative_cc="cc -J"
2505     ;;
2506   *-hp-hpux*)
2507     tentative_cc="cc -Wp,-H256000"
2508     ;;
2509   *-*-hiux*)
2510     tentative_cc="cc -Wp,-H256000"
2511     ;;
2512   rs6000-*-lynxos*)
2513     # /bin/cc is less than useful for our purposes.  Always use GCC
2514     tentative_cc="/usr/cygnus/progressive/bin/gcc"
2515     host_makefile_frag="config/mh-lynxrs6k"
2516     ;;
2517   powerpc-*-darwin*)
2518     host_makefile_frag="config/mh-ppc-darwin"
2519     ;;
2520   powerpc-*-aix*)
2521     host_makefile_frag="config/mh-ppc-aix"
2522     ;;
2523   rs6000-*-aix*)
2524     host_makefile_frag="config/mh-ppc-aix"
2525     ;;
2526   *-*-lynxos*)
2527     # /bin/cc is less than useful for our purposes.  Always use GCC
2528     tentative_cc="/bin/gcc"
2529     ;;
2530   *-*-sysv4*)
2531     host_makefile_frag="config/mh-sysv4"
2532     ;;
2533   # This is placed last to prevent interfering with the cases above.
2534   i[3456789]86-*-*)
2535     # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2536     host_makefile_frag="config/mh-x86omitfp"
2537     ;;
2538 esac
2539 fi
2540
2541 # If we aren't going to be using gcc, see if we can extract a definition
2542 # of CC from the fragment.
2543 # Actually, use the 'pre-extracted' version above.
2544 if test -z "${CC}" && test "${build}" = "${host}" ; then
2545   IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
2546   found=
2547   for dir in $PATH; do
2548     test -z "$dir" && dir=.
2549     if test -f $dir/gcc; then
2550       found=yes
2551       break
2552     fi
2553   done
2554   IFS="$save_ifs"
2555   if test -z "${found}" && test -n "${tentative_cc}" ; then
2556     CC=$tentative_cc
2557   fi
2558 fi
2559
2560 if test "${build}" != "${host}" ; then
2561   # If we are doing a Canadian Cross, in which the host and build systems
2562   # are not the same, we set reasonable default values for the tools.
2563
2564   CC=${CC-${host_alias}-gcc}
2565   CFLAGS=${CFLAGS-"-g -O2"}
2566   CXX=${CXX-${host_alias}-c++}
2567   CXXFLAGS=${CXXFLAGS-"-g -O2"}
2568   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2569
2570 else
2571   # Set reasonable default values for some tools even if not Canadian.
2572   # Of course, these are different reasonable default values, originally
2573   # specified directly in the Makefile.
2574   # We don't export, so that autoconf can do its job.
2575   # Note that all these settings are above the fragment inclusion point
2576   # in Makefile.in, so can still be overridden by fragments.
2577   # This is all going to change when we autoconfiscate...
2578
2579   CC_FOR_BUILD="\$(CC)"
2580   ac_ext=c
2581 ac_cpp='$CPP $CPPFLAGS'
2582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2585 if test -n "$ac_tool_prefix"; then
2586   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2587 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2588 echo "$as_me:$LINENO: checking for $ac_word" >&5
2589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2590 if test "${ac_cv_prog_CC+set}" = set; then
2591   echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593   if test -n "$CC"; then
2594   ac_cv_prog_CC="$CC" # Let the user override the test.
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599   IFS=$as_save_IFS
2600   test -z "$as_dir" && as_dir=.
2601   for ac_exec_ext in '' $ac_executable_extensions; do
2602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2603     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605     break 2
2606   fi
2607 done
2608 done
2609
2610 fi
2611 fi
2612 CC=$ac_cv_prog_CC
2613 if test -n "$CC"; then
2614   echo "$as_me:$LINENO: result: $CC" >&5
2615 echo "${ECHO_T}$CC" >&6
2616 else
2617   echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2619 fi
2620
2621 fi
2622 if test -z "$ac_cv_prog_CC"; then
2623   ac_ct_CC=$CC
2624   # Extract the first word of "gcc", so it can be a program name with args.
2625 set dummy gcc; ac_word=$2
2626 echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2629   echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631   if test -n "$ac_ct_CC"; then
2632   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   test -z "$as_dir" && as_dir=.
2639   for ac_exec_ext in '' $ac_executable_extensions; do
2640   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641     ac_cv_prog_ac_ct_CC="gcc"
2642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646 done
2647
2648 fi
2649 fi
2650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2651 if test -n "$ac_ct_CC"; then
2652   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2653 echo "${ECHO_T}$ac_ct_CC" >&6
2654 else
2655   echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2657 fi
2658
2659   CC=$ac_ct_CC
2660 else
2661   CC="$ac_cv_prog_CC"
2662 fi
2663
2664 if test -z "$CC"; then
2665   if test -n "$ac_tool_prefix"; then
2666   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2667 set dummy ${ac_tool_prefix}cc; ac_word=$2
2668 echo "$as_me:$LINENO: checking for $ac_word" >&5
2669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2670 if test "${ac_cv_prog_CC+set}" = set; then
2671   echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673   if test -n "$CC"; then
2674   ac_cv_prog_CC="$CC" # Let the user override the test.
2675 else
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2678 do
2679   IFS=$as_save_IFS
2680   test -z "$as_dir" && as_dir=.
2681   for ac_exec_ext in '' $ac_executable_extensions; do
2682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683     ac_cv_prog_CC="${ac_tool_prefix}cc"
2684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685     break 2
2686   fi
2687 done
2688 done
2689
2690 fi
2691 fi
2692 CC=$ac_cv_prog_CC
2693 if test -n "$CC"; then
2694   echo "$as_me:$LINENO: result: $CC" >&5
2695 echo "${ECHO_T}$CC" >&6
2696 else
2697   echo "$as_me:$LINENO: result: no" >&5
2698 echo "${ECHO_T}no" >&6
2699 fi
2700
2701 fi
2702 if test -z "$ac_cv_prog_CC"; then
2703   ac_ct_CC=$CC
2704   # Extract the first word of "cc", so it can be a program name with args.
2705 set dummy cc; ac_word=$2
2706 echo "$as_me:$LINENO: checking for $ac_word" >&5
2707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2708 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2709   echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711   if test -n "$ac_ct_CC"; then
2712   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717   IFS=$as_save_IFS
2718   test -z "$as_dir" && as_dir=.
2719   for ac_exec_ext in '' $ac_executable_extensions; do
2720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2721     ac_cv_prog_ac_ct_CC="cc"
2722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723     break 2
2724   fi
2725 done
2726 done
2727
2728 fi
2729 fi
2730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731 if test -n "$ac_ct_CC"; then
2732   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2733 echo "${ECHO_T}$ac_ct_CC" >&6
2734 else
2735   echo "$as_me:$LINENO: result: no" >&5
2736 echo "${ECHO_T}no" >&6
2737 fi
2738
2739   CC=$ac_ct_CC
2740 else
2741   CC="$ac_cv_prog_CC"
2742 fi
2743
2744 fi
2745 if test -z "$CC"; then
2746   # Extract the first word of "cc", so it can be a program name with args.
2747 set dummy cc; ac_word=$2
2748 echo "$as_me:$LINENO: checking for $ac_word" >&5
2749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2750 if test "${ac_cv_prog_CC+set}" = set; then
2751   echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753   if test -n "$CC"; then
2754   ac_cv_prog_CC="$CC" # Let the user override the test.
2755 else
2756   ac_prog_rejected=no
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2759 do
2760   IFS=$as_save_IFS
2761   test -z "$as_dir" && as_dir=.
2762   for ac_exec_ext in '' $ac_executable_extensions; do
2763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2765        ac_prog_rejected=yes
2766        continue
2767      fi
2768     ac_cv_prog_CC="cc"
2769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770     break 2
2771   fi
2772 done
2773 done
2774
2775 if test $ac_prog_rejected = yes; then
2776   # We found a bogon in the path, so make sure we never use it.
2777   set dummy $ac_cv_prog_CC
2778   shift
2779   if test $# != 0; then
2780     # We chose a different compiler from the bogus one.
2781     # However, it has the same basename, so the bogon will be chosen
2782     # first if we set CC to just the basename; use the full file name.
2783     shift
2784     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2785   fi
2786 fi
2787 fi
2788 fi
2789 CC=$ac_cv_prog_CC
2790 if test -n "$CC"; then
2791   echo "$as_me:$LINENO: result: $CC" >&5
2792 echo "${ECHO_T}$CC" >&6
2793 else
2794   echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6
2796 fi
2797
2798 fi
2799 if test -z "$CC"; then
2800   if test -n "$ac_tool_prefix"; then
2801   for ac_prog in cl
2802   do
2803     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2805 echo "$as_me:$LINENO: checking for $ac_word" >&5
2806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2807 if test "${ac_cv_prog_CC+set}" = set; then
2808   echo $ECHO_N "(cached) $ECHO_C" >&6
2809 else
2810   if test -n "$CC"; then
2811   ac_cv_prog_CC="$CC" # Let the user override the test.
2812 else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2815 do
2816   IFS=$as_save_IFS
2817   test -z "$as_dir" && as_dir=.
2818   for ac_exec_ext in '' $ac_executable_extensions; do
2819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822     break 2
2823   fi
2824 done
2825 done
2826
2827 fi
2828 fi
2829 CC=$ac_cv_prog_CC
2830 if test -n "$CC"; then
2831   echo "$as_me:$LINENO: result: $CC" >&5
2832 echo "${ECHO_T}$CC" >&6
2833 else
2834   echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6
2836 fi
2837
2838     test -n "$CC" && break
2839   done
2840 fi
2841 if test -z "$CC"; then
2842   ac_ct_CC=$CC
2843   for ac_prog in cl
2844 do
2845   # Extract the first word of "$ac_prog", so it can be a program name with args.
2846 set dummy $ac_prog; ac_word=$2
2847 echo "$as_me:$LINENO: checking for $ac_word" >&5
2848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2849 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2850   echo $ECHO_N "(cached) $ECHO_C" >&6
2851 else
2852   if test -n "$ac_ct_CC"; then
2853   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858   IFS=$as_save_IFS
2859   test -z "$as_dir" && as_dir=.
2860   for ac_exec_ext in '' $ac_executable_extensions; do
2861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862     ac_cv_prog_ac_ct_CC="$ac_prog"
2863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864     break 2
2865   fi
2866 done
2867 done
2868
2869 fi
2870 fi
2871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2872 if test -n "$ac_ct_CC"; then
2873   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2874 echo "${ECHO_T}$ac_ct_CC" >&6
2875 else
2876   echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6
2878 fi
2879
2880   test -n "$ac_ct_CC" && break
2881 done
2882
2883   CC=$ac_ct_CC
2884 fi
2885
2886 fi
2887
2888
2889 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2890 See \`config.log' for more details." >&5
2891 echo "$as_me: error: no acceptable C compiler found in \$PATH
2892 See \`config.log' for more details." >&2;}
2893    { (exit 1); exit 1; }; }
2894
2895 # Provide some information about the compiler.
2896 echo "$as_me:$LINENO:" \
2897      "checking for C compiler version" >&5
2898 ac_compiler=`set X $ac_compile; echo $2`
2899 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2900   (eval $ac_compiler --version </dev/null >&5) 2>&5
2901   ac_status=$?
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); }
2904 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2905   (eval $ac_compiler -v </dev/null >&5) 2>&5
2906   ac_status=$?
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); }
2909 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2910   (eval $ac_compiler -V </dev/null >&5) 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }
2914
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h.  */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h.  */
2921
2922 int
2923 main ()
2924 {
2925
2926   ;
2927   return 0;
2928 }
2929 _ACEOF
2930 ac_clean_files_save=$ac_clean_files
2931 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2932 # Try to create an executable without -o first, disregard a.out.
2933 # It will help us diagnose broken compilers, and finding out an intuition
2934 # of exeext.
2935 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2936 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2937 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2938 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2939   (eval $ac_link_default) 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); }; then
2943   # Find the output, starting from the most likely.  This scheme is
2944 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2945 # resort.
2946
2947 # Be careful to initialize this variable, since it used to be cached.
2948 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2949 ac_cv_exeext=
2950 # b.out is created by i960 compilers.
2951 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2952 do
2953   test -f "$ac_file" || continue
2954   case $ac_file in
2955     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2956         ;;
2957     conftest.$ac_ext )
2958         # This is the source file.
2959         ;;
2960     [ab].out )
2961         # We found the default executable, but exeext='' is most
2962         # certainly right.
2963         break;;
2964     *.* )
2965         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2966         # FIXME: I believe we export ac_cv_exeext for Libtool,
2967         # but it would be cool to find out if it's true.  Does anybody
2968         # maintain Libtool? --akim.
2969         export ac_cv_exeext
2970         break;;
2971     * )
2972         break;;
2973   esac
2974 done
2975 else
2976   echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2978
2979 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2980 See \`config.log' for more details." >&5
2981 echo "$as_me: error: C compiler cannot create executables
2982 See \`config.log' for more details." >&2;}
2983    { (exit 77); exit 77; }; }
2984 fi
2985
2986 ac_exeext=$ac_cv_exeext
2987 echo "$as_me:$LINENO: result: $ac_file" >&5
2988 echo "${ECHO_T}$ac_file" >&6
2989
2990 # Check the compiler produces executables we can run.  If not, either
2991 # the compiler is broken, or we cross compile.
2992 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2993 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2994 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2995 # If not cross compiling, check that we can run a simple program.
2996 if test "$cross_compiling" != yes; then
2997   if { ac_try='./$ac_file'
2998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999   (eval $ac_try) 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; }; then
3003     cross_compiling=no
3004   else
3005     if test "$cross_compiling" = maybe; then
3006         cross_compiling=yes
3007     else
3008         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3009 If you meant to cross compile, use \`--host'.
3010 See \`config.log' for more details." >&5
3011 echo "$as_me: error: cannot run C compiled programs.
3012 If you meant to cross compile, use \`--host'.
3013 See \`config.log' for more details." >&2;}
3014    { (exit 1); exit 1; }; }
3015     fi
3016   fi
3017 fi
3018 echo "$as_me:$LINENO: result: yes" >&5
3019 echo "${ECHO_T}yes" >&6
3020
3021 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3022 ac_clean_files=$ac_clean_files_save
3023 # Check the compiler produces executables we can run.  If not, either
3024 # the compiler is broken, or we cross compile.
3025 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3026 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3027 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3028 echo "${ECHO_T}$cross_compiling" >&6
3029
3030 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3031 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3033   (eval $ac_link) 2>&5
3034   ac_status=$?
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); }; then
3037   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3038 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3039 # work properly (i.e., refer to `conftest.exe'), while it won't with
3040 # `rm'.
3041 for ac_file in conftest.exe conftest conftest.*; do
3042   test -f "$ac_file" || continue
3043   case $ac_file in
3044     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3045     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3046           export ac_cv_exeext
3047           break;;
3048     * ) break;;
3049   esac
3050 done
3051 else
3052   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3053 See \`config.log' for more details." >&5
3054 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3055 See \`config.log' for more details." >&2;}
3056    { (exit 1); exit 1; }; }
3057 fi
3058
3059 rm -f conftest$ac_cv_exeext
3060 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3061 echo "${ECHO_T}$ac_cv_exeext" >&6
3062
3063 rm -f conftest.$ac_ext
3064 EXEEXT=$ac_cv_exeext
3065 ac_exeext=$EXEEXT
3066 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3067 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3068 if test "${ac_cv_objext+set}" = set; then
3069   echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071   cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h.  */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h.  */
3077
3078 int
3079 main ()
3080 {
3081
3082   ;
3083   return 0;
3084 }
3085 _ACEOF
3086 rm -f conftest.o conftest.obj
3087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3088   (eval $ac_compile) 2>&5
3089   ac_status=$?
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); }; then
3092   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3093   case $ac_file in
3094     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3095     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3096        break;;
3097   esac
3098 done
3099 else
3100   echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3104 See \`config.log' for more details." >&5
3105 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3106 See \`config.log' for more details." >&2;}
3107    { (exit 1); exit 1; }; }
3108 fi
3109
3110 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3111 fi
3112 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3113 echo "${ECHO_T}$ac_cv_objext" >&6
3114 OBJEXT=$ac_cv_objext
3115 ac_objext=$OBJEXT
3116 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3117 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3118 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3119   echo $ECHO_N "(cached) $ECHO_C" >&6
3120 else
3121   cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127
3128 int
3129 main ()
3130 {
3131 #ifndef __GNUC__
3132        choke me
3133 #endif
3134
3135   ;
3136   return 0;
3137 }
3138 _ACEOF
3139 rm -f conftest.$ac_objext
3140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141   (eval $ac_compile) 2>conftest.er1
3142   ac_status=$?
3143   grep -v '^ *+' conftest.er1 >conftest.err
3144   rm -f conftest.er1
3145   cat conftest.err >&5
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); } &&
3148          { ac_try='test -z "$ac_c_werror_flag"
3149                          || test ! -s conftest.err'
3150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151   (eval $ac_try) 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }; } &&
3155          { ac_try='test -s conftest.$ac_objext'
3156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157   (eval $ac_try) 2>&5
3158   ac_status=$?
3159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160   (exit $ac_status); }; }; then
3161   ac_compiler_gnu=yes
3162 else
3163   echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3165
3166 ac_compiler_gnu=no
3167 fi
3168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3169 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3170
3171 fi
3172 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3173 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3174 GCC=`test $ac_compiler_gnu = yes && echo yes`
3175 ac_test_CFLAGS=${CFLAGS+set}
3176 ac_save_CFLAGS=$CFLAGS
3177 CFLAGS="-g"
3178 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3179 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3180 if test "${ac_cv_prog_cc_g+set}" = set; then
3181   echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183   cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h.  */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h.  */
3189
3190 int
3191 main ()
3192 {
3193
3194   ;
3195   return 0;
3196 }
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200   (eval $ac_compile) 2>conftest.er1
3201   ac_status=$?
3202   grep -v '^ *+' conftest.er1 >conftest.err
3203   rm -f conftest.er1
3204   cat conftest.err >&5
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); } &&
3207          { ac_try='test -z "$ac_c_werror_flag"
3208                          || test ! -s conftest.err'
3209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210   (eval $ac_try) 2>&5
3211   ac_status=$?
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); }; } &&
3214          { ac_try='test -s conftest.$ac_objext'
3215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216   (eval $ac_try) 2>&5
3217   ac_status=$?
3218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); }; }; then
3220   ac_cv_prog_cc_g=yes
3221 else
3222   echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3224
3225 ac_cv_prog_cc_g=no
3226 fi
3227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3228 fi
3229 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3230 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3231 if test "$ac_test_CFLAGS" = set; then
3232   CFLAGS=$ac_save_CFLAGS
3233 elif test $ac_cv_prog_cc_g = yes; then
3234   if test "$GCC" = yes; then
3235     CFLAGS="-g -O2"
3236   else
3237     CFLAGS="-g"
3238   fi
3239 else
3240   if test "$GCC" = yes; then
3241     CFLAGS="-O2"
3242   else
3243     CFLAGS=
3244   fi
3245 fi
3246 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3247 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3248 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3249   echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251   ac_cv_prog_cc_stdc=no
3252 ac_save_CC=$CC
3253 cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h.  */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h.  */
3259 #include <stdarg.h>
3260 #include <stdio.h>
3261 #include <sys/types.h>
3262 #include <sys/stat.h>
3263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3264 struct buf { int x; };
3265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3266 static char *e (p, i)
3267      char **p;
3268      int i;
3269 {
3270   return p[i];
3271 }
3272 static char *f (char * (*g) (char **, int), char **p, ...)
3273 {
3274   char *s;
3275   va_list v;
3276   va_start (v,p);
3277   s = g (p, va_arg (v,int));
3278   va_end (v);
3279   return s;
3280 }
3281
3282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3283    function prototypes and stuff, but not '\xHH' hex character constants.
3284    These don't provoke an error unfortunately, instead are silently treated
3285    as 'x'.  The following induces an error, until -std1 is added to get
3286    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3287    array size at least.  It's necessary to write '\x00'==0 to get something
3288    that's true only with -std1.  */
3289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3290
3291 int test (int i, double x);
3292 struct s1 {int (*f) (int a);};
3293 struct s2 {int (*f) (double a);};
3294 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3295 int argc;
3296 char **argv;
3297 int
3298 main ()
3299 {
3300 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3301   ;
3302   return 0;
3303 }
3304 _ACEOF
3305 # Don't try gcc -ansi; that turns off useful extensions and
3306 # breaks some systems' header files.
3307 # AIX                   -qlanglvl=ansi
3308 # Ultrix and OSF/1      -std1
3309 # HP-UX 10.20 and later -Ae
3310 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3311 # SVR4                  -Xc -D__EXTENSIONS__
3312 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3313 do
3314   CC="$ac_save_CC $ac_arg"
3315   rm -f conftest.$ac_objext
3316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3317   (eval $ac_compile) 2>conftest.er1
3318   ac_status=$?
3319   grep -v '^ *+' conftest.er1 >conftest.err
3320   rm -f conftest.er1
3321   cat conftest.err >&5
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); } &&
3324          { ac_try='test -z "$ac_c_werror_flag"
3325                          || test ! -s conftest.err'
3326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327   (eval $ac_try) 2>&5
3328   ac_status=$?
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); }; } &&
3331          { ac_try='test -s conftest.$ac_objext'
3332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333   (eval $ac_try) 2>&5
3334   ac_status=$?
3335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336   (exit $ac_status); }; }; then
3337   ac_cv_prog_cc_stdc=$ac_arg
3338 break
3339 else
3340   echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343 fi
3344 rm -f conftest.err conftest.$ac_objext
3345 done
3346 rm -f conftest.$ac_ext conftest.$ac_objext
3347 CC=$ac_save_CC
3348
3349 fi
3350
3351 case "x$ac_cv_prog_cc_stdc" in
3352   x|xno)
3353     echo "$as_me:$LINENO: result: none needed" >&5
3354 echo "${ECHO_T}none needed" >&6 ;;
3355   *)
3356     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3357 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3358     CC="$CC $ac_cv_prog_cc_stdc" ;;
3359 esac
3360
3361 # Some people use a C++ compiler to compile C.  Since we use `exit',
3362 # in C++ we need to declare it.  In case someone uses the same compiler
3363 # for both compiling C and C++ we need to have the C++ compiler decide
3364 # the declaration of exit, since it's the most demanding environment.
3365 cat >conftest.$ac_ext <<_ACEOF
3366 #ifndef __cplusplus
3367   choke me
3368 #endif
3369 _ACEOF
3370 rm -f conftest.$ac_objext
3371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3372   (eval $ac_compile) 2>conftest.er1
3373   ac_status=$?
3374   grep -v '^ *+' conftest.er1 >conftest.err
3375   rm -f conftest.er1
3376   cat conftest.err >&5
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); } &&
3379          { ac_try='test -z "$ac_c_werror_flag"
3380                          || test ! -s conftest.err'
3381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382   (eval $ac_try) 2>&5
3383   ac_status=$?
3384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385   (exit $ac_status); }; } &&
3386          { ac_try='test -s conftest.$ac_objext'
3387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388   (eval $ac_try) 2>&5
3389   ac_status=$?
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); }; }; then
3392   for ac_declaration in \
3393    '' \
3394    'extern "C" void std::exit (int) throw (); using std::exit;' \
3395    'extern "C" void std::exit (int); using std::exit;' \
3396    'extern "C" void exit (int) throw ();' \
3397    'extern "C" void exit (int);' \
3398    'void exit (int);'
3399 do
3400   cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h.  */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h.  */
3406 $ac_declaration
3407 #include <stdlib.h>
3408 int
3409 main ()
3410 {
3411 exit (42);
3412   ;
3413   return 0;
3414 }
3415 _ACEOF
3416 rm -f conftest.$ac_objext
3417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3418   (eval $ac_compile) 2>conftest.er1
3419   ac_status=$?
3420   grep -v '^ *+' conftest.er1 >conftest.err
3421   rm -f conftest.er1
3422   cat conftest.err >&5
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); } &&
3425          { ac_try='test -z "$ac_c_werror_flag"
3426                          || test ! -s conftest.err'
3427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428   (eval $ac_try) 2>&5
3429   ac_status=$?
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); }; } &&
3432          { ac_try='test -s conftest.$ac_objext'
3433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434   (eval $ac_try) 2>&5
3435   ac_status=$?
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); }; }; then
3438   :
3439 else
3440   echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443 continue
3444 fi
3445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3446   cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h.  */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h.  */
3452 $ac_declaration
3453 int
3454 main ()
3455 {
3456 exit (42);
3457   ;
3458   return 0;
3459 }
3460 _ACEOF
3461 rm -f conftest.$ac_objext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463   (eval $ac_compile) 2>conftest.er1
3464   ac_status=$?
3465   grep -v '^ *+' conftest.er1 >conftest.err
3466   rm -f conftest.er1
3467   cat conftest.err >&5
3468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469   (exit $ac_status); } &&
3470          { ac_try='test -z "$ac_c_werror_flag"
3471                          || test ! -s conftest.err'
3472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473   (eval $ac_try) 2>&5
3474   ac_status=$?
3475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476   (exit $ac_status); }; } &&
3477          { ac_try='test -s conftest.$ac_objext'
3478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479   (eval $ac_try) 2>&5
3480   ac_status=$?
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); }; }; then
3483   break
3484 else
3485   echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 fi
3489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3490 done
3491 rm -f conftest*
3492 if test -n "$ac_declaration"; then
3493   echo '#ifdef __cplusplus' >>confdefs.h
3494   echo $ac_declaration      >>confdefs.h
3495   echo '#endif'             >>confdefs.h
3496 fi
3497
3498 else
3499   echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502 fi
3503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_ext=c
3505 ac_cpp='$CPP $CPPFLAGS'
3506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509
3510
3511   # We must set the default linker to the linker used by gcc for the correct
3512   # operation of libtool.  If LD is not defined and we are using gcc, try to
3513   # set the LD default to the ld used by gcc.
3514   if test -z "$LD"; then
3515     if test "$GCC" = yes; then
3516       case $build in
3517       *-*-mingw*)
3518         gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
3519       *)
3520         gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
3521       esac
3522       case $gcc_prog_ld in
3523       # Accept absolute paths.
3524       [\\/]* | [A-Za-z]:[\\/]*)
3525         LD="$gcc_prog_ld" ;;
3526       esac
3527     fi
3528   fi
3529
3530   CXX=${CXX-"c++"}
3531   CFLAGS=${CFLAGS-"-g"}
3532   CXXFLAGS=${CXXFLAGS-"-g -O2"}
3533 fi
3534
3535
3536
3537
3538 if test -n "$ac_tool_prefix"; then
3539   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3540 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3541 echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   if test -n "$GNATBIND"; then
3547   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3551 do
3552   IFS=$as_save_IFS
3553   test -z "$as_dir" && as_dir=.
3554   for ac_exec_ext in '' $ac_executable_extensions; do
3555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558     break 2
3559   fi
3560 done
3561 done
3562
3563 fi
3564 fi
3565 GNATBIND=$ac_cv_prog_GNATBIND
3566 if test -n "$GNATBIND"; then
3567   echo "$as_me:$LINENO: result: $GNATBIND" >&5
3568 echo "${ECHO_T}$GNATBIND" >&6
3569 else
3570   echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3572 fi
3573
3574 fi
3575 if test -z "$ac_cv_prog_GNATBIND"; then
3576   ac_ct_GNATBIND=$GNATBIND
3577   # Extract the first word of "gnatbind", so it can be a program name with args.
3578 set dummy gnatbind; ac_word=$2
3579 echo "$as_me:$LINENO: checking for $ac_word" >&5
3580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3581 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3582   echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584   if test -n "$ac_ct_GNATBIND"; then
3585   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3586 else
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH
3589 do
3590   IFS=$as_save_IFS
3591   test -z "$as_dir" && as_dir=.
3592   for ac_exec_ext in '' $ac_executable_extensions; do
3593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3596     break 2
3597   fi
3598 done
3599 done
3600
3601   test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3602 fi
3603 fi
3604 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3605 if test -n "$ac_ct_GNATBIND"; then
3606   echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3607 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3608 else
3609   echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6
3611 fi
3612
3613   GNATBIND=$ac_ct_GNATBIND
3614 else
3615   GNATBIND="$ac_cv_prog_GNATBIND"
3616 fi
3617
3618 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3619 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3620 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3621   echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623   cat >conftest.adb <<EOF
3624 procedure conftest is begin null; end conftest;
3625 EOF
3626 acx_cv_cc_gcc_supports_ada=no
3627 # There is a bug in old released versions of GCC which causes the
3628 # driver to exit successfully when the appropriate language module
3629 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
3630 # Therefore we must check for the error message as well as an
3631 # unsuccessful exit.
3632 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3633 # given a .adb file, but produce no object file.  So we must check
3634 # if an object file was really produced to guard against this.
3635 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3636 if test x"$errors" = x && test -f conftest.$ac_objext; then
3637   acx_cv_cc_gcc_supports_ada=yes
3638 fi
3639 rm -f conftest.*
3640 fi
3641 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3642 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3643
3644 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3645   have_gnat=yes
3646 else
3647   have_gnat=no
3648 fi
3649
3650 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
3651 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
3652 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
3653   echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655    echo abfoo >t1
3656   echo cdfoo >t2
3657   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
3658   if cmp t1 t2 2 2 > /dev/null 2>&1; then
3659     if cmp t1 t2 1 1 > /dev/null 2>&1; then
3660       :
3661     else
3662       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
3663     fi
3664   fi
3665   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
3666     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
3667       :
3668     else
3669       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
3670     fi
3671   fi
3672   rm t1 t2
3673
3674 fi
3675 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
3676 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
3677 do_compare="$gcc_cv_prog_cmp_skip"
3678
3679
3680
3681 # Check for GMP and MPFR
3682 gmplibs="-lmpfr"
3683 gmpinc=
3684 have_gmp=yes
3685 # Specify a location for mpfr
3686 # check for this first so it ends up on the link line before gmp.
3687
3688 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
3689 if test "${with_mpfr_dir+set}" = set; then
3690   withval="$with_mpfr_dir"
3691   { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
3692 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
3693 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
3694 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
3695    { (exit 1); exit 1; }; }
3696 fi;
3697
3698
3699 # Check whether --with-mpfr or --without-mpfr was given.
3700 if test "${with_mpfr+set}" = set; then
3701   withval="$with_mpfr"
3702
3703 fi;
3704
3705 # Check whether --with-mpfr_include or --without-mpfr_include was given.
3706 if test "${with_mpfr_include+set}" = set; then
3707   withval="$with_mpfr_include"
3708
3709 fi;
3710
3711 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
3712 if test "${with_mpfr_lib+set}" = set; then
3713   withval="$with_mpfr_lib"
3714
3715 fi;
3716
3717 if test "x$with_mpfr" != x; then
3718   gmplibs="-L$with_mpfr/lib $gmplibs"
3719   gmpinc="-I$with_mpfr/include"
3720 fi
3721 if test "x$with_mpfr_include" != x; then
3722   gmpinc="-I$with_mpfr_include"
3723 fi
3724 if test "x$with_mpfr_lib" != x; then
3725   gmplibs="-L$with_mpfr_lib $gmplibs"
3726 fi
3727
3728 # Specify a location for gmp
3729
3730 # Check whether --with-gmp-dir or --without-gmp-dir was given.
3731 if test "${with_gmp_dir+set}" = set; then
3732   withval="$with_gmp_dir"
3733   { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
3734 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
3735 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
3736 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
3737    { (exit 1); exit 1; }; }
3738 fi;
3739
3740 gmplibs="$gmplibs -lgmp"
3741
3742
3743 # Check whether --with-gmp or --without-gmp was given.
3744 if test "${with_gmp+set}" = set; then
3745   withval="$with_gmp"
3746
3747 fi;
3748
3749 # Check whether --with-gmp_include or --without-gmp_include was given.
3750 if test "${with_gmp_include+set}" = set; then
3751   withval="$with_gmp_include"
3752
3753 fi;
3754
3755 # Check whether --with-gmp_lib or --without-gmp_lib was given.
3756 if test "${with_gmp_lib+set}" = set; then
3757   withval="$with_gmp_lib"
3758
3759 fi;
3760
3761
3762 if test "x$with_gmp" != x; then
3763   gmplibs="-L$with_gmp/lib $gmplibs"
3764   gmpinc="-I$with_gmp/include $gmpinc"
3765 fi
3766 if test "x$with_gmp_include" != x; then
3767   gmpinc="-I$with_gmp_include $gmpinc"
3768 fi
3769 if test "x$with_gmp_lib" != x; then
3770   gmplibs="-L$with_gmp_lib $gmplibs"
3771 fi
3772
3773 saved_CFLAGS="$CFLAGS"
3774 CFLAGS="$CFLAGS $gmpinc"
3775 # Check GMP actually works
3776 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
3777 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
3778
3779 cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h.  */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h.  */
3785 #include "gmp.h"
3786 int
3787 main ()
3788 {
3789
3790 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
3791 choke me
3792 #endif
3793
3794   ;
3795   return 0;
3796 }
3797 _ACEOF
3798 rm -f conftest.$ac_objext
3799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3800   (eval $ac_compile) 2>conftest.er1
3801   ac_status=$?
3802   grep -v '^ *+' conftest.er1 >conftest.err
3803   rm -f conftest.er1
3804   cat conftest.err >&5
3805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); } &&
3807          { ac_try='test -z "$ac_c_werror_flag"
3808                          || test ! -s conftest.err'
3809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810   (eval $ac_try) 2>&5
3811   ac_status=$?
3812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813   (exit $ac_status); }; } &&
3814          { ac_try='test -s conftest.$ac_objext'
3815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816   (eval $ac_try) 2>&5
3817   ac_status=$?
3818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819   (exit $ac_status); }; }; then
3820   echo "$as_me:$LINENO: result: yes" >&5
3821 echo "${ECHO_T}yes" >&6
3822 else
3823   echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 echo "$as_me:$LINENO: result: no" >&5
3827 echo "${ECHO_T}no" >&6; have_gmp=no
3828 fi
3829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830
3831 if test x"$have_gmp" = xyes; then
3832   saved_LIBS="$LIBS"
3833   LIBS="$LIBS $gmplibs"
3834   echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
3835 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
3836   cat >conftest.$ac_ext <<_ACEOF
3837 /* confdefs.h.  */
3838 _ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h.  */
3842 #include <gmp.h>
3843 #include <mpfr.h>
3844 int
3845 main ()
3846 {
3847
3848 #if MPFR_VERSION_MAJOR < 2 || (MPFR_VERSION_MAJOR == 2 && MPFR_VERSION_MINOR < 2)
3849   choke me
3850 #endif
3851   mpfr_t n; mpfr_init(n);
3852
3853   ;
3854   return 0;
3855 }
3856 _ACEOF
3857 rm -f conftest.$ac_objext conftest$ac_exeext
3858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3859   (eval $ac_link) 2>conftest.er1
3860   ac_status=$?
3861   grep -v '^ *+' conftest.er1 >conftest.err
3862   rm -f conftest.er1
3863   cat conftest.err >&5
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); } &&
3866          { ac_try='test -z "$ac_c_werror_flag"
3867                          || test ! -s conftest.err'
3868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869   (eval $ac_try) 2>&5
3870   ac_status=$?
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); }; } &&
3873          { ac_try='test -s conftest$ac_exeext'
3874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875   (eval $ac_try) 2>&5
3876   ac_status=$?
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); }; }; then
3879   echo "$as_me:$LINENO: result: yes" >&5
3880 echo "${ECHO_T}yes" >&6
3881 else
3882   echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885 echo "$as_me:$LINENO: result: no" >&5
3886 echo "${ECHO_T}no" >&6; have_gmp=no
3887 fi
3888 rm -f conftest.err conftest.$ac_objext \
3889       conftest$ac_exeext conftest.$ac_ext
3890   LIBS="$saved_LIBS"
3891 fi
3892 CFLAGS="$saved_CFLAGS"
3893
3894 if test -d ${srcdir}/gcc && test x$have_gmp != xyes; then
3895   { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
3896 Try the --with-gmp and/or --with-mpfr options to specify their locations.
3897 Copies of these libraries' source code can be found at their respective
3898 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
3899 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
3900 If you obtained GMP and/or MPFR from a vendor distribution package, make
3901 sure that you have installed both the libraries and the header files.
3902 They may be located in separate packages." >&5
3903 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
3904 Try the --with-gmp and/or --with-mpfr options to specify their locations.
3905 Copies of these libraries' source code can be found at their respective
3906 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
3907 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
3908 If you obtained GMP and/or MPFR from a vendor distribution package, make
3909 sure that you have installed both the libraries and the header files.
3910 They may be located in separate packages." >&2;}
3911    { (exit 1); exit 1; }; }
3912 fi
3913
3914 # Flags needed for both GMP and/or MPFR
3915
3916
3917
3918 # By default, C is the only stage 1 language.
3919 stage1_languages=c
3920
3921
3922 # Figure out what language subdirectories are present.
3923 # Look if the user specified --enable-languages="..."; if not, use
3924 # the environment variable $LANGUAGES if defined. $LANGUAGES might
3925 # go away some day.
3926 # NB:  embedded tabs in this IF block -- do not untabify
3927 if test -d ${srcdir}/gcc; then
3928   if test x"${enable_languages+set}" != xset; then
3929     if test x"${LANGUAGES+set}" = xset; then
3930       enable_languages="${LANGUAGES}"
3931         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
3932     else
3933       enable_languages=all
3934     fi
3935   else
3936     if test x"${enable_languages}" = x ||
3937        test x"${enable_languages}" = xyes;
3938        then
3939       echo configure.in: --enable-languages needs at least one language argument 1>&2
3940       exit 1
3941     fi
3942   fi
3943   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
3944
3945   # 'f95' is the old name for the 'fortran' language. We issue a warning
3946   # and make the substitution.
3947   case ,${enable_languages}, in
3948     *,f95,*)
3949       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
3950       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
3951       ;;
3952   esac
3953
3954   # First scan to see if an enabled language requires some other language.
3955   # We assume that a given config-lang.in will list all the language
3956   # front ends it requires, even if some are required indirectly.
3957   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
3958     case ${lang_frag} in
3959       ..) ;;
3960       # The odd quoting in the next line works around
3961       # an apparent bug in bash 1.12 on linux.
3962       ${srcdir}/gcc/[*]/config-lang.in) ;;
3963       *)
3964         # From the config-lang.in, get $language, $lang_requires
3965         language=
3966         lang_requires=
3967         . ${lang_frag}
3968         for other in ${lang_requires} ; do
3969           case ,${enable_languages}, in
3970             *,$other,*) ;;
3971             *,all,*) ;;
3972             *,$language,*)
3973               echo " \`$other' language required by \`$language'; enabling" 1>&2
3974               enable_languages="${enable_languages},${other}"
3975               ;;
3976           esac
3977         done
3978         ;;
3979     esac
3980   done
3981
3982   new_enable_languages=c
3983   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
3984   potential_languages=c
3985
3986   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
3987     case ${lang_frag} in
3988       ..) ;;
3989       # The odd quoting in the next line works around
3990       # an apparent bug in bash 1.12 on linux.
3991       ${srcdir}/gcc/[*]/config-lang.in) ;;
3992       *)
3993         # From the config-lang.in, get $language, $target_libs,
3994         # $lang_dirs, $boot_language, and $build_by_default
3995         language=
3996         target_libs=
3997         lang_dirs=
3998         subdir_requires=
3999         boot_language=
4000         build_by_default=
4001         . ${lang_frag}
4002         potential_languages="${potential_languages},${language}"
4003         # This is quite sensitive to the ordering of the case statement arms.
4004         case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
4005           *::*:*)
4006             echo "${lang_frag} doesn't set \$language." 1>&2
4007             exit 1
4008             ;;
4009           *:ada:no:*)
4010             # Ada was requested with no preexisting GNAT.  Disable unconditionally.
4011             add_this_lang=no
4012             ;;
4013           *,${language},*:*:*:*)
4014             # Language was explicitly selected; include it.
4015             add_this_lang=yes
4016             ;;
4017           *,all,*:*:*:no)
4018             # 'all' was selected, but this is not a default language
4019             # so do not include it.
4020             add_this_lang=no
4021             ;;
4022           *,all,*:*:*:*)
4023             # 'all' was selected and this is a default language; include it.
4024             add_this_lang=yes
4025             ;;
4026           *)
4027             add_this_lang=no
4028             ;;
4029         esac
4030
4031         # Disable languages that need other directories if these aren't available.
4032         for i in $subdir_requires; do
4033           test -f "$srcdir/gcc/$i/config-lang.in" && continue
4034           case ,${enable_languages}, in
4035             *,${language},*)
4036               # Specifically requested language; tell them.
4037               { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4038 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4039    { (exit 1); exit 1; }; }
4040               ;;
4041             *)
4042               # Silently disable.
4043               add_this_lang=no
4044               ;;
4045           esac
4046         done
4047
4048         # Disable a language that is unsupported by the target.
4049         case " $unsupported_languages " in
4050           *" $language "*)
4051             add_this_lang=no
4052             ;;
4053         esac
4054
4055         case $add_this_lang in
4056           no)
4057             # Remove language-dependent dirs.
4058             eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4059             ;;
4060           *)
4061             new_enable_languages="$new_enable_languages,$language"
4062             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4063             case ${boot_language} in
4064               yes)
4065                 # Add to (comma-separated) list of stage 1 languages.
4066                 stage1_languages="${stage1_languages},${language}"
4067                 ;;
4068             esac
4069             ;;
4070         esac
4071         ;;
4072     esac
4073   done
4074
4075   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4076   if test "x$missing_languages" != x; then
4077     { { echo "$as_me:$LINENO: error:
4078 The following requested languages could not be built: ${missing_languages}
4079 Recognised languages are: ${potential_languages}" >&5
4080 echo "$as_me: error:
4081 The following requested languages could not be built: ${missing_languages}
4082 Recognised languages are: ${potential_languages}" >&2;}
4083    { (exit 1); exit 1; }; }
4084   fi
4085
4086   if test "x$new_enable_languages" != "x$enable_languages"; then
4087     echo The following languages will be built: ${new_enable_languages}
4088   fi
4089   enable_languages="$new_enable_languages"
4090   ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
4091 fi
4092
4093 # Handle --disable-<component> generically.
4094 for dir in $configdirs $build_configdirs $target_configdirs ; do
4095   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4096   if eval test x\${enable_${dirname}} "=" xno ; then
4097     noconfigdirs="$noconfigdirs $dir"
4098   fi
4099 done
4100
4101 # Check for Boehm's garbage collector
4102 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4103 if test "${enable_objc_gc+set}" = set; then
4104   enableval="$enable_objc_gc"
4105   case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4106   *,objc,*:*:yes:*target-boehm-gc*)
4107     { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4108 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4109    { (exit 1); exit 1; }; }
4110     ;;
4111 esac
4112 fi;
4113
4114 # Make sure we only build Boehm's garbage collector if required.
4115 case ,${enable_languages},:${enable_objc_gc} in
4116   *,objc,*:yes)
4117     # Keep target-boehm-gc if requested for Objective-C.
4118     ;;
4119   *)
4120     # Otherwise remove target-boehm-gc depending on target-libjava.
4121     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4122       noconfigdirs="$noconfigdirs target-boehm-gc"
4123     fi
4124     ;;
4125 esac
4126
4127 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4128 # $build_configdirs and $target_configdirs.
4129 # If we have the source for $noconfigdirs entries, add them to $notsupp.
4130
4131 notsupp=""
4132 for dir in . $skipdirs $noconfigdirs ; do
4133   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
4134   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4135     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4136     if test -r $srcdir/$dirname/configure ; then
4137       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4138         true
4139       else
4140         notsupp="$notsupp $dir"
4141       fi
4142     fi
4143   fi
4144   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4145     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4146     if test -r $srcdir/$dirname/configure ; then
4147       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4148         true
4149       else
4150         notsupp="$notsupp $dir"
4151       fi
4152     fi
4153   fi
4154   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4155     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4156     if test -r $srcdir/$dirname/configure ; then
4157       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4158         true
4159       else
4160         notsupp="$notsupp $dir"
4161       fi
4162     fi
4163   fi
4164 done
4165
4166 # Sometimes the tools are distributed with libiberty but with no other
4167 # libraries.  In that case, we don't want to build target-libiberty.
4168 if test -n "${target_configdirs}" ; then
4169   others=
4170   for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
4171     if test "$i" != "libiberty" ; then
4172       if test -r $srcdir/$i/configure ; then
4173         others=yes;
4174         break;
4175       fi
4176     fi
4177   done
4178   if test -z "${others}" ; then
4179     target_configdirs=
4180   fi
4181 fi
4182
4183 # Quietly strip out all directories which aren't configurable in this tree.
4184 # This relies on all configurable subdirectories being autoconfiscated, which
4185 # is now the case.
4186 build_configdirs_all="$build_configdirs"
4187 build_configdirs=
4188 for i in ${build_configdirs_all} ; do
4189   j=`echo $i | sed -e s/build-//g`
4190   if test -f ${srcdir}/$j/configure ; then
4191     build_configdirs="${build_configdirs} $i"
4192   fi
4193 done
4194
4195 configdirs_all="$configdirs"
4196 configdirs=
4197 for i in ${configdirs_all} ; do
4198   if test -f ${srcdir}/$i/configure ; then
4199     configdirs="${configdirs} $i"
4200   fi
4201 done
4202
4203 target_configdirs_all="$target_configdirs"
4204 target_configdirs=
4205 for i in ${target_configdirs_all} ; do
4206   j=`echo $i | sed -e s/target-//g`
4207   if test -f ${srcdir}/$j/configure ; then
4208     target_configdirs="${target_configdirs} $i"
4209   fi
4210 done
4211
4212 # Produce a warning message for the subdirs we can't configure.
4213 # This isn't especially interesting in the Cygnus tree, but in the individual
4214 # FSF releases, it's important to let people know when their machine isn't
4215 # supported by the one or two programs in a package.
4216
4217 if test -n "${notsupp}" && test -z "${norecursion}" ; then
4218   # If $appdirs is non-empty, at least one of those directories must still
4219   # be configured, or we error out.  (E.g., if the gas release supports a
4220   # specified target in some subdirs but not the gas subdir, we shouldn't
4221   # pretend that all is well.)
4222   if test -n "$appdirs" ; then
4223     for dir in $appdirs ; do
4224       if test -r $dir/Makefile.in ; then
4225         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4226           appdirs=""
4227           break
4228         fi
4229         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
4230           appdirs=""
4231           break
4232         fi
4233       fi
4234     done
4235     if test -n "$appdirs" ; then
4236       echo "*** This configuration is not supported by this package." 1>&2
4237       exit 1
4238     fi
4239   fi
4240   # Okay, some application will build, or we don't care to check.  Still
4241   # notify of subdirs not getting built.
4242   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4243   echo "    ${notsupp}" 1>&2
4244   echo "    (Any other directories should still work fine.)" 1>&2
4245 fi
4246
4247 case "$host" in
4248   *msdosdjgpp*)
4249     enable_gdbtk=no ;;
4250 esac
4251
4252 copy_dirs=
4253
4254
4255 # Check whether --with-build-sysroot or --without-build-sysroot was given.
4256 if test "${with_build_sysroot+set}" = set; then
4257   withval="$with_build_sysroot"
4258   if test x"$withval" != x ; then
4259      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
4260    fi
4261 else
4262   SYSROOT_CFLAGS_FOR_TARGET=
4263 fi;
4264
4265
4266 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
4267 # the named directory are copied to $(tooldir)/sys-include.
4268 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
4269   if test x${is_cross_compiler} = xno ; then
4270     echo 1>&2 '***' --with-headers is only supported when cross compiling
4271     exit 1
4272   fi
4273   if test x"${with_headers}" != xyes ; then
4274     case "${exec_prefixoption}" in
4275     "") x=${prefix} ;;
4276     *) x=${exec_prefix} ;;
4277     esac
4278     copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
4279   fi
4280 fi
4281
4282 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
4283 # the name directories are copied to $(tooldir)/lib.  Multiple directories
4284 # are permitted.
4285 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
4286   if test x${is_cross_compiler} = xno ; then
4287     echo 1>&2 '***' --with-libs is only supported when cross compiling
4288     exit 1
4289   fi
4290   if test x"${with_libs}" != xyes ; then
4291     # Copy the libraries in reverse order, so that files in the first named
4292     # library override files in subsequent libraries.
4293     case "${exec_prefixoption}" in
4294     "") x=${prefix} ;;
4295     *) x=${exec_prefix} ;;
4296     esac
4297     for l in ${with_libs}; do
4298       copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
4299     done
4300   fi
4301 fi
4302
4303 # Set with_gnu_as and with_gnu_ld as appropriate.
4304 #
4305 # This is done by determining whether or not the appropriate directory
4306 # is available, and by checking whether or not specific configurations
4307 # have requested that this magic not happen.
4308 #
4309 # The command line options always override the explicit settings in
4310 # configure.in, and the settings in configure.in override this magic.
4311 #
4312 # If the default for a toolchain is to use GNU as and ld, and you don't
4313 # want to do that, then you should use the --without-gnu-as and
4314 # --without-gnu-ld options for the configure script.
4315
4316 if test x${use_gnu_as} = x &&
4317    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
4318   with_gnu_as=yes
4319   extra_host_args="$extra_host_args --with-gnu-as"
4320 fi
4321
4322 if test x${use_gnu_ld} = x &&
4323    echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
4324   with_gnu_ld=yes
4325   extra_host_args="$extra_host_args --with-gnu-ld"
4326 fi
4327
4328 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
4329 # can detect this case.
4330
4331 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
4332   with_newlib=yes
4333   extra_host_args="$extra_host_args --with-newlib"
4334 fi
4335
4336 # Handle ${copy_dirs}
4337 set fnord ${copy_dirs}
4338 shift
4339 while test $# != 0 ; do
4340   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
4341     :
4342   else
4343     echo Copying $1 to $2
4344
4345     # Use the install script to create the directory and all required
4346     # parent directories.
4347     if test -d $2 ; then
4348       :
4349     else
4350       echo >config.temp
4351       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
4352     fi
4353
4354     # Copy the directory, assuming we have tar.
4355     # FIXME: Should we use B in the second tar?  Not all systems support it.
4356     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
4357
4358     # It is the responsibility of the user to correctly adjust all
4359     # symlinks.  If somebody can figure out how to handle them correctly
4360     # here, feel free to add the code.
4361
4362     echo $1 > $2/COPIED
4363   fi
4364   shift; shift
4365 done
4366
4367 # Determine a target-dependent exec_prefix that the installed
4368 # gcc will search in.  Keep this list sorted by triplet, with
4369 # the *-*-osname triplets last.
4370 md_exec_prefix=
4371 case "${target}" in
4372   alpha*-*-*vms*)
4373     md_exec_prefix=/gnu/lib/gcc-lib
4374     ;;
4375   i3456786-pc-msdosdjgpp*)
4376     md_exec_prefix=/dev/env/DJDIR/bin
4377     ;;
4378   i3456786-*-sco3.2v5*)
4379     if test $with_gnu_as = yes; then
4380       md_exec_prefix=/usr/gnu/bin
4381     else
4382       md_exec_prefix=/usr/ccs/bin/elf
4383     fi
4384     ;;
4385
4386   mn10300-*-* | \
4387   powerpc-*-chorusos* | \
4388   powerpc*-*-eabi* | \
4389   powerpc*-*-sysv* | \
4390   powerpc*-*-kaos* | \
4391   s390x-ibm-tpf*)
4392     md_exec_prefix=/usr/ccs/bin
4393     ;;
4394   sparc64-*-elf*)
4395     ;;
4396   v850*-*-*)
4397     md_exec_prefix=/usr/ccs/bin
4398     ;;
4399   xtensa-*-elf*)
4400     ;;
4401
4402   *-*-beos* | \
4403   *-*-elf* | \
4404   *-*-hpux* | \
4405   *-*-netware* | \
4406   *-*-nto-qnx* | \
4407   *-*-rtems* | \
4408   *-*-solaris2* | \
4409   *-*-sysv45* | \
4410   *-*-vxworks* | \
4411   *-wrs-windiss)
4412     md_exec_prefix=/usr/ccs/bin
4413     ;;
4414 esac
4415
4416 extra_arflags_for_target=
4417 extra_nmflags_for_target=
4418 extra_ranlibflags_for_target=
4419 target_makefile_frag=/dev/null
4420 case "${target}" in
4421   spu-*-*)
4422     target_makefile_frag="config/mt-spu"
4423     ;;
4424   *-*-netware*)
4425     target_makefile_frag="config/mt-netware"
4426     ;;
4427   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
4428     target_makefile_frag="config/mt-gnu"
4429     ;;
4430   *-*-aix4.[3456789]* | *-*-aix[56789].*)
4431     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
4432     # commands to handle both 32-bit and 64-bit objects.  These flags are
4433     # harmless if we're using GNU nm or ar.
4434     extra_arflags_for_target=" -X32_64"
4435     extra_nmflags_for_target=" -B -X32_64"
4436     ;;
4437   *-*-darwin*)
4438     # ranlib from Darwin requires the -c flag to look at common symbols.
4439     extra_ranlibflags_for_target=" -c"
4440     ;;
4441   mips*-*-pe | sh*-*-pe | *arm-wince-pe)
4442     target_makefile_frag="config/mt-wince"
4443     ;;
4444 esac
4445
4446 alphaieee_frag=/dev/null
4447 case $target in
4448   alpha*-*-*)
4449     # This just makes sure to use the -mieee option to build target libs.
4450     # This should probably be set individually by each library.
4451     alphaieee_frag="config/mt-alphaieee"
4452     ;;
4453 esac
4454
4455 # If --enable-target-optspace always use -Os instead of -O2 to build
4456 # the target libraries, similarly if it is not specified, use -Os
4457 # on selected platforms.
4458 ospace_frag=/dev/null
4459 case "${enable_target_optspace}:${target}" in
4460   yes:*)
4461     ospace_frag="config/mt-ospace"
4462     ;;
4463   :d30v-*)
4464     ospace_frag="config/mt-d30v"
4465     ;;
4466   :m32r-* | :d10v-* | :fr30-*)
4467     ospace_frag="config/mt-ospace"
4468     ;;
4469   no:* | :*)
4470     ;;
4471   *)
4472     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
4473     ;;
4474 esac
4475
4476 # Default to using --with-stabs for certain targets.
4477 if test x${with_stabs} = x ; then
4478   case "${target}" in
4479   mips*-*-irix[56]*)
4480     ;;
4481   mips*-*-* | alpha*-*-osf*)
4482     with_stabs=yes;
4483     extra_host_args="${extra_host_args} --with-stabs"
4484     ;;
4485   esac
4486 fi
4487
4488 # hpux11 in 64bit mode has libraries in a weird place.  Arrange to find
4489 # them automatically.
4490 case "${host}" in
4491   hppa*64*-*-hpux11*)
4492     extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
4493     ;;
4494 esac
4495
4496 # Some systems (e.g., one of the i386-aix systems the gas testers are
4497 # using) don't handle "\$" correctly, so don't use it here.
4498 tooldir='${exec_prefix}'/${target_alias}
4499 build_tooldir=${tooldir}
4500
4501 # Create a .gdbinit file which runs the one in srcdir
4502 # and tells GDB to look there for source files.
4503
4504 if test -r ${srcdir}/.gdbinit ; then
4505   case ${srcdir} in
4506     .) ;;
4507     *) cat > ./.gdbinit <<EOF
4508 # ${NO_EDIT}
4509 dir ${srcdir}
4510 dir .
4511 source ${srcdir}/.gdbinit
4512 EOF
4513     ;;
4514   esac
4515 fi
4516
4517 # Make sure that the compiler is able to generate an executable.  If it
4518 # can't, we are probably in trouble.  We don't care whether we can run the
4519 # executable--we might be using a cross compiler--we only care whether it
4520 # can be created.  At this point the main configure script has set CC.
4521 we_are_ok=no
4522 echo "int main () { return 0; }" > conftest.c
4523 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
4524 if test $? = 0 ; then
4525   if test -s conftest || test -s conftest.exe ; then
4526     we_are_ok=yes
4527   fi
4528 fi
4529 case $we_are_ok in
4530   no)
4531     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
4532     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
4533     rm -f conftest*
4534     exit 1
4535     ;;
4536 esac
4537 rm -f conftest*
4538
4539 # The Solaris /usr/ucb/cc compiler does not appear to work.
4540 case "${host}" in
4541   sparc-sun-solaris2*)
4542       CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
4543       if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
4544           could_use=
4545           test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
4546           if test -d /opt/cygnus/bin ; then
4547               if test "$could_use" = "" ; then
4548                   could_use="/opt/cygnus/bin"
4549               else
4550                   could_use="$could_use or /opt/cygnus/bin"
4551               fi
4552           fi
4553         if test "$could_use" = "" ; then
4554             echo "Warning: compilation may fail because you're using"
4555             echo "/usr/ucb/cc.  You should change your PATH or CC "
4556             echo "variable and rerun configure."
4557         else
4558             echo "Warning: compilation may fail because you're using"
4559             echo "/usr/ucb/cc, when you should use the C compiler from"
4560             echo "$could_use.  You should change your"
4561             echo "PATH or CC variable and rerun configure."
4562         fi
4563       fi
4564   ;;
4565 esac
4566
4567 case "${host}" in
4568   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
4569   *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
4570   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
4571 esac
4572
4573 # Record target_configdirs and the configure arguments for target and
4574 # build configuration in Makefile.
4575 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
4576 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
4577
4578 # Determine whether gdb needs tk/tcl or not.
4579 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
4580 # and in that case we want gdb to be built without tk.  Ugh!
4581 # In fact I believe gdb is the *only* package directly dependent on tk,
4582 # so we should be able to put the 'maybe's in unconditionally and
4583 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
4584 # 100% sure that that's safe though.
4585
4586 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
4587 case "$enable_gdbtk" in
4588   no)
4589     GDB_TK="" ;;
4590   yes)
4591     GDB_TK="${gdb_tk}" ;;
4592   *)
4593     # Only add the dependency on gdbtk when GDBtk is part of the gdb
4594     # distro.  Eventually someone will fix this and move Insight, nee
4595     # gdbtk to a separate directory.
4596     if test -d ${srcdir}/gdb/gdbtk ; then
4597       GDB_TK="${gdb_tk}"
4598     else
4599       GDB_TK=""
4600     fi
4601     ;;
4602 esac
4603 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
4604 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
4605
4606 # Strip out unwanted targets.
4607
4608 # While at that, we remove Makefiles if we were started for recursive
4609 # configuration, so that the top-level Makefile reconfigures them,
4610 # like we used to do when configure itself was recursive.
4611
4612 # Loop over modules.  $extrasub must be used with care, limiting as
4613 # much as possible the usage of range addresses.  That's because autoconf
4614 # splits the sed script to overcome limits in the number of commands,
4615 # and relying on carefully-timed sed passes may turn out to be very hard
4616 # to maintain later.  In this particular case, you just have to be careful
4617 # not to nest @if/@endif pairs, because configure will not warn you at all.
4618
4619 # Check whether --enable-bootstrap or --disable-bootstrap was given.
4620 if test "${enable_bootstrap+set}" = set; then
4621   enableval="$enable_bootstrap"
4622
4623 else
4624   enable_bootstrap=default
4625 fi;
4626
4627 # Issue errors and warnings for invalid/strange bootstrap combinations.
4628 case "$configdirs" in
4629   *gcc*) have_compiler=yes ;;
4630   *) have_compiler=no ;;
4631 esac
4632
4633 case "$have_compiler:$host:$target:$enable_bootstrap" in
4634   *:*:*:no) ;;
4635
4636   # Default behavior.  Enable bootstrap if we have a compiler
4637   # and we are in a native configuration.
4638   yes:$build:$build:default)
4639     enable_bootstrap=yes ;;
4640
4641   *:*:*:default)
4642     enable_bootstrap=no ;;
4643
4644   # We have a compiler and we are in a native configuration, bootstrap is ok
4645   yes:$build:$build:yes)
4646     ;;
4647
4648   # Other configurations, but we have a compiler.  Assume the user knows
4649   # what he's doing.
4650   yes:*:*:yes)
4651     { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
4652 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
4653     ;;
4654
4655   # No compiler: if they passed --enable-bootstrap explicitly, fail
4656   no:*:*:yes)
4657     { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
4658 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
4659    { (exit 1); exit 1; }; } ;;
4660
4661   # Fail if wrong command line
4662   *)
4663     { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
4664 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
4665    { (exit 1); exit 1; }; }
4666     ;;
4667 esac
4668
4669 # Adjust the toplevel makefile according to whether bootstrap was selected.
4670 case "$enable_bootstrap" in
4671   yes)
4672     bootstrap_suffix=bootstrap ;;
4673   no)
4674     bootstrap_suffix=no-bootstrap ;;
4675 esac
4676
4677 for module in ${build_configdirs} ; do
4678   if test -z "${no_recursion}" \
4679      && test -f ${build_subdir}/${module}/Makefile; then
4680     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
4681     rm -f ${build_subdir}/${module}/Makefile
4682   fi
4683   extrasub="$extrasub
4684 /^@if build-$module\$/d
4685 /^@endif build-$module\$/d
4686 /^@if build-$module-$bootstrap_suffix\$/d
4687 /^@endif build-$module-$bootstrap_suffix\$/d"
4688 done
4689 for module in ${configdirs} ; do
4690   if test -z "${no_recursion}"; then
4691     for file in stage*-${module}/Makefile ${module}/Makefile; do
4692       if test -f ${file}; then
4693         echo 1>&2 "*** removing ${file} to force reconfigure"
4694         rm -f ${file}
4695       fi
4696     done
4697   fi
4698   extrasub="$extrasub
4699 /^@if $module\$/d
4700 /^@endif $module\$/d
4701 /^@if $module-$bootstrap_suffix\$/d
4702 /^@endif $module-$bootstrap_suffix\$/d"
4703 done
4704 for module in ${target_configdirs} ; do
4705   if test -z "${no_recursion}" \
4706      && test -f ${target_subdir}/${module}/Makefile; then
4707     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
4708     rm -f ${target_subdir}/${module}/Makefile
4709   fi
4710   extrasub="$extrasub
4711 /^@if target-$module\$/d
4712 /^@endif target-$module\$/d
4713 /^@if target-$module-$bootstrap_suffix\$/d
4714 /^@endif target-$module-$bootstrap_suffix\$/d"
4715 done
4716
4717 extrasub="$extrasub
4718 /^@if /,/^@endif /d"
4719
4720 # Create the serialization dependencies.  This uses a temporary file.
4721
4722 # Check whether --enable-serial-configure or --disable-serial-configure was given.
4723 if test "${enable_serial_configure+set}" = set; then
4724   enableval="$enable_serial_configure"
4725
4726 fi;
4727
4728 case ${enable_serial_configure} in
4729   yes)
4730     enable_serial_build_configure=yes
4731     enable_serial_host_configure=yes
4732     enable_serial_target_configure=yes
4733     ;;
4734 esac
4735
4736 # These force 'configure's to be done one at a time, to avoid problems
4737 # with contention over a shared config.cache.
4738 rm -f serdep.tmp
4739 echo '# serdep.tmp' > serdep.tmp
4740 olditem=
4741 test "x${enable_serial_build_configure}" = xyes &&
4742 for item in ${build_configdirs} ; do
4743   case ${olditem} in
4744     "") ;;
4745     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
4746   esac
4747   olditem=${item}
4748 done
4749 olditem=
4750 test "x${enable_serial_host_configure}" = xyes &&
4751 for item in ${configdirs} ; do
4752   case ${olditem} in
4753     "") ;;
4754     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
4755   esac
4756   olditem=${item}
4757 done
4758 olditem=
4759 test "x${enable_serial_target_configure}" = xyes &&
4760 for item in ${target_configdirs} ; do
4761   case ${olditem} in
4762     "") ;;
4763     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
4764   esac
4765   olditem=${item}
4766 done
4767 serialization_dependencies=serdep.tmp
4768
4769
4770 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
4771 # target and nonopt.  These are the ones we might not want to pass
4772 # down to subconfigures.  Also strip program-prefix, program-suffix,
4773 # and program-transform-name, so that we can pass down a consistent
4774 # program-transform-name.  If autoconf has put single quotes around
4775 # any of these arguments (because they contain shell metacharacters)
4776 # then this will fail; in practice this only happens for
4777 # --program-transform-name, so be sure to override --program-transform-name
4778 # at the end of the argument list.
4779 # These will be expanded by make, so quote '$'.
4780 cat <<\EOF_SED > conftestsed
4781 s/ --no[^ ]*/ /g
4782 s/ --c[a-z-]*[= ][^ ]*//g
4783 s/ --sr[a-z-]*[= ][^ ]*//g
4784 s/ --ho[a-z-]*[= ][^ ]*//g
4785 s/ --bu[a-z-]*[= ][^ ]*//g
4786 s/ --t[a-z-]*[= ][^ ]*//g
4787 s/ --program-[pst][a-z-]*[= ][^ ]*//g
4788 s/ -cache-file[= ][^ ]*//g
4789 s/ -srcdir[= ][^ ]*//g
4790 s/ -host[= ][^ ]*//g
4791 s/ -build[= ][^ ]*//g
4792 s/ -target[= ][^ ]*//g
4793 s/ -program-prefix[= ][^ ]*//g
4794 s/ -program-suffix[= ][^ ]*//g
4795 s/ -program-transform-name[= ][^ ]*//g
4796 s/ [^' -][^ ]* / /
4797 s/^ *//;s/ *$//
4798 s,\$,$$,g
4799 EOF_SED
4800 sed -f conftestsed <<EOF_SED > conftestsed.out
4801  ${ac_configure_args}
4802 EOF_SED
4803 baseargs=`cat conftestsed.out`
4804 rm -f conftestsed conftestsed.out
4805
4806 # Add in --program-transform-name, after --program-prefix and
4807 # --program-suffix have been applied to it.  Autoconf has already
4808 # doubled dollar signs and backslashes in program_transform_name; we want
4809 # the backslashes un-doubled, and then the entire thing wrapped in single
4810 # quotes, because this will be expanded first by make and then by the shell.
4811 # Also, because we want to override the logic in subdir configure scripts to
4812 # choose program_transform_name, replace any s,x,x, with s,y,y,.
4813 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
4814 ${program_transform_name}
4815 EOF_SED
4816 gcc_transform_name=`cat conftestsed.out`
4817 rm -f conftestsed.out
4818 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
4819
4820 # For the build-side libraries, we just need to pretend we're native,
4821 # and not use the same cache file.  Multilibs are neither needed nor
4822 # desired.
4823 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
4824
4825 # For host modules, accept cache file option, or specification as blank.
4826 case "${cache_file}" in
4827 "") # empty
4828   cache_file_option="" ;;
4829 /* | [A-Za-z]:[\\/]* ) # absolute path
4830   cache_file_option="--cache-file=${cache_file}" ;;
4831 *) # relative path
4832   cache_file_option="--cache-file=../${cache_file}" ;;
4833 esac
4834
4835 # Host dirs don't like to share a cache file either, horribly enough.
4836 # This seems to be due to autoconf 2.5x stupidity.
4837 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
4838
4839 target_configargs=${baseargs}
4840
4841 # Passing a --with-cross-host argument lets the target libraries know
4842 # whether they are being built with a cross-compiler or being built
4843 # native.  However, it would be better to use other mechanisms to make the
4844 # sorts of decisions they want to make on this basis.  Please consider
4845 # this option to be deprecated.  FIXME.
4846 if test x${is_cross_compiler} = xyes ; then
4847   target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
4848 fi
4849
4850 # Default to --enable-multilib.
4851 if test x${enable_multilib} = x ; then
4852   target_configargs="--enable-multilib ${target_configargs}"
4853 fi
4854
4855 # Pass --with-newlib if appropriate.  Note that target_configdirs has
4856 # changed from the earlier setting of with_newlib.
4857 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
4858   target_configargs="--with-newlib ${target_configargs}"
4859 fi
4860
4861 # Different target subdirs use different values of certain variables
4862 # (notably CXX).  Worse, multilibs use *lots* of different values.
4863 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
4864 # it doesn't automatically accept command-line overrides of them.
4865 # This means it's not safe for target subdirs to share a cache file,
4866 # which is disgusting, but there you have it.  Hopefully this can be
4867 # fixed in future.  It's still worthwhile to use a cache file for each
4868 # directory.  I think.
4869
4870 # Pass the appropriate --build, --host, --target and --cache-file arguments.
4871 # We need to pass --target, as newer autoconf's requires consistency
4872 # for target_alias and gcc doesn't manage it consistently.
4873 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
4874
4875 FLAGS_FOR_TARGET=
4876 case " $target_configdirs " in
4877  *" newlib "*)
4878   case " $target_configargs " in
4879   *" --with-newlib "*)
4880    case "$target" in
4881    *-cygwin*)
4882      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' ;;
4883    esac
4884
4885    # If we're not building GCC, don't discard standard headers.
4886    if test -d ${srcdir}/gcc; then
4887      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
4888
4889      if test "${build}" != "${host}"; then
4890        # On Canadian crosses, CC_FOR_TARGET will have already been set
4891        # by `configure', so we won't have an opportunity to add -Bgcc/
4892        # to it.  This is right: we don't want to search that directory
4893        # for binaries, but we want the header files in there, so add
4894        # them explicitly.
4895        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
4896
4897        # Someone might think of using the pre-installed headers on
4898        # Canadian crosses, in case the installed compiler is not fully
4899        # compatible with the compiler being built.  In this case, it
4900        # would be better to flag an error than risking having
4901        # incompatible object files being constructed.  We can't
4902        # guarantee that an error will be flagged, but let's hope the
4903        # compiler will do it, when presented with incompatible header
4904        # files.
4905      fi
4906    fi
4907
4908    case "${target}-${is_cross_compiler}" in
4909    i[3456789]86-*-linux*-no)
4910       # Here host == target, so we don't need to build gcc,
4911       # so we don't want to discard standard headers.
4912       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
4913       ;;
4914    *)
4915       # If we're building newlib, use its generic headers last, but search
4916       # for any libc-related directories first (so make it the last -B
4917       # switch).
4918       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
4919       ;;
4920    esac
4921    ;;
4922   esac
4923   ;;
4924 esac
4925 case "$target" in
4926 *-mingw*)
4927   # Can't be handled as Cygwin above since Mingw does not use newlib.
4928   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' ;;
4929 esac
4930
4931 # Allow the user to override the flags for
4932 # our build compiler if desired.
4933 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
4934
4935 # On Canadian crosses, we'll be searching the right directories for
4936 # the previously-installed cross compiler, so don't bother to add
4937 # flags for directories within the install tree of the compiler
4938 # being built; programs in there won't even run.
4939 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
4940   # Search for pre-installed headers if nothing else fits.
4941   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
4942 fi
4943
4944 if test "x${use_gnu_ld}" = x &&
4945    echo " ${configdirs} " | grep " ld " > /dev/null ; then
4946   # Arrange for us to find uninstalled linker scripts.
4947   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
4948 fi
4949
4950 # Search for other target-specific linker scripts and such.
4951 case "${target}" in
4952   m32c-*-* )
4953     if test -d ${srcdir}/libgloss/m32c; then
4954       # This is for crt0.o
4955       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
4956       # This is for r8c.ld
4957       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
4958       # This is for libnosys.a
4959       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
4960     fi
4961     ;;
4962 esac
4963
4964 # Makefile fragments.
4965 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
4966 do
4967   eval fragval=\$$frag
4968   if test $fragval != /dev/null; then
4969     eval $frag=${srcdir}/$fragval
4970   fi
4971 done
4972
4973
4974
4975
4976
4977 # Miscellanea: directories, flags, etc.
4978
4979
4980
4981
4982
4983
4984
4985 # Build module lists & subconfigure args.
4986
4987
4988
4989 # Host module lists & subconfigure args.
4990
4991
4992
4993 # Target module lists & subconfigure args.
4994
4995
4996
4997 # Build tools.
4998
4999
5000
5001 # Generate default definitions for YACC, M4, LEX and other programs that run
5002 # on the build machine.  These are used if the Makefile can't locate these
5003 # programs in objdir.
5004 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5005
5006 for ac_prog in 'bison -y' byacc yacc
5007 do
5008   # Extract the first word of "$ac_prog", so it can be a program name with args.
5009 set dummy $ac_prog; ac_word=$2
5010 echo "$as_me:$LINENO: checking for $ac_word" >&5
5011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5012 if test "${ac_cv_prog_YACC+set}" = set; then
5013   echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015   if test -n "$YACC"; then
5016   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021   IFS=$as_save_IFS
5022   test -z "$as_dir" && as_dir=.
5023   for ac_exec_ext in '' $ac_executable_extensions; do
5024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025     ac_cv_prog_YACC="$ac_prog"
5026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027     break 2
5028   fi
5029 done
5030 done
5031
5032 fi
5033 fi
5034 YACC=$ac_cv_prog_YACC
5035 if test -n "$YACC"; then
5036   echo "$as_me:$LINENO: result: $YACC" >&5
5037 echo "${ECHO_T}$YACC" >&6
5038 else
5039   echo "$as_me:$LINENO: result: no" >&5
5040 echo "${ECHO_T}no" >&6
5041 fi
5042
5043   test -n "$YACC" && break
5044 done
5045 test -n "$YACC" || YACC="$MISSING bison -y"
5046
5047 case " $build_configdirs " in
5048   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5049   *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5050 esac
5051
5052 for ac_prog in bison
5053 do
5054   # Extract the first word of "$ac_prog", so it can be a program name with args.
5055 set dummy $ac_prog; ac_word=$2
5056 echo "$as_me:$LINENO: checking for $ac_word" >&5
5057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5058 if test "${ac_cv_prog_BISON+set}" = set; then
5059   echo $ECHO_N "(cached) $ECHO_C" >&6
5060 else
5061   if test -n "$BISON"; then
5062   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5066 do
5067   IFS=$as_save_IFS
5068   test -z "$as_dir" && as_dir=.
5069   for ac_exec_ext in '' $ac_executable_extensions; do
5070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071     ac_cv_prog_BISON="$ac_prog"
5072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073     break 2
5074   fi
5075 done
5076 done
5077
5078 fi
5079 fi
5080 BISON=$ac_cv_prog_BISON
5081 if test -n "$BISON"; then
5082   echo "$as_me:$LINENO: result: $BISON" >&5
5083 echo "${ECHO_T}$BISON" >&6
5084 else
5085   echo "$as_me:$LINENO: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5087 fi
5088
5089   test -n "$BISON" && break
5090 done
5091 test -n "$BISON" || BISON="$MISSING bison"
5092
5093 case " $build_configdirs " in
5094   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5095 esac
5096
5097 for ac_prog in gm4 gnum4 m4
5098 do
5099   # Extract the first word of "$ac_prog", so it can be a program name with args.
5100 set dummy $ac_prog; ac_word=$2
5101 echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103 if test "${ac_cv_prog_M4+set}" = set; then
5104   echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106   if test -n "$M4"; then
5107   ac_cv_prog_M4="$M4" # Let the user override the test.
5108 else
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5111 do
5112   IFS=$as_save_IFS
5113   test -z "$as_dir" && as_dir=.
5114   for ac_exec_ext in '' $ac_executable_extensions; do
5115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5116     ac_cv_prog_M4="$ac_prog"
5117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118     break 2
5119   fi
5120 done
5121 done
5122
5123 fi
5124 fi
5125 M4=$ac_cv_prog_M4
5126 if test -n "$M4"; then
5127   echo "$as_me:$LINENO: result: $M4" >&5
5128 echo "${ECHO_T}$M4" >&6
5129 else
5130   echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6
5132 fi
5133
5134   test -n "$M4" && break
5135 done
5136 test -n "$M4" || M4="$MISSING m4"
5137
5138 case " $build_configdirs " in
5139   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5140 esac
5141
5142 for ac_prog in flex lex
5143 do
5144   # Extract the first word of "$ac_prog", so it can be a program name with args.
5145 set dummy $ac_prog; ac_word=$2
5146 echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5148 if test "${ac_cv_prog_LEX+set}" = set; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151   if test -n "$LEX"; then
5152   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157   IFS=$as_save_IFS
5158   test -z "$as_dir" && as_dir=.
5159   for ac_exec_ext in '' $ac_executable_extensions; do
5160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161     ac_cv_prog_LEX="$ac_prog"
5162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163     break 2
5164   fi
5165 done
5166 done
5167
5168 fi
5169 fi
5170 LEX=$ac_cv_prog_LEX
5171 if test -n "$LEX"; then
5172   echo "$as_me:$LINENO: result: $LEX" >&5
5173 echo "${ECHO_T}$LEX" >&6
5174 else
5175   echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6
5177 fi
5178
5179   test -n "$LEX" && break
5180 done
5181 test -n "$LEX" || LEX="$MISSING flex"
5182
5183 case " $build_configdirs " in
5184   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5185   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
5186 esac
5187
5188 for ac_prog in flex
5189 do
5190   # Extract the first word of "$ac_prog", so it can be a program name with args.
5191 set dummy $ac_prog; ac_word=$2
5192 echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194 if test "${ac_cv_prog_FLEX+set}" = set; then
5195   echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197   if test -n "$FLEX"; then
5198   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5199 else
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5202 do
5203   IFS=$as_save_IFS
5204   test -z "$as_dir" && as_dir=.
5205   for ac_exec_ext in '' $ac_executable_extensions; do
5206   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207     ac_cv_prog_FLEX="$ac_prog"
5208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209     break 2
5210   fi
5211 done
5212 done
5213
5214 fi
5215 fi
5216 FLEX=$ac_cv_prog_FLEX
5217 if test -n "$FLEX"; then
5218   echo "$as_me:$LINENO: result: $FLEX" >&5
5219 echo "${ECHO_T}$FLEX" >&6
5220 else
5221   echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6
5223 fi
5224
5225   test -n "$FLEX" && break
5226 done
5227 test -n "$FLEX" || FLEX="$MISSING flex"
5228
5229 case " $build_configdirs " in
5230   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5231 esac
5232
5233 for ac_prog in makeinfo
5234 do
5235   # Extract the first word of "$ac_prog", so it can be a program name with args.
5236 set dummy $ac_prog; ac_word=$2
5237 echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5240   echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242   if test -n "$MAKEINFO"; then
5243   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5244 else
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5247 do
5248   IFS=$as_save_IFS
5249   test -z "$as_dir" && as_dir=.
5250   for ac_exec_ext in '' $ac_executable_extensions; do
5251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252     ac_cv_prog_MAKEINFO="$ac_prog"
5253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254     break 2
5255   fi
5256 done
5257 done
5258
5259 fi
5260 fi
5261 MAKEINFO=$ac_cv_prog_MAKEINFO
5262 if test -n "$MAKEINFO"; then
5263   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5264 echo "${ECHO_T}$MAKEINFO" >&6
5265 else
5266   echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6
5268 fi
5269
5270   test -n "$MAKEINFO" && break
5271 done
5272 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
5273
5274 case " $build_configdirs " in
5275   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
5276   *)
5277
5278     # For an installed makeinfo, we require it to be from texinfo 4.4 or
5279     # higher, else we use the "missing" dummy.
5280     if ${MAKEINFO} --version \
5281        | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
5282       :
5283     else
5284       MAKEINFO="$MISSING makeinfo"
5285     fi
5286     ;;
5287
5288 esac
5289
5290 # FIXME: expect and dejagnu may become build tools?
5291
5292 for ac_prog in expect
5293 do
5294   # Extract the first word of "$ac_prog", so it can be a program name with args.
5295 set dummy $ac_prog; ac_word=$2
5296 echo "$as_me:$LINENO: checking for $ac_word" >&5
5297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5298 if test "${ac_cv_prog_EXPECT+set}" = set; then
5299   echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301   if test -n "$EXPECT"; then
5302   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5306 do
5307   IFS=$as_save_IFS
5308   test -z "$as_dir" && as_dir=.
5309   for ac_exec_ext in '' $ac_executable_extensions; do
5310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311     ac_cv_prog_EXPECT="$ac_prog"
5312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5313     break 2
5314   fi
5315 done
5316 done
5317
5318 fi
5319 fi
5320 EXPECT=$ac_cv_prog_EXPECT
5321 if test -n "$EXPECT"; then
5322   echo "$as_me:$LINENO: result: $EXPECT" >&5
5323 echo "${ECHO_T}$EXPECT" >&6
5324 else
5325   echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6
5327 fi
5328
5329   test -n "$EXPECT" && break
5330 done
5331 test -n "$EXPECT" || EXPECT="expect"
5332
5333 case " $configdirs " in
5334   *" expect "*)
5335     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
5336     ;;
5337 esac
5338
5339 for ac_prog in runtest
5340 do
5341   # Extract the first word of "$ac_prog", so it can be a program name with args.
5342 set dummy $ac_prog; ac_word=$2
5343 echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5345 if test "${ac_cv_prog_RUNTEST+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   if test -n "$RUNTEST"; then
5349   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
5350 else
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH
5353 do
5354   IFS=$as_save_IFS
5355   test -z "$as_dir" && as_dir=.
5356   for ac_exec_ext in '' $ac_executable_extensions; do
5357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358     ac_cv_prog_RUNTEST="$ac_prog"
5359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360     break 2
5361   fi
5362 done
5363 done
5364
5365 fi
5366 fi
5367 RUNTEST=$ac_cv_prog_RUNTEST
5368 if test -n "$RUNTEST"; then
5369   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5370 echo "${ECHO_T}$RUNTEST" >&6
5371 else
5372   echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6
5374 fi
5375
5376   test -n "$RUNTEST" && break
5377 done
5378 test -n "$RUNTEST" || RUNTEST="runtest"
5379
5380 case " $configdirs " in
5381   *" dejagnu "*)
5382     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
5383     ;;
5384 esac
5385
5386
5387 # Host tools.
5388 ncn_tool_prefix=
5389 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
5390 ncn_target_tool_prefix=
5391 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
5392
5393  for ncn_progname in ar; do
5394   if test -n "$ncn_tool_prefix"; then
5395     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5396 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5397 echo "$as_me:$LINENO: checking for $ac_word" >&5
5398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5399 if test "${ac_cv_prog_AR+set}" = set; then
5400   echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402   if test -n "$AR"; then
5403   ac_cv_prog_AR="$AR" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5407 do
5408   IFS=$as_save_IFS
5409   test -z "$as_dir" && as_dir=.
5410   for ac_exec_ext in '' $ac_executable_extensions; do
5411   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5412     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414     break 2
5415   fi
5416 done
5417 done
5418
5419 fi
5420 fi
5421 AR=$ac_cv_prog_AR
5422 if test -n "$AR"; then
5423   echo "$as_me:$LINENO: result: $AR" >&5
5424 echo "${ECHO_T}$AR" >&6
5425 else
5426   echo "$as_me:$LINENO: result: no" >&5
5427 echo "${ECHO_T}no" >&6
5428 fi
5429
5430   fi
5431   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
5432     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5433 set dummy ${ncn_progname}; ac_word=$2
5434 echo "$as_me:$LINENO: checking for $ac_word" >&5
5435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436 if test "${ac_cv_prog_AR+set}" = set; then
5437   echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439   if test -n "$AR"; then
5440   ac_cv_prog_AR="$AR" # Let the user override the test.
5441 else
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5444 do
5445   IFS=$as_save_IFS
5446   test -z "$as_dir" && as_dir=.
5447   for ac_exec_ext in '' $ac_executable_extensions; do
5448   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449     ac_cv_prog_AR="${ncn_progname}"
5450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451     break 2
5452   fi
5453 done
5454 done
5455
5456 fi
5457 fi
5458 AR=$ac_cv_prog_AR
5459 if test -n "$AR"; then
5460   echo "$as_me:$LINENO: result: $AR" >&5
5461 echo "${ECHO_T}$AR" >&6
5462 else
5463   echo "$as_me:$LINENO: result: no" >&5
5464 echo "${ECHO_T}no" >&6
5465 fi
5466
5467   fi
5468   test -n "$ac_cv_prog_AR" && break
5469 done
5470
5471 if test -z "$ac_cv_prog_AR" ; then
5472   set dummy ar
5473   if test $build = $host ; then
5474     AR="$2"
5475   else
5476     AR="${ncn_tool_prefix}$2"
5477   fi
5478 fi
5479
5480  for ncn_progname in as; do
5481   if test -n "$ncn_tool_prefix"; then
5482     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5483 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5484 echo "$as_me:$LINENO: checking for $ac_word" >&5
5485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5486 if test "${ac_cv_prog_AS+set}" = set; then
5487   echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489   if test -n "$AS"; then
5490   ac_cv_prog_AS="$AS" # Let the user override the test.
5491 else
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495   IFS=$as_save_IFS
5496   test -z "$as_dir" && as_dir=.
5497   for ac_exec_ext in '' $ac_executable_extensions; do
5498   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5501     break 2
5502   fi
5503 done
5504 done
5505
5506 fi
5507 fi
5508 AS=$ac_cv_prog_AS
5509 if test -n "$AS"; then
5510   echo "$as_me:$LINENO: result: $AS" >&5
5511 echo "${ECHO_T}$AS" >&6
5512 else
5513   echo "$as_me:$LINENO: result: no" >&5
5514 echo "${ECHO_T}no" >&6
5515 fi
5516
5517   fi
5518   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
5519     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5520 set dummy ${ncn_progname}; ac_word=$2
5521 echo "$as_me:$LINENO: checking for $ac_word" >&5
5522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5523 if test "${ac_cv_prog_AS+set}" = set; then
5524   echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526   if test -n "$AS"; then
5527   ac_cv_prog_AS="$AS" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532   IFS=$as_save_IFS
5533   test -z "$as_dir" && as_dir=.
5534   for ac_exec_ext in '' $ac_executable_extensions; do
5535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536     ac_cv_prog_AS="${ncn_progname}"
5537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5538     break 2
5539   fi
5540 done
5541 done
5542
5543 fi
5544 fi
5545 AS=$ac_cv_prog_AS
5546 if test -n "$AS"; then
5547   echo "$as_me:$LINENO: result: $AS" >&5
5548 echo "${ECHO_T}$AS" >&6
5549 else
5550   echo "$as_me:$LINENO: result: no" >&5
5551 echo "${ECHO_T}no" >&6
5552 fi
5553
5554   fi
5555   test -n "$ac_cv_prog_AS" && break
5556 done
5557
5558 if test -z "$ac_cv_prog_AS" ; then
5559   set dummy as
5560   if test $build = $host ; then
5561     AS="$2"
5562   else
5563     AS="${ncn_tool_prefix}$2"
5564   fi
5565 fi
5566
5567  for ncn_progname in dlltool; do
5568   if test -n "$ncn_tool_prefix"; then
5569     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5570 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5571 echo "$as_me:$LINENO: checking for $ac_word" >&5
5572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5573 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5574   echo $ECHO_N "(cached) $ECHO_C" >&6
5575 else
5576   if test -n "$DLLTOOL"; then
5577   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5581 do
5582   IFS=$as_save_IFS
5583   test -z "$as_dir" && as_dir=.
5584   for ac_exec_ext in '' $ac_executable_extensions; do
5585   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5588     break 2
5589   fi
5590 done
5591 done
5592
5593 fi
5594 fi
5595 DLLTOOL=$ac_cv_prog_DLLTOOL
5596 if test -n "$DLLTOOL"; then
5597   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5598 echo "${ECHO_T}$DLLTOOL" >&6
5599 else
5600   echo "$as_me:$LINENO: result: no" >&5
5601 echo "${ECHO_T}no" >&6
5602 fi
5603
5604   fi
5605   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
5606     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5607 set dummy ${ncn_progname}; ac_word=$2
5608 echo "$as_me:$LINENO: checking for $ac_word" >&5
5609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5610 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5611   echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613   if test -n "$DLLTOOL"; then
5614   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5615 else
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH
5618 do
5619   IFS=$as_save_IFS
5620   test -z "$as_dir" && as_dir=.
5621   for ac_exec_ext in '' $ac_executable_extensions; do
5622   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623     ac_cv_prog_DLLTOOL="${ncn_progname}"
5624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5625     break 2
5626   fi
5627 done
5628 done
5629
5630 fi
5631 fi
5632 DLLTOOL=$ac_cv_prog_DLLTOOL
5633 if test -n "$DLLTOOL"; then
5634   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5635 echo "${ECHO_T}$DLLTOOL" >&6
5636 else
5637   echo "$as_me:$LINENO: result: no" >&5
5638 echo "${ECHO_T}no" >&6
5639 fi
5640
5641   fi
5642   test -n "$ac_cv_prog_DLLTOOL" && break
5643 done
5644
5645 if test -z "$ac_cv_prog_DLLTOOL" ; then
5646   set dummy dlltool
5647   if test $build = $host ; then
5648     DLLTOOL="$2"
5649   else
5650     DLLTOOL="${ncn_tool_prefix}$2"
5651   fi
5652 fi
5653
5654  for ncn_progname in ld; do
5655   if test -n "$ncn_tool_prefix"; then
5656     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5657 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5658 echo "$as_me:$LINENO: checking for $ac_word" >&5
5659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5660 if test "${ac_cv_prog_LD+set}" = set; then
5661   echo $ECHO_N "(cached) $ECHO_C" >&6
5662 else
5663   if test -n "$LD"; then
5664   ac_cv_prog_LD="$LD" # Let the user override the test.
5665 else
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5668 do
5669   IFS=$as_save_IFS
5670   test -z "$as_dir" && as_dir=.
5671   for ac_exec_ext in '' $ac_executable_extensions; do
5672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675     break 2
5676   fi
5677 done
5678 done
5679
5680 fi
5681 fi
5682 LD=$ac_cv_prog_LD
5683 if test -n "$LD"; then
5684   echo "$as_me:$LINENO: result: $LD" >&5
5685 echo "${ECHO_T}$LD" >&6
5686 else
5687   echo "$as_me:$LINENO: result: no" >&5
5688 echo "${ECHO_T}no" >&6
5689 fi
5690
5691   fi
5692   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
5693     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5694 set dummy ${ncn_progname}; ac_word=$2
5695 echo "$as_me:$LINENO: checking for $ac_word" >&5
5696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5697 if test "${ac_cv_prog_LD+set}" = set; then
5698   echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700   if test -n "$LD"; then
5701   ac_cv_prog_LD="$LD" # Let the user override the test.
5702 else
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5705 do
5706   IFS=$as_save_IFS
5707   test -z "$as_dir" && as_dir=.
5708   for ac_exec_ext in '' $ac_executable_extensions; do
5709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710     ac_cv_prog_LD="${ncn_progname}"
5711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5712     break 2
5713   fi
5714 done
5715 done
5716
5717 fi
5718 fi
5719 LD=$ac_cv_prog_LD
5720 if test -n "$LD"; then
5721   echo "$as_me:$LINENO: result: $LD" >&5
5722 echo "${ECHO_T}$LD" >&6
5723 else
5724   echo "$as_me:$LINENO: result: no" >&5
5725 echo "${ECHO_T}no" >&6
5726 fi
5727
5728   fi
5729   test -n "$ac_cv_prog_LD" && break
5730 done
5731
5732 if test -z "$ac_cv_prog_LD" ; then
5733   set dummy ld
5734   if test $build = $host ; then
5735     LD="$2"
5736   else
5737     LD="${ncn_tool_prefix}$2"
5738   fi
5739 fi
5740
5741  for ncn_progname in lipo; do
5742   if test -n "$ncn_tool_prefix"; then
5743     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5744 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5745 echo "$as_me:$LINENO: checking for $ac_word" >&5
5746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5747 if test "${ac_cv_prog_LIPO+set}" = set; then
5748   echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750   if test -n "$LIPO"; then
5751   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5752 else
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5755 do
5756   IFS=$as_save_IFS
5757   test -z "$as_dir" && as_dir=.
5758   for ac_exec_ext in '' $ac_executable_extensions; do
5759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5762     break 2
5763   fi
5764 done
5765 done
5766
5767 fi
5768 fi
5769 LIPO=$ac_cv_prog_LIPO
5770 if test -n "$LIPO"; then
5771   echo "$as_me:$LINENO: result: $LIPO" >&5
5772 echo "${ECHO_T}$LIPO" >&6
5773 else
5774   echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6
5776 fi
5777
5778   fi
5779   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
5780     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5781 set dummy ${ncn_progname}; ac_word=$2
5782 echo "$as_me:$LINENO: checking for $ac_word" >&5
5783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5784 if test "${ac_cv_prog_LIPO+set}" = set; then
5785   echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787   if test -n "$LIPO"; then
5788   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5789 else
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793   IFS=$as_save_IFS
5794   test -z "$as_dir" && as_dir=.
5795   for ac_exec_ext in '' $ac_executable_extensions; do
5796   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797     ac_cv_prog_LIPO="${ncn_progname}"
5798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799     break 2
5800   fi
5801 done
5802 done
5803
5804 fi
5805 fi
5806 LIPO=$ac_cv_prog_LIPO
5807 if test -n "$LIPO"; then
5808   echo "$as_me:$LINENO: result: $LIPO" >&5
5809 echo "${ECHO_T}$LIPO" >&6
5810 else
5811   echo "$as_me:$LINENO: result: no" >&5
5812 echo "${ECHO_T}no" >&6
5813 fi
5814
5815   fi
5816   test -n "$ac_cv_prog_LIPO" && break
5817 done
5818
5819 if test -z "$ac_cv_prog_LIPO" ; then
5820   set dummy lipo
5821   if test $build = $host ; then
5822     LIPO="$2"
5823   else
5824     LIPO="${ncn_tool_prefix}$2"
5825   fi
5826 fi
5827
5828  for ncn_progname in nm; do
5829   if test -n "$ncn_tool_prefix"; then
5830     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5831 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5832 echo "$as_me:$LINENO: checking for $ac_word" >&5
5833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5834 if test "${ac_cv_prog_NM+set}" = set; then
5835   echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837   if test -n "$NM"; then
5838   ac_cv_prog_NM="$NM" # Let the user override the test.
5839 else
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5842 do
5843   IFS=$as_save_IFS
5844   test -z "$as_dir" && as_dir=.
5845   for ac_exec_ext in '' $ac_executable_extensions; do
5846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849     break 2
5850   fi
5851 done
5852 done
5853
5854 fi
5855 fi
5856 NM=$ac_cv_prog_NM
5857 if test -n "$NM"; then
5858   echo "$as_me:$LINENO: result: $NM" >&5
5859 echo "${ECHO_T}$NM" >&6
5860 else
5861   echo "$as_me:$LINENO: result: no" >&5
5862 echo "${ECHO_T}no" >&6
5863 fi
5864
5865   fi
5866   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
5867     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5868 set dummy ${ncn_progname}; ac_word=$2
5869 echo "$as_me:$LINENO: checking for $ac_word" >&5
5870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5871 if test "${ac_cv_prog_NM+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   if test -n "$NM"; then
5875   ac_cv_prog_NM="$NM" # Let the user override the test.
5876 else
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5879 do
5880   IFS=$as_save_IFS
5881   test -z "$as_dir" && as_dir=.
5882   for ac_exec_ext in '' $ac_executable_extensions; do
5883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884     ac_cv_prog_NM="${ncn_progname}"
5885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886     break 2
5887   fi
5888 done
5889 done
5890
5891 fi
5892 fi
5893 NM=$ac_cv_prog_NM
5894 if test -n "$NM"; then
5895   echo "$as_me:$LINENO: result: $NM" >&5
5896 echo "${ECHO_T}$NM" >&6
5897 else
5898   echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6
5900 fi
5901
5902   fi
5903   test -n "$ac_cv_prog_NM" && break
5904 done
5905
5906 if test -z "$ac_cv_prog_NM" ; then
5907   set dummy nm
5908   if test $build = $host ; then
5909     NM="$2"
5910   else
5911     NM="${ncn_tool_prefix}$2"
5912   fi
5913 fi
5914
5915  for ncn_progname in ranlib; do
5916   if test -n "$ncn_tool_prefix"; then
5917     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5918 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5919 echo "$as_me:$LINENO: checking for $ac_word" >&5
5920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5921 if test "${ac_cv_prog_RANLIB+set}" = set; then
5922   echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924   if test -n "$RANLIB"; then
5925   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5926 else
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930   IFS=$as_save_IFS
5931   test -z "$as_dir" && as_dir=.
5932   for ac_exec_ext in '' $ac_executable_extensions; do
5933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936     break 2
5937   fi
5938 done
5939 done
5940
5941 fi
5942 fi
5943 RANLIB=$ac_cv_prog_RANLIB
5944 if test -n "$RANLIB"; then
5945   echo "$as_me:$LINENO: result: $RANLIB" >&5
5946 echo "${ECHO_T}$RANLIB" >&6
5947 else
5948   echo "$as_me:$LINENO: result: no" >&5
5949 echo "${ECHO_T}no" >&6
5950 fi
5951
5952   fi
5953   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
5954     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5955 set dummy ${ncn_progname}; ac_word=$2
5956 echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5958 if test "${ac_cv_prog_RANLIB+set}" = set; then
5959   echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961   if test -n "$RANLIB"; then
5962   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5966 do
5967   IFS=$as_save_IFS
5968   test -z "$as_dir" && as_dir=.
5969   for ac_exec_ext in '' $ac_executable_extensions; do
5970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971     ac_cv_prog_RANLIB="${ncn_progname}"
5972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5973     break 2
5974   fi
5975 done
5976 done
5977
5978 fi
5979 fi
5980 RANLIB=$ac_cv_prog_RANLIB
5981 if test -n "$RANLIB"; then
5982   echo "$as_me:$LINENO: result: $RANLIB" >&5
5983 echo "${ECHO_T}$RANLIB" >&6
5984 else
5985   echo "$as_me:$LINENO: result: no" >&5
5986 echo "${ECHO_T}no" >&6
5987 fi
5988
5989   fi
5990   test -n "$ac_cv_prog_RANLIB" && break
5991 done
5992
5993 if test -z "$ac_cv_prog_RANLIB" ; then
5994   RANLIB=":"
5995 fi
5996
5997  for ncn_progname in strip; do
5998   if test -n "$ncn_tool_prefix"; then
5999     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6000 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6001 echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6003 if test "${ac_cv_prog_STRIP+set}" = set; then
6004   echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006   if test -n "$STRIP"; then
6007   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012   IFS=$as_save_IFS
6013   test -z "$as_dir" && as_dir=.
6014   for ac_exec_ext in '' $ac_executable_extensions; do
6015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
6017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018     break 2
6019   fi
6020 done
6021 done
6022
6023 fi
6024 fi
6025 STRIP=$ac_cv_prog_STRIP
6026 if test -n "$STRIP"; then
6027   echo "$as_me:$LINENO: result: $STRIP" >&5
6028 echo "${ECHO_T}$STRIP" >&6
6029 else
6030   echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6
6032 fi
6033
6034   fi
6035   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
6036     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6037 set dummy ${ncn_progname}; ac_word=$2
6038 echo "$as_me:$LINENO: checking for $ac_word" >&5
6039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6040 if test "${ac_cv_prog_STRIP+set}" = set; then
6041   echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043   if test -n "$STRIP"; then
6044   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6048 do
6049   IFS=$as_save_IFS
6050   test -z "$as_dir" && as_dir=.
6051   for ac_exec_ext in '' $ac_executable_extensions; do
6052   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053     ac_cv_prog_STRIP="${ncn_progname}"
6054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6055     break 2
6056   fi
6057 done
6058 done
6059
6060 fi
6061 fi
6062 STRIP=$ac_cv_prog_STRIP
6063 if test -n "$STRIP"; then
6064   echo "$as_me:$LINENO: result: $STRIP" >&5
6065 echo "${ECHO_T}$STRIP" >&6
6066 else
6067   echo "$as_me:$LINENO: result: no" >&5
6068 echo "${ECHO_T}no" >&6
6069 fi
6070
6071   fi
6072   test -n "$ac_cv_prog_STRIP" && break
6073 done
6074
6075 if test -z "$ac_cv_prog_STRIP" ; then
6076   STRIP=":"
6077 fi
6078
6079  for ncn_progname in windres; do
6080   if test -n "$ncn_tool_prefix"; then
6081     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6082 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6083 echo "$as_me:$LINENO: checking for $ac_word" >&5
6084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6085 if test "${ac_cv_prog_WINDRES+set}" = set; then
6086   echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088   if test -n "$WINDRES"; then
6089   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6090 else
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6093 do
6094   IFS=$as_save_IFS
6095   test -z "$as_dir" && as_dir=.
6096   for ac_exec_ext in '' $ac_executable_extensions; do
6097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
6099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6100     break 2
6101   fi
6102 done
6103 done
6104
6105 fi
6106 fi
6107 WINDRES=$ac_cv_prog_WINDRES
6108 if test -n "$WINDRES"; then
6109   echo "$as_me:$LINENO: result: $WINDRES" >&5
6110 echo "${ECHO_T}$WINDRES" >&6
6111 else
6112   echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6
6114 fi
6115
6116   fi
6117   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
6118     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6119 set dummy ${ncn_progname}; ac_word=$2
6120 echo "$as_me:$LINENO: checking for $ac_word" >&5
6121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6122 if test "${ac_cv_prog_WINDRES+set}" = set; then
6123   echo $ECHO_N "(cached) $ECHO_C" >&6
6124 else
6125   if test -n "$WINDRES"; then
6126   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6130 do
6131   IFS=$as_save_IFS
6132   test -z "$as_dir" && as_dir=.
6133   for ac_exec_ext in '' $ac_executable_extensions; do
6134   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135     ac_cv_prog_WINDRES="${ncn_progname}"
6136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6137     break 2
6138   fi
6139 done
6140 done
6141
6142 fi
6143 fi
6144 WINDRES=$ac_cv_prog_WINDRES
6145 if test -n "$WINDRES"; then
6146   echo "$as_me:$LINENO: result: $WINDRES" >&5
6147 echo "${ECHO_T}$WINDRES" >&6
6148 else
6149   echo "$as_me:$LINENO: result: no" >&5
6150 echo "${ECHO_T}no" >&6
6151 fi
6152
6153   fi
6154   test -n "$ac_cv_prog_WINDRES" && break
6155 done
6156
6157 if test -z "$ac_cv_prog_WINDRES" ; then
6158   set dummy windres
6159   if test $build = $host ; then
6160     WINDRES="$2"
6161   else
6162     WINDRES="${ncn_tool_prefix}$2"
6163   fi
6164 fi
6165
6166  for ncn_progname in objcopy; do
6167   if test -n "$ncn_tool_prefix"; then
6168     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6169 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6170 echo "$as_me:$LINENO: checking for $ac_word" >&5
6171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6172 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6173   echo $ECHO_N "(cached) $ECHO_C" >&6
6174 else
6175   if test -n "$OBJCOPY"; then
6176   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6177 else
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 for as_dir in $PATH
6180 do
6181   IFS=$as_save_IFS
6182   test -z "$as_dir" && as_dir=.
6183   for ac_exec_ext in '' $ac_executable_extensions; do
6184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6185     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
6186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187     break 2
6188   fi
6189 done
6190 done
6191
6192 fi
6193 fi
6194 OBJCOPY=$ac_cv_prog_OBJCOPY
6195 if test -n "$OBJCOPY"; then
6196   echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6197 echo "${ECHO_T}$OBJCOPY" >&6
6198 else
6199   echo "$as_me:$LINENO: result: no" >&5
6200 echo "${ECHO_T}no" >&6
6201 fi
6202
6203   fi
6204   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
6205     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6206 set dummy ${ncn_progname}; ac_word=$2
6207 echo "$as_me:$LINENO: checking for $ac_word" >&5
6208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6209 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6210   echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212   if test -n "$OBJCOPY"; then
6213   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6214 else
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 for as_dir in $PATH
6217 do
6218   IFS=$as_save_IFS
6219   test -z "$as_dir" && as_dir=.
6220   for ac_exec_ext in '' $ac_executable_extensions; do
6221   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6222     ac_cv_prog_OBJCOPY="${ncn_progname}"
6223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6224     break 2
6225   fi
6226 done
6227 done
6228
6229 fi
6230 fi
6231 OBJCOPY=$ac_cv_prog_OBJCOPY
6232 if test -n "$OBJCOPY"; then
6233   echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6234 echo "${ECHO_T}$OBJCOPY" >&6
6235 else
6236   echo "$as_me:$LINENO: result: no" >&5
6237 echo "${ECHO_T}no" >&6
6238 fi
6239
6240   fi
6241   test -n "$ac_cv_prog_OBJCOPY" && break
6242 done
6243
6244 if test -z "$ac_cv_prog_OBJCOPY" ; then
6245   set dummy objcopy
6246   if test $build = $host ; then
6247     OBJCOPY="$2"
6248   else
6249     OBJCOPY="${ncn_tool_prefix}$2"
6250   fi
6251 fi
6252
6253  for ncn_progname in objdump; do
6254   if test -n "$ncn_tool_prefix"; then
6255     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6256 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6257 echo "$as_me:$LINENO: checking for $ac_word" >&5
6258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6259 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6260   echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262   if test -n "$OBJDUMP"; then
6263   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6267 do
6268   IFS=$as_save_IFS
6269   test -z "$as_dir" && as_dir=.
6270   for ac_exec_ext in '' $ac_executable_extensions; do
6271   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6272     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
6273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274     break 2
6275   fi
6276 done
6277 done
6278
6279 fi
6280 fi
6281 OBJDUMP=$ac_cv_prog_OBJDUMP
6282 if test -n "$OBJDUMP"; then
6283   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6284 echo "${ECHO_T}$OBJDUMP" >&6
6285 else
6286   echo "$as_me:$LINENO: result: no" >&5
6287 echo "${ECHO_T}no" >&6
6288 fi
6289
6290   fi
6291   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
6292     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6293 set dummy ${ncn_progname}; ac_word=$2
6294 echo "$as_me:$LINENO: checking for $ac_word" >&5
6295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6296 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6297   echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299   if test -n "$OBJDUMP"; then
6300   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6301 else
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 for as_dir in $PATH
6304 do
6305   IFS=$as_save_IFS
6306   test -z "$as_dir" && as_dir=.
6307   for ac_exec_ext in '' $ac_executable_extensions; do
6308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6309     ac_cv_prog_OBJDUMP="${ncn_progname}"
6310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6311     break 2
6312   fi
6313 done
6314 done
6315
6316 fi
6317 fi
6318 OBJDUMP=$ac_cv_prog_OBJDUMP
6319 if test -n "$OBJDUMP"; then
6320   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6321 echo "${ECHO_T}$OBJDUMP" >&6
6322 else
6323   echo "$as_me:$LINENO: result: no" >&5
6324 echo "${ECHO_T}no" >&6
6325 fi
6326
6327   fi
6328   test -n "$ac_cv_prog_OBJDUMP" && break
6329 done
6330
6331 if test -z "$ac_cv_prog_OBJDUMP" ; then
6332   set dummy objdump
6333   if test $build = $host ; then
6334     OBJDUMP="$2"
6335   else
6336     OBJDUMP="${ncn_tool_prefix}$2"
6337   fi
6338 fi
6339
6340
6341
6342
6343
6344
6345
6346 # Target tools.
6347
6348 # Check whether --with-build-time-tools or --without-build-time-tools was given.
6349 if test "${with_build_time_tools+set}" = set; then
6350   withval="$with_build_time_tools"
6351   case x"$withval" in
6352      x/*) ;;
6353      *)
6354        with_build_time_tools=
6355        { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
6356 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
6357        ;;
6358    esac
6359 else
6360   with_build_time_tools=
6361 fi;
6362
6363  if test -n "$with_build_time_tools"; then
6364   for ncn_progname in cc gcc; do
6365     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6366 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6367     if test -x $with_build_time_tools/${ncn_progname}; then
6368       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6369       echo "$as_me:$LINENO: result: yes" >&5
6370 echo "${ECHO_T}yes" >&6
6371       break
6372     else
6373       echo "$as_me:$LINENO: result: no" >&5
6374 echo "${ECHO_T}no" >&6
6375     fi
6376   done
6377 fi
6378
6379 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
6380   for ncn_progname in cc gcc; do
6381     if test -n "$ncn_target_tool_prefix"; then
6382       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6383 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6384 echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6386 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6387   echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389   if test -n "$CC_FOR_TARGET"; then
6390   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
6391 else
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6394 do
6395   IFS=$as_save_IFS
6396   test -z "$as_dir" && as_dir=.
6397   for ac_exec_ext in '' $ac_executable_extensions; do
6398   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6399     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401     break 2
6402   fi
6403 done
6404 done
6405
6406 fi
6407 fi
6408 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
6409 if test -n "$CC_FOR_TARGET"; then
6410   echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6411 echo "${ECHO_T}$CC_FOR_TARGET" >&6
6412 else
6413   echo "$as_me:$LINENO: result: no" >&5
6414 echo "${ECHO_T}no" >&6
6415 fi
6416
6417     fi
6418     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
6419       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6420 set dummy ${ncn_progname}; ac_word=$2
6421 echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6423 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6424   echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426   if test -n "$CC_FOR_TARGET"; then
6427   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432   IFS=$as_save_IFS
6433   test -z "$as_dir" && as_dir=.
6434   for ac_exec_ext in '' $ac_executable_extensions; do
6435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
6437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6438     break 2
6439   fi
6440 done
6441 done
6442
6443 fi
6444 fi
6445 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
6446 if test -n "$CC_FOR_TARGET"; then
6447   echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6448 echo "${ECHO_T}$CC_FOR_TARGET" >&6
6449 else
6450   echo "$as_me:$LINENO: result: no" >&5
6451 echo "${ECHO_T}no" >&6
6452 fi
6453
6454     fi
6455     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
6456   done
6457 fi
6458
6459 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
6460   set dummy cc gcc
6461   if test $build = $target ; then
6462     CC_FOR_TARGET="$2"
6463   else
6464     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
6465   fi
6466 fi
6467
6468  if test -n "$with_build_time_tools"; then
6469   for ncn_progname in c++ g++ cxx gxx; do
6470     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6471 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6472     if test -x $with_build_time_tools/${ncn_progname}; then
6473       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6474       echo "$as_me:$LINENO: result: yes" >&5
6475 echo "${ECHO_T}yes" >&6
6476       break
6477     else
6478       echo "$as_me:$LINENO: result: no" >&5
6479 echo "${ECHO_T}no" >&6
6480     fi
6481   done
6482 fi
6483
6484 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
6485   for ncn_progname in c++ g++ cxx gxx; do
6486     if test -n "$ncn_target_tool_prefix"; then
6487       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6488 set dummy ${ncn_target_tool_prefix}${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_CXX_FOR_TARGET+set}" = set; then
6492   echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494   if test -n "$CXX_FOR_TARGET"; then
6495   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # 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_CXX_FOR_TARGET="${ncn_target_tool_prefix}${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 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
6514 if test -n "$CXX_FOR_TARGET"; then
6515   echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6516 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
6517 else
6518   echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6
6520 fi
6521
6522     fi
6523     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
6524       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6525 set dummy ${ncn_progname}; ac_word=$2
6526 echo "$as_me:$LINENO: checking for $ac_word" >&5
6527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6528 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6529   echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531   if test -n "$CXX_FOR_TARGET"; then
6532   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
6533 else
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6536 do
6537   IFS=$as_save_IFS
6538   test -z "$as_dir" && as_dir=.
6539   for ac_exec_ext in '' $ac_executable_extensions; do
6540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6541     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
6542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543     break 2
6544   fi
6545 done
6546 done
6547
6548 fi
6549 fi
6550 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
6551 if test -n "$CXX_FOR_TARGET"; then
6552   echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6553 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
6554 else
6555   echo "$as_me:$LINENO: result: no" >&5
6556 echo "${ECHO_T}no" >&6
6557 fi
6558
6559     fi
6560     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
6561   done
6562 fi
6563
6564 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
6565   set dummy c++ g++ cxx gxx
6566   if test $build = $target ; then
6567     CXX_FOR_TARGET="$2"
6568   else
6569     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
6570   fi
6571 fi
6572
6573  if test -n "$with_build_time_tools"; then
6574   for ncn_progname in gcc; do
6575     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6576 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6577     if test -x $with_build_time_tools/${ncn_progname}; then
6578       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6579       echo "$as_me:$LINENO: result: yes" >&5
6580 echo "${ECHO_T}yes" >&6
6581       break
6582     else
6583       echo "$as_me:$LINENO: result: no" >&5
6584 echo "${ECHO_T}no" >&6
6585     fi
6586   done
6587 fi
6588
6589 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
6590   for ncn_progname in gcc; do
6591     if test -n "$ncn_target_tool_prefix"; then
6592       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6593 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6594 echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6596 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6597   echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599   if test -n "$GCC_FOR_TARGET"; then
6600   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
6601 else
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 for as_dir in $PATH
6604 do
6605   IFS=$as_save_IFS
6606   test -z "$as_dir" && as_dir=.
6607   for ac_exec_ext in '' $ac_executable_extensions; do
6608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6609     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6611     break 2
6612   fi
6613 done
6614 done
6615
6616 fi
6617 fi
6618 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
6619 if test -n "$GCC_FOR_TARGET"; then
6620   echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6621 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
6622 else
6623   echo "$as_me:$LINENO: result: no" >&5
6624 echo "${ECHO_T}no" >&6
6625 fi
6626
6627     fi
6628     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
6629       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6630 set dummy ${ncn_progname}; ac_word=$2
6631 echo "$as_me:$LINENO: checking for $ac_word" >&5
6632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6633 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6634   echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636   if test -n "$GCC_FOR_TARGET"; then
6637   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
6638 else
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6641 do
6642   IFS=$as_save_IFS
6643   test -z "$as_dir" && as_dir=.
6644   for ac_exec_ext in '' $ac_executable_extensions; do
6645   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6646     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
6647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6648     break 2
6649   fi
6650 done
6651 done
6652
6653 fi
6654 fi
6655 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
6656 if test -n "$GCC_FOR_TARGET"; then
6657   echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6658 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
6659 else
6660   echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6
6662 fi
6663
6664     fi
6665     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
6666   done
6667 fi
6668
6669 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
6670   GCC_FOR_TARGET="${CC_FOR_TARGET}"
6671 fi
6672
6673  if test -n "$with_build_time_tools"; then
6674   for ncn_progname in gcj; do
6675     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6676 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6677     if test -x $with_build_time_tools/${ncn_progname}; then
6678       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6679       echo "$as_me:$LINENO: result: yes" >&5
6680 echo "${ECHO_T}yes" >&6
6681       break
6682     else
6683       echo "$as_me:$LINENO: result: no" >&5
6684 echo "${ECHO_T}no" >&6
6685     fi
6686   done
6687 fi
6688
6689 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
6690   for ncn_progname in gcj; do
6691     if test -n "$ncn_target_tool_prefix"; then
6692       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6693 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6694 echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6696 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
6697   echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699   if test -n "$GCJ_FOR_TARGET"; then
6700   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
6705   IFS=$as_save_IFS
6706   test -z "$as_dir" && as_dir=.
6707   for ac_exec_ext in '' $ac_executable_extensions; do
6708   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711     break 2
6712   fi
6713 done
6714 done
6715
6716 fi
6717 fi
6718 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
6719 if test -n "$GCJ_FOR_TARGET"; then
6720   echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
6721 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
6722 else
6723   echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6
6725 fi
6726
6727     fi
6728     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
6729       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6730 set dummy ${ncn_progname}; ac_word=$2
6731 echo "$as_me:$LINENO: checking for $ac_word" >&5
6732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6733 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
6734   echo $ECHO_N "(cached) $ECHO_C" >&6
6735 else
6736   if test -n "$GCJ_FOR_TARGET"; then
6737   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
6738 else
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744   for ac_exec_ext in '' $ac_executable_extensions; do
6745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
6747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751 done
6752
6753 fi
6754 fi
6755 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
6756 if test -n "$GCJ_FOR_TARGET"; then
6757   echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
6758 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
6759 else
6760   echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6
6762 fi
6763
6764     fi
6765     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
6766   done
6767 fi
6768
6769 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
6770   set dummy gcj
6771   if test $build = $target ; then
6772     GCJ_FOR_TARGET="$2"
6773   else
6774     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
6775   fi
6776 fi
6777
6778  if test -n "$with_build_time_tools"; then
6779   for ncn_progname in gfortran; do
6780     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6781 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6782     if test -x $with_build_time_tools/${ncn_progname}; then
6783       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6784       echo "$as_me:$LINENO: result: yes" >&5
6785 echo "${ECHO_T}yes" >&6
6786       break
6787     else
6788       echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6
6790     fi
6791   done
6792 fi
6793
6794 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
6795   for ncn_progname in gfortran; do
6796     if test -n "$ncn_target_tool_prefix"; then
6797       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6798 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6799 echo "$as_me:$LINENO: checking for $ac_word" >&5
6800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6801 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
6802   echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804   if test -n "$GFORTRAN_FOR_TARGET"; then
6805   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
6806 else
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6809 do
6810   IFS=$as_save_IFS
6811   test -z "$as_dir" && as_dir=.
6812   for ac_exec_ext in '' $ac_executable_extensions; do
6813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6814     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816     break 2
6817   fi
6818 done
6819 done
6820
6821 fi
6822 fi
6823 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
6824 if test -n "$GFORTRAN_FOR_TARGET"; then
6825   echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
6826 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
6827 else
6828   echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6
6830 fi
6831
6832     fi
6833     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
6834       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6835 set dummy ${ncn_progname}; ac_word=$2
6836 echo "$as_me:$LINENO: checking for $ac_word" >&5
6837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6838 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
6839   echo $ECHO_N "(cached) $ECHO_C" >&6
6840 else
6841   if test -n "$GFORTRAN_FOR_TARGET"; then
6842   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847   IFS=$as_save_IFS
6848   test -z "$as_dir" && as_dir=.
6849   for ac_exec_ext in '' $ac_executable_extensions; do
6850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
6852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853     break 2
6854   fi
6855 done
6856 done
6857
6858 fi
6859 fi
6860 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
6861 if test -n "$GFORTRAN_FOR_TARGET"; then
6862   echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
6863 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
6864 else
6865   echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6
6867 fi
6868
6869     fi
6870     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
6871   done
6872 fi
6873
6874 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
6875   set dummy gfortran
6876   if test $build = $target ; then
6877     GFORTRAN_FOR_TARGET="$2"
6878   else
6879     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
6880   fi
6881 fi
6882
6883
6884
6885 # The user is always right.
6886 if test "${PATH_SEPARATOR+set}" != set; then
6887   echo "#! /bin/sh" >conf$$.sh
6888   echo  "exit 0"   >>conf$$.sh
6889   chmod +x conf$$.sh
6890   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6891     PATH_SEPARATOR=';'
6892   else
6893     PATH_SEPARATOR=:
6894   fi
6895   rm -f conf$$.sh
6896 fi
6897
6898
6899
6900 if test "x$exec_prefix" = xNONE; then
6901         if test "x$prefix" = xNONE; then
6902                 gcc_cv_tool_prefix=$ac_default_prefix
6903         else
6904                 gcc_cv_tool_prefix=$prefix
6905         fi
6906 else
6907         gcc_cv_tool_prefix=$exec_prefix
6908 fi
6909
6910 # If there is no compiler in the tree, use the PATH only.  In any
6911 # case, if there is no compiler in the tree nobody should use
6912 # AS_FOR_TARGET and LD_FOR_TARGET.
6913 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6914     gcc_version=`cat $srcdir/gcc/BASE-VER`
6915     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6916     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6917     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6918     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6919     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6920     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6921 else
6922     gcc_cv_tool_dirs=
6923 fi
6924
6925 if test x$build = x$target && test -n "$md_exec_prefix"; then
6926         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6927 fi
6928
6929
6930
6931 cat > conftest.c << \EOF
6932 #ifdef __GNUC__
6933   gcc_yay;
6934 #endif
6935 EOF
6936 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
6937   have_gcc_for_target=yes
6938 else
6939   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
6940   have_gcc_for_target=no
6941 fi
6942 rm conftest.c
6943
6944
6945
6946
6947 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
6948   if test -n "$with_build_time_tools"; then
6949     echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
6950 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
6951     if test -x $with_build_time_tools/ar; then
6952       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
6953       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
6954       echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
6955 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
6956     else
6957       echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6
6959     fi
6960   elif test $build != $host && test $have_gcc_for_target = yes; then
6961     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
6962     test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
6963     ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
6964   fi
6965 fi
6966 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
6967   # Extract the first word of "ar", so it can be a program name with args.
6968 set dummy ar; ac_word=$2
6969 echo "$as_me:$LINENO: checking for $ac_word" >&5
6970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6971 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
6972   echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974   case $AR_FOR_TARGET in
6975   [\\/]* | ?:[\\/]*)
6976   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
6977   ;;
6978   *)
6979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 for as_dir in $gcc_cv_tool_dirs
6981 do
6982   IFS=$as_save_IFS
6983   test -z "$as_dir" && as_dir=.
6984   for ac_exec_ext in '' $ac_executable_extensions; do
6985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6986     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
6987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6988     break 2
6989   fi
6990 done
6991 done
6992
6993   ;;
6994 esac
6995 fi
6996 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
6997
6998 if test -n "$AR_FOR_TARGET"; then
6999   echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7000 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7001 else
7002   echo "$as_me:$LINENO: result: no" >&5
7003 echo "${ECHO_T}no" >&6
7004 fi
7005
7006 fi
7007 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7008    if test -n "$with_build_time_tools"; then
7009   for ncn_progname in ar; do
7010     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7011 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7012     if test -x $with_build_time_tools/${ncn_progname}; then
7013       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7014       echo "$as_me:$LINENO: result: yes" >&5
7015 echo "${ECHO_T}yes" >&6
7016       break
7017     else
7018       echo "$as_me:$LINENO: result: no" >&5
7019 echo "${ECHO_T}no" >&6
7020     fi
7021   done
7022 fi
7023
7024 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
7025   for ncn_progname in ar; do
7026     if test -n "$ncn_target_tool_prefix"; then
7027       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7028 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7029 echo "$as_me:$LINENO: checking for $ac_word" >&5
7030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7031 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7032   echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034   if test -n "$AR_FOR_TARGET"; then
7035   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7036 else
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7039 do
7040   IFS=$as_save_IFS
7041   test -z "$as_dir" && as_dir=.
7042   for ac_exec_ext in '' $ac_executable_extensions; do
7043   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046     break 2
7047   fi
7048 done
7049 done
7050
7051 fi
7052 fi
7053 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
7054 if test -n "$AR_FOR_TARGET"; then
7055   echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7056 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7057 else
7058   echo "$as_me:$LINENO: result: no" >&5
7059 echo "${ECHO_T}no" >&6
7060 fi
7061
7062     fi
7063     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
7064       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7065 set dummy ${ncn_progname}; ac_word=$2
7066 echo "$as_me:$LINENO: checking for $ac_word" >&5
7067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7068 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7069   echo $ECHO_N "(cached) $ECHO_C" >&6
7070 else
7071   if test -n "$AR_FOR_TARGET"; then
7072   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7076 do
7077   IFS=$as_save_IFS
7078   test -z "$as_dir" && as_dir=.
7079   for ac_exec_ext in '' $ac_executable_extensions; do
7080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
7082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083     break 2
7084   fi
7085 done
7086 done
7087
7088 fi
7089 fi
7090 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
7091 if test -n "$AR_FOR_TARGET"; then
7092   echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7093 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7094 else
7095   echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6
7097 fi
7098
7099     fi
7100     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
7101   done
7102 fi
7103
7104 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
7105   set dummy ar
7106   if test $build = $target ; then
7107     AR_FOR_TARGET="$2"
7108   else
7109     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7110   fi
7111 fi
7112
7113 else
7114   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7115 fi
7116
7117
7118
7119
7120 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7121   if test -n "$with_build_time_tools"; then
7122     echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
7123 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
7124     if test -x $with_build_time_tools/as; then
7125       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
7126       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7127       echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
7128 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
7129     else
7130       echo "$as_me:$LINENO: result: no" >&5
7131 echo "${ECHO_T}no" >&6
7132     fi
7133   elif test $build != $host && test $have_gcc_for_target = yes; then
7134     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
7135     test $AS_FOR_TARGET=as && AS_FOR_TARGET=
7136     ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7137   fi
7138 fi
7139 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7140   # Extract the first word of "as", so it can be a program name with args.
7141 set dummy as; ac_word=$2
7142 echo "$as_me:$LINENO: checking for $ac_word" >&5
7143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7144 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
7145   echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147   case $AS_FOR_TARGET in
7148   [\\/]* | ?:[\\/]*)
7149   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
7150   ;;
7151   *)
7152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 for as_dir in $gcc_cv_tool_dirs
7154 do
7155   IFS=$as_save_IFS
7156   test -z "$as_dir" && as_dir=.
7157   for ac_exec_ext in '' $ac_executable_extensions; do
7158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161     break 2
7162   fi
7163 done
7164 done
7165
7166   ;;
7167 esac
7168 fi
7169 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7170
7171 if test -n "$AS_FOR_TARGET"; then
7172   echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7173 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7174 else
7175   echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6
7177 fi
7178
7179 fi
7180 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7181    if test -n "$with_build_time_tools"; then
7182   for ncn_progname in as; do
7183     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7184 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7185     if test -x $with_build_time_tools/${ncn_progname}; then
7186       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7187       echo "$as_me:$LINENO: result: yes" >&5
7188 echo "${ECHO_T}yes" >&6
7189       break
7190     else
7191       echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6
7193     fi
7194   done
7195 fi
7196
7197 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
7198   for ncn_progname in as; do
7199     if test -n "$ncn_target_tool_prefix"; then
7200       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7201 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7202 echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7204 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7205   echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207   if test -n "$AS_FOR_TARGET"; then
7208   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7209 else
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7212 do
7213   IFS=$as_save_IFS
7214   test -z "$as_dir" && as_dir=.
7215   for ac_exec_ext in '' $ac_executable_extensions; do
7216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7217     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219     break 2
7220   fi
7221 done
7222 done
7223
7224 fi
7225 fi
7226 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7227 if test -n "$AS_FOR_TARGET"; then
7228   echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7229 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7230 else
7231   echo "$as_me:$LINENO: result: no" >&5
7232 echo "${ECHO_T}no" >&6
7233 fi
7234
7235     fi
7236     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
7237       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7238 set dummy ${ncn_progname}; ac_word=$2
7239 echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7241 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7242   echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244   if test -n "$AS_FOR_TARGET"; then
7245   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7249 do
7250   IFS=$as_save_IFS
7251   test -z "$as_dir" && as_dir=.
7252   for ac_exec_ext in '' $ac_executable_extensions; do
7253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
7255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256     break 2
7257   fi
7258 done
7259 done
7260
7261 fi
7262 fi
7263 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7264 if test -n "$AS_FOR_TARGET"; then
7265   echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7266 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7267 else
7268   echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6
7270 fi
7271
7272     fi
7273     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
7274   done
7275 fi
7276
7277 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
7278   set dummy as
7279   if test $build = $target ; then
7280     AS_FOR_TARGET="$2"
7281   else
7282     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
7283   fi
7284 fi
7285
7286 else
7287   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7288 fi
7289
7290
7291
7292
7293 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7294   if test -n "$with_build_time_tools"; then
7295     echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
7296 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
7297     if test -x $with_build_time_tools/dlltool; then
7298       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
7299       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7300       echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
7301 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
7302     else
7303       echo "$as_me:$LINENO: result: no" >&5
7304 echo "${ECHO_T}no" >&6
7305     fi
7306   elif test $build != $host && test $have_gcc_for_target = yes; then
7307     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
7308     test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
7309     ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7310   fi
7311 fi
7312 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7313   # Extract the first word of "dlltool", so it can be a program name with args.
7314 set dummy dlltool; ac_word=$2
7315 echo "$as_me:$LINENO: checking for $ac_word" >&5
7316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7317 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
7318   echo $ECHO_N "(cached) $ECHO_C" >&6
7319 else
7320   case $DLLTOOL_FOR_TARGET in
7321   [\\/]* | ?:[\\/]*)
7322   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
7323   ;;
7324   *)
7325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $gcc_cv_tool_dirs
7327 do
7328   IFS=$as_save_IFS
7329   test -z "$as_dir" && as_dir=.
7330   for ac_exec_ext in '' $ac_executable_extensions; do
7331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334     break 2
7335   fi
7336 done
7337 done
7338
7339   ;;
7340 esac
7341 fi
7342 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7343
7344 if test -n "$DLLTOOL_FOR_TARGET"; then
7345   echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7346 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7347 else
7348   echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6
7350 fi
7351
7352 fi
7353 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7354    if test -n "$with_build_time_tools"; then
7355   for ncn_progname in dlltool; do
7356     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7357 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7358     if test -x $with_build_time_tools/${ncn_progname}; then
7359       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7360       echo "$as_me:$LINENO: result: yes" >&5
7361 echo "${ECHO_T}yes" >&6
7362       break
7363     else
7364       echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7366     fi
7367   done
7368 fi
7369
7370 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
7371   for ncn_progname in dlltool; do
7372     if test -n "$ncn_target_tool_prefix"; then
7373       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7374 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7375 echo "$as_me:$LINENO: checking for $ac_word" >&5
7376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7377 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7378   echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380   if test -n "$DLLTOOL_FOR_TARGET"; then
7381   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
7382 else
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386   IFS=$as_save_IFS
7387   test -z "$as_dir" && as_dir=.
7388   for ac_exec_ext in '' $ac_executable_extensions; do
7389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7392     break 2
7393   fi
7394 done
7395 done
7396
7397 fi
7398 fi
7399 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
7400 if test -n "$DLLTOOL_FOR_TARGET"; then
7401   echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7402 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7403 else
7404   echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6
7406 fi
7407
7408     fi
7409     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
7410       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7411 set dummy ${ncn_progname}; ac_word=$2
7412 echo "$as_me:$LINENO: checking for $ac_word" >&5
7413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7414 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417   if test -n "$DLLTOOL_FOR_TARGET"; then
7418   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
7419 else
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423   IFS=$as_save_IFS
7424   test -z "$as_dir" && as_dir=.
7425   for ac_exec_ext in '' $ac_executable_extensions; do
7426   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
7428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429     break 2
7430   fi
7431 done
7432 done
7433
7434 fi
7435 fi
7436 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
7437 if test -n "$DLLTOOL_FOR_TARGET"; then
7438   echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7439 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7440 else
7441   echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6
7443 fi
7444
7445     fi
7446     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
7447   done
7448 fi
7449
7450 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
7451   set dummy dlltool
7452   if test $build = $target ; then
7453     DLLTOOL_FOR_TARGET="$2"
7454   else
7455     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
7456   fi
7457 fi
7458
7459 else
7460   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7461 fi
7462
7463
7464
7465
7466 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7467   if test -n "$with_build_time_tools"; then
7468     echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
7469 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
7470     if test -x $with_build_time_tools/ld; then
7471       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
7472       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
7473       echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
7474 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
7475     else
7476       echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6
7478     fi
7479   elif test $build != $host && test $have_gcc_for_target = yes; then
7480     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
7481     test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
7482     ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
7483   fi
7484 fi
7485 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7486   # Extract the first word of "ld", so it can be a program name with args.
7487 set dummy ld; ac_word=$2
7488 echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7490 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   case $LD_FOR_TARGET in
7494   [\\/]* | ?:[\\/]*)
7495   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
7496   ;;
7497   *)
7498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $gcc_cv_tool_dirs
7500 do
7501   IFS=$as_save_IFS
7502   test -z "$as_dir" && as_dir=.
7503   for ac_exec_ext in '' $ac_executable_extensions; do
7504   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7505     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507     break 2
7508   fi
7509 done
7510 done
7511
7512   ;;
7513 esac
7514 fi
7515 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
7516
7517 if test -n "$LD_FOR_TARGET"; then
7518   echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7519 echo "${ECHO_T}$LD_FOR_TARGET" >&6
7520 else
7521   echo "$as_me:$LINENO: result: no" >&5
7522 echo "${ECHO_T}no" >&6
7523 fi
7524
7525 fi
7526 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7527    if test -n "$with_build_time_tools"; then
7528   for ncn_progname in ld; do
7529     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7530 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7531     if test -x $with_build_time_tools/${ncn_progname}; then
7532       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7533       echo "$as_me:$LINENO: result: yes" >&5
7534 echo "${ECHO_T}yes" >&6
7535       break
7536     else
7537       echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6
7539     fi
7540   done
7541 fi
7542
7543 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
7544   for ncn_progname in ld; do
7545     if test -n "$ncn_target_tool_prefix"; then
7546       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7547 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7548 echo "$as_me:$LINENO: checking for $ac_word" >&5
7549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7550 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
7551   echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553   if test -n "$LD_FOR_TARGET"; then
7554   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
7555 else
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559   IFS=$as_save_IFS
7560   test -z "$as_dir" && as_dir=.
7561   for ac_exec_ext in '' $ac_executable_extensions; do
7562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7563     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565     break 2
7566   fi
7567 done
7568 done
7569
7570 fi
7571 fi
7572 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
7573 if test -n "$LD_FOR_TARGET"; then
7574   echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7575 echo "${ECHO_T}$LD_FOR_TARGET" >&6
7576 else
7577   echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6
7579 fi
7580
7581     fi
7582     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
7583       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7584 set dummy ${ncn_progname}; ac_word=$2
7585 echo "$as_me:$LINENO: checking for $ac_word" >&5
7586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7587 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
7588   echo $ECHO_N "(cached) $ECHO_C" >&6
7589 else
7590   if test -n "$LD_FOR_TARGET"; then
7591   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
7592 else
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596   IFS=$as_save_IFS
7597   test -z "$as_dir" && as_dir=.
7598   for ac_exec_ext in '' $ac_executable_extensions; do
7599   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7600     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
7601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602     break 2
7603   fi
7604 done
7605 done
7606
7607 fi
7608 fi
7609 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
7610 if test -n "$LD_FOR_TARGET"; then
7611   echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7612 echo "${ECHO_T}$LD_FOR_TARGET" >&6
7613 else
7614   echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6
7616 fi
7617
7618     fi
7619     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
7620   done
7621 fi
7622
7623 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
7624   set dummy ld
7625   if test $build = $target ; then
7626     LD_FOR_TARGET="$2"
7627   else
7628     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
7629   fi
7630 fi
7631
7632 else
7633   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
7634 fi
7635
7636
7637
7638
7639 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7640   if test -n "$with_build_time_tools"; then
7641     echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
7642 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
7643     if test -x $with_build_time_tools/lipo; then
7644       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
7645       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
7646       echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
7647 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
7648     else
7649       echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6
7651     fi
7652   elif test $build != $host && test $have_gcc_for_target = yes; then
7653     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
7654     test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
7655     ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
7656   fi
7657 fi
7658 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7659   # Extract the first word of "lipo", so it can be a program name with args.
7660 set dummy lipo; ac_word=$2
7661 echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7663 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
7664   echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666   case $LIPO_FOR_TARGET in
7667   [\\/]* | ?:[\\/]*)
7668   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
7669   ;;
7670   *)
7671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $gcc_cv_tool_dirs
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676   for ac_exec_ext in '' $ac_executable_extensions; do
7677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681   fi
7682 done
7683 done
7684
7685   ;;
7686 esac
7687 fi
7688 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
7689
7690 if test -n "$LIPO_FOR_TARGET"; then
7691   echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7692 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
7693 else
7694   echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6
7696 fi
7697
7698 fi
7699 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7700    if test -n "$with_build_time_tools"; then
7701   for ncn_progname in lipo; do
7702     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7703 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7704     if test -x $with_build_time_tools/${ncn_progname}; then
7705       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7706       echo "$as_me:$LINENO: result: yes" >&5
7707 echo "${ECHO_T}yes" >&6
7708       break
7709     else
7710       echo "$as_me:$LINENO: result: no" >&5
7711 echo "${ECHO_T}no" >&6
7712     fi
7713   done
7714 fi
7715
7716 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
7717   for ncn_progname in lipo; do
7718     if test -n "$ncn_target_tool_prefix"; then
7719       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7720 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7721 echo "$as_me:$LINENO: checking for $ac_word" >&5
7722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7723 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
7724   echo $ECHO_N "(cached) $ECHO_C" >&6
7725 else
7726   if test -n "$LIPO_FOR_TARGET"; then
7727   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
7728 else
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7731 do
7732   IFS=$as_save_IFS
7733   test -z "$as_dir" && as_dir=.
7734   for ac_exec_ext in '' $ac_executable_extensions; do
7735   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7736     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7738     break 2
7739   fi
7740 done
7741 done
7742
7743 fi
7744 fi
7745 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
7746 if test -n "$LIPO_FOR_TARGET"; then
7747   echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7748 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
7749 else
7750   echo "$as_me:$LINENO: result: no" >&5
7751 echo "${ECHO_T}no" >&6
7752 fi
7753
7754     fi
7755     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
7756       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7757 set dummy ${ncn_progname}; ac_word=$2
7758 echo "$as_me:$LINENO: checking for $ac_word" >&5
7759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7760 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
7761   echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763   if test -n "$LIPO_FOR_TARGET"; then
7764   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
7765 else
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH
7768 do
7769   IFS=$as_save_IFS
7770   test -z "$as_dir" && as_dir=.
7771   for ac_exec_ext in '' $ac_executable_extensions; do
7772   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7773     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
7774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7775     break 2
7776   fi
7777 done
7778 done
7779
7780 fi
7781 fi
7782 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
7783 if test -n "$LIPO_FOR_TARGET"; then
7784   echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7785 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
7786 else
7787   echo "$as_me:$LINENO: result: no" >&5
7788 echo "${ECHO_T}no" >&6
7789 fi
7790
7791     fi
7792     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
7793   done
7794 fi
7795
7796 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
7797   set dummy lipo
7798   if test $build = $target ; then
7799     LIPO_FOR_TARGET="$2"
7800   else
7801     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
7802   fi
7803 fi
7804
7805 else
7806   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
7807 fi
7808
7809
7810
7811
7812 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
7813   if test -n "$with_build_time_tools"; then
7814     echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
7815 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
7816     if test -x $with_build_time_tools/nm; then
7817       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
7818       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
7819       echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
7820 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
7821     else
7822       echo "$as_me:$LINENO: result: no" >&5
7823 echo "${ECHO_T}no" >&6
7824     fi
7825   elif test $build != $host && test $have_gcc_for_target = yes; then
7826     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
7827     test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
7828     ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
7829   fi
7830 fi
7831 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
7832   # Extract the first word of "nm", so it can be a program name with args.
7833 set dummy nm; ac_word=$2
7834 echo "$as_me:$LINENO: checking for $ac_word" >&5
7835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7836 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
7837   echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839   case $NM_FOR_TARGET in
7840   [\\/]* | ?:[\\/]*)
7841   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
7842   ;;
7843   *)
7844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $gcc_cv_tool_dirs
7846 do
7847   IFS=$as_save_IFS
7848   test -z "$as_dir" && as_dir=.
7849   for ac_exec_ext in '' $ac_executable_extensions; do
7850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7851     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853     break 2
7854   fi
7855 done
7856 done
7857
7858   ;;
7859 esac
7860 fi
7861 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
7862
7863 if test -n "$NM_FOR_TARGET"; then
7864   echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
7865 echo "${ECHO_T}$NM_FOR_TARGET" >&6
7866 else
7867   echo "$as_me:$LINENO: result: no" >&5
7868 echo "${ECHO_T}no" >&6
7869 fi
7870
7871 fi
7872 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
7873    if test -n "$with_build_time_tools"; then
7874   for ncn_progname in nm; do
7875     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7876 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7877     if test -x $with_build_time_tools/${ncn_progname}; then
7878       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7879       echo "$as_me:$LINENO: result: yes" >&5
7880 echo "${ECHO_T}yes" >&6
7881       break
7882     else
7883       echo "$as_me:$LINENO: result: no" >&5
7884 echo "${ECHO_T}no" >&6
7885     fi
7886   done
7887 fi
7888
7889 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
7890   for ncn_progname in nm; do
7891     if test -n "$ncn_target_tool_prefix"; then
7892       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7893 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7894 echo "$as_me:$LINENO: checking for $ac_word" >&5
7895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7896 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
7897   echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
7899   if test -n "$NM_FOR_TARGET"; then
7900   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
7901 else
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7904 do
7905   IFS=$as_save_IFS
7906   test -z "$as_dir" && as_dir=.
7907   for ac_exec_ext in '' $ac_executable_extensions; do
7908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7909     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7911     break 2
7912   fi
7913 done
7914 done
7915
7916 fi
7917 fi
7918 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
7919 if test -n "$NM_FOR_TARGET"; then
7920   echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
7921 echo "${ECHO_T}$NM_FOR_TARGET" >&6
7922 else
7923   echo "$as_me:$LINENO: result: no" >&5
7924 echo "${ECHO_T}no" >&6
7925 fi
7926
7927     fi
7928     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
7929       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7930 set dummy ${ncn_progname}; ac_word=$2
7931 echo "$as_me:$LINENO: checking for $ac_word" >&5
7932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7933 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
7934   echo $ECHO_N "(cached) $ECHO_C" >&6
7935 else
7936   if test -n "$NM_FOR_TARGET"; then
7937   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
7938 else
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 for as_dir in $PATH
7941 do
7942   IFS=$as_save_IFS
7943   test -z "$as_dir" && as_dir=.
7944   for ac_exec_ext in '' $ac_executable_extensions; do
7945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7946     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
7947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7948     break 2
7949   fi
7950 done
7951 done
7952
7953 fi
7954 fi
7955 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
7956 if test -n "$NM_FOR_TARGET"; then
7957   echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
7958 echo "${ECHO_T}$NM_FOR_TARGET" >&6
7959 else
7960   echo "$as_me:$LINENO: result: no" >&5
7961 echo "${ECHO_T}no" >&6
7962 fi
7963
7964     fi
7965     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
7966   done
7967 fi
7968
7969 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
7970   set dummy nm
7971   if test $build = $target ; then
7972     NM_FOR_TARGET="$2"
7973   else
7974     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
7975   fi
7976 fi
7977
7978 else
7979   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
7980 fi
7981
7982
7983
7984
7985 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
7986   if test -n "$with_build_time_tools"; then
7987     echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
7988 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
7989     if test -x $with_build_time_tools/objdump; then
7990       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
7991       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
7992       echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
7993 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
7994     else
7995       echo "$as_me:$LINENO: result: no" >&5
7996 echo "${ECHO_T}no" >&6
7997     fi
7998   elif test $build != $host && test $have_gcc_for_target = yes; then
7999     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
8000     test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
8001     ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8002   fi
8003 fi
8004 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8005   # Extract the first word of "objdump", so it can be a program name with args.
8006 set dummy objdump; ac_word=$2
8007 echo "$as_me:$LINENO: checking for $ac_word" >&5
8008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8009 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
8010   echo $ECHO_N "(cached) $ECHO_C" >&6
8011 else
8012   case $OBJDUMP_FOR_TARGET in
8013   [\\/]* | ?:[\\/]*)
8014   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
8015   ;;
8016   *)
8017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $gcc_cv_tool_dirs
8019 do
8020   IFS=$as_save_IFS
8021   test -z "$as_dir" && as_dir=.
8022   for ac_exec_ext in '' $ac_executable_extensions; do
8023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8024     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8026     break 2
8027   fi
8028 done
8029 done
8030
8031   ;;
8032 esac
8033 fi
8034 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8035
8036 if test -n "$OBJDUMP_FOR_TARGET"; then
8037   echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8038 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8039 else
8040   echo "$as_me:$LINENO: result: no" >&5
8041 echo "${ECHO_T}no" >&6
8042 fi
8043
8044 fi
8045 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8046    if test -n "$with_build_time_tools"; then
8047   for ncn_progname in objdump; do
8048     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8049 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8050     if test -x $with_build_time_tools/${ncn_progname}; then
8051       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8052       echo "$as_me:$LINENO: result: yes" >&5
8053 echo "${ECHO_T}yes" >&6
8054       break
8055     else
8056       echo "$as_me:$LINENO: result: no" >&5
8057 echo "${ECHO_T}no" >&6
8058     fi
8059   done
8060 fi
8061
8062 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
8063   for ncn_progname in objdump; do
8064     if test -n "$ncn_target_tool_prefix"; then
8065       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8066 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8067 echo "$as_me:$LINENO: checking for $ac_word" >&5
8068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8069 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8070   echo $ECHO_N "(cached) $ECHO_C" >&6
8071 else
8072   if test -n "$OBJDUMP_FOR_TARGET"; then
8073   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078   IFS=$as_save_IFS
8079   test -z "$as_dir" && as_dir=.
8080   for ac_exec_ext in '' $ac_executable_extensions; do
8081   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8084     break 2
8085   fi
8086 done
8087 done
8088
8089 fi
8090 fi
8091 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
8092 if test -n "$OBJDUMP_FOR_TARGET"; then
8093   echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8094 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8095 else
8096   echo "$as_me:$LINENO: result: no" >&5
8097 echo "${ECHO_T}no" >&6
8098 fi
8099
8100     fi
8101     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
8102       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8103 set dummy ${ncn_progname}; ac_word=$2
8104 echo "$as_me:$LINENO: checking for $ac_word" >&5
8105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8106 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8107   echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109   if test -n "$OBJDUMP_FOR_TARGET"; then
8110   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8111 else
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 for as_dir in $PATH
8114 do
8115   IFS=$as_save_IFS
8116   test -z "$as_dir" && as_dir=.
8117   for ac_exec_ext in '' $ac_executable_extensions; do
8118   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8119     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
8120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8121     break 2
8122   fi
8123 done
8124 done
8125
8126 fi
8127 fi
8128 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
8129 if test -n "$OBJDUMP_FOR_TARGET"; then
8130   echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8131 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8132 else
8133   echo "$as_me:$LINENO: result: no" >&5
8134 echo "${ECHO_T}no" >&6
8135 fi
8136
8137     fi
8138     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
8139   done
8140 fi
8141
8142 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
8143   set dummy objdump
8144   if test $build = $target ; then
8145     OBJDUMP_FOR_TARGET="$2"
8146   else
8147     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8148   fi
8149 fi
8150
8151 else
8152   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8153 fi
8154
8155
8156
8157
8158 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8159   if test -n "$with_build_time_tools"; then
8160     echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
8161 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
8162     if test -x $with_build_time_tools/ranlib; then
8163       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
8164       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8165       echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
8166 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
8167     else
8168       echo "$as_me:$LINENO: result: no" >&5
8169 echo "${ECHO_T}no" >&6
8170     fi
8171   elif test $build != $host && test $have_gcc_for_target = yes; then
8172     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
8173     test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
8174     ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8175   fi
8176 fi
8177 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8178   # Extract the first word of "ranlib", so it can be a program name with args.
8179 set dummy ranlib; ac_word=$2
8180 echo "$as_me:$LINENO: checking for $ac_word" >&5
8181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8182 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
8183   echo $ECHO_N "(cached) $ECHO_C" >&6
8184 else
8185   case $RANLIB_FOR_TARGET in
8186   [\\/]* | ?:[\\/]*)
8187   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
8188   ;;
8189   *)
8190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191 for as_dir in $gcc_cv_tool_dirs
8192 do
8193   IFS=$as_save_IFS
8194   test -z "$as_dir" && as_dir=.
8195   for ac_exec_ext in '' $ac_executable_extensions; do
8196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8197     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8199     break 2
8200   fi
8201 done
8202 done
8203
8204   ;;
8205 esac
8206 fi
8207 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8208
8209 if test -n "$RANLIB_FOR_TARGET"; then
8210   echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8211 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8212 else
8213   echo "$as_me:$LINENO: result: no" >&5
8214 echo "${ECHO_T}no" >&6
8215 fi
8216
8217 fi
8218 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8219    if test -n "$with_build_time_tools"; then
8220   for ncn_progname in ranlib; do
8221     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8222 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8223     if test -x $with_build_time_tools/${ncn_progname}; then
8224       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8225       echo "$as_me:$LINENO: result: yes" >&5
8226 echo "${ECHO_T}yes" >&6
8227       break
8228     else
8229       echo "$as_me:$LINENO: result: no" >&5
8230 echo "${ECHO_T}no" >&6
8231     fi
8232   done
8233 fi
8234
8235 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
8236   for ncn_progname in ranlib; do
8237     if test -n "$ncn_target_tool_prefix"; then
8238       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8239 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8240 echo "$as_me:$LINENO: checking for $ac_word" >&5
8241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8242 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8243   echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245   if test -n "$RANLIB_FOR_TARGET"; then
8246   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8247 else
8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249 for as_dir in $PATH
8250 do
8251   IFS=$as_save_IFS
8252   test -z "$as_dir" && as_dir=.
8253   for ac_exec_ext in '' $ac_executable_extensions; do
8254   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8255     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8257     break 2
8258   fi
8259 done
8260 done
8261
8262 fi
8263 fi
8264 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8265 if test -n "$RANLIB_FOR_TARGET"; then
8266   echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8267 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8268 else
8269   echo "$as_me:$LINENO: result: no" >&5
8270 echo "${ECHO_T}no" >&6
8271 fi
8272
8273     fi
8274     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
8275       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8276 set dummy ${ncn_progname}; ac_word=$2
8277 echo "$as_me:$LINENO: checking for $ac_word" >&5
8278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8279 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8280   echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282   if test -n "$RANLIB_FOR_TARGET"; then
8283   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8284 else
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 for as_dir in $PATH
8287 do
8288   IFS=$as_save_IFS
8289   test -z "$as_dir" && as_dir=.
8290   for ac_exec_ext in '' $ac_executable_extensions; do
8291   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8292     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
8293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8294     break 2
8295   fi
8296 done
8297 done
8298
8299 fi
8300 fi
8301 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8302 if test -n "$RANLIB_FOR_TARGET"; then
8303   echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8304 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8305 else
8306   echo "$as_me:$LINENO: result: no" >&5
8307 echo "${ECHO_T}no" >&6
8308 fi
8309
8310     fi
8311     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
8312   done
8313 fi
8314
8315 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
8316   set dummy ranlib
8317   if test $build = $target ; then
8318     RANLIB_FOR_TARGET="$2"
8319   else
8320     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
8321   fi
8322 fi
8323
8324 else
8325   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8326 fi
8327
8328
8329
8330
8331 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8332   if test -n "$with_build_time_tools"; then
8333     echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
8334 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
8335     if test -x $with_build_time_tools/strip; then
8336       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
8337       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8338       echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
8339 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
8340     else
8341       echo "$as_me:$LINENO: result: no" >&5
8342 echo "${ECHO_T}no" >&6
8343     fi
8344   elif test $build != $host && test $have_gcc_for_target = yes; then
8345     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
8346     test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
8347     ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8348   fi
8349 fi
8350 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8351   # Extract the first word of "strip", so it can be a program name with args.
8352 set dummy strip; ac_word=$2
8353 echo "$as_me:$LINENO: checking for $ac_word" >&5
8354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8355 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
8356   echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358   case $STRIP_FOR_TARGET in
8359   [\\/]* | ?:[\\/]*)
8360   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
8361   ;;
8362   *)
8363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $gcc_cv_tool_dirs
8365 do
8366   IFS=$as_save_IFS
8367   test -z "$as_dir" && as_dir=.
8368   for ac_exec_ext in '' $ac_executable_extensions; do
8369   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8372     break 2
8373   fi
8374 done
8375 done
8376
8377   ;;
8378 esac
8379 fi
8380 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
8381
8382 if test -n "$STRIP_FOR_TARGET"; then
8383   echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8384 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
8385 else
8386   echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6
8388 fi
8389
8390 fi
8391 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8392    if test -n "$with_build_time_tools"; then
8393   for ncn_progname in strip; do
8394     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8395 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8396     if test -x $with_build_time_tools/${ncn_progname}; then
8397       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8398       echo "$as_me:$LINENO: result: yes" >&5
8399 echo "${ECHO_T}yes" >&6
8400       break
8401     else
8402       echo "$as_me:$LINENO: result: no" >&5
8403 echo "${ECHO_T}no" >&6
8404     fi
8405   done
8406 fi
8407
8408 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
8409   for ncn_progname in strip; do
8410     if test -n "$ncn_target_tool_prefix"; then
8411       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8412 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8413 echo "$as_me:$LINENO: checking for $ac_word" >&5
8414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8415 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8416   echo $ECHO_N "(cached) $ECHO_C" >&6
8417 else
8418   if test -n "$STRIP_FOR_TARGET"; then
8419   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
8420 else
8421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422 for as_dir in $PATH
8423 do
8424   IFS=$as_save_IFS
8425   test -z "$as_dir" && as_dir=.
8426   for ac_exec_ext in '' $ac_executable_extensions; do
8427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8428     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8430     break 2
8431   fi
8432 done
8433 done
8434
8435 fi
8436 fi
8437 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
8438 if test -n "$STRIP_FOR_TARGET"; then
8439   echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8440 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
8441 else
8442   echo "$as_me:$LINENO: result: no" >&5
8443 echo "${ECHO_T}no" >&6
8444 fi
8445
8446     fi
8447     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
8448       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8449 set dummy ${ncn_progname}; ac_word=$2
8450 echo "$as_me:$LINENO: checking for $ac_word" >&5
8451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8452 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8453   echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455   if test -n "$STRIP_FOR_TARGET"; then
8456   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
8457 else
8458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459 for as_dir in $PATH
8460 do
8461   IFS=$as_save_IFS
8462   test -z "$as_dir" && as_dir=.
8463   for ac_exec_ext in '' $ac_executable_extensions; do
8464   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8465     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
8466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8467     break 2
8468   fi
8469 done
8470 done
8471
8472 fi
8473 fi
8474 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
8475 if test -n "$STRIP_FOR_TARGET"; then
8476   echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8477 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
8478 else
8479   echo "$as_me:$LINENO: result: no" >&5
8480 echo "${ECHO_T}no" >&6
8481 fi
8482
8483     fi
8484     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
8485   done
8486 fi
8487
8488 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
8489   set dummy strip
8490   if test $build = $target ; then
8491     STRIP_FOR_TARGET="$2"
8492   else
8493     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8494   fi
8495 fi
8496
8497 else
8498   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
8499 fi
8500
8501
8502
8503
8504 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8505   if test -n "$with_build_time_tools"; then
8506     echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
8507 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
8508     if test -x $with_build_time_tools/windres; then
8509       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
8510       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
8511       echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
8512 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
8513     else
8514       echo "$as_me:$LINENO: result: no" >&5
8515 echo "${ECHO_T}no" >&6
8516     fi
8517   elif test $build != $host && test $have_gcc_for_target = yes; then
8518     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
8519     test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
8520     ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
8521   fi
8522 fi
8523 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8524   # Extract the first word of "windres", so it can be a program name with args.
8525 set dummy windres; ac_word=$2
8526 echo "$as_me:$LINENO: checking for $ac_word" >&5
8527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8528 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
8529   echo $ECHO_N "(cached) $ECHO_C" >&6
8530 else
8531   case $WINDRES_FOR_TARGET in
8532   [\\/]* | ?:[\\/]*)
8533   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
8534   ;;
8535   *)
8536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 for as_dir in $gcc_cv_tool_dirs
8538 do
8539   IFS=$as_save_IFS
8540   test -z "$as_dir" && as_dir=.
8541   for ac_exec_ext in '' $ac_executable_extensions; do
8542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8543     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8545     break 2
8546   fi
8547 done
8548 done
8549
8550   ;;
8551 esac
8552 fi
8553 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
8554
8555 if test -n "$WINDRES_FOR_TARGET"; then
8556   echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8557 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
8558 else
8559   echo "$as_me:$LINENO: result: no" >&5
8560 echo "${ECHO_T}no" >&6
8561 fi
8562
8563 fi
8564 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8565    if test -n "$with_build_time_tools"; then
8566   for ncn_progname in windres; do
8567     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8568 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8569     if test -x $with_build_time_tools/${ncn_progname}; then
8570       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8571       echo "$as_me:$LINENO: result: yes" >&5
8572 echo "${ECHO_T}yes" >&6
8573       break
8574     else
8575       echo "$as_me:$LINENO: result: no" >&5
8576 echo "${ECHO_T}no" >&6
8577     fi
8578   done
8579 fi
8580
8581 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
8582   for ncn_progname in windres; do
8583     if test -n "$ncn_target_tool_prefix"; then
8584       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8585 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8586 echo "$as_me:$LINENO: checking for $ac_word" >&5
8587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8588 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
8589   echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591   if test -n "$WINDRES_FOR_TARGET"; then
8592   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
8593 else
8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 for as_dir in $PATH
8596 do
8597   IFS=$as_save_IFS
8598   test -z "$as_dir" && as_dir=.
8599   for ac_exec_ext in '' $ac_executable_extensions; do
8600   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8601     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8603     break 2
8604   fi
8605 done
8606 done
8607
8608 fi
8609 fi
8610 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
8611 if test -n "$WINDRES_FOR_TARGET"; then
8612   echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8613 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
8614 else
8615   echo "$as_me:$LINENO: result: no" >&5
8616 echo "${ECHO_T}no" >&6
8617 fi
8618
8619     fi
8620     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
8621       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8622 set dummy ${ncn_progname}; ac_word=$2
8623 echo "$as_me:$LINENO: checking for $ac_word" >&5
8624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8625 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
8626   echo $ECHO_N "(cached) $ECHO_C" >&6
8627 else
8628   if test -n "$WINDRES_FOR_TARGET"; then
8629   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
8630 else
8631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632 for as_dir in $PATH
8633 do
8634   IFS=$as_save_IFS
8635   test -z "$as_dir" && as_dir=.
8636   for ac_exec_ext in '' $ac_executable_extensions; do
8637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8638     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
8639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8640     break 2
8641   fi
8642 done
8643 done
8644
8645 fi
8646 fi
8647 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
8648 if test -n "$WINDRES_FOR_TARGET"; then
8649   echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8650 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
8651 else
8652   echo "$as_me:$LINENO: result: no" >&5
8653 echo "${ECHO_T}no" >&6
8654 fi
8655
8656     fi
8657     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
8658   done
8659 fi
8660
8661 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
8662   set dummy windres
8663   if test $build = $target ; then
8664     WINDRES_FOR_TARGET="$2"
8665   else
8666     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
8667   fi
8668 fi
8669
8670 else
8671   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
8672 fi
8673
8674
8675 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
8676
8677 echo "$as_me:$LINENO: checking where to find the target ar" >&5
8678 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
8679 if test "x${build}" != "x${host}" ; then
8680   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
8681     # We already found the complete path
8682     echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
8683 echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
8684   else
8685     # Canadian cross, just use what we found
8686     echo "$as_me:$LINENO: result: pre-installed" >&5
8687 echo "${ECHO_T}pre-installed" >&6
8688   fi
8689 else
8690   ok=yes
8691   case " ${configdirs} " in
8692     *" binutils "*) ;;
8693     *) ok=no ;;
8694   esac
8695
8696   if test $ok = yes; then
8697     # An in-tree tool is available and we can use it
8698     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
8699     echo "$as_me:$LINENO: result: just compiled" >&5
8700 echo "${ECHO_T}just compiled" >&6
8701   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
8702     # We already found the complete path
8703     echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
8704 echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
8705   elif test "x$target" = "x$host"; then
8706     # We can use an host tool
8707     AR_FOR_TARGET='$(AR)'
8708     echo "$as_me:$LINENO: result: host tool" >&5
8709 echo "${ECHO_T}host tool" >&6
8710   else
8711     # We need a cross tool
8712     echo "$as_me:$LINENO: result: pre-installed" >&5
8713 echo "${ECHO_T}pre-installed" >&6
8714   fi
8715 fi
8716
8717 echo "$as_me:$LINENO: checking where to find the target as" >&5
8718 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
8719 if test "x${build}" != "x${host}" ; then
8720   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
8721     # We already found the complete path
8722     echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
8723 echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
8724   else
8725     # Canadian cross, just use what we found
8726     echo "$as_me:$LINENO: result: pre-installed" >&5
8727 echo "${ECHO_T}pre-installed" >&6
8728   fi
8729 else
8730   ok=yes
8731   case " ${configdirs} " in
8732     *" gas "*) ;;
8733     *) ok=no ;;
8734   esac
8735
8736   if test $ok = yes; then
8737     # An in-tree tool is available and we can use it
8738     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
8739     echo "$as_me:$LINENO: result: just compiled" >&5
8740 echo "${ECHO_T}just compiled" >&6
8741   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
8742     # We already found the complete path
8743     echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
8744 echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
8745   elif test "x$target" = "x$host"; then
8746     # We can use an host tool
8747     AS_FOR_TARGET='$(AS)'
8748     echo "$as_me:$LINENO: result: host tool" >&5
8749 echo "${ECHO_T}host tool" >&6
8750   else
8751     # We need a cross tool
8752     echo "$as_me:$LINENO: result: pre-installed" >&5
8753 echo "${ECHO_T}pre-installed" >&6
8754   fi
8755 fi
8756
8757 echo "$as_me:$LINENO: checking where to find the target cc" >&5
8758 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
8759 if test "x${build}" != "x${host}" ; then
8760   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
8761     # We already found the complete path
8762     echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
8763 echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
8764   else
8765     # Canadian cross, just use what we found
8766     echo "$as_me:$LINENO: result: pre-installed" >&5
8767 echo "${ECHO_T}pre-installed" >&6
8768   fi
8769 else
8770   ok=yes
8771   case " ${configdirs} " in
8772     *" gcc "*) ;;
8773     *) ok=no ;;
8774   esac
8775
8776   if test $ok = yes; then
8777     # An in-tree tool is available and we can use it
8778     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
8779     echo "$as_me:$LINENO: result: just compiled" >&5
8780 echo "${ECHO_T}just compiled" >&6
8781   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
8782     # We already found the complete path
8783     echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
8784 echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
8785   elif test "x$target" = "x$host"; then
8786     # We can use an host tool
8787     CC_FOR_TARGET='$(CC)'
8788     echo "$as_me:$LINENO: result: host tool" >&5
8789 echo "${ECHO_T}host tool" >&6
8790   else
8791     # We need a cross tool
8792     echo "$as_me:$LINENO: result: pre-installed" >&5
8793 echo "${ECHO_T}pre-installed" >&6
8794   fi
8795 fi
8796
8797 echo "$as_me:$LINENO: checking where to find the target c++" >&5
8798 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
8799 if test "x${build}" != "x${host}" ; then
8800   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
8801     # We already found the complete path
8802     echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
8803 echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
8804   else
8805     # Canadian cross, just use what we found
8806     echo "$as_me:$LINENO: result: pre-installed" >&5
8807 echo "${ECHO_T}pre-installed" >&6
8808   fi
8809 else
8810   ok=yes
8811   case " ${configdirs} " in
8812     *" gcc "*) ;;
8813     *) ok=no ;;
8814   esac
8815   case ,${enable_languages}, in
8816     *,c++,*) ;;
8817     *) ok=no ;;
8818   esac
8819   if test $ok = yes; then
8820     # An in-tree tool is available and we can use it
8821     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'
8822     echo "$as_me:$LINENO: result: just compiled" >&5
8823 echo "${ECHO_T}just compiled" >&6
8824   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
8825     # We already found the complete path
8826     echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
8827 echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
8828   elif test "x$target" = "x$host"; then
8829     # We can use an host tool
8830     CXX_FOR_TARGET='$(CXX)'
8831     echo "$as_me:$LINENO: result: host tool" >&5
8832 echo "${ECHO_T}host tool" >&6
8833   else
8834     # We need a cross tool
8835     echo "$as_me:$LINENO: result: pre-installed" >&5
8836 echo "${ECHO_T}pre-installed" >&6
8837   fi
8838 fi
8839
8840 echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
8841 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
8842 if test "x${build}" != "x${host}" ; then
8843   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
8844     # We already found the complete path
8845     echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
8846 echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
8847   else
8848     # Canadian cross, just use what we found
8849     echo "$as_me:$LINENO: result: pre-installed" >&5
8850 echo "${ECHO_T}pre-installed" >&6
8851   fi
8852 else
8853   ok=yes
8854   case " ${configdirs} " in
8855     *" gcc "*) ;;
8856     *) ok=no ;;
8857   esac
8858   case ,${enable_languages}, in
8859     *,c++,*) ;;
8860     *) ok=no ;;
8861   esac
8862   if test $ok = yes; then
8863     # An in-tree tool is available and we can use it
8864     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'
8865     echo "$as_me:$LINENO: result: just compiled" >&5
8866 echo "${ECHO_T}just compiled" >&6
8867   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
8868     # We already found the complete path
8869     echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
8870 echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
8871   elif test "x$target" = "x$host"; then
8872     # We can use an host tool
8873     RAW_CXX_FOR_TARGET='$(CXX)'
8874     echo "$as_me:$LINENO: result: host tool" >&5
8875 echo "${ECHO_T}host tool" >&6
8876   else
8877     # We need a cross tool
8878     echo "$as_me:$LINENO: result: pre-installed" >&5
8879 echo "${ECHO_T}pre-installed" >&6
8880   fi
8881 fi
8882
8883 echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
8884 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
8885 if test "x${build}" != "x${host}" ; then
8886   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
8887     # We already found the complete path
8888     echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
8889 echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
8890   else
8891     # Canadian cross, just use what we found
8892     echo "$as_me:$LINENO: result: pre-installed" >&5
8893 echo "${ECHO_T}pre-installed" >&6
8894   fi
8895 else
8896   ok=yes
8897   case " ${configdirs} " in
8898     *" binutils "*) ;;
8899     *) ok=no ;;
8900   esac
8901
8902   if test $ok = yes; then
8903     # An in-tree tool is available and we can use it
8904     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
8905     echo "$as_me:$LINENO: result: just compiled" >&5
8906 echo "${ECHO_T}just compiled" >&6
8907   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
8908     # We already found the complete path
8909     echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
8910 echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
8911   elif test "x$target" = "x$host"; then
8912     # We can use an host tool
8913     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
8914     echo "$as_me:$LINENO: result: host tool" >&5
8915 echo "${ECHO_T}host tool" >&6
8916   else
8917     # We need a cross tool
8918     echo "$as_me:$LINENO: result: pre-installed" >&5
8919 echo "${ECHO_T}pre-installed" >&6
8920   fi
8921 fi
8922
8923 echo "$as_me:$LINENO: checking where to find the target gcc" >&5
8924 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
8925 if test "x${build}" != "x${host}" ; then
8926   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
8927     # We already found the complete path
8928     echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
8929 echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
8930   else
8931     # Canadian cross, just use what we found
8932     echo "$as_me:$LINENO: result: pre-installed" >&5
8933 echo "${ECHO_T}pre-installed" >&6
8934   fi
8935 else
8936   ok=yes
8937   case " ${configdirs} " in
8938     *" gcc "*) ;;
8939     *) ok=no ;;
8940   esac
8941
8942   if test $ok = yes; then
8943     # An in-tree tool is available and we can use it
8944     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
8945     echo "$as_me:$LINENO: result: just compiled" >&5
8946 echo "${ECHO_T}just compiled" >&6
8947   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
8948     # We already found the complete path
8949     echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
8950 echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
8951   elif test "x$target" = "x$host"; then
8952     # We can use an host tool
8953     GCC_FOR_TARGET='$()'
8954     echo "$as_me:$LINENO: result: host tool" >&5
8955 echo "${ECHO_T}host tool" >&6
8956   else
8957     # We need a cross tool
8958     echo "$as_me:$LINENO: result: pre-installed" >&5
8959 echo "${ECHO_T}pre-installed" >&6
8960   fi
8961 fi
8962
8963 echo "$as_me:$LINENO: checking where to find the target gcj" >&5
8964 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
8965 if test "x${build}" != "x${host}" ; then
8966   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
8967     # We already found the complete path
8968     echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
8969 echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
8970   else
8971     # Canadian cross, just use what we found
8972     echo "$as_me:$LINENO: result: pre-installed" >&5
8973 echo "${ECHO_T}pre-installed" >&6
8974   fi
8975 else
8976   ok=yes
8977   case " ${configdirs} " in
8978     *" gcc "*) ;;
8979     *) ok=no ;;
8980   esac
8981   case ,${enable_languages}, in
8982     *,java,*) ;;
8983     *) ok=no ;;
8984   esac
8985   if test $ok = yes; then
8986     # An in-tree tool is available and we can use it
8987     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
8988     echo "$as_me:$LINENO: result: just compiled" >&5
8989 echo "${ECHO_T}just compiled" >&6
8990   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
8991     # We already found the complete path
8992     echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
8993 echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
8994   elif test "x$target" = "x$host"; then
8995     # We can use an host tool
8996     GCJ_FOR_TARGET='$(GCJ)'
8997     echo "$as_me:$LINENO: result: host tool" >&5
8998 echo "${ECHO_T}host tool" >&6
8999   else
9000     # We need a cross tool
9001     echo "$as_me:$LINENO: result: pre-installed" >&5
9002 echo "${ECHO_T}pre-installed" >&6
9003   fi
9004 fi
9005
9006 echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
9007 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
9008 if test "x${build}" != "x${host}" ; then
9009   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9010     # We already found the complete path
9011     echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9012 echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
9013   else
9014     # Canadian cross, just use what we found
9015     echo "$as_me:$LINENO: result: pre-installed" >&5
9016 echo "${ECHO_T}pre-installed" >&6
9017   fi
9018 else
9019   ok=yes
9020   case " ${configdirs} " in
9021     *" gcc "*) ;;
9022     *) ok=no ;;
9023   esac
9024   case ,${enable_languages}, in
9025     *,fortran,*) ;;
9026     *) ok=no ;;
9027   esac
9028   if test $ok = yes; then
9029     # An in-tree tool is available and we can use it
9030     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
9031     echo "$as_me:$LINENO: result: just compiled" >&5
9032 echo "${ECHO_T}just compiled" >&6
9033   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9034     # We already found the complete path
9035     echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9036 echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
9037   elif test "x$target" = "x$host"; then
9038     # We can use an host tool
9039     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
9040     echo "$as_me:$LINENO: result: host tool" >&5
9041 echo "${ECHO_T}host tool" >&6
9042   else
9043     # We need a cross tool
9044     echo "$as_me:$LINENO: result: pre-installed" >&5
9045 echo "${ECHO_T}pre-installed" >&6
9046   fi
9047 fi
9048
9049 echo "$as_me:$LINENO: checking where to find the target ld" >&5
9050 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
9051 if test "x${build}" != "x${host}" ; then
9052   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9053     # We already found the complete path
9054     echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9055 echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
9056   else
9057     # Canadian cross, just use what we found
9058     echo "$as_me:$LINENO: result: pre-installed" >&5
9059 echo "${ECHO_T}pre-installed" >&6
9060   fi
9061 else
9062   ok=yes
9063   case " ${configdirs} " in
9064     *" ld "*) ;;
9065     *) ok=no ;;
9066   esac
9067
9068   if test $ok = yes; then
9069     # An in-tree tool is available and we can use it
9070     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
9071     echo "$as_me:$LINENO: result: just compiled" >&5
9072 echo "${ECHO_T}just compiled" >&6
9073   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9074     # We already found the complete path
9075     echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9076 echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
9077   elif test "x$target" = "x$host"; then
9078     # We can use an host tool
9079     LD_FOR_TARGET='$(LD)'
9080     echo "$as_me:$LINENO: result: host tool" >&5
9081 echo "${ECHO_T}host tool" >&6
9082   else
9083     # We need a cross tool
9084     echo "$as_me:$LINENO: result: pre-installed" >&5
9085 echo "${ECHO_T}pre-installed" >&6
9086   fi
9087 fi
9088
9089 echo "$as_me:$LINENO: checking where to find the target lipo" >&5
9090 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
9091 if test "x${build}" != "x${host}" ; then
9092   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9093     # We already found the complete path
9094     echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9095 echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
9096   else
9097     # Canadian cross, just use what we found
9098     echo "$as_me:$LINENO: result: pre-installed" >&5
9099 echo "${ECHO_T}pre-installed" >&6
9100   fi
9101 else
9102   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9103     # We already found the complete path
9104     echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9105 echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
9106   elif test "x$target" = "x$host"; then
9107     # We can use an host tool
9108     LIPO_FOR_TARGET='$(LIPO)'
9109     echo "$as_me:$LINENO: result: host tool" >&5
9110 echo "${ECHO_T}host tool" >&6
9111   else
9112     # We need a cross tool
9113     echo "$as_me:$LINENO: result: pre-installed" >&5
9114 echo "${ECHO_T}pre-installed" >&6
9115   fi
9116 fi
9117
9118 echo "$as_me:$LINENO: checking where to find the target nm" >&5
9119 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
9120 if test "x${build}" != "x${host}" ; then
9121   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9122     # We already found the complete path
9123     echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9124 echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
9125   else
9126     # Canadian cross, just use what we found
9127     echo "$as_me:$LINENO: result: pre-installed" >&5
9128 echo "${ECHO_T}pre-installed" >&6
9129   fi
9130 else
9131   ok=yes
9132   case " ${configdirs} " in
9133     *" binutils "*) ;;
9134     *) ok=no ;;
9135   esac
9136
9137   if test $ok = yes; then
9138     # An in-tree tool is available and we can use it
9139     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
9140     echo "$as_me:$LINENO: result: just compiled" >&5
9141 echo "${ECHO_T}just compiled" >&6
9142   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9143     # We already found the complete path
9144     echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9145 echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
9146   elif test "x$target" = "x$host"; then
9147     # We can use an host tool
9148     NM_FOR_TARGET='$(NM)'
9149     echo "$as_me:$LINENO: result: host tool" >&5
9150 echo "${ECHO_T}host tool" >&6
9151   else
9152     # We need a cross tool
9153     echo "$as_me:$LINENO: result: pre-installed" >&5
9154 echo "${ECHO_T}pre-installed" >&6
9155   fi
9156 fi
9157
9158 echo "$as_me:$LINENO: checking where to find the target objdump" >&5
9159 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
9160 if test "x${build}" != "x${host}" ; then
9161   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9162     # We already found the complete path
9163     echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9164 echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
9165   else
9166     # Canadian cross, just use what we found
9167     echo "$as_me:$LINENO: result: pre-installed" >&5
9168 echo "${ECHO_T}pre-installed" >&6
9169   fi
9170 else
9171   ok=yes
9172   case " ${configdirs} " in
9173     *" binutils "*) ;;
9174     *) ok=no ;;
9175   esac
9176
9177   if test $ok = yes; then
9178     # An in-tree tool is available and we can use it
9179     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
9180     echo "$as_me:$LINENO: result: just compiled" >&5
9181 echo "${ECHO_T}just compiled" >&6
9182   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9183     # We already found the complete path
9184     echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9185 echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
9186   elif test "x$target" = "x$host"; then
9187     # We can use an host tool
9188     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
9189     echo "$as_me:$LINENO: result: host tool" >&5
9190 echo "${ECHO_T}host tool" >&6
9191   else
9192     # We need a cross tool
9193     echo "$as_me:$LINENO: result: pre-installed" >&5
9194 echo "${ECHO_T}pre-installed" >&6
9195   fi
9196 fi
9197
9198 echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
9199 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
9200 if test "x${build}" != "x${host}" ; then
9201   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9202     # We already found the complete path
9203     echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9204 echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
9205   else
9206     # Canadian cross, just use what we found
9207     echo "$as_me:$LINENO: result: pre-installed" >&5
9208 echo "${ECHO_T}pre-installed" >&6
9209   fi
9210 else
9211   ok=yes
9212   case " ${configdirs} " in
9213     *" binutils "*) ;;
9214     *) ok=no ;;
9215   esac
9216
9217   if test $ok = yes; then
9218     # An in-tree tool is available and we can use it
9219     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
9220     echo "$as_me:$LINENO: result: just compiled" >&5
9221 echo "${ECHO_T}just compiled" >&6
9222   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9223     # We already found the complete path
9224     echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9225 echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
9226   elif test "x$target" = "x$host"; then
9227     # We can use an host tool
9228     RANLIB_FOR_TARGET='$(RANLIB)'
9229     echo "$as_me:$LINENO: result: host tool" >&5
9230 echo "${ECHO_T}host tool" >&6
9231   else
9232     # We need a cross tool
9233     echo "$as_me:$LINENO: result: pre-installed" >&5
9234 echo "${ECHO_T}pre-installed" >&6
9235   fi
9236 fi
9237
9238 echo "$as_me:$LINENO: checking where to find the target strip" >&5
9239 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
9240 if test "x${build}" != "x${host}" ; then
9241   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9242     # We already found the complete path
9243     echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9244 echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
9245   else
9246     # Canadian cross, just use what we found
9247     echo "$as_me:$LINENO: result: pre-installed" >&5
9248 echo "${ECHO_T}pre-installed" >&6
9249   fi
9250 else
9251   ok=yes
9252   case " ${configdirs} " in
9253     *" binutils "*) ;;
9254     *) ok=no ;;
9255   esac
9256
9257   if test $ok = yes; then
9258     # An in-tree tool is available and we can use it
9259     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
9260     echo "$as_me:$LINENO: result: just compiled" >&5
9261 echo "${ECHO_T}just compiled" >&6
9262   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9263     # We already found the complete path
9264     echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9265 echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
9266   elif test "x$target" = "x$host"; then
9267     # We can use an host tool
9268     STRIP_FOR_TARGET='$(STRIP)'
9269     echo "$as_me:$LINENO: result: host tool" >&5
9270 echo "${ECHO_T}host tool" >&6
9271   else
9272     # We need a cross tool
9273     echo "$as_me:$LINENO: result: pre-installed" >&5
9274 echo "${ECHO_T}pre-installed" >&6
9275   fi
9276 fi
9277
9278 echo "$as_me:$LINENO: checking where to find the target windres" >&5
9279 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
9280 if test "x${build}" != "x${host}" ; then
9281   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9282     # We already found the complete path
9283     echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9284 echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
9285   else
9286     # Canadian cross, just use what we found
9287     echo "$as_me:$LINENO: result: pre-installed" >&5
9288 echo "${ECHO_T}pre-installed" >&6
9289   fi
9290 else
9291   ok=yes
9292   case " ${configdirs} " in
9293     *" binutils "*) ;;
9294     *) ok=no ;;
9295   esac
9296
9297   if test $ok = yes; then
9298     # An in-tree tool is available and we can use it
9299     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
9300     echo "$as_me:$LINENO: result: just compiled" >&5
9301 echo "${ECHO_T}just compiled" >&6
9302   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9303     # We already found the complete path
9304     echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9305 echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
9306   elif test "x$target" = "x$host"; then
9307     # We can use an host tool
9308     WINDRES_FOR_TARGET='$(WINDRES)'
9309     echo "$as_me:$LINENO: result: host tool" >&5
9310 echo "${ECHO_T}host tool" >&6
9311   else
9312     # We need a cross tool
9313     echo "$as_me:$LINENO: result: pre-installed" >&5
9314 echo "${ECHO_T}pre-installed" >&6
9315   fi
9316 fi
9317
9318
9319
9320
9321
9322 # Certain tools may need extra flags.
9323 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
9324 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
9325 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
9326
9327 # When building target libraries, except in a Canadian cross, we use
9328 # the same toolchain as the compiler we just built.
9329 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
9330 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
9331 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
9332 if test $host = $build; then
9333   case " $configdirs " in
9334     *" gcc "*)
9335       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
9336       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
9337       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
9338       ;;
9339   esac
9340 fi
9341
9342
9343
9344
9345
9346 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9347 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9348 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9349 if test "${enable_maintainer_mode+set}" = set; then
9350   enableval="$enable_maintainer_mode"
9351   USE_MAINTAINER_MODE=$enableval
9352 else
9353   USE_MAINTAINER_MODE=no
9354 fi;
9355 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9356 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9357
9358
9359 if test "$USE_MAINTAINER_MODE" = yes; then
9360   MAINTAINER_MODE_TRUE=
9361   MAINTAINER_MODE_FALSE='#'
9362 else
9363   MAINTAINER_MODE_TRUE='#'
9364   MAINTAINER_MODE_FALSE=
9365 fi
9366 MAINT=$MAINTAINER_MODE_TRUE
9367
9368 # ---------------------
9369 # GCC bootstrap support
9370 # ---------------------
9371
9372 # Stage specific cflags for build.
9373 stage1_cflags="-g"
9374 case $build in
9375   vax-*-*)
9376     case ${GCC} in
9377       yes) stage1_cflags="-g -Wa,-J" ;;
9378       *) stage1_cflags="-g -J" ;;
9379     esac ;;
9380 esac
9381
9382 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
9383 if test "$GCC" = yes; then
9384   saved_CFLAGS="$CFLAGS"
9385
9386   # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
9387   CFLAGS="$CFLAGS -fkeep-inline-functions"
9388   echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
9389 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
9390   cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h.  */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h.  */
9396
9397 int
9398 main ()
9399 {
9400
9401   ;
9402   return 0;
9403 }
9404 _ACEOF
9405 rm -f conftest.$ac_objext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9407   (eval $ac_compile) 2>conftest.er1
9408   ac_status=$?
9409   grep -v '^ *+' conftest.er1 >conftest.err
9410   rm -f conftest.er1
9411   cat conftest.err >&5
9412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413   (exit $ac_status); } &&
9414          { ac_try='test -z "$ac_c_werror_flag"
9415                          || test ! -s conftest.err'
9416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417   (eval $ac_try) 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); }; } &&
9421          { ac_try='test -s conftest.$ac_objext'
9422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423   (eval $ac_try) 2>&5
9424   ac_status=$?
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); }; }; then
9427   echo "$as_me:$LINENO: result: yes" >&5
9428 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
9429 else
9430   echo "$as_me: failed program was:" >&5
9431 sed 's/^/| /' conftest.$ac_ext >&5
9432
9433 echo "$as_me:$LINENO: result: no" >&5
9434 echo "${ECHO_T}no" >&6
9435 fi
9436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9437
9438   CFLAGS="$saved_CFLAGS"
9439 fi
9440
9441
9442
9443 # Enable --enable-checking in stage1 of the compiler.
9444 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
9445 if test "${enable_stage1_checking+set}" = set; then
9446   enableval="$enable_stage1_checking"
9447   stage1_checking=--enable-checking=${enable_stage1_checking}
9448 else
9449   if test "x$enable_checking" = xno; then
9450   stage1_checking=--enable-checking
9451 else
9452   stage1_checking=--enable-checking${enable_checking+=}$enable_checking
9453 fi
9454 fi;
9455
9456
9457 # Enable -Werror in bootstrap stage2 and later.
9458 # Change the default to "no" on release branches.
9459 # Check whether --enable-werror or --disable-werror was given.
9460 if test "${enable_werror+set}" = set; then
9461   enableval="$enable_werror"
9462
9463 else
9464   enable_werror=yes
9465 fi;
9466 case ${enable_werror} in
9467   yes) stage2_werror_flag="--enable-werror-always" ;;
9468   *) stage2_werror_flag="" ;;
9469 esac
9470
9471
9472 # Flags needed to enable html installing and building
9473
9474 # Check whether --with-datarootdir or --without-datarootdir was given.
9475 if test "${with_datarootdir+set}" = set; then
9476   withval="$with_datarootdir"
9477   datarootdir="\${prefix}/${withval}"
9478 else
9479   datarootdir="\${prefix}/share"
9480 fi;
9481
9482
9483 # Check whether --with-docdir or --without-docdir was given.
9484 if test "${with_docdir+set}" = set; then
9485   withval="$with_docdir"
9486   docdir="\${prefix}/${withval}"
9487 else
9488   docdir="\${datarootdir}/doc"
9489 fi;
9490
9491
9492 # Check whether --with-htmldir or --without-htmldir was given.
9493 if test "${with_htmldir+set}" = set; then
9494   withval="$with_htmldir"
9495   htmldir="\${prefix}/${withval}"
9496 else
9497   htmldir="\${docdir}"
9498 fi;
9499
9500
9501
9502
9503
9504           ac_config_files="$ac_config_files Makefile"
9505 cat >confcache <<\_ACEOF
9506 # This file is a shell script that caches the results of configure
9507 # tests run on this system so they can be shared between configure
9508 # scripts and configure runs, see configure's option --config-cache.
9509 # It is not useful on other systems.  If it contains results you don't
9510 # want to keep, you may remove or edit it.
9511 #
9512 # config.status only pays attention to the cache file if you give it
9513 # the --recheck option to rerun configure.
9514 #
9515 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9516 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9517 # following values.
9518
9519 _ACEOF
9520
9521 # The following way of writing the cache mishandles newlines in values,
9522 # but we know of no workaround that is simple, portable, and efficient.
9523 # So, don't put newlines in cache variables' values.
9524 # Ultrix sh set writes to stderr and can't be redirected directly,
9525 # and sets the high bit in the cache file unless we assign to the vars.
9526 {
9527   (set) 2>&1 |
9528     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9529     *ac_space=\ *)
9530       # `set' does not quote correctly, so add quotes (double-quote
9531       # substitution turns \\\\ into \\, and sed turns \\ into \).
9532       sed -n \
9533         "s/'/'\\\\''/g;
9534           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9535       ;;
9536     *)
9537       # `set' quotes correctly as required by POSIX, so do not add quotes.
9538       sed -n \
9539         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9540       ;;
9541     esac;
9542 } |
9543   sed '
9544      t clear
9545      : clear
9546      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9547      t end
9548      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9549      : end' >>confcache
9550 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9551   if test -w $cache_file; then
9552     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9553     cat confcache >$cache_file
9554   else
9555     echo "not updating unwritable cache $cache_file"
9556   fi
9557 fi
9558 rm -f confcache
9559
9560 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9561 # Let make expand exec_prefix.
9562 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9563
9564 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9565 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9566 # trailing colons and then remove the whole line if VPATH becomes empty
9567 # (actually we leave an empty line to preserve line numbers).
9568 if test "x$srcdir" = x.; then
9569   ac_vpsub='/^[  ]*VPATH[        ]*=/{
9570 s/:*\$(srcdir):*/:/;
9571 s/:*\${srcdir}:*/:/;
9572 s/:*@srcdir@:*/:/;
9573 s/^\([^=]*=[     ]*\):*/\1/;
9574 s/:*$//;
9575 s/^[^=]*=[       ]*$//;
9576 }'
9577 fi
9578
9579 # Transform confdefs.h into DEFS.
9580 # Protect against shell expansion while executing Makefile rules.
9581 # Protect against Makefile macro expansion.
9582 #
9583 # If the first sed substitution is executed (which looks for macros that
9584 # take arguments), then we branch to the quote section.  Otherwise,
9585 # look for a macro that doesn't take arguments.
9586 cat >confdef2opt.sed <<\_ACEOF
9587 t clear
9588 : clear
9589 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
9590 t quote
9591 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
9592 t quote
9593 d
9594 : quote
9595 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
9596 s,\[,\\&,g
9597 s,\],\\&,g
9598 s,\$,$$,g
9599 p
9600 _ACEOF
9601 # We use echo to avoid assuming a particular line-breaking character.
9602 # The extra dot is to prevent the shell from consuming trailing
9603 # line-breaks from the sub-command output.  A line-break within
9604 # single-quotes doesn't work because, if this script is created in a
9605 # platform that uses two characters for line-breaks (e.g., DOS), tr
9606 # would break.
9607 ac_LF_and_DOT=`echo; echo .`
9608 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
9609 rm -f confdef2opt.sed
9610
9611
9612 ac_libobjs=
9613 ac_ltlibobjs=
9614 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9615   # 1. Remove the extension, and $U if already installed.
9616   ac_i=`echo "$ac_i" |
9617          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9618   # 2. Add them.
9619   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9620   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9621 done
9622 LIBOBJS=$ac_libobjs
9623
9624 LTLIBOBJS=$ac_ltlibobjs
9625
9626
9627
9628 : ${CONFIG_STATUS=./config.status}
9629 ac_clean_files_save=$ac_clean_files
9630 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9631 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9632 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9633 cat >$CONFIG_STATUS <<_ACEOF
9634 #! $SHELL
9635 # Generated by $as_me.
9636 # Run this file to recreate the current configuration.
9637 # Compiler output produced by configure, useful for debugging
9638 # configure, is in config.log if it exists.
9639
9640 debug=false
9641 ac_cs_recheck=false
9642 ac_cs_silent=false
9643 SHELL=\${CONFIG_SHELL-$SHELL}
9644 _ACEOF
9645
9646 cat >>$CONFIG_STATUS <<\_ACEOF
9647 ## --------------------- ##
9648 ## M4sh Initialization.  ##
9649 ## --------------------- ##
9650
9651 # Be Bourne compatible
9652 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9653   emulate sh
9654   NULLCMD=:
9655   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9656   # is contrary to our usage.  Disable this feature.
9657   alias -g '${1+"$@"}'='"$@"'
9658 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9659   set -o posix
9660 fi
9661 DUALCASE=1; export DUALCASE # for MKS sh
9662
9663 # Support unset when possible.
9664 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9665   as_unset=unset
9666 else
9667   as_unset=false
9668 fi
9669
9670
9671 # Work around bugs in pre-3.0 UWIN ksh.
9672 $as_unset ENV MAIL MAILPATH
9673 PS1='$ '
9674 PS2='> '
9675 PS4='+ '
9676
9677 # NLS nuisances.
9678 for as_var in \
9679   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9680   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9681   LC_TELEPHONE LC_TIME
9682 do
9683   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9684     eval $as_var=C; export $as_var
9685   else
9686     $as_unset $as_var
9687   fi
9688 done
9689
9690 # Required to use basename.
9691 if expr a : '\(a\)' >/dev/null 2>&1; then
9692   as_expr=expr
9693 else
9694   as_expr=false
9695 fi
9696
9697 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9698   as_basename=basename
9699 else
9700   as_basename=false
9701 fi
9702
9703
9704 # Name of the executable.
9705 as_me=`$as_basename "$0" ||
9706 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9707          X"$0" : 'X\(//\)$' \| \
9708          X"$0" : 'X\(/\)$' \| \
9709          .     : '\(.\)' 2>/dev/null ||
9710 echo X/"$0" |
9711     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9712           /^X\/\(\/\/\)$/{ s//\1/; q; }
9713           /^X\/\(\/\).*/{ s//\1/; q; }
9714           s/.*/./; q'`
9715
9716
9717 # PATH needs CR, and LINENO needs CR and PATH.
9718 # Avoid depending upon Character Ranges.
9719 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9720 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9721 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9722 as_cr_digits='0123456789'
9723 as_cr_alnum=$as_cr_Letters$as_cr_digits
9724
9725 # The user is always right.
9726 if test "${PATH_SEPARATOR+set}" != set; then
9727   echo "#! /bin/sh" >conf$$.sh
9728   echo  "exit 0"   >>conf$$.sh
9729   chmod +x conf$$.sh
9730   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9731     PATH_SEPARATOR=';'
9732   else
9733     PATH_SEPARATOR=:
9734   fi
9735   rm -f conf$$.sh
9736 fi
9737
9738
9739   as_lineno_1=$LINENO
9740   as_lineno_2=$LINENO
9741   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9742   test "x$as_lineno_1" != "x$as_lineno_2" &&
9743   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9744   # Find who we are.  Look in the path if we contain no path at all
9745   # relative or not.
9746   case $0 in
9747     *[\\/]* ) as_myself=$0 ;;
9748     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749 for as_dir in $PATH
9750 do
9751   IFS=$as_save_IFS
9752   test -z "$as_dir" && as_dir=.
9753   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9754 done
9755
9756        ;;
9757   esac
9758   # We did not find ourselves, most probably we were run as `sh COMMAND'
9759   # in which case we are not to be found in the path.
9760   if test "x$as_myself" = x; then
9761     as_myself=$0
9762   fi
9763   if test ! -f "$as_myself"; then
9764     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9765 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9766    { (exit 1); exit 1; }; }
9767   fi
9768   case $CONFIG_SHELL in
9769   '')
9770     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9771 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9772 do
9773   IFS=$as_save_IFS
9774   test -z "$as_dir" && as_dir=.
9775   for as_base in sh bash ksh sh5; do
9776          case $as_dir in
9777          /*)
9778            if ("$as_dir/$as_base" -c '
9779   as_lineno_1=$LINENO
9780   as_lineno_2=$LINENO
9781   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9782   test "x$as_lineno_1" != "x$as_lineno_2" &&
9783   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9784              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9785              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9786              CONFIG_SHELL=$as_dir/$as_base
9787              export CONFIG_SHELL
9788              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9789            fi;;
9790          esac
9791        done
9792 done
9793 ;;
9794   esac
9795
9796   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9797   # uniformly replaced by the line number.  The first 'sed' inserts a
9798   # line-number line before each line; the second 'sed' does the real
9799   # work.  The second script uses 'N' to pair each line-number line
9800   # with the numbered line, and appends trailing '-' during
9801   # substitution so that $LINENO is not a special case at line end.
9802   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9803   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9804   sed '=' <$as_myself |
9805     sed '
9806       N
9807       s,$,-,
9808       : loop
9809       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9810       t loop
9811       s,-$,,
9812       s,^['$as_cr_digits']*\n,,
9813     ' >$as_me.lineno &&
9814   chmod +x $as_me.lineno ||
9815     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9816 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9817    { (exit 1); exit 1; }; }
9818
9819   # Don't try to exec as it changes $[0], causing all sort of problems
9820   # (the dirname of $[0] is not the place where we might find the
9821   # original and so on.  Autoconf is especially sensible to this).
9822   . ./$as_me.lineno
9823   # Exit status is that of the last command.
9824   exit
9825 }
9826
9827
9828 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9829   *c*,-n*) ECHO_N= ECHO_C='
9830 ' ECHO_T='      ' ;;
9831   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9832   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9833 esac
9834
9835 if expr a : '\(a\)' >/dev/null 2>&1; then
9836   as_expr=expr
9837 else
9838   as_expr=false
9839 fi
9840
9841 rm -f conf$$ conf$$.exe conf$$.file
9842 echo >conf$$.file
9843 if ln -s conf$$.file conf$$ 2>/dev/null; then
9844   # We could just check for DJGPP; but this test a) works b) is more generic
9845   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9846   if test -f conf$$.exe; then
9847     # Don't use ln at all; we don't have any links
9848     as_ln_s='cp -p'
9849   else
9850     as_ln_s='ln -s'
9851   fi
9852 elif ln conf$$.file conf$$ 2>/dev/null; then
9853   as_ln_s=ln
9854 else
9855   as_ln_s='cp -p'
9856 fi
9857 rm -f conf$$ conf$$.exe conf$$.file
9858
9859 if mkdir -p . 2>/dev/null; then
9860   as_mkdir_p=:
9861 else
9862   test -d ./-p && rmdir ./-p
9863   as_mkdir_p=false
9864 fi
9865
9866 as_executable_p="test -f"
9867
9868 # Sed expression to map a string onto a valid CPP name.
9869 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9870
9871 # Sed expression to map a string onto a valid variable name.
9872 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9873
9874
9875 # IFS
9876 # We need space, tab and new line, in precisely that order.
9877 as_nl='
9878 '
9879 IFS="   $as_nl"
9880
9881 # CDPATH.
9882 $as_unset CDPATH
9883
9884 exec 6>&1
9885
9886 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9887 # report actual input values of CONFIG_FILES etc. instead of their
9888 # values after options handling.  Logging --version etc. is OK.
9889 exec 5>>config.log
9890 {
9891   echo
9892   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9893 ## Running $as_me. ##
9894 _ASBOX
9895 } >&5
9896 cat >&5 <<_CSEOF
9897
9898 This file was extended by $as_me, which was
9899 generated by GNU Autoconf 2.59.  Invocation command line was
9900
9901   CONFIG_FILES    = $CONFIG_FILES
9902   CONFIG_HEADERS  = $CONFIG_HEADERS
9903   CONFIG_LINKS    = $CONFIG_LINKS
9904   CONFIG_COMMANDS = $CONFIG_COMMANDS
9905   $ $0 $@
9906
9907 _CSEOF
9908 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9909 echo >&5
9910 _ACEOF
9911
9912 # Files that config.status was made for.
9913 if test -n "$ac_config_files"; then
9914   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9915 fi
9916
9917 if test -n "$ac_config_headers"; then
9918   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9919 fi
9920
9921 if test -n "$ac_config_links"; then
9922   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9923 fi
9924
9925 if test -n "$ac_config_commands"; then
9926   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9927 fi
9928
9929 cat >>$CONFIG_STATUS <<\_ACEOF
9930
9931 ac_cs_usage="\
9932 \`$as_me' instantiates files from templates according to the
9933 current configuration.
9934
9935 Usage: $0 [OPTIONS] [FILE]...
9936
9937   -h, --help       print this help, then exit
9938   -V, --version    print version number, then exit
9939   -q, --quiet      do not print progress messages
9940   -d, --debug      don't remove temporary files
9941       --recheck    update $as_me by reconfiguring in the same conditions
9942   --file=FILE[:TEMPLATE]
9943                    instantiate the configuration file FILE
9944
9945 Configuration files:
9946 $config_files
9947
9948 Report bugs to <bug-autoconf@gnu.org>."
9949 _ACEOF
9950
9951 cat >>$CONFIG_STATUS <<_ACEOF
9952 ac_cs_version="\\
9953 config.status
9954 configured by $0, generated by GNU Autoconf 2.59,
9955   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9956
9957 Copyright (C) 2003 Free Software Foundation, Inc.
9958 This config.status script is free software; the Free Software Foundation
9959 gives unlimited permission to copy, distribute and modify it."
9960 srcdir=$srcdir
9961 INSTALL="$INSTALL"
9962 _ACEOF
9963
9964 cat >>$CONFIG_STATUS <<\_ACEOF
9965 # If no file are specified by the user, then we need to provide default
9966 # value.  By we need to know if files were specified by the user.
9967 ac_need_defaults=:
9968 while test $# != 0
9969 do
9970   case $1 in
9971   --*=*)
9972     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9973     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9974     ac_shift=:
9975     ;;
9976   -*)
9977     ac_option=$1
9978     ac_optarg=$2
9979     ac_shift=shift
9980     ;;
9981   *) # This is not an option, so the user has probably given explicit
9982      # arguments.
9983      ac_option=$1
9984      ac_need_defaults=false;;
9985   esac
9986
9987   case $ac_option in
9988   # Handling of the options.
9989 _ACEOF
9990 cat >>$CONFIG_STATUS <<\_ACEOF
9991   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9992     ac_cs_recheck=: ;;
9993   --version | --vers* | -V )
9994     echo "$ac_cs_version"; exit 0 ;;
9995   --he | --h)
9996     # Conflict between --help and --header
9997     { { echo "$as_me:$LINENO: error: ambiguous option: $1
9998 Try \`$0 --help' for more information." >&5
9999 echo "$as_me: error: ambiguous option: $1
10000 Try \`$0 --help' for more information." >&2;}
10001    { (exit 1); exit 1; }; };;
10002   --help | --hel | -h )
10003     echo "$ac_cs_usage"; exit 0 ;;
10004   --debug | --d* | -d )
10005     debug=: ;;
10006   --file | --fil | --fi | --f )
10007     $ac_shift
10008     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10009     ac_need_defaults=false;;
10010   --header | --heade | --head | --hea )
10011     $ac_shift
10012     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10013     ac_need_defaults=false;;
10014   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10015   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10016     ac_cs_silent=: ;;
10017
10018   # This is an error.
10019   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10020 Try \`$0 --help' for more information." >&5
10021 echo "$as_me: error: unrecognized option: $1
10022 Try \`$0 --help' for more information." >&2;}
10023    { (exit 1); exit 1; }; } ;;
10024
10025   *) ac_config_targets="$ac_config_targets $1" ;;
10026
10027   esac
10028   shift
10029 done
10030
10031 ac_configure_extra_args=
10032
10033 if $ac_cs_silent; then
10034   exec 6>/dev/null
10035   ac_configure_extra_args="$ac_configure_extra_args --silent"
10036 fi
10037
10038 _ACEOF
10039 cat >>$CONFIG_STATUS <<_ACEOF
10040 if \$ac_cs_recheck; then
10041   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10042   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10043 fi
10044
10045 _ACEOF
10046
10047
10048
10049
10050
10051 cat >>$CONFIG_STATUS <<\_ACEOF
10052 for ac_config_target in $ac_config_targets
10053 do
10054   case "$ac_config_target" in
10055   # Handling of arguments.
10056   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10057   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10058 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10059    { (exit 1); exit 1; }; };;
10060   esac
10061 done
10062
10063 # If the user did not use the arguments to specify the items to instantiate,
10064 # then the envvar interface is used.  Set only those that are not.
10065 # We use the long form for the default assignment because of an extremely
10066 # bizarre bug on SunOS 4.1.3.
10067 if $ac_need_defaults; then
10068   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10069 fi
10070
10071 # Have a temporary directory for convenience.  Make it in the build tree
10072 # simply because there is no reason to put it here, and in addition,
10073 # creating and moving files from /tmp can sometimes cause problems.
10074 # Create a temporary directory, and hook for its removal unless debugging.
10075 $debug ||
10076 {
10077   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10078   trap '{ (exit 1); exit 1; }' 1 2 13 15
10079 }
10080
10081 # Create a (secure) tmp directory for tmp files.
10082
10083 {
10084   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10085   test -n "$tmp" && test -d "$tmp"
10086 }  ||
10087 {
10088   tmp=./confstat$$-$RANDOM
10089   (umask 077 && mkdir $tmp)
10090 } ||
10091 {
10092    echo "$me: cannot create a temporary directory in ." >&2
10093    { (exit 1); exit 1; }
10094 }
10095
10096 _ACEOF
10097
10098 cat >>$CONFIG_STATUS <<_ACEOF
10099
10100 #
10101 # CONFIG_FILES section.
10102 #
10103
10104 # No need to generate the scripts if there are no CONFIG_FILES.
10105 # This happens for instance when ./config.status config.h
10106 if test -n "\$CONFIG_FILES"; then
10107   # Protect against being on the right side of a sed subst in config.status.
10108   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10109    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10110 s,@SHELL@,$SHELL,;t t
10111 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10112 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10113 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10114 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10115 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10116 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10117 s,@exec_prefix@,$exec_prefix,;t t
10118 s,@prefix@,$prefix,;t t
10119 s,@program_transform_name@,$program_transform_name,;t t
10120 s,@bindir@,$bindir,;t t
10121 s,@sbindir@,$sbindir,;t t
10122 s,@libexecdir@,$libexecdir,;t t
10123 s,@datadir@,$datadir,;t t
10124 s,@sysconfdir@,$sysconfdir,;t t
10125 s,@sharedstatedir@,$sharedstatedir,;t t
10126 s,@localstatedir@,$localstatedir,;t t
10127 s,@libdir@,$libdir,;t t
10128 s,@includedir@,$includedir,;t t
10129 s,@oldincludedir@,$oldincludedir,;t t
10130 s,@infodir@,$infodir,;t t
10131 s,@mandir@,$mandir,;t t
10132 s,@build_alias@,$build_alias,;t t
10133 s,@host_alias@,$host_alias,;t t
10134 s,@target_alias@,$target_alias,;t t
10135 s,@DEFS@,$DEFS,;t t
10136 s,@ECHO_C@,$ECHO_C,;t t
10137 s,@ECHO_N@,$ECHO_N,;t t
10138 s,@ECHO_T@,$ECHO_T,;t t
10139 s,@LIBS@,$LIBS,;t t
10140 s,@build@,$build,;t t
10141 s,@build_cpu@,$build_cpu,;t t
10142 s,@build_vendor@,$build_vendor,;t t
10143 s,@build_os@,$build_os,;t t
10144 s,@host@,$host,;t t
10145 s,@host_cpu@,$host_cpu,;t t
10146 s,@host_vendor@,$host_vendor,;t t
10147 s,@host_os@,$host_os,;t t
10148 s,@target@,$target,;t t
10149 s,@target_cpu@,$target_cpu,;t t
10150 s,@target_vendor@,$target_vendor,;t t
10151 s,@target_os@,$target_os,;t t
10152 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10153 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10154 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10155 s,@LN@,$LN,;t t
10156 s,@LN_S@,$LN_S,;t t
10157 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
10158 s,@build_libsubdir@,$build_libsubdir,;t t
10159 s,@build_subdir@,$build_subdir,;t t
10160 s,@host_subdir@,$host_subdir,;t t
10161 s,@target_subdir@,$target_subdir,;t t
10162 s,@CC@,$CC,;t t
10163 s,@CFLAGS@,$CFLAGS,;t t
10164 s,@LDFLAGS@,$LDFLAGS,;t t
10165 s,@CPPFLAGS@,$CPPFLAGS,;t t
10166 s,@ac_ct_CC@,$ac_ct_CC,;t t
10167 s,@EXEEXT@,$EXEEXT,;t t
10168 s,@OBJEXT@,$OBJEXT,;t t
10169 s,@GNATBIND@,$GNATBIND,;t t
10170 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
10171 s,@do_compare@,$do_compare,;t t
10172 s,@gmplibs@,$gmplibs,;t t
10173 s,@gmpinc@,$gmpinc,;t t
10174 s,@stage1_languages@,$stage1_languages,;t t
10175 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
10176 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
10177 s,@tooldir@,$tooldir,;t t
10178 s,@build_tooldir@,$build_tooldir,;t t
10179 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
10180 s,@GDB_TK@,$GDB_TK,;t t
10181 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
10182 s,@build_configargs@,$build_configargs,;t t
10183 s,@build_configdirs@,$build_configdirs,;t t
10184 s,@host_configargs@,$host_configargs,;t t
10185 s,@configdirs@,$configdirs,;t t
10186 s,@target_configargs@,$target_configargs,;t t
10187 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
10188 s,@config_shell@,$config_shell,;t t
10189 s,@YACC@,$YACC,;t t
10190 s,@BISON@,$BISON,;t t
10191 s,@M4@,$M4,;t t
10192 s,@LEX@,$LEX,;t t
10193 s,@FLEX@,$FLEX,;t t
10194 s,@MAKEINFO@,$MAKEINFO,;t t
10195 s,@EXPECT@,$EXPECT,;t t
10196 s,@RUNTEST@,$RUNTEST,;t t
10197 s,@AR@,$AR,;t t
10198 s,@AS@,$AS,;t t
10199 s,@DLLTOOL@,$DLLTOOL,;t t
10200 s,@LD@,$LD,;t t
10201 s,@LIPO@,$LIPO,;t t
10202 s,@NM@,$NM,;t t
10203 s,@RANLIB@,$RANLIB,;t t
10204 s,@STRIP@,$STRIP,;t t
10205 s,@WINDRES@,$WINDRES,;t t
10206 s,@OBJCOPY@,$OBJCOPY,;t t
10207 s,@OBJDUMP@,$OBJDUMP,;t t
10208 s,@CXX@,$CXX,;t t
10209 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
10210 s,@CXXFLAGS@,$CXXFLAGS,;t t
10211 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
10212 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
10213 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
10214 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
10215 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
10216 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
10217 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
10218 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
10219 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
10220 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
10221 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
10222 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
10223 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
10224 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
10225 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
10226 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
10227 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
10228 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
10229 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
10230 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
10231 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10232 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10233 s,@MAINT@,$MAINT,;t t
10234 s,@stage1_cflags@,$stage1_cflags,;t t
10235 s,@stage1_checking@,$stage1_checking,;t t
10236 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
10237 s,@datarootdir@,$datarootdir,;t t
10238 s,@docdir@,$docdir,;t t
10239 s,@htmldir@,$htmldir,;t t
10240 s,@LIBOBJS@,$LIBOBJS,;t t
10241 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10242 /@serialization_dependencies@/r $serialization_dependencies
10243 s,@serialization_dependencies@,,;t t
10244 /@host_makefile_frag@/r $host_makefile_frag
10245 s,@host_makefile_frag@,,;t t
10246 /@target_makefile_frag@/r $target_makefile_frag
10247 s,@target_makefile_frag@,,;t t
10248 /@alphaieee_frag@/r $alphaieee_frag
10249 s,@alphaieee_frag@,,;t t
10250 /@ospace_frag@/r $ospace_frag
10251 s,@ospace_frag@,,;t t
10252 CEOF
10253
10254 _ACEOF
10255
10256   cat >>$CONFIG_STATUS <<\_ACEOF
10257   # Split the substitutions into bite-sized pieces for seds with
10258   # small command number limits, like on Digital OSF/1 and HP-UX.
10259   ac_max_sed_lines=48
10260   ac_sed_frag=1 # Number of current file.
10261   ac_beg=1 # First line for current file.
10262   ac_end=$ac_max_sed_lines # Line after last line for current file.
10263   ac_more_lines=:
10264   ac_sed_cmds=
10265   while $ac_more_lines; do
10266     if test $ac_beg -gt 1; then
10267       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10268     else
10269       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10270     fi
10271     if test ! -s $tmp/subs.frag; then
10272       ac_more_lines=false
10273     else
10274       # The purpose of the label and of the branching condition is to
10275       # speed up the sed processing (if there are no `@' at all, there
10276       # is no need to browse any of the substitutions).
10277       # These are the two extra sed commands mentioned above.
10278       (echo ':t
10279   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10280       if test -z "$ac_sed_cmds"; then
10281         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10282       else
10283         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10284       fi
10285       ac_sed_frag=`expr $ac_sed_frag + 1`
10286       ac_beg=$ac_end
10287       ac_end=`expr $ac_end + $ac_max_sed_lines`
10288     fi
10289   done
10290   if test -z "$ac_sed_cmds"; then
10291     ac_sed_cmds=cat
10292   fi
10293 fi # test -n "$CONFIG_FILES"
10294
10295 _ACEOF
10296 cat >>$CONFIG_STATUS <<\_ACEOF
10297 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10298   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10299   case $ac_file in
10300   - | *:- | *:-:* ) # input from stdin
10301         cat >$tmp/stdin
10302         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10303         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10304   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10305         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10306   * )   ac_file_in=$ac_file.in ;;
10307   esac
10308
10309   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10310   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10311 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10312          X"$ac_file" : 'X\(//\)[^/]' \| \
10313          X"$ac_file" : 'X\(//\)$' \| \
10314          X"$ac_file" : 'X\(/\)' \| \
10315          .     : '\(.\)' 2>/dev/null ||
10316 echo X"$ac_file" |
10317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10318           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10319           /^X\(\/\/\)$/{ s//\1/; q; }
10320           /^X\(\/\).*/{ s//\1/; q; }
10321           s/.*/./; q'`
10322   { if $as_mkdir_p; then
10323     mkdir -p "$ac_dir"
10324   else
10325     as_dir="$ac_dir"
10326     as_dirs=
10327     while test ! -d "$as_dir"; do
10328       as_dirs="$as_dir $as_dirs"
10329       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10331          X"$as_dir" : 'X\(//\)[^/]' \| \
10332          X"$as_dir" : 'X\(//\)$' \| \
10333          X"$as_dir" : 'X\(/\)' \| \
10334          .     : '\(.\)' 2>/dev/null ||
10335 echo X"$as_dir" |
10336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10337           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10338           /^X\(\/\/\)$/{ s//\1/; q; }
10339           /^X\(\/\).*/{ s//\1/; q; }
10340           s/.*/./; q'`
10341     done
10342     test ! -n "$as_dirs" || mkdir $as_dirs
10343   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10344 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10345    { (exit 1); exit 1; }; }; }
10346
10347   ac_builddir=.
10348
10349 if test "$ac_dir" != .; then
10350   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10351   # A "../" for each directory in $ac_dir_suffix.
10352   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10353 else
10354   ac_dir_suffix= ac_top_builddir=
10355 fi
10356
10357 case $srcdir in
10358   .)  # No --srcdir option.  We are building in place.
10359     ac_srcdir=.
10360     if test -z "$ac_top_builddir"; then
10361        ac_top_srcdir=.
10362     else
10363        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10364     fi ;;
10365   [\\/]* | ?:[\\/]* )  # Absolute path.
10366     ac_srcdir=$srcdir$ac_dir_suffix;
10367     ac_top_srcdir=$srcdir ;;
10368   *) # Relative path.
10369     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10370     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10371 esac
10372
10373 # Do not use `cd foo && pwd` to compute absolute paths, because
10374 # the directories may not exist.
10375 case `pwd` in
10376 .) ac_abs_builddir="$ac_dir";;
10377 *)
10378   case "$ac_dir" in
10379   .) ac_abs_builddir=`pwd`;;
10380   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10381   *) ac_abs_builddir=`pwd`/"$ac_dir";;
10382   esac;;
10383 esac
10384 case $ac_abs_builddir in
10385 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10386 *)
10387   case ${ac_top_builddir}. in
10388   .) ac_abs_top_builddir=$ac_abs_builddir;;
10389   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10390   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10391   esac;;
10392 esac
10393 case $ac_abs_builddir in
10394 .) ac_abs_srcdir=$ac_srcdir;;
10395 *)
10396   case $ac_srcdir in
10397   .) ac_abs_srcdir=$ac_abs_builddir;;
10398   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10399   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10400   esac;;
10401 esac
10402 case $ac_abs_builddir in
10403 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10404 *)
10405   case $ac_top_srcdir in
10406   .) ac_abs_top_srcdir=$ac_abs_builddir;;
10407   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10408   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10409   esac;;
10410 esac
10411
10412
10413   case $INSTALL in
10414   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10415   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10416   esac
10417
10418   if test x"$ac_file" != x-; then
10419     { echo "$as_me:$LINENO: creating $ac_file" >&5
10420 echo "$as_me: creating $ac_file" >&6;}
10421     rm -f "$ac_file"
10422   fi
10423   # Let's still pretend it is `configure' which instantiates (i.e., don't
10424   # use $as_me), people would be surprised to read:
10425   #    /* config.h.  Generated by config.status.  */
10426   if test x"$ac_file" = x-; then
10427     configure_input=
10428   else
10429     configure_input="$ac_file.  "
10430   fi
10431   configure_input=$configure_input"Generated from `echo $ac_file_in |
10432                                      sed 's,.*/,,'` by configure."
10433
10434   # First look for the input files in the build tree, otherwise in the
10435   # src tree.
10436   ac_file_inputs=`IFS=:
10437     for f in $ac_file_in; do
10438       case $f in
10439       -) echo $tmp/stdin ;;
10440       [\\/$]*)
10441          # Absolute (can't be DOS-style, as IFS=:)
10442          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10443 echo "$as_me: error: cannot find input file: $f" >&2;}
10444    { (exit 1); exit 1; }; }
10445          echo "$f";;
10446       *) # Relative
10447          if test -f "$f"; then
10448            # Build tree
10449            echo "$f"
10450          elif test -f "$srcdir/$f"; then
10451            # Source tree
10452            echo "$srcdir/$f"
10453          else
10454            # /dev/null tree
10455            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10456 echo "$as_me: error: cannot find input file: $f" >&2;}
10457    { (exit 1); exit 1; }; }
10458          fi;;
10459       esac
10460     done` || { (exit 1); exit 1; }
10461 _ACEOF
10462 cat >>$CONFIG_STATUS <<_ACEOF
10463   sed "$ac_vpsub
10464 $extrasub
10465 _ACEOF
10466 cat >>$CONFIG_STATUS <<\_ACEOF
10467 :t
10468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10469 s,@configure_input@,$configure_input,;t t
10470 s,@srcdir@,$ac_srcdir,;t t
10471 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10472 s,@top_srcdir@,$ac_top_srcdir,;t t
10473 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10474 s,@builddir@,$ac_builddir,;t t
10475 s,@abs_builddir@,$ac_abs_builddir,;t t
10476 s,@top_builddir@,$ac_top_builddir,;t t
10477 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10478 s,@INSTALL@,$ac_INSTALL,;t t
10479 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10480   rm -f $tmp/stdin
10481   if test x"$ac_file" != x-; then
10482     mv $tmp/out $ac_file
10483   else
10484     cat $tmp/out
10485     rm -f $tmp/out
10486   fi
10487
10488 done
10489 _ACEOF
10490
10491 cat >>$CONFIG_STATUS <<\_ACEOF
10492
10493 { (exit 0); exit 0; }
10494 _ACEOF
10495 chmod +x $CONFIG_STATUS
10496 ac_clean_files=$ac_clean_files_save
10497
10498
10499 # configure is writing to config.log, and then calls config.status.
10500 # config.status does its own redirection, appending to config.log.
10501 # Unfortunately, on DOS this fails, as config.log is still kept open
10502 # by configure, so config.status won't be able to write to it; its
10503 # output is simply discarded.  So we exec the FD to /dev/null,
10504 # effectively closing config.log, so it can be properly (re)opened and
10505 # appended to by config.status.  When coming back to configure, we
10506 # need to make the FD available again.
10507 if test "$no_create" != yes; then
10508   ac_cs_success=:
10509   ac_config_status_args=
10510   test "$silent" = yes &&
10511     ac_config_status_args="$ac_config_status_args --quiet"
10512   exec 5>/dev/null
10513   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10514   exec 5>>config.log
10515   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10516   # would make configure fail if this is the last instruction.
10517   $ac_cs_success || { (exit 1); exit 1; }
10518 fi
10519