configure.ac: Add aarch64-*-freebsd*.
[platform/upstream/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 OBJCOPY_FOR_TARGET
578 NM_FOR_TARGET
579 LIPO_FOR_TARGET
580 LD_FOR_TARGET
581 DLLTOOL_FOR_TARGET
582 AS_FOR_TARGET
583 AR_FOR_TARGET
584 GOC_FOR_TARGET
585 GFORTRAN_FOR_TARGET
586 GCJ_FOR_TARGET
587 GCC_FOR_TARGET
588 CXX_FOR_TARGET
589 CC_FOR_TARGET
590 READELF
591 OBJDUMP
592 OBJCOPY
593 WINDMC
594 WINDRES
595 STRIP
596 RANLIB
597 NM
598 LIPO
599 LD
600 DLLTOOL
601 AS
602 AR
603 RUNTEST
604 EXPECT
605 MAKEINFO
606 FLEX
607 LEX
608 M4
609 BISON
610 YACC
611 WINDRES_FOR_BUILD
612 WINDMC_FOR_BUILD
613 RANLIB_FOR_BUILD
614 NM_FOR_BUILD
615 LD_FOR_BUILD
616 LDFLAGS_FOR_BUILD
617 GOC_FOR_BUILD
618 GFORTRAN_FOR_BUILD
619 GCJ_FOR_BUILD
620 DLLTOOL_FOR_BUILD
621 CXX_FOR_BUILD
622 CXXFLAGS_FOR_BUILD
623 CFLAGS_FOR_BUILD
624 CC_FOR_BUILD
625 AS_FOR_BUILD
626 AR_FOR_BUILD
627 target_configdirs
628 configdirs
629 build_configdirs
630 INSTALL_GDB_TK
631 GDB_TK
632 CONFIGURE_GDB_TK
633 build_tooldir
634 tooldir
635 GCC_SHLIB_SUBDIR
636 RPATH_ENVVAR
637 target_configargs
638 host_configargs
639 build_configargs
640 BUILD_CONFIG
641 LDFLAGS_FOR_TARGET
642 CXXFLAGS_FOR_TARGET
643 CFLAGS_FOR_TARGET
644 DEBUG_PREFIX_CFLAGS_FOR_TARGET
645 SYSROOT_CFLAGS_FOR_TARGET
646 extra_host_zlib_configure_flags
647 extra_host_libiberty_configure_flags
648 stage1_languages
649 extra_linker_plugin_flags
650 extra_linker_plugin_configure_flags
651 islinc
652 isllibs
653 islver
654 poststage1_ldflags
655 poststage1_libs
656 stage1_ldflags
657 stage1_libs
658 extra_isl_gmp_configure_flags
659 extra_mpc_mpfr_configure_flags
660 extra_mpc_gmp_configure_flags
661 extra_mpfr_configure_flags
662 gmpinc
663 gmplibs
664 do_compare
665 GNATMAKE
666 GNATBIND
667 ac_ct_CXX
668 CXXFLAGS
669 CXX
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
676 CC
677 extra_liboffloadmic_configure_flags
678 target_subdir
679 host_subdir
680 build_subdir
681 build_libsubdir
682 AWK
683 SED
684 LN_S
685 LN
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
689 target_os
690 target_vendor
691 target_cpu
692 target
693 host_os
694 host_vendor
695 host_cpu
696 host
697 target_noncanonical
698 host_noncanonical
699 build_noncanonical
700 build_os
701 build_vendor
702 build_cpu
703 build
704 TOPLEVEL_CONFIGURE_ARGUMENTS
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 localstatedir
725 sharedstatedir
726 sysconfdir
727 datadir
728 datarootdir
729 libexecdir
730 sbindir
731 bindir
732 program_transform_name
733 prefix
734 exec_prefix
735 PACKAGE_URL
736 PACKAGE_BUGREPORT
737 PACKAGE_STRING
738 PACKAGE_VERSION
739 PACKAGE_TARNAME
740 PACKAGE_NAME
741 PATH_SEPARATOR
742 SHELL'
743 ac_subst_files='serialization_dependencies
744 host_makefile_frag
745 target_makefile_frag
746 alphaieee_frag
747 ospace_frag'
748 ac_user_opts='
749 enable_option_checking
750 with_build_libsubdir
751 with_system_zlib
752 enable_as_accelerator_for
753 enable_offload_targets
754 enable_gold
755 enable_ld
756 enable_compressed_debug_sections
757 enable_libquadmath
758 enable_libquadmath_support
759 enable_libada
760 enable_libssp
761 enable_libstdcxx
762 enable_liboffloadmic
763 enable_bootstrap
764 with_mpc
765 with_mpc_include
766 with_mpc_lib
767 with_mpfr_dir
768 with_mpfr
769 with_mpfr_include
770 with_mpfr_lib
771 with_gmp_dir
772 with_gmp
773 with_gmp_include
774 with_gmp_lib
775 with_stage1_libs
776 with_stage1_ldflags
777 with_boot_libs
778 with_boot_ldflags
779 with_isl
780 with_isl_include
781 with_isl_lib
782 enable_isl_version_check
783 enable_lto
784 enable_linker_plugin_configure_flags
785 enable_linker_plugin_flags
786 enable_stage1_languages
787 enable_objc_gc
788 with_build_sysroot
789 with_debug_prefix_map
790 with_build_config
791 enable_vtable_verify
792 enable_serial_configure
793 with_build_time_tools
794 enable_maintainer_mode
795 enable_stage1_checking
796 enable_werror
797 enable_host_shared
798 '
799       ac_precious_vars='build_alias
800 host_alias
801 target_alias
802 CC
803 CFLAGS
804 LDFLAGS
805 LIBS
806 CPPFLAGS
807 CXX
808 CXXFLAGS
809 CCC
810 build_configargs
811 host_configargs
812 target_configargs
813 AR
814 AS
815 DLLTOOL
816 LD
817 LIPO
818 NM
819 RANLIB
820 STRIP
821 WINDRES
822 WINDMC
823 OBJCOPY
824 OBJDUMP
825 READELF
826 CC_FOR_TARGET
827 CXX_FOR_TARGET
828 GCC_FOR_TARGET
829 GCJ_FOR_TARGET
830 GFORTRAN_FOR_TARGET
831 GOC_FOR_TARGET
832 AR_FOR_TARGET
833 AS_FOR_TARGET
834 DLLTOOL_FOR_TARGET
835 LD_FOR_TARGET
836 LIPO_FOR_TARGET
837 NM_FOR_TARGET
838 OBJCOPY_FOR_TARGET
839 OBJDUMP_FOR_TARGET
840 RANLIB_FOR_TARGET
841 READELF_FOR_TARGET
842 STRIP_FOR_TARGET
843 WINDRES_FOR_TARGET
844 WINDMC_FOR_TARGET'
845
846
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
868
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
894
895 ac_prev=
896 ac_dashdash=
897 for ac_option
898 do
899   # If the previous option needs an argument, assign it.
900   if test -n "$ac_prev"; then
901     eval $ac_prev=\$ac_option
902     ac_prev=
903     continue
904   fi
905
906   case $ac_option in
907   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908   *)    ac_optarg=yes ;;
909   esac
910
911   # Accept the important Cygnus configure options, so we can diagnose typos.
912
913   case $ac_dashdash$ac_option in
914   --)
915     ac_dashdash=yes ;;
916
917   -bindir | --bindir | --bindi | --bind | --bin | --bi)
918     ac_prev=bindir ;;
919   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920     bindir=$ac_optarg ;;
921
922   -build | --build | --buil | --bui | --bu)
923     ac_prev=build_alias ;;
924   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925     build_alias=$ac_optarg ;;
926
927   -cache-file | --cache-file | --cache-fil | --cache-fi \
928   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929     ac_prev=cache_file ;;
930   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932     cache_file=$ac_optarg ;;
933
934   --config-cache | -C)
935     cache_file=config.cache ;;
936
937   -datadir | --datadir | --datadi | --datad)
938     ac_prev=datadir ;;
939   -datadir=* | --datadir=* | --datadi=* | --datad=*)
940     datadir=$ac_optarg ;;
941
942   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943   | --dataroo | --dataro | --datar)
944     ac_prev=datarootdir ;;
945   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947     datarootdir=$ac_optarg ;;
948
949   -disable-* | --disable-*)
950     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951     # Reject names that are not valid shell variable names.
952     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953       as_fn_error "invalid feature name: $ac_useropt"
954     ac_useropt_orig=$ac_useropt
955     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956     case $ac_user_opts in
957       *"
958 "enable_$ac_useropt"
959 "*) ;;
960       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961          ac_unrecognized_sep=', ';;
962     esac
963     eval enable_$ac_useropt=no ;;
964
965   -docdir | --docdir | --docdi | --doc | --do)
966     ac_prev=docdir ;;
967   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968     docdir=$ac_optarg ;;
969
970   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971     ac_prev=dvidir ;;
972   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973     dvidir=$ac_optarg ;;
974
975   -enable-* | --enable-*)
976     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977     # Reject names that are not valid shell variable names.
978     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979       as_fn_error "invalid feature name: $ac_useropt"
980     ac_useropt_orig=$ac_useropt
981     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982     case $ac_user_opts in
983       *"
984 "enable_$ac_useropt"
985 "*) ;;
986       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987          ac_unrecognized_sep=', ';;
988     esac
989     eval enable_$ac_useropt=\$ac_optarg ;;
990
991   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993   | --exec | --exe | --ex)
994     ac_prev=exec_prefix ;;
995   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997   | --exec=* | --exe=* | --ex=*)
998     exec_prefix=$ac_optarg ;;
999
1000   -gas | --gas | --ga | --g)
1001     # Obsolete; use --with-gas.
1002     with_gas=yes ;;
1003
1004   -help | --help | --hel | --he | -h)
1005     ac_init_help=long ;;
1006   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007     ac_init_help=recursive ;;
1008   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009     ac_init_help=short ;;
1010
1011   -host | --host | --hos | --ho)
1012     ac_prev=host_alias ;;
1013   -host=* | --host=* | --hos=* | --ho=*)
1014     host_alias=$ac_optarg ;;
1015
1016   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017     ac_prev=htmldir ;;
1018   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019   | --ht=*)
1020     htmldir=$ac_optarg ;;
1021
1022   -includedir | --includedir | --includedi | --included | --include \
1023   | --includ | --inclu | --incl | --inc)
1024     ac_prev=includedir ;;
1025   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026   | --includ=* | --inclu=* | --incl=* | --inc=*)
1027     includedir=$ac_optarg ;;
1028
1029   -infodir | --infodir | --infodi | --infod | --info | --inf)
1030     ac_prev=infodir ;;
1031   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032     infodir=$ac_optarg ;;
1033
1034   -libdir | --libdir | --libdi | --libd)
1035     ac_prev=libdir ;;
1036   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037     libdir=$ac_optarg ;;
1038
1039   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040   | --libexe | --libex | --libe)
1041     ac_prev=libexecdir ;;
1042   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043   | --libexe=* | --libex=* | --libe=*)
1044     libexecdir=$ac_optarg ;;
1045
1046   -localedir | --localedir | --localedi | --localed | --locale)
1047     ac_prev=localedir ;;
1048   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049     localedir=$ac_optarg ;;
1050
1051   -localstatedir | --localstatedir | --localstatedi | --localstated \
1052   | --localstate | --localstat | --localsta | --localst | --locals)
1053     ac_prev=localstatedir ;;
1054   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056     localstatedir=$ac_optarg ;;
1057
1058   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059     ac_prev=mandir ;;
1060   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061     mandir=$ac_optarg ;;
1062
1063   -nfp | --nfp | --nf)
1064     # Obsolete; use --without-fp.
1065     with_fp=no ;;
1066
1067   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068   | --no-cr | --no-c | -n)
1069     no_create=yes ;;
1070
1071   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073     no_recursion=yes ;;
1074
1075   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077   | --oldin | --oldi | --old | --ol | --o)
1078     ac_prev=oldincludedir ;;
1079   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082     oldincludedir=$ac_optarg ;;
1083
1084   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085     ac_prev=prefix ;;
1086   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087     prefix=$ac_optarg ;;
1088
1089   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090   | --program-pre | --program-pr | --program-p)
1091     ac_prev=program_prefix ;;
1092   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094     program_prefix=$ac_optarg ;;
1095
1096   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097   | --program-suf | --program-su | --program-s)
1098     ac_prev=program_suffix ;;
1099   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101     program_suffix=$ac_optarg ;;
1102
1103   -program-transform-name | --program-transform-name \
1104   | --program-transform-nam | --program-transform-na \
1105   | --program-transform-n | --program-transform- \
1106   | --program-transform | --program-transfor \
1107   | --program-transfo | --program-transf \
1108   | --program-trans | --program-tran \
1109   | --progr-tra | --program-tr | --program-t)
1110     ac_prev=program_transform_name ;;
1111   -program-transform-name=* | --program-transform-name=* \
1112   | --program-transform-nam=* | --program-transform-na=* \
1113   | --program-transform-n=* | --program-transform-=* \
1114   | --program-transform=* | --program-transfor=* \
1115   | --program-transfo=* | --program-transf=* \
1116   | --program-trans=* | --program-tran=* \
1117   | --progr-tra=* | --program-tr=* | --program-t=*)
1118     program_transform_name=$ac_optarg ;;
1119
1120   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121     ac_prev=pdfdir ;;
1122   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123     pdfdir=$ac_optarg ;;
1124
1125   -psdir | --psdir | --psdi | --psd | --ps)
1126     ac_prev=psdir ;;
1127   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128     psdir=$ac_optarg ;;
1129
1130   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131   | -silent | --silent | --silen | --sile | --sil)
1132     silent=yes ;;
1133
1134   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135     ac_prev=sbindir ;;
1136   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137   | --sbi=* | --sb=*)
1138     sbindir=$ac_optarg ;;
1139
1140   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142   | --sharedst | --shareds | --shared | --share | --shar \
1143   | --sha | --sh)
1144     ac_prev=sharedstatedir ;;
1145   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148   | --sha=* | --sh=*)
1149     sharedstatedir=$ac_optarg ;;
1150
1151   -site | --site | --sit)
1152     ac_prev=site ;;
1153   -site=* | --site=* | --sit=*)
1154     site=$ac_optarg ;;
1155
1156   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157     ac_prev=srcdir ;;
1158   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159     srcdir=$ac_optarg ;;
1160
1161   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162   | --syscon | --sysco | --sysc | --sys | --sy)
1163     ac_prev=sysconfdir ;;
1164   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166     sysconfdir=$ac_optarg ;;
1167
1168   -target | --target | --targe | --targ | --tar | --ta | --t)
1169     ac_prev=target_alias ;;
1170   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171     target_alias=$ac_optarg ;;
1172
1173   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174     verbose=yes ;;
1175
1176   -version | --version | --versio | --versi | --vers | -V)
1177     ac_init_version=: ;;
1178
1179   -with-* | --with-*)
1180     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183       as_fn_error "invalid package name: $ac_useropt"
1184     ac_useropt_orig=$ac_useropt
1185     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186     case $ac_user_opts in
1187       *"
1188 "with_$ac_useropt"
1189 "*) ;;
1190       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191          ac_unrecognized_sep=', ';;
1192     esac
1193     eval with_$ac_useropt=\$ac_optarg ;;
1194
1195   -without-* | --without-*)
1196     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197     # Reject names that are not valid shell variable names.
1198     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199       as_fn_error "invalid package name: $ac_useropt"
1200     ac_useropt_orig=$ac_useropt
1201     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202     case $ac_user_opts in
1203       *"
1204 "with_$ac_useropt"
1205 "*) ;;
1206       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207          ac_unrecognized_sep=', ';;
1208     esac
1209     eval with_$ac_useropt=no ;;
1210
1211   --x)
1212     # Obsolete; use --with-x.
1213     with_x=yes ;;
1214
1215   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216   | --x-incl | --x-inc | --x-in | --x-i)
1217     ac_prev=x_includes ;;
1218   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220     x_includes=$ac_optarg ;;
1221
1222   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224     ac_prev=x_libraries ;;
1225   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227     x_libraries=$ac_optarg ;;
1228
1229   -*) as_fn_error "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information."
1231     ;;
1232
1233   *=*)
1234     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235     # Reject names that are not valid shell variable names.
1236     case $ac_envvar in #(
1237       '' | [0-9]* | *[!_$as_cr_alnum]* )
1238       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1239     esac
1240     eval $ac_envvar=\$ac_optarg
1241     export $ac_envvar ;;
1242
1243   *)
1244     # FIXME: should be removed in autoconf 3.0.
1245     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249     ;;
1250
1251   esac
1252 done
1253
1254 if test -n "$ac_prev"; then
1255   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256   as_fn_error "missing argument to $ac_option"
1257 fi
1258
1259 if test -n "$ac_unrecognized_opts"; then
1260   case $enable_option_checking in
1261     no) ;;
1262     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1263     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264   esac
1265 fi
1266
1267 # Check all directory arguments for consistency.
1268 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269                 datadir sysconfdir sharedstatedir localstatedir includedir \
1270                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271                 libdir localedir mandir
1272 do
1273   eval ac_val=\$$ac_var
1274   # Remove trailing slashes.
1275   case $ac_val in
1276     */ )
1277       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278       eval $ac_var=\$ac_val;;
1279   esac
1280   # Be sure to have absolute directory names.
1281   case $ac_val in
1282     [\\/$]* | ?:[\\/]* )  continue;;
1283     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284   esac
1285   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1286 done
1287
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1294
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297   if test "x$build_alias" = x; then
1298     cross_compiling=maybe
1299     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1300     If a cross compiler is detected then cross compile mode will be used." >&2
1301   elif test "x$build_alias" != "x$host_alias"; then
1302     cross_compiling=yes
1303   fi
1304 fi
1305
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309 test "$silent" = yes && exec 6>/dev/null
1310
1311
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315   as_fn_error "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317   as_fn_error "pwd does not report name of working directory"
1318
1319
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322   ac_srcdir_defaulted=yes
1323   # Try the directory containing this script, then the parent directory.
1324   ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326          X"$as_myself" : 'X\(//\)[^/]' \| \
1327          X"$as_myself" : 'X\(//\)$' \| \
1328          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\/\)[^/].*/{
1335             s//\1/
1336             q
1337           }
1338           /^X\(\/\/\)$/{
1339             s//\1/
1340             q
1341           }
1342           /^X\(\/\).*/{
1343             s//\1/
1344             q
1345           }
1346           s/.*/./; q'`
1347   srcdir=$ac_confdir
1348   if test ! -r "$srcdir/$ac_unique_file"; then
1349     srcdir=..
1350   fi
1351 else
1352   ac_srcdir_defaulted=no
1353 fi
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1357 fi
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1361         pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364   srcdir=.
1365 fi
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 case $srcdir in
1373   *" "*)
1374     as_fn_error "path to source, $srcdir, contains spaces"
1375     ;;
1376 esac
1377 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1378
1379 for ac_var in $ac_precious_vars; do
1380   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381   eval ac_env_${ac_var}_value=\$${ac_var}
1382   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390   # Omit some internal or obsolete options to make the list less imposing.
1391   # This message is too long to be a string in the A/UX 3.1 sh.
1392   cat <<_ACEOF
1393 \`configure' configures this package to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE.  See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403   -h, --help              display this help and exit
1404       --help=short        display options specific to this package
1405       --help=recursive    display the short help of all the included packages
1406   -V, --version           display version information and exit
1407   -q, --quiet, --silent   do not print \`checking...' messages
1408       --cache-file=FILE   cache test results in FILE [disabled]
1409   -C, --config-cache      alias for \`--cache-file=config.cache'
1410   -n, --no-create         do not create output files
1411       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1412
1413 Installation directories:
1414   --prefix=PREFIX         install architecture-independent files in PREFIX
1415                           [$ac_default_prefix]
1416   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1417                           [PREFIX]
1418
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427   --bindir=DIR            user executables [EPREFIX/bin]
1428   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1429   --libexecdir=DIR        program executables [EPREFIX/libexec]
1430   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1431   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1432   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1433   --libdir=DIR            object code libraries [EPREFIX/lib]
1434   --includedir=DIR        C header files [PREFIX/include]
1435   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1436   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1437   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1438   --infodir=DIR           info documentation [DATAROOTDIR/info]
1439   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1440   --mandir=DIR            man documentation [DATAROOTDIR/man]
1441   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1442   --htmldir=DIR           html documentation [DOCDIR]
1443   --dvidir=DIR            dvi documentation [DOCDIR]
1444   --pdfdir=DIR            pdf documentation [DOCDIR]
1445   --psdir=DIR             ps documentation [DOCDIR]
1446 _ACEOF
1447
1448   cat <<\_ACEOF
1449
1450 Program names:
1451   --program-prefix=PREFIX            prepend PREFIX to installed program names
1452   --program-suffix=SUFFIX            append SUFFIX to installed program names
1453   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1454
1455 System types:
1456   --build=BUILD     configure for building on BUILD [guessed]
1457   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1458   --target=TARGET   configure for building compilers for TARGET [HOST]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463
1464   cat <<\_ACEOF
1465
1466 Optional Features:
1467   --disable-option-checking  ignore unrecognized --enable/--with options
1468   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1469   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1470   --enable-as-accelerator-for=ARG
1471                           build as offload target compiler. Specify offload
1472                           host triple by ARG
1473   --enable-offload-targets=LIST
1474                           enable offloading to devices from comma-separated
1475                           LIST of TARGET[=DIR]. Use optional path to find
1476                           offload target compiler during the build
1477   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1478   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1479   --enable-compressed-debug-sections={all,gas,gold,ld,none}
1480                           Enable compressed debug sections for gas, gold or ld
1481                           by default
1482   --disable-libquadmath   do not build libquadmath directory
1483   --disable-libquadmath-support
1484                           disable libquadmath support for Fortran
1485   --enable-libada         build libada directory
1486   --enable-libssp         build libssp directory
1487   --disable-libstdcxx     do not build libstdc++-v3 directory
1488   --enable-liboffloadmic=ARG
1489                           build liboffloadmic [ARG={no,host,target}]
1490   --enable-bootstrap      enable bootstrapping [yes if native build]
1491   --disable-isl-version-check
1492                           disable check for isl version
1493   --enable-lto            enable link time optimization support
1494   --enable-linker-plugin-configure-flags=FLAGS
1495                           additional flags for configuring linker plugins
1496                           [none]
1497   --enable-linker-plugin-flags=FLAGS
1498                           additional flags for configuring and building linker
1499                           plugins [none]
1500   --enable-stage1-languages[=all]
1501                           choose additional languages to build during stage1.
1502                           Mostly useful for compiler development
1503   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1504                           Objective-C runtime
1505   --enable-vtable-verify  Enable vtable verification feature
1506   --enable-serial-[{host,target,build}-]configure
1507                           force sequential configuration of sub-packages for
1508                           the host, target or build machine, or all
1509                           sub-packages
1510   --enable-maintainer-mode
1511                           enable make rules and dependencies not useful (and
1512                           sometimes confusing) to the casual installer
1513   --enable-stage1-checking[=all]
1514                           choose additional checking for stage1 of the
1515                           compiler
1516   --enable-werror         enable -Werror in bootstrap stage2 and later
1517   --enable-host-shared    build host code as shared libraries
1518
1519 Optional Packages:
1520   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1521   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1522   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1523   --with-system-zlib      use installed libz
1524   --with-mpc=PATH         specify prefix directory for installed MPC package.
1525                           Equivalent to --with-mpc-include=PATH/include plus
1526                           --with-mpc-lib=PATH/lib
1527   --with-mpc-include=PATH specify directory for installed MPC include files
1528   --with-mpc-lib=PATH     specify directory for the installed MPC library
1529   --with-mpfr-dir=PATH    this option has been REMOVED
1530   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1531                           Equivalent to --with-mpfr-include=PATH/include plus
1532                           --with-mpfr-lib=PATH/lib
1533   --with-mpfr-include=PATH
1534                           specify directory for installed MPFR include files
1535   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1536   --with-gmp-dir=PATH     this option has been REMOVED
1537   --with-gmp=PATH         specify prefix directory for the installed GMP
1538                           package. Equivalent to
1539                           --with-gmp-include=PATH/include plus
1540                           --with-gmp-lib=PATH/lib
1541   --with-gmp-include=PATH specify directory for installed GMP include files
1542   --with-gmp-lib=PATH     specify directory for the installed GMP library
1543   --with-stage1-libs=LIBS libraries for stage1
1544   --with-stage1-ldflags=FLAGS
1545                           linker flags for stage1
1546   --with-boot-libs=LIBS   libraries for stage2 and later
1547   --with-boot-ldflags=FLAGS
1548                           linker flags for stage2 and later
1549   --with-isl=PATH         Specify prefix directory for the installed isl
1550                           package. Equivalent to
1551                           --with-isl-include=PATH/include plus
1552                           --with-isl-lib=PATH/lib
1553   --with-isl-include=PATH Specify directory for installed isl include files
1554   --with-isl-lib=PATH     Specify the directory for the installed isl library
1555   --with-build-sysroot=SYSROOT
1556                           use sysroot as the system root during the build
1557   --with-debug-prefix-map='A=B C=D ...'
1558                           map A to B, C to D ... in debug information
1559   --with-build-config='NAME NAME2...'
1560                           use config/NAME.mk build configuration
1561   --with-build-time-tools=PATH
1562                           use given path to find target tools during the build
1563
1564 Some influential environment variables:
1565   CC          C compiler command
1566   CFLAGS      C compiler flags
1567   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1568               nonstandard directory <lib dir>
1569   LIBS        libraries to pass to the linker, e.g. -l<library>
1570   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571               you have headers in a nonstandard directory <include dir>
1572   CXX         C++ compiler command
1573   CXXFLAGS    C++ compiler flags
1574   build_configargs
1575               additional configure arguments for build directories
1576   host_configargs
1577               additional configure arguments for host directories
1578   target_configargs
1579               additional configure arguments for target directories
1580   AR          AR for the host
1581   AS          AS for the host
1582   DLLTOOL     DLLTOOL for the host
1583   LD          LD for the host
1584   LIPO        LIPO for the host
1585   NM          NM for the host
1586   RANLIB      RANLIB for the host
1587   STRIP       STRIP for the host
1588   WINDRES     WINDRES for the host
1589   WINDMC      WINDMC for the host
1590   OBJCOPY     OBJCOPY for the host
1591   OBJDUMP     OBJDUMP for the host
1592   READELF     READELF for the host
1593   CC_FOR_TARGET
1594               CC for the target
1595   CXX_FOR_TARGET
1596               CXX for the target
1597   GCC_FOR_TARGET
1598               GCC for the target
1599   GCJ_FOR_TARGET
1600               GCJ for the target
1601   GFORTRAN_FOR_TARGET
1602               GFORTRAN for the target
1603   GOC_FOR_TARGET
1604               GOC for the target
1605   AR_FOR_TARGET
1606               AR for the target
1607   AS_FOR_TARGET
1608               AS for the target
1609   DLLTOOL_FOR_TARGET
1610               DLLTOOL for the target
1611   LD_FOR_TARGET
1612               LD for the target
1613   LIPO_FOR_TARGET
1614               LIPO for the target
1615   NM_FOR_TARGET
1616               NM for the target
1617   OBJCOPY_FOR_TARGET
1618               OBJCOPY for the target
1619   OBJDUMP_FOR_TARGET
1620               OBJDUMP for the target
1621   RANLIB_FOR_TARGET
1622               RANLIB for the target
1623   READELF_FOR_TARGET
1624               READELF for the target
1625   STRIP_FOR_TARGET
1626               STRIP for the target
1627   WINDRES_FOR_TARGET
1628               WINDRES for the target
1629   WINDMC_FOR_TARGET
1630               WINDMC for the target
1631
1632 Use these variables to override the choices made by `configure' or to help
1633 it to find libraries and programs with nonstandard names/locations.
1634
1635 Report bugs to the package provider.
1636 _ACEOF
1637 ac_status=$?
1638 fi
1639
1640 if test "$ac_init_help" = "recursive"; then
1641   # If there are subdirs, report their specific --help.
1642   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643     test -d "$ac_dir" ||
1644       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645       continue
1646     ac_builddir=.
1647
1648 case "$ac_dir" in
1649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *)
1651   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652   # A ".." for each directory in $ac_dir_suffix.
1653   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654   case $ac_top_builddir_sub in
1655   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657   esac ;;
1658 esac
1659 ac_abs_top_builddir=$ac_pwd
1660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661 # for backward compatibility:
1662 ac_top_builddir=$ac_top_build_prefix
1663
1664 case $srcdir in
1665   .)  # We are building in place.
1666     ac_srcdir=.
1667     ac_top_srcdir=$ac_top_builddir_sub
1668     ac_abs_top_srcdir=$ac_pwd ;;
1669   [\\/]* | ?:[\\/]* )  # Absolute name.
1670     ac_srcdir=$srcdir$ac_dir_suffix;
1671     ac_top_srcdir=$srcdir
1672     ac_abs_top_srcdir=$srcdir ;;
1673   *) # Relative name.
1674     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675     ac_top_srcdir=$ac_top_build_prefix$srcdir
1676     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677 esac
1678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679
1680     cd "$ac_dir" || { ac_status=$?; continue; }
1681     # Check for guested configure.
1682     if test -f "$ac_srcdir/configure.gnu"; then
1683       echo &&
1684       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685     elif test -f "$ac_srcdir/configure"; then
1686       echo &&
1687       $SHELL "$ac_srcdir/configure" --help=recursive
1688     else
1689       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690     fi || ac_status=$?
1691     cd "$ac_pwd" || { ac_status=$?; break; }
1692   done
1693 fi
1694
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1697   cat <<\_ACEOF
1698 configure
1699 generated by GNU Autoconf 2.64
1700
1701 Copyright (C) 2009 Free Software Foundation, Inc.
1702 This configure script is free software; the Free Software Foundation
1703 gives unlimited permission to copy, distribute and modify it.
1704 _ACEOF
1705   exit
1706 fi
1707
1708 ## ------------------------ ##
1709 ## Autoconf initialization. ##
1710 ## ------------------------ ##
1711
1712 # ac_fn_c_try_compile LINENO
1713 # --------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_compile ()
1716 {
1717   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718   rm -f conftest.$ac_objext
1719   if { { ac_try="$ac_compile"
1720 case "(($ac_try" in
1721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722   *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726   (eval "$ac_compile") 2>conftest.err
1727   ac_status=$?
1728   if test -s conftest.err; then
1729     grep -v '^ *+' conftest.err >conftest.er1
1730     cat conftest.er1 >&5
1731     mv -f conftest.er1 conftest.err
1732   fi
1733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734   test $ac_status = 0; } && {
1735          test -z "$ac_c_werror_flag" ||
1736          test ! -s conftest.err
1737        } && test -s conftest.$ac_objext; then :
1738   ac_retval=0
1739 else
1740   $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743         ac_retval=1
1744 fi
1745   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746   return $ac_retval
1747
1748 } # ac_fn_c_try_compile
1749
1750 # ac_fn_cxx_try_compile LINENO
1751 # ----------------------------
1752 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_cxx_try_compile ()
1754 {
1755   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756   rm -f conftest.$ac_objext
1757   if { { ac_try="$ac_compile"
1758 case "(($ac_try" in
1759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760   *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764   (eval "$ac_compile") 2>conftest.err
1765   ac_status=$?
1766   if test -s conftest.err; then
1767     grep -v '^ *+' conftest.err >conftest.er1
1768     cat conftest.er1 >&5
1769     mv -f conftest.er1 conftest.err
1770   fi
1771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772   test $ac_status = 0; } && {
1773          test -z "$ac_cxx_werror_flag" ||
1774          test ! -s conftest.err
1775        } && test -s conftest.$ac_objext; then :
1776   ac_retval=0
1777 else
1778   $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781         ac_retval=1
1782 fi
1783   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784   return $ac_retval
1785
1786 } # ac_fn_cxx_try_compile
1787
1788 # ac_fn_cxx_try_link LINENO
1789 # -------------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_cxx_try_link ()
1792 {
1793   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794   rm -f conftest.$ac_objext conftest$ac_exeext
1795   if { { ac_try="$ac_link"
1796 case "(($ac_try" in
1797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798   *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802   (eval "$ac_link") 2>conftest.err
1803   ac_status=$?
1804   if test -s conftest.err; then
1805     grep -v '^ *+' conftest.err >conftest.er1
1806     cat conftest.er1 >&5
1807     mv -f conftest.er1 conftest.err
1808   fi
1809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810   test $ac_status = 0; } && {
1811          test -z "$ac_cxx_werror_flag" ||
1812          test ! -s conftest.err
1813        } && test -s conftest$ac_exeext && {
1814          test "$cross_compiling" = yes ||
1815          $as_test_x conftest$ac_exeext
1816        }; then :
1817   ac_retval=0
1818 else
1819   $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822         ac_retval=1
1823 fi
1824   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1825   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1826   # interfere with the next link command; also delete a directory that is
1827   # left behind by Apple's compiler.  We do this before executing the actions.
1828   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830   return $ac_retval
1831
1832 } # ac_fn_cxx_try_link
1833
1834 # ac_fn_c_try_link LINENO
1835 # -----------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_link ()
1838 {
1839   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840   rm -f conftest.$ac_objext conftest$ac_exeext
1841   if { { ac_try="$ac_link"
1842 case "(($ac_try" in
1843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844   *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848   (eval "$ac_link") 2>conftest.err
1849   ac_status=$?
1850   if test -s conftest.err; then
1851     grep -v '^ *+' conftest.err >conftest.er1
1852     cat conftest.er1 >&5
1853     mv -f conftest.er1 conftest.err
1854   fi
1855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856   test $ac_status = 0; } && {
1857          test -z "$ac_c_werror_flag" ||
1858          test ! -s conftest.err
1859        } && test -s conftest$ac_exeext && {
1860          test "$cross_compiling" = yes ||
1861          $as_test_x conftest$ac_exeext
1862        }; then :
1863   ac_retval=0
1864 else
1865   $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868         ac_retval=1
1869 fi
1870   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872   # interfere with the next link command; also delete a directory that is
1873   # left behind by Apple's compiler.  We do this before executing the actions.
1874   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876   return $ac_retval
1877
1878 } # ac_fn_c_try_link
1879 cat >config.log <<_ACEOF
1880 This file contains any messages produced by compilers while
1881 running configure, to aid debugging if configure makes a mistake.
1882
1883 It was created by $as_me, which was
1884 generated by GNU Autoconf 2.64.  Invocation command line was
1885
1886   $ $0 $@
1887
1888 _ACEOF
1889 exec 5>>config.log
1890 {
1891 cat <<_ASUNAME
1892 ## --------- ##
1893 ## Platform. ##
1894 ## --------- ##
1895
1896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1901
1902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1904
1905 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1906 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1908 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1909 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1910 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1911 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1912
1913 _ASUNAME
1914
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918   IFS=$as_save_IFS
1919   test -z "$as_dir" && as_dir=.
1920     $as_echo "PATH: $as_dir"
1921   done
1922 IFS=$as_save_IFS
1923
1924 } >&5
1925
1926 cat >&5 <<_ACEOF
1927
1928
1929 ## ----------- ##
1930 ## Core tests. ##
1931 ## ----------- ##
1932
1933 _ACEOF
1934
1935
1936 # Keep a trace of the command line.
1937 # Strip out --no-create and --no-recursion so they do not pile up.
1938 # Strip out --silent because we don't want to record it for future runs.
1939 # Also quote any args containing shell meta-characters.
1940 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_configure_args=
1942 ac_configure_args0=
1943 ac_configure_args1=
1944 ac_must_keep_next=false
1945 for ac_pass in 1 2
1946 do
1947   for ac_arg
1948   do
1949     case $ac_arg in
1950     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952     | -silent | --silent | --silen | --sile | --sil)
1953       continue ;;
1954     *\'*)
1955       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956     esac
1957     case $ac_pass in
1958     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959     2)
1960       as_fn_append ac_configure_args1 " '$ac_arg'"
1961       if test $ac_must_keep_next = true; then
1962         ac_must_keep_next=false # Got value, back to normal.
1963       else
1964         case $ac_arg in
1965           *=* | --config-cache | -C | -disable-* | --disable-* \
1966           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968           | -with-* | --with-* | -without-* | --without-* | --x)
1969             case "$ac_configure_args0 " in
1970               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971             esac
1972             ;;
1973           -* ) ac_must_keep_next=true ;;
1974         esac
1975       fi
1976       as_fn_append ac_configure_args " '$ac_arg'"
1977       ;;
1978     esac
1979   done
1980 done
1981 { ac_configure_args0=; unset ac_configure_args0;}
1982 { ac_configure_args1=; unset ac_configure_args1;}
1983
1984 # When interrupted or exit'd, cleanup temporary files, and complete
1985 # config.log.  We remove comments because anyway the quotes in there
1986 # would cause problems or look ugly.
1987 # WARNING: Use '\'' to represent an apostrophe within the trap.
1988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989 trap 'exit_status=$?
1990   # Save into config.log some information that might help in debugging.
1991   {
1992     echo
1993
1994     cat <<\_ASBOX
1995 ## ---------------- ##
1996 ## Cache variables. ##
1997 ## ---------------- ##
1998 _ASBOX
1999     echo
2000     # The following way of writing the cache mishandles newlines in values,
2001 (
2002   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003     eval ac_val=\$$ac_var
2004     case $ac_val in #(
2005     *${as_nl}*)
2006       case $ac_var in #(
2007       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009       esac
2010       case $ac_var in #(
2011       _ | IFS | as_nl) ;; #(
2012       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013       *) { eval $ac_var=; unset $ac_var;} ;;
2014       esac ;;
2015     esac
2016   done
2017   (set) 2>&1 |
2018     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019     *${as_nl}ac_space=\ *)
2020       sed -n \
2021         "s/'\''/'\''\\\\'\'''\''/g;
2022           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023       ;; #(
2024     *)
2025       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2026       ;;
2027     esac |
2028     sort
2029 )
2030     echo
2031
2032     cat <<\_ASBOX
2033 ## ----------------- ##
2034 ## Output variables. ##
2035 ## ----------------- ##
2036 _ASBOX
2037     echo
2038     for ac_var in $ac_subst_vars
2039     do
2040       eval ac_val=\$$ac_var
2041       case $ac_val in
2042       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043       esac
2044       $as_echo "$ac_var='\''$ac_val'\''"
2045     done | sort
2046     echo
2047
2048     if test -n "$ac_subst_files"; then
2049       cat <<\_ASBOX
2050 ## ------------------- ##
2051 ## File substitutions. ##
2052 ## ------------------- ##
2053 _ASBOX
2054       echo
2055       for ac_var in $ac_subst_files
2056       do
2057         eval ac_val=\$$ac_var
2058         case $ac_val in
2059         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2060         esac
2061         $as_echo "$ac_var='\''$ac_val'\''"
2062       done | sort
2063       echo
2064     fi
2065
2066     if test -s confdefs.h; then
2067       cat <<\_ASBOX
2068 ## ----------- ##
2069 ## confdefs.h. ##
2070 ## ----------- ##
2071 _ASBOX
2072       echo
2073       cat confdefs.h
2074       echo
2075     fi
2076     test "$ac_signal" != 0 &&
2077       $as_echo "$as_me: caught signal $ac_signal"
2078     $as_echo "$as_me: exit $exit_status"
2079   } >&5
2080   rm -f core *.core core.conftest.* &&
2081     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2082     exit $exit_status
2083 ' 0
2084 for ac_signal in 1 2 13 15; do
2085   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2086 done
2087 ac_signal=0
2088
2089 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2090 rm -f -r conftest* confdefs.h
2091
2092 $as_echo "/* confdefs.h */" > confdefs.h
2093
2094 # Predefined preprocessor variables.
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_NAME "$PACKAGE_NAME"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_STRING "$PACKAGE_STRING"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_URL "$PACKAGE_URL"
2118 _ACEOF
2119
2120
2121 # Let the site file select an alternate cache file if it wants to.
2122 # Prefer an explicitly selected file to automatically selected ones.
2123 ac_site_file1=NONE
2124 ac_site_file2=NONE
2125 if test -n "$CONFIG_SITE"; then
2126   ac_site_file1=$CONFIG_SITE
2127 elif test "x$prefix" != xNONE; then
2128   ac_site_file1=$prefix/share/config.site
2129   ac_site_file2=$prefix/etc/config.site
2130 else
2131   ac_site_file1=$ac_default_prefix/share/config.site
2132   ac_site_file2=$ac_default_prefix/etc/config.site
2133 fi
2134 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2135 do
2136   test "x$ac_site_file" = xNONE && continue
2137   if test -r "$ac_site_file"; then
2138     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2139 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2140     sed 's/^/| /' "$ac_site_file" >&5
2141     . "$ac_site_file"
2142   fi
2143 done
2144
2145 if test -r "$cache_file"; then
2146   # Some versions of bash will fail to source /dev/null (special
2147   # files actually), so we avoid doing that.
2148   if test -f "$cache_file"; then
2149     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2150 $as_echo "$as_me: loading cache $cache_file" >&6;}
2151     case $cache_file in
2152       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2153       *)                      . "./$cache_file";;
2154     esac
2155   fi
2156 else
2157   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2158 $as_echo "$as_me: creating cache $cache_file" >&6;}
2159   >$cache_file
2160 fi
2161
2162 # Check that the precious variables saved in the cache have kept the same
2163 # value.
2164 ac_cache_corrupted=false
2165 for ac_var in $ac_precious_vars; do
2166   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2167   eval ac_new_set=\$ac_env_${ac_var}_set
2168   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2169   eval ac_new_val=\$ac_env_${ac_var}_value
2170   case $ac_old_set,$ac_new_set in
2171     set,)
2172       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2173 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2174       ac_cache_corrupted=: ;;
2175     ,set)
2176       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2178       ac_cache_corrupted=: ;;
2179     ,);;
2180     *)
2181       if test "x$ac_old_val" != "x$ac_new_val"; then
2182         # differences in whitespace do not lead to failure.
2183         ac_old_val_w=`echo x $ac_old_val`
2184         ac_new_val_w=`echo x $ac_new_val`
2185         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2186           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2187 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2188           ac_cache_corrupted=:
2189         else
2190           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2191 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2192           eval $ac_var=\$ac_old_val
2193         fi
2194         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2195 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2196         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2197 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2198       fi;;
2199   esac
2200   # Pass precious variables to config.status.
2201   if test "$ac_new_set" = set; then
2202     case $ac_new_val in
2203     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2204     *) ac_arg=$ac_var=$ac_new_val ;;
2205     esac
2206     case " $ac_configure_args " in
2207       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2208       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2209     esac
2210   fi
2211 done
2212 if $ac_cache_corrupted; then
2213   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2216 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2217   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2218 fi
2219 ## -------------------- ##
2220 ## Main body of script. ##
2221 ## -------------------- ##
2222
2223 ac_ext=c
2224 ac_cpp='$CPP $CPPFLAGS'
2225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237 progname=$0
2238 # if PWD already has a value, it is probably wrong.
2239 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2240
2241 # Export original configure arguments for use by sub-configures.
2242 # Quote arguments with shell meta charatcers.
2243 TOPLEVEL_CONFIGURE_ARGUMENTS=
2244 set -- "$progname" "$@"
2245 for ac_arg
2246 do
2247   case "$ac_arg" in
2248   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2249     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2250     # if the argument is of the form -foo=baz, quote the baz part only
2251     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2252   *) ;;
2253   esac
2254   # Add the quoted argument to the list.
2255   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2256 done
2257 if test "$silent" = yes; then
2258   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2259 fi
2260 # Remove the initial space we just introduced and, as these will be
2261 # expanded by make, quote '$'.
2262 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2263
2264
2265 # Find the build, host, and target systems.
2266 ac_aux_dir=
2267 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2268   for ac_t in install-sh install.sh shtool; do
2269     if test -f "$ac_dir/$ac_t"; then
2270       ac_aux_dir=$ac_dir
2271       ac_install_sh="$ac_aux_dir/$ac_t -c"
2272       break 2
2273     fi
2274   done
2275 done
2276 if test -z "$ac_aux_dir"; then
2277   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2278 fi
2279
2280 # These three variables are undocumented and unsupported,
2281 # and are intended to be withdrawn in a future Autoconf release.
2282 # They can cause serious problems if a builder's source tree is in a directory
2283 # whose full name contains unusual characters.
2284 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2285 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2286 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2287
2288
2289 # Make sure we can run config.sub.
2290 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2291   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2292
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2294 $as_echo_n "checking build system type... " >&6; }
2295 if test "${ac_cv_build+set}" = set; then :
2296   $as_echo_n "(cached) " >&6
2297 else
2298   ac_build_alias=$build_alias
2299 test "x$ac_build_alias" = x &&
2300   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2301 test "x$ac_build_alias" = x &&
2302   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2303 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2304   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2305
2306 fi
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2308 $as_echo "$ac_cv_build" >&6; }
2309 case $ac_cv_build in
2310 *-*-*) ;;
2311 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2312 esac
2313 build=$ac_cv_build
2314 ac_save_IFS=$IFS; IFS='-'
2315 set x $ac_cv_build
2316 shift
2317 build_cpu=$1
2318 build_vendor=$2
2319 shift; shift
2320 # Remember, the first character of IFS is used to create $*,
2321 # except with old shells:
2322 build_os=$*
2323 IFS=$ac_save_IFS
2324 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2325
2326
2327  case ${build_alias} in
2328   "") build_noncanonical=${build} ;;
2329   *) build_noncanonical=${build_alias} ;;
2330 esac
2331
2332
2333
2334  case ${host_alias} in
2335   "") host_noncanonical=${build_noncanonical} ;;
2336   *) host_noncanonical=${host_alias} ;;
2337 esac
2338
2339
2340
2341  case ${target_alias} in
2342   "") target_noncanonical=${host_noncanonical} ;;
2343   *) target_noncanonical=${target_alias} ;;
2344 esac
2345
2346
2347
2348
2349 test "$host_noncanonical" = "$target_noncanonical" &&
2350   test "$program_prefix$program_suffix$program_transform_name" = \
2351     NONENONEs,x,x, &&
2352   program_transform_name=s,y,y,
2353
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2355 $as_echo_n "checking host system type... " >&6; }
2356 if test "${ac_cv_host+set}" = set; then :
2357   $as_echo_n "(cached) " >&6
2358 else
2359   if test "x$host_alias" = x; then
2360   ac_cv_host=$ac_cv_build
2361 else
2362   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2363     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2364 fi
2365
2366 fi
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2368 $as_echo "$ac_cv_host" >&6; }
2369 case $ac_cv_host in
2370 *-*-*) ;;
2371 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2372 esac
2373 host=$ac_cv_host
2374 ac_save_IFS=$IFS; IFS='-'
2375 set x $ac_cv_host
2376 shift
2377 host_cpu=$1
2378 host_vendor=$2
2379 shift; shift
2380 # Remember, the first character of IFS is used to create $*,
2381 # except with old shells:
2382 host_os=$*
2383 IFS=$ac_save_IFS
2384 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2385
2386
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2388 $as_echo_n "checking target system type... " >&6; }
2389 if test "${ac_cv_target+set}" = set; then :
2390   $as_echo_n "(cached) " >&6
2391 else
2392   if test "x$target_alias" = x; then
2393   ac_cv_target=$ac_cv_host
2394 else
2395   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2396     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2397 fi
2398
2399 fi
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2401 $as_echo "$ac_cv_target" >&6; }
2402 case $ac_cv_target in
2403 *-*-*) ;;
2404 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2405 esac
2406 target=$ac_cv_target
2407 ac_save_IFS=$IFS; IFS='-'
2408 set x $ac_cv_target
2409 shift
2410 target_cpu=$1
2411 target_vendor=$2
2412 shift; shift
2413 # Remember, the first character of IFS is used to create $*,
2414 # except with old shells:
2415 target_os=$*
2416 IFS=$ac_save_IFS
2417 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2418
2419
2420 # The aliases save the names the user supplied, while $host etc.
2421 # will get canonicalized.
2422 test -n "$target_alias" &&
2423   test "$program_prefix$program_suffix$program_transform_name" = \
2424     NONENONEs,x,x, &&
2425   program_prefix=${target_alias}-
2426
2427 test "$program_prefix" != NONE &&
2428   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2429 # Use a double $ so make ignores it.
2430 test "$program_suffix" != NONE &&
2431   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2432 # Double any \ or $.
2433 # By default was `s,x,x', remove it if useless.
2434 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2435 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2436
2437
2438
2439 # Get 'install' or 'install-sh' and its variants.
2440 # Find a good install program.  We prefer a C program (faster),
2441 # so one script is as good as another.  But avoid the broken or
2442 # incompatible versions:
2443 # SysV /etc/install, /usr/sbin/install
2444 # SunOS /usr/etc/install
2445 # IRIX /sbin/install
2446 # AIX /bin/install
2447 # AmigaOS /C/install, which installs bootblocks on floppy discs
2448 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2449 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2450 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2451 # OS/2's system install, which has a completely different semantic
2452 # ./install, which can be erroneously created by make from ./install.sh.
2453 # Reject install programs that cannot install multiple files.
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2455 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2456 if test -z "$INSTALL"; then
2457 if test "${ac_cv_path_install+set}" = set; then :
2458   $as_echo_n "(cached) " >&6
2459 else
2460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463   IFS=$as_save_IFS
2464   test -z "$as_dir" && as_dir=.
2465     # Account for people who put trailing slashes in PATH elements.
2466 case $as_dir/ in #((
2467   ./ | .// | /[cC]/* | \
2468   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2469   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2470   /usr/ucb/* ) ;;
2471   *)
2472     # OSF1 and SCO ODT 3.0 have their own names for install.
2473     # Don't use installbsd from OSF since it installs stuff as root
2474     # by default.
2475     for ac_prog in ginstall scoinst install; do
2476       for ac_exec_ext in '' $ac_executable_extensions; do
2477         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2478           if test $ac_prog = install &&
2479             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2480             # AIX install.  It has an incompatible calling convention.
2481             :
2482           elif test $ac_prog = install &&
2483             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2484             # program-specific install script used by HP pwplus--don't use.
2485             :
2486           else
2487             rm -rf conftest.one conftest.two conftest.dir
2488             echo one > conftest.one
2489             echo two > conftest.two
2490             mkdir conftest.dir
2491             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2492               test -s conftest.one && test -s conftest.two &&
2493               test -s conftest.dir/conftest.one &&
2494               test -s conftest.dir/conftest.two
2495             then
2496               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2497               break 3
2498             fi
2499           fi
2500         fi
2501       done
2502     done
2503     ;;
2504 esac
2505
2506   done
2507 IFS=$as_save_IFS
2508
2509 rm -rf conftest.one conftest.two conftest.dir
2510
2511 fi
2512   if test "${ac_cv_path_install+set}" = set; then
2513     INSTALL=$ac_cv_path_install
2514   else
2515     # As a last resort, use the slow shell script.  Don't cache a
2516     # value for INSTALL within a source directory, because that will
2517     # break other packages using the cache if that directory is
2518     # removed, or if the value is a relative name.
2519     INSTALL=$ac_install_sh
2520   fi
2521 fi
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2523 $as_echo "$INSTALL" >&6; }
2524
2525 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2526 # It thinks the first close brace ends the variable substitution.
2527 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2528
2529 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2530
2531 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2532
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2534 $as_echo_n "checking whether ln works... " >&6; }
2535 if test "${acx_cv_prog_LN+set}" = set; then :
2536   $as_echo_n "(cached) " >&6
2537 else
2538   rm -f conftestdata_t
2539 echo >conftestdata_f
2540 if ln conftestdata_f conftestdata_t 2>/dev/null
2541 then
2542   acx_cv_prog_LN=ln
2543 else
2544   acx_cv_prog_LN=no
2545 fi
2546 rm -f conftestdata_f conftestdata_t
2547
2548 fi
2549 if test $acx_cv_prog_LN = no; then
2550   LN="cp"
2551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2552 $as_echo "no, using $LN" >&6; }
2553 else
2554   LN="$acx_cv_prog_LN"
2555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2556 $as_echo "yes" >&6; }
2557 fi
2558
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2560 $as_echo_n "checking whether ln -s works... " >&6; }
2561 LN_S=$as_ln_s
2562 if test "$LN_S" = "ln -s"; then
2563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2564 $as_echo "yes" >&6; }
2565 else
2566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2567 $as_echo "no, using $LN_S" >&6; }
2568 fi
2569
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2571 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2572 if test "${ac_cv_path_SED+set}" = set; then :
2573   $as_echo_n "(cached) " >&6
2574 else
2575             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2576      for ac_i in 1 2 3 4 5 6 7; do
2577        ac_script="$ac_script$as_nl$ac_script"
2578      done
2579      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2580      { ac_script=; unset ac_script;}
2581      if test -z "$SED"; then
2582   ac_path_SED_found=false
2583   # Loop through the user's path and test for each of PROGNAME-LIST
2584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587   IFS=$as_save_IFS
2588   test -z "$as_dir" && as_dir=.
2589     for ac_prog in sed gsed; do
2590     for ac_exec_ext in '' $ac_executable_extensions; do
2591       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2592       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2593 # Check for GNU ac_path_SED and select it if it is found.
2594   # Check for GNU $ac_path_SED
2595 case `"$ac_path_SED" --version 2>&1` in
2596 *GNU*)
2597   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2598 *)
2599   ac_count=0
2600   $as_echo_n 0123456789 >"conftest.in"
2601   while :
2602   do
2603     cat "conftest.in" "conftest.in" >"conftest.tmp"
2604     mv "conftest.tmp" "conftest.in"
2605     cp "conftest.in" "conftest.nl"
2606     $as_echo '' >> "conftest.nl"
2607     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2608     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2609     as_fn_arith $ac_count + 1 && ac_count=$as_val
2610     if test $ac_count -gt ${ac_path_SED_max-0}; then
2611       # Best one so far, save it but keep looking for a better one
2612       ac_cv_path_SED="$ac_path_SED"
2613       ac_path_SED_max=$ac_count
2614     fi
2615     # 10*(2^10) chars as input seems more than enough
2616     test $ac_count -gt 10 && break
2617   done
2618   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2619 esac
2620
2621       $ac_path_SED_found && break 3
2622     done
2623   done
2624   done
2625 IFS=$as_save_IFS
2626   if test -z "$ac_cv_path_SED"; then
2627     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2628   fi
2629 else
2630   ac_cv_path_SED=$SED
2631 fi
2632
2633 fi
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2635 $as_echo "$ac_cv_path_SED" >&6; }
2636  SED="$ac_cv_path_SED"
2637   rm -f conftest.sed
2638
2639 for ac_prog in gawk mawk nawk awk
2640 do
2641   # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
2645 if test "${ac_cv_prog_AWK+set}" = set; then :
2646   $as_echo_n "(cached) " >&6
2647 else
2648   if test -n "$AWK"; then
2649   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2653 do
2654   IFS=$as_save_IFS
2655   test -z "$as_dir" && as_dir=.
2656     for ac_exec_ext in '' $ac_executable_extensions; do
2657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658     ac_cv_prog_AWK="$ac_prog"
2659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660     break 2
2661   fi
2662 done
2663   done
2664 IFS=$as_save_IFS
2665
2666 fi
2667 fi
2668 AWK=$ac_cv_prog_AWK
2669 if test -n "$AWK"; then
2670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2671 $as_echo "$AWK" >&6; }
2672 else
2673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674 $as_echo "no" >&6; }
2675 fi
2676
2677
2678   test -n "$AWK" && break
2679 done
2680
2681
2682 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2683
2684 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2685 # a relative path.
2686 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2687   INSTALL="${srcpwd}/install-sh -c"
2688 fi
2689
2690 # Set srcdir to "." if that's what it is.
2691 # This is important for multilib support.
2692 pwd=`${PWDCMD-pwd}`
2693 if test "${pwd}" = "${srcpwd}" ; then
2694   srcdir=.
2695 fi
2696
2697 topsrcdir=$srcpwd
2698
2699 extra_host_args=
2700
2701 ### To add a new directory to the tree, first choose whether it is a target
2702 ### or a host dependent tool.  Then put it into the appropriate list
2703 ### (library or tools, host or target), doing a dependency sort.
2704
2705 # Subdirs will be configured in the order listed in build_configdirs,
2706 # configdirs, or target_configdirs; see the serialization section below.
2707
2708 # Dependency sorting is only needed when *configuration* must be done in
2709 # a particular order.  In all cases a dependency should be specified in
2710 # the Makefile, whether or not it's implicitly specified here.
2711
2712 # Double entries in build_configdirs, configdirs, or target_configdirs may
2713 # cause circular dependencies and break everything horribly.
2714
2715 # these library is used by various programs built for the build
2716 # environment
2717 #
2718 build_libs="build-libiberty build-libcpp"
2719
2720 # these tools are built for the build environment
2721 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2722
2723 # these libraries are used by various programs built for the host environment
2724 #f
2725 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2726
2727 # these tools are built for the host environment
2728 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2729 # know that we are building the simulator.
2730 # binutils, gas and ld appear in that order because it makes sense to run
2731 # "make check" in that particular order.
2732 # If --enable-gold is used, "gold" may replace "ld".
2733 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2734
2735 # these libraries are built for the target environment, and are built after
2736 # the host libraries and the host tools (which may be a cross compiler)
2737 # Note that libiberty is not a target library.
2738 target_libraries="target-libgcc \
2739                 target-libbacktrace \
2740                 target-libgloss \
2741                 target-newlib \
2742                 target-libgomp \
2743                 target-libcilkrts \
2744                 target-liboffloadmic \
2745                 target-libatomic \
2746                 target-libitm \
2747                 target-libstdc++-v3 \
2748                 target-libsanitizer \
2749                 target-libvtv \
2750                 target-libmpx \
2751                 target-libssp \
2752                 target-libquadmath \
2753                 target-libgfortran \
2754                 target-boehm-gc \
2755                 target-libffi \
2756                 target-libobjc \
2757                 target-libada \
2758                 target-libgo"
2759
2760 # these tools are built using the target libraries, and are intended to
2761 # run only in the target environment
2762 #
2763 # note: any program that *uses* libraries that are in the "target_libraries"
2764 # list belongs in this list.
2765 #
2766 target_tools="target-rda"
2767
2768 ################################################################################
2769
2770 ## All tools belong in one of the four categories, and are assigned above
2771 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2772 ## is important because configure will choke if they ever get through.
2773 ## ${configdirs} is directories we build using the host tools.
2774 ## ${target_configdirs} is directories we build using the target tools.
2775 configdirs=`echo ${host_libs} ${host_tools}`
2776 target_configdirs=`echo ${target_libraries} ${target_tools}`
2777 build_configdirs=`echo ${build_libs} ${build_tools}`
2778
2779
2780
2781 ################################################################################
2782
2783 srcname="gnu development package"
2784
2785 # This gets set non-empty for some net releases of packages.
2786 appdirs=""
2787
2788 # Define is_cross_compiler to save on calls to 'test'.
2789 is_cross_compiler=
2790 if test x"${host}" = x"${target}" ; then
2791   is_cross_compiler=no
2792 else
2793   is_cross_compiler=yes
2794 fi
2795
2796 # Find the build and target subdir names.
2797
2798 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2799 # have matching libraries, they should use host libraries: Makefile.tpl
2800 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2801 # However, they still use the build modules, because the corresponding
2802 # host modules (e.g. bison) are only built for the host when bootstrap
2803 # finishes. So:
2804 # - build_subdir is where we find build modules, and never changes.
2805 # - build_libsubdir is where we find build libraries, and can be overridden.
2806
2807 # Prefix 'build-' so this never conflicts with target_subdir.
2808 build_subdir="build-${build_noncanonical}"
2809
2810 # Check whether --with-build-libsubdir was given.
2811 if test "${with_build_libsubdir+set}" = set; then :
2812   withval=$with_build_libsubdir; build_libsubdir="$withval"
2813 else
2814   build_libsubdir="$build_subdir"
2815 fi
2816
2817 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2818 if ( test $srcdir = . && test -d gcc ) \
2819    || test -d $srcdir/../host-${host_noncanonical}; then
2820   host_subdir="host-${host_noncanonical}"
2821 else
2822   host_subdir=.
2823 fi
2824 # No prefix.
2825 target_subdir=${target_noncanonical}
2826
2827 # Be sure to cover against remnants of an in-tree build.
2828 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2829   as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2830 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2831 fi
2832
2833 # Skipdirs are removed silently.
2834 skipdirs=
2835 # Noconfigdirs are removed loudly.
2836 noconfigdirs=""
2837
2838 use_gnu_ld=
2839 # Make sure we don't let GNU ld be added if we didn't want it.
2840 if test x$with_gnu_ld = xno ; then
2841   use_gnu_ld=no
2842   noconfigdirs="$noconfigdirs ld gold"
2843 fi
2844
2845 use_gnu_as=
2846 # Make sure we don't let GNU as be added if we didn't want it.
2847 if test x$with_gnu_as = xno ; then
2848   use_gnu_as=no
2849   noconfigdirs="$noconfigdirs gas"
2850 fi
2851
2852 use_included_zlib=
2853
2854 # Check whether --with-system-zlib was given.
2855 if test "${with_system_zlib+set}" = set; then :
2856   withval=$with_system_zlib;
2857 fi
2858
2859 # Make sure we don't let ZLIB be added if we didn't want it.
2860 if test x$with_system_zlib = xyes ; then
2861   use_included_zlib=no
2862   noconfigdirs="$noconfigdirs zlib"
2863 fi
2864
2865 # some tools are so dependent upon X11 that if we're not building with X,
2866 # it's not even worth trying to configure, much less build, that tool.
2867
2868 case ${with_x} in
2869   yes | "") ;; # the default value for this tree is that X11 is available
2870   no)
2871     skipdirs="${skipdirs} tk itcl libgui"
2872     # We won't be able to build gdbtk without X.
2873     enable_gdbtk=no
2874     ;;
2875   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2876 esac
2877
2878 # Some are only suitable for cross toolchains.
2879 # Remove these if host=target.
2880 cross_only="target-libgloss target-newlib target-opcodes"
2881
2882 case $is_cross_compiler in
2883   no) skipdirs="${skipdirs} ${cross_only}" ;;
2884 esac
2885
2886 # If both --with-headers and --with-libs are specified, default to
2887 # --without-newlib.
2888 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2889    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2890   if test x"${with_newlib}" = x ; then
2891     with_newlib=no
2892   fi
2893 fi
2894
2895 # Recognize --with-newlib/--without-newlib.
2896 case ${with_newlib} in
2897   no) skipdirs="${skipdirs} target-newlib" ;;
2898   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2899 esac
2900
2901 # Check whether --enable-as-accelerator-for was given.
2902 if test "${enable_as_accelerator_for+set}" = set; then :
2903   enableval=$enable_as_accelerator_for;
2904 fi
2905
2906
2907 # Check whether --enable-offload-targets was given.
2908 if test "${enable_offload_targets+set}" = set; then :
2909   enableval=$enable_offload_targets;
2910   if test x"$enable_offload_targets" = x; then
2911     as_fn_error "no offload targets specified" "$LINENO" 5
2912   fi
2913
2914 else
2915   enable_offload_targets=
2916 fi
2917
2918
2919 # Handle --enable-gold, --enable-ld.
2920 # --disable-gold [--enable-ld]
2921 #     Build only ld.  Default option.
2922 # --enable-gold [--enable-ld]
2923 #     Build both gold and ld.  Install gold as "ld.gold", install ld
2924 #     as "ld.bfd" and "ld".
2925 # --enable-gold=default [--enable-ld]
2926 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2927 #     install ld as "ld.bfd".
2928 # --enable-gold[=default] --disable-ld
2929 #     Build only gold, which is then installed as both "ld.gold" and "ld".
2930 # --enable-gold --enable-ld=default
2931 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2932 #     and ld.bfd).
2933 #     In other words, ld is default
2934 # --enable-gold=default --enable-ld=default
2935 #     Error.
2936
2937 default_ld=
2938 # Check whether --enable-gold was given.
2939 if test "${enable_gold+set}" = set; then :
2940   enableval=$enable_gold; ENABLE_GOLD=$enableval
2941 else
2942   ENABLE_GOLD=no
2943 fi
2944
2945 case "${ENABLE_GOLD}" in
2946   yes|default)
2947     # Check for ELF target.
2948     is_elf=no
2949     case "${target}" in
2950       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2951       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2952       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2953       | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2954         case "${target}" in
2955           *-*-linux*aout* | *-*-linux*oldld*)
2956             ;;
2957           *)
2958             is_elf=yes
2959             ;;
2960         esac
2961     esac
2962
2963     if test "$is_elf" = "yes"; then
2964       # Check for target supported by gold.
2965       case "${target}" in
2966         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2967         | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2968           configdirs="$configdirs gold"
2969           if test x${ENABLE_GOLD} = xdefault; then
2970             default_ld=gold
2971           fi
2972           ENABLE_GOLD=yes
2973           ;;
2974       esac
2975     fi
2976     ;;
2977   no)
2978     ;;
2979   *)
2980     as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2981     ;;
2982 esac
2983
2984 # Check whether --enable-ld was given.
2985 if test "${enable_ld+set}" = set; then :
2986   enableval=$enable_ld; ENABLE_LD=$enableval
2987 else
2988   ENABLE_LD=yes
2989 fi
2990
2991
2992 case "${ENABLE_LD}" in
2993   default)
2994     if test x${default_ld} != x; then
2995       as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2996     fi
2997     ;;
2998   yes)
2999     ;;
3000   no)
3001     if test x${ENABLE_GOLD} != xyes; then
3002       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3003 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3004     fi
3005     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3006     ;;
3007   *)
3008     as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3009     ;;
3010 esac
3011
3012 # PR gas/19109
3013 # Decide the default method for compressing debug sections.
3014 # Provide a configure time option to override our default.
3015 # Check whether --enable-compressed_debug_sections was given.
3016 if test "${enable_compressed_debug_sections+set}" = set; then :
3017   enableval=$enable_compressed_debug_sections;
3018   if test x"$enable_compressed_debug_sections" = xyes; then
3019     as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3020   fi
3021
3022 else
3023   enable_compressed_debug_sections=
3024 fi
3025
3026
3027 # Configure extra directories which are host specific
3028
3029 case "${host}" in
3030   *-cygwin*)
3031     configdirs="$configdirs libtermcap" ;;
3032 esac
3033
3034 # A target can indicate whether a language isn't supported for some reason.
3035 # Only spaces may be used in this macro; not newlines or tabs.
3036 unsupported_languages=
3037
3038 # Remove more programs from consideration, based on the host or
3039 # target this usually means that a port of the program doesn't
3040 # exist yet.
3041
3042 case "${host}" in
3043   i[3456789]86-*-msdosdjgpp*)
3044     noconfigdirs="$noconfigdirs tcl tk itcl"
3045     ;;
3046 esac
3047
3048
3049 # Check whether --enable-libquadmath was given.
3050 if test "${enable_libquadmath+set}" = set; then :
3051   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3052 else
3053   ENABLE_LIBQUADMATH=yes
3054 fi
3055
3056 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3057   noconfigdirs="$noconfigdirs target-libquadmath"
3058 fi
3059
3060
3061 # Check whether --enable-libquadmath-support was given.
3062 if test "${enable_libquadmath_support+set}" = set; then :
3063   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3064 else
3065   ENABLE_LIBQUADMATH_SUPPORT=yes
3066 fi
3067
3068 enable_libquadmath_support=
3069 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3070   enable_libquadmath_support=no
3071 fi
3072
3073
3074 # Check whether --enable-libada was given.
3075 if test "${enable_libada+set}" = set; then :
3076   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3077 else
3078   ENABLE_LIBADA=yes
3079 fi
3080
3081 if test "${ENABLE_LIBADA}" != "yes" ; then
3082   noconfigdirs="$noconfigdirs gnattools"
3083 fi
3084
3085 # Check whether --enable-libssp was given.
3086 if test "${enable_libssp+set}" = set; then :
3087   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3088 else
3089   ENABLE_LIBSSP=yes
3090 fi
3091
3092
3093 # Check whether --enable-libstdcxx was given.
3094 if test "${enable_libstdcxx+set}" = set; then :
3095   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3096 else
3097   ENABLE_LIBSTDCXX=default
3098 fi
3099
3100 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3101   noconfigdirs="$noconfigdirs target-libstdc++-v3"
3102 fi
3103
3104 # If this is accelerator compiler and its target is intelmic we enable
3105 # target liboffloadmic by default.  If this is compiler with offloading
3106 # for intelmic we enable host liboffloadmic by default.  Otherwise
3107 # liboffloadmic is disabled by default.
3108 # Check whether --enable-liboffloadmic was given.
3109 if test "${enable_liboffloadmic+set}" = set; then :
3110   enableval=$enable_liboffloadmic; case "$enableval" in
3111   no | host | target)
3112     enable_liboffloadmic=$enableval ;;
3113   *)
3114     as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3115 esac
3116 else
3117   if test x"$enable_as_accelerator_for" != x; then
3118   case "${target}" in
3119     *-intelmic-* | *-intelmicemul-*)
3120       enable_liboffloadmic=target
3121       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3122       ;;
3123     *)
3124       enable_liboffloadmic=no
3125       ;;
3126   esac
3127 else
3128   case "${enable_offload_targets}" in
3129     *-intelmic-* | *-intelmicemul-*)
3130       enable_liboffloadmic=host
3131       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3132       ;;
3133     *)
3134       enable_liboffloadmic=no
3135       ;;
3136     esac
3137 fi
3138 fi
3139
3140
3141
3142 # Enable libgomp by default on hosted POSIX systems, and a few others.
3143 if test x$enable_libgomp = x ; then
3144     case "${target}" in
3145     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3146         ;;
3147     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3148         ;;
3149     *-*-solaris2* | *-*-hpux11*)
3150         ;;
3151     *-*-darwin* | *-*-aix*)
3152         ;;
3153     nvptx*-*-*)
3154         ;;
3155     *)
3156         noconfigdirs="$noconfigdirs target-libgomp"
3157         ;;
3158     esac
3159 fi
3160
3161 # Disable libatomic on unsupported systems.
3162 if test -d ${srcdir}/libatomic; then
3163     if test x$enable_libatomic = x; then
3164         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3165 $as_echo_n "checking for libatomic support... " >&6; }
3166         if (srcdir=${srcdir}/libatomic; \
3167                 . ${srcdir}/configure.tgt; \
3168                 test -n "$UNSUPPORTED")
3169         then
3170             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172             noconfigdirs="$noconfigdirs target-libatomic"
3173         else
3174             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175 $as_echo "yes" >&6; }
3176         fi
3177     fi
3178 fi
3179
3180 # Disable libcilkrts on unsupported systems.
3181 if test -d ${srcdir}/libcilkrts; then
3182     if test x$enable_libcilkrts = x; then
3183         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3184 $as_echo_n "checking for libcilkrts support... " >&6; }
3185         if (srcdir=${srcdir}/libcilkrts; \
3186                 . ${srcdir}/configure.tgt; \
3187                 test -n "$UNSUPPORTED")
3188         then
3189             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191             noconfigdirs="$noconfigdirs target-libcilkrts"
3192         else
3193             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3194 $as_echo "yes" >&6; }
3195         fi
3196     fi
3197 fi
3198
3199 # Disable liboffloadmic on unsupported systems.
3200 if test -d ${srcdir}/liboffloadmic; then
3201     if test x$enable_liboffloadmic != xno; then
3202         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3203 $as_echo_n "checking for liboffloadmic support... " >&6; }
3204         if (srcdir=${srcdir}/liboffloadmic; \
3205                 . ${srcdir}/configure.tgt; \
3206                 test -n "$UNSUPPORTED")
3207         then
3208             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210             noconfigdirs="$noconfigdirs target-liboffloadmic"
3211         else
3212             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213 $as_echo "yes" >&6; }
3214         fi
3215     fi
3216 fi
3217
3218 # Disable libitm on unsupported systems.
3219 if test -d ${srcdir}/libitm; then
3220     if test x$enable_libitm = x; then
3221         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3222 $as_echo_n "checking for libitm support... " >&6; }
3223         if (srcdir=${srcdir}/libitm; \
3224                 . ${srcdir}/configure.tgt; \
3225                 test -n "$UNSUPPORTED")
3226         then
3227             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3229             noconfigdirs="$noconfigdirs target-libitm"
3230         else
3231             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3232 $as_echo "yes" >&6; }
3233         fi
3234     fi
3235 fi
3236
3237 # Disable libsanitizer on unsupported systems.
3238 if test -d ${srcdir}/libsanitizer; then
3239     if test x$enable_libsanitizer = x; then
3240         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3241 $as_echo_n "checking for libsanitizer support... " >&6; }
3242         if (srcdir=${srcdir}/libsanitizer; \
3243                 . ${srcdir}/configure.tgt; \
3244                 test -n "$UNSUPPORTED")
3245         then
3246             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3248             noconfigdirs="$noconfigdirs target-libsanitizer"
3249         else
3250             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3251 $as_echo "yes" >&6; }
3252         fi
3253     fi
3254 fi
3255
3256 # Disable libvtv on unsupported systems.
3257 if test -d ${srcdir}/libvtv; then
3258     if test x$enable_libvtv = x; then
3259         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3260 $as_echo_n "checking for libvtv support... " >&6; }
3261         if (srcdir=${srcdir}/libvtv; \
3262                 . ${srcdir}/configure.tgt; \
3263                 test "$VTV_SUPPORTED" != "yes")
3264         then
3265             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267             noconfigdirs="$noconfigdirs target-libvtv"
3268         else
3269             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270 $as_echo "yes" >&6; }
3271         fi
3272     fi
3273 fi
3274
3275
3276 # Enable libmpx on supported systems by request.
3277 if test -d ${srcdir}/libmpx; then
3278     if test x$enable_libmpx = x; then
3279        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3280 $as_echo_n "checking for libmpx support... " >&6; }
3281        if (srcdir=${srcdir}/libmpx; \
3282                . ${srcdir}/configure.tgt; \
3283                test "$LIBMPX_SUPPORTED" != "yes")
3284        then
3285            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287            noconfigdirs="$noconfigdirs target-libmpx"
3288        else
3289            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3290 $as_echo "yes" >&6; }
3291        fi
3292     fi
3293 fi
3294
3295
3296
3297 # Disable libquadmath for some systems.
3298 case "${target}" in
3299   avr-*-*)
3300     noconfigdirs="$noconfigdirs target-libquadmath"
3301     ;;
3302   # libquadmath is unused on AIX and libquadmath build process use of
3303   # LD_LIBRARY_PATH can break AIX bootstrap.
3304   powerpc-*-aix* | rs6000-*-aix*)
3305     noconfigdirs="$noconfigdirs target-libquadmath"
3306     ;;
3307 esac
3308
3309 # Disable libssp for some systems.
3310 case "${target}" in
3311   avr-*-*)
3312     # No hosted I/O support.
3313     noconfigdirs="$noconfigdirs target-libssp"
3314     ;;
3315   powerpc-*-aix* | rs6000-*-aix*)
3316     noconfigdirs="$noconfigdirs target-libssp"
3317     ;;
3318   rl78-*-*)
3319     # libssp uses a misaligned load to trigger a fault, but the RL78
3320     # doesn't fault for those - instead, it gives a build-time error
3321     # for explicit misaligned loads.
3322     noconfigdirs="$noconfigdirs target-libssp"
3323     ;;
3324   visium-*-*)
3325     # No hosted I/O support.
3326     noconfigdirs="$noconfigdirs target-libssp"
3327     ;;
3328 esac
3329
3330 # Disable libstdc++-v3 for some systems.
3331 # Allow user to override this if they pass --enable-libstdc++-v3
3332 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3333   case "${target}" in
3334     *-*-vxworks*)
3335       # VxWorks uses the Dinkumware C++ library.
3336       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3337       ;;
3338     arm*-wince-pe*)
3339       # the C++ libraries don't build on top of CE's C libraries
3340       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3341       ;;
3342     avr-*-*)
3343       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3344       ;;
3345     ft32-*-*)
3346       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3347       ;;
3348   esac
3349 fi
3350
3351 # Disable Fortran for some systems.
3352 case "${target}" in
3353   mmix-*-*)
3354     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3355     unsupported_languages="$unsupported_languages fortran"
3356     ;;
3357 esac
3358
3359 # Disable libffi for some systems.
3360 case "${target}" in
3361   powerpc-*-darwin*)
3362     ;;
3363   i[3456789]86-*-darwin*)
3364     ;;
3365   x86_64-*-darwin[912]*)
3366     ;;
3367   *-*-darwin*)
3368     noconfigdirs="$noconfigdirs target-libffi"
3369     ;;
3370   *-*-netware*)
3371     noconfigdirs="$noconfigdirs target-libffi"
3372     ;;
3373   *-*-phoenix*)
3374     noconfigdirs="$noconfigdirs target-libffi"
3375     ;;
3376   *-*-rtems*)
3377     noconfigdirs="$noconfigdirs target-libffi"
3378     ;;
3379   *-*-tpf*)
3380     noconfigdirs="$noconfigdirs target-libffi"
3381     ;;
3382   *-*-uclinux*)
3383     noconfigdirs="$noconfigdirs target-libffi"
3384     ;;
3385   *-*-vxworks*)
3386     noconfigdirs="$noconfigdirs target-libffi"
3387     ;;
3388   aarch64*-*-freebsd*)
3389     noconfigdirs="$noconfigdirs target-libffi"
3390     ;;
3391   alpha*-*-*vms*)
3392     noconfigdirs="$noconfigdirs target-libffi"
3393     ;;
3394   arm*-*-freebsd*)
3395     noconfigdirs="$noconfigdirs target-libffi"
3396     ;;
3397   arm-wince-pe)
3398     noconfigdirs="$noconfigdirs target-libffi"
3399     ;;
3400   arm*-*-symbianelf*)
3401     noconfigdirs="$noconfigdirs target-libffi"
3402     ;;
3403   cris-*-* | crisv32-*-*)
3404     case "${target}" in
3405       *-*-linux*)
3406         ;;
3407       *) # See PR46792 regarding target-libffi.
3408         noconfigdirs="$noconfigdirs target-libffi";;
3409     esac
3410     ;;
3411   hppa*64*-*-hpux*)
3412     noconfigdirs="$noconfigdirs target-libffi"
3413     ;;
3414   hppa*-hp-hpux11*)
3415     ;;
3416   hppa*-*-hpux*)
3417     noconfigdirs="$noconfigdirs target-libffi"
3418     ;;
3419   ia64*-*-*vms*)
3420     noconfigdirs="$noconfigdirs target-libffi"
3421     ;;
3422   i[3456789]86-w64-mingw*)
3423     noconfigdirs="$noconfigdirs target-libffi"
3424     ;;
3425   i[3456789]86-*-mingw*)
3426     noconfigdirs="$noconfigdirs target-libffi"
3427     ;;
3428   x86_64-*-mingw*)
3429     noconfigdirs="$noconfigdirs target-libffi"
3430     ;;
3431   mmix-*-*)
3432     noconfigdirs="$noconfigdirs target-libffi"
3433     ;;
3434   powerpc-*-aix*)
3435     # copied from rs6000-*-* entry
3436     noconfigdirs="$noconfigdirs target-libffi"
3437     ;;
3438   rs6000-*-aix*)
3439     noconfigdirs="$noconfigdirs target-libffi"
3440     ;;
3441   ft32-*-*)
3442     noconfigdirs="$noconfigdirs target-libffi"
3443     ;;
3444   *-*-lynxos*)
3445     noconfigdirs="$noconfigdirs target-libffi"
3446     ;;
3447 esac
3448
3449 # Disable the go frontend on systems where it is known to not work. Please keep
3450 # this in sync with contrib/config-list.mk.
3451 case "${target}" in
3452 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3453     unsupported_languages="$unsupported_languages go"
3454     ;;
3455 esac
3456
3457 # Disable libgo for some systems where it is known to not work.
3458 # For testing, you can easily override this with --enable-libgo.
3459 if test x$enable_libgo = x; then
3460     case "${target}" in
3461     *-*-darwin*)
3462         # PR 46986
3463         noconfigdirs="$noconfigdirs target-libgo"
3464         ;;
3465     *-*-cygwin* | *-*-mingw*)
3466         noconfigdirs="$noconfigdirs target-libgo"
3467         ;;
3468     *-*-aix*)
3469         noconfigdirs="$noconfigdirs target-libgo"
3470         ;;
3471     esac
3472 fi
3473
3474 # Default libgloss CPU subdirectory.
3475 libgloss_dir="$target_cpu"
3476
3477 case "${target}" in
3478   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3479     libgloss_dir=wince
3480     ;;
3481   aarch64*-*-* )
3482     libgloss_dir=aarch64
3483     ;;
3484   arm*-*-*)
3485     libgloss_dir=arm
3486     ;;
3487   cris-*-* | crisv32-*-*)
3488     libgloss_dir=cris
3489     ;;
3490   hppa*-*-*)
3491     libgloss_dir=pa
3492     ;;
3493   i[3456789]86-*-*)
3494     libgloss_dir=i386
3495     ;;
3496   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3497     libgloss_dir=m68hc11
3498     ;;
3499   m68*-*-* | fido-*-*)
3500     libgloss_dir=m68k
3501     ;;
3502   mips*-*-*)
3503     libgloss_dir=mips
3504     ;;
3505   powerpc*-*-*)
3506     libgloss_dir=rs6000
3507     ;;
3508   sparc*-*-*)
3509     libgloss_dir=sparc
3510     ;;
3511 esac
3512
3513 # Disable newlib and libgloss for various target OSes.
3514 case "${target}" in
3515   alpha*-dec-osf*)
3516     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3517     ;;
3518   i[3456789]86-*-linux*)
3519     # This section makes it possible to build newlib natively on linux.
3520     # If we are using a cross compiler then don't configure newlib.
3521     if test x${is_cross_compiler} != xno ; then
3522       noconfigdirs="$noconfigdirs target-newlib"
3523     fi
3524     noconfigdirs="$noconfigdirs target-libgloss"
3525     # If we are not using a cross compiler, do configure newlib.
3526     # Note however, that newlib will only be configured in this situation
3527     # if the --with-newlib option has been given, because otherwise
3528     # 'target-newlib' will appear in skipdirs.
3529     ;;
3530   i[3456789]86-*-rdos*)
3531     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3532     ;;
3533   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3534     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3535     ;;
3536   sparc-*-sunos4*)
3537     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3538     ;;
3539   *-*-aix*)
3540     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3541     ;;
3542   *-*-beos*)
3543     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3544     ;;
3545   *-*-chorusos)
3546     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3547     ;;
3548   *-*-dragonfly*)
3549     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3550     ;;
3551   *-*-freebsd*)
3552     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3553     ;;
3554   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3555     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3556     ;;
3557   *-*-lynxos*)
3558     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3559     ;;
3560   *-*-mingw*)
3561     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3562     ;;
3563   *-*-netbsd*)
3564     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3565     ;;
3566   *-*-netware*)
3567     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3568     ;;
3569   *-*-tpf*)
3570     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3571     ;;
3572   *-*-uclinux*)
3573     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3574     ;;
3575   *-*-vxworks*)
3576     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3577     ;;
3578 esac
3579
3580 case "${target}" in
3581   *-*-chorusos)
3582     ;;
3583   aarch64-*-darwin*)
3584     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3585     noconfigdirs="$noconfigdirs sim target-rda"
3586     ;;
3587   arm-*-darwin*)
3588     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3589     noconfigdirs="$noconfigdirs sim target-rda"
3590     ;;
3591   powerpc-*-darwin*)
3592     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3593     noconfigdirs="$noconfigdirs sim target-rda"
3594     ;;
3595   i[3456789]86-*-darwin*)
3596     noconfigdirs="$noconfigdirs ld gprof"
3597     noconfigdirs="$noconfigdirs sim target-rda"
3598     ;;
3599   x86_64-*-darwin[912]*)
3600     noconfigdirs="$noconfigdirs ld gas gprof"
3601     noconfigdirs="$noconfigdirs sim target-rda"
3602     ;;
3603   *-*-darwin*)
3604     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3605     noconfigdirs="$noconfigdirs sim target-rda"
3606     ;;
3607   *-*-dragonfly*)
3608     ;;
3609   *-*-freebsd*)
3610     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3611         && test -f /usr/local/include/gmp.h; then
3612       with_gmp=/usr/local
3613     fi
3614     ;;
3615   *-*-kaos*)
3616     # Remove unsupported stuff on all kaOS configurations.
3617     noconfigdirs="$noconfigdirs target-libgloss"
3618     ;;
3619   *-*-netbsd*)
3620     ;;
3621   *-*-netware*)
3622     ;;
3623   *-*-phoenix*)
3624     noconfigdirs="$noconfigdirs target-libgloss"
3625     ;;
3626   *-*-rtems*)
3627     noconfigdirs="$noconfigdirs target-libgloss"
3628     # this is not caught below because this stanza matches earlier
3629     case $target in
3630       or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3631     esac
3632     ;;
3633     # The tpf target doesn't support gdb yet.
3634   *-*-tpf*)
3635     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3636     ;;
3637   *-*-uclinux*)
3638     noconfigdirs="$noconfigdirs target-rda"
3639     ;;
3640   *-*-vxworks*)
3641     ;;
3642   alpha*-dec-osf*)
3643     # ld works, but does not support shared libraries.
3644     # gas doesn't generate exception information.
3645     noconfigdirs="$noconfigdirs gas ld"
3646     ;;
3647   alpha*-*-*vms*)
3648     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3649     ;;
3650   alpha*-*-*)
3651     # newlib is not 64 bit ready
3652     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653     ;;
3654   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3655     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3656     ;;
3657   arc*-*-*)
3658     noconfigdirs="$noconfigdirs sim"
3659     ;;
3660   arm-*-pe*)
3661     noconfigdirs="$noconfigdirs target-libgloss"
3662     ;;
3663   arm-*-riscix*)
3664     noconfigdirs="$noconfigdirs ld target-libgloss"
3665     ;;
3666   avr-*-*)
3667     if test x${with_avrlibc} != xno; then
3668       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3669     fi
3670     ;;
3671   c4x-*-* | tic4x-*-*)
3672     noconfigdirs="$noconfigdirs target-libgloss"
3673     ;;
3674   tic54x-*-*)
3675     noconfigdirs="$noconfigdirs target-libgloss gdb"
3676     ;;
3677   d10v-*-*)
3678     noconfigdirs="$noconfigdirs target-libgloss"
3679     ;;
3680   d30v-*-*)
3681     noconfigdirs="$noconfigdirs gdb"
3682     ;;
3683   fr30-*-elf*)
3684     noconfigdirs="$noconfigdirs gdb"
3685     ;;
3686   ft32-*-*)
3687     noconfigdirs="$noconfigdirs target-rda gprof"
3688     ;;
3689   moxie-*-*)
3690     noconfigdirs="$noconfigdirs"
3691     ;;
3692   h8300*-*-*)
3693     noconfigdirs="$noconfigdirs target-libgloss"
3694     ;;
3695   h8500-*-*)
3696     noconfigdirs="$noconfigdirs target-libgloss"
3697     ;;
3698   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3699     ;;
3700   hppa*64*-*-hpux*)
3701     noconfigdirs="$noconfigdirs gdb"
3702     ;;
3703   hppa*-*-hpux11*)
3704     noconfigdirs="$noconfigdirs gdb ld"
3705     ;;
3706   hppa*64*-*-linux*)
3707     ;;
3708   hppa*-*-linux*)
3709     ;;
3710   hppa*-*-*elf* | \
3711   hppa*-*-lites* | \
3712   hppa*-*-openbsd* | \
3713   hppa*64*-*-*)
3714     ;;
3715   hppa*-*-pro*)
3716     ;;
3717   hppa*-*-*)
3718     noconfigdirs="$noconfigdirs ld"
3719     ;;
3720   i960-*-*)
3721     noconfigdirs="$noconfigdirs gdb"
3722     ;;
3723   ia64*-*-elf*)
3724     # No gdb support yet.
3725     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3726     ;;
3727   ia64*-**-hpux*)
3728     # No ld support yet.
3729     noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3730     ;;
3731   ia64*-*-*vms*)
3732     # No ld support yet.
3733     noconfigdirs="$noconfigdirs libgui itcl ld"
3734     ;;
3735   i[3456789]86-w64-mingw*)
3736     ;;
3737   i[3456789]86-*-mingw*)
3738     target_configdirs="$target_configdirs target-winsup"
3739     ;;
3740   *-*-cygwin*)
3741     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3742     noconfigdirs="$noconfigdirs target-libgloss"
3743     # always build newlib if winsup directory is present.
3744     if test -d "$srcdir/winsup/cygwin"; then
3745       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3746     elif test -d "$srcdir/newlib"; then
3747       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3748     fi
3749     ;;
3750   i[3456789]86-*-pe)
3751     noconfigdirs="$noconfigdirs target-libgloss"
3752     ;;
3753   i[3456789]86-*-sco3.2v5*)
3754     # The linker does not yet know about weak symbols in COFF,
3755     # and is not configured to handle mixed ELF and COFF.
3756     noconfigdirs="$noconfigdirs ld target-libgloss"
3757     ;;
3758   i[3456789]86-*-sco*)
3759     noconfigdirs="$noconfigdirs gprof target-libgloss"
3760     ;;
3761   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3762     noconfigdirs="$noconfigdirs target-libgloss"
3763     ;;
3764   i[3456789]86-*-sysv4*)
3765     noconfigdirs="$noconfigdirs target-libgloss"
3766     ;;
3767   i[3456789]86-*-beos*)
3768     noconfigdirs="$noconfigdirs gdb"
3769     ;;
3770   i[3456789]86-*-rdos*)
3771     noconfigdirs="$noconfigdirs gdb"
3772     ;;
3773   mmix-*-*)
3774     noconfigdirs="$noconfigdirs gdb"
3775     ;;
3776   mt-*-*)
3777     noconfigdirs="$noconfigdirs sim"
3778     ;;
3779   powerpc-*-aix*)
3780     # copied from rs6000-*-* entry
3781     noconfigdirs="$noconfigdirs gprof"
3782     ;;
3783   powerpc*-*-winnt* | powerpc*-*-pe*)
3784     target_configdirs="$target_configdirs target-winsup"
3785     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3786     # always build newlib.
3787     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3788     ;;
3789     # This is temporary until we can link against shared libraries
3790   powerpcle-*-solaris*)
3791     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3792     ;;
3793   powerpc-*-beos*)
3794     noconfigdirs="$noconfigdirs gdb"
3795     ;;
3796   rs6000-*-lynxos*)
3797     noconfigdirs="$noconfigdirs gprof"
3798     ;;
3799   rs6000-*-aix*)
3800     noconfigdirs="$noconfigdirs gprof"
3801     ;;
3802   rs6000-*-*)
3803     noconfigdirs="$noconfigdirs gprof"
3804     ;;
3805   m68k-apollo-*)
3806     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3807     ;;
3808   microblaze*)
3809     noconfigdirs="$noconfigdirs gprof"
3810     ;;
3811   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3812     if test x$with_newlib = xyes; then
3813       noconfigdirs="$noconfigdirs gprof"
3814     fi
3815     ;;
3816   mips*-*-irix5*)
3817     noconfigdirs="$noconfigdirs gprof target-libgloss"
3818     ;;
3819   mips*-*-irix6*)
3820     noconfigdirs="$noconfigdirs gprof target-libgloss"
3821     ;;
3822   mips*-*-bsd*)
3823     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3824     ;;
3825   mips*-*-linux*)
3826     ;;
3827   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3828   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3829     noconfigdirs="$noconfigdirs ld gas gprof"
3830     ;;
3831   mips*-*-*)
3832     noconfigdirs="$noconfigdirs gprof"
3833     ;;
3834   nvptx*-*-*)
3835     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3836     ;;
3837   or1k*-*-*)
3838     noconfigdirs="$noconfigdirs gdb"
3839     ;;
3840   sh-*-*)
3841     case "${target}" in
3842       sh*-*-elf)
3843          ;;
3844       *)
3845          noconfigdirs="$noconfigdirs target-libgloss" ;;
3846     esac
3847     ;;
3848   sparc-*-sunos4*)
3849     if test x${is_cross_compiler} = xno ; then
3850            use_gnu_ld=no
3851     fi
3852     ;;
3853   tic6x-*-*)
3854     noconfigdirs="$noconfigdirs sim"
3855     ;;
3856   tilepro*-*-* | tilegx*-*-*)
3857     noconfigdirs="$noconfigdirs sim"
3858     ;;
3859   v810-*-*)
3860     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3861     ;;
3862   vax-*-*)
3863     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3864     ;;
3865 esac
3866
3867 # If we aren't building newlib, then don't build libgloss, since libgloss
3868 # depends upon some newlib header files.
3869 case "${noconfigdirs}" in
3870   *target-libgloss*) ;;
3871   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3872 esac
3873
3874 # Work in distributions that contain no compiler tools, like Autoconf.
3875 host_makefile_frag=/dev/null
3876 if test -d ${srcdir}/config ; then
3877 case "${host}" in
3878   i[3456789]86-*-msdosdjgpp*)
3879     host_makefile_frag="config/mh-djgpp"
3880     ;;
3881   *-cygwin*)
3882
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3884 $as_echo_n "checking to see if cat works as expected... " >&6; }
3885 echo a >cygwin-cat-check
3886 if test `cat cygwin-cat-check` = a ; then
3887   rm cygwin-cat-check
3888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3889 $as_echo "yes" >&6; }
3890 else
3891   rm cygwin-cat-check
3892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3894   as_fn_error "The cat command does not ignore carriage return characters.
3895   Please either mount the build directory in binary mode or run the following
3896   commands before running any configure script:
3897 set -o igncr
3898 export SHELLOPTS
3899   " "$LINENO" 5
3900 fi
3901
3902     host_makefile_frag="config/mh-cygwin"
3903     ;;
3904   *-mingw*)
3905     host_makefile_frag="config/mh-mingw"
3906     ;;
3907   alpha*-linux*)
3908     host_makefile_frag="config/mh-alpha-linux"
3909     ;;
3910   hppa*-hp-hpux10*)
3911     host_makefile_frag="config/mh-pa-hpux10"
3912     ;;
3913   hppa*-hp-hpux*)
3914     host_makefile_frag="config/mh-pa"
3915     ;;
3916   hppa*-*)
3917     host_makefile_frag="config/mh-pa"
3918     ;;
3919   *-*-darwin*)
3920     host_makefile_frag="config/mh-darwin"
3921     ;;
3922   powerpc-*-aix*)
3923     host_makefile_frag="config/mh-ppc-aix"
3924     ;;
3925   rs6000-*-aix*)
3926     host_makefile_frag="config/mh-ppc-aix"
3927     ;;
3928 esac
3929 fi
3930
3931 if test "${build}" != "${host}" ; then
3932   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3933   AS_FOR_BUILD=${AS_FOR_BUILD-as}
3934   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3935   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3936   GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3937   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3938   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3939   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3940   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3941   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3942   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3943   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3944   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3945 else
3946   AR_FOR_BUILD="\$(AR)"
3947   AS_FOR_BUILD="\$(AS)"
3948   CC_FOR_BUILD="\$(CC)"
3949   CXX_FOR_BUILD="\$(CXX)"
3950   GCJ_FOR_BUILD="\$(GCJ)"
3951   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3952   GOC_FOR_BUILD="\$(GOC)"
3953   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3954   LD_FOR_BUILD="\$(LD)"
3955   NM_FOR_BUILD="\$(NM)"
3956   RANLIB_FOR_BUILD="\$(RANLIB)"
3957   WINDRES_FOR_BUILD="\$(WINDRES)"
3958   WINDMC_FOR_BUILD="\$(WINDMC)"
3959 fi
3960
3961 ac_ext=c
3962 ac_cpp='$CPP $CPPFLAGS'
3963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966 if test -n "$ac_tool_prefix"; then
3967   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3968 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970 $as_echo_n "checking for $ac_word... " >&6; }
3971 if test "${ac_cv_prog_CC+set}" = set; then :
3972   $as_echo_n "(cached) " >&6
3973 else
3974   if test -n "$CC"; then
3975   ac_cv_prog_CC="$CC" # Let the user override the test.
3976 else
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 for as_dir in $PATH
3979 do
3980   IFS=$as_save_IFS
3981   test -z "$as_dir" && as_dir=.
3982     for ac_exec_ext in '' $ac_executable_extensions; do
3983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3984     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3986     break 2
3987   fi
3988 done
3989   done
3990 IFS=$as_save_IFS
3991
3992 fi
3993 fi
3994 CC=$ac_cv_prog_CC
3995 if test -n "$CC"; then
3996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3997 $as_echo "$CC" >&6; }
3998 else
3999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4001 fi
4002
4003
4004 fi
4005 if test -z "$ac_cv_prog_CC"; then
4006   ac_ct_CC=$CC
4007   # Extract the first word of "gcc", so it can be a program name with args.
4008 set dummy gcc; ac_word=$2
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010 $as_echo_n "checking for $ac_word... " >&6; }
4011 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4012   $as_echo_n "(cached) " >&6
4013 else
4014   if test -n "$ac_ct_CC"; then
4015   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4019 do
4020   IFS=$as_save_IFS
4021   test -z "$as_dir" && as_dir=.
4022     for ac_exec_ext in '' $ac_executable_extensions; do
4023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4024     ac_cv_prog_ac_ct_CC="gcc"
4025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4026     break 2
4027   fi
4028 done
4029   done
4030 IFS=$as_save_IFS
4031
4032 fi
4033 fi
4034 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4035 if test -n "$ac_ct_CC"; then
4036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4037 $as_echo "$ac_ct_CC" >&6; }
4038 else
4039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4041 fi
4042
4043   if test "x$ac_ct_CC" = x; then
4044     CC=""
4045   else
4046     case $cross_compiling:$ac_tool_warned in
4047 yes:)
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4050 ac_tool_warned=yes ;;
4051 esac
4052     CC=$ac_ct_CC
4053   fi
4054 else
4055   CC="$ac_cv_prog_CC"
4056 fi
4057
4058 if test -z "$CC"; then
4059           if test -n "$ac_tool_prefix"; then
4060     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4061 set dummy ${ac_tool_prefix}cc; ac_word=$2
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063 $as_echo_n "checking for $ac_word... " >&6; }
4064 if test "${ac_cv_prog_CC+set}" = set; then :
4065   $as_echo_n "(cached) " >&6
4066 else
4067   if test -n "$CC"; then
4068   ac_cv_prog_CC="$CC" # Let the user override the test.
4069 else
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH
4072 do
4073   IFS=$as_save_IFS
4074   test -z "$as_dir" && as_dir=.
4075     for ac_exec_ext in '' $ac_executable_extensions; do
4076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4077     ac_cv_prog_CC="${ac_tool_prefix}cc"
4078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079     break 2
4080   fi
4081 done
4082   done
4083 IFS=$as_save_IFS
4084
4085 fi
4086 fi
4087 CC=$ac_cv_prog_CC
4088 if test -n "$CC"; then
4089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4090 $as_echo "$CC" >&6; }
4091 else
4092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 $as_echo "no" >&6; }
4094 fi
4095
4096
4097   fi
4098 fi
4099 if test -z "$CC"; then
4100   # Extract the first word of "cc", so it can be a program name with args.
4101 set dummy cc; ac_word=$2
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4103 $as_echo_n "checking for $ac_word... " >&6; }
4104 if test "${ac_cv_prog_CC+set}" = set; then :
4105   $as_echo_n "(cached) " >&6
4106 else
4107   if test -n "$CC"; then
4108   ac_cv_prog_CC="$CC" # Let the user override the test.
4109 else
4110   ac_prog_rejected=no
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4113 do
4114   IFS=$as_save_IFS
4115   test -z "$as_dir" && as_dir=.
4116     for ac_exec_ext in '' $ac_executable_extensions; do
4117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4118     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4119        ac_prog_rejected=yes
4120        continue
4121      fi
4122     ac_cv_prog_CC="cc"
4123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4124     break 2
4125   fi
4126 done
4127   done
4128 IFS=$as_save_IFS
4129
4130 if test $ac_prog_rejected = yes; then
4131   # We found a bogon in the path, so make sure we never use it.
4132   set dummy $ac_cv_prog_CC
4133   shift
4134   if test $# != 0; then
4135     # We chose a different compiler from the bogus one.
4136     # However, it has the same basename, so the bogon will be chosen
4137     # first if we set CC to just the basename; use the full file name.
4138     shift
4139     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4140   fi
4141 fi
4142 fi
4143 fi
4144 CC=$ac_cv_prog_CC
4145 if test -n "$CC"; then
4146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4147 $as_echo "$CC" >&6; }
4148 else
4149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4151 fi
4152
4153
4154 fi
4155 if test -z "$CC"; then
4156   if test -n "$ac_tool_prefix"; then
4157   for ac_prog in cl.exe
4158   do
4159     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 $as_echo_n "checking for $ac_word... " >&6; }
4163 if test "${ac_cv_prog_CC+set}" = set; then :
4164   $as_echo_n "(cached) " >&6
4165 else
4166   if test -n "$CC"; then
4167   ac_cv_prog_CC="$CC" # Let the user override the test.
4168 else
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4171 do
4172   IFS=$as_save_IFS
4173   test -z "$as_dir" && as_dir=.
4174     for ac_exec_ext in '' $ac_executable_extensions; do
4175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4176     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4178     break 2
4179   fi
4180 done
4181   done
4182 IFS=$as_save_IFS
4183
4184 fi
4185 fi
4186 CC=$ac_cv_prog_CC
4187 if test -n "$CC"; then
4188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4189 $as_echo "$CC" >&6; }
4190 else
4191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192 $as_echo "no" >&6; }
4193 fi
4194
4195
4196     test -n "$CC" && break
4197   done
4198 fi
4199 if test -z "$CC"; then
4200   ac_ct_CC=$CC
4201   for ac_prog in cl.exe
4202 do
4203   # Extract the first word of "$ac_prog", so it can be a program name with args.
4204 set dummy $ac_prog; ac_word=$2
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4208   $as_echo_n "(cached) " >&6
4209 else
4210   if test -n "$ac_ct_CC"; then
4211   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218     for ac_exec_ext in '' $ac_executable_extensions; do
4219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4220     ac_cv_prog_ac_ct_CC="$ac_prog"
4221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4222     break 2
4223   fi
4224 done
4225   done
4226 IFS=$as_save_IFS
4227
4228 fi
4229 fi
4230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4231 if test -n "$ac_ct_CC"; then
4232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4233 $as_echo "$ac_ct_CC" >&6; }
4234 else
4235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 $as_echo "no" >&6; }
4237 fi
4238
4239
4240   test -n "$ac_ct_CC" && break
4241 done
4242
4243   if test "x$ac_ct_CC" = x; then
4244     CC=""
4245   else
4246     case $cross_compiling:$ac_tool_warned in
4247 yes:)
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4250 ac_tool_warned=yes ;;
4251 esac
4252     CC=$ac_ct_CC
4253   fi
4254 fi
4255
4256 fi
4257
4258
4259 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4261 as_fn_error "no acceptable C compiler found in \$PATH
4262 See \`config.log' for more details." "$LINENO" 5; }
4263
4264 # Provide some information about the compiler.
4265 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4266 set X $ac_compile
4267 ac_compiler=$2
4268 for ac_option in --version -v -V -qversion; do
4269   { { ac_try="$ac_compiler $ac_option >&5"
4270 case "(($ac_try" in
4271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272   *) ac_try_echo=$ac_try;;
4273 esac
4274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4275 $as_echo "$ac_try_echo"; } >&5
4276   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4277   ac_status=$?
4278   if test -s conftest.err; then
4279     sed '10a\
4280 ... rest of stderr output deleted ...
4281          10q' conftest.err >conftest.er1
4282     cat conftest.er1 >&5
4283     rm -f conftest.er1 conftest.err
4284   fi
4285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4286   test $ac_status = 0; }
4287 done
4288
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h.  */
4291
4292 int
4293 main ()
4294 {
4295
4296   ;
4297   return 0;
4298 }
4299 _ACEOF
4300 ac_clean_files_save=$ac_clean_files
4301 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4302 # Try to create an executable without -o first, disregard a.out.
4303 # It will help us diagnose broken compilers, and finding out an intuition
4304 # of exeext.
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4306 $as_echo_n "checking for C compiler default output file name... " >&6; }
4307 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4308
4309 # The possible output files:
4310 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4311
4312 ac_rmfiles=
4313 for ac_file in $ac_files
4314 do
4315   case $ac_file in
4316     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4317     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4318   esac
4319 done
4320 rm -f $ac_rmfiles
4321
4322 if { { ac_try="$ac_link_default"
4323 case "(($ac_try" in
4324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325   *) ac_try_echo=$ac_try;;
4326 esac
4327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4328 $as_echo "$ac_try_echo"; } >&5
4329   (eval "$ac_link_default") 2>&5
4330   ac_status=$?
4331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4332   test $ac_status = 0; }; then :
4333   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4334 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4335 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4336 # so that the user can short-circuit this test for compilers unknown to
4337 # Autoconf.
4338 for ac_file in $ac_files ''
4339 do
4340   test -f "$ac_file" || continue
4341   case $ac_file in
4342     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4343         ;;
4344     [ab].out )
4345         # We found the default executable, but exeext='' is most
4346         # certainly right.
4347         break;;
4348     *.* )
4349         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4350         then :; else
4351            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4352         fi
4353         # We set ac_cv_exeext here because the later test for it is not
4354         # safe: cross compilers may not add the suffix if given an `-o'
4355         # argument, so we may need to know it at that point already.
4356         # Even if this section looks crufty: it has the advantage of
4357         # actually working.
4358         break;;
4359     * )
4360         break;;
4361   esac
4362 done
4363 test "$ac_cv_exeext" = no && ac_cv_exeext=
4364
4365 else
4366   ac_file=''
4367 fi
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4369 $as_echo "$ac_file" >&6; }
4370 if test -z "$ac_file"; then :
4371   $as_echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4373
4374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4376 { as_fn_set_status 77
4377 as_fn_error "C compiler cannot create executables
4378 See \`config.log' for more details." "$LINENO" 5; }; }
4379 fi
4380 ac_exeext=$ac_cv_exeext
4381
4382 # Check that the compiler produces executables we can run.  If not, either
4383 # the compiler is broken, or we cross compile.
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4385 $as_echo_n "checking whether the C compiler works... " >&6; }
4386 # If not cross compiling, check that we can run a simple program.
4387 if test "$cross_compiling" != yes; then
4388   if { ac_try='./$ac_file'
4389   { { case "(($ac_try" in
4390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391   *) ac_try_echo=$ac_try;;
4392 esac
4393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4394 $as_echo "$ac_try_echo"; } >&5
4395   (eval "$ac_try") 2>&5
4396   ac_status=$?
4397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4398   test $ac_status = 0; }; }; then
4399     cross_compiling=no
4400   else
4401     if test "$cross_compiling" = maybe; then
4402         cross_compiling=yes
4403     else
4404         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4406 as_fn_error "cannot run C compiled programs.
4407 If you meant to cross compile, use \`--host'.
4408 See \`config.log' for more details." "$LINENO" 5; }
4409     fi
4410   fi
4411 fi
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4413 $as_echo "yes" >&6; }
4414
4415 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4416 ac_clean_files=$ac_clean_files_save
4417 # Check that the compiler produces executables we can run.  If not, either
4418 # the compiler is broken, or we cross compile.
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4420 $as_echo_n "checking whether we are cross compiling... " >&6; }
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4422 $as_echo "$cross_compiling" >&6; }
4423
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4425 $as_echo_n "checking for suffix of executables... " >&6; }
4426 if { { ac_try="$ac_link"
4427 case "(($ac_try" in
4428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429   *) ac_try_echo=$ac_try;;
4430 esac
4431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432 $as_echo "$ac_try_echo"; } >&5
4433   (eval "$ac_link") 2>&5
4434   ac_status=$?
4435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436   test $ac_status = 0; }; then :
4437   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4438 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4439 # work properly (i.e., refer to `conftest.exe'), while it won't with
4440 # `rm'.
4441 for ac_file in conftest.exe conftest conftest.*; do
4442   test -f "$ac_file" || continue
4443   case $ac_file in
4444     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4445     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4446           break;;
4447     * ) break;;
4448   esac
4449 done
4450 else
4451   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4453 as_fn_error "cannot compute suffix of executables: cannot compile and link
4454 See \`config.log' for more details." "$LINENO" 5; }
4455 fi
4456 rm -f conftest$ac_cv_exeext
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4458 $as_echo "$ac_cv_exeext" >&6; }
4459
4460 rm -f conftest.$ac_ext
4461 EXEEXT=$ac_cv_exeext
4462 ac_exeext=$EXEEXT
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4464 $as_echo_n "checking for suffix of object files... " >&6; }
4465 if test "${ac_cv_objext+set}" = set; then :
4466   $as_echo_n "(cached) " >&6
4467 else
4468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h.  */
4470
4471 int
4472 main ()
4473 {
4474
4475   ;
4476   return 0;
4477 }
4478 _ACEOF
4479 rm -f conftest.o conftest.obj
4480 if { { ac_try="$ac_compile"
4481 case "(($ac_try" in
4482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483   *) ac_try_echo=$ac_try;;
4484 esac
4485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4486 $as_echo "$ac_try_echo"; } >&5
4487   (eval "$ac_compile") 2>&5
4488   ac_status=$?
4489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4490   test $ac_status = 0; }; then :
4491   for ac_file in conftest.o conftest.obj conftest.*; do
4492   test -f "$ac_file" || continue;
4493   case $ac_file in
4494     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4495     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4496        break;;
4497   esac
4498 done
4499 else
4500   $as_echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4502
4503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4505 as_fn_error "cannot compute suffix of object files: cannot compile
4506 See \`config.log' for more details." "$LINENO" 5; }
4507 fi
4508 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4509 fi
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4511 $as_echo "$ac_cv_objext" >&6; }
4512 OBJEXT=$ac_cv_objext
4513 ac_objext=$OBJEXT
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4515 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4516 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4517   $as_echo_n "(cached) " >&6
4518 else
4519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h.  */
4521
4522 int
4523 main ()
4524 {
4525 #ifndef __GNUC__
4526        choke me
4527 #endif
4528
4529   ;
4530   return 0;
4531 }
4532 _ACEOF
4533 if ac_fn_c_try_compile "$LINENO"; then :
4534   ac_compiler_gnu=yes
4535 else
4536   ac_compiler_gnu=no
4537 fi
4538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4539 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4540
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4543 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4544 if test $ac_compiler_gnu = yes; then
4545   GCC=yes
4546 else
4547   GCC=
4548 fi
4549 ac_test_CFLAGS=${CFLAGS+set}
4550 ac_save_CFLAGS=$CFLAGS
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4552 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4553 if test "${ac_cv_prog_cc_g+set}" = set; then :
4554   $as_echo_n "(cached) " >&6
4555 else
4556   ac_save_c_werror_flag=$ac_c_werror_flag
4557    ac_c_werror_flag=yes
4558    ac_cv_prog_cc_g=no
4559    CFLAGS="-g"
4560    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h.  */
4562
4563 int
4564 main ()
4565 {
4566
4567   ;
4568   return 0;
4569 }
4570 _ACEOF
4571 if ac_fn_c_try_compile "$LINENO"; then :
4572   ac_cv_prog_cc_g=yes
4573 else
4574   CFLAGS=""
4575       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h.  */
4577
4578 int
4579 main ()
4580 {
4581
4582   ;
4583   return 0;
4584 }
4585 _ACEOF
4586 if ac_fn_c_try_compile "$LINENO"; then :
4587
4588 else
4589   ac_c_werror_flag=$ac_save_c_werror_flag
4590          CFLAGS="-g"
4591          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h.  */
4593
4594 int
4595 main ()
4596 {
4597
4598   ;
4599   return 0;
4600 }
4601 _ACEOF
4602 if ac_fn_c_try_compile "$LINENO"; then :
4603   ac_cv_prog_cc_g=yes
4604 fi
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 fi
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 fi
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610    ac_c_werror_flag=$ac_save_c_werror_flag
4611 fi
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4613 $as_echo "$ac_cv_prog_cc_g" >&6; }
4614 if test "$ac_test_CFLAGS" = set; then
4615   CFLAGS=$ac_save_CFLAGS
4616 elif test $ac_cv_prog_cc_g = yes; then
4617   if test "$GCC" = yes; then
4618     CFLAGS="-g -O2"
4619   else
4620     CFLAGS="-g"
4621   fi
4622 else
4623   if test "$GCC" = yes; then
4624     CFLAGS="-O2"
4625   else
4626     CFLAGS=
4627   fi
4628 fi
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4630 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4631 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4632   $as_echo_n "(cached) " >&6
4633 else
4634   ac_cv_prog_cc_c89=no
4635 ac_save_CC=$CC
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h.  */
4638 #include <stdarg.h>
4639 #include <stdio.h>
4640 #include <sys/types.h>
4641 #include <sys/stat.h>
4642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4643 struct buf { int x; };
4644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4645 static char *e (p, i)
4646      char **p;
4647      int i;
4648 {
4649   return p[i];
4650 }
4651 static char *f (char * (*g) (char **, int), char **p, ...)
4652 {
4653   char *s;
4654   va_list v;
4655   va_start (v,p);
4656   s = g (p, va_arg (v,int));
4657   va_end (v);
4658   return s;
4659 }
4660
4661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4662    function prototypes and stuff, but not '\xHH' hex character constants.
4663    These don't provoke an error unfortunately, instead are silently treated
4664    as 'x'.  The following induces an error, until -std is added to get
4665    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4666    array size at least.  It's necessary to write '\x00'==0 to get something
4667    that's true only with -std.  */
4668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4669
4670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4671    inside strings and character constants.  */
4672 #define FOO(x) 'x'
4673 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4674
4675 int test (int i, double x);
4676 struct s1 {int (*f) (int a);};
4677 struct s2 {int (*f) (double a);};
4678 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4679 int argc;
4680 char **argv;
4681 int
4682 main ()
4683 {
4684 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4685   ;
4686   return 0;
4687 }
4688 _ACEOF
4689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4690         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4691 do
4692   CC="$ac_save_CC $ac_arg"
4693   if ac_fn_c_try_compile "$LINENO"; then :
4694   ac_cv_prog_cc_c89=$ac_arg
4695 fi
4696 rm -f core conftest.err conftest.$ac_objext
4697   test "x$ac_cv_prog_cc_c89" != "xno" && break
4698 done
4699 rm -f conftest.$ac_ext
4700 CC=$ac_save_CC
4701
4702 fi
4703 # AC_CACHE_VAL
4704 case "x$ac_cv_prog_cc_c89" in
4705   x)
4706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4707 $as_echo "none needed" >&6; } ;;
4708   xno)
4709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4710 $as_echo "unsupported" >&6; } ;;
4711   *)
4712     CC="$CC $ac_cv_prog_cc_c89"
4713     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4714 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4715 esac
4716 if test "x$ac_cv_prog_cc_c89" != xno; then :
4717
4718 fi
4719
4720 ac_ext=c
4721 ac_cpp='$CPP $CPPFLAGS'
4722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4725
4726 ac_ext=cpp
4727 ac_cpp='$CXXCPP $CPPFLAGS'
4728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4731 if test -z "$CXX"; then
4732   if test -n "$CCC"; then
4733     CXX=$CCC
4734   else
4735     if test -n "$ac_tool_prefix"; then
4736   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4737   do
4738     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 $as_echo_n "checking for $ac_word... " >&6; }
4742 if test "${ac_cv_prog_CXX+set}" = set; then :
4743   $as_echo_n "(cached) " >&6
4744 else
4745   if test -n "$CXX"; then
4746   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4747 else
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4750 do
4751   IFS=$as_save_IFS
4752   test -z "$as_dir" && as_dir=.
4753     for ac_exec_ext in '' $ac_executable_extensions; do
4754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4757     break 2
4758   fi
4759 done
4760   done
4761 IFS=$as_save_IFS
4762
4763 fi
4764 fi
4765 CXX=$ac_cv_prog_CXX
4766 if test -n "$CXX"; then
4767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4768 $as_echo "$CXX" >&6; }
4769 else
4770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771 $as_echo "no" >&6; }
4772 fi
4773
4774
4775     test -n "$CXX" && break
4776   done
4777 fi
4778 if test -z "$CXX"; then
4779   ac_ct_CXX=$CXX
4780   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4781 do
4782   # Extract the first word of "$ac_prog", so it can be a program name with args.
4783 set dummy $ac_prog; ac_word=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4787   $as_echo_n "(cached) " >&6
4788 else
4789   if test -n "$ac_ct_CXX"; then
4790   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4791 else
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795   IFS=$as_save_IFS
4796   test -z "$as_dir" && as_dir=.
4797     for ac_exec_ext in '' $ac_executable_extensions; do
4798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799     ac_cv_prog_ac_ct_CXX="$ac_prog"
4800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801     break 2
4802   fi
4803 done
4804   done
4805 IFS=$as_save_IFS
4806
4807 fi
4808 fi
4809 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4810 if test -n "$ac_ct_CXX"; then
4811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4812 $as_echo "$ac_ct_CXX" >&6; }
4813 else
4814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4816 fi
4817
4818
4819   test -n "$ac_ct_CXX" && break
4820 done
4821
4822   if test "x$ac_ct_CXX" = x; then
4823     CXX="g++"
4824   else
4825     case $cross_compiling:$ac_tool_warned in
4826 yes:)
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4829 ac_tool_warned=yes ;;
4830 esac
4831     CXX=$ac_ct_CXX
4832   fi
4833 fi
4834
4835   fi
4836 fi
4837 # Provide some information about the compiler.
4838 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4839 set X $ac_compile
4840 ac_compiler=$2
4841 for ac_option in --version -v -V -qversion; do
4842   { { ac_try="$ac_compiler $ac_option >&5"
4843 case "(($ac_try" in
4844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845   *) ac_try_echo=$ac_try;;
4846 esac
4847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4848 $as_echo "$ac_try_echo"; } >&5
4849   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4850   ac_status=$?
4851   if test -s conftest.err; then
4852     sed '10a\
4853 ... rest of stderr output deleted ...
4854          10q' conftest.err >conftest.er1
4855     cat conftest.er1 >&5
4856     rm -f conftest.er1 conftest.err
4857   fi
4858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4859   test $ac_status = 0; }
4860 done
4861
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4863 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4864 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4865   $as_echo_n "(cached) " >&6
4866 else
4867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h.  */
4869
4870 int
4871 main ()
4872 {
4873 #ifndef __GNUC__
4874        choke me
4875 #endif
4876
4877   ;
4878   return 0;
4879 }
4880 _ACEOF
4881 if ac_fn_cxx_try_compile "$LINENO"; then :
4882   ac_compiler_gnu=yes
4883 else
4884   ac_compiler_gnu=no
4885 fi
4886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4888
4889 fi
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4891 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4892 if test $ac_compiler_gnu = yes; then
4893   GXX=yes
4894 else
4895   GXX=
4896 fi
4897 ac_test_CXXFLAGS=${CXXFLAGS+set}
4898 ac_save_CXXFLAGS=$CXXFLAGS
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4900 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4901 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4902   $as_echo_n "(cached) " >&6
4903 else
4904   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4905    ac_cxx_werror_flag=yes
4906    ac_cv_prog_cxx_g=no
4907    CXXFLAGS="-g"
4908    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h.  */
4910
4911 int
4912 main ()
4913 {
4914
4915   ;
4916   return 0;
4917 }
4918 _ACEOF
4919 if ac_fn_cxx_try_compile "$LINENO"; then :
4920   ac_cv_prog_cxx_g=yes
4921 else
4922   CXXFLAGS=""
4923       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h.  */
4925
4926 int
4927 main ()
4928 {
4929
4930   ;
4931   return 0;
4932 }
4933 _ACEOF
4934 if ac_fn_cxx_try_compile "$LINENO"; then :
4935
4936 else
4937   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4938          CXXFLAGS="-g"
4939          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h.  */
4941
4942 int
4943 main ()
4944 {
4945
4946   ;
4947   return 0;
4948 }
4949 _ACEOF
4950 if ac_fn_cxx_try_compile "$LINENO"; then :
4951   ac_cv_prog_cxx_g=yes
4952 fi
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 fi
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 fi
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4959 fi
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4961 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4962 if test "$ac_test_CXXFLAGS" = set; then
4963   CXXFLAGS=$ac_save_CXXFLAGS
4964 elif test $ac_cv_prog_cxx_g = yes; then
4965   if test "$GXX" = yes; then
4966     CXXFLAGS="-g -O2"
4967   else
4968     CXXFLAGS="-g"
4969   fi
4970 else
4971   if test "$GXX" = yes; then
4972     CXXFLAGS="-O2"
4973   else
4974     CXXFLAGS=
4975   fi
4976 fi
4977 ac_ext=c
4978 ac_cpp='$CPP $CPPFLAGS'
4979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982
4983
4984 # We must set the default linker to the linker used by gcc for the correct
4985 # operation of libtool.  If LD is not defined and we are using gcc, try to
4986 # set the LD default to the ld used by gcc.
4987 if test -z "$LD"; then
4988   if test "$GCC" = yes; then
4989     case $build in
4990     *-*-mingw*)
4991       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4992     *)
4993       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4994     esac
4995     case $gcc_prog_ld in
4996     # Accept absolute paths.
4997     [\\/]* | [A-Za-z]:[\\/]*)
4998       LD="$gcc_prog_ld" ;;
4999     esac
5000   fi
5001 fi
5002
5003 # Check whether -static-libstdc++ -static-libgcc is supported.
5004 have_static_libs=no
5005 if test "$GCC" = yes; then
5006   saved_LDFLAGS="$LDFLAGS"
5007
5008   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5010 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5011   ac_ext=cpp
5012 ac_cpp='$CXXCPP $CPPFLAGS'
5013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5016
5017
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h.  */
5020
5021 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5022 #error -static-libstdc++ not implemented
5023 #endif
5024 int main() {}
5025 _ACEOF
5026 if ac_fn_cxx_try_link "$LINENO"; then :
5027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5028 $as_echo "yes" >&6; }; have_static_libs=yes
5029 else
5030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5032 fi
5033 rm -f core conftest.err conftest.$ac_objext \
5034     conftest$ac_exeext conftest.$ac_ext
5035   ac_ext=c
5036 ac_cpp='$CPP $CPPFLAGS'
5037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5040
5041
5042   LDFLAGS="$saved_LDFLAGS"
5043 fi
5044
5045
5046
5047
5048 if test -n "$ac_tool_prefix"; then
5049   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5050 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5054   $as_echo_n "(cached) " >&6
5055 else
5056   if test -n "$GNATBIND"; then
5057   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062   IFS=$as_save_IFS
5063   test -z "$as_dir" && as_dir=.
5064     for ac_exec_ext in '' $ac_executable_extensions; do
5065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068     break 2
5069   fi
5070 done
5071   done
5072 IFS=$as_save_IFS
5073
5074 fi
5075 fi
5076 GNATBIND=$ac_cv_prog_GNATBIND
5077 if test -n "$GNATBIND"; then
5078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5079 $as_echo "$GNATBIND" >&6; }
5080 else
5081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5083 fi
5084
5085
5086 fi
5087 if test -z "$ac_cv_prog_GNATBIND"; then
5088   ac_ct_GNATBIND=$GNATBIND
5089   # Extract the first word of "gnatbind", so it can be a program name with args.
5090 set dummy gnatbind; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5094   $as_echo_n "(cached) " >&6
5095 else
5096   if test -n "$ac_ct_GNATBIND"; then
5097   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102   IFS=$as_save_IFS
5103   test -z "$as_dir" && as_dir=.
5104     for ac_exec_ext in '' $ac_executable_extensions; do
5105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5106     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108     break 2
5109   fi
5110 done
5111   done
5112 IFS=$as_save_IFS
5113
5114 fi
5115 fi
5116 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5117 if test -n "$ac_ct_GNATBIND"; then
5118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5119 $as_echo "$ac_ct_GNATBIND" >&6; }
5120 else
5121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5123 fi
5124
5125   if test "x$ac_ct_GNATBIND" = x; then
5126     GNATBIND="no"
5127   else
5128     case $cross_compiling:$ac_tool_warned in
5129 yes:)
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5132 ac_tool_warned=yes ;;
5133 esac
5134     GNATBIND=$ac_ct_GNATBIND
5135   fi
5136 else
5137   GNATBIND="$ac_cv_prog_GNATBIND"
5138 fi
5139
5140 if test -n "$ac_tool_prefix"; then
5141   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5142 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5146   $as_echo_n "(cached) " >&6
5147 else
5148   if test -n "$GNATMAKE"; then
5149   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5150 else
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154   IFS=$as_save_IFS
5155   test -z "$as_dir" && as_dir=.
5156     for ac_exec_ext in '' $ac_executable_extensions; do
5157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160     break 2
5161   fi
5162 done
5163   done
5164 IFS=$as_save_IFS
5165
5166 fi
5167 fi
5168 GNATMAKE=$ac_cv_prog_GNATMAKE
5169 if test -n "$GNATMAKE"; then
5170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5171 $as_echo "$GNATMAKE" >&6; }
5172 else
5173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5175 fi
5176
5177
5178 fi
5179 if test -z "$ac_cv_prog_GNATMAKE"; then
5180   ac_ct_GNATMAKE=$GNATMAKE
5181   # Extract the first word of "gnatmake", so it can be a program name with args.
5182 set dummy gnatmake; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5186   $as_echo_n "(cached) " >&6
5187 else
5188   if test -n "$ac_ct_GNATMAKE"; then
5189   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5190 else
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5193 do
5194   IFS=$as_save_IFS
5195   test -z "$as_dir" && as_dir=.
5196     for ac_exec_ext in '' $ac_executable_extensions; do
5197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5198     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200     break 2
5201   fi
5202 done
5203   done
5204 IFS=$as_save_IFS
5205
5206 fi
5207 fi
5208 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5209 if test -n "$ac_ct_GNATMAKE"; then
5210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5211 $as_echo "$ac_ct_GNATMAKE" >&6; }
5212 else
5213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5215 fi
5216
5217   if test "x$ac_ct_GNATMAKE" = x; then
5218     GNATMAKE="no"
5219   else
5220     case $cross_compiling:$ac_tool_warned in
5221 yes:)
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5224 ac_tool_warned=yes ;;
5225 esac
5226     GNATMAKE=$ac_ct_GNATMAKE
5227   fi
5228 else
5229   GNATMAKE="$ac_cv_prog_GNATMAKE"
5230 fi
5231
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5233 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5234 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5235   $as_echo_n "(cached) " >&6
5236 else
5237   cat >conftest.adb <<EOF
5238 procedure conftest is begin null; end conftest;
5239 EOF
5240 acx_cv_cc_gcc_supports_ada=no
5241 # There is a bug in old released versions of GCC which causes the
5242 # driver to exit successfully when the appropriate language module
5243 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5244 # Therefore we must check for the error message as well as an
5245 # unsuccessful exit.
5246 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5247 # given a .adb file, but produce no object file.  So we must check
5248 # if an object file was really produced to guard against this.
5249 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5250 if test x"$errors" = x && test -f conftest.$ac_objext; then
5251   acx_cv_cc_gcc_supports_ada=yes
5252 fi
5253 rm -f conftest.*
5254 fi
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5256 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5257
5258 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5259   have_gnat=yes
5260 else
5261   have_gnat=no
5262 fi
5263
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5265 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5266 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5267   $as_echo_n "(cached) " >&6
5268 else
5269    echo abfoo >t1
5270   echo cdfoo >t2
5271   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5272   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5273     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5274       :
5275     else
5276       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5277     fi
5278   fi
5279   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5280     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5281       :
5282     else
5283       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5284     fi
5285   fi
5286   rm t1 t2
5287
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5290 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5291 do_compare="$gcc_cv_prog_cmp_skip"
5292
5293
5294
5295 # Check whether --enable-bootstrap was given.
5296 if test "${enable_bootstrap+set}" = set; then :
5297   enableval=$enable_bootstrap;
5298 else
5299   enable_bootstrap=default
5300 fi
5301
5302
5303 # Issue errors and warnings for invalid/strange bootstrap combinations.
5304 if test -r $srcdir/gcc/configure; then
5305   have_compiler=yes
5306 else
5307   have_compiler=no
5308 fi
5309
5310 case "$have_compiler:$host:$target:$enable_bootstrap" in
5311   *:*:*:no) ;;
5312
5313   # Default behavior.  Enable bootstrap if we have a compiler
5314   # and we are in a native configuration.
5315   yes:$build:$build:default)
5316     enable_bootstrap=yes ;;
5317
5318   *:*:*:default)
5319     enable_bootstrap=no ;;
5320
5321   # We have a compiler and we are in a native configuration, bootstrap is ok
5322   yes:$build:$build:yes)
5323     ;;
5324
5325   # Other configurations, but we have a compiler.  Assume the user knows
5326   # what he's doing.
5327   yes:*:*:yes)
5328     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5329 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5330     ;;
5331
5332   # No compiler: if they passed --enable-bootstrap explicitly, fail
5333   no:*:*:yes)
5334     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5335
5336   # Fail if wrong command line
5337   *)
5338     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5339     ;;
5340 esac
5341
5342 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5343 # C++98 compiler can still start the bootstrap.
5344 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5345   CXX="$CXX -std=gnu++98"
5346 fi
5347
5348 # Used for setting $lt_cv_objdir
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5350 $as_echo_n "checking for objdir... " >&6; }
5351 if test "${lt_cv_objdir+set}" = set; then :
5352   $as_echo_n "(cached) " >&6
5353 else
5354   rm -f .libs 2>/dev/null
5355 mkdir .libs 2>/dev/null
5356 if test -d .libs; then
5357   lt_cv_objdir=.libs
5358 else
5359   # MS-DOS does not allow filenames that begin with a dot.
5360   lt_cv_objdir=_libs
5361 fi
5362 rmdir .libs 2>/dev/null
5363 fi
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5365 $as_echo "$lt_cv_objdir" >&6; }
5366 objdir=$lt_cv_objdir
5367
5368
5369
5370
5371
5372 cat >>confdefs.h <<_ACEOF
5373 #define LT_OBJDIR "$lt_cv_objdir/"
5374 _ACEOF
5375
5376
5377
5378 # Check for GMP, MPFR and MPC
5379 gmplibs="-lmpc -lmpfr -lgmp"
5380 gmpinc=
5381 have_gmp=no
5382
5383 # Specify a location for mpc
5384 # check for this first so it ends up on the link line before mpfr.
5385
5386 # Check whether --with-mpc was given.
5387 if test "${with_mpc+set}" = set; then :
5388   withval=$with_mpc;
5389 fi
5390
5391
5392 # Check whether --with-mpc-include was given.
5393 if test "${with_mpc_include+set}" = set; then :
5394   withval=$with_mpc_include;
5395 fi
5396
5397
5398 # Check whether --with-mpc-lib was given.
5399 if test "${with_mpc_lib+set}" = set; then :
5400   withval=$with_mpc_lib;
5401 fi
5402
5403
5404 if test "x$with_mpc" != x; then
5405   gmplibs="-L$with_mpc/lib $gmplibs"
5406   gmpinc="-I$with_mpc/include $gmpinc"
5407 fi
5408 if test "x$with_mpc_include" != x; then
5409   gmpinc="-I$with_mpc_include $gmpinc"
5410 fi
5411 if test "x$with_mpc_lib" != x; then
5412   gmplibs="-L$with_mpc_lib $gmplibs"
5413 fi
5414 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5415   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5416   gmpinc='-I$$s/mpc/src '"$gmpinc"
5417   # Do not test the mpc version.  Assume that it is sufficient, since
5418   # it is in the source tree, and the library has not been built yet
5419   # but it would be included on the link line in the version check below
5420   # hence making the test fail.
5421   have_gmp=yes
5422 fi
5423
5424 # Specify a location for mpfr
5425 # check for this first so it ends up on the link line before gmp.
5426
5427 # Check whether --with-mpfr-dir was given.
5428 if test "${with_mpfr_dir+set}" = set; then :
5429   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5430 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5431 fi
5432
5433
5434
5435 # Check whether --with-mpfr was given.
5436 if test "${with_mpfr+set}" = set; then :
5437   withval=$with_mpfr;
5438 fi
5439
5440
5441 # Check whether --with-mpfr-include was given.
5442 if test "${with_mpfr_include+set}" = set; then :
5443   withval=$with_mpfr_include;
5444 fi
5445
5446
5447 # Check whether --with-mpfr-lib was given.
5448 if test "${with_mpfr_lib+set}" = set; then :
5449   withval=$with_mpfr_lib;
5450 fi
5451
5452
5453 if test "x$with_mpfr" != x; then
5454   gmplibs="-L$with_mpfr/lib $gmplibs"
5455   gmpinc="-I$with_mpfr/include $gmpinc"
5456 fi
5457 if test "x$with_mpfr_include" != x; then
5458   gmpinc="-I$with_mpfr_include $gmpinc"
5459 fi
5460 if test "x$with_mpfr_lib" != x; then
5461   gmplibs="-L$with_mpfr_lib $gmplibs"
5462 fi
5463 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5464   # MPFR v3.1.0 moved the sources into a src sub-directory.
5465   if ! test -d ${srcdir}/mpfr/src; then
5466     as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5467   fi
5468   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5469   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5470   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5471   # Do not test the mpfr version.  Assume that it is sufficient, since
5472   # it is in the source tree, and the library has not been built yet
5473   # but it would be included on the link line in the version check below
5474   # hence making the test fail.
5475   have_gmp=yes
5476 fi
5477
5478 # Specify a location for gmp
5479
5480 # Check whether --with-gmp-dir was given.
5481 if test "${with_gmp_dir+set}" = set; then :
5482   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5483 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5484 fi
5485
5486
5487
5488 # Check whether --with-gmp was given.
5489 if test "${with_gmp+set}" = set; then :
5490   withval=$with_gmp;
5491 fi
5492
5493
5494 # Check whether --with-gmp-include was given.
5495 if test "${with_gmp_include+set}" = set; then :
5496   withval=$with_gmp_include;
5497 fi
5498
5499
5500 # Check whether --with-gmp-lib was given.
5501 if test "${with_gmp_lib+set}" = set; then :
5502   withval=$with_gmp_lib;
5503 fi
5504
5505
5506
5507 if test "x$with_gmp" != x; then
5508   gmplibs="-L$with_gmp/lib $gmplibs"
5509   gmpinc="-I$with_gmp/include $gmpinc"
5510 fi
5511 if test "x$with_gmp_include" != x; then
5512   gmpinc="-I$with_gmp_include $gmpinc"
5513 fi
5514 if test "x$with_gmp_lib" != x; then
5515   gmplibs="-L$with_gmp_lib $gmplibs"
5516 fi
5517 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5518   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5519   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5520   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5521   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5522   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5523   # Do not test the gmp version.  Assume that it is sufficient, since
5524   # it is in the source tree, and the library has not been built yet
5525   # but it would be included on the link line in the version check below
5526   # hence making the test fail.
5527   have_gmp=yes
5528 fi
5529
5530 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5531   have_gmp=yes
5532   saved_CFLAGS="$CFLAGS"
5533   CFLAGS="$CFLAGS $gmpinc"
5534   # Check for the recommended and required versions of GMP.
5535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5536 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5537
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h.  */
5540 #include "gmp.h"
5541 int
5542 main ()
5543 {
5544
5545   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5546   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5547   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5548   choke me
5549   #endif
5550
5551   ;
5552   return 0;
5553 }
5554 _ACEOF
5555 if ac_fn_c_try_compile "$LINENO"; then :
5556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h.  */
5558 #include <gmp.h>
5559 int
5560 main ()
5561 {
5562
5563   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5564   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5565   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5566   choke me
5567   #endif
5568
5569   ;
5570   return 0;
5571 }
5572 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"; then :
5574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5575 $as_echo "yes" >&6; }
5576 else
5577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5578 $as_echo "buggy but acceptable" >&6; }
5579 fi
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 else
5582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583 $as_echo "no" >&6; }; have_gmp=no
5584 fi
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586
5587   # If we have GMP, check the MPFR version.
5588   if test x"$have_gmp" = xyes; then
5589     # Check for the recommended and required versions of MPFR.
5590     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5591 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5592     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h.  */
5594 #include <gmp.h>
5595     #include <mpfr.h>
5596 int
5597 main ()
5598 {
5599
5600     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5601     choke me
5602     #endif
5603
5604   ;
5605   return 0;
5606 }
5607 _ACEOF
5608 if ac_fn_c_try_compile "$LINENO"; then :
5609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h.  */
5611 #include <gmp.h>
5612     #include <mpfr.h>
5613 int
5614 main ()
5615 {
5616
5617     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5618     choke me
5619     #endif
5620
5621   ;
5622   return 0;
5623 }
5624 _ACEOF
5625 if ac_fn_c_try_compile "$LINENO"; then :
5626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5627 $as_echo "yes" >&6; }
5628 else
5629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5630 $as_echo "buggy but acceptable" >&6; }
5631 fi
5632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633 else
5634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }; have_gmp=no
5636 fi
5637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638   fi
5639
5640   # Check for the MPC header version.
5641   if test x"$have_gmp" = xyes ; then
5642     # Check for the recommended and required versions of MPC.
5643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5644 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5645     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h.  */
5647 #include <mpc.h>
5648 int
5649 main ()
5650 {
5651
5652     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5653     choke me
5654     #endif
5655
5656   ;
5657   return 0;
5658 }
5659 _ACEOF
5660 if ac_fn_c_try_compile "$LINENO"; then :
5661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h.  */
5663 #include <mpc.h>
5664 int
5665 main ()
5666 {
5667
5668     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5669     choke me
5670     #endif
5671
5672   ;
5673   return 0;
5674 }
5675 _ACEOF
5676 if ac_fn_c_try_compile "$LINENO"; then :
5677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5678 $as_echo "yes" >&6; }
5679 else
5680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5681 $as_echo "buggy but acceptable" >&6; }
5682 fi
5683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 else
5685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; }; have_gmp=no
5687 fi
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689   fi
5690
5691   # Now check the MPFR library.
5692   if test x"$have_gmp" = xyes; then
5693     saved_LIBS="$LIBS"
5694     LIBS="$LIBS $gmplibs"
5695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5696 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5697     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h.  */
5699 #include <mpc.h>
5700 int
5701 main ()
5702 {
5703
5704     mpfr_t n;
5705     mpfr_t x;
5706     mpc_t c;
5707     int t;
5708     mpfr_init (n);
5709     mpfr_init (x);
5710     mpfr_atan2 (n, n, x, GMP_RNDN);
5711     mpfr_erfc (n, x, GMP_RNDN);
5712     mpfr_subnormalize (x, t, GMP_RNDN);
5713     mpfr_clear(n);
5714     mpfr_clear(x);
5715     mpc_init2 (c, 53);
5716     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5717     mpc_cosh (c, c, MPC_RNDNN);
5718     mpc_pow (c, c, c, MPC_RNDNN);
5719     mpc_acosh (c, c, MPC_RNDNN);
5720     mpc_clear (c);
5721
5722   ;
5723   return 0;
5724 }
5725 _ACEOF
5726 if ac_fn_c_try_link "$LINENO"; then :
5727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5728 $as_echo "yes" >&6; }
5729 else
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }; have_gmp=no
5732 fi
5733 rm -f core conftest.err conftest.$ac_objext \
5734     conftest$ac_exeext conftest.$ac_ext
5735     LIBS="$saved_LIBS"
5736   fi
5737
5738   CFLAGS="$saved_CFLAGS"
5739
5740 # The library versions listed in the error message below should match
5741 # the HARD-minimums enforced above.
5742   if test x$have_gmp != xyes; then
5743     as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5744 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5745 their locations.  Source code for these libraries can be found at
5746 their respective hosting sites as well as at
5747 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5748 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5749 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5750 make sure that you have installed both the libraries and the header
5751 files.  They may be located in separate packages." "$LINENO" 5
5752   fi
5753 fi
5754
5755 # Flags needed for both GMP, MPFR and/or MPC.
5756
5757
5758
5759
5760
5761
5762
5763 # Libraries to use for stage1 or when not bootstrapping.
5764
5765 # Check whether --with-stage1-libs was given.
5766 if test "${with_stage1_libs+set}" = set; then :
5767   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5768    stage1_libs=
5769  else
5770    stage1_libs=$withval
5771  fi
5772 else
5773   stage1_libs=
5774 fi
5775
5776
5777
5778 # Linker flags to use for stage1 or when not bootstrapping.
5779
5780 # Check whether --with-stage1-ldflags was given.
5781 if test "${with_stage1_ldflags+set}" = set; then :
5782   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5783    stage1_ldflags=
5784  else
5785    stage1_ldflags=$withval
5786  fi
5787 else
5788   stage1_ldflags=
5789  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5790  # if supported.  But if the user explicitly specified the libraries to use,
5791  # trust that they are doing what they want.
5792  if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5793    stage1_ldflags="-static-libstdc++ -static-libgcc"
5794  fi
5795 fi
5796
5797
5798
5799 # Libraries to use for stage2 and later builds.
5800
5801 # Check whether --with-boot-libs was given.
5802 if test "${with_boot_libs+set}" = set; then :
5803   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5804    poststage1_libs=
5805  else
5806    poststage1_libs=$withval
5807  fi
5808 else
5809   poststage1_libs=
5810 fi
5811
5812
5813
5814 # Linker flags to use for stage2 and later builds.
5815
5816 # Check whether --with-boot-ldflags was given.
5817 if test "${with_boot_ldflags+set}" = set; then :
5818   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5819    poststage1_ldflags=
5820  else
5821    poststage1_ldflags=$withval
5822  fi
5823 else
5824   poststage1_ldflags=
5825  # In stages 2 and 3, default to linking libstdc++ and libgcc
5826  # statically.  But if the user explicitly specified the libraries to
5827  # use, trust that they are doing what they want.
5828  if test "$poststage1_libs" = ""; then
5829    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5830  fi
5831 fi
5832
5833
5834
5835 # GCC GRAPHITE dependency isl.
5836 # Basic setup is inlined here, actual checks are in config/isl.m4
5837
5838
5839 # Check whether --with-isl was given.
5840 if test "${with_isl+set}" = set; then :
5841   withval=$with_isl;
5842 fi
5843
5844
5845 # Treat --without-isl as a request to disable
5846 # GRAPHITE support and skip all following checks.
5847 if test "x$with_isl" != "xno"; then
5848   # Check for isl
5849
5850
5851 # Check whether --with-isl-include was given.
5852 if test "${with_isl_include+set}" = set; then :
5853   withval=$with_isl_include;
5854 fi
5855
5856
5857 # Check whether --with-isl-lib was given.
5858 if test "${with_isl_lib+set}" = set; then :
5859   withval=$with_isl_lib;
5860 fi
5861
5862
5863   # Check whether --enable-isl-version-check was given.
5864 if test "${enable_isl_version_check+set}" = set; then :
5865   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5866 else
5867   ENABLE_ISL_CHECK=yes
5868 fi
5869
5870
5871   # Initialize isllibs and islinc.
5872   case $with_isl in
5873     no)
5874       isllibs=
5875       islinc=
5876       ;;
5877     "" | yes)
5878       ;;
5879     *)
5880       isllibs="-L$with_isl/lib"
5881       islinc="-I$with_isl/include"
5882       ;;
5883   esac
5884   if test "x${with_isl_include}" != x ; then
5885     islinc="-I$with_isl_include"
5886   fi
5887   if test "x${with_isl_lib}" != x; then
5888     isllibs="-L$with_isl_lib"
5889   fi
5890         if test "x${islinc}" = x && test "x${isllibs}" = x \
5891      && test -d ${srcdir}/isl; then
5892     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5893     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5894     ENABLE_ISL_CHECK=no
5895     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5896 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5897   fi
5898
5899   isllibs="${isllibs} -lisl"
5900
5901
5902
5903   if test "${ENABLE_ISL_CHECK}" = yes ; then
5904     _isl_saved_CFLAGS=$CFLAGS
5905     _isl_saved_LDFLAGS=$LDFLAGS
5906     _isl_saved_LIBS=$LIBS
5907
5908     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5909     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5910     LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5911
5912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5913 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
5914     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h.  */
5916 #include <isl/ctx.h>
5917 int
5918 main ()
5919 {
5920 isl_ctx_get_max_operations (isl_ctx_alloc ());
5921   ;
5922   return 0;
5923 }
5924 _ACEOF
5925 if ac_fn_c_try_link "$LINENO"; then :
5926   gcc_cv_isl=yes
5927 else
5928   gcc_cv_isl=no
5929 fi
5930 rm -f core conftest.err conftest.$ac_objext \
5931     conftest$ac_exeext conftest.$ac_ext
5932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5933 $as_echo "$gcc_cv_isl" >&6; }
5934
5935     if test "${gcc_cv_isl}" = no ; then
5936       { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
5937 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
5938     fi
5939
5940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5941 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
5942     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h.  */
5944 #include <isl/schedule.h>
5945 int
5946 main ()
5947 {
5948 isl_options_set_schedule_serialize_sccs (NULL, 0);
5949   ;
5950   return 0;
5951 }
5952 _ACEOF
5953 if ac_fn_c_try_link "$LINENO"; then :
5954   ac_has_isl_options_set_schedule_serialize_sccs=yes
5955 else
5956   ac_has_isl_options_set_schedule_serialize_sccs=no
5957 fi
5958 rm -f core conftest.err conftest.$ac_objext \
5959     conftest$ac_exeext conftest.$ac_ext
5960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5961 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5962
5963     if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5964       islver="0.15"
5965
5966     fi
5967
5968     CFLAGS=$_isl_saved_CFLAGS
5969     LDFLAGS=$_isl_saved_LDFLAGS
5970     LIBS=$_isl_saved_LIBS
5971   fi
5972
5973
5974
5975
5976
5977
5978   if test "x${with_isl}" = xno; then
5979     graphite_requested=no
5980   elif test "x${with_isl}" != x \
5981     || test "x${with_isl_include}" != x \
5982     || test "x${with_isl_lib}" != x ; then
5983     graphite_requested=yes
5984   else
5985     graphite_requested=no
5986   fi
5987
5988
5989
5990   if test "${gcc_cv_isl}" = no ; then
5991     isllibs=
5992     islinc=
5993   fi
5994
5995   if test "${graphite_requested}" = yes \
5996     && test "x${isllibs}" = x \
5997     && test "x${islinc}" = x ; then
5998
5999     as_fn_error "Unable to find a usable isl.  See config.log for details." "$LINENO" 5
6000   fi
6001
6002
6003 fi
6004
6005 # If the isl check failed, disable builds of in-tree variant of isl
6006 if test "x$with_isl" = xno ||
6007    test "x$gcc_cv_isl" = xno; then
6008   noconfigdirs="$noconfigdirs isl"
6009   islinc=
6010 fi
6011
6012
6013
6014
6015 # Check for LTO support.
6016 # Check whether --enable-lto was given.
6017 if test "${enable_lto+set}" = set; then :
6018   enableval=$enable_lto; enable_lto=$enableval
6019 else
6020   enable_lto=yes; default_enable_lto=yes
6021 fi
6022
6023
6024
6025
6026
6027 target_elf=no
6028 case $target in
6029   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6030   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6031   alpha*-dec-osf* | hppa[12]*-*-hpux* | \
6032   nvptx-*-none)
6033     target_elf=no
6034     ;;
6035   *)
6036     target_elf=yes
6037     ;;
6038 esac
6039
6040 if test $target_elf = yes; then :
6041   # ELF platforms build the lto-plugin always.
6042   build_lto_plugin=yes
6043
6044 else
6045   if test x"$default_enable_lto" = x"yes" ; then
6046     case $target in
6047       *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6048       # On other non-ELF platforms, LTO has yet to be validated.
6049       *) enable_lto=no ;;
6050     esac
6051   else
6052   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6053   # It would also be nice to check the binutils support, but we don't
6054   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
6055   # warn during gcc/ subconfigure; unless you're bootstrapping with
6056   # -flto it won't be needed until after installation anyway.
6057     case $target in
6058       *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6059       *) if test x"$enable_lto" = x"yes"; then
6060         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6061         fi
6062       ;;
6063     esac
6064   fi
6065   # Among non-ELF, only Windows platforms support the lto-plugin so far.
6066   # Build it unless LTO was explicitly disabled.
6067   case $target in
6068     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6069     *) ;;
6070   esac
6071
6072 fi
6073
6074
6075 # Check whether --enable-linker-plugin-configure-flags was given.
6076 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6077   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6078 else
6079   extra_linker_plugin_configure_flags=
6080 fi
6081
6082
6083 # Check whether --enable-linker-plugin-flags was given.
6084 if test "${enable_linker_plugin_flags+set}" = set; then :
6085   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6086 else
6087   extra_linker_plugin_flags=
6088 fi
6089
6090
6091
6092
6093 # By default, C and C++ are the only stage 1 languages.
6094 stage1_languages=,c,
6095
6096 # Target libraries that we bootstrap.
6097 bootstrap_target_libs=,target-libgcc,
6098
6099 # Figure out what language subdirectories are present.
6100 # Look if the user specified --enable-languages="..."; if not, use
6101 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6102 # go away some day.
6103 # NB:  embedded tabs in this IF block -- do not untabify
6104 if test -d ${srcdir}/gcc; then
6105   if test x"${enable_languages+set}" != xset; then
6106     if test x"${LANGUAGES+set}" = xset; then
6107       enable_languages="${LANGUAGES}"
6108         echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6109     else
6110       enable_languages=all
6111     fi
6112   else
6113     if test x"${enable_languages}" = x ||
6114        test x"${enable_languages}" = xyes;
6115        then
6116       echo configure.ac: --enable-languages needs at least one language argument 1>&2
6117       exit 1
6118     fi
6119   fi
6120   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6121
6122   # 'f95' is the old name for the 'fortran' language. We issue a warning
6123   # and make the substitution.
6124   case ,${enable_languages}, in
6125     *,f95,*)
6126       echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6127       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6128       ;;
6129   esac
6130
6131   # If bootstrapping, C++ must be enabled.
6132   case ",$enable_languages,:$enable_bootstrap" in
6133     *,c++,*:*) ;;
6134     *:yes)
6135       if test -f ${srcdir}/gcc/cp/config-lang.in; then
6136         enable_languages="${enable_languages},c++"
6137       else
6138         as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6139       fi
6140       ;;
6141   esac
6142
6143   # First scan to see if an enabled language requires some other language.
6144   # We assume that a given config-lang.in will list all the language
6145   # front ends it requires, even if some are required indirectly.
6146   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6147     case ${lang_frag} in
6148       ..) ;;
6149       # The odd quoting in the next line works around
6150       # an apparent bug in bash 1.12 on linux.
6151       ${srcdir}/gcc/[*]/config-lang.in) ;;
6152       *)
6153         # From the config-lang.in, get $language, $lang_requires, and
6154         # $lang_requires_boot_languages.
6155         language=
6156         lang_requires=
6157         lang_requires_boot_languages=
6158         . ${lang_frag}
6159         for other in ${lang_requires} ${lang_requires_boot_languages}; do
6160           case ,${enable_languages}, in
6161             *,$other,*) ;;
6162             *,all,*) ;;
6163             *,$language,*)
6164               echo " \`$other' language required by \`$language'; enabling" 1>&2
6165               enable_languages="${enable_languages},${other}"
6166               ;;
6167           esac
6168         done
6169         for other in ${lang_requires_boot_languages} ; do
6170           if test "$other" != "c"; then
6171             case ,${enable_stage1_languages}, in
6172               *,$other,*) ;;
6173               *,all,*) ;;
6174               *)
6175                 case ,${enable_languages}, in
6176                   *,$language,*)
6177                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6178                     enable_stage1_languages="$enable_stage1_languages,${other}"
6179                     ;;
6180                 esac
6181                 ;;
6182             esac
6183           fi
6184         done
6185         ;;
6186     esac
6187   done
6188
6189   new_enable_languages=,c,
6190
6191   # If LTO is enabled, add the LTO front end.
6192   if test "$enable_lto" = "yes" ; then
6193     case ,${enable_languages}, in
6194       *,lto,*) ;;
6195       *) enable_languages="${enable_languages},lto" ;;
6196     esac
6197     if test "${build_lto_plugin}" = "yes" ; then
6198       configdirs="$configdirs lto-plugin"
6199     fi
6200   fi
6201
6202   # If we're building an offloading compiler, add the LTO front end.
6203   if test x"$enable_as_accelerator_for" != x ; then
6204     case ,${enable_languages}, in
6205       *,lto,*) ;;
6206       *) enable_languages="${enable_languages},lto" ;;
6207     esac
6208   fi
6209
6210   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6211   potential_languages=,c,
6212
6213   enabled_target_libs=
6214   disabled_target_libs=
6215
6216   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6217     case ${lang_frag} in
6218       ..) ;;
6219       # The odd quoting in the next line works around
6220       # an apparent bug in bash 1.12 on linux.
6221       ${srcdir}/gcc/[*]/config-lang.in) ;;
6222       *)
6223         # From the config-lang.in, get $language, $target_libs,
6224         # $lang_dirs, $boot_language, and $build_by_default
6225         language=
6226         target_libs=
6227         lang_dirs=
6228         subdir_requires=
6229         boot_language=no
6230         build_by_default=yes
6231         . ${lang_frag}
6232         if test x${language} = x; then
6233           echo "${lang_frag} doesn't set \$language." 1>&2
6234           exit 1
6235         fi
6236
6237         if test "$language" = "c++"; then
6238           boot_language=yes
6239         fi
6240
6241         add_this_lang=no
6242         case ,${enable_languages}, in
6243           *,${language},*)
6244             # Language was explicitly selected; include it
6245             # unless it is C, which is enabled by default.
6246             if test "$language" != "c"; then
6247               add_this_lang=yes
6248             fi
6249             ;;
6250           *,all,*)
6251             # 'all' was selected, select it if it is a default language
6252             if test "$language" != "c"; then
6253               add_this_lang=${build_by_default}
6254             fi
6255             ;;
6256         esac
6257
6258         # Disable languages that need other directories if these aren't available.
6259         for i in $subdir_requires; do
6260           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6261           case ,${enable_languages}, in
6262             *,${language},*)
6263               # Specifically requested language; tell them.
6264               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6265               ;;
6266             *)
6267               # Silently disable.
6268               add_this_lang=unsupported
6269               ;;
6270           esac
6271         done
6272
6273         # Disable Ada if no preexisting GNAT is available.
6274         case ,${enable_languages},:${language}:${have_gnat} in
6275           *,${language},*:ada:no)
6276             # Specifically requested language; tell them.
6277             as_fn_error "GNAT is required to build $language" "$LINENO" 5
6278             ;;
6279           *:ada:no)
6280             # Silently disable.
6281             add_this_lang=unsupported
6282             ;;
6283         esac
6284
6285         # Disable a language that is unsupported by the target.
6286         case " $unsupported_languages " in
6287           *" $language "*)
6288             add_this_lang=unsupported
6289             ;;
6290         esac
6291
6292         case $add_this_lang in
6293           unsupported)
6294             # Remove language-dependent dirs.
6295             disabled_target_libs="$disabled_target_libs $target_libs"
6296             noconfigdirs="$noconfigdirs $lang_dirs"
6297             ;;
6298           no)
6299             # Remove language-dependent dirs; still show language as supported.
6300             disabled_target_libs="$disabled_target_libs $target_libs"
6301             noconfigdirs="$noconfigdirs $lang_dirs"
6302             potential_languages="${potential_languages}${language},"
6303             ;;
6304           yes)
6305             new_enable_languages="${new_enable_languages}${language},"
6306             potential_languages="${potential_languages}${language},"
6307             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6308             enabled_target_libs="$enabled_target_libs $target_libs"
6309             case "${boot_language}:,$enable_stage1_languages," in
6310               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6311                 # Add to (comma-separated) list of stage 1 languages.
6312                 case ",$stage1_languages," in
6313                   *,$language,* | ,yes, | ,all,) ;;
6314                   *) stage1_languages="${stage1_languages}${language}," ;;
6315                 esac
6316                 # We need to bootstrap any supporting libraries.
6317                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6318                 ;;
6319             esac
6320             ;;
6321         esac
6322         ;;
6323     esac
6324   done
6325
6326   # Add target libraries which are only needed for disabled languages
6327   # to noconfigdirs.
6328   if test -n "$disabled_target_libs"; then
6329     for dir in $disabled_target_libs; do
6330       case " $enabled_target_libs " in
6331       *" ${dir} "*) ;;
6332       *) noconfigdirs="$noconfigdirs $dir" ;;
6333       esac
6334     done
6335   fi
6336
6337   # Check whether --enable-stage1-languages was given.
6338 if test "${enable_stage1_languages+set}" = set; then :
6339   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6340     ,no,|,,)
6341       # Set it to something that will have no effect in the loop below
6342       enable_stage1_languages=c ;;
6343     ,yes,)
6344       enable_stage1_languages=`echo $new_enable_languages | \
6345         sed -e "s/^,//" -e "s/,$//" ` ;;
6346     *,all,*)
6347       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6348         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6349   esac
6350
6351   # Add "good" languages from enable_stage1_languages to stage1_languages,
6352   # while "bad" languages go in missing_languages.  Leave no duplicates.
6353   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6354     case $potential_languages in
6355       *,$i,*)
6356         case $stage1_languages in
6357           *,$i,*) ;;
6358           *) stage1_languages="$stage1_languages$i," ;;
6359         esac ;;
6360       *)
6361         case $missing_languages in
6362           *,$i,*) ;;
6363           *) missing_languages="$missing_languages$i," ;;
6364         esac ;;
6365      esac
6366   done
6367 fi
6368
6369
6370   # Remove leading/trailing commas that were added for simplicity
6371   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6372   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6373   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6374   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6375
6376   if test "x$missing_languages" != x; then
6377     as_fn_error "
6378 The following requested languages could not be built: ${missing_languages}
6379 Supported languages are: ${potential_languages}" "$LINENO" 5
6380   fi
6381   if test "x$new_enable_languages" != "x$enable_languages"; then
6382     echo The following languages will be built: ${new_enable_languages}
6383     enable_languages="$new_enable_languages"
6384   fi
6385
6386
6387   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6388 fi
6389
6390 # Handle --disable-<component> generically.
6391 for dir in $configdirs $build_configdirs $target_configdirs ; do
6392   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6393   varname=`echo $dirname | sed -e s/+/_/g`
6394   if eval test x\${enable_${varname}} "=" xno ; then
6395     noconfigdirs="$noconfigdirs $dir"
6396   fi
6397 done
6398
6399 # Check for Boehm's garbage collector
6400 # Check whether --enable-objc-gc was given.
6401 if test "${enable_objc_gc+set}" = set; then :
6402   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6403   *,objc,*:*:yes:*target-boehm-gc*)
6404     as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6405     ;;
6406 esac
6407 fi
6408
6409
6410 # Make sure we only build Boehm's garbage collector if required.
6411 case ,${enable_languages},:${enable_objc_gc} in
6412   *,objc,*:yes)
6413     # Keep target-boehm-gc if requested for Objective-C.
6414     ;;
6415   *)
6416     # Otherwise remove target-boehm-gc.
6417     noconfigdirs="$noconfigdirs target-boehm-gc"
6418     ;;
6419 esac
6420
6421 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6422 case ,${enable_languages}, in
6423   *,c++,*)
6424     # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6425     case "${noconfigdirs}" in
6426       *target-libstdc++-v3*)
6427         noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6428         ;;
6429       *) ;;
6430     esac
6431     ;;
6432   *)
6433     noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6434     ;;
6435 esac
6436
6437 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6438 # $build_configdirs and $target_configdirs.
6439 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6440
6441 notsupp=""
6442 for dir in . $skipdirs $noconfigdirs ; do
6443   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6444   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6445     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6446     if test -r $srcdir/$dirname/configure ; then
6447       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6448         true
6449       else
6450         notsupp="$notsupp $dir"
6451       fi
6452     fi
6453   fi
6454   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6455     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6456     if test -r $srcdir/$dirname/configure ; then
6457       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6458         true
6459       else
6460         notsupp="$notsupp $dir"
6461       fi
6462     fi
6463   fi
6464   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6465     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6466     if test -r $srcdir/$dirname/configure ; then
6467       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6468         true
6469       else
6470         notsupp="$notsupp $dir"
6471       fi
6472     fi
6473   fi
6474 done
6475
6476 # Quietly strip out all directories which aren't configurable in this tree.
6477 # This relies on all configurable subdirectories being autoconfiscated, which
6478 # is now the case.
6479 build_configdirs_all="$build_configdirs"
6480 build_configdirs=
6481 for i in ${build_configdirs_all} ; do
6482   j=`echo $i | sed -e s/build-//g`
6483   if test -f ${srcdir}/$j/configure ; then
6484     build_configdirs="${build_configdirs} $i"
6485   fi
6486 done
6487
6488 configdirs_all="$configdirs"
6489 configdirs=
6490 for i in ${configdirs_all} ; do
6491   if test -f ${srcdir}/$i/configure ; then
6492     configdirs="${configdirs} $i"
6493   fi
6494 done
6495
6496 target_configdirs_all="$target_configdirs"
6497 target_configdirs=
6498 for i in ${target_configdirs_all} ; do
6499   j=`echo $i | sed -e s/target-//g`
6500   if test -f ${srcdir}/$j/configure ; then
6501     target_configdirs="${target_configdirs} $i"
6502   fi
6503 done
6504
6505 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6506 # so we have to add it after the preceding checks.
6507 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6508 then
6509   case " $configdirs " in
6510     *" libiberty "*)
6511       # If we can build libiberty, we can also build libiberty-linker-plugin.
6512       configdirs="$configdirs libiberty-linker-plugin"
6513       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6514         --with-libiberty=../libiberty-linker-plugin";;
6515     *)
6516       as_fn_error "libiberty missing" "$LINENO" 5;;
6517   esac
6518 fi
6519
6520 # Sometimes we have special requirements for the host libiberty.
6521 extra_host_libiberty_configure_flags=
6522 extra_host_zlib_configure_flags=
6523 case " $configdirs " in
6524   *" lto-plugin "* | *" libcc1 "*)
6525     # When these are to be built as shared libraries, the same applies to
6526     # libiberty.
6527     extra_host_libiberty_configure_flags=--enable-shared
6528     ;;
6529   *" bfd "*)
6530     # When bfd is to be built as a shared library, the same applies to
6531     # zlib.
6532     if test "$enable_shared" = "yes"; then
6533       extra_host_zlib_configure_flags=--enable-host-shared
6534     fi
6535     ;;
6536 esac
6537
6538
6539
6540 # Produce a warning message for the subdirs we can't configure.
6541 # This isn't especially interesting in the Cygnus tree, but in the individual
6542 # FSF releases, it's important to let people know when their machine isn't
6543 # supported by the one or two programs in a package.
6544
6545 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6546   # If $appdirs is non-empty, at least one of those directories must still
6547   # be configured, or we error out.  (E.g., if the gas release supports a
6548   # specified target in some subdirs but not the gas subdir, we shouldn't
6549   # pretend that all is well.)
6550   if test -n "$appdirs" ; then
6551     for dir in $appdirs ; do
6552       if test -r $dir/Makefile.in ; then
6553         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6554           appdirs=""
6555           break
6556         fi
6557         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6558           appdirs=""
6559           break
6560         fi
6561       fi
6562     done
6563     if test -n "$appdirs" ; then
6564       echo "*** This configuration is not supported by this package." 1>&2
6565       exit 1
6566     fi
6567   fi
6568   # Okay, some application will build, or we don't care to check.  Still
6569   # notify of subdirs not getting built.
6570   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6571   echo "    ${notsupp}" 1>&2
6572   echo "    (Any other directories should still work fine.)" 1>&2
6573 fi
6574
6575 case "$host" in
6576   *msdosdjgpp*)
6577     enable_gdbtk=no ;;
6578 esac
6579
6580 # To find our prefix, in gcc_cv_tool_prefix.
6581
6582 # The user is always right.
6583 if test "${PATH_SEPARATOR+set}" != set; then
6584   echo "#! /bin/sh" >conf$$.sh
6585   echo  "exit 0"   >>conf$$.sh
6586   chmod +x conf$$.sh
6587   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6588     PATH_SEPARATOR=';'
6589   else
6590     PATH_SEPARATOR=:
6591   fi
6592   rm -f conf$$.sh
6593 fi
6594
6595
6596
6597 if test "x$exec_prefix" = xNONE; then
6598         if test "x$prefix" = xNONE; then
6599                 gcc_cv_tool_prefix=$ac_default_prefix
6600         else
6601                 gcc_cv_tool_prefix=$prefix
6602         fi
6603 else
6604         gcc_cv_tool_prefix=$exec_prefix
6605 fi
6606
6607 # If there is no compiler in the tree, use the PATH only.  In any
6608 # case, if there is no compiler in the tree nobody should use
6609 # AS_FOR_TARGET and LD_FOR_TARGET.
6610 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6611     gcc_version=`cat $srcdir/gcc/BASE-VER`
6612     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6613     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6614     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6615     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6616     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6617     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6618 else
6619     gcc_cv_tool_dirs=
6620 fi
6621
6622 if test x$build = x$target && test -n "$md_exec_prefix"; then
6623         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6624 fi
6625
6626
6627
6628 copy_dirs=
6629
6630
6631 # Check whether --with-build-sysroot was given.
6632 if test "${with_build_sysroot+set}" = set; then :
6633   withval=$with_build_sysroot; if test x"$withval" != x ; then
6634      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6635    fi
6636 else
6637   SYSROOT_CFLAGS_FOR_TARGET=
6638 fi
6639
6640
6641
6642
6643 # Check whether --with-debug-prefix-map was given.
6644 if test "${with_debug_prefix_map+set}" = set; then :
6645   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6646      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6647      for debug_map in $withval; do
6648        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6649      done
6650    fi
6651 else
6652   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6653 fi
6654
6655
6656
6657 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6658 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6659 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6660 # We want to ensure that TARGET libraries (which we know are built with
6661 # gcc) are built with "-O2 -g", so include those options when setting
6662 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6663 if test "x$CFLAGS_FOR_TARGET" = x; then
6664   if test "x${is_cross_compiler}" = xyes; then
6665     CFLAGS_FOR_TARGET="-g -O2"
6666   else
6667     CFLAGS_FOR_TARGET=$CFLAGS
6668     case " $CFLAGS " in
6669       *" -O2 "*) ;;
6670       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6671     esac
6672     case " $CFLAGS " in
6673       *" -g "* | *" -g3 "*) ;;
6674       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6675     esac
6676   fi
6677 fi
6678
6679
6680 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6681   if test "x${is_cross_compiler}" = xyes; then
6682     CXXFLAGS_FOR_TARGET="-g -O2"
6683   else
6684     CXXFLAGS_FOR_TARGET=$CXXFLAGS
6685     case " $CXXFLAGS " in
6686       *" -O2 "*) ;;
6687       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6688     esac
6689     case " $CXXFLAGS " in
6690       *" -g "* | *" -g3 "*) ;;
6691       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6692     esac
6693   fi
6694 fi
6695
6696
6697
6698
6699 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6700 # the named directory are copied to $(tooldir)/sys-include.
6701 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6702   if test x${is_cross_compiler} = xno ; then
6703     echo 1>&2 '***' --with-headers is only supported when cross compiling
6704     exit 1
6705   fi
6706   if test x"${with_headers}" != xyes ; then
6707     x=${gcc_cv_tool_prefix}
6708     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6709   fi
6710 fi
6711
6712 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6713 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6714 # are permitted.
6715 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6716   if test x${is_cross_compiler} = xno ; then
6717     echo 1>&2 '***' --with-libs is only supported when cross compiling
6718     exit 1
6719   fi
6720   if test x"${with_libs}" != xyes ; then
6721     # Copy the libraries in reverse order, so that files in the first named
6722     # library override files in subsequent libraries.
6723     x=${gcc_cv_tool_prefix}
6724     for l in ${with_libs}; do
6725       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6726     done
6727   fi
6728 fi
6729
6730 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6731 #
6732 # This is done by determining whether or not the appropriate directory
6733 # is available, and by checking whether or not specific configurations
6734 # have requested that this magic not happen.
6735 #
6736 # The command line options always override the explicit settings in
6737 # configure.ac, and the settings in configure.ac override this magic.
6738 #
6739 # If the default for a toolchain is to use GNU as and ld, and you don't
6740 # want to do that, then you should use the --without-gnu-as and
6741 # --without-gnu-ld options for the configure script.  Similarly, if
6742 # the default is to use the included zlib and you don't want to do that,
6743 # you should use the --with-system-zlib option for the configure script.
6744
6745 if test x${use_gnu_as} = x &&
6746    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6747   with_gnu_as=yes
6748   extra_host_args="$extra_host_args --with-gnu-as"
6749 fi
6750
6751 if test x${use_gnu_ld} = x &&
6752    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6753   with_gnu_ld=yes
6754   extra_host_args="$extra_host_args --with-gnu-ld"
6755 fi
6756
6757 if test x${use_included_zlib} = x &&
6758    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6759   :
6760 else
6761   with_system_zlib=yes
6762   extra_host_args="$extra_host_args --with-system-zlib"
6763 fi
6764
6765 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6766 # can detect this case.
6767
6768 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6769   with_newlib=yes
6770   extra_host_args="$extra_host_args --with-newlib"
6771 fi
6772
6773 # Handle ${copy_dirs}
6774 set fnord ${copy_dirs}
6775 shift
6776 while test $# != 0 ; do
6777   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6778     :
6779   else
6780     echo Copying $1 to $2
6781
6782     # Use the install script to create the directory and all required
6783     # parent directories.
6784     if test -d $2 ; then
6785       :
6786     else
6787       echo >config.temp
6788       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6789     fi
6790
6791     # Copy the directory, assuming we have tar.
6792     # FIXME: Should we use B in the second tar?  Not all systems support it.
6793     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6794
6795     # It is the responsibility of the user to correctly adjust all
6796     # symlinks.  If somebody can figure out how to handle them correctly
6797     # here, feel free to add the code.
6798
6799     echo $1 > $2/COPIED
6800   fi
6801   shift; shift
6802 done
6803
6804 # Determine a target-dependent exec_prefix that the installed
6805 # gcc will search in.  Keep this list sorted by triplet, with
6806 # the *-*-osname triplets last.
6807 md_exec_prefix=
6808 case "${target}" in
6809   i[34567]86-pc-msdosdjgpp*)
6810     md_exec_prefix=/dev/env/DJDIR/bin
6811     ;;
6812   *-*-hpux* | \
6813   *-*-nto-qnx* | \
6814   *-*-solaris2*)
6815     md_exec_prefix=/usr/ccs/bin
6816     ;;
6817 esac
6818
6819 extra_arflags_for_target=
6820 extra_nmflags_for_target=
6821 extra_ranlibflags_for_target=
6822 target_makefile_frag=/dev/null
6823 case "${target}" in
6824   spu-*-*)
6825     target_makefile_frag="config/mt-spu"
6826     ;;
6827   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6828     target_makefile_frag="config/mt-sde"
6829     ;;
6830   mipsisa*-*-elfoabi*)
6831     target_makefile_frag="config/mt-mips-elfoabi"
6832     ;;
6833   mips*-*-*linux* | mips*-*-gnu*)
6834     target_makefile_frag="config/mt-mips-gnu"
6835     ;;
6836   nios2-*-elf*)
6837     target_makefile_frag="config/mt-nios2-elf"
6838     ;;
6839   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6840     target_makefile_frag="config/mt-gnu"
6841     ;;
6842   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6843     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6844     # commands to handle both 32-bit and 64-bit objects.  These flags are
6845     # harmless if we're using GNU nm or ar.
6846     extra_arflags_for_target=" -X32_64"
6847     extra_nmflags_for_target=" -B -X32_64"
6848     ;;
6849 esac
6850
6851 alphaieee_frag=/dev/null
6852 case $target in
6853   alpha*-*-*)
6854     # This just makes sure to use the -mieee option to build target libs.
6855     # This should probably be set individually by each library.
6856     alphaieee_frag="config/mt-alphaieee"
6857     ;;
6858 esac
6859
6860 # If --enable-target-optspace always use -Os instead of -O2 to build
6861 # the target libraries, similarly if it is not specified, use -Os
6862 # on selected platforms.
6863 ospace_frag=/dev/null
6864 case "${enable_target_optspace}:${target}" in
6865   yes:*)
6866     ospace_frag="config/mt-ospace"
6867     ;;
6868   :d30v-*)
6869     ospace_frag="config/mt-d30v"
6870     ;;
6871   :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6872     ospace_frag="config/mt-ospace"
6873     ;;
6874   no:* | :*)
6875     ;;
6876   *)
6877     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6878     ;;
6879 esac
6880
6881 # Some systems (e.g., one of the i386-aix systems the gas testers are
6882 # using) don't handle "\$" correctly, so don't use it here.
6883 tooldir='${exec_prefix}'/${target_noncanonical}
6884 build_tooldir=${tooldir}
6885
6886 # Create a .gdbinit file which runs the one in srcdir
6887 # and tells GDB to look there for source files.
6888
6889 if test -r ${srcdir}/.gdbinit ; then
6890   case ${srcdir} in
6891     .) ;;
6892     *) cat > ./.gdbinit <<EOF
6893 # ${NO_EDIT}
6894 dir ${srcdir}
6895 dir .
6896 source ${srcdir}/.gdbinit
6897 EOF
6898     ;;
6899   esac
6900 fi
6901
6902 # Make sure that the compiler is able to generate an executable.  If it
6903 # can't, we are probably in trouble.  We don't care whether we can run the
6904 # executable--we might be using a cross compiler--we only care whether it
6905 # can be created.  At this point the main configure script has set CC.
6906 we_are_ok=no
6907 echo "int main () { return 0; }" > conftest.c
6908 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6909 if test $? = 0 ; then
6910   if test -s conftest || test -s conftest.exe ; then
6911     we_are_ok=yes
6912   fi
6913 fi
6914 case $we_are_ok in
6915   no)
6916     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6917     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6918     rm -f conftest*
6919     exit 1
6920     ;;
6921 esac
6922 rm -f conftest*
6923
6924 # Decide which environment variable is used to find dynamic libraries.
6925 case "${host}" in
6926   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6927   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6928   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6929   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6930 esac
6931
6932 # On systems where the dynamic library environment variable is PATH,
6933 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6934 # built executables to PATH.
6935 if test "$RPATH_ENVVAR" = PATH; then
6936   GCC_SHLIB_SUBDIR=/shlib
6937 else
6938   GCC_SHLIB_SUBDIR=
6939 fi
6940
6941 # Adjust the toplevel makefile according to whether bootstrap was selected.
6942 case $enable_bootstrap in
6943   yes)
6944     bootstrap_suffix=bootstrap
6945     BUILD_CONFIG=bootstrap-debug
6946     ;;
6947   no)
6948     bootstrap_suffix=no-bootstrap
6949     BUILD_CONFIG=
6950     ;;
6951 esac
6952
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6954 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6955
6956
6957 # Check whether --with-build-config was given.
6958 if test "${with_build_config+set}" = set; then :
6959   withval=$with_build_config; case $with_build_config in
6960    yes) with_build_config= ;;
6961    no) with_build_config= BUILD_CONFIG= ;;
6962    esac
6963 fi
6964
6965
6966 if test "x${with_build_config}" != x; then
6967   BUILD_CONFIG=$with_build_config
6968 else
6969   case $BUILD_CONFIG in
6970   bootstrap-debug)
6971     if echo "int f (void) { return 0; }" > conftest.c &&
6972        ${CC} -c conftest.c &&
6973        mv conftest.o conftest.o.g0 &&
6974        ${CC} -c -g conftest.c &&
6975        mv conftest.o conftest.o.g &&
6976        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6977       :
6978     else
6979       BUILD_CONFIG=
6980     fi
6981     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6982     ;;
6983   esac
6984 fi
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6986 $as_echo "$BUILD_CONFIG" >&6; }
6987
6988
6989 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
6991 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
6992 # Check whether --enable-vtable-verify was given.
6993 if test "${enable_vtable_verify+set}" = set; then :
6994   enableval=$enable_vtable_verify; case "$enableval" in
6995  yes) enable_vtable_verify=yes ;;
6996  no)  enable_vtable_verify=no ;;
6997  *)   enable_vtable_verify=no;;
6998  esac
6999 else
7000   enable_vtable_verify=no
7001 fi
7002
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7004 $as_echo "$enable_vtable_verify" >&6; }
7005
7006 # Record target_configdirs and the configure arguments for target and
7007 # build configuration in Makefile.
7008 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7009 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7010 bootstrap_fixincludes=no
7011
7012 # If we are building libgomp, bootstrap it.
7013 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7014   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7015 fi
7016
7017 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7018 # or bootstrap-ubsan, bootstrap it.
7019 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7020   case "$BUILD_CONFIG" in
7021     *bootstrap-asan* | *bootstrap-ubsan* )
7022       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7023       bootstrap_fixincludes=yes
7024       ;;
7025   esac
7026 fi
7027
7028 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7029 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7030    test "$enable_vtable_verify" != no; then
7031   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7032 fi
7033
7034 # If we are building libmpx, bootstrap it.
7035 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7036   bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7037 fi
7038
7039 # Determine whether gdb needs tk/tcl or not.
7040 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7041 # and in that case we want gdb to be built without tk.  Ugh!
7042 # In fact I believe gdb is the *only* package directly dependent on tk,
7043 # so we should be able to put the 'maybe's in unconditionally and
7044 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
7045 # 100% sure that that's safe though.
7046
7047 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7048 case "$enable_gdbtk" in
7049   no)
7050     GDB_TK="" ;;
7051   yes)
7052     GDB_TK="${gdb_tk}" ;;
7053   *)
7054     # Only add the dependency on gdbtk when GDBtk is part of the gdb
7055     # distro.  Eventually someone will fix this and move Insight, nee
7056     # gdbtk to a separate directory.
7057     if test -d ${srcdir}/gdb/gdbtk ; then
7058       GDB_TK="${gdb_tk}"
7059     else
7060       GDB_TK=""
7061     fi
7062     ;;
7063 esac
7064 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7065 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7066
7067 # Strip out unwanted targets.
7068
7069 # While at that, we remove Makefiles if we were started for recursive
7070 # configuration, so that the top-level Makefile reconfigures them,
7071 # like we used to do when configure itself was recursive.
7072
7073 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
7074 # but now we're fixing up the Makefile ourselves with the additional
7075 # commands passed to AC_CONFIG_FILES.  Use separate variables
7076 # extrasub-{build,host,target} not because there is any reason to split
7077 # the substitutions up that way, but only to remain below the limit of
7078 # 99 commands in a script, for HP-UX sed.
7079 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7080
7081 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7082   yes:yes:*\ gold\ *:*,c++,*) ;;
7083   yes:yes:*\ gold\ *:*)
7084     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7085     ;;
7086 esac
7087
7088 extrasub_build=
7089 for module in ${build_configdirs} ; do
7090   if test -z "${no_recursion}" \
7091      && test -f ${build_subdir}/${module}/Makefile; then
7092     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7093     rm -f ${build_subdir}/${module}/Makefile
7094   fi
7095   extrasub_build="$extrasub_build
7096 /^@if build-$module\$/d
7097 /^@endif build-$module\$/d
7098 /^@if build-$module-$bootstrap_suffix\$/d
7099 /^@endif build-$module-$bootstrap_suffix\$/d"
7100 done
7101 extrasub_host=
7102 for module in ${configdirs} ; do
7103   if test -z "${no_recursion}"; then
7104     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7105       if test -f ${file}; then
7106         echo 1>&2 "*** removing ${file} to force reconfigure"
7107         rm -f ${file}
7108       fi
7109     done
7110   fi
7111   case ${module},${bootstrap_fixincludes} in
7112     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7113     *) host_bootstrap_suffix=$bootstrap_suffix ;;
7114   esac
7115   extrasub_host="$extrasub_host
7116 /^@if $module\$/d
7117 /^@endif $module\$/d
7118 /^@if $module-$host_bootstrap_suffix\$/d
7119 /^@endif $module-$host_bootstrap_suffix\$/d"
7120 done
7121 extrasub_target=
7122 for module in ${target_configdirs} ; do
7123   if test -z "${no_recursion}" \
7124      && test -f ${target_subdir}/${module}/Makefile; then
7125     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7126     rm -f ${target_subdir}/${module}/Makefile
7127   fi
7128
7129   # We only bootstrap target libraries listed in bootstrap_target_libs.
7130   case $bootstrap_target_libs in
7131     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7132     *) target_bootstrap_suffix=no-bootstrap ;;
7133   esac
7134
7135   extrasub_target="$extrasub_target
7136 /^@if target-$module\$/d
7137 /^@endif target-$module\$/d
7138 /^@if target-$module-$target_bootstrap_suffix\$/d
7139 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7140 done
7141
7142 # Do the final fixup along with target modules.
7143 extrasub_target="$extrasub_target
7144 /^@if /,/^@endif /d"
7145
7146 # Create the serialization dependencies.  This uses a temporary file.
7147
7148 # Check whether --enable-serial-configure was given.
7149 if test "${enable_serial_configure+set}" = set; then :
7150   enableval=$enable_serial_configure;
7151 fi
7152
7153
7154 case ${enable_serial_configure} in
7155   yes)
7156     enable_serial_build_configure=yes
7157     enable_serial_host_configure=yes
7158     enable_serial_target_configure=yes
7159     ;;
7160 esac
7161
7162 # These force 'configure's to be done one at a time, to avoid problems
7163 # with contention over a shared config.cache.
7164 rm -f serdep.tmp
7165 echo '# serdep.tmp' > serdep.tmp
7166 olditem=
7167 test "x${enable_serial_build_configure}" = xyes &&
7168 for item in ${build_configdirs} ; do
7169   case ${olditem} in
7170     "") ;;
7171     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7172   esac
7173   olditem=${item}
7174 done
7175 olditem=
7176 test "x${enable_serial_host_configure}" = xyes &&
7177 for item in ${configdirs} ; do
7178   case ${olditem} in
7179     "") ;;
7180     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7181   esac
7182   olditem=${item}
7183 done
7184 olditem=
7185 test "x${enable_serial_target_configure}" = xyes &&
7186 for item in ${target_configdirs} ; do
7187   case ${olditem} in
7188     "") ;;
7189     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7190   esac
7191   olditem=${item}
7192 done
7193 serialization_dependencies=serdep.tmp
7194
7195
7196 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
7197 # target, nonopt, and variable assignments.  These are the ones we
7198 # might not want to pass down to subconfigures.  The exception being
7199 # --cache-file=/dev/null, which is used to turn off the use of cache
7200 # files altogether, and which should be passed on to subconfigures.
7201 # Also strip program-prefix, program-suffix, and program-transform-name,
7202 # so that we can pass down a consistent program-transform-name.
7203 baseargs=
7204 tbaseargs=
7205 keep_next=no
7206 skip_next=no
7207 eval "set -- $ac_configure_args"
7208 for ac_arg
7209 do
7210   if test X"$skip_next" = X"yes"; then
7211     skip_next=no
7212     continue
7213   fi
7214   if test X"$keep_next" = X"yes"; then
7215     case $ac_arg in
7216       *\'*)
7217         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7218     esac
7219     baseargs="$baseargs '$ac_arg'"
7220     tbaseargs="$tbaseargs '$ac_arg'"
7221     keep_next=no
7222     continue
7223   fi
7224
7225   # Handle separated arguments.  Based on the logic generated by
7226   # autoconf 2.59.
7227   case $ac_arg in
7228     *=* | --config-cache | -C | -disable-* | --disable-* \
7229       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7230       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7231       | -with-* | --with-* | -without-* | --without-* | --x)
7232       separate_arg=no
7233       ;;
7234     -*)
7235       separate_arg=yes
7236       ;;
7237     *)
7238       separate_arg=no
7239       ;;
7240   esac
7241
7242   skip_targ=no
7243   case $ac_arg in
7244
7245   --with-* | --without-*)
7246     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7247
7248     case $libopt in
7249     *[-_]include)
7250       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7251       ;;
7252     *[-_]lib)
7253       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7254       ;;
7255     *)
7256       lib=$libopt
7257       ;;
7258     esac
7259
7260
7261     case $lib in
7262     mpc | mpfr | gmp | isl)
7263       # If we're processing --with-$lib, --with-$lib-include or
7264       # --with-$lib-lib, for one of the libs above, and target is
7265       # different from host, don't pass the current argument to any
7266       # target library's configure.
7267       if test x$is_cross_compiler = xyes; then
7268         skip_targ=yes
7269       fi
7270       ;;
7271     esac
7272     ;;
7273   esac
7274
7275   case "$ac_arg" in
7276     --cache-file=/dev/null | \
7277     -cache-file=/dev/null )
7278       # Handled here to avoid the test to skip args below.
7279       baseargs="$baseargs '$ac_arg'"
7280       tbaseargs="$tbaseargs '$ac_arg'"
7281       # Assert: $separate_arg should always be no.
7282       keep_next=$separate_arg
7283       ;;
7284     --no*)
7285       continue
7286       ;;
7287     --c* | \
7288     --sr* | \
7289     --ho* | \
7290     --bu* | \
7291     --t* | \
7292     --program-* | \
7293     -cache_file* | \
7294     -srcdir* | \
7295     -host* | \
7296     -build* | \
7297     -target* | \
7298     -program-prefix* | \
7299     -program-suffix* | \
7300     -program-transform-name* )
7301       skip_next=$separate_arg
7302       continue
7303       ;;
7304     -*)
7305       # An option.  Add it.
7306       case $ac_arg in
7307         *\'*)
7308           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7309       esac
7310       baseargs="$baseargs '$ac_arg'"
7311       if test X"$skip_targ" = Xno; then
7312         tbaseargs="$tbaseargs '$ac_arg'"
7313       fi
7314       keep_next=$separate_arg
7315       ;;
7316     *)
7317       # Either a variable assignment, or a nonopt (triplet).  Don't
7318       # pass it down; let the Makefile handle this.
7319       continue
7320       ;;
7321   esac
7322 done
7323 # Remove the initial space we just introduced and, as these will be
7324 # expanded by make, quote '$'.
7325 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7326
7327 # Add in --program-transform-name, after --program-prefix and
7328 # --program-suffix have been applied to it.  Autoconf has already
7329 # doubled dollar signs and backslashes in program_transform_name; we want
7330 # the backslashes un-doubled, and then the entire thing wrapped in single
7331 # quotes, because this will be expanded first by make and then by the shell.
7332 # Also, because we want to override the logic in subdir configure scripts to
7333 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7334 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7335 ${program_transform_name}
7336 EOF_SED
7337 gcc_transform_name=`cat conftestsed.out`
7338 rm -f conftestsed.out
7339 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7340 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7341 if test "$silent" = yes; then
7342   baseargs="$baseargs --silent"
7343   tbaseargs="$tbaseargs --silent"
7344 fi
7345 baseargs="$baseargs --disable-option-checking"
7346 tbaseargs="$tbaseargs --disable-option-checking"
7347
7348 # Record and document user additions to sub configure arguments.
7349
7350
7351
7352
7353 # For the build-side libraries, we just need to pretend we're native,
7354 # and not use the same cache file.  Multilibs are neither needed nor
7355 # desired.  We can't even use the same cache file for all build-side
7356 # libraries, as they're compiled differently; some with C, some with
7357 # C++ or with different feature-enabling options.
7358 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7359
7360 # For host modules, accept cache file option, or specification as blank.
7361 case "${cache_file}" in
7362 "") # empty
7363   cache_file_option="" ;;
7364 /* | [A-Za-z]:[\\/]* ) # absolute path
7365   cache_file_option="--cache-file=${cache_file}" ;;
7366 *) # relative path
7367   cache_file_option="--cache-file=../${cache_file}" ;;
7368 esac
7369
7370 # Host dirs don't like to share a cache file either, horribly enough.
7371 # This seems to be due to autoconf 2.5x stupidity.
7372 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7373
7374 target_configargs="$target_configargs ${tbaseargs}"
7375
7376 # Passing a --with-cross-host argument lets the target libraries know
7377 # whether they are being built with a cross-compiler or being built
7378 # native.  However, it would be better to use other mechanisms to make the
7379 # sorts of decisions they want to make on this basis.  Please consider
7380 # this option to be deprecated.  FIXME.
7381 if test x${is_cross_compiler} = xyes ; then
7382   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7383 fi
7384
7385 # Special user-friendly check for native x86_64-linux build, if
7386 # multilib is not explicitly enabled.
7387 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7388   x86_64-*linux*:yes:$build:$build:)
7389     # Make sure we have a development environment that handles 32-bit
7390     dev64=no
7391     echo "int main () { return 0; }" > conftest.c
7392     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7393     if test $? = 0 ; then
7394       if test -s conftest || test -s conftest.exe ; then
7395         dev64=yes
7396       fi
7397     fi
7398     rm -f conftest*
7399     if test x${dev64} != xyes ; then
7400       as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7401     fi
7402     ;;
7403 esac
7404
7405 # Default to --enable-multilib.
7406 if test x${enable_multilib} = x ; then
7407   target_configargs="--enable-multilib ${target_configargs}"
7408 fi
7409
7410 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7411 # changed from the earlier setting of with_newlib.
7412 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7413   target_configargs="--with-newlib ${target_configargs}"
7414 fi
7415
7416 # Different target subdirs use different values of certain variables
7417 # (notably CXX).  Worse, multilibs use *lots* of different values.
7418 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7419 # it doesn't automatically accept command-line overrides of them.
7420 # This means it's not safe for target subdirs to share a cache file,
7421 # which is disgusting, but there you have it.  Hopefully this can be
7422 # fixed in future.  It's still worthwhile to use a cache file for each
7423 # directory.  I think.
7424
7425 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7426 # We need to pass --target, as newer autoconf's requires consistency
7427 # for target_alias and gcc doesn't manage it consistently.
7428 target_configargs="--cache-file=./config.cache ${target_configargs}"
7429
7430 FLAGS_FOR_TARGET=
7431 case " $target_configdirs " in
7432  *" newlib "*)
7433   case " $target_configargs " in
7434   *" --with-newlib "*)
7435    case "$target" in
7436     *-cygwin*)
7437       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7438       ;;
7439    esac
7440
7441    # If we're not building GCC, don't discard standard headers.
7442    if test -d ${srcdir}/gcc; then
7443      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7444
7445      if test "${build}" != "${host}"; then
7446        # On Canadian crosses, CC_FOR_TARGET will have already been set
7447        # by `configure', so we won't have an opportunity to add -Bgcc/
7448        # to it.  This is right: we don't want to search that directory
7449        # for binaries, but we want the header files in there, so add
7450        # them explicitly.
7451        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7452
7453        # Someone might think of using the pre-installed headers on
7454        # Canadian crosses, in case the installed compiler is not fully
7455        # compatible with the compiler being built.  In this case, it
7456        # would be better to flag an error than risking having
7457        # incompatible object files being constructed.  We can't
7458        # guarantee that an error will be flagged, but let's hope the
7459        # compiler will do it, when presented with incompatible header
7460        # files.
7461      fi
7462    fi
7463
7464    case "${target}-${is_cross_compiler}" in
7465    i[3456789]86-*-linux*-no)
7466       # Here host == target, so we don't need to build gcc,
7467       # so we don't want to discard standard headers.
7468       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7469       ;;
7470    *)
7471       # If we're building newlib, use its generic headers last, but search
7472       # for any libc-related directories first (so make it the last -B
7473       # switch).
7474       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7475
7476       # If we're building libgloss, find the startup file, simulator library
7477       # and linker script.
7478       case " $target_configdirs " in
7479         *" libgloss "*)
7480         # Look for startup file, simulator library and maybe linker script.
7481         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7482         # Look for libnosys.a in case the target needs it.
7483         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7484         # Most targets have the linker script in the source directory.
7485         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7486         ;;
7487       esac
7488       ;;
7489    esac
7490    ;;
7491   esac
7492   ;;
7493 esac
7494
7495 case "$target" in
7496   x86_64-*mingw* | *-w64-mingw*)
7497   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7498   # however, use a symlink named 'mingw' in ${prefix} .
7499     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7500     ;;
7501   *-mingw*)
7502   # MinGW can't be handled as Cygwin above since it does not use newlib.
7503     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'
7504     ;;
7505 esac
7506
7507 # Allow the user to override the flags for
7508 # our build compiler if desired.
7509 if test x"${build}" = x"${host}" ; then
7510   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7511   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7512   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7513 fi
7514
7515 # On Canadian crosses, we'll be searching the right directories for
7516 # the previously-installed cross compiler, so don't bother to add
7517 # flags for directories within the install tree of the compiler
7518 # being built; programs in there won't even run.
7519 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7520   # Search for pre-installed headers if nothing else fits.
7521   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7522 fi
7523
7524 if test "x${use_gnu_ld}" = x &&
7525    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7526   # Arrange for us to find uninstalled linker scripts.
7527   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7528 fi
7529
7530 # Search for other target-specific linker scripts and such.
7531 case "${target}" in
7532   mep*)
7533     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7534     ;;
7535 esac
7536
7537 # Makefile fragments.
7538 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7539 do
7540   eval fragval=\$$frag
7541   if test $fragval != /dev/null; then
7542     eval $frag=${srcdir}/$fragval
7543   fi
7544 done
7545
7546
7547
7548
7549
7550 # Miscellanea: directories, flags, etc.
7551
7552
7553
7554
7555
7556
7557
7558
7559 # Build module lists & subconfigure args.
7560
7561
7562
7563 # Host module lists & subconfigure args.
7564
7565
7566
7567
7568 # Target module lists & subconfigure args.
7569
7570
7571
7572 # Build tools.
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590 # Generate default definitions for YACC, M4, LEX and other programs that run
7591 # on the build machine.  These are used if the Makefile can't locate these
7592 # programs in objdir.
7593 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7594
7595 for ac_prog in 'bison -y' byacc yacc
7596 do
7597   # Extract the first word of "$ac_prog", so it can be a program name with args.
7598 set dummy $ac_prog; ac_word=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600 $as_echo_n "checking for $ac_word... " >&6; }
7601 if test "${ac_cv_prog_YACC+set}" = set; then :
7602   $as_echo_n "(cached) " >&6
7603 else
7604   if test -n "$YACC"; then
7605   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7606 else
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7609 do
7610   IFS=$as_save_IFS
7611   test -z "$as_dir" && as_dir=.
7612     for ac_exec_ext in '' $ac_executable_extensions; do
7613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7614     ac_cv_prog_YACC="$ac_prog"
7615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616     break 2
7617   fi
7618 done
7619   done
7620 IFS=$as_save_IFS
7621
7622 fi
7623 fi
7624 YACC=$ac_cv_prog_YACC
7625 if test -n "$YACC"; then
7626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7627 $as_echo "$YACC" >&6; }
7628 else
7629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7631 fi
7632
7633
7634   test -n "$YACC" && break
7635 done
7636 test -n "$YACC" || YACC="$MISSING bison -y"
7637
7638 case " $build_configdirs " in
7639   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7640 esac
7641
7642 for ac_prog in bison
7643 do
7644   # Extract the first word of "$ac_prog", so it can be a program name with args.
7645 set dummy $ac_prog; ac_word=$2
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647 $as_echo_n "checking for $ac_word... " >&6; }
7648 if test "${ac_cv_prog_BISON+set}" = set; then :
7649   $as_echo_n "(cached) " >&6
7650 else
7651   if test -n "$BISON"; then
7652   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7653 else
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657   IFS=$as_save_IFS
7658   test -z "$as_dir" && as_dir=.
7659     for ac_exec_ext in '' $ac_executable_extensions; do
7660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7661     ac_cv_prog_BISON="$ac_prog"
7662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663     break 2
7664   fi
7665 done
7666   done
7667 IFS=$as_save_IFS
7668
7669 fi
7670 fi
7671 BISON=$ac_cv_prog_BISON
7672 if test -n "$BISON"; then
7673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7674 $as_echo "$BISON" >&6; }
7675 else
7676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7678 fi
7679
7680
7681   test -n "$BISON" && break
7682 done
7683 test -n "$BISON" || BISON="$MISSING bison"
7684
7685 case " $build_configdirs " in
7686   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7687 esac
7688
7689 for ac_prog in gm4 gnum4 m4
7690 do
7691   # Extract the first word of "$ac_prog", so it can be a program name with args.
7692 set dummy $ac_prog; ac_word=$2
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7694 $as_echo_n "checking for $ac_word... " >&6; }
7695 if test "${ac_cv_prog_M4+set}" = set; then :
7696   $as_echo_n "(cached) " >&6
7697 else
7698   if test -n "$M4"; then
7699   ac_cv_prog_M4="$M4" # Let the user override the test.
7700 else
7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 for as_dir in $PATH
7703 do
7704   IFS=$as_save_IFS
7705   test -z "$as_dir" && as_dir=.
7706     for ac_exec_ext in '' $ac_executable_extensions; do
7707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7708     ac_cv_prog_M4="$ac_prog"
7709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7710     break 2
7711   fi
7712 done
7713   done
7714 IFS=$as_save_IFS
7715
7716 fi
7717 fi
7718 M4=$ac_cv_prog_M4
7719 if test -n "$M4"; then
7720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7721 $as_echo "$M4" >&6; }
7722 else
7723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724 $as_echo "no" >&6; }
7725 fi
7726
7727
7728   test -n "$M4" && break
7729 done
7730 test -n "$M4" || M4="$MISSING m4"
7731
7732 case " $build_configdirs " in
7733   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7734 esac
7735
7736 for ac_prog in flex lex
7737 do
7738   # Extract the first word of "$ac_prog", so it can be a program name with args.
7739 set dummy $ac_prog; ac_word=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if test "${ac_cv_prog_LEX+set}" = set; then :
7743   $as_echo_n "(cached) " >&6
7744 else
7745   if test -n "$LEX"; then
7746   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7747 else
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751   IFS=$as_save_IFS
7752   test -z "$as_dir" && as_dir=.
7753     for ac_exec_ext in '' $ac_executable_extensions; do
7754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7755     ac_cv_prog_LEX="$ac_prog"
7756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757     break 2
7758   fi
7759 done
7760   done
7761 IFS=$as_save_IFS
7762
7763 fi
7764 fi
7765 LEX=$ac_cv_prog_LEX
7766 if test -n "$LEX"; then
7767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7768 $as_echo "$LEX" >&6; }
7769 else
7770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7772 fi
7773
7774
7775   test -n "$LEX" && break
7776 done
7777 test -n "$LEX" || LEX="$MISSING flex"
7778
7779 case " $build_configdirs " in
7780   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7781   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7782 esac
7783
7784 for ac_prog in flex
7785 do
7786   # Extract the first word of "$ac_prog", so it can be a program name with args.
7787 set dummy $ac_prog; ac_word=$2
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789 $as_echo_n "checking for $ac_word... " >&6; }
7790 if test "${ac_cv_prog_FLEX+set}" = set; then :
7791   $as_echo_n "(cached) " >&6
7792 else
7793   if test -n "$FLEX"; then
7794   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7795 else
7796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 for as_dir in $PATH
7798 do
7799   IFS=$as_save_IFS
7800   test -z "$as_dir" && as_dir=.
7801     for ac_exec_ext in '' $ac_executable_extensions; do
7802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7803     ac_cv_prog_FLEX="$ac_prog"
7804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7805     break 2
7806   fi
7807 done
7808   done
7809 IFS=$as_save_IFS
7810
7811 fi
7812 fi
7813 FLEX=$ac_cv_prog_FLEX
7814 if test -n "$FLEX"; then
7815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7816 $as_echo "$FLEX" >&6; }
7817 else
7818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7820 fi
7821
7822
7823   test -n "$FLEX" && break
7824 done
7825 test -n "$FLEX" || FLEX="$MISSING flex"
7826
7827 case " $build_configdirs " in
7828   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7829 esac
7830
7831 for ac_prog in makeinfo
7832 do
7833   # Extract the first word of "$ac_prog", so it can be a program name with args.
7834 set dummy $ac_prog; ac_word=$2
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836 $as_echo_n "checking for $ac_word... " >&6; }
7837 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7838   $as_echo_n "(cached) " >&6
7839 else
7840   if test -n "$MAKEINFO"; then
7841   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7842 else
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 for as_dir in $PATH
7845 do
7846   IFS=$as_save_IFS
7847   test -z "$as_dir" && as_dir=.
7848     for ac_exec_ext in '' $ac_executable_extensions; do
7849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7850     ac_cv_prog_MAKEINFO="$ac_prog"
7851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852     break 2
7853   fi
7854 done
7855   done
7856 IFS=$as_save_IFS
7857
7858 fi
7859 fi
7860 MAKEINFO=$ac_cv_prog_MAKEINFO
7861 if test -n "$MAKEINFO"; then
7862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7863 $as_echo "$MAKEINFO" >&6; }
7864 else
7865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866 $as_echo "no" >&6; }
7867 fi
7868
7869
7870   test -n "$MAKEINFO" && break
7871 done
7872 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7873
7874 case " $build_configdirs " in
7875   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7876   *)
7877
7878     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7879     # higher, else we use the "missing" dummy.
7880     if ${MAKEINFO} --version \
7881        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7882       :
7883     else
7884       MAKEINFO="$MISSING makeinfo"
7885     fi
7886     ;;
7887
7888 esac
7889
7890 # FIXME: expect and dejagnu may become build tools?
7891
7892 for ac_prog in expect
7893 do
7894   # Extract the first word of "$ac_prog", so it can be a program name with args.
7895 set dummy $ac_prog; ac_word=$2
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7897 $as_echo_n "checking for $ac_word... " >&6; }
7898 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7899   $as_echo_n "(cached) " >&6
7900 else
7901   if test -n "$EXPECT"; then
7902   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7903 else
7904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905 for as_dir in $PATH
7906 do
7907   IFS=$as_save_IFS
7908   test -z "$as_dir" && as_dir=.
7909     for ac_exec_ext in '' $ac_executable_extensions; do
7910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7911     ac_cv_prog_EXPECT="$ac_prog"
7912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7913     break 2
7914   fi
7915 done
7916   done
7917 IFS=$as_save_IFS
7918
7919 fi
7920 fi
7921 EXPECT=$ac_cv_prog_EXPECT
7922 if test -n "$EXPECT"; then
7923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7924 $as_echo "$EXPECT" >&6; }
7925 else
7926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7927 $as_echo "no" >&6; }
7928 fi
7929
7930
7931   test -n "$EXPECT" && break
7932 done
7933 test -n "$EXPECT" || EXPECT="expect"
7934
7935 case " $configdirs " in
7936   *" expect "*)
7937     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7938     ;;
7939 esac
7940
7941 for ac_prog in runtest
7942 do
7943   # Extract the first word of "$ac_prog", so it can be a program name with args.
7944 set dummy $ac_prog; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7948   $as_echo_n "(cached) " >&6
7949 else
7950   if test -n "$RUNTEST"; then
7951   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7952 else
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7955 do
7956   IFS=$as_save_IFS
7957   test -z "$as_dir" && as_dir=.
7958     for ac_exec_ext in '' $ac_executable_extensions; do
7959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7960     ac_cv_prog_RUNTEST="$ac_prog"
7961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962     break 2
7963   fi
7964 done
7965   done
7966 IFS=$as_save_IFS
7967
7968 fi
7969 fi
7970 RUNTEST=$ac_cv_prog_RUNTEST
7971 if test -n "$RUNTEST"; then
7972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7973 $as_echo "$RUNTEST" >&6; }
7974 else
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7977 fi
7978
7979
7980   test -n "$RUNTEST" && break
7981 done
7982 test -n "$RUNTEST" || RUNTEST="runtest"
7983
7984 case " $configdirs " in
7985   *" dejagnu "*)
7986     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7987     ;;
7988 esac
7989
7990
7991 # Host tools.
7992 ncn_tool_prefix=
7993 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7994 ncn_target_tool_prefix=
7995 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7996
7997
7998
7999 if test -n "$AR"; then
8000   ac_cv_prog_AR=$AR
8001 elif test -n "$ac_cv_prog_AR"; then
8002   AR=$ac_cv_prog_AR
8003 fi
8004
8005 if test -n "$ac_cv_prog_AR"; then
8006   for ncn_progname in ar; do
8007     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8008 set dummy ${ncn_progname}; ac_word=$2
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010 $as_echo_n "checking for $ac_word... " >&6; }
8011 if test "${ac_cv_prog_AR+set}" = set; then :
8012   $as_echo_n "(cached) " >&6
8013 else
8014   if test -n "$AR"; then
8015   ac_cv_prog_AR="$AR" # Let the user override the test.
8016 else
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $PATH
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8024     ac_cv_prog_AR="${ncn_progname}"
8025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8026     break 2
8027   fi
8028 done
8029   done
8030 IFS=$as_save_IFS
8031
8032 fi
8033 fi
8034 AR=$ac_cv_prog_AR
8035 if test -n "$AR"; then
8036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8037 $as_echo "$AR" >&6; }
8038 else
8039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040 $as_echo "no" >&6; }
8041 fi
8042
8043
8044   done
8045 fi
8046
8047 for ncn_progname in ar; do
8048   if test -n "$ncn_tool_prefix"; then
8049     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8050 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if test "${ac_cv_prog_AR+set}" = set; then :
8054   $as_echo_n "(cached) " >&6
8055 else
8056   if test -n "$AR"; then
8057   ac_cv_prog_AR="$AR" # Let the user override the test.
8058 else
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8061 do
8062   IFS=$as_save_IFS
8063   test -z "$as_dir" && as_dir=.
8064     for ac_exec_ext in '' $ac_executable_extensions; do
8065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8066     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068     break 2
8069   fi
8070 done
8071   done
8072 IFS=$as_save_IFS
8073
8074 fi
8075 fi
8076 AR=$ac_cv_prog_AR
8077 if test -n "$AR"; then
8078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8079 $as_echo "$AR" >&6; }
8080 else
8081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8083 fi
8084
8085
8086   fi
8087   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8088     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8089 set dummy ${ncn_progname}; ac_word=$2
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091 $as_echo_n "checking for $ac_word... " >&6; }
8092 if test "${ac_cv_prog_AR+set}" = set; then :
8093   $as_echo_n "(cached) " >&6
8094 else
8095   if test -n "$AR"; then
8096   ac_cv_prog_AR="$AR" # Let the user override the test.
8097 else
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 for as_dir in $PATH
8100 do
8101   IFS=$as_save_IFS
8102   test -z "$as_dir" && as_dir=.
8103     for ac_exec_ext in '' $ac_executable_extensions; do
8104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8105     ac_cv_prog_AR="${ncn_progname}"
8106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107     break 2
8108   fi
8109 done
8110   done
8111 IFS=$as_save_IFS
8112
8113 fi
8114 fi
8115 AR=$ac_cv_prog_AR
8116 if test -n "$AR"; then
8117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8118 $as_echo "$AR" >&6; }
8119 else
8120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121 $as_echo "no" >&6; }
8122 fi
8123
8124
8125   fi
8126   test -n "$ac_cv_prog_AR" && break
8127 done
8128
8129 if test -z "$ac_cv_prog_AR" ; then
8130   set dummy ar
8131   if test $build = $host ; then
8132     AR="$2"
8133   else
8134     AR="${ncn_tool_prefix}$2"
8135   fi
8136 fi
8137
8138
8139
8140 if test -n "$AS"; then
8141   ac_cv_prog_AS=$AS
8142 elif test -n "$ac_cv_prog_AS"; then
8143   AS=$ac_cv_prog_AS
8144 fi
8145
8146 if test -n "$ac_cv_prog_AS"; then
8147   for ncn_progname in as; do
8148     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8149 set dummy ${ncn_progname}; ac_word=$2
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151 $as_echo_n "checking for $ac_word... " >&6; }
8152 if test "${ac_cv_prog_AS+set}" = set; then :
8153   $as_echo_n "(cached) " >&6
8154 else
8155   if test -n "$AS"; then
8156   ac_cv_prog_AS="$AS" # Let the user override the test.
8157 else
8158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159 for as_dir in $PATH
8160 do
8161   IFS=$as_save_IFS
8162   test -z "$as_dir" && as_dir=.
8163     for ac_exec_ext in '' $ac_executable_extensions; do
8164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8165     ac_cv_prog_AS="${ncn_progname}"
8166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167     break 2
8168   fi
8169 done
8170   done
8171 IFS=$as_save_IFS
8172
8173 fi
8174 fi
8175 AS=$ac_cv_prog_AS
8176 if test -n "$AS"; then
8177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8178 $as_echo "$AS" >&6; }
8179 else
8180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }
8182 fi
8183
8184
8185   done
8186 fi
8187
8188 for ncn_progname in as; do
8189   if test -n "$ncn_tool_prefix"; then
8190     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8191 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193 $as_echo_n "checking for $ac_word... " >&6; }
8194 if test "${ac_cv_prog_AS+set}" = set; then :
8195   $as_echo_n "(cached) " >&6
8196 else
8197   if test -n "$AS"; then
8198   ac_cv_prog_AS="$AS" # Let the user override the test.
8199 else
8200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201 for as_dir in $PATH
8202 do
8203   IFS=$as_save_IFS
8204   test -z "$as_dir" && as_dir=.
8205     for ac_exec_ext in '' $ac_executable_extensions; do
8206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8207     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8209     break 2
8210   fi
8211 done
8212   done
8213 IFS=$as_save_IFS
8214
8215 fi
8216 fi
8217 AS=$ac_cv_prog_AS
8218 if test -n "$AS"; then
8219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8220 $as_echo "$AS" >&6; }
8221 else
8222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223 $as_echo "no" >&6; }
8224 fi
8225
8226
8227   fi
8228   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8229     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8230 set dummy ${ncn_progname}; ac_word=$2
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8232 $as_echo_n "checking for $ac_word... " >&6; }
8233 if test "${ac_cv_prog_AS+set}" = set; then :
8234   $as_echo_n "(cached) " >&6
8235 else
8236   if test -n "$AS"; then
8237   ac_cv_prog_AS="$AS" # Let the user override the test.
8238 else
8239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240 for as_dir in $PATH
8241 do
8242   IFS=$as_save_IFS
8243   test -z "$as_dir" && as_dir=.
8244     for ac_exec_ext in '' $ac_executable_extensions; do
8245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8246     ac_cv_prog_AS="${ncn_progname}"
8247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8248     break 2
8249   fi
8250 done
8251   done
8252 IFS=$as_save_IFS
8253
8254 fi
8255 fi
8256 AS=$ac_cv_prog_AS
8257 if test -n "$AS"; then
8258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8259 $as_echo "$AS" >&6; }
8260 else
8261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262 $as_echo "no" >&6; }
8263 fi
8264
8265
8266   fi
8267   test -n "$ac_cv_prog_AS" && break
8268 done
8269
8270 if test -z "$ac_cv_prog_AS" ; then
8271   set dummy as
8272   if test $build = $host ; then
8273     AS="$2"
8274   else
8275     AS="${ncn_tool_prefix}$2"
8276   fi
8277 fi
8278
8279
8280
8281 if test -n "$DLLTOOL"; then
8282   ac_cv_prog_DLLTOOL=$DLLTOOL
8283 elif test -n "$ac_cv_prog_DLLTOOL"; then
8284   DLLTOOL=$ac_cv_prog_DLLTOOL
8285 fi
8286
8287 if test -n "$ac_cv_prog_DLLTOOL"; then
8288   for ncn_progname in dlltool; do
8289     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8290 set dummy ${ncn_progname}; ac_word=$2
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8292 $as_echo_n "checking for $ac_word... " >&6; }
8293 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8294   $as_echo_n "(cached) " >&6
8295 else
8296   if test -n "$DLLTOOL"; then
8297   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8298 else
8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 for as_dir in $PATH
8301 do
8302   IFS=$as_save_IFS
8303   test -z "$as_dir" && as_dir=.
8304     for ac_exec_ext in '' $ac_executable_extensions; do
8305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8306     ac_cv_prog_DLLTOOL="${ncn_progname}"
8307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8308     break 2
8309   fi
8310 done
8311   done
8312 IFS=$as_save_IFS
8313
8314 fi
8315 fi
8316 DLLTOOL=$ac_cv_prog_DLLTOOL
8317 if test -n "$DLLTOOL"; then
8318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8319 $as_echo "$DLLTOOL" >&6; }
8320 else
8321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8323 fi
8324
8325
8326   done
8327 fi
8328
8329 for ncn_progname in dlltool; do
8330   if test -n "$ncn_tool_prefix"; then
8331     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8332 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8336   $as_echo_n "(cached) " >&6
8337 else
8338   if test -n "$DLLTOOL"; then
8339   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8340 else
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 for as_dir in $PATH
8343 do
8344   IFS=$as_save_IFS
8345   test -z "$as_dir" && as_dir=.
8346     for ac_exec_ext in '' $ac_executable_extensions; do
8347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350     break 2
8351   fi
8352 done
8353   done
8354 IFS=$as_save_IFS
8355
8356 fi
8357 fi
8358 DLLTOOL=$ac_cv_prog_DLLTOOL
8359 if test -n "$DLLTOOL"; then
8360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8361 $as_echo "$DLLTOOL" >&6; }
8362 else
8363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8365 fi
8366
8367
8368   fi
8369   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8370     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8371 set dummy ${ncn_progname}; ac_word=$2
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8373 $as_echo_n "checking for $ac_word... " >&6; }
8374 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8375   $as_echo_n "(cached) " >&6
8376 else
8377   if test -n "$DLLTOOL"; then
8378   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8379 else
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 for as_dir in $PATH
8382 do
8383   IFS=$as_save_IFS
8384   test -z "$as_dir" && as_dir=.
8385     for ac_exec_ext in '' $ac_executable_extensions; do
8386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8387     ac_cv_prog_DLLTOOL="${ncn_progname}"
8388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8389     break 2
8390   fi
8391 done
8392   done
8393 IFS=$as_save_IFS
8394
8395 fi
8396 fi
8397 DLLTOOL=$ac_cv_prog_DLLTOOL
8398 if test -n "$DLLTOOL"; then
8399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8400 $as_echo "$DLLTOOL" >&6; }
8401 else
8402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403 $as_echo "no" >&6; }
8404 fi
8405
8406
8407   fi
8408   test -n "$ac_cv_prog_DLLTOOL" && break
8409 done
8410
8411 if test -z "$ac_cv_prog_DLLTOOL" ; then
8412   set dummy dlltool
8413   if test $build = $host ; then
8414     DLLTOOL="$2"
8415   else
8416     DLLTOOL="${ncn_tool_prefix}$2"
8417   fi
8418 fi
8419
8420
8421
8422 if test -n "$LD"; then
8423   ac_cv_prog_LD=$LD
8424 elif test -n "$ac_cv_prog_LD"; then
8425   LD=$ac_cv_prog_LD
8426 fi
8427
8428 if test -n "$ac_cv_prog_LD"; then
8429   for ncn_progname in ld; do
8430     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8431 set dummy ${ncn_progname}; ac_word=$2
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433 $as_echo_n "checking for $ac_word... " >&6; }
8434 if test "${ac_cv_prog_LD+set}" = set; then :
8435   $as_echo_n "(cached) " >&6
8436 else
8437   if test -n "$LD"; then
8438   ac_cv_prog_LD="$LD" # Let the user override the test.
8439 else
8440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 for as_dir in $PATH
8442 do
8443   IFS=$as_save_IFS
8444   test -z "$as_dir" && as_dir=.
8445     for ac_exec_ext in '' $ac_executable_extensions; do
8446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8447     ac_cv_prog_LD="${ncn_progname}"
8448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8449     break 2
8450   fi
8451 done
8452   done
8453 IFS=$as_save_IFS
8454
8455 fi
8456 fi
8457 LD=$ac_cv_prog_LD
8458 if test -n "$LD"; then
8459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8460 $as_echo "$LD" >&6; }
8461 else
8462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8464 fi
8465
8466
8467   done
8468 fi
8469
8470 for ncn_progname in ld; do
8471   if test -n "$ncn_tool_prefix"; then
8472     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8473 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475 $as_echo_n "checking for $ac_word... " >&6; }
8476 if test "${ac_cv_prog_LD+set}" = set; then :
8477   $as_echo_n "(cached) " >&6
8478 else
8479   if test -n "$LD"; then
8480   ac_cv_prog_LD="$LD" # Let the user override the test.
8481 else
8482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 for as_dir in $PATH
8484 do
8485   IFS=$as_save_IFS
8486   test -z "$as_dir" && as_dir=.
8487     for ac_exec_ext in '' $ac_executable_extensions; do
8488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8489     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8491     break 2
8492   fi
8493 done
8494   done
8495 IFS=$as_save_IFS
8496
8497 fi
8498 fi
8499 LD=$ac_cv_prog_LD
8500 if test -n "$LD"; then
8501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8502 $as_echo "$LD" >&6; }
8503 else
8504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505 $as_echo "no" >&6; }
8506 fi
8507
8508
8509   fi
8510   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8511     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8512 set dummy ${ncn_progname}; ac_word=$2
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8514 $as_echo_n "checking for $ac_word... " >&6; }
8515 if test "${ac_cv_prog_LD+set}" = set; then :
8516   $as_echo_n "(cached) " >&6
8517 else
8518   if test -n "$LD"; then
8519   ac_cv_prog_LD="$LD" # Let the user override the test.
8520 else
8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 for as_dir in $PATH
8523 do
8524   IFS=$as_save_IFS
8525   test -z "$as_dir" && as_dir=.
8526     for ac_exec_ext in '' $ac_executable_extensions; do
8527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8528     ac_cv_prog_LD="${ncn_progname}"
8529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530     break 2
8531   fi
8532 done
8533   done
8534 IFS=$as_save_IFS
8535
8536 fi
8537 fi
8538 LD=$ac_cv_prog_LD
8539 if test -n "$LD"; then
8540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8541 $as_echo "$LD" >&6; }
8542 else
8543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8545 fi
8546
8547
8548   fi
8549   test -n "$ac_cv_prog_LD" && break
8550 done
8551
8552 if test -z "$ac_cv_prog_LD" ; then
8553   set dummy ld
8554   if test $build = $host ; then
8555     LD="$2"
8556   else
8557     LD="${ncn_tool_prefix}$2"
8558   fi
8559 fi
8560
8561
8562
8563 if test -n "$LIPO"; then
8564   ac_cv_prog_LIPO=$LIPO
8565 elif test -n "$ac_cv_prog_LIPO"; then
8566   LIPO=$ac_cv_prog_LIPO
8567 fi
8568
8569 if test -n "$ac_cv_prog_LIPO"; then
8570   for ncn_progname in lipo; do
8571     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8572 set dummy ${ncn_progname}; ac_word=$2
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8574 $as_echo_n "checking for $ac_word... " >&6; }
8575 if test "${ac_cv_prog_LIPO+set}" = set; then :
8576   $as_echo_n "(cached) " >&6
8577 else
8578   if test -n "$LIPO"; then
8579   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8580 else
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 for as_dir in $PATH
8583 do
8584   IFS=$as_save_IFS
8585   test -z "$as_dir" && as_dir=.
8586     for ac_exec_ext in '' $ac_executable_extensions; do
8587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8588     ac_cv_prog_LIPO="${ncn_progname}"
8589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8590     break 2
8591   fi
8592 done
8593   done
8594 IFS=$as_save_IFS
8595
8596 fi
8597 fi
8598 LIPO=$ac_cv_prog_LIPO
8599 if test -n "$LIPO"; then
8600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8601 $as_echo "$LIPO" >&6; }
8602 else
8603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604 $as_echo "no" >&6; }
8605 fi
8606
8607
8608   done
8609 fi
8610
8611 for ncn_progname in lipo; do
8612   if test -n "$ncn_tool_prefix"; then
8613     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8614 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8616 $as_echo_n "checking for $ac_word... " >&6; }
8617 if test "${ac_cv_prog_LIPO+set}" = set; then :
8618   $as_echo_n "(cached) " >&6
8619 else
8620   if test -n "$LIPO"; then
8621   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8622 else
8623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624 for as_dir in $PATH
8625 do
8626   IFS=$as_save_IFS
8627   test -z "$as_dir" && as_dir=.
8628     for ac_exec_ext in '' $ac_executable_extensions; do
8629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8630     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8632     break 2
8633   fi
8634 done
8635   done
8636 IFS=$as_save_IFS
8637
8638 fi
8639 fi
8640 LIPO=$ac_cv_prog_LIPO
8641 if test -n "$LIPO"; then
8642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8643 $as_echo "$LIPO" >&6; }
8644 else
8645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8647 fi
8648
8649
8650   fi
8651   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8652     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8653 set dummy ${ncn_progname}; ac_word=$2
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655 $as_echo_n "checking for $ac_word... " >&6; }
8656 if test "${ac_cv_prog_LIPO+set}" = set; then :
8657   $as_echo_n "(cached) " >&6
8658 else
8659   if test -n "$LIPO"; then
8660   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8661 else
8662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663 for as_dir in $PATH
8664 do
8665   IFS=$as_save_IFS
8666   test -z "$as_dir" && as_dir=.
8667     for ac_exec_ext in '' $ac_executable_extensions; do
8668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8669     ac_cv_prog_LIPO="${ncn_progname}"
8670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8671     break 2
8672   fi
8673 done
8674   done
8675 IFS=$as_save_IFS
8676
8677 fi
8678 fi
8679 LIPO=$ac_cv_prog_LIPO
8680 if test -n "$LIPO"; then
8681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8682 $as_echo "$LIPO" >&6; }
8683 else
8684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685 $as_echo "no" >&6; }
8686 fi
8687
8688
8689   fi
8690   test -n "$ac_cv_prog_LIPO" && break
8691 done
8692
8693 if test -z "$ac_cv_prog_LIPO" ; then
8694   set dummy lipo
8695   if test $build = $host ; then
8696     LIPO="$2"
8697   else
8698     LIPO="${ncn_tool_prefix}$2"
8699   fi
8700 fi
8701
8702
8703
8704 if test -n "$NM"; then
8705   ac_cv_prog_NM=$NM
8706 elif test -n "$ac_cv_prog_NM"; then
8707   NM=$ac_cv_prog_NM
8708 fi
8709
8710 if test -n "$ac_cv_prog_NM"; then
8711   for ncn_progname in nm; do
8712     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8713 set dummy ${ncn_progname}; ac_word=$2
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8715 $as_echo_n "checking for $ac_word... " >&6; }
8716 if test "${ac_cv_prog_NM+set}" = set; then :
8717   $as_echo_n "(cached) " >&6
8718 else
8719   if test -n "$NM"; then
8720   ac_cv_prog_NM="$NM" # Let the user override the test.
8721 else
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 for as_dir in $PATH
8724 do
8725   IFS=$as_save_IFS
8726   test -z "$as_dir" && as_dir=.
8727     for ac_exec_ext in '' $ac_executable_extensions; do
8728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8729     ac_cv_prog_NM="${ncn_progname}"
8730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8731     break 2
8732   fi
8733 done
8734   done
8735 IFS=$as_save_IFS
8736
8737 fi
8738 fi
8739 NM=$ac_cv_prog_NM
8740 if test -n "$NM"; then
8741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8742 $as_echo "$NM" >&6; }
8743 else
8744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8745 $as_echo "no" >&6; }
8746 fi
8747
8748
8749   done
8750 fi
8751
8752 for ncn_progname in nm; do
8753   if test -n "$ncn_tool_prefix"; then
8754     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8755 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8757 $as_echo_n "checking for $ac_word... " >&6; }
8758 if test "${ac_cv_prog_NM+set}" = set; then :
8759   $as_echo_n "(cached) " >&6
8760 else
8761   if test -n "$NM"; then
8762   ac_cv_prog_NM="$NM" # Let the user override the test.
8763 else
8764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765 for as_dir in $PATH
8766 do
8767   IFS=$as_save_IFS
8768   test -z "$as_dir" && as_dir=.
8769     for ac_exec_ext in '' $ac_executable_extensions; do
8770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8771     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8773     break 2
8774   fi
8775 done
8776   done
8777 IFS=$as_save_IFS
8778
8779 fi
8780 fi
8781 NM=$ac_cv_prog_NM
8782 if test -n "$NM"; then
8783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8784 $as_echo "$NM" >&6; }
8785 else
8786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787 $as_echo "no" >&6; }
8788 fi
8789
8790
8791   fi
8792   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8793     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8794 set dummy ${ncn_progname}; ac_word=$2
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8796 $as_echo_n "checking for $ac_word... " >&6; }
8797 if test "${ac_cv_prog_NM+set}" = set; then :
8798   $as_echo_n "(cached) " >&6
8799 else
8800   if test -n "$NM"; then
8801   ac_cv_prog_NM="$NM" # Let the user override the test.
8802 else
8803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804 for as_dir in $PATH
8805 do
8806   IFS=$as_save_IFS
8807   test -z "$as_dir" && as_dir=.
8808     for ac_exec_ext in '' $ac_executable_extensions; do
8809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8810     ac_cv_prog_NM="${ncn_progname}"
8811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8812     break 2
8813   fi
8814 done
8815   done
8816 IFS=$as_save_IFS
8817
8818 fi
8819 fi
8820 NM=$ac_cv_prog_NM
8821 if test -n "$NM"; then
8822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8823 $as_echo "$NM" >&6; }
8824 else
8825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8826 $as_echo "no" >&6; }
8827 fi
8828
8829
8830   fi
8831   test -n "$ac_cv_prog_NM" && break
8832 done
8833
8834 if test -z "$ac_cv_prog_NM" ; then
8835   set dummy nm
8836   if test $build = $host ; then
8837     NM="$2"
8838   else
8839     NM="${ncn_tool_prefix}$2"
8840   fi
8841 fi
8842
8843
8844
8845 if test -n "$RANLIB"; then
8846   ac_cv_prog_RANLIB=$RANLIB
8847 elif test -n "$ac_cv_prog_RANLIB"; then
8848   RANLIB=$ac_cv_prog_RANLIB
8849 fi
8850
8851 if test -n "$ac_cv_prog_RANLIB"; then
8852   for ncn_progname in ranlib; do
8853     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8854 set dummy ${ncn_progname}; ac_word=$2
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8856 $as_echo_n "checking for $ac_word... " >&6; }
8857 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8858   $as_echo_n "(cached) " >&6
8859 else
8860   if test -n "$RANLIB"; then
8861   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8862 else
8863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864 for as_dir in $PATH
8865 do
8866   IFS=$as_save_IFS
8867   test -z "$as_dir" && as_dir=.
8868     for ac_exec_ext in '' $ac_executable_extensions; do
8869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8870     ac_cv_prog_RANLIB="${ncn_progname}"
8871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8872     break 2
8873   fi
8874 done
8875   done
8876 IFS=$as_save_IFS
8877
8878 fi
8879 fi
8880 RANLIB=$ac_cv_prog_RANLIB
8881 if test -n "$RANLIB"; then
8882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8883 $as_echo "$RANLIB" >&6; }
8884 else
8885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886 $as_echo "no" >&6; }
8887 fi
8888
8889
8890   done
8891 fi
8892
8893 for ncn_progname in ranlib; do
8894   if test -n "$ncn_tool_prefix"; then
8895     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8896 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8898 $as_echo_n "checking for $ac_word... " >&6; }
8899 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8900   $as_echo_n "(cached) " >&6
8901 else
8902   if test -n "$RANLIB"; then
8903   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8904 else
8905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906 for as_dir in $PATH
8907 do
8908   IFS=$as_save_IFS
8909   test -z "$as_dir" && as_dir=.
8910     for ac_exec_ext in '' $ac_executable_extensions; do
8911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8912     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8914     break 2
8915   fi
8916 done
8917   done
8918 IFS=$as_save_IFS
8919
8920 fi
8921 fi
8922 RANLIB=$ac_cv_prog_RANLIB
8923 if test -n "$RANLIB"; then
8924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8925 $as_echo "$RANLIB" >&6; }
8926 else
8927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 $as_echo "no" >&6; }
8929 fi
8930
8931
8932   fi
8933   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8934     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8935 set dummy ${ncn_progname}; ac_word=$2
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937 $as_echo_n "checking for $ac_word... " >&6; }
8938 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8939   $as_echo_n "(cached) " >&6
8940 else
8941   if test -n "$RANLIB"; then
8942   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8943 else
8944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 for as_dir in $PATH
8946 do
8947   IFS=$as_save_IFS
8948   test -z "$as_dir" && as_dir=.
8949     for ac_exec_ext in '' $ac_executable_extensions; do
8950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8951     ac_cv_prog_RANLIB="${ncn_progname}"
8952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8953     break 2
8954   fi
8955 done
8956   done
8957 IFS=$as_save_IFS
8958
8959 fi
8960 fi
8961 RANLIB=$ac_cv_prog_RANLIB
8962 if test -n "$RANLIB"; then
8963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8964 $as_echo "$RANLIB" >&6; }
8965 else
8966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8967 $as_echo "no" >&6; }
8968 fi
8969
8970
8971   fi
8972   test -n "$ac_cv_prog_RANLIB" && break
8973 done
8974
8975 if test -z "$ac_cv_prog_RANLIB" ; then
8976   RANLIB="true"
8977 fi
8978
8979
8980
8981 if test -n "$STRIP"; then
8982   ac_cv_prog_STRIP=$STRIP
8983 elif test -n "$ac_cv_prog_STRIP"; then
8984   STRIP=$ac_cv_prog_STRIP
8985 fi
8986
8987 if test -n "$ac_cv_prog_STRIP"; then
8988   for ncn_progname in strip; do
8989     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8990 set dummy ${ncn_progname}; ac_word=$2
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8992 $as_echo_n "checking for $ac_word... " >&6; }
8993 if test "${ac_cv_prog_STRIP+set}" = set; then :
8994   $as_echo_n "(cached) " >&6
8995 else
8996   if test -n "$STRIP"; then
8997   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8998 else
8999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9000 for as_dir in $PATH
9001 do
9002   IFS=$as_save_IFS
9003   test -z "$as_dir" && as_dir=.
9004     for ac_exec_ext in '' $ac_executable_extensions; do
9005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9006     ac_cv_prog_STRIP="${ncn_progname}"
9007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9008     break 2
9009   fi
9010 done
9011   done
9012 IFS=$as_save_IFS
9013
9014 fi
9015 fi
9016 STRIP=$ac_cv_prog_STRIP
9017 if test -n "$STRIP"; then
9018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9019 $as_echo "$STRIP" >&6; }
9020 else
9021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022 $as_echo "no" >&6; }
9023 fi
9024
9025
9026   done
9027 fi
9028
9029 for ncn_progname in strip; do
9030   if test -n "$ncn_tool_prefix"; then
9031     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9032 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9034 $as_echo_n "checking for $ac_word... " >&6; }
9035 if test "${ac_cv_prog_STRIP+set}" = set; then :
9036   $as_echo_n "(cached) " >&6
9037 else
9038   if test -n "$STRIP"; then
9039   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9040 else
9041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042 for as_dir in $PATH
9043 do
9044   IFS=$as_save_IFS
9045   test -z "$as_dir" && as_dir=.
9046     for ac_exec_ext in '' $ac_executable_extensions; do
9047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9048     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9050     break 2
9051   fi
9052 done
9053   done
9054 IFS=$as_save_IFS
9055
9056 fi
9057 fi
9058 STRIP=$ac_cv_prog_STRIP
9059 if test -n "$STRIP"; then
9060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9061 $as_echo "$STRIP" >&6; }
9062 else
9063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064 $as_echo "no" >&6; }
9065 fi
9066
9067
9068   fi
9069   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9070     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9071 set dummy ${ncn_progname}; ac_word=$2
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9073 $as_echo_n "checking for $ac_word... " >&6; }
9074 if test "${ac_cv_prog_STRIP+set}" = set; then :
9075   $as_echo_n "(cached) " >&6
9076 else
9077   if test -n "$STRIP"; then
9078   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9079 else
9080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081 for as_dir in $PATH
9082 do
9083   IFS=$as_save_IFS
9084   test -z "$as_dir" && as_dir=.
9085     for ac_exec_ext in '' $ac_executable_extensions; do
9086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9087     ac_cv_prog_STRIP="${ncn_progname}"
9088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9089     break 2
9090   fi
9091 done
9092   done
9093 IFS=$as_save_IFS
9094
9095 fi
9096 fi
9097 STRIP=$ac_cv_prog_STRIP
9098 if test -n "$STRIP"; then
9099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9100 $as_echo "$STRIP" >&6; }
9101 else
9102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103 $as_echo "no" >&6; }
9104 fi
9105
9106
9107   fi
9108   test -n "$ac_cv_prog_STRIP" && break
9109 done
9110
9111 if test -z "$ac_cv_prog_STRIP" ; then
9112   STRIP="true"
9113 fi
9114
9115
9116
9117 if test -n "$WINDRES"; then
9118   ac_cv_prog_WINDRES=$WINDRES
9119 elif test -n "$ac_cv_prog_WINDRES"; then
9120   WINDRES=$ac_cv_prog_WINDRES
9121 fi
9122
9123 if test -n "$ac_cv_prog_WINDRES"; then
9124   for ncn_progname in windres; do
9125     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9126 set dummy ${ncn_progname}; ac_word=$2
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9128 $as_echo_n "checking for $ac_word... " >&6; }
9129 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9130   $as_echo_n "(cached) " >&6
9131 else
9132   if test -n "$WINDRES"; then
9133   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9134 else
9135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9136 for as_dir in $PATH
9137 do
9138   IFS=$as_save_IFS
9139   test -z "$as_dir" && as_dir=.
9140     for ac_exec_ext in '' $ac_executable_extensions; do
9141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9142     ac_cv_prog_WINDRES="${ncn_progname}"
9143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9144     break 2
9145   fi
9146 done
9147   done
9148 IFS=$as_save_IFS
9149
9150 fi
9151 fi
9152 WINDRES=$ac_cv_prog_WINDRES
9153 if test -n "$WINDRES"; then
9154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9155 $as_echo "$WINDRES" >&6; }
9156 else
9157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158 $as_echo "no" >&6; }
9159 fi
9160
9161
9162   done
9163 fi
9164
9165 for ncn_progname in windres; do
9166   if test -n "$ncn_tool_prefix"; then
9167     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9168 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170 $as_echo_n "checking for $ac_word... " >&6; }
9171 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9172   $as_echo_n "(cached) " >&6
9173 else
9174   if test -n "$WINDRES"; then
9175   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9176 else
9177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178 for as_dir in $PATH
9179 do
9180   IFS=$as_save_IFS
9181   test -z "$as_dir" && as_dir=.
9182     for ac_exec_ext in '' $ac_executable_extensions; do
9183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9184     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9186     break 2
9187   fi
9188 done
9189   done
9190 IFS=$as_save_IFS
9191
9192 fi
9193 fi
9194 WINDRES=$ac_cv_prog_WINDRES
9195 if test -n "$WINDRES"; then
9196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9197 $as_echo "$WINDRES" >&6; }
9198 else
9199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200 $as_echo "no" >&6; }
9201 fi
9202
9203
9204   fi
9205   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9206     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9207 set dummy ${ncn_progname}; ac_word=$2
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9209 $as_echo_n "checking for $ac_word... " >&6; }
9210 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9211   $as_echo_n "(cached) " >&6
9212 else
9213   if test -n "$WINDRES"; then
9214   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9215 else
9216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9217 for as_dir in $PATH
9218 do
9219   IFS=$as_save_IFS
9220   test -z "$as_dir" && as_dir=.
9221     for ac_exec_ext in '' $ac_executable_extensions; do
9222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9223     ac_cv_prog_WINDRES="${ncn_progname}"
9224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9225     break 2
9226   fi
9227 done
9228   done
9229 IFS=$as_save_IFS
9230
9231 fi
9232 fi
9233 WINDRES=$ac_cv_prog_WINDRES
9234 if test -n "$WINDRES"; then
9235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9236 $as_echo "$WINDRES" >&6; }
9237 else
9238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9239 $as_echo "no" >&6; }
9240 fi
9241
9242
9243   fi
9244   test -n "$ac_cv_prog_WINDRES" && break
9245 done
9246
9247 if test -z "$ac_cv_prog_WINDRES" ; then
9248   set dummy windres
9249   if test $build = $host ; then
9250     WINDRES="$2"
9251   else
9252     WINDRES="${ncn_tool_prefix}$2"
9253   fi
9254 fi
9255
9256
9257
9258 if test -n "$WINDMC"; then
9259   ac_cv_prog_WINDMC=$WINDMC
9260 elif test -n "$ac_cv_prog_WINDMC"; then
9261   WINDMC=$ac_cv_prog_WINDMC
9262 fi
9263
9264 if test -n "$ac_cv_prog_WINDMC"; then
9265   for ncn_progname in windmc; do
9266     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9267 set dummy ${ncn_progname}; ac_word=$2
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9269 $as_echo_n "checking for $ac_word... " >&6; }
9270 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9271   $as_echo_n "(cached) " >&6
9272 else
9273   if test -n "$WINDMC"; then
9274   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9275 else
9276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277 for as_dir in $PATH
9278 do
9279   IFS=$as_save_IFS
9280   test -z "$as_dir" && as_dir=.
9281     for ac_exec_ext in '' $ac_executable_extensions; do
9282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9283     ac_cv_prog_WINDMC="${ncn_progname}"
9284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9285     break 2
9286   fi
9287 done
9288   done
9289 IFS=$as_save_IFS
9290
9291 fi
9292 fi
9293 WINDMC=$ac_cv_prog_WINDMC
9294 if test -n "$WINDMC"; then
9295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9296 $as_echo "$WINDMC" >&6; }
9297 else
9298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9300 fi
9301
9302
9303   done
9304 fi
9305
9306 for ncn_progname in windmc; do
9307   if test -n "$ncn_tool_prefix"; then
9308     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9309 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9311 $as_echo_n "checking for $ac_word... " >&6; }
9312 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9313   $as_echo_n "(cached) " >&6
9314 else
9315   if test -n "$WINDMC"; then
9316   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9317 else
9318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319 for as_dir in $PATH
9320 do
9321   IFS=$as_save_IFS
9322   test -z "$as_dir" && as_dir=.
9323     for ac_exec_ext in '' $ac_executable_extensions; do
9324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9325     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9327     break 2
9328   fi
9329 done
9330   done
9331 IFS=$as_save_IFS
9332
9333 fi
9334 fi
9335 WINDMC=$ac_cv_prog_WINDMC
9336 if test -n "$WINDMC"; then
9337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9338 $as_echo "$WINDMC" >&6; }
9339 else
9340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9341 $as_echo "no" >&6; }
9342 fi
9343
9344
9345   fi
9346   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9347     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9348 set dummy ${ncn_progname}; ac_word=$2
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9350 $as_echo_n "checking for $ac_word... " >&6; }
9351 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9352   $as_echo_n "(cached) " >&6
9353 else
9354   if test -n "$WINDMC"; then
9355   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9356 else
9357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358 for as_dir in $PATH
9359 do
9360   IFS=$as_save_IFS
9361   test -z "$as_dir" && as_dir=.
9362     for ac_exec_ext in '' $ac_executable_extensions; do
9363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9364     ac_cv_prog_WINDMC="${ncn_progname}"
9365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9366     break 2
9367   fi
9368 done
9369   done
9370 IFS=$as_save_IFS
9371
9372 fi
9373 fi
9374 WINDMC=$ac_cv_prog_WINDMC
9375 if test -n "$WINDMC"; then
9376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9377 $as_echo "$WINDMC" >&6; }
9378 else
9379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9380 $as_echo "no" >&6; }
9381 fi
9382
9383
9384   fi
9385   test -n "$ac_cv_prog_WINDMC" && break
9386 done
9387
9388 if test -z "$ac_cv_prog_WINDMC" ; then
9389   set dummy windmc
9390   if test $build = $host ; then
9391     WINDMC="$2"
9392   else
9393     WINDMC="${ncn_tool_prefix}$2"
9394   fi
9395 fi
9396
9397
9398
9399 if test -n "$OBJCOPY"; then
9400   ac_cv_prog_OBJCOPY=$OBJCOPY
9401 elif test -n "$ac_cv_prog_OBJCOPY"; then
9402   OBJCOPY=$ac_cv_prog_OBJCOPY
9403 fi
9404
9405 if test -n "$ac_cv_prog_OBJCOPY"; then
9406   for ncn_progname in objcopy; do
9407     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9408 set dummy ${ncn_progname}; ac_word=$2
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9410 $as_echo_n "checking for $ac_word... " >&6; }
9411 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9412   $as_echo_n "(cached) " >&6
9413 else
9414   if test -n "$OBJCOPY"; then
9415   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9416 else
9417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418 for as_dir in $PATH
9419 do
9420   IFS=$as_save_IFS
9421   test -z "$as_dir" && as_dir=.
9422     for ac_exec_ext in '' $ac_executable_extensions; do
9423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9424     ac_cv_prog_OBJCOPY="${ncn_progname}"
9425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9426     break 2
9427   fi
9428 done
9429   done
9430 IFS=$as_save_IFS
9431
9432 fi
9433 fi
9434 OBJCOPY=$ac_cv_prog_OBJCOPY
9435 if test -n "$OBJCOPY"; then
9436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9437 $as_echo "$OBJCOPY" >&6; }
9438 else
9439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440 $as_echo "no" >&6; }
9441 fi
9442
9443
9444   done
9445 fi
9446
9447 for ncn_progname in objcopy; do
9448   if test -n "$ncn_tool_prefix"; then
9449     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9450 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9452 $as_echo_n "checking for $ac_word... " >&6; }
9453 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9454   $as_echo_n "(cached) " >&6
9455 else
9456   if test -n "$OBJCOPY"; then
9457   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9458 else
9459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460 for as_dir in $PATH
9461 do
9462   IFS=$as_save_IFS
9463   test -z "$as_dir" && as_dir=.
9464     for ac_exec_ext in '' $ac_executable_extensions; do
9465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9466     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9468     break 2
9469   fi
9470 done
9471   done
9472 IFS=$as_save_IFS
9473
9474 fi
9475 fi
9476 OBJCOPY=$ac_cv_prog_OBJCOPY
9477 if test -n "$OBJCOPY"; then
9478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9479 $as_echo "$OBJCOPY" >&6; }
9480 else
9481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482 $as_echo "no" >&6; }
9483 fi
9484
9485
9486   fi
9487   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9488     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9489 set dummy ${ncn_progname}; ac_word=$2
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9491 $as_echo_n "checking for $ac_word... " >&6; }
9492 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9493   $as_echo_n "(cached) " >&6
9494 else
9495   if test -n "$OBJCOPY"; then
9496   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9497 else
9498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9499 for as_dir in $PATH
9500 do
9501   IFS=$as_save_IFS
9502   test -z "$as_dir" && as_dir=.
9503     for ac_exec_ext in '' $ac_executable_extensions; do
9504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9505     ac_cv_prog_OBJCOPY="${ncn_progname}"
9506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9507     break 2
9508   fi
9509 done
9510   done
9511 IFS=$as_save_IFS
9512
9513 fi
9514 fi
9515 OBJCOPY=$ac_cv_prog_OBJCOPY
9516 if test -n "$OBJCOPY"; then
9517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9518 $as_echo "$OBJCOPY" >&6; }
9519 else
9520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9521 $as_echo "no" >&6; }
9522 fi
9523
9524
9525   fi
9526   test -n "$ac_cv_prog_OBJCOPY" && break
9527 done
9528
9529 if test -z "$ac_cv_prog_OBJCOPY" ; then
9530   set dummy objcopy
9531   if test $build = $host ; then
9532     OBJCOPY="$2"
9533   else
9534     OBJCOPY="${ncn_tool_prefix}$2"
9535   fi
9536 fi
9537
9538
9539
9540 if test -n "$OBJDUMP"; then
9541   ac_cv_prog_OBJDUMP=$OBJDUMP
9542 elif test -n "$ac_cv_prog_OBJDUMP"; then
9543   OBJDUMP=$ac_cv_prog_OBJDUMP
9544 fi
9545
9546 if test -n "$ac_cv_prog_OBJDUMP"; then
9547   for ncn_progname in objdump; do
9548     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9549 set dummy ${ncn_progname}; ac_word=$2
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9551 $as_echo_n "checking for $ac_word... " >&6; }
9552 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9553   $as_echo_n "(cached) " >&6
9554 else
9555   if test -n "$OBJDUMP"; then
9556   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9557 else
9558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9559 for as_dir in $PATH
9560 do
9561   IFS=$as_save_IFS
9562   test -z "$as_dir" && as_dir=.
9563     for ac_exec_ext in '' $ac_executable_extensions; do
9564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9565     ac_cv_prog_OBJDUMP="${ncn_progname}"
9566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9567     break 2
9568   fi
9569 done
9570   done
9571 IFS=$as_save_IFS
9572
9573 fi
9574 fi
9575 OBJDUMP=$ac_cv_prog_OBJDUMP
9576 if test -n "$OBJDUMP"; then
9577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9578 $as_echo "$OBJDUMP" >&6; }
9579 else
9580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9581 $as_echo "no" >&6; }
9582 fi
9583
9584
9585   done
9586 fi
9587
9588 for ncn_progname in objdump; do
9589   if test -n "$ncn_tool_prefix"; then
9590     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9591 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9593 $as_echo_n "checking for $ac_word... " >&6; }
9594 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9595   $as_echo_n "(cached) " >&6
9596 else
9597   if test -n "$OBJDUMP"; then
9598   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9599 else
9600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9601 for as_dir in $PATH
9602 do
9603   IFS=$as_save_IFS
9604   test -z "$as_dir" && as_dir=.
9605     for ac_exec_ext in '' $ac_executable_extensions; do
9606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9607     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9609     break 2
9610   fi
9611 done
9612   done
9613 IFS=$as_save_IFS
9614
9615 fi
9616 fi
9617 OBJDUMP=$ac_cv_prog_OBJDUMP
9618 if test -n "$OBJDUMP"; then
9619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9620 $as_echo "$OBJDUMP" >&6; }
9621 else
9622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623 $as_echo "no" >&6; }
9624 fi
9625
9626
9627   fi
9628   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9629     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9630 set dummy ${ncn_progname}; ac_word=$2
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9632 $as_echo_n "checking for $ac_word... " >&6; }
9633 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9634   $as_echo_n "(cached) " >&6
9635 else
9636   if test -n "$OBJDUMP"; then
9637   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9638 else
9639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9640 for as_dir in $PATH
9641 do
9642   IFS=$as_save_IFS
9643   test -z "$as_dir" && as_dir=.
9644     for ac_exec_ext in '' $ac_executable_extensions; do
9645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9646     ac_cv_prog_OBJDUMP="${ncn_progname}"
9647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9648     break 2
9649   fi
9650 done
9651   done
9652 IFS=$as_save_IFS
9653
9654 fi
9655 fi
9656 OBJDUMP=$ac_cv_prog_OBJDUMP
9657 if test -n "$OBJDUMP"; then
9658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9659 $as_echo "$OBJDUMP" >&6; }
9660 else
9661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662 $as_echo "no" >&6; }
9663 fi
9664
9665
9666   fi
9667   test -n "$ac_cv_prog_OBJDUMP" && break
9668 done
9669
9670 if test -z "$ac_cv_prog_OBJDUMP" ; then
9671   set dummy objdump
9672   if test $build = $host ; then
9673     OBJDUMP="$2"
9674   else
9675     OBJDUMP="${ncn_tool_prefix}$2"
9676   fi
9677 fi
9678
9679
9680
9681 if test -n "$READELF"; then
9682   ac_cv_prog_READELF=$READELF
9683 elif test -n "$ac_cv_prog_READELF"; then
9684   READELF=$ac_cv_prog_READELF
9685 fi
9686
9687 if test -n "$ac_cv_prog_READELF"; then
9688   for ncn_progname in readelf; do
9689     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9690 set dummy ${ncn_progname}; ac_word=$2
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692 $as_echo_n "checking for $ac_word... " >&6; }
9693 if test "${ac_cv_prog_READELF+set}" = set; then :
9694   $as_echo_n "(cached) " >&6
9695 else
9696   if test -n "$READELF"; then
9697   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9698 else
9699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700 for as_dir in $PATH
9701 do
9702   IFS=$as_save_IFS
9703   test -z "$as_dir" && as_dir=.
9704     for ac_exec_ext in '' $ac_executable_extensions; do
9705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9706     ac_cv_prog_READELF="${ncn_progname}"
9707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9708     break 2
9709   fi
9710 done
9711   done
9712 IFS=$as_save_IFS
9713
9714 fi
9715 fi
9716 READELF=$ac_cv_prog_READELF
9717 if test -n "$READELF"; then
9718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9719 $as_echo "$READELF" >&6; }
9720 else
9721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722 $as_echo "no" >&6; }
9723 fi
9724
9725
9726   done
9727 fi
9728
9729 for ncn_progname in readelf; do
9730   if test -n "$ncn_tool_prefix"; then
9731     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9732 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9734 $as_echo_n "checking for $ac_word... " >&6; }
9735 if test "${ac_cv_prog_READELF+set}" = set; then :
9736   $as_echo_n "(cached) " >&6
9737 else
9738   if test -n "$READELF"; then
9739   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9740 else
9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742 for as_dir in $PATH
9743 do
9744   IFS=$as_save_IFS
9745   test -z "$as_dir" && as_dir=.
9746     for ac_exec_ext in '' $ac_executable_extensions; do
9747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9748     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9750     break 2
9751   fi
9752 done
9753   done
9754 IFS=$as_save_IFS
9755
9756 fi
9757 fi
9758 READELF=$ac_cv_prog_READELF
9759 if test -n "$READELF"; then
9760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9761 $as_echo "$READELF" >&6; }
9762 else
9763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764 $as_echo "no" >&6; }
9765 fi
9766
9767
9768   fi
9769   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9770     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9771 set dummy ${ncn_progname}; ac_word=$2
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9773 $as_echo_n "checking for $ac_word... " >&6; }
9774 if test "${ac_cv_prog_READELF+set}" = set; then :
9775   $as_echo_n "(cached) " >&6
9776 else
9777   if test -n "$READELF"; then
9778   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9779 else
9780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9781 for as_dir in $PATH
9782 do
9783   IFS=$as_save_IFS
9784   test -z "$as_dir" && as_dir=.
9785     for ac_exec_ext in '' $ac_executable_extensions; do
9786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9787     ac_cv_prog_READELF="${ncn_progname}"
9788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9789     break 2
9790   fi
9791 done
9792   done
9793 IFS=$as_save_IFS
9794
9795 fi
9796 fi
9797 READELF=$ac_cv_prog_READELF
9798 if test -n "$READELF"; then
9799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9800 $as_echo "$READELF" >&6; }
9801 else
9802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9803 $as_echo "no" >&6; }
9804 fi
9805
9806
9807   fi
9808   test -n "$ac_cv_prog_READELF" && break
9809 done
9810
9811 if test -z "$ac_cv_prog_READELF" ; then
9812   set dummy readelf
9813   if test $build = $host ; then
9814     READELF="$2"
9815   else
9816     READELF="${ncn_tool_prefix}$2"
9817   fi
9818 fi
9819
9820
9821
9822
9823
9824
9825 # Target tools.
9826
9827 # Check whether --with-build-time-tools was given.
9828 if test "${with_build_time_tools+set}" = set; then :
9829   withval=$with_build_time_tools; case x"$withval" in
9830      x/*) ;;
9831      *)
9832        with_build_time_tools=
9833        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9834 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9835        ;;
9836    esac
9837 else
9838   with_build_time_tools=
9839 fi
9840
9841
9842
9843
9844 if test -n "$CC_FOR_TARGET"; then
9845   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9846 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9847   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9848 fi
9849
9850 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9851   for ncn_progname in cc gcc; do
9852     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9853 set dummy ${ncn_progname}; ac_word=$2
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9855 $as_echo_n "checking for $ac_word... " >&6; }
9856 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9857   $as_echo_n "(cached) " >&6
9858 else
9859   if test -n "$CC_FOR_TARGET"; then
9860   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9861 else
9862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9863 for as_dir in $PATH
9864 do
9865   IFS=$as_save_IFS
9866   test -z "$as_dir" && as_dir=.
9867     for ac_exec_ext in '' $ac_executable_extensions; do
9868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9869     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9871     break 2
9872   fi
9873 done
9874   done
9875 IFS=$as_save_IFS
9876
9877 fi
9878 fi
9879 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9880 if test -n "$CC_FOR_TARGET"; then
9881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9882 $as_echo "$CC_FOR_TARGET" >&6; }
9883 else
9884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9885 $as_echo "no" >&6; }
9886 fi
9887
9888
9889   done
9890 fi
9891
9892 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9893   for ncn_progname in cc gcc; do
9894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9895 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9896     if test -x $with_build_time_tools/${ncn_progname}; then
9897       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9898       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9899 $as_echo "yes" >&6; }
9900       break
9901     else
9902       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9903 $as_echo "no" >&6; }
9904     fi
9905   done
9906 fi
9907
9908 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9909   for ncn_progname in cc gcc; do
9910     if test -n "$ncn_target_tool_prefix"; then
9911       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9912 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9914 $as_echo_n "checking for $ac_word... " >&6; }
9915 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9916   $as_echo_n "(cached) " >&6
9917 else
9918   if test -n "$CC_FOR_TARGET"; then
9919   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9920 else
9921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922 for as_dir in $PATH
9923 do
9924   IFS=$as_save_IFS
9925   test -z "$as_dir" && as_dir=.
9926     for ac_exec_ext in '' $ac_executable_extensions; do
9927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9928     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9930     break 2
9931   fi
9932 done
9933   done
9934 IFS=$as_save_IFS
9935
9936 fi
9937 fi
9938 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9939 if test -n "$CC_FOR_TARGET"; then
9940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9941 $as_echo "$CC_FOR_TARGET" >&6; }
9942 else
9943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944 $as_echo "no" >&6; }
9945 fi
9946
9947
9948     fi
9949     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9950       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9951 set dummy ${ncn_progname}; ac_word=$2
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9953 $as_echo_n "checking for $ac_word... " >&6; }
9954 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9955   $as_echo_n "(cached) " >&6
9956 else
9957   if test -n "$CC_FOR_TARGET"; then
9958   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9959 else
9960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961 for as_dir in $PATH
9962 do
9963   IFS=$as_save_IFS
9964   test -z "$as_dir" && as_dir=.
9965     for ac_exec_ext in '' $ac_executable_extensions; do
9966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9967     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9969     break 2
9970   fi
9971 done
9972   done
9973 IFS=$as_save_IFS
9974
9975 fi
9976 fi
9977 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9978 if test -n "$CC_FOR_TARGET"; then
9979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9980 $as_echo "$CC_FOR_TARGET" >&6; }
9981 else
9982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9983 $as_echo "no" >&6; }
9984 fi
9985
9986
9987     fi
9988     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9989   done
9990 fi
9991
9992 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9993   set dummy cc gcc
9994   if test $build = $target ; then
9995     CC_FOR_TARGET="$2"
9996   else
9997     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9998   fi
9999 else
10000   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10001 fi
10002
10003
10004
10005 if test -n "$CXX_FOR_TARGET"; then
10006   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10007 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10008   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10009 fi
10010
10011 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10012   for ncn_progname in c++ g++ cxx gxx; do
10013     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10014 set dummy ${ncn_progname}; ac_word=$2
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10016 $as_echo_n "checking for $ac_word... " >&6; }
10017 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10018   $as_echo_n "(cached) " >&6
10019 else
10020   if test -n "$CXX_FOR_TARGET"; then
10021   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10022 else
10023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10024 for as_dir in $PATH
10025 do
10026   IFS=$as_save_IFS
10027   test -z "$as_dir" && as_dir=.
10028     for ac_exec_ext in '' $ac_executable_extensions; do
10029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10030     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10032     break 2
10033   fi
10034 done
10035   done
10036 IFS=$as_save_IFS
10037
10038 fi
10039 fi
10040 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10041 if test -n "$CXX_FOR_TARGET"; then
10042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10043 $as_echo "$CXX_FOR_TARGET" >&6; }
10044 else
10045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10046 $as_echo "no" >&6; }
10047 fi
10048
10049
10050   done
10051 fi
10052
10053 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10054   for ncn_progname in c++ g++ cxx gxx; do
10055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10056 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10057     if test -x $with_build_time_tools/${ncn_progname}; then
10058       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10059       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10060 $as_echo "yes" >&6; }
10061       break
10062     else
10063       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10064 $as_echo "no" >&6; }
10065     fi
10066   done
10067 fi
10068
10069 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10070   for ncn_progname in c++ g++ cxx gxx; do
10071     if test -n "$ncn_target_tool_prefix"; then
10072       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10073 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10075 $as_echo_n "checking for $ac_word... " >&6; }
10076 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10077   $as_echo_n "(cached) " >&6
10078 else
10079   if test -n "$CXX_FOR_TARGET"; then
10080   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10081 else
10082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10083 for as_dir in $PATH
10084 do
10085   IFS=$as_save_IFS
10086   test -z "$as_dir" && as_dir=.
10087     for ac_exec_ext in '' $ac_executable_extensions; do
10088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10089     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10091     break 2
10092   fi
10093 done
10094   done
10095 IFS=$as_save_IFS
10096
10097 fi
10098 fi
10099 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10100 if test -n "$CXX_FOR_TARGET"; then
10101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10102 $as_echo "$CXX_FOR_TARGET" >&6; }
10103 else
10104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10105 $as_echo "no" >&6; }
10106 fi
10107
10108
10109     fi
10110     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10111       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10112 set dummy ${ncn_progname}; ac_word=$2
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10114 $as_echo_n "checking for $ac_word... " >&6; }
10115 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10116   $as_echo_n "(cached) " >&6
10117 else
10118   if test -n "$CXX_FOR_TARGET"; then
10119   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10120 else
10121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10122 for as_dir in $PATH
10123 do
10124   IFS=$as_save_IFS
10125   test -z "$as_dir" && as_dir=.
10126     for ac_exec_ext in '' $ac_executable_extensions; do
10127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10128     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10130     break 2
10131   fi
10132 done
10133   done
10134 IFS=$as_save_IFS
10135
10136 fi
10137 fi
10138 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10139 if test -n "$CXX_FOR_TARGET"; then
10140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10141 $as_echo "$CXX_FOR_TARGET" >&6; }
10142 else
10143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144 $as_echo "no" >&6; }
10145 fi
10146
10147
10148     fi
10149     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10150   done
10151 fi
10152
10153 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10154   set dummy c++ g++ cxx gxx
10155   if test $build = $target ; then
10156     CXX_FOR_TARGET="$2"
10157   else
10158     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10159   fi
10160 else
10161   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10162 fi
10163
10164
10165
10166 if test -n "$GCC_FOR_TARGET"; then
10167   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10168 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10169   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10170 fi
10171
10172 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10173   for ncn_progname in gcc; do
10174     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10175 set dummy ${ncn_progname}; ac_word=$2
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10177 $as_echo_n "checking for $ac_word... " >&6; }
10178 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10179   $as_echo_n "(cached) " >&6
10180 else
10181   if test -n "$GCC_FOR_TARGET"; then
10182   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10183 else
10184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10185 for as_dir in $PATH
10186 do
10187   IFS=$as_save_IFS
10188   test -z "$as_dir" && as_dir=.
10189     for ac_exec_ext in '' $ac_executable_extensions; do
10190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10191     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10193     break 2
10194   fi
10195 done
10196   done
10197 IFS=$as_save_IFS
10198
10199 fi
10200 fi
10201 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10202 if test -n "$GCC_FOR_TARGET"; then
10203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10204 $as_echo "$GCC_FOR_TARGET" >&6; }
10205 else
10206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207 $as_echo "no" >&6; }
10208 fi
10209
10210
10211   done
10212 fi
10213
10214 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10215   for ncn_progname in gcc; do
10216     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10217 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10218     if test -x $with_build_time_tools/${ncn_progname}; then
10219       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10220       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10221 $as_echo "yes" >&6; }
10222       break
10223     else
10224       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10225 $as_echo "no" >&6; }
10226     fi
10227   done
10228 fi
10229
10230 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10231   for ncn_progname in gcc; do
10232     if test -n "$ncn_target_tool_prefix"; then
10233       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10234 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10236 $as_echo_n "checking for $ac_word... " >&6; }
10237 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10238   $as_echo_n "(cached) " >&6
10239 else
10240   if test -n "$GCC_FOR_TARGET"; then
10241   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10242 else
10243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10244 for as_dir in $PATH
10245 do
10246   IFS=$as_save_IFS
10247   test -z "$as_dir" && as_dir=.
10248     for ac_exec_ext in '' $ac_executable_extensions; do
10249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10250     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10252     break 2
10253   fi
10254 done
10255   done
10256 IFS=$as_save_IFS
10257
10258 fi
10259 fi
10260 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10261 if test -n "$GCC_FOR_TARGET"; then
10262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10263 $as_echo "$GCC_FOR_TARGET" >&6; }
10264 else
10265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10266 $as_echo "no" >&6; }
10267 fi
10268
10269
10270     fi
10271     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10272       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10273 set dummy ${ncn_progname}; ac_word=$2
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10275 $as_echo_n "checking for $ac_word... " >&6; }
10276 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10277   $as_echo_n "(cached) " >&6
10278 else
10279   if test -n "$GCC_FOR_TARGET"; then
10280   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10281 else
10282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283 for as_dir in $PATH
10284 do
10285   IFS=$as_save_IFS
10286   test -z "$as_dir" && as_dir=.
10287     for ac_exec_ext in '' $ac_executable_extensions; do
10288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10289     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10291     break 2
10292   fi
10293 done
10294   done
10295 IFS=$as_save_IFS
10296
10297 fi
10298 fi
10299 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10300 if test -n "$GCC_FOR_TARGET"; then
10301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10302 $as_echo "$GCC_FOR_TARGET" >&6; }
10303 else
10304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305 $as_echo "no" >&6; }
10306 fi
10307
10308
10309     fi
10310     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10311   done
10312 fi
10313
10314 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10315   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10316 else
10317   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10318 fi
10319
10320
10321
10322 if test -n "$GCJ_FOR_TARGET"; then
10323   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10324 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10325   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10326 fi
10327
10328 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10329   for ncn_progname in gcj; do
10330     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10331 set dummy ${ncn_progname}; ac_word=$2
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10333 $as_echo_n "checking for $ac_word... " >&6; }
10334 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10335   $as_echo_n "(cached) " >&6
10336 else
10337   if test -n "$GCJ_FOR_TARGET"; then
10338   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10339 else
10340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10341 for as_dir in $PATH
10342 do
10343   IFS=$as_save_IFS
10344   test -z "$as_dir" && as_dir=.
10345     for ac_exec_ext in '' $ac_executable_extensions; do
10346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10347     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10349     break 2
10350   fi
10351 done
10352   done
10353 IFS=$as_save_IFS
10354
10355 fi
10356 fi
10357 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10358 if test -n "$GCJ_FOR_TARGET"; then
10359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10360 $as_echo "$GCJ_FOR_TARGET" >&6; }
10361 else
10362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363 $as_echo "no" >&6; }
10364 fi
10365
10366
10367   done
10368 fi
10369
10370 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10371   for ncn_progname in gcj; do
10372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10373 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10374     if test -x $with_build_time_tools/${ncn_progname}; then
10375       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10376       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10377 $as_echo "yes" >&6; }
10378       break
10379     else
10380       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381 $as_echo "no" >&6; }
10382     fi
10383   done
10384 fi
10385
10386 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10387   for ncn_progname in gcj; do
10388     if test -n "$ncn_target_tool_prefix"; then
10389       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10390 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10392 $as_echo_n "checking for $ac_word... " >&6; }
10393 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10394   $as_echo_n "(cached) " >&6
10395 else
10396   if test -n "$GCJ_FOR_TARGET"; then
10397   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10398 else
10399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10400 for as_dir in $PATH
10401 do
10402   IFS=$as_save_IFS
10403   test -z "$as_dir" && as_dir=.
10404     for ac_exec_ext in '' $ac_executable_extensions; do
10405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10406     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10408     break 2
10409   fi
10410 done
10411   done
10412 IFS=$as_save_IFS
10413
10414 fi
10415 fi
10416 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10417 if test -n "$GCJ_FOR_TARGET"; then
10418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10419 $as_echo "$GCJ_FOR_TARGET" >&6; }
10420 else
10421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10422 $as_echo "no" >&6; }
10423 fi
10424
10425
10426     fi
10427     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10428       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10429 set dummy ${ncn_progname}; ac_word=$2
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10431 $as_echo_n "checking for $ac_word... " >&6; }
10432 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10433   $as_echo_n "(cached) " >&6
10434 else
10435   if test -n "$GCJ_FOR_TARGET"; then
10436   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10437 else
10438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439 for as_dir in $PATH
10440 do
10441   IFS=$as_save_IFS
10442   test -z "$as_dir" && as_dir=.
10443     for ac_exec_ext in '' $ac_executable_extensions; do
10444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10445     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10447     break 2
10448   fi
10449 done
10450   done
10451 IFS=$as_save_IFS
10452
10453 fi
10454 fi
10455 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10456 if test -n "$GCJ_FOR_TARGET"; then
10457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10458 $as_echo "$GCJ_FOR_TARGET" >&6; }
10459 else
10460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461 $as_echo "no" >&6; }
10462 fi
10463
10464
10465     fi
10466     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10467   done
10468 fi
10469
10470 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10471   set dummy gcj
10472   if test $build = $target ; then
10473     GCJ_FOR_TARGET="$2"
10474   else
10475     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10476   fi
10477 else
10478   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10479 fi
10480
10481
10482
10483 if test -n "$GFORTRAN_FOR_TARGET"; then
10484   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10485 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10486   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10487 fi
10488
10489 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10490   for ncn_progname in gfortran; do
10491     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10492 set dummy ${ncn_progname}; ac_word=$2
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10494 $as_echo_n "checking for $ac_word... " >&6; }
10495 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10496   $as_echo_n "(cached) " >&6
10497 else
10498   if test -n "$GFORTRAN_FOR_TARGET"; then
10499   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10500 else
10501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502 for as_dir in $PATH
10503 do
10504   IFS=$as_save_IFS
10505   test -z "$as_dir" && as_dir=.
10506     for ac_exec_ext in '' $ac_executable_extensions; do
10507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10508     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10510     break 2
10511   fi
10512 done
10513   done
10514 IFS=$as_save_IFS
10515
10516 fi
10517 fi
10518 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10519 if test -n "$GFORTRAN_FOR_TARGET"; then
10520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10521 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10522 else
10523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10524 $as_echo "no" >&6; }
10525 fi
10526
10527
10528   done
10529 fi
10530
10531 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10532   for ncn_progname in gfortran; do
10533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10534 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10535     if test -x $with_build_time_tools/${ncn_progname}; then
10536       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10537       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10538 $as_echo "yes" >&6; }
10539       break
10540     else
10541       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542 $as_echo "no" >&6; }
10543     fi
10544   done
10545 fi
10546
10547 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10548   for ncn_progname in gfortran; do
10549     if test -n "$ncn_target_tool_prefix"; then
10550       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10551 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10553 $as_echo_n "checking for $ac_word... " >&6; }
10554 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10555   $as_echo_n "(cached) " >&6
10556 else
10557   if test -n "$GFORTRAN_FOR_TARGET"; then
10558   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10559 else
10560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10561 for as_dir in $PATH
10562 do
10563   IFS=$as_save_IFS
10564   test -z "$as_dir" && as_dir=.
10565     for ac_exec_ext in '' $ac_executable_extensions; do
10566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10567     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10569     break 2
10570   fi
10571 done
10572   done
10573 IFS=$as_save_IFS
10574
10575 fi
10576 fi
10577 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10578 if test -n "$GFORTRAN_FOR_TARGET"; then
10579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10580 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10581 else
10582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; }
10584 fi
10585
10586
10587     fi
10588     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10589       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10590 set dummy ${ncn_progname}; ac_word=$2
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10592 $as_echo_n "checking for $ac_word... " >&6; }
10593 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10594   $as_echo_n "(cached) " >&6
10595 else
10596   if test -n "$GFORTRAN_FOR_TARGET"; then
10597   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10598 else
10599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600 for as_dir in $PATH
10601 do
10602   IFS=$as_save_IFS
10603   test -z "$as_dir" && as_dir=.
10604     for ac_exec_ext in '' $ac_executable_extensions; do
10605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10606     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10608     break 2
10609   fi
10610 done
10611   done
10612 IFS=$as_save_IFS
10613
10614 fi
10615 fi
10616 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10617 if test -n "$GFORTRAN_FOR_TARGET"; then
10618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10619 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10620 else
10621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622 $as_echo "no" >&6; }
10623 fi
10624
10625
10626     fi
10627     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10628   done
10629 fi
10630
10631 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10632   set dummy gfortran
10633   if test $build = $target ; then
10634     GFORTRAN_FOR_TARGET="$2"
10635   else
10636     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10637   fi
10638 else
10639   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10640 fi
10641
10642
10643
10644 if test -n "$GOC_FOR_TARGET"; then
10645   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10646 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10647   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10648 fi
10649
10650 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10651   for ncn_progname in gccgo; do
10652     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10653 set dummy ${ncn_progname}; ac_word=$2
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655 $as_echo_n "checking for $ac_word... " >&6; }
10656 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10657   $as_echo_n "(cached) " >&6
10658 else
10659   if test -n "$GOC_FOR_TARGET"; then
10660   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10661 else
10662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663 for as_dir in $PATH
10664 do
10665   IFS=$as_save_IFS
10666   test -z "$as_dir" && as_dir=.
10667     for ac_exec_ext in '' $ac_executable_extensions; do
10668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10669     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10671     break 2
10672   fi
10673 done
10674   done
10675 IFS=$as_save_IFS
10676
10677 fi
10678 fi
10679 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10680 if test -n "$GOC_FOR_TARGET"; then
10681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10682 $as_echo "$GOC_FOR_TARGET" >&6; }
10683 else
10684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10686 fi
10687
10688
10689   done
10690 fi
10691
10692 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10693   for ncn_progname in gccgo; do
10694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10695 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10696     if test -x $with_build_time_tools/${ncn_progname}; then
10697       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10698       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10699 $as_echo "yes" >&6; }
10700       break
10701     else
10702       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703 $as_echo "no" >&6; }
10704     fi
10705   done
10706 fi
10707
10708 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10709   for ncn_progname in gccgo; do
10710     if test -n "$ncn_target_tool_prefix"; then
10711       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10712 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10714 $as_echo_n "checking for $ac_word... " >&6; }
10715 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10716   $as_echo_n "(cached) " >&6
10717 else
10718   if test -n "$GOC_FOR_TARGET"; then
10719   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10720 else
10721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722 for as_dir in $PATH
10723 do
10724   IFS=$as_save_IFS
10725   test -z "$as_dir" && as_dir=.
10726     for ac_exec_ext in '' $ac_executable_extensions; do
10727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10728     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10730     break 2
10731   fi
10732 done
10733   done
10734 IFS=$as_save_IFS
10735
10736 fi
10737 fi
10738 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10739 if test -n "$GOC_FOR_TARGET"; then
10740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10741 $as_echo "$GOC_FOR_TARGET" >&6; }
10742 else
10743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10745 fi
10746
10747
10748     fi
10749     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10750       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10751 set dummy ${ncn_progname}; ac_word=$2
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10753 $as_echo_n "checking for $ac_word... " >&6; }
10754 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10755   $as_echo_n "(cached) " >&6
10756 else
10757   if test -n "$GOC_FOR_TARGET"; then
10758   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10759 else
10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761 for as_dir in $PATH
10762 do
10763   IFS=$as_save_IFS
10764   test -z "$as_dir" && as_dir=.
10765     for ac_exec_ext in '' $ac_executable_extensions; do
10766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10767     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10769     break 2
10770   fi
10771 done
10772   done
10773 IFS=$as_save_IFS
10774
10775 fi
10776 fi
10777 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10778 if test -n "$GOC_FOR_TARGET"; then
10779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10780 $as_echo "$GOC_FOR_TARGET" >&6; }
10781 else
10782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783 $as_echo "no" >&6; }
10784 fi
10785
10786
10787     fi
10788     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10789   done
10790 fi
10791
10792 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10793   set dummy gccgo
10794   if test $build = $target ; then
10795     GOC_FOR_TARGET="$2"
10796   else
10797     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10798   fi
10799 else
10800   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10801 fi
10802
10803
10804
10805 cat > conftest.c << \EOF
10806 #ifdef __GNUC__
10807   gcc_yay;
10808 #endif
10809 EOF
10810 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10811   have_gcc_for_target=yes
10812 else
10813   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10814   have_gcc_for_target=no
10815 fi
10816 rm conftest.c
10817
10818
10819
10820
10821 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10822   if test -n "$with_build_time_tools"; then
10823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10824 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10825     if test -x $with_build_time_tools/ar; then
10826       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10827       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10828       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10829 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10830     else
10831       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832 $as_echo "no" >&6; }
10833     fi
10834   elif test $build != $host && test $have_gcc_for_target = yes; then
10835     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10836     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10837     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10838   fi
10839 fi
10840 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10841   # Extract the first word of "ar", so it can be a program name with args.
10842 set dummy ar; ac_word=$2
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10844 $as_echo_n "checking for $ac_word... " >&6; }
10845 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10846   $as_echo_n "(cached) " >&6
10847 else
10848   case $AR_FOR_TARGET in
10849   [\\/]* | ?:[\\/]*)
10850   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10851   ;;
10852   *)
10853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10854 for as_dir in $gcc_cv_tool_dirs
10855 do
10856   IFS=$as_save_IFS
10857   test -z "$as_dir" && as_dir=.
10858     for ac_exec_ext in '' $ac_executable_extensions; do
10859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10860     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10862     break 2
10863   fi
10864 done
10865   done
10866 IFS=$as_save_IFS
10867
10868   ;;
10869 esac
10870 fi
10871 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10872 if test -n "$AR_FOR_TARGET"; then
10873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10874 $as_echo "$AR_FOR_TARGET" >&6; }
10875 else
10876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10877 $as_echo "no" >&6; }
10878 fi
10879
10880
10881 fi
10882 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10883
10884
10885 if test -n "$AR_FOR_TARGET"; then
10886   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10887 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10888   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10889 fi
10890
10891 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10892   for ncn_progname in ar; do
10893     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10894 set dummy ${ncn_progname}; ac_word=$2
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10896 $as_echo_n "checking for $ac_word... " >&6; }
10897 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10898   $as_echo_n "(cached) " >&6
10899 else
10900   if test -n "$AR_FOR_TARGET"; then
10901   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10902 else
10903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10904 for as_dir in $PATH
10905 do
10906   IFS=$as_save_IFS
10907   test -z "$as_dir" && as_dir=.
10908     for ac_exec_ext in '' $ac_executable_extensions; do
10909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10910     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10912     break 2
10913   fi
10914 done
10915   done
10916 IFS=$as_save_IFS
10917
10918 fi
10919 fi
10920 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10921 if test -n "$AR_FOR_TARGET"; then
10922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10923 $as_echo "$AR_FOR_TARGET" >&6; }
10924 else
10925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 $as_echo "no" >&6; }
10927 fi
10928
10929
10930   done
10931 fi
10932
10933 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10934   for ncn_progname in ar; do
10935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10936 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10937     if test -x $with_build_time_tools/${ncn_progname}; then
10938       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10939       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10940 $as_echo "yes" >&6; }
10941       break
10942     else
10943       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10944 $as_echo "no" >&6; }
10945     fi
10946   done
10947 fi
10948
10949 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10950   for ncn_progname in ar; do
10951     if test -n "$ncn_target_tool_prefix"; then
10952       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10953 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10955 $as_echo_n "checking for $ac_word... " >&6; }
10956 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10957   $as_echo_n "(cached) " >&6
10958 else
10959   if test -n "$AR_FOR_TARGET"; then
10960   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10961 else
10962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10963 for as_dir in $PATH
10964 do
10965   IFS=$as_save_IFS
10966   test -z "$as_dir" && as_dir=.
10967     for ac_exec_ext in '' $ac_executable_extensions; do
10968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10969     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10971     break 2
10972   fi
10973 done
10974   done
10975 IFS=$as_save_IFS
10976
10977 fi
10978 fi
10979 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10980 if test -n "$AR_FOR_TARGET"; then
10981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10982 $as_echo "$AR_FOR_TARGET" >&6; }
10983 else
10984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10985 $as_echo "no" >&6; }
10986 fi
10987
10988
10989     fi
10990     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10991       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10992 set dummy ${ncn_progname}; ac_word=$2
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10994 $as_echo_n "checking for $ac_word... " >&6; }
10995 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10996   $as_echo_n "(cached) " >&6
10997 else
10998   if test -n "$AR_FOR_TARGET"; then
10999   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11000 else
11001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002 for as_dir in $PATH
11003 do
11004   IFS=$as_save_IFS
11005   test -z "$as_dir" && as_dir=.
11006     for ac_exec_ext in '' $ac_executable_extensions; do
11007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11008     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11010     break 2
11011   fi
11012 done
11013   done
11014 IFS=$as_save_IFS
11015
11016 fi
11017 fi
11018 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11019 if test -n "$AR_FOR_TARGET"; then
11020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11021 $as_echo "$AR_FOR_TARGET" >&6; }
11022 else
11023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11024 $as_echo "no" >&6; }
11025 fi
11026
11027
11028     fi
11029     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11030   done
11031 fi
11032
11033 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11034   set dummy ar
11035   if test $build = $target ; then
11036     AR_FOR_TARGET="$2"
11037   else
11038     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11039   fi
11040 else
11041   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11042 fi
11043
11044 else
11045   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11046 fi
11047
11048
11049
11050
11051 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11052   if test -n "$with_build_time_tools"; then
11053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11054 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11055     if test -x $with_build_time_tools/as; then
11056       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11057       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11058       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11059 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11060     else
11061       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062 $as_echo "no" >&6; }
11063     fi
11064   elif test $build != $host && test $have_gcc_for_target = yes; then
11065     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11066     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11067     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11068   fi
11069 fi
11070 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11071   # Extract the first word of "as", so it can be a program name with args.
11072 set dummy as; ac_word=$2
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11074 $as_echo_n "checking for $ac_word... " >&6; }
11075 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11076   $as_echo_n "(cached) " >&6
11077 else
11078   case $AS_FOR_TARGET in
11079   [\\/]* | ?:[\\/]*)
11080   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11081   ;;
11082   *)
11083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084 for as_dir in $gcc_cv_tool_dirs
11085 do
11086   IFS=$as_save_IFS
11087   test -z "$as_dir" && as_dir=.
11088     for ac_exec_ext in '' $ac_executable_extensions; do
11089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11090     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11092     break 2
11093   fi
11094 done
11095   done
11096 IFS=$as_save_IFS
11097
11098   ;;
11099 esac
11100 fi
11101 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11102 if test -n "$AS_FOR_TARGET"; then
11103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11104 $as_echo "$AS_FOR_TARGET" >&6; }
11105 else
11106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11107 $as_echo "no" >&6; }
11108 fi
11109
11110
11111 fi
11112 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11113
11114
11115 if test -n "$AS_FOR_TARGET"; then
11116   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11117 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11118   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11119 fi
11120
11121 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11122   for ncn_progname in as; do
11123     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11124 set dummy ${ncn_progname}; ac_word=$2
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11126 $as_echo_n "checking for $ac_word... " >&6; }
11127 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11128   $as_echo_n "(cached) " >&6
11129 else
11130   if test -n "$AS_FOR_TARGET"; then
11131   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11132 else
11133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134 for as_dir in $PATH
11135 do
11136   IFS=$as_save_IFS
11137   test -z "$as_dir" && as_dir=.
11138     for ac_exec_ext in '' $ac_executable_extensions; do
11139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11140     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11142     break 2
11143   fi
11144 done
11145   done
11146 IFS=$as_save_IFS
11147
11148 fi
11149 fi
11150 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11151 if test -n "$AS_FOR_TARGET"; then
11152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11153 $as_echo "$AS_FOR_TARGET" >&6; }
11154 else
11155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11157 fi
11158
11159
11160   done
11161 fi
11162
11163 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11164   for ncn_progname in as; do
11165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11166 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11167     if test -x $with_build_time_tools/${ncn_progname}; then
11168       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11169       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11170 $as_echo "yes" >&6; }
11171       break
11172     else
11173       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174 $as_echo "no" >&6; }
11175     fi
11176   done
11177 fi
11178
11179 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11180   for ncn_progname in as; do
11181     if test -n "$ncn_target_tool_prefix"; then
11182       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11183 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185 $as_echo_n "checking for $ac_word... " >&6; }
11186 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11187   $as_echo_n "(cached) " >&6
11188 else
11189   if test -n "$AS_FOR_TARGET"; then
11190   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11191 else
11192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in $PATH
11194 do
11195   IFS=$as_save_IFS
11196   test -z "$as_dir" && as_dir=.
11197     for ac_exec_ext in '' $ac_executable_extensions; do
11198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11199     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11201     break 2
11202   fi
11203 done
11204   done
11205 IFS=$as_save_IFS
11206
11207 fi
11208 fi
11209 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11210 if test -n "$AS_FOR_TARGET"; then
11211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11212 $as_echo "$AS_FOR_TARGET" >&6; }
11213 else
11214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215 $as_echo "no" >&6; }
11216 fi
11217
11218
11219     fi
11220     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11221       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11222 set dummy ${ncn_progname}; ac_word=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224 $as_echo_n "checking for $ac_word... " >&6; }
11225 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11226   $as_echo_n "(cached) " >&6
11227 else
11228   if test -n "$AS_FOR_TARGET"; then
11229   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11230 else
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11233 do
11234   IFS=$as_save_IFS
11235   test -z "$as_dir" && as_dir=.
11236     for ac_exec_ext in '' $ac_executable_extensions; do
11237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11238     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11240     break 2
11241   fi
11242 done
11243   done
11244 IFS=$as_save_IFS
11245
11246 fi
11247 fi
11248 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11249 if test -n "$AS_FOR_TARGET"; then
11250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11251 $as_echo "$AS_FOR_TARGET" >&6; }
11252 else
11253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11255 fi
11256
11257
11258     fi
11259     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11260   done
11261 fi
11262
11263 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11264   set dummy as
11265   if test $build = $target ; then
11266     AS_FOR_TARGET="$2"
11267   else
11268     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11269   fi
11270 else
11271   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11272 fi
11273
11274 else
11275   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11276 fi
11277
11278
11279
11280
11281 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11282   if test -n "$with_build_time_tools"; then
11283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11284 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11285     if test -x $with_build_time_tools/dlltool; then
11286       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11287       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11288       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11289 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11290     else
11291       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11292 $as_echo "no" >&6; }
11293     fi
11294   elif test $build != $host && test $have_gcc_for_target = yes; then
11295     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11296     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11297     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11298   fi
11299 fi
11300 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11301   # Extract the first word of "dlltool", so it can be a program name with args.
11302 set dummy dlltool; ac_word=$2
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11304 $as_echo_n "checking for $ac_word... " >&6; }
11305 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11306   $as_echo_n "(cached) " >&6
11307 else
11308   case $DLLTOOL_FOR_TARGET in
11309   [\\/]* | ?:[\\/]*)
11310   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11311   ;;
11312   *)
11313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314 for as_dir in $gcc_cv_tool_dirs
11315 do
11316   IFS=$as_save_IFS
11317   test -z "$as_dir" && as_dir=.
11318     for ac_exec_ext in '' $ac_executable_extensions; do
11319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11320     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11322     break 2
11323   fi
11324 done
11325   done
11326 IFS=$as_save_IFS
11327
11328   ;;
11329 esac
11330 fi
11331 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11332 if test -n "$DLLTOOL_FOR_TARGET"; then
11333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11334 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11335 else
11336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337 $as_echo "no" >&6; }
11338 fi
11339
11340
11341 fi
11342 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11343
11344
11345 if test -n "$DLLTOOL_FOR_TARGET"; then
11346   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11347 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11348   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11349 fi
11350
11351 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11352   for ncn_progname in dlltool; do
11353     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11354 set dummy ${ncn_progname}; ac_word=$2
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356 $as_echo_n "checking for $ac_word... " >&6; }
11357 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11358   $as_echo_n "(cached) " >&6
11359 else
11360   if test -n "$DLLTOOL_FOR_TARGET"; then
11361   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11362 else
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in $PATH
11365 do
11366   IFS=$as_save_IFS
11367   test -z "$as_dir" && as_dir=.
11368     for ac_exec_ext in '' $ac_executable_extensions; do
11369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11370     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11372     break 2
11373   fi
11374 done
11375   done
11376 IFS=$as_save_IFS
11377
11378 fi
11379 fi
11380 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11381 if test -n "$DLLTOOL_FOR_TARGET"; then
11382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11383 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11384 else
11385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11387 fi
11388
11389
11390   done
11391 fi
11392
11393 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11394   for ncn_progname in dlltool; do
11395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11396 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11397     if test -x $with_build_time_tools/${ncn_progname}; then
11398       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11399       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11400 $as_echo "yes" >&6; }
11401       break
11402     else
11403       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11405     fi
11406   done
11407 fi
11408
11409 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11410   for ncn_progname in dlltool; do
11411     if test -n "$ncn_target_tool_prefix"; then
11412       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11413 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11415 $as_echo_n "checking for $ac_word... " >&6; }
11416 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11417   $as_echo_n "(cached) " >&6
11418 else
11419   if test -n "$DLLTOOL_FOR_TARGET"; then
11420   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11421 else
11422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423 for as_dir in $PATH
11424 do
11425   IFS=$as_save_IFS
11426   test -z "$as_dir" && as_dir=.
11427     for ac_exec_ext in '' $ac_executable_extensions; do
11428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11429     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11431     break 2
11432   fi
11433 done
11434   done
11435 IFS=$as_save_IFS
11436
11437 fi
11438 fi
11439 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11440 if test -n "$DLLTOOL_FOR_TARGET"; then
11441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11442 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11443 else
11444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445 $as_echo "no" >&6; }
11446 fi
11447
11448
11449     fi
11450     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11451       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11452 set dummy ${ncn_progname}; ac_word=$2
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11454 $as_echo_n "checking for $ac_word... " >&6; }
11455 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11456   $as_echo_n "(cached) " >&6
11457 else
11458   if test -n "$DLLTOOL_FOR_TARGET"; then
11459   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11460 else
11461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462 for as_dir in $PATH
11463 do
11464   IFS=$as_save_IFS
11465   test -z "$as_dir" && as_dir=.
11466     for ac_exec_ext in '' $ac_executable_extensions; do
11467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11468     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11470     break 2
11471   fi
11472 done
11473   done
11474 IFS=$as_save_IFS
11475
11476 fi
11477 fi
11478 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11479 if test -n "$DLLTOOL_FOR_TARGET"; then
11480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11481 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11482 else
11483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484 $as_echo "no" >&6; }
11485 fi
11486
11487
11488     fi
11489     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11490   done
11491 fi
11492
11493 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11494   set dummy dlltool
11495   if test $build = $target ; then
11496     DLLTOOL_FOR_TARGET="$2"
11497   else
11498     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11499   fi
11500 else
11501   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11502 fi
11503
11504 else
11505   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11506 fi
11507
11508
11509
11510
11511 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11512   if test -n "$with_build_time_tools"; then
11513     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11514 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11515     if test -x $with_build_time_tools/ld; then
11516       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11517       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11518       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11519 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11520     else
11521       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11522 $as_echo "no" >&6; }
11523     fi
11524   elif test $build != $host && test $have_gcc_for_target = yes; then
11525     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11526     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11527     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11528   fi
11529 fi
11530 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11531   # Extract the first word of "ld", so it can be a program name with args.
11532 set dummy ld; ac_word=$2
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11534 $as_echo_n "checking for $ac_word... " >&6; }
11535 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11536   $as_echo_n "(cached) " >&6
11537 else
11538   case $LD_FOR_TARGET in
11539   [\\/]* | ?:[\\/]*)
11540   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11541   ;;
11542   *)
11543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544 for as_dir in $gcc_cv_tool_dirs
11545 do
11546   IFS=$as_save_IFS
11547   test -z "$as_dir" && as_dir=.
11548     for ac_exec_ext in '' $ac_executable_extensions; do
11549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11550     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11552     break 2
11553   fi
11554 done
11555   done
11556 IFS=$as_save_IFS
11557
11558   ;;
11559 esac
11560 fi
11561 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11562 if test -n "$LD_FOR_TARGET"; then
11563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11564 $as_echo "$LD_FOR_TARGET" >&6; }
11565 else
11566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567 $as_echo "no" >&6; }
11568 fi
11569
11570
11571 fi
11572 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11573
11574
11575 if test -n "$LD_FOR_TARGET"; then
11576   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11577 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11578   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11579 fi
11580
11581 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11582   for ncn_progname in ld; do
11583     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11584 set dummy ${ncn_progname}; ac_word=$2
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11586 $as_echo_n "checking for $ac_word... " >&6; }
11587 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11588   $as_echo_n "(cached) " >&6
11589 else
11590   if test -n "$LD_FOR_TARGET"; then
11591   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11592 else
11593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11594 for as_dir in $PATH
11595 do
11596   IFS=$as_save_IFS
11597   test -z "$as_dir" && as_dir=.
11598     for ac_exec_ext in '' $ac_executable_extensions; do
11599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11600     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11602     break 2
11603   fi
11604 done
11605   done
11606 IFS=$as_save_IFS
11607
11608 fi
11609 fi
11610 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11611 if test -n "$LD_FOR_TARGET"; then
11612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11613 $as_echo "$LD_FOR_TARGET" >&6; }
11614 else
11615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616 $as_echo "no" >&6; }
11617 fi
11618
11619
11620   done
11621 fi
11622
11623 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11624   for ncn_progname in ld; do
11625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11626 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11627     if test -x $with_build_time_tools/${ncn_progname}; then
11628       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11629       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11630 $as_echo "yes" >&6; }
11631       break
11632     else
11633       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11635     fi
11636   done
11637 fi
11638
11639 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11640   for ncn_progname in ld; do
11641     if test -n "$ncn_target_tool_prefix"; then
11642       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11643 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11645 $as_echo_n "checking for $ac_word... " >&6; }
11646 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11647   $as_echo_n "(cached) " >&6
11648 else
11649   if test -n "$LD_FOR_TARGET"; then
11650   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11651 else
11652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653 for as_dir in $PATH
11654 do
11655   IFS=$as_save_IFS
11656   test -z "$as_dir" && as_dir=.
11657     for ac_exec_ext in '' $ac_executable_extensions; do
11658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11659     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11661     break 2
11662   fi
11663 done
11664   done
11665 IFS=$as_save_IFS
11666
11667 fi
11668 fi
11669 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11670 if test -n "$LD_FOR_TARGET"; then
11671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11672 $as_echo "$LD_FOR_TARGET" >&6; }
11673 else
11674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675 $as_echo "no" >&6; }
11676 fi
11677
11678
11679     fi
11680     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11681       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11682 set dummy ${ncn_progname}; ac_word=$2
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684 $as_echo_n "checking for $ac_word... " >&6; }
11685 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11686   $as_echo_n "(cached) " >&6
11687 else
11688   if test -n "$LD_FOR_TARGET"; then
11689   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11690 else
11691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692 for as_dir in $PATH
11693 do
11694   IFS=$as_save_IFS
11695   test -z "$as_dir" && as_dir=.
11696     for ac_exec_ext in '' $ac_executable_extensions; do
11697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11698     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11700     break 2
11701   fi
11702 done
11703   done
11704 IFS=$as_save_IFS
11705
11706 fi
11707 fi
11708 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11709 if test -n "$LD_FOR_TARGET"; then
11710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11711 $as_echo "$LD_FOR_TARGET" >&6; }
11712 else
11713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11715 fi
11716
11717
11718     fi
11719     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11720   done
11721 fi
11722
11723 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11724   set dummy ld
11725   if test $build = $target ; then
11726     LD_FOR_TARGET="$2"
11727   else
11728     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11729   fi
11730 else
11731   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11732 fi
11733
11734 else
11735   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11736 fi
11737
11738
11739
11740
11741 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11742   if test -n "$with_build_time_tools"; then
11743     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11744 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11745     if test -x $with_build_time_tools/lipo; then
11746       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11747       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11748       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11749 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11750     else
11751       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752 $as_echo "no" >&6; }
11753     fi
11754   elif test $build != $host && test $have_gcc_for_target = yes; then
11755     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11756     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11757     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11758   fi
11759 fi
11760 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11761   # Extract the first word of "lipo", so it can be a program name with args.
11762 set dummy lipo; ac_word=$2
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764 $as_echo_n "checking for $ac_word... " >&6; }
11765 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11766   $as_echo_n "(cached) " >&6
11767 else
11768   case $LIPO_FOR_TARGET in
11769   [\\/]* | ?:[\\/]*)
11770   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11771   ;;
11772   *)
11773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774 for as_dir in $gcc_cv_tool_dirs
11775 do
11776   IFS=$as_save_IFS
11777   test -z "$as_dir" && as_dir=.
11778     for ac_exec_ext in '' $ac_executable_extensions; do
11779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11780     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11782     break 2
11783   fi
11784 done
11785   done
11786 IFS=$as_save_IFS
11787
11788   ;;
11789 esac
11790 fi
11791 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11792 if test -n "$LIPO_FOR_TARGET"; then
11793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11794 $as_echo "$LIPO_FOR_TARGET" >&6; }
11795 else
11796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797 $as_echo "no" >&6; }
11798 fi
11799
11800
11801 fi
11802 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11803
11804
11805 if test -n "$LIPO_FOR_TARGET"; then
11806   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11807 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11808   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11809 fi
11810
11811 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11812   for ncn_progname in lipo; do
11813     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11814 set dummy ${ncn_progname}; ac_word=$2
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816 $as_echo_n "checking for $ac_word... " >&6; }
11817 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11818   $as_echo_n "(cached) " >&6
11819 else
11820   if test -n "$LIPO_FOR_TARGET"; then
11821   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11822 else
11823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11824 for as_dir in $PATH
11825 do
11826   IFS=$as_save_IFS
11827   test -z "$as_dir" && as_dir=.
11828     for ac_exec_ext in '' $ac_executable_extensions; do
11829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11830     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11832     break 2
11833   fi
11834 done
11835   done
11836 IFS=$as_save_IFS
11837
11838 fi
11839 fi
11840 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11841 if test -n "$LIPO_FOR_TARGET"; then
11842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11843 $as_echo "$LIPO_FOR_TARGET" >&6; }
11844 else
11845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11847 fi
11848
11849
11850   done
11851 fi
11852
11853 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11854   for ncn_progname in lipo; do
11855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11856 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11857     if test -x $with_build_time_tools/${ncn_progname}; then
11858       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11859       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11860 $as_echo "yes" >&6; }
11861       break
11862     else
11863       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864 $as_echo "no" >&6; }
11865     fi
11866   done
11867 fi
11868
11869 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11870   for ncn_progname in lipo; do
11871     if test -n "$ncn_target_tool_prefix"; then
11872       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11873 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11875 $as_echo_n "checking for $ac_word... " >&6; }
11876 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11877   $as_echo_n "(cached) " >&6
11878 else
11879   if test -n "$LIPO_FOR_TARGET"; then
11880   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11881 else
11882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883 for as_dir in $PATH
11884 do
11885   IFS=$as_save_IFS
11886   test -z "$as_dir" && as_dir=.
11887     for ac_exec_ext in '' $ac_executable_extensions; do
11888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11889     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11891     break 2
11892   fi
11893 done
11894   done
11895 IFS=$as_save_IFS
11896
11897 fi
11898 fi
11899 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11900 if test -n "$LIPO_FOR_TARGET"; then
11901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11902 $as_echo "$LIPO_FOR_TARGET" >&6; }
11903 else
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11906 fi
11907
11908
11909     fi
11910     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11911       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11912 set dummy ${ncn_progname}; ac_word=$2
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914 $as_echo_n "checking for $ac_word... " >&6; }
11915 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11916   $as_echo_n "(cached) " >&6
11917 else
11918   if test -n "$LIPO_FOR_TARGET"; then
11919   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11920 else
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11923 do
11924   IFS=$as_save_IFS
11925   test -z "$as_dir" && as_dir=.
11926     for ac_exec_ext in '' $ac_executable_extensions; do
11927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11928     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11930     break 2
11931   fi
11932 done
11933   done
11934 IFS=$as_save_IFS
11935
11936 fi
11937 fi
11938 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11939 if test -n "$LIPO_FOR_TARGET"; then
11940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11941 $as_echo "$LIPO_FOR_TARGET" >&6; }
11942 else
11943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11945 fi
11946
11947
11948     fi
11949     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11950   done
11951 fi
11952
11953 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11954   set dummy lipo
11955   if test $build = $target ; then
11956     LIPO_FOR_TARGET="$2"
11957   else
11958     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11959   fi
11960 else
11961   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11962 fi
11963
11964 else
11965   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11966 fi
11967
11968
11969
11970
11971 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11972   if test -n "$with_build_time_tools"; then
11973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11974 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11975     if test -x $with_build_time_tools/nm; then
11976       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11977       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11978       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11979 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11980     else
11981       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11983     fi
11984   elif test $build != $host && test $have_gcc_for_target = yes; then
11985     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11986     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11987     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11988   fi
11989 fi
11990 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11991   # Extract the first word of "nm", so it can be a program name with args.
11992 set dummy nm; ac_word=$2
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11994 $as_echo_n "checking for $ac_word... " >&6; }
11995 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11996   $as_echo_n "(cached) " >&6
11997 else
11998   case $NM_FOR_TARGET in
11999   [\\/]* | ?:[\\/]*)
12000   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12001   ;;
12002   *)
12003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004 for as_dir in $gcc_cv_tool_dirs
12005 do
12006   IFS=$as_save_IFS
12007   test -z "$as_dir" && as_dir=.
12008     for ac_exec_ext in '' $ac_executable_extensions; do
12009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12010     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12012     break 2
12013   fi
12014 done
12015   done
12016 IFS=$as_save_IFS
12017
12018   ;;
12019 esac
12020 fi
12021 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12022 if test -n "$NM_FOR_TARGET"; then
12023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12024 $as_echo "$NM_FOR_TARGET" >&6; }
12025 else
12026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027 $as_echo "no" >&6; }
12028 fi
12029
12030
12031 fi
12032 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12033
12034
12035 if test -n "$NM_FOR_TARGET"; then
12036   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12037 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12038   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12039 fi
12040
12041 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12042   for ncn_progname in nm; do
12043     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12044 set dummy ${ncn_progname}; ac_word=$2
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12046 $as_echo_n "checking for $ac_word... " >&6; }
12047 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12048   $as_echo_n "(cached) " >&6
12049 else
12050   if test -n "$NM_FOR_TARGET"; then
12051   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12052 else
12053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12054 for as_dir in $PATH
12055 do
12056   IFS=$as_save_IFS
12057   test -z "$as_dir" && as_dir=.
12058     for ac_exec_ext in '' $ac_executable_extensions; do
12059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12060     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12062     break 2
12063   fi
12064 done
12065   done
12066 IFS=$as_save_IFS
12067
12068 fi
12069 fi
12070 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12071 if test -n "$NM_FOR_TARGET"; then
12072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12073 $as_echo "$NM_FOR_TARGET" >&6; }
12074 else
12075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12077 fi
12078
12079
12080   done
12081 fi
12082
12083 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12084   for ncn_progname in nm; do
12085     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12086 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12087     if test -x $with_build_time_tools/${ncn_progname}; then
12088       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12089       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12090 $as_echo "yes" >&6; }
12091       break
12092     else
12093       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094 $as_echo "no" >&6; }
12095     fi
12096   done
12097 fi
12098
12099 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12100   for ncn_progname in nm; do
12101     if test -n "$ncn_target_tool_prefix"; then
12102       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12103 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12105 $as_echo_n "checking for $ac_word... " >&6; }
12106 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12107   $as_echo_n "(cached) " >&6
12108 else
12109   if test -n "$NM_FOR_TARGET"; then
12110   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12111 else
12112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113 for as_dir in $PATH
12114 do
12115   IFS=$as_save_IFS
12116   test -z "$as_dir" && as_dir=.
12117     for ac_exec_ext in '' $ac_executable_extensions; do
12118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12119     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12121     break 2
12122   fi
12123 done
12124   done
12125 IFS=$as_save_IFS
12126
12127 fi
12128 fi
12129 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12130 if test -n "$NM_FOR_TARGET"; then
12131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12132 $as_echo "$NM_FOR_TARGET" >&6; }
12133 else
12134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12135 $as_echo "no" >&6; }
12136 fi
12137
12138
12139     fi
12140     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12141       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12142 set dummy ${ncn_progname}; ac_word=$2
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12144 $as_echo_n "checking for $ac_word... " >&6; }
12145 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12146   $as_echo_n "(cached) " >&6
12147 else
12148   if test -n "$NM_FOR_TARGET"; then
12149   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12150 else
12151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152 for as_dir in $PATH
12153 do
12154   IFS=$as_save_IFS
12155   test -z "$as_dir" && as_dir=.
12156     for ac_exec_ext in '' $ac_executable_extensions; do
12157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12158     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12160     break 2
12161   fi
12162 done
12163   done
12164 IFS=$as_save_IFS
12165
12166 fi
12167 fi
12168 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12169 if test -n "$NM_FOR_TARGET"; then
12170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12171 $as_echo "$NM_FOR_TARGET" >&6; }
12172 else
12173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174 $as_echo "no" >&6; }
12175 fi
12176
12177
12178     fi
12179     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12180   done
12181 fi
12182
12183 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12184   set dummy nm
12185   if test $build = $target ; then
12186     NM_FOR_TARGET="$2"
12187   else
12188     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12189   fi
12190 else
12191   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12192 fi
12193
12194 else
12195   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12196 fi
12197
12198
12199
12200
12201 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12202   if test -n "$with_build_time_tools"; then
12203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12204 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12205     if test -x $with_build_time_tools/objcopy; then
12206       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12207       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12208       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12209 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12210     else
12211       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212 $as_echo "no" >&6; }
12213     fi
12214   elif test $build != $host && test $have_gcc_for_target = yes; then
12215     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12216     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12217     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12218   fi
12219 fi
12220 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12221   # Extract the first word of "objcopy", so it can be a program name with args.
12222 set dummy objcopy; ac_word=$2
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12224 $as_echo_n "checking for $ac_word... " >&6; }
12225 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12226   $as_echo_n "(cached) " >&6
12227 else
12228   case $OBJCOPY_FOR_TARGET in
12229   [\\/]* | ?:[\\/]*)
12230   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12231   ;;
12232   *)
12233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234 for as_dir in $gcc_cv_tool_dirs
12235 do
12236   IFS=$as_save_IFS
12237   test -z "$as_dir" && as_dir=.
12238     for ac_exec_ext in '' $ac_executable_extensions; do
12239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12240     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12242     break 2
12243   fi
12244 done
12245   done
12246 IFS=$as_save_IFS
12247
12248   ;;
12249 esac
12250 fi
12251 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12252 if test -n "$OBJCOPY_FOR_TARGET"; then
12253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12254 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12255 else
12256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257 $as_echo "no" >&6; }
12258 fi
12259
12260
12261 fi
12262 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12263
12264
12265 if test -n "$OBJCOPY_FOR_TARGET"; then
12266   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12267 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12268   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12269 fi
12270
12271 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12272   for ncn_progname in objcopy; do
12273     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12274 set dummy ${ncn_progname}; ac_word=$2
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12276 $as_echo_n "checking for $ac_word... " >&6; }
12277 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12278   $as_echo_n "(cached) " >&6
12279 else
12280   if test -n "$OBJCOPY_FOR_TARGET"; then
12281   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12282 else
12283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284 for as_dir in $PATH
12285 do
12286   IFS=$as_save_IFS
12287   test -z "$as_dir" && as_dir=.
12288     for ac_exec_ext in '' $ac_executable_extensions; do
12289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12290     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12292     break 2
12293   fi
12294 done
12295   done
12296 IFS=$as_save_IFS
12297
12298 fi
12299 fi
12300 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12301 if test -n "$OBJCOPY_FOR_TARGET"; then
12302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12303 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12304 else
12305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306 $as_echo "no" >&6; }
12307 fi
12308
12309
12310   done
12311 fi
12312
12313 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12314   for ncn_progname in objcopy; do
12315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12316 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12317     if test -x $with_build_time_tools/${ncn_progname}; then
12318       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12319       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12320 $as_echo "yes" >&6; }
12321       break
12322     else
12323       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12325     fi
12326   done
12327 fi
12328
12329 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12330   for ncn_progname in objcopy; do
12331     if test -n "$ncn_target_tool_prefix"; then
12332       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12333 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12335 $as_echo_n "checking for $ac_word... " >&6; }
12336 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12337   $as_echo_n "(cached) " >&6
12338 else
12339   if test -n "$OBJCOPY_FOR_TARGET"; then
12340   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12341 else
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12344 do
12345   IFS=$as_save_IFS
12346   test -z "$as_dir" && as_dir=.
12347     for ac_exec_ext in '' $ac_executable_extensions; do
12348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12349     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12351     break 2
12352   fi
12353 done
12354   done
12355 IFS=$as_save_IFS
12356
12357 fi
12358 fi
12359 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12360 if test -n "$OBJCOPY_FOR_TARGET"; then
12361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12362 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12363 else
12364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365 $as_echo "no" >&6; }
12366 fi
12367
12368
12369     fi
12370     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12371       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12372 set dummy ${ncn_progname}; ac_word=$2
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374 $as_echo_n "checking for $ac_word... " >&6; }
12375 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12376   $as_echo_n "(cached) " >&6
12377 else
12378   if test -n "$OBJCOPY_FOR_TARGET"; then
12379   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12380 else
12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382 for as_dir in $PATH
12383 do
12384   IFS=$as_save_IFS
12385   test -z "$as_dir" && as_dir=.
12386     for ac_exec_ext in '' $ac_executable_extensions; do
12387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12388     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12390     break 2
12391   fi
12392 done
12393   done
12394 IFS=$as_save_IFS
12395
12396 fi
12397 fi
12398 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12399 if test -n "$OBJCOPY_FOR_TARGET"; then
12400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12401 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12402 else
12403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12405 fi
12406
12407
12408     fi
12409     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12410   done
12411 fi
12412
12413 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12414   set dummy objcopy
12415   if test $build = $target ; then
12416     OBJCOPY_FOR_TARGET="$2"
12417   else
12418     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12419   fi
12420 else
12421   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12422 fi
12423
12424 else
12425   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12426 fi
12427
12428
12429
12430
12431 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12432   if test -n "$with_build_time_tools"; then
12433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12434 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12435     if test -x $with_build_time_tools/objdump; then
12436       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12437       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12438       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12439 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12440     else
12441       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442 $as_echo "no" >&6; }
12443     fi
12444   elif test $build != $host && test $have_gcc_for_target = yes; then
12445     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12446     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12447     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12448   fi
12449 fi
12450 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12451   # Extract the first word of "objdump", so it can be a program name with args.
12452 set dummy objdump; ac_word=$2
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12454 $as_echo_n "checking for $ac_word... " >&6; }
12455 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12456   $as_echo_n "(cached) " >&6
12457 else
12458   case $OBJDUMP_FOR_TARGET in
12459   [\\/]* | ?:[\\/]*)
12460   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12461   ;;
12462   *)
12463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464 for as_dir in $gcc_cv_tool_dirs
12465 do
12466   IFS=$as_save_IFS
12467   test -z "$as_dir" && as_dir=.
12468     for ac_exec_ext in '' $ac_executable_extensions; do
12469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12470     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12472     break 2
12473   fi
12474 done
12475   done
12476 IFS=$as_save_IFS
12477
12478   ;;
12479 esac
12480 fi
12481 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12482 if test -n "$OBJDUMP_FOR_TARGET"; then
12483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12484 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12485 else
12486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487 $as_echo "no" >&6; }
12488 fi
12489
12490
12491 fi
12492 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12493
12494
12495 if test -n "$OBJDUMP_FOR_TARGET"; then
12496   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12497 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12498   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12499 fi
12500
12501 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12502   for ncn_progname in objdump; do
12503     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12504 set dummy ${ncn_progname}; ac_word=$2
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12506 $as_echo_n "checking for $ac_word... " >&6; }
12507 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12508   $as_echo_n "(cached) " >&6
12509 else
12510   if test -n "$OBJDUMP_FOR_TARGET"; then
12511   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12512 else
12513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12514 for as_dir in $PATH
12515 do
12516   IFS=$as_save_IFS
12517   test -z "$as_dir" && as_dir=.
12518     for ac_exec_ext in '' $ac_executable_extensions; do
12519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12520     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12522     break 2
12523   fi
12524 done
12525   done
12526 IFS=$as_save_IFS
12527
12528 fi
12529 fi
12530 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12531 if test -n "$OBJDUMP_FOR_TARGET"; then
12532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12533 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12534 else
12535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12537 fi
12538
12539
12540   done
12541 fi
12542
12543 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12544   for ncn_progname in objdump; do
12545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12546 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12547     if test -x $with_build_time_tools/${ncn_progname}; then
12548       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12549       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12550 $as_echo "yes" >&6; }
12551       break
12552     else
12553       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554 $as_echo "no" >&6; }
12555     fi
12556   done
12557 fi
12558
12559 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12560   for ncn_progname in objdump; do
12561     if test -n "$ncn_target_tool_prefix"; then
12562       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12563 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12565 $as_echo_n "checking for $ac_word... " >&6; }
12566 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12567   $as_echo_n "(cached) " >&6
12568 else
12569   if test -n "$OBJDUMP_FOR_TARGET"; then
12570   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12571 else
12572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12573 for as_dir in $PATH
12574 do
12575   IFS=$as_save_IFS
12576   test -z "$as_dir" && as_dir=.
12577     for ac_exec_ext in '' $ac_executable_extensions; do
12578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12579     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12581     break 2
12582   fi
12583 done
12584   done
12585 IFS=$as_save_IFS
12586
12587 fi
12588 fi
12589 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12590 if test -n "$OBJDUMP_FOR_TARGET"; then
12591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12592 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12593 else
12594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595 $as_echo "no" >&6; }
12596 fi
12597
12598
12599     fi
12600     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12601       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12602 set dummy ${ncn_progname}; ac_word=$2
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12604 $as_echo_n "checking for $ac_word... " >&6; }
12605 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12606   $as_echo_n "(cached) " >&6
12607 else
12608   if test -n "$OBJDUMP_FOR_TARGET"; then
12609   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12610 else
12611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612 for as_dir in $PATH
12613 do
12614   IFS=$as_save_IFS
12615   test -z "$as_dir" && as_dir=.
12616     for ac_exec_ext in '' $ac_executable_extensions; do
12617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12618     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12620     break 2
12621   fi
12622 done
12623   done
12624 IFS=$as_save_IFS
12625
12626 fi
12627 fi
12628 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12629 if test -n "$OBJDUMP_FOR_TARGET"; then
12630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12631 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12632 else
12633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12635 fi
12636
12637
12638     fi
12639     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12640   done
12641 fi
12642
12643 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12644   set dummy objdump
12645   if test $build = $target ; then
12646     OBJDUMP_FOR_TARGET="$2"
12647   else
12648     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12649   fi
12650 else
12651   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12652 fi
12653
12654 else
12655   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12656 fi
12657
12658
12659
12660
12661 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12662   if test -n "$with_build_time_tools"; then
12663     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12664 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12665     if test -x $with_build_time_tools/ranlib; then
12666       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12667       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12668       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12669 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12670     else
12671       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672 $as_echo "no" >&6; }
12673     fi
12674   elif test $build != $host && test $have_gcc_for_target = yes; then
12675     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12676     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12677     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12678   fi
12679 fi
12680 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12681   # Extract the first word of "ranlib", so it can be a program name with args.
12682 set dummy ranlib; ac_word=$2
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12684 $as_echo_n "checking for $ac_word... " >&6; }
12685 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12686   $as_echo_n "(cached) " >&6
12687 else
12688   case $RANLIB_FOR_TARGET in
12689   [\\/]* | ?:[\\/]*)
12690   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12691   ;;
12692   *)
12693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12694 for as_dir in $gcc_cv_tool_dirs
12695 do
12696   IFS=$as_save_IFS
12697   test -z "$as_dir" && as_dir=.
12698     for ac_exec_ext in '' $ac_executable_extensions; do
12699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12700     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12702     break 2
12703   fi
12704 done
12705   done
12706 IFS=$as_save_IFS
12707
12708   ;;
12709 esac
12710 fi
12711 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12712 if test -n "$RANLIB_FOR_TARGET"; then
12713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12714 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12715 else
12716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717 $as_echo "no" >&6; }
12718 fi
12719
12720
12721 fi
12722 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12723
12724
12725 if test -n "$RANLIB_FOR_TARGET"; then
12726   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12727 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12728   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12729 fi
12730
12731 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12732   for ncn_progname in ranlib; do
12733     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12734 set dummy ${ncn_progname}; ac_word=$2
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12736 $as_echo_n "checking for $ac_word... " >&6; }
12737 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12738   $as_echo_n "(cached) " >&6
12739 else
12740   if test -n "$RANLIB_FOR_TARGET"; then
12741   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12742 else
12743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12744 for as_dir in $PATH
12745 do
12746   IFS=$as_save_IFS
12747   test -z "$as_dir" && as_dir=.
12748     for ac_exec_ext in '' $ac_executable_extensions; do
12749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12750     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12752     break 2
12753   fi
12754 done
12755   done
12756 IFS=$as_save_IFS
12757
12758 fi
12759 fi
12760 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12761 if test -n "$RANLIB_FOR_TARGET"; then
12762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12763 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12764 else
12765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766 $as_echo "no" >&6; }
12767 fi
12768
12769
12770   done
12771 fi
12772
12773 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12774   for ncn_progname in ranlib; do
12775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12776 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12777     if test -x $with_build_time_tools/${ncn_progname}; then
12778       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12779       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12780 $as_echo "yes" >&6; }
12781       break
12782     else
12783       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784 $as_echo "no" >&6; }
12785     fi
12786   done
12787 fi
12788
12789 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12790   for ncn_progname in ranlib; do
12791     if test -n "$ncn_target_tool_prefix"; then
12792       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12793 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12795 $as_echo_n "checking for $ac_word... " >&6; }
12796 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12797   $as_echo_n "(cached) " >&6
12798 else
12799   if test -n "$RANLIB_FOR_TARGET"; then
12800   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12801 else
12802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12803 for as_dir in $PATH
12804 do
12805   IFS=$as_save_IFS
12806   test -z "$as_dir" && as_dir=.
12807     for ac_exec_ext in '' $ac_executable_extensions; do
12808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12809     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12811     break 2
12812   fi
12813 done
12814   done
12815 IFS=$as_save_IFS
12816
12817 fi
12818 fi
12819 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12820 if test -n "$RANLIB_FOR_TARGET"; then
12821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12822 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12823 else
12824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12825 $as_echo "no" >&6; }
12826 fi
12827
12828
12829     fi
12830     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12831       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12832 set dummy ${ncn_progname}; ac_word=$2
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834 $as_echo_n "checking for $ac_word... " >&6; }
12835 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12836   $as_echo_n "(cached) " >&6
12837 else
12838   if test -n "$RANLIB_FOR_TARGET"; then
12839   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12840 else
12841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 for as_dir in $PATH
12843 do
12844   IFS=$as_save_IFS
12845   test -z "$as_dir" && as_dir=.
12846     for ac_exec_ext in '' $ac_executable_extensions; do
12847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12848     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12850     break 2
12851   fi
12852 done
12853   done
12854 IFS=$as_save_IFS
12855
12856 fi
12857 fi
12858 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12859 if test -n "$RANLIB_FOR_TARGET"; then
12860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12861 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12862 else
12863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12865 fi
12866
12867
12868     fi
12869     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12870   done
12871 fi
12872
12873 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12874   set dummy ranlib
12875   if test $build = $target ; then
12876     RANLIB_FOR_TARGET="$2"
12877   else
12878     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12879   fi
12880 else
12881   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12882 fi
12883
12884 else
12885   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12886 fi
12887
12888
12889
12890
12891 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12892   if test -n "$with_build_time_tools"; then
12893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12894 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12895     if test -x $with_build_time_tools/readelf; then
12896       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12897       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12898       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12899 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12900     else
12901       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12903     fi
12904   elif test $build != $host && test $have_gcc_for_target = yes; then
12905     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12906     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12907     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12908   fi
12909 fi
12910 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12911   # Extract the first word of "readelf", so it can be a program name with args.
12912 set dummy readelf; ac_word=$2
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12914 $as_echo_n "checking for $ac_word... " >&6; }
12915 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12916   $as_echo_n "(cached) " >&6
12917 else
12918   case $READELF_FOR_TARGET in
12919   [\\/]* | ?:[\\/]*)
12920   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12921   ;;
12922   *)
12923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12924 for as_dir in $gcc_cv_tool_dirs
12925 do
12926   IFS=$as_save_IFS
12927   test -z "$as_dir" && as_dir=.
12928     for ac_exec_ext in '' $ac_executable_extensions; do
12929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12930     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12932     break 2
12933   fi
12934 done
12935   done
12936 IFS=$as_save_IFS
12937
12938   ;;
12939 esac
12940 fi
12941 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12942 if test -n "$READELF_FOR_TARGET"; then
12943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12944 $as_echo "$READELF_FOR_TARGET" >&6; }
12945 else
12946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12947 $as_echo "no" >&6; }
12948 fi
12949
12950
12951 fi
12952 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12953
12954
12955 if test -n "$READELF_FOR_TARGET"; then
12956   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12957 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12958   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12959 fi
12960
12961 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12962   for ncn_progname in readelf; do
12963     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12964 set dummy ${ncn_progname}; ac_word=$2
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12966 $as_echo_n "checking for $ac_word... " >&6; }
12967 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12968   $as_echo_n "(cached) " >&6
12969 else
12970   if test -n "$READELF_FOR_TARGET"; then
12971   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12972 else
12973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12974 for as_dir in $PATH
12975 do
12976   IFS=$as_save_IFS
12977   test -z "$as_dir" && as_dir=.
12978     for ac_exec_ext in '' $ac_executable_extensions; do
12979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12980     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12982     break 2
12983   fi
12984 done
12985   done
12986 IFS=$as_save_IFS
12987
12988 fi
12989 fi
12990 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12991 if test -n "$READELF_FOR_TARGET"; then
12992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12993 $as_echo "$READELF_FOR_TARGET" >&6; }
12994 else
12995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996 $as_echo "no" >&6; }
12997 fi
12998
12999
13000   done
13001 fi
13002
13003 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13004   for ncn_progname in readelf; do
13005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13006 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13007     if test -x $with_build_time_tools/${ncn_progname}; then
13008       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13009       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13010 $as_echo "yes" >&6; }
13011       break
13012     else
13013       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014 $as_echo "no" >&6; }
13015     fi
13016   done
13017 fi
13018
13019 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13020   for ncn_progname in readelf; do
13021     if test -n "$ncn_target_tool_prefix"; then
13022       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13023 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13025 $as_echo_n "checking for $ac_word... " >&6; }
13026 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13027   $as_echo_n "(cached) " >&6
13028 else
13029   if test -n "$READELF_FOR_TARGET"; then
13030   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13031 else
13032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13033 for as_dir in $PATH
13034 do
13035   IFS=$as_save_IFS
13036   test -z "$as_dir" && as_dir=.
13037     for ac_exec_ext in '' $ac_executable_extensions; do
13038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13039     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13041     break 2
13042   fi
13043 done
13044   done
13045 IFS=$as_save_IFS
13046
13047 fi
13048 fi
13049 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13050 if test -n "$READELF_FOR_TARGET"; then
13051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13052 $as_echo "$READELF_FOR_TARGET" >&6; }
13053 else
13054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13055 $as_echo "no" >&6; }
13056 fi
13057
13058
13059     fi
13060     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13061       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13062 set dummy ${ncn_progname}; ac_word=$2
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064 $as_echo_n "checking for $ac_word... " >&6; }
13065 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13066   $as_echo_n "(cached) " >&6
13067 else
13068   if test -n "$READELF_FOR_TARGET"; then
13069   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13070 else
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
13073 do
13074   IFS=$as_save_IFS
13075   test -z "$as_dir" && as_dir=.
13076     for ac_exec_ext in '' $ac_executable_extensions; do
13077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13078     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13080     break 2
13081   fi
13082 done
13083   done
13084 IFS=$as_save_IFS
13085
13086 fi
13087 fi
13088 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13089 if test -n "$READELF_FOR_TARGET"; then
13090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13091 $as_echo "$READELF_FOR_TARGET" >&6; }
13092 else
13093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094 $as_echo "no" >&6; }
13095 fi
13096
13097
13098     fi
13099     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13100   done
13101 fi
13102
13103 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13104   set dummy readelf
13105   if test $build = $target ; then
13106     READELF_FOR_TARGET="$2"
13107   else
13108     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13109   fi
13110 else
13111   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13112 fi
13113
13114 else
13115   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13116 fi
13117
13118
13119
13120
13121 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13122   if test -n "$with_build_time_tools"; then
13123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13124 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13125     if test -x $with_build_time_tools/strip; then
13126       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13127       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13128       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13129 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13130     else
13131       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13132 $as_echo "no" >&6; }
13133     fi
13134   elif test $build != $host && test $have_gcc_for_target = yes; then
13135     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13136     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13137     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13138   fi
13139 fi
13140 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13141   # Extract the first word of "strip", so it can be a program name with args.
13142 set dummy strip; ac_word=$2
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13144 $as_echo_n "checking for $ac_word... " >&6; }
13145 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13146   $as_echo_n "(cached) " >&6
13147 else
13148   case $STRIP_FOR_TARGET in
13149   [\\/]* | ?:[\\/]*)
13150   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13151   ;;
13152   *)
13153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154 for as_dir in $gcc_cv_tool_dirs
13155 do
13156   IFS=$as_save_IFS
13157   test -z "$as_dir" && as_dir=.
13158     for ac_exec_ext in '' $ac_executable_extensions; do
13159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13160     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13162     break 2
13163   fi
13164 done
13165   done
13166 IFS=$as_save_IFS
13167
13168   ;;
13169 esac
13170 fi
13171 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13172 if test -n "$STRIP_FOR_TARGET"; then
13173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13174 $as_echo "$STRIP_FOR_TARGET" >&6; }
13175 else
13176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13177 $as_echo "no" >&6; }
13178 fi
13179
13180
13181 fi
13182 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13183
13184
13185 if test -n "$STRIP_FOR_TARGET"; then
13186   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13187 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13188   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13189 fi
13190
13191 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13192   for ncn_progname in strip; do
13193     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13194 set dummy ${ncn_progname}; ac_word=$2
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13196 $as_echo_n "checking for $ac_word... " >&6; }
13197 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13198   $as_echo_n "(cached) " >&6
13199 else
13200   if test -n "$STRIP_FOR_TARGET"; then
13201   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13202 else
13203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204 for as_dir in $PATH
13205 do
13206   IFS=$as_save_IFS
13207   test -z "$as_dir" && as_dir=.
13208     for ac_exec_ext in '' $ac_executable_extensions; do
13209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13210     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13212     break 2
13213   fi
13214 done
13215   done
13216 IFS=$as_save_IFS
13217
13218 fi
13219 fi
13220 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13221 if test -n "$STRIP_FOR_TARGET"; then
13222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13223 $as_echo "$STRIP_FOR_TARGET" >&6; }
13224 else
13225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13227 fi
13228
13229
13230   done
13231 fi
13232
13233 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13234   for ncn_progname in strip; do
13235     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13236 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13237     if test -x $with_build_time_tools/${ncn_progname}; then
13238       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13239       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13240 $as_echo "yes" >&6; }
13241       break
13242     else
13243       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244 $as_echo "no" >&6; }
13245     fi
13246   done
13247 fi
13248
13249 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13250   for ncn_progname in strip; do
13251     if test -n "$ncn_target_tool_prefix"; then
13252       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13253 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13255 $as_echo_n "checking for $ac_word... " >&6; }
13256 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13257   $as_echo_n "(cached) " >&6
13258 else
13259   if test -n "$STRIP_FOR_TARGET"; then
13260   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13261 else
13262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13263 for as_dir in $PATH
13264 do
13265   IFS=$as_save_IFS
13266   test -z "$as_dir" && as_dir=.
13267     for ac_exec_ext in '' $ac_executable_extensions; do
13268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13269     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13271     break 2
13272   fi
13273 done
13274   done
13275 IFS=$as_save_IFS
13276
13277 fi
13278 fi
13279 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13280 if test -n "$STRIP_FOR_TARGET"; then
13281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13282 $as_echo "$STRIP_FOR_TARGET" >&6; }
13283 else
13284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13285 $as_echo "no" >&6; }
13286 fi
13287
13288
13289     fi
13290     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13291       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13292 set dummy ${ncn_progname}; ac_word=$2
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294 $as_echo_n "checking for $ac_word... " >&6; }
13295 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13296   $as_echo_n "(cached) " >&6
13297 else
13298   if test -n "$STRIP_FOR_TARGET"; then
13299   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13300 else
13301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302 for as_dir in $PATH
13303 do
13304   IFS=$as_save_IFS
13305   test -z "$as_dir" && as_dir=.
13306     for ac_exec_ext in '' $ac_executable_extensions; do
13307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13308     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13310     break 2
13311   fi
13312 done
13313   done
13314 IFS=$as_save_IFS
13315
13316 fi
13317 fi
13318 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13319 if test -n "$STRIP_FOR_TARGET"; then
13320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13321 $as_echo "$STRIP_FOR_TARGET" >&6; }
13322 else
13323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324 $as_echo "no" >&6; }
13325 fi
13326
13327
13328     fi
13329     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13330   done
13331 fi
13332
13333 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13334   set dummy strip
13335   if test $build = $target ; then
13336     STRIP_FOR_TARGET="$2"
13337   else
13338     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13339   fi
13340 else
13341   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13342 fi
13343
13344 else
13345   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13346 fi
13347
13348
13349
13350
13351 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13352   if test -n "$with_build_time_tools"; then
13353     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13354 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13355     if test -x $with_build_time_tools/windres; then
13356       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13357       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13358       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13359 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13360     else
13361       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13362 $as_echo "no" >&6; }
13363     fi
13364   elif test $build != $host && test $have_gcc_for_target = yes; then
13365     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13366     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13367     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13368   fi
13369 fi
13370 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13371   # Extract the first word of "windres", so it can be a program name with args.
13372 set dummy windres; ac_word=$2
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13374 $as_echo_n "checking for $ac_word... " >&6; }
13375 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13376   $as_echo_n "(cached) " >&6
13377 else
13378   case $WINDRES_FOR_TARGET in
13379   [\\/]* | ?:[\\/]*)
13380   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13381   ;;
13382   *)
13383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384 for as_dir in $gcc_cv_tool_dirs
13385 do
13386   IFS=$as_save_IFS
13387   test -z "$as_dir" && as_dir=.
13388     for ac_exec_ext in '' $ac_executable_extensions; do
13389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13390     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13392     break 2
13393   fi
13394 done
13395   done
13396 IFS=$as_save_IFS
13397
13398   ;;
13399 esac
13400 fi
13401 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13402 if test -n "$WINDRES_FOR_TARGET"; then
13403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13404 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13405 else
13406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13407 $as_echo "no" >&6; }
13408 fi
13409
13410
13411 fi
13412 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13413
13414
13415 if test -n "$WINDRES_FOR_TARGET"; then
13416   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13417 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13418   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13419 fi
13420
13421 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13422   for ncn_progname in windres; do
13423     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13424 set dummy ${ncn_progname}; ac_word=$2
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13426 $as_echo_n "checking for $ac_word... " >&6; }
13427 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13428   $as_echo_n "(cached) " >&6
13429 else
13430   if test -n "$WINDRES_FOR_TARGET"; then
13431   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13432 else
13433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13434 for as_dir in $PATH
13435 do
13436   IFS=$as_save_IFS
13437   test -z "$as_dir" && as_dir=.
13438     for ac_exec_ext in '' $ac_executable_extensions; do
13439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13440     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13442     break 2
13443   fi
13444 done
13445   done
13446 IFS=$as_save_IFS
13447
13448 fi
13449 fi
13450 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13451 if test -n "$WINDRES_FOR_TARGET"; then
13452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13453 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13454 else
13455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456 $as_echo "no" >&6; }
13457 fi
13458
13459
13460   done
13461 fi
13462
13463 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13464   for ncn_progname in windres; do
13465     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13466 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13467     if test -x $with_build_time_tools/${ncn_progname}; then
13468       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13469       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13470 $as_echo "yes" >&6; }
13471       break
13472     else
13473       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13474 $as_echo "no" >&6; }
13475     fi
13476   done
13477 fi
13478
13479 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13480   for ncn_progname in windres; do
13481     if test -n "$ncn_target_tool_prefix"; then
13482       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13483 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13485 $as_echo_n "checking for $ac_word... " >&6; }
13486 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13487   $as_echo_n "(cached) " >&6
13488 else
13489   if test -n "$WINDRES_FOR_TARGET"; then
13490   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13491 else
13492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13493 for as_dir in $PATH
13494 do
13495   IFS=$as_save_IFS
13496   test -z "$as_dir" && as_dir=.
13497     for ac_exec_ext in '' $ac_executable_extensions; do
13498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13499     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13501     break 2
13502   fi
13503 done
13504   done
13505 IFS=$as_save_IFS
13506
13507 fi
13508 fi
13509 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13510 if test -n "$WINDRES_FOR_TARGET"; then
13511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13512 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13513 else
13514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13515 $as_echo "no" >&6; }
13516 fi
13517
13518
13519     fi
13520     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13521       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13522 set dummy ${ncn_progname}; ac_word=$2
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13524 $as_echo_n "checking for $ac_word... " >&6; }
13525 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13526   $as_echo_n "(cached) " >&6
13527 else
13528   if test -n "$WINDRES_FOR_TARGET"; then
13529   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13530 else
13531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13532 for as_dir in $PATH
13533 do
13534   IFS=$as_save_IFS
13535   test -z "$as_dir" && as_dir=.
13536     for ac_exec_ext in '' $ac_executable_extensions; do
13537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13538     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13540     break 2
13541   fi
13542 done
13543   done
13544 IFS=$as_save_IFS
13545
13546 fi
13547 fi
13548 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13549 if test -n "$WINDRES_FOR_TARGET"; then
13550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13551 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13552 else
13553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13554 $as_echo "no" >&6; }
13555 fi
13556
13557
13558     fi
13559     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13560   done
13561 fi
13562
13563 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13564   set dummy windres
13565   if test $build = $target ; then
13566     WINDRES_FOR_TARGET="$2"
13567   else
13568     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13569   fi
13570 else
13571   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13572 fi
13573
13574 else
13575   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13576 fi
13577
13578
13579
13580
13581 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13582   if test -n "$with_build_time_tools"; then
13583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13584 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13585     if test -x $with_build_time_tools/windmc; then
13586       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13587       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13588       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13589 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13590     else
13591       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13592 $as_echo "no" >&6; }
13593     fi
13594   elif test $build != $host && test $have_gcc_for_target = yes; then
13595     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13596     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13597     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13598   fi
13599 fi
13600 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13601   # Extract the first word of "windmc", so it can be a program name with args.
13602 set dummy windmc; ac_word=$2
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13604 $as_echo_n "checking for $ac_word... " >&6; }
13605 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13606   $as_echo_n "(cached) " >&6
13607 else
13608   case $WINDMC_FOR_TARGET in
13609   [\\/]* | ?:[\\/]*)
13610   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13611   ;;
13612   *)
13613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $gcc_cv_tool_dirs
13615 do
13616   IFS=$as_save_IFS
13617   test -z "$as_dir" && as_dir=.
13618     for ac_exec_ext in '' $ac_executable_extensions; do
13619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13620     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13622     break 2
13623   fi
13624 done
13625   done
13626 IFS=$as_save_IFS
13627
13628   ;;
13629 esac
13630 fi
13631 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13632 if test -n "$WINDMC_FOR_TARGET"; then
13633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13634 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13635 else
13636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637 $as_echo "no" >&6; }
13638 fi
13639
13640
13641 fi
13642 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13643
13644
13645 if test -n "$WINDMC_FOR_TARGET"; then
13646   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13647 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13648   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13649 fi
13650
13651 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13652   for ncn_progname in windmc; do
13653     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13654 set dummy ${ncn_progname}; ac_word=$2
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13656 $as_echo_n "checking for $ac_word... " >&6; }
13657 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13658   $as_echo_n "(cached) " >&6
13659 else
13660   if test -n "$WINDMC_FOR_TARGET"; then
13661   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13662 else
13663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13664 for as_dir in $PATH
13665 do
13666   IFS=$as_save_IFS
13667   test -z "$as_dir" && as_dir=.
13668     for ac_exec_ext in '' $ac_executable_extensions; do
13669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13670     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13672     break 2
13673   fi
13674 done
13675   done
13676 IFS=$as_save_IFS
13677
13678 fi
13679 fi
13680 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13681 if test -n "$WINDMC_FOR_TARGET"; then
13682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13683 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13684 else
13685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13686 $as_echo "no" >&6; }
13687 fi
13688
13689
13690   done
13691 fi
13692
13693 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13694   for ncn_progname in windmc; do
13695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13696 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13697     if test -x $with_build_time_tools/${ncn_progname}; then
13698       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13699       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13700 $as_echo "yes" >&6; }
13701       break
13702     else
13703       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13704 $as_echo "no" >&6; }
13705     fi
13706   done
13707 fi
13708
13709 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13710   for ncn_progname in windmc; do
13711     if test -n "$ncn_target_tool_prefix"; then
13712       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13713 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13715 $as_echo_n "checking for $ac_word... " >&6; }
13716 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13717   $as_echo_n "(cached) " >&6
13718 else
13719   if test -n "$WINDMC_FOR_TARGET"; then
13720   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13721 else
13722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13723 for as_dir in $PATH
13724 do
13725   IFS=$as_save_IFS
13726   test -z "$as_dir" && as_dir=.
13727     for ac_exec_ext in '' $ac_executable_extensions; do
13728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13729     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13731     break 2
13732   fi
13733 done
13734   done
13735 IFS=$as_save_IFS
13736
13737 fi
13738 fi
13739 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13740 if test -n "$WINDMC_FOR_TARGET"; then
13741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13742 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13743 else
13744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13745 $as_echo "no" >&6; }
13746 fi
13747
13748
13749     fi
13750     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13751       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13752 set dummy ${ncn_progname}; ac_word=$2
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13754 $as_echo_n "checking for $ac_word... " >&6; }
13755 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13756   $as_echo_n "(cached) " >&6
13757 else
13758   if test -n "$WINDMC_FOR_TARGET"; then
13759   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13760 else
13761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762 for as_dir in $PATH
13763 do
13764   IFS=$as_save_IFS
13765   test -z "$as_dir" && as_dir=.
13766     for ac_exec_ext in '' $ac_executable_extensions; do
13767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13768     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13770     break 2
13771   fi
13772 done
13773   done
13774 IFS=$as_save_IFS
13775
13776 fi
13777 fi
13778 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13779 if test -n "$WINDMC_FOR_TARGET"; then
13780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13781 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13782 else
13783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13784 $as_echo "no" >&6; }
13785 fi
13786
13787
13788     fi
13789     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13790   done
13791 fi
13792
13793 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13794   set dummy windmc
13795   if test $build = $target ; then
13796     WINDMC_FOR_TARGET="$2"
13797   else
13798     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13799   fi
13800 else
13801   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13802 fi
13803
13804 else
13805   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13806 fi
13807
13808
13809 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13810
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13812 $as_echo_n "checking where to find the target ar... " >&6; }
13813 if test "x${build}" != "x${host}" ; then
13814   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13815     # We already found the complete path
13816     ac_dir=`dirname $AR_FOR_TARGET`
13817     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13818 $as_echo "pre-installed in $ac_dir" >&6; }
13819   else
13820     # Canadian cross, just use what we found
13821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13822 $as_echo "pre-installed" >&6; }
13823   fi
13824 else
13825   ok=yes
13826   case " ${configdirs} " in
13827     *" binutils "*) ;;
13828     *) ok=no ;;
13829   esac
13830
13831   if test $ok = yes; then
13832     # An in-tree tool is available and we can use it
13833     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13835 $as_echo "just compiled" >&6; }
13836   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13837     # We already found the complete path
13838     ac_dir=`dirname $AR_FOR_TARGET`
13839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13840 $as_echo "pre-installed in $ac_dir" >&6; }
13841   elif test "x$target" = "x$host"; then
13842     # We can use an host tool
13843     AR_FOR_TARGET='$(AR)'
13844     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13845 $as_echo "host tool" >&6; }
13846   else
13847     # We need a cross tool
13848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13849 $as_echo "pre-installed" >&6; }
13850   fi
13851 fi
13852
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13854 $as_echo_n "checking where to find the target as... " >&6; }
13855 if test "x${build}" != "x${host}" ; then
13856   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13857     # We already found the complete path
13858     ac_dir=`dirname $AS_FOR_TARGET`
13859     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13860 $as_echo "pre-installed in $ac_dir" >&6; }
13861   else
13862     # Canadian cross, just use what we found
13863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13864 $as_echo "pre-installed" >&6; }
13865   fi
13866 else
13867   ok=yes
13868   case " ${configdirs} " in
13869     *" gas "*) ;;
13870     *) ok=no ;;
13871   esac
13872
13873   if test $ok = yes; then
13874     # An in-tree tool is available and we can use it
13875     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13876     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13877 $as_echo "just compiled" >&6; }
13878   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13879     # We already found the complete path
13880     ac_dir=`dirname $AS_FOR_TARGET`
13881     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13882 $as_echo "pre-installed in $ac_dir" >&6; }
13883   elif test "x$target" = "x$host"; then
13884     # We can use an host tool
13885     AS_FOR_TARGET='$(AS)'
13886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13887 $as_echo "host tool" >&6; }
13888   else
13889     # We need a cross tool
13890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13891 $as_echo "pre-installed" >&6; }
13892   fi
13893 fi
13894
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13896 $as_echo_n "checking where to find the target cc... " >&6; }
13897 if test "x${build}" != "x${host}" ; then
13898   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13899     # We already found the complete path
13900     ac_dir=`dirname $CC_FOR_TARGET`
13901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13902 $as_echo "pre-installed in $ac_dir" >&6; }
13903   else
13904     # Canadian cross, just use what we found
13905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13906 $as_echo "pre-installed" >&6; }
13907   fi
13908 else
13909   ok=yes
13910   case " ${configdirs} " in
13911     *" gcc "*) ;;
13912     *) ok=no ;;
13913   esac
13914
13915   if test $ok = yes; then
13916     # An in-tree tool is available and we can use it
13917     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13919 $as_echo "just compiled" >&6; }
13920   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13921     # We already found the complete path
13922     ac_dir=`dirname $CC_FOR_TARGET`
13923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13924 $as_echo "pre-installed in $ac_dir" >&6; }
13925   elif test "x$target" = "x$host"; then
13926     # We can use an host tool
13927     CC_FOR_TARGET='$(CC)'
13928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13929 $as_echo "host tool" >&6; }
13930   else
13931     # We need a cross tool
13932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13933 $as_echo "pre-installed" >&6; }
13934   fi
13935 fi
13936
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13938 $as_echo_n "checking where to find the target c++... " >&6; }
13939 if test "x${build}" != "x${host}" ; then
13940   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13941     # We already found the complete path
13942     ac_dir=`dirname $CXX_FOR_TARGET`
13943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13944 $as_echo "pre-installed in $ac_dir" >&6; }
13945   else
13946     # Canadian cross, just use what we found
13947     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13948 $as_echo "pre-installed" >&6; }
13949   fi
13950 else
13951   ok=yes
13952   case " ${configdirs} " in
13953     *" gcc "*) ;;
13954     *) ok=no ;;
13955   esac
13956   case ,${enable_languages}, in
13957     *,c++,*) ;;
13958     *) ok=no ;;
13959   esac
13960   if test $ok = yes; then
13961     # An in-tree tool is available and we can use it
13962     CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
13963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13964 $as_echo "just compiled" >&6; }
13965   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13966     # We already found the complete path
13967     ac_dir=`dirname $CXX_FOR_TARGET`
13968     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13969 $as_echo "pre-installed in $ac_dir" >&6; }
13970   elif test "x$target" = "x$host"; then
13971     # We can use an host tool
13972     CXX_FOR_TARGET='$(CXX)'
13973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13974 $as_echo "host tool" >&6; }
13975   else
13976     # We need a cross tool
13977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13978 $as_echo "pre-installed" >&6; }
13979   fi
13980 fi
13981
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13983 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13984 if test "x${build}" != "x${host}" ; then
13985   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13986     # We already found the complete path
13987     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13989 $as_echo "pre-installed in $ac_dir" >&6; }
13990   else
13991     # Canadian cross, just use what we found
13992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13993 $as_echo "pre-installed" >&6; }
13994   fi
13995 else
13996   ok=yes
13997   case " ${configdirs} " in
13998     *" gcc "*) ;;
13999     *) ok=no ;;
14000   esac
14001   case ,${enable_languages}, in
14002     *,c++,*) ;;
14003     *) ok=no ;;
14004   esac
14005   if test $ok = yes; then
14006     # An in-tree tool is available and we can use it
14007     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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
14008     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14009 $as_echo "just compiled" >&6; }
14010   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14011     # We already found the complete path
14012     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14013     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14014 $as_echo "pre-installed in $ac_dir" >&6; }
14015   elif test "x$target" = "x$host"; then
14016     # We can use an host tool
14017     RAW_CXX_FOR_TARGET='$(CXX)'
14018     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14019 $as_echo "host tool" >&6; }
14020   else
14021     # We need a cross tool
14022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14023 $as_echo "pre-installed" >&6; }
14024   fi
14025 fi
14026
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14028 $as_echo_n "checking where to find the target dlltool... " >&6; }
14029 if test "x${build}" != "x${host}" ; then
14030   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14031     # We already found the complete path
14032     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14034 $as_echo "pre-installed in $ac_dir" >&6; }
14035   else
14036     # Canadian cross, just use what we found
14037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14038 $as_echo "pre-installed" >&6; }
14039   fi
14040 else
14041   ok=yes
14042   case " ${configdirs} " in
14043     *" binutils "*) ;;
14044     *) ok=no ;;
14045   esac
14046
14047   if test $ok = yes; then
14048     # An in-tree tool is available and we can use it
14049     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14050     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14051 $as_echo "just compiled" >&6; }
14052   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14053     # We already found the complete path
14054     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14056 $as_echo "pre-installed in $ac_dir" >&6; }
14057   elif test "x$target" = "x$host"; then
14058     # We can use an host tool
14059     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14061 $as_echo "host tool" >&6; }
14062   else
14063     # We need a cross tool
14064     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14065 $as_echo "pre-installed" >&6; }
14066   fi
14067 fi
14068
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14070 $as_echo_n "checking where to find the target gcc... " >&6; }
14071 if test "x${build}" != "x${host}" ; then
14072   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14073     # We already found the complete path
14074     ac_dir=`dirname $GCC_FOR_TARGET`
14075     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14076 $as_echo "pre-installed in $ac_dir" >&6; }
14077   else
14078     # Canadian cross, just use what we found
14079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14080 $as_echo "pre-installed" >&6; }
14081   fi
14082 else
14083   ok=yes
14084   case " ${configdirs} " in
14085     *" gcc "*) ;;
14086     *) ok=no ;;
14087   esac
14088
14089   if test $ok = yes; then
14090     # An in-tree tool is available and we can use it
14091     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14093 $as_echo "just compiled" >&6; }
14094   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14095     # We already found the complete path
14096     ac_dir=`dirname $GCC_FOR_TARGET`
14097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14098 $as_echo "pre-installed in $ac_dir" >&6; }
14099   elif test "x$target" = "x$host"; then
14100     # We can use an host tool
14101     GCC_FOR_TARGET='$()'
14102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14103 $as_echo "host tool" >&6; }
14104   else
14105     # We need a cross tool
14106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14107 $as_echo "pre-installed" >&6; }
14108   fi
14109 fi
14110
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14112 $as_echo_n "checking where to find the target gfortran... " >&6; }
14113 if test "x${build}" != "x${host}" ; then
14114   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14115     # We already found the complete path
14116     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14118 $as_echo "pre-installed in $ac_dir" >&6; }
14119   else
14120     # Canadian cross, just use what we found
14121     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14122 $as_echo "pre-installed" >&6; }
14123   fi
14124 else
14125   ok=yes
14126   case " ${configdirs} " in
14127     *" gcc "*) ;;
14128     *) ok=no ;;
14129   esac
14130   case ,${enable_languages}, in
14131     *,fortran,*) ;;
14132     *) ok=no ;;
14133   esac
14134   if test $ok = yes; then
14135     # An in-tree tool is available and we can use it
14136     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14137     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14138 $as_echo "just compiled" >&6; }
14139   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14140     # We already found the complete path
14141     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14143 $as_echo "pre-installed in $ac_dir" >&6; }
14144   elif test "x$target" = "x$host"; then
14145     # We can use an host tool
14146     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14147     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14148 $as_echo "host tool" >&6; }
14149   else
14150     # We need a cross tool
14151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14152 $as_echo "pre-installed" >&6; }
14153   fi
14154 fi
14155
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14157 $as_echo_n "checking where to find the target gccgo... " >&6; }
14158 if test "x${build}" != "x${host}" ; then
14159   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14160     # We already found the complete path
14161     ac_dir=`dirname $GOC_FOR_TARGET`
14162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14163 $as_echo "pre-installed in $ac_dir" >&6; }
14164   else
14165     # Canadian cross, just use what we found
14166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14167 $as_echo "pre-installed" >&6; }
14168   fi
14169 else
14170   ok=yes
14171   case " ${configdirs} " in
14172     *" gcc "*) ;;
14173     *) ok=no ;;
14174   esac
14175   case ,${enable_languages}, in
14176     *,go,*) ;;
14177     *) ok=no ;;
14178   esac
14179   if test $ok = yes; then
14180     # An in-tree tool is available and we can use it
14181     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14182     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14183 $as_echo "just compiled" >&6; }
14184   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14185     # We already found the complete path
14186     ac_dir=`dirname $GOC_FOR_TARGET`
14187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14188 $as_echo "pre-installed in $ac_dir" >&6; }
14189   elif test "x$target" = "x$host"; then
14190     # We can use an host tool
14191     GOC_FOR_TARGET='$(GOC)'
14192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14193 $as_echo "host tool" >&6; }
14194   else
14195     # We need a cross tool
14196     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14197 $as_echo "pre-installed" >&6; }
14198   fi
14199 fi
14200
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14202 $as_echo_n "checking where to find the target ld... " >&6; }
14203 if test "x${build}" != "x${host}" ; then
14204   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14205     # We already found the complete path
14206     ac_dir=`dirname $LD_FOR_TARGET`
14207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14208 $as_echo "pre-installed in $ac_dir" >&6; }
14209   else
14210     # Canadian cross, just use what we found
14211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14212 $as_echo "pre-installed" >&6; }
14213   fi
14214 else
14215   ok=yes
14216   case " ${configdirs} " in
14217     *" ld "*) ;;
14218     *) ok=no ;;
14219   esac
14220
14221   if test $ok = yes; then
14222     # An in-tree tool is available and we can use it
14223     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14224     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14225 $as_echo "just compiled" >&6; }
14226   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14227     # We already found the complete path
14228     ac_dir=`dirname $LD_FOR_TARGET`
14229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14230 $as_echo "pre-installed in $ac_dir" >&6; }
14231   elif test "x$target" = "x$host"; then
14232     # We can use an host tool
14233     LD_FOR_TARGET='$(LD)'
14234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14235 $as_echo "host tool" >&6; }
14236   else
14237     # We need a cross tool
14238     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14239 $as_echo "pre-installed" >&6; }
14240   fi
14241 fi
14242
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14244 $as_echo_n "checking where to find the target lipo... " >&6; }
14245 if test "x${build}" != "x${host}" ; then
14246   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14247     # We already found the complete path
14248     ac_dir=`dirname $LIPO_FOR_TARGET`
14249     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14250 $as_echo "pre-installed in $ac_dir" >&6; }
14251   else
14252     # Canadian cross, just use what we found
14253     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14254 $as_echo "pre-installed" >&6; }
14255   fi
14256 else
14257   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14258     # We already found the complete path
14259     ac_dir=`dirname $LIPO_FOR_TARGET`
14260     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14261 $as_echo "pre-installed in $ac_dir" >&6; }
14262   elif test "x$target" = "x$host"; then
14263     # We can use an host tool
14264     LIPO_FOR_TARGET='$(LIPO)'
14265     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14266 $as_echo "host tool" >&6; }
14267   else
14268     # We need a cross tool
14269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14270 $as_echo "pre-installed" >&6; }
14271   fi
14272 fi
14273
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14275 $as_echo_n "checking where to find the target nm... " >&6; }
14276 if test "x${build}" != "x${host}" ; then
14277   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14278     # We already found the complete path
14279     ac_dir=`dirname $NM_FOR_TARGET`
14280     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14281 $as_echo "pre-installed in $ac_dir" >&6; }
14282   else
14283     # Canadian cross, just use what we found
14284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14285 $as_echo "pre-installed" >&6; }
14286   fi
14287 else
14288   ok=yes
14289   case " ${configdirs} " in
14290     *" binutils "*) ;;
14291     *) ok=no ;;
14292   esac
14293
14294   if test $ok = yes; then
14295     # An in-tree tool is available and we can use it
14296     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14297     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14298 $as_echo "just compiled" >&6; }
14299   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14300     # We already found the complete path
14301     ac_dir=`dirname $NM_FOR_TARGET`
14302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14303 $as_echo "pre-installed in $ac_dir" >&6; }
14304   elif test "x$target" = "x$host"; then
14305     # We can use an host tool
14306     NM_FOR_TARGET='$(NM)'
14307     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14308 $as_echo "host tool" >&6; }
14309   else
14310     # We need a cross tool
14311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14312 $as_echo "pre-installed" >&6; }
14313   fi
14314 fi
14315
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14317 $as_echo_n "checking where to find the target objcopy... " >&6; }
14318 if test "x${build}" != "x${host}" ; then
14319   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14320     # We already found the complete path
14321     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14323 $as_echo "pre-installed in $ac_dir" >&6; }
14324   else
14325     # Canadian cross, just use what we found
14326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14327 $as_echo "pre-installed" >&6; }
14328   fi
14329 else
14330   ok=yes
14331   case " ${configdirs} " in
14332     *" binutils "*) ;;
14333     *) ok=no ;;
14334   esac
14335
14336   if test $ok = yes; then
14337     # An in-tree tool is available and we can use it
14338     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14340 $as_echo "just compiled" >&6; }
14341   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14342     # We already found the complete path
14343     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14344     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14345 $as_echo "pre-installed in $ac_dir" >&6; }
14346   elif test "x$target" = "x$host"; then
14347     # We can use an host tool
14348     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14349     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14350 $as_echo "host tool" >&6; }
14351   else
14352     # We need a cross tool
14353     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14354 $as_echo "pre-installed" >&6; }
14355   fi
14356 fi
14357
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14359 $as_echo_n "checking where to find the target objdump... " >&6; }
14360 if test "x${build}" != "x${host}" ; then
14361   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14362     # We already found the complete path
14363     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14364     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14365 $as_echo "pre-installed in $ac_dir" >&6; }
14366   else
14367     # Canadian cross, just use what we found
14368     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14369 $as_echo "pre-installed" >&6; }
14370   fi
14371 else
14372   ok=yes
14373   case " ${configdirs} " in
14374     *" binutils "*) ;;
14375     *) ok=no ;;
14376   esac
14377
14378   if test $ok = yes; then
14379     # An in-tree tool is available and we can use it
14380     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14381     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14382 $as_echo "just compiled" >&6; }
14383   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14384     # We already found the complete path
14385     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14387 $as_echo "pre-installed in $ac_dir" >&6; }
14388   elif test "x$target" = "x$host"; then
14389     # We can use an host tool
14390     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14391     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14392 $as_echo "host tool" >&6; }
14393   else
14394     # We need a cross tool
14395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14396 $as_echo "pre-installed" >&6; }
14397   fi
14398 fi
14399
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14401 $as_echo_n "checking where to find the target ranlib... " >&6; }
14402 if test "x${build}" != "x${host}" ; then
14403   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14404     # We already found the complete path
14405     ac_dir=`dirname $RANLIB_FOR_TARGET`
14406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14407 $as_echo "pre-installed in $ac_dir" >&6; }
14408   else
14409     # Canadian cross, just use what we found
14410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14411 $as_echo "pre-installed" >&6; }
14412   fi
14413 else
14414   ok=yes
14415   case " ${configdirs} " in
14416     *" binutils "*) ;;
14417     *) ok=no ;;
14418   esac
14419
14420   if test $ok = yes; then
14421     # An in-tree tool is available and we can use it
14422     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14424 $as_echo "just compiled" >&6; }
14425   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14426     # We already found the complete path
14427     ac_dir=`dirname $RANLIB_FOR_TARGET`
14428     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14429 $as_echo "pre-installed in $ac_dir" >&6; }
14430   elif test "x$target" = "x$host"; then
14431     # We can use an host tool
14432     RANLIB_FOR_TARGET='$(RANLIB)'
14433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14434 $as_echo "host tool" >&6; }
14435   else
14436     # We need a cross tool
14437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14438 $as_echo "pre-installed" >&6; }
14439   fi
14440 fi
14441
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14443 $as_echo_n "checking where to find the target readelf... " >&6; }
14444 if test "x${build}" != "x${host}" ; then
14445   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14446     # We already found the complete path
14447     ac_dir=`dirname $READELF_FOR_TARGET`
14448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14449 $as_echo "pre-installed in $ac_dir" >&6; }
14450   else
14451     # Canadian cross, just use what we found
14452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14453 $as_echo "pre-installed" >&6; }
14454   fi
14455 else
14456   ok=yes
14457   case " ${configdirs} " in
14458     *" binutils "*) ;;
14459     *) ok=no ;;
14460   esac
14461
14462   if test $ok = yes; then
14463     # An in-tree tool is available and we can use it
14464     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14466 $as_echo "just compiled" >&6; }
14467   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14468     # We already found the complete path
14469     ac_dir=`dirname $READELF_FOR_TARGET`
14470     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14471 $as_echo "pre-installed in $ac_dir" >&6; }
14472   elif test "x$target" = "x$host"; then
14473     # We can use an host tool
14474     READELF_FOR_TARGET='$(READELF)'
14475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14476 $as_echo "host tool" >&6; }
14477   else
14478     # We need a cross tool
14479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14480 $as_echo "pre-installed" >&6; }
14481   fi
14482 fi
14483
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14485 $as_echo_n "checking where to find the target strip... " >&6; }
14486 if test "x${build}" != "x${host}" ; then
14487   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14488     # We already found the complete path
14489     ac_dir=`dirname $STRIP_FOR_TARGET`
14490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14491 $as_echo "pre-installed in $ac_dir" >&6; }
14492   else
14493     # Canadian cross, just use what we found
14494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14495 $as_echo "pre-installed" >&6; }
14496   fi
14497 else
14498   ok=yes
14499   case " ${configdirs} " in
14500     *" binutils "*) ;;
14501     *) ok=no ;;
14502   esac
14503
14504   if test $ok = yes; then
14505     # An in-tree tool is available and we can use it
14506     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14508 $as_echo "just compiled" >&6; }
14509   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14510     # We already found the complete path
14511     ac_dir=`dirname $STRIP_FOR_TARGET`
14512     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14513 $as_echo "pre-installed in $ac_dir" >&6; }
14514   elif test "x$target" = "x$host"; then
14515     # We can use an host tool
14516     STRIP_FOR_TARGET='$(STRIP)'
14517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14518 $as_echo "host tool" >&6; }
14519   else
14520     # We need a cross tool
14521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14522 $as_echo "pre-installed" >&6; }
14523   fi
14524 fi
14525
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14527 $as_echo_n "checking where to find the target windres... " >&6; }
14528 if test "x${build}" != "x${host}" ; then
14529   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14530     # We already found the complete path
14531     ac_dir=`dirname $WINDRES_FOR_TARGET`
14532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14533 $as_echo "pre-installed in $ac_dir" >&6; }
14534   else
14535     # Canadian cross, just use what we found
14536     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14537 $as_echo "pre-installed" >&6; }
14538   fi
14539 else
14540   ok=yes
14541   case " ${configdirs} " in
14542     *" binutils "*) ;;
14543     *) ok=no ;;
14544   esac
14545
14546   if test $ok = yes; then
14547     # An in-tree tool is available and we can use it
14548     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14549     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14550 $as_echo "just compiled" >&6; }
14551   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14552     # We already found the complete path
14553     ac_dir=`dirname $WINDRES_FOR_TARGET`
14554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14555 $as_echo "pre-installed in $ac_dir" >&6; }
14556   elif test "x$target" = "x$host"; then
14557     # We can use an host tool
14558     WINDRES_FOR_TARGET='$(WINDRES)'
14559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14560 $as_echo "host tool" >&6; }
14561   else
14562     # We need a cross tool
14563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14564 $as_echo "pre-installed" >&6; }
14565   fi
14566 fi
14567
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14569 $as_echo_n "checking where to find the target windmc... " >&6; }
14570 if test "x${build}" != "x${host}" ; then
14571   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14572     # We already found the complete path
14573     ac_dir=`dirname $WINDMC_FOR_TARGET`
14574     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14575 $as_echo "pre-installed in $ac_dir" >&6; }
14576   else
14577     # Canadian cross, just use what we found
14578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14579 $as_echo "pre-installed" >&6; }
14580   fi
14581 else
14582   ok=yes
14583   case " ${configdirs} " in
14584     *" binutils "*) ;;
14585     *) ok=no ;;
14586   esac
14587
14588   if test $ok = yes; then
14589     # An in-tree tool is available and we can use it
14590     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14592 $as_echo "just compiled" >&6; }
14593   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14594     # We already found the complete path
14595     ac_dir=`dirname $WINDMC_FOR_TARGET`
14596     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14597 $as_echo "pre-installed in $ac_dir" >&6; }
14598   elif test "x$target" = "x$host"; then
14599     # We can use an host tool
14600     WINDMC_FOR_TARGET='$(WINDMC)'
14601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14602 $as_echo "host tool" >&6; }
14603   else
14604     # We need a cross tool
14605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14606 $as_echo "pre-installed" >&6; }
14607   fi
14608 fi
14609
14610
14611
14612
14613
14614 # Certain tools may need extra flags.
14615 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14616 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14617 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14618
14619 # When building target libraries, except in a Canadian cross, we use
14620 # the same toolchain as the compiler we just built.
14621 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14622 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14623 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14624 if test $host = $build; then
14625   case " $configdirs " in
14626     *" gcc "*)
14627       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14628       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14629       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14630       ;;
14631   esac
14632 fi
14633
14634
14635
14636
14637
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14639 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14640 # Check whether --enable-maintainer-mode was given.
14641 if test "${enable_maintainer_mode+set}" = set; then :
14642   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14643 else
14644   USE_MAINTAINER_MODE=no
14645 fi
14646
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14648 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14649
14650
14651 if test "$USE_MAINTAINER_MODE" = yes; then
14652   MAINTAINER_MODE_TRUE=
14653   MAINTAINER_MODE_FALSE='#'
14654 else
14655   MAINTAINER_MODE_TRUE='#'
14656   MAINTAINER_MODE_FALSE=
14657 fi
14658 MAINT=$MAINTAINER_MODE_TRUE
14659
14660 # ---------------------
14661 # GCC bootstrap support
14662 # ---------------------
14663
14664 # Stage specific cflags for build.
14665 stage1_cflags="-g"
14666 case $build in
14667   vax-*-*)
14668     case ${GCC} in
14669       yes) stage1_cflags="-g -Wa,-J" ;;
14670       *) stage1_cflags="-g -J" ;;
14671     esac ;;
14672 esac
14673
14674
14675
14676 # Enable --enable-checking in stage1 of the compiler.
14677 # Check whether --enable-stage1-checking was given.
14678 if test "${enable_stage1_checking+set}" = set; then :
14679   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14680 else
14681   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14682   # For --disable-checking or implicit --enable-checking=release, avoid
14683   # setting --enable-checking=gc in the default stage1 checking for LTO
14684   # bootstraps.  See PR62077.
14685   case $BUILD_CONFIG in
14686     *lto*)
14687       stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14688     *)
14689       stage1_checking=--enable-checking=yes,types;;
14690   esac
14691   if test "x$enable_checking" = x && \
14692      test -d ${srcdir}/gcc && \
14693      test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14694     stage1_checking=--enable-checking=yes,types,extra
14695   fi
14696 else
14697   stage1_checking=--enable-checking=$enable_checking,types
14698 fi
14699 fi
14700
14701
14702
14703 # Enable -Werror in bootstrap stage2 and later.
14704 # Check whether --enable-werror was given.
14705 if test "${enable_werror+set}" = set; then :
14706   enableval=$enable_werror;
14707 else
14708   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14709   enable_werror=yes
14710 else
14711   enable_werror=no
14712 fi
14713 fi
14714
14715 case ${enable_werror} in
14716   yes) stage2_werror_flag="--enable-werror-always" ;;
14717   *) stage2_werror_flag="" ;;
14718 esac
14719
14720
14721 # Enable --enable-host-shared.
14722 # Check whether --enable-host-shared was given.
14723 if test "${enable_host_shared+set}" = set; then :
14724   enableval=$enable_host_shared; host_shared=$enableval
14725 else
14726   host_shared=no
14727 fi
14728
14729
14730
14731 # PR jit/64780: Require the user to explicitly specify
14732 # --enable-host-shared if the jit is enabled, hinting
14733 # that they might want to do a separate configure/build of
14734 # the jit, to avoid users from slowing down the rest of the
14735 # compiler by enabling the jit.
14736 if test ${host_shared} = "no" ; then
14737   case "${enable_languages}" in
14738     *jit*)
14739       as_fn_error "
14740 Enabling language \"jit\" requires --enable-host-shared.
14741
14742 --enable-host-shared typically slows the rest of the compiler down by
14743 a few %, so you must explicitly enable it.
14744
14745 If you want to build both the jit and the regular compiler, it is often
14746 best to do this via two separate configure/builds, in separate
14747 directories, to avoid imposing the performance cost of
14748 --enable-host-shared on the regular compiler." "$LINENO" 5
14749       ;;
14750     *)
14751       ;;
14752   esac
14753 fi
14754
14755 # Specify what files to not compare during bootstrap.
14756
14757 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14758 case "$target" in
14759   hppa*64*-*-hpux*) ;;
14760   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14761   powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14762 esac
14763
14764
14765 ac_config_files="$ac_config_files Makefile"
14766
14767 cat >confcache <<\_ACEOF
14768 # This file is a shell script that caches the results of configure
14769 # tests run on this system so they can be shared between configure
14770 # scripts and configure runs, see configure's option --config-cache.
14771 # It is not useful on other systems.  If it contains results you don't
14772 # want to keep, you may remove or edit it.
14773 #
14774 # config.status only pays attention to the cache file if you give it
14775 # the --recheck option to rerun configure.
14776 #
14777 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14778 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14779 # following values.
14780
14781 _ACEOF
14782
14783 # The following way of writing the cache mishandles newlines in values,
14784 # but we know of no workaround that is simple, portable, and efficient.
14785 # So, we kill variables containing newlines.
14786 # Ultrix sh set writes to stderr and can't be redirected directly,
14787 # and sets the high bit in the cache file unless we assign to the vars.
14788 (
14789   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14790     eval ac_val=\$$ac_var
14791     case $ac_val in #(
14792     *${as_nl}*)
14793       case $ac_var in #(
14794       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14795 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14796       esac
14797       case $ac_var in #(
14798       _ | IFS | as_nl) ;; #(
14799       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14800       *) { eval $ac_var=; unset $ac_var;} ;;
14801       esac ;;
14802     esac
14803   done
14804
14805   (set) 2>&1 |
14806     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14807     *${as_nl}ac_space=\ *)
14808       # `set' does not quote correctly, so add quotes: double-quote
14809       # substitution turns \\\\ into \\, and sed turns \\ into \.
14810       sed -n \
14811         "s/'/'\\\\''/g;
14812           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14813       ;; #(
14814     *)
14815       # `set' quotes correctly as required by POSIX, so do not add quotes.
14816       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14817       ;;
14818     esac |
14819     sort
14820 ) |
14821   sed '
14822      /^ac_cv_env_/b end
14823      t clear
14824      :clear
14825      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14826      t end
14827      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14828      :end' >>confcache
14829 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14830   if test -w "$cache_file"; then
14831     test "x$cache_file" != "x/dev/null" &&
14832       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14833 $as_echo "$as_me: updating cache $cache_file" >&6;}
14834     cat confcache >$cache_file
14835   else
14836     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14837 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14838   fi
14839 fi
14840 rm -f confcache
14841
14842 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14843 # Let make expand exec_prefix.
14844 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14845
14846 # Transform confdefs.h into DEFS.
14847 # Protect against shell expansion while executing Makefile rules.
14848 # Protect against Makefile macro expansion.
14849 #
14850 # If the first sed substitution is executed (which looks for macros that
14851 # take arguments), then branch to the quote section.  Otherwise,
14852 # look for a macro that doesn't take arguments.
14853 ac_script='
14854 :mline
14855 /\\$/{
14856  N
14857  s,\\\n,,
14858  b mline
14859 }
14860 t clear
14861 :clear
14862 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
14863 t quote
14864 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
14865 t quote
14866 b any
14867 :quote
14868 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14869 s/\[/\\&/g
14870 s/\]/\\&/g
14871 s/\$/$$/g
14872 H
14873 :any
14874 ${
14875         g
14876         s/^\n//
14877         s/\n/ /g
14878         p
14879 }
14880 '
14881 DEFS=`sed -n "$ac_script" confdefs.h`
14882
14883
14884 ac_libobjs=
14885 ac_ltlibobjs=
14886 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14887   # 1. Remove the extension, and $U if already installed.
14888   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14889   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14890   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14891   #    will be set to the directory where LIBOBJS objects are built.
14892   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14893   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14894 done
14895 LIBOBJS=$ac_libobjs
14896
14897 LTLIBOBJS=$ac_ltlibobjs
14898
14899
14900
14901 : ${CONFIG_STATUS=./config.status}
14902 ac_write_fail=0
14903 ac_clean_files_save=$ac_clean_files
14904 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14906 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14907 as_write_fail=0
14908 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14909 #! $SHELL
14910 # Generated by $as_me.
14911 # Run this file to recreate the current configuration.
14912 # Compiler output produced by configure, useful for debugging
14913 # configure, is in config.log if it exists.
14914
14915 debug=false
14916 ac_cs_recheck=false
14917 ac_cs_silent=false
14918
14919 SHELL=\${CONFIG_SHELL-$SHELL}
14920 export SHELL
14921 _ASEOF
14922 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14923 ## -------------------- ##
14924 ## M4sh Initialization. ##
14925 ## -------------------- ##
14926
14927 # Be more Bourne compatible
14928 DUALCASE=1; export DUALCASE # for MKS sh
14929 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14930   emulate sh
14931   NULLCMD=:
14932   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14933   # is contrary to our usage.  Disable this feature.
14934   alias -g '${1+"$@"}'='"$@"'
14935   setopt NO_GLOB_SUBST
14936 else
14937   case `(set -o) 2>/dev/null` in #(
14938   *posix*) :
14939     set -o posix ;; #(
14940   *) :
14941      ;;
14942 esac
14943 fi
14944
14945
14946 as_nl='
14947 '
14948 export as_nl
14949 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14950 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14951 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14952 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14953 # Prefer a ksh shell builtin over an external printf program on Solaris,
14954 # but without wasting forks for bash or zsh.
14955 if test -z "$BASH_VERSION$ZSH_VERSION" \
14956     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14957   as_echo='print -r --'
14958   as_echo_n='print -rn --'
14959 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14960   as_echo='printf %s\n'
14961   as_echo_n='printf %s'
14962 else
14963   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14964     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14965     as_echo_n='/usr/ucb/echo -n'
14966   else
14967     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14968     as_echo_n_body='eval
14969       arg=$1;
14970       case $arg in #(
14971       *"$as_nl"*)
14972         expr "X$arg" : "X\\(.*\\)$as_nl";
14973         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14974       esac;
14975       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14976     '
14977     export as_echo_n_body
14978     as_echo_n='sh -c $as_echo_n_body as_echo'
14979   fi
14980   export as_echo_body
14981   as_echo='sh -c $as_echo_body as_echo'
14982 fi
14983
14984 # The user is always right.
14985 if test "${PATH_SEPARATOR+set}" != set; then
14986   PATH_SEPARATOR=:
14987   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14988     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14989       PATH_SEPARATOR=';'
14990   }
14991 fi
14992
14993
14994 # IFS
14995 # We need space, tab and new line, in precisely that order.  Quoting is
14996 # there to prevent editors from complaining about space-tab.
14997 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14998 # splitting by setting IFS to empty value.)
14999 IFS=" ""        $as_nl"
15000
15001 # Find who we are.  Look in the path if we contain no directory separator.
15002 case $0 in #((
15003   *[\\/]* ) as_myself=$0 ;;
15004   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15005 for as_dir in $PATH
15006 do
15007   IFS=$as_save_IFS
15008   test -z "$as_dir" && as_dir=.
15009     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15010   done
15011 IFS=$as_save_IFS
15012
15013      ;;
15014 esac
15015 # We did not find ourselves, most probably we were run as `sh COMMAND'
15016 # in which case we are not to be found in the path.
15017 if test "x$as_myself" = x; then
15018   as_myself=$0
15019 fi
15020 if test ! -f "$as_myself"; then
15021   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15022   exit 1
15023 fi
15024
15025 # Unset variables that we do not need and which cause bugs (e.g. in
15026 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15027 # suppresses any "Segmentation fault" message there.  '((' could
15028 # trigger a bug in pdksh 5.2.14.
15029 for as_var in BASH_ENV ENV MAIL MAILPATH
15030 do eval test x\${$as_var+set} = xset \
15031   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15032 done
15033 PS1='$ '
15034 PS2='> '
15035 PS4='+ '
15036
15037 # NLS nuisances.
15038 LC_ALL=C
15039 export LC_ALL
15040 LANGUAGE=C
15041 export LANGUAGE
15042
15043 # CDPATH.
15044 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15045
15046
15047 # as_fn_error ERROR [LINENO LOG_FD]
15048 # ---------------------------------
15049 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15050 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15051 # script with status $?, using 1 if that was 0.
15052 as_fn_error ()
15053 {
15054   as_status=$?; test $as_status -eq 0 && as_status=1
15055   if test "$3"; then
15056     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15057     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15058   fi
15059   $as_echo "$as_me: error: $1" >&2
15060   as_fn_exit $as_status
15061 } # as_fn_error
15062
15063
15064 # as_fn_set_status STATUS
15065 # -----------------------
15066 # Set $? to STATUS, without forking.
15067 as_fn_set_status ()
15068 {
15069   return $1
15070 } # as_fn_set_status
15071
15072 # as_fn_exit STATUS
15073 # -----------------
15074 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15075 as_fn_exit ()
15076 {
15077   set +e
15078   as_fn_set_status $1
15079   exit $1
15080 } # as_fn_exit
15081
15082 # as_fn_unset VAR
15083 # ---------------
15084 # Portably unset VAR.
15085 as_fn_unset ()
15086 {
15087   { eval $1=; unset $1;}
15088 }
15089 as_unset=as_fn_unset
15090 # as_fn_append VAR VALUE
15091 # ----------------------
15092 # Append the text in VALUE to the end of the definition contained in VAR. Take
15093 # advantage of any shell optimizations that allow amortized linear growth over
15094 # repeated appends, instead of the typical quadratic growth present in naive
15095 # implementations.
15096 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15097   eval 'as_fn_append ()
15098   {
15099     eval $1+=\$2
15100   }'
15101 else
15102   as_fn_append ()
15103   {
15104     eval $1=\$$1\$2
15105   }
15106 fi # as_fn_append
15107
15108 # as_fn_arith ARG...
15109 # ------------------
15110 # Perform arithmetic evaluation on the ARGs, and store the result in the
15111 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15112 # must be portable across $(()) and expr.
15113 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15114   eval 'as_fn_arith ()
15115   {
15116     as_val=$(( $* ))
15117   }'
15118 else
15119   as_fn_arith ()
15120   {
15121     as_val=`expr "$@" || test $? -eq 1`
15122   }
15123 fi # as_fn_arith
15124
15125
15126 if expr a : '\(a\)' >/dev/null 2>&1 &&
15127    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15128   as_expr=expr
15129 else
15130   as_expr=false
15131 fi
15132
15133 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15134   as_basename=basename
15135 else
15136   as_basename=false
15137 fi
15138
15139 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15140   as_dirname=dirname
15141 else
15142   as_dirname=false
15143 fi
15144
15145 as_me=`$as_basename -- "$0" ||
15146 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15147          X"$0" : 'X\(//\)$' \| \
15148          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15149 $as_echo X/"$0" |
15150     sed '/^.*\/\([^/][^/]*\)\/*$/{
15151             s//\1/
15152             q
15153           }
15154           /^X\/\(\/\/\)$/{
15155             s//\1/
15156             q
15157           }
15158           /^X\/\(\/\).*/{
15159             s//\1/
15160             q
15161           }
15162           s/.*/./; q'`
15163
15164 # Avoid depending upon Character Ranges.
15165 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15166 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15167 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15168 as_cr_digits='0123456789'
15169 as_cr_alnum=$as_cr_Letters$as_cr_digits
15170
15171 ECHO_C= ECHO_N= ECHO_T=
15172 case `echo -n x` in #(((((
15173 -n*)
15174   case `echo 'xy\c'` in
15175   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15176   xy)  ECHO_C='\c';;
15177   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15178        ECHO_T=' ';;
15179   esac;;
15180 *)
15181   ECHO_N='-n';;
15182 esac
15183
15184 rm -f conf$$ conf$$.exe conf$$.file
15185 if test -d conf$$.dir; then
15186   rm -f conf$$.dir/conf$$.file
15187 else
15188   rm -f conf$$.dir
15189   mkdir conf$$.dir 2>/dev/null
15190 fi
15191 if (echo >conf$$.file) 2>/dev/null; then
15192   if ln -s conf$$.file conf$$ 2>/dev/null; then
15193     as_ln_s='ln -s'
15194     # ... but there are two gotchas:
15195     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15196     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15197     # In both cases, we have to default to `cp -p'.
15198     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15199       as_ln_s='cp -p'
15200   elif ln conf$$.file conf$$ 2>/dev/null; then
15201     as_ln_s=ln
15202   else
15203     as_ln_s='cp -p'
15204   fi
15205 else
15206   as_ln_s='cp -p'
15207 fi
15208 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15209 rmdir conf$$.dir 2>/dev/null
15210
15211
15212 # as_fn_mkdir_p
15213 # -------------
15214 # Create "$as_dir" as a directory, including parents if necessary.
15215 as_fn_mkdir_p ()
15216 {
15217
15218   case $as_dir in #(
15219   -*) as_dir=./$as_dir;;
15220   esac
15221   test -d "$as_dir" || eval $as_mkdir_p || {
15222     as_dirs=
15223     while :; do
15224       case $as_dir in #(
15225       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15226       *) as_qdir=$as_dir;;
15227       esac
15228       as_dirs="'$as_qdir' $as_dirs"
15229       as_dir=`$as_dirname -- "$as_dir" ||
15230 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15231          X"$as_dir" : 'X\(//\)[^/]' \| \
15232          X"$as_dir" : 'X\(//\)$' \| \
15233          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15234 $as_echo X"$as_dir" |
15235     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15236             s//\1/
15237             q
15238           }
15239           /^X\(\/\/\)[^/].*/{
15240             s//\1/
15241             q
15242           }
15243           /^X\(\/\/\)$/{
15244             s//\1/
15245             q
15246           }
15247           /^X\(\/\).*/{
15248             s//\1/
15249             q
15250           }
15251           s/.*/./; q'`
15252       test -d "$as_dir" && break
15253     done
15254     test -z "$as_dirs" || eval "mkdir $as_dirs"
15255   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15256
15257
15258 } # as_fn_mkdir_p
15259 if mkdir -p . 2>/dev/null; then
15260   as_mkdir_p='mkdir -p "$as_dir"'
15261 else
15262   test -d ./-p && rmdir ./-p
15263   as_mkdir_p=false
15264 fi
15265
15266 if test -x / >/dev/null 2>&1; then
15267   as_test_x='test -x'
15268 else
15269   if ls -dL / >/dev/null 2>&1; then
15270     as_ls_L_option=L
15271   else
15272     as_ls_L_option=
15273   fi
15274   as_test_x='
15275     eval sh -c '\''
15276       if test -d "$1"; then
15277         test -d "$1/.";
15278       else
15279         case $1 in #(
15280         -*)set "./$1";;
15281         esac;
15282         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15283         ???[sx]*):;;*)false;;esac;fi
15284     '\'' sh
15285   '
15286 fi
15287 as_executable_p=$as_test_x
15288
15289 # Sed expression to map a string onto a valid CPP name.
15290 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15291
15292 # Sed expression to map a string onto a valid variable name.
15293 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15294
15295
15296 exec 6>&1
15297 ## ----------------------------------- ##
15298 ## Main body of $CONFIG_STATUS script. ##
15299 ## ----------------------------------- ##
15300 _ASEOF
15301 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15302
15303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15304 # Save the log message, to keep $0 and so on meaningful, and to
15305 # report actual input values of CONFIG_FILES etc. instead of their
15306 # values after options handling.
15307 ac_log="
15308 This file was extended by $as_me, which was
15309 generated by GNU Autoconf 2.64.  Invocation command line was
15310
15311   CONFIG_FILES    = $CONFIG_FILES
15312   CONFIG_HEADERS  = $CONFIG_HEADERS
15313   CONFIG_LINKS    = $CONFIG_LINKS
15314   CONFIG_COMMANDS = $CONFIG_COMMANDS
15315   $ $0 $@
15316
15317 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15318 "
15319
15320 _ACEOF
15321
15322 case $ac_config_files in *"
15323 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15324 esac
15325
15326
15327
15328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15329 # Files that config.status was made for.
15330 config_files="$ac_config_files"
15331
15332 _ACEOF
15333
15334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15335 ac_cs_usage="\
15336 \`$as_me' instantiates files and other configuration actions
15337 from templates according to the current configuration.  Unless the files
15338 and actions are specified as TAGs, all are instantiated by default.
15339
15340 Usage: $0 [OPTION]... [TAG]...
15341
15342   -h, --help       print this help, then exit
15343   -V, --version    print version number and configuration settings, then exit
15344   -q, --quiet, --silent
15345                    do not print progress messages
15346   -d, --debug      don't remove temporary files
15347       --recheck    update $as_me by reconfiguring in the same conditions
15348       --file=FILE[:TEMPLATE]
15349                    instantiate the configuration file FILE
15350
15351 Configuration files:
15352 $config_files
15353
15354 Report bugs to the package provider."
15355
15356 _ACEOF
15357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15358 ac_cs_version="\\
15359 config.status
15360 configured by $0, generated by GNU Autoconf 2.64,
15361   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15362
15363 Copyright (C) 2009 Free Software Foundation, Inc.
15364 This config.status script is free software; the Free Software Foundation
15365 gives unlimited permission to copy, distribute and modify it."
15366
15367 ac_pwd='$ac_pwd'
15368 srcdir='$srcdir'
15369 INSTALL='$INSTALL'
15370 AWK='$AWK'
15371 test -n "\$AWK" || AWK=awk
15372 _ACEOF
15373
15374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15375 # The default lists apply if the user does not specify any file.
15376 ac_need_defaults=:
15377 while test $# != 0
15378 do
15379   case $1 in
15380   --*=*)
15381     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15382     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15383     ac_shift=:
15384     ;;
15385   *)
15386     ac_option=$1
15387     ac_optarg=$2
15388     ac_shift=shift
15389     ;;
15390   esac
15391
15392   case $ac_option in
15393   # Handling of the options.
15394   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15395     ac_cs_recheck=: ;;
15396   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15397     $as_echo "$ac_cs_version"; exit ;;
15398   --debug | --debu | --deb | --de | --d | -d )
15399     debug=: ;;
15400   --file | --fil | --fi | --f )
15401     $ac_shift
15402     case $ac_optarg in
15403     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15404     esac
15405     as_fn_append CONFIG_FILES " '$ac_optarg'"
15406     ac_need_defaults=false;;
15407   --he | --h |  --help | --hel | -h )
15408     $as_echo "$ac_cs_usage"; exit ;;
15409   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15410   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15411     ac_cs_silent=: ;;
15412
15413   # This is an error.
15414   -*) as_fn_error "unrecognized option: \`$1'
15415 Try \`$0 --help' for more information." ;;
15416
15417   *) as_fn_append ac_config_targets " $1"
15418      ac_need_defaults=false ;;
15419
15420   esac
15421   shift
15422 done
15423
15424 ac_configure_extra_args=
15425
15426 if $ac_cs_silent; then
15427   exec 6>/dev/null
15428   ac_configure_extra_args="$ac_configure_extra_args --silent"
15429 fi
15430
15431 _ACEOF
15432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15433 if \$ac_cs_recheck; then
15434   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15435   shift
15436   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15437   CONFIG_SHELL='$SHELL'
15438   export CONFIG_SHELL
15439   exec "\$@"
15440 fi
15441
15442 _ACEOF
15443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15444 exec 5>>config.log
15445 {
15446   echo
15447   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15448 ## Running $as_me. ##
15449 _ASBOX
15450   $as_echo "$ac_log"
15451 } >&5
15452
15453 _ACEOF
15454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15455 #
15456 # INIT-COMMANDS
15457 #
15458 extrasub_build="$extrasub_build"
15459    extrasub_host="$extrasub_host"
15460    extrasub_target="$extrasub_target"
15461
15462 _ACEOF
15463
15464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15465
15466 # Handling of arguments.
15467 for ac_config_target in $ac_config_targets
15468 do
15469   case $ac_config_target in
15470     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15471
15472   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15473   esac
15474 done
15475
15476
15477 # If the user did not use the arguments to specify the items to instantiate,
15478 # then the envvar interface is used.  Set only those that are not.
15479 # We use the long form for the default assignment because of an extremely
15480 # bizarre bug on SunOS 4.1.3.
15481 if $ac_need_defaults; then
15482   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15483 fi
15484
15485 # Have a temporary directory for convenience.  Make it in the build tree
15486 # simply because there is no reason against having it here, and in addition,
15487 # creating and moving files from /tmp can sometimes cause problems.
15488 # Hook for its removal unless debugging.
15489 # Note that there is a small window in which the directory will not be cleaned:
15490 # after its creation but before its name has been assigned to `$tmp'.
15491 $debug ||
15492 {
15493   tmp=
15494   trap 'exit_status=$?
15495   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15496 ' 0
15497   trap 'as_fn_exit 1' 1 2 13 15
15498 }
15499 # Create a (secure) tmp directory for tmp files.
15500
15501 {
15502   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15503   test -n "$tmp" && test -d "$tmp"
15504 }  ||
15505 {
15506   tmp=./conf$$-$RANDOM
15507   (umask 077 && mkdir "$tmp")
15508 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15509
15510 # Set up the scripts for CONFIG_FILES section.
15511 # No need to generate them if there are no CONFIG_FILES.
15512 # This happens for instance with `./config.status config.h'.
15513 if test -n "$CONFIG_FILES"; then
15514
15515 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15516   ac_cs_awk_getline=:
15517   ac_cs_awk_pipe_init=
15518   ac_cs_awk_read_file='
15519       while ((getline aline < (F[key])) > 0)
15520         print(aline)
15521       close(F[key])'
15522   ac_cs_awk_pipe_fini=
15523 else
15524   ac_cs_awk_getline=false
15525   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15526   ac_cs_awk_read_file='
15527       print "|#_!!_#|"
15528       print "cat " F[key] " &&"
15529       '$ac_cs_awk_pipe_init
15530   # The final `:' finishes the AND list.
15531   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15532 fi
15533 ac_cr=`echo X | tr X '\015'`
15534 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15535 # But we know of no other shell where ac_cr would be empty at this
15536 # point, so we can use a bashism as a fallback.
15537 if test "x$ac_cr" = x; then
15538   eval ac_cr=\$\'\\r\'
15539 fi
15540 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15541 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15542   ac_cs_awk_cr='\r'
15543 else
15544   ac_cs_awk_cr=$ac_cr
15545 fi
15546
15547 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15548 _ACEOF
15549
15550 # Create commands to substitute file output variables.
15551 {
15552   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15553   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15554   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15555   echo "_ACAWK" &&
15556   echo "_ACEOF"
15557 } >conf$$files.sh &&
15558 . ./conf$$files.sh ||
15559   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15560 rm -f conf$$files.sh
15561
15562 {
15563   echo "cat >conf$$subs.awk <<_ACEOF" &&
15564   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15565   echo "_ACEOF"
15566 } >conf$$subs.sh ||
15567   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15568 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15569 ac_delim='%!_!# '
15570 for ac_last_try in false false false false false :; do
15571   . ./conf$$subs.sh ||
15572     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15573
15574   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15575   if test $ac_delim_n = $ac_delim_num; then
15576     break
15577   elif $ac_last_try; then
15578     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15579   else
15580     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15581   fi
15582 done
15583 rm -f conf$$subs.sh
15584
15585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15586 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15587 _ACEOF
15588 sed -n '
15589 h
15590 s/^/S["/; s/!.*/"]=/
15591 p
15592 g
15593 s/^[^!]*!//
15594 :repl
15595 t repl
15596 s/'"$ac_delim"'$//
15597 t delim
15598 :nl
15599 h
15600 s/\(.\{148\}\).*/\1/
15601 t more1
15602 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15603 p
15604 n
15605 b repl
15606 :more1
15607 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15608 p
15609 g
15610 s/.\{148\}//
15611 t nl
15612 :delim
15613 h
15614 s/\(.\{148\}\).*/\1/
15615 t more2
15616 s/["\\]/\\&/g; s/^/"/; s/$/"/
15617 p
15618 b
15619 :more2
15620 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15621 p
15622 g
15623 s/.\{148\}//
15624 t delim
15625 ' <conf$$subs.awk | sed '
15626 /^[^""]/{
15627   N
15628   s/\n//
15629 }
15630 ' >>$CONFIG_STATUS || ac_write_fail=1
15631 rm -f conf$$subs.awk
15632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15633 _ACAWK
15634 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15635   for (key in S) S_is_set[key] = 1
15636   FS = "\a"
15637   \$ac_cs_awk_pipe_init
15638 }
15639 {
15640   line = $ 0
15641   nfields = split(line, field, "@")
15642   substed = 0
15643   len = length(field[1])
15644   for (i = 2; i < nfields; i++) {
15645     key = field[i]
15646     keylen = length(key)
15647     if (S_is_set[key]) {
15648       value = S[key]
15649       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15650       len += length(value) + length(field[++i])
15651       substed = 1
15652     } else
15653       len += 1 + keylen
15654   }
15655   if (nfields == 3 && !substed) {
15656     key = field[2]
15657     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15658       \$ac_cs_awk_read_file
15659       next
15660     }
15661   }
15662   print line
15663 }
15664 \$ac_cs_awk_pipe_fini
15665 _ACAWK
15666 _ACEOF
15667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15668 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15669   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15670 else
15671   cat
15672 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15673   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15674 _ACEOF
15675
15676 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15677 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15678 # trailing colons and then remove the whole line if VPATH becomes empty
15679 # (actually we leave an empty line to preserve line numbers).
15680 if test "x$srcdir" = x.; then
15681   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15682 s/:*\$(srcdir):*/:/
15683 s/:*\${srcdir}:*/:/
15684 s/:*@srcdir@:*/:/
15685 s/^\([^=]*=[     ]*\):*/\1/
15686 s/:*$//
15687 s/^[^=]*=[       ]*$//
15688 }'
15689 fi
15690
15691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15692 fi # test -n "$CONFIG_FILES"
15693
15694
15695 eval set X "  :F $CONFIG_FILES      "
15696 shift
15697 for ac_tag
15698 do
15699   case $ac_tag in
15700   :[FHLC]) ac_mode=$ac_tag; continue;;
15701   esac
15702   case $ac_mode$ac_tag in
15703   :[FHL]*:*);;
15704   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15705   :[FH]-) ac_tag=-:-;;
15706   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15707   esac
15708   ac_save_IFS=$IFS
15709   IFS=:
15710   set x $ac_tag
15711   IFS=$ac_save_IFS
15712   shift
15713   ac_file=$1
15714   shift
15715
15716   case $ac_mode in
15717   :L) ac_source=$1;;
15718   :[FH])
15719     ac_file_inputs=
15720     for ac_f
15721     do
15722       case $ac_f in
15723       -) ac_f="$tmp/stdin";;
15724       *) # Look for the file first in the build tree, then in the source tree
15725          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15726          # because $ac_f cannot contain `:'.
15727          test -f "$ac_f" ||
15728            case $ac_f in
15729            [\\/$]*) false;;
15730            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15731            esac ||
15732            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15733       esac
15734       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15735       as_fn_append ac_file_inputs " '$ac_f'"
15736     done
15737
15738     # Let's still pretend it is `configure' which instantiates (i.e., don't
15739     # use $as_me), people would be surprised to read:
15740     #    /* config.h.  Generated by config.status.  */
15741     configure_input='Generated from '`
15742           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15743         `' by configure.'
15744     if test x"$ac_file" != x-; then
15745       configure_input="$ac_file.  $configure_input"
15746       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15747 $as_echo "$as_me: creating $ac_file" >&6;}
15748     fi
15749     # Neutralize special characters interpreted by sed in replacement strings.
15750     case $configure_input in #(
15751     *\&* | *\|* | *\\* )
15752        ac_sed_conf_input=`$as_echo "$configure_input" |
15753        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15754     *) ac_sed_conf_input=$configure_input;;
15755     esac
15756
15757     case $ac_tag in
15758     *:-:* | *:-) cat >"$tmp/stdin" \
15759       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15760     esac
15761     ;;
15762   esac
15763
15764   ac_dir=`$as_dirname -- "$ac_file" ||
15765 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15766          X"$ac_file" : 'X\(//\)[^/]' \| \
15767          X"$ac_file" : 'X\(//\)$' \| \
15768          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15769 $as_echo X"$ac_file" |
15770     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15771             s//\1/
15772             q
15773           }
15774           /^X\(\/\/\)[^/].*/{
15775             s//\1/
15776             q
15777           }
15778           /^X\(\/\/\)$/{
15779             s//\1/
15780             q
15781           }
15782           /^X\(\/\).*/{
15783             s//\1/
15784             q
15785           }
15786           s/.*/./; q'`
15787   as_dir="$ac_dir"; as_fn_mkdir_p
15788   ac_builddir=.
15789
15790 case "$ac_dir" in
15791 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15792 *)
15793   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15794   # A ".." for each directory in $ac_dir_suffix.
15795   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15796   case $ac_top_builddir_sub in
15797   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15798   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15799   esac ;;
15800 esac
15801 ac_abs_top_builddir=$ac_pwd
15802 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15803 # for backward compatibility:
15804 ac_top_builddir=$ac_top_build_prefix
15805
15806 case $srcdir in
15807   .)  # We are building in place.
15808     ac_srcdir=.
15809     ac_top_srcdir=$ac_top_builddir_sub
15810     ac_abs_top_srcdir=$ac_pwd ;;
15811   [\\/]* | ?:[\\/]* )  # Absolute name.
15812     ac_srcdir=$srcdir$ac_dir_suffix;
15813     ac_top_srcdir=$srcdir
15814     ac_abs_top_srcdir=$srcdir ;;
15815   *) # Relative name.
15816     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15817     ac_top_srcdir=$ac_top_build_prefix$srcdir
15818     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15819 esac
15820 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15821
15822
15823   case $ac_mode in
15824   :F)
15825   #
15826   # CONFIG_FILE
15827   #
15828
15829   case $INSTALL in
15830   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15831   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15832   esac
15833 _ACEOF
15834
15835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15836 # If the template does not know about datarootdir, expand it.
15837 # FIXME: This hack should be removed a few years after 2.60.
15838 ac_datarootdir_hack=; ac_datarootdir_seen=
15839 ac_sed_dataroot='
15840 /datarootdir/ {
15841   p
15842   q
15843 }
15844 /@datadir@/p
15845 /@docdir@/p
15846 /@infodir@/p
15847 /@localedir@/p
15848 /@mandir@/p'
15849 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15850 *datarootdir*) ac_datarootdir_seen=yes;;
15851 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15852   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15853 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15854 _ACEOF
15855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15856   ac_datarootdir_hack='
15857   s&@datadir@&$datadir&g
15858   s&@docdir@&$docdir&g
15859   s&@infodir@&$infodir&g
15860   s&@localedir@&$localedir&g
15861   s&@mandir@&$mandir&g
15862   s&\\\${datarootdir}&$datarootdir&g' ;;
15863 esac
15864 _ACEOF
15865
15866 # Neutralize VPATH when `$srcdir' = `.'.
15867 # Shell code in configure.ac might set extrasub.
15868 # FIXME: do we really want to maintain this feature?
15869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15870 ac_sed_extra="$ac_vpsub
15871 $extrasub
15872 _ACEOF
15873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15874 :t
15875 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15876 s|@configure_input@|$ac_sed_conf_input|;t t
15877 s&@top_builddir@&$ac_top_builddir_sub&;t t
15878 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15879 s&@srcdir@&$ac_srcdir&;t t
15880 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15881 s&@top_srcdir@&$ac_top_srcdir&;t t
15882 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15883 s&@builddir@&$ac_builddir&;t t
15884 s&@abs_builddir@&$ac_abs_builddir&;t t
15885 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15886 s&@INSTALL@&$ac_INSTALL&;t t
15887 $ac_datarootdir_hack
15888 "
15889 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15890 if $ac_cs_awk_getline; then
15891   $AWK -f "$tmp/subs.awk"
15892 else
15893   $AWK -f "$tmp/subs.awk" | $SHELL
15894 fi >$tmp/out \
15895   || as_fn_error "could not create $ac_file" "$LINENO" 5
15896
15897 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15898   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15899   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15900   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15901 which seems to be undefined.  Please make sure it is defined." >&5
15902 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15903 which seems to be undefined.  Please make sure it is defined." >&2;}
15904
15905   rm -f "$tmp/stdin"
15906   case $ac_file in
15907   -) cat "$tmp/out" && rm -f "$tmp/out";;
15908   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15909   esac \
15910   || as_fn_error "could not create $ac_file" "$LINENO" 5
15911  ;;
15912
15913
15914
15915   esac
15916
15917
15918   case $ac_file$ac_mode in
15919     "Makefile":F) sed "$extrasub_build" Makefile |
15920    sed "$extrasub_host" |
15921    sed "$extrasub_target" > mf$$
15922    mv -f mf$$ Makefile ;;
15923
15924   esac
15925 done # for ac_tag
15926
15927
15928 as_fn_exit 0
15929 _ACEOF
15930 ac_clean_files=$ac_clean_files_save
15931
15932 test $ac_write_fail = 0 ||
15933   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15934
15935
15936 # configure is writing to config.log, and then calls config.status.
15937 # config.status does its own redirection, appending to config.log.
15938 # Unfortunately, on DOS this fails, as config.log is still kept open
15939 # by configure, so config.status won't be able to write to it; its
15940 # output is simply discarded.  So we exec the FD to /dev/null,
15941 # effectively closing config.log, so it can be properly (re)opened and
15942 # appended to by config.status.  When coming back to configure, we
15943 # need to make the FD available again.
15944 if test "$no_create" != yes; then
15945   ac_cs_success=:
15946   ac_config_status_args=
15947   test "$silent" = yes &&
15948     ac_config_status_args="$ac_config_status_args --quiet"
15949   exec 5>/dev/null
15950   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15951   exec 5>>config.log
15952   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15953   # would make configure fail if this is the last instruction.
15954   $ac_cs_success || as_fn_exit $?
15955 fi
15956 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15957   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15958 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15959 fi
15960