Sync toplevel configure with gcc
[external/binutils.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 poststage1_ldflags
654 poststage1_libs
655 stage1_ldflags
656 stage1_libs
657 extra_isl_gmp_configure_flags
658 extra_mpc_mpfr_configure_flags
659 extra_mpc_gmp_configure_flags
660 extra_mpfr_configure_flags
661 gmpinc
662 gmplibs
663 do_compare
664 GNATMAKE
665 GNATBIND
666 ac_ct_CXX
667 CXXFLAGS
668 CXX
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
675 CC
676 EXTRA_CONFIGARGS_LIBJAVA
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_libquadmath
757 enable_libquadmath_support
758 enable_libada
759 enable_libssp
760 enable_libstdcxx
761 enable_liboffloadmic
762 enable_static_libjava
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_host_libstdcxx
776 with_stage1_libs
777 with_stage1_ldflags
778 with_boot_libs
779 with_boot_ldflags
780 with_isl
781 with_isl_include
782 with_isl_lib
783 enable_isl_version_check
784 enable_lto
785 enable_linker_plugin_configure_flags
786 enable_linker_plugin_flags
787 enable_stage1_languages
788 enable_objc_gc
789 with_build_sysroot
790 with_debug_prefix_map
791 with_build_config
792 enable_vtable_verify
793 enable_serial_configure
794 with_build_time_tools
795 enable_maintainer_mode
796 enable_stage1_checking
797 enable_werror
798 enable_host_shared
799 '
800       ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
808 CXX
809 CXXFLAGS
810 CCC
811 build_configargs
812 host_configargs
813 target_configargs
814 AR
815 AS
816 DLLTOOL
817 LD
818 LIPO
819 NM
820 RANLIB
821 STRIP
822 WINDRES
823 WINDMC
824 OBJCOPY
825 OBJDUMP
826 READELF
827 CC_FOR_TARGET
828 CXX_FOR_TARGET
829 GCC_FOR_TARGET
830 GCJ_FOR_TARGET
831 GFORTRAN_FOR_TARGET
832 GOC_FOR_TARGET
833 AR_FOR_TARGET
834 AS_FOR_TARGET
835 DLLTOOL_FOR_TARGET
836 LD_FOR_TARGET
837 LIPO_FOR_TARGET
838 NM_FOR_TARGET
839 OBJCOPY_FOR_TARGET
840 OBJDUMP_FOR_TARGET
841 RANLIB_FOR_TARGET
842 READELF_FOR_TARGET
843 STRIP_FOR_TARGET
844 WINDRES_FOR_TARGET
845 WINDMC_FOR_TARGET'
846
847
848 # Initialize some variables set by options.
849 ac_init_help=
850 ac_init_version=false
851 ac_unrecognized_opts=
852 ac_unrecognized_sep=
853 # The variables have the same names as the options, with
854 # dashes changed to underlines.
855 cache_file=/dev/null
856 exec_prefix=NONE
857 no_create=
858 no_recursion=
859 prefix=NONE
860 program_prefix=NONE
861 program_suffix=NONE
862 program_transform_name=s,x,x,
863 silent=
864 site=
865 srcdir=
866 verbose=
867 x_includes=NONE
868 x_libraries=NONE
869
870 # Installation directory options.
871 # These are left unexpanded so users can "make install exec_prefix=/foo"
872 # and all the variables that are supposed to be based on exec_prefix
873 # by default will actually change.
874 # Use braces instead of parens because sh, perl, etc. also accept them.
875 # (The list follows the same order as the GNU Coding Standards.)
876 bindir='${exec_prefix}/bin'
877 sbindir='${exec_prefix}/sbin'
878 libexecdir='${exec_prefix}/libexec'
879 datarootdir='${prefix}/share'
880 datadir='${datarootdir}'
881 sysconfdir='${prefix}/etc'
882 sharedstatedir='${prefix}/com'
883 localstatedir='${prefix}/var'
884 includedir='${prefix}/include'
885 oldincludedir='/usr/include'
886 docdir='${datarootdir}/doc/${PACKAGE}'
887 infodir='${datarootdir}/info'
888 htmldir='${docdir}'
889 dvidir='${docdir}'
890 pdfdir='${docdir}'
891 psdir='${docdir}'
892 libdir='${exec_prefix}/lib'
893 localedir='${datarootdir}/locale'
894 mandir='${datarootdir}/man'
895
896 ac_prev=
897 ac_dashdash=
898 for ac_option
899 do
900   # If the previous option needs an argument, assign it.
901   if test -n "$ac_prev"; then
902     eval $ac_prev=\$ac_option
903     ac_prev=
904     continue
905   fi
906
907   case $ac_option in
908   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909   *)    ac_optarg=yes ;;
910   esac
911
912   # Accept the important Cygnus configure options, so we can diagnose typos.
913
914   case $ac_dashdash$ac_option in
915   --)
916     ac_dashdash=yes ;;
917
918   -bindir | --bindir | --bindi | --bind | --bin | --bi)
919     ac_prev=bindir ;;
920   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921     bindir=$ac_optarg ;;
922
923   -build | --build | --buil | --bui | --bu)
924     ac_prev=build_alias ;;
925   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926     build_alias=$ac_optarg ;;
927
928   -cache-file | --cache-file | --cache-fil | --cache-fi \
929   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930     ac_prev=cache_file ;;
931   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933     cache_file=$ac_optarg ;;
934
935   --config-cache | -C)
936     cache_file=config.cache ;;
937
938   -datadir | --datadir | --datadi | --datad)
939     ac_prev=datadir ;;
940   -datadir=* | --datadir=* | --datadi=* | --datad=*)
941     datadir=$ac_optarg ;;
942
943   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944   | --dataroo | --dataro | --datar)
945     ac_prev=datarootdir ;;
946   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948     datarootdir=$ac_optarg ;;
949
950   -disable-* | --disable-*)
951     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952     # Reject names that are not valid shell variable names.
953     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954       as_fn_error "invalid feature name: $ac_useropt"
955     ac_useropt_orig=$ac_useropt
956     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957     case $ac_user_opts in
958       *"
959 "enable_$ac_useropt"
960 "*) ;;
961       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962          ac_unrecognized_sep=', ';;
963     esac
964     eval enable_$ac_useropt=no ;;
965
966   -docdir | --docdir | --docdi | --doc | --do)
967     ac_prev=docdir ;;
968   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969     docdir=$ac_optarg ;;
970
971   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972     ac_prev=dvidir ;;
973   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974     dvidir=$ac_optarg ;;
975
976   -enable-* | --enable-*)
977     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978     # Reject names that are not valid shell variable names.
979     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980       as_fn_error "invalid feature name: $ac_useropt"
981     ac_useropt_orig=$ac_useropt
982     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983     case $ac_user_opts in
984       *"
985 "enable_$ac_useropt"
986 "*) ;;
987       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988          ac_unrecognized_sep=', ';;
989     esac
990     eval enable_$ac_useropt=\$ac_optarg ;;
991
992   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994   | --exec | --exe | --ex)
995     ac_prev=exec_prefix ;;
996   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998   | --exec=* | --exe=* | --ex=*)
999     exec_prefix=$ac_optarg ;;
1000
1001   -gas | --gas | --ga | --g)
1002     # Obsolete; use --with-gas.
1003     with_gas=yes ;;
1004
1005   -help | --help | --hel | --he | -h)
1006     ac_init_help=long ;;
1007   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008     ac_init_help=recursive ;;
1009   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010     ac_init_help=short ;;
1011
1012   -host | --host | --hos | --ho)
1013     ac_prev=host_alias ;;
1014   -host=* | --host=* | --hos=* | --ho=*)
1015     host_alias=$ac_optarg ;;
1016
1017   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018     ac_prev=htmldir ;;
1019   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020   | --ht=*)
1021     htmldir=$ac_optarg ;;
1022
1023   -includedir | --includedir | --includedi | --included | --include \
1024   | --includ | --inclu | --incl | --inc)
1025     ac_prev=includedir ;;
1026   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027   | --includ=* | --inclu=* | --incl=* | --inc=*)
1028     includedir=$ac_optarg ;;
1029
1030   -infodir | --infodir | --infodi | --infod | --info | --inf)
1031     ac_prev=infodir ;;
1032   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033     infodir=$ac_optarg ;;
1034
1035   -libdir | --libdir | --libdi | --libd)
1036     ac_prev=libdir ;;
1037   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038     libdir=$ac_optarg ;;
1039
1040   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041   | --libexe | --libex | --libe)
1042     ac_prev=libexecdir ;;
1043   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044   | --libexe=* | --libex=* | --libe=*)
1045     libexecdir=$ac_optarg ;;
1046
1047   -localedir | --localedir | --localedi | --localed | --locale)
1048     ac_prev=localedir ;;
1049   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050     localedir=$ac_optarg ;;
1051
1052   -localstatedir | --localstatedir | --localstatedi | --localstated \
1053   | --localstate | --localstat | --localsta | --localst | --locals)
1054     ac_prev=localstatedir ;;
1055   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057     localstatedir=$ac_optarg ;;
1058
1059   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060     ac_prev=mandir ;;
1061   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062     mandir=$ac_optarg ;;
1063
1064   -nfp | --nfp | --nf)
1065     # Obsolete; use --without-fp.
1066     with_fp=no ;;
1067
1068   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069   | --no-cr | --no-c | -n)
1070     no_create=yes ;;
1071
1072   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074     no_recursion=yes ;;
1075
1076   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078   | --oldin | --oldi | --old | --ol | --o)
1079     ac_prev=oldincludedir ;;
1080   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083     oldincludedir=$ac_optarg ;;
1084
1085   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086     ac_prev=prefix ;;
1087   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088     prefix=$ac_optarg ;;
1089
1090   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091   | --program-pre | --program-pr | --program-p)
1092     ac_prev=program_prefix ;;
1093   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095     program_prefix=$ac_optarg ;;
1096
1097   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098   | --program-suf | --program-su | --program-s)
1099     ac_prev=program_suffix ;;
1100   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102     program_suffix=$ac_optarg ;;
1103
1104   -program-transform-name | --program-transform-name \
1105   | --program-transform-nam | --program-transform-na \
1106   | --program-transform-n | --program-transform- \
1107   | --program-transform | --program-transfor \
1108   | --program-transfo | --program-transf \
1109   | --program-trans | --program-tran \
1110   | --progr-tra | --program-tr | --program-t)
1111     ac_prev=program_transform_name ;;
1112   -program-transform-name=* | --program-transform-name=* \
1113   | --program-transform-nam=* | --program-transform-na=* \
1114   | --program-transform-n=* | --program-transform-=* \
1115   | --program-transform=* | --program-transfor=* \
1116   | --program-transfo=* | --program-transf=* \
1117   | --program-trans=* | --program-tran=* \
1118   | --progr-tra=* | --program-tr=* | --program-t=*)
1119     program_transform_name=$ac_optarg ;;
1120
1121   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122     ac_prev=pdfdir ;;
1123   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124     pdfdir=$ac_optarg ;;
1125
1126   -psdir | --psdir | --psdi | --psd | --ps)
1127     ac_prev=psdir ;;
1128   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129     psdir=$ac_optarg ;;
1130
1131   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132   | -silent | --silent | --silen | --sile | --sil)
1133     silent=yes ;;
1134
1135   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136     ac_prev=sbindir ;;
1137   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138   | --sbi=* | --sb=*)
1139     sbindir=$ac_optarg ;;
1140
1141   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143   | --sharedst | --shareds | --shared | --share | --shar \
1144   | --sha | --sh)
1145     ac_prev=sharedstatedir ;;
1146   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149   | --sha=* | --sh=*)
1150     sharedstatedir=$ac_optarg ;;
1151
1152   -site | --site | --sit)
1153     ac_prev=site ;;
1154   -site=* | --site=* | --sit=*)
1155     site=$ac_optarg ;;
1156
1157   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158     ac_prev=srcdir ;;
1159   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160     srcdir=$ac_optarg ;;
1161
1162   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163   | --syscon | --sysco | --sysc | --sys | --sy)
1164     ac_prev=sysconfdir ;;
1165   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167     sysconfdir=$ac_optarg ;;
1168
1169   -target | --target | --targe | --targ | --tar | --ta | --t)
1170     ac_prev=target_alias ;;
1171   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172     target_alias=$ac_optarg ;;
1173
1174   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175     verbose=yes ;;
1176
1177   -version | --version | --versio | --versi | --vers | -V)
1178     ac_init_version=: ;;
1179
1180   -with-* | --with-*)
1181     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184       as_fn_error "invalid package name: $ac_useropt"
1185     ac_useropt_orig=$ac_useropt
1186     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187     case $ac_user_opts in
1188       *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192          ac_unrecognized_sep=', ';;
1193     esac
1194     eval with_$ac_useropt=\$ac_optarg ;;
1195
1196   -without-* | --without-*)
1197     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198     # Reject names that are not valid shell variable names.
1199     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200       as_fn_error "invalid package name: $ac_useropt"
1201     ac_useropt_orig=$ac_useropt
1202     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203     case $ac_user_opts in
1204       *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208          ac_unrecognized_sep=', ';;
1209     esac
1210     eval with_$ac_useropt=no ;;
1211
1212   --x)
1213     # Obsolete; use --with-x.
1214     with_x=yes ;;
1215
1216   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217   | --x-incl | --x-inc | --x-in | --x-i)
1218     ac_prev=x_includes ;;
1219   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221     x_includes=$ac_optarg ;;
1222
1223   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225     ac_prev=x_libraries ;;
1226   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228     x_libraries=$ac_optarg ;;
1229
1230   -*) as_fn_error "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information."
1232     ;;
1233
1234   *=*)
1235     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236     # Reject names that are not valid shell variable names.
1237     case $ac_envvar in #(
1238       '' | [0-9]* | *[!_$as_cr_alnum]* )
1239       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1240     esac
1241     eval $ac_envvar=\$ac_optarg
1242     export $ac_envvar ;;
1243
1244   *)
1245     # FIXME: should be removed in autoconf 3.0.
1246     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250     ;;
1251
1252   esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257   as_fn_error "missing argument to $ac_option"
1258 fi
1259
1260 if test -n "$ac_unrecognized_opts"; then
1261   case $enable_option_checking in
1262     no) ;;
1263     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1264     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265   esac
1266 fi
1267
1268 # Check all directory arguments for consistency.
1269 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270                 datadir sysconfdir sharedstatedir localstatedir includedir \
1271                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272                 libdir localedir mandir
1273 do
1274   eval ac_val=\$$ac_var
1275   # Remove trailing slashes.
1276   case $ac_val in
1277     */ )
1278       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279       eval $ac_var=\$ac_val;;
1280   esac
1281   # Be sure to have absolute directory names.
1282   case $ac_val in
1283     [\\/$]* | ?:[\\/]* )  continue;;
1284     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285   esac
1286   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1287 done
1288
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1295
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298   if test "x$build_alias" = x; then
1299     cross_compiling=maybe
1300     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301     If a cross compiler is detected then cross compile mode will be used." >&2
1302   elif test "x$build_alias" != "x$host_alias"; then
1303     cross_compiling=yes
1304   fi
1305 fi
1306
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310 test "$silent" = yes && exec 6>/dev/null
1311
1312
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316   as_fn_error "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318   as_fn_error "pwd does not report name of working directory"
1319
1320
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323   ac_srcdir_defaulted=yes
1324   # Try the directory containing this script, then the parent directory.
1325   ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327          X"$as_myself" : 'X\(//\)[^/]' \| \
1328          X"$as_myself" : 'X\(//\)$' \| \
1329          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\/\)[^/].*/{
1336             s//\1/
1337             q
1338           }
1339           /^X\(\/\/\)$/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\).*/{
1344             s//\1/
1345             q
1346           }
1347           s/.*/./; q'`
1348   srcdir=$ac_confdir
1349   if test ! -r "$srcdir/$ac_unique_file"; then
1350     srcdir=..
1351   fi
1352 else
1353   ac_srcdir_defaulted=no
1354 fi
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1358 fi
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1362         pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365   srcdir=.
1366 fi
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 case $srcdir in
1374   *" "*)
1375     as_fn_error "path to source, $srcdir, contains spaces"
1376     ;;
1377 esac
1378 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1379
1380 for ac_var in $ac_precious_vars; do
1381   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382   eval ac_env_${ac_var}_value=\$${ac_var}
1383   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1386
1387 #
1388 # Report the --help message.
1389 #
1390 if test "$ac_init_help" = "long"; then
1391   # Omit some internal or obsolete options to make the list less imposing.
1392   # This message is too long to be a string in the A/UX 3.1 sh.
1393   cat <<_ACEOF
1394 \`configure' configures this package to adapt to many kinds of systems.
1395
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE.  See below for descriptions of some of the useful variables.
1400
1401 Defaults for the options are specified in brackets.
1402
1403 Configuration:
1404   -h, --help              display this help and exit
1405       --help=short        display options specific to this package
1406       --help=recursive    display the short help of all the included packages
1407   -V, --version           display version information and exit
1408   -q, --quiet, --silent   do not print \`checking...' messages
1409       --cache-file=FILE   cache test results in FILE [disabled]
1410   -C, --config-cache      alias for \`--cache-file=config.cache'
1411   -n, --no-create         do not create output files
1412       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1413
1414 Installation directories:
1415   --prefix=PREFIX         install architecture-independent files in PREFIX
1416                           [$ac_default_prefix]
1417   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1418                           [PREFIX]
1419
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1424
1425 For better control, use the options below.
1426
1427 Fine tuning of the installation directories:
1428   --bindir=DIR            user executables [EPREFIX/bin]
1429   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1430   --libexecdir=DIR        program executables [EPREFIX/libexec]
1431   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1432   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1433   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1434   --libdir=DIR            object code libraries [EPREFIX/lib]
1435   --includedir=DIR        C header files [PREFIX/include]
1436   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1437   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1438   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1439   --infodir=DIR           info documentation [DATAROOTDIR/info]
1440   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1441   --mandir=DIR            man documentation [DATAROOTDIR/man]
1442   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1443   --htmldir=DIR           html documentation [DOCDIR]
1444   --dvidir=DIR            dvi documentation [DOCDIR]
1445   --pdfdir=DIR            pdf documentation [DOCDIR]
1446   --psdir=DIR             ps documentation [DOCDIR]
1447 _ACEOF
1448
1449   cat <<\_ACEOF
1450
1451 Program names:
1452   --program-prefix=PREFIX            prepend PREFIX to installed program names
1453   --program-suffix=SUFFIX            append SUFFIX to installed program names
1454   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1455
1456 System types:
1457   --build=BUILD     configure for building on BUILD [guessed]
1458   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1459   --target=TARGET   configure for building compilers for TARGET [HOST]
1460 _ACEOF
1461 fi
1462
1463 if test -n "$ac_init_help"; then
1464
1465   cat <<\_ACEOF
1466
1467 Optional Features:
1468   --disable-option-checking  ignore unrecognized --enable/--with options
1469   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1470   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1471   --enable-as-accelerator-for=ARG
1472                           build as offload target compiler. Specify offload
1473                           host triple by ARG
1474   --enable-offload-targets=LIST
1475                           enable offloading to devices from comma-separated
1476                           LIST of TARGET[=DIR]. Use optional path to find
1477                           offload target compiler during the build
1478   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1479   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1480   --disable-libquadmath   do not build libquadmath directory
1481   --disable-libquadmath-support
1482                           disable libquadmath support for Fortran
1483   --enable-libada         build libada directory
1484   --enable-libssp         build libssp directory
1485   --disable-libstdcxx     do not build libstdc++-v3 directory
1486   --enable-liboffloadmic=ARG
1487                           build liboffloadmic [ARG={no,host,target}]
1488   --enable-static-libjava[=ARG]
1489                           build static libjava [default=no]
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-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1544                           linking with PPL
1545   --with-stage1-libs=LIBS libraries for stage1
1546   --with-stage1-ldflags=FLAGS
1547                           linker flags for stage1
1548   --with-boot-libs=LIBS   libraries for stage2 and later
1549   --with-boot-ldflags=FLAGS
1550                           linker flags for stage2 and later
1551   --with-isl=PATH         Specify prefix directory for the installed ISL
1552                           package. Equivalent to
1553                           --with-isl-include=PATH/include plus
1554                           --with-isl-lib=PATH/lib
1555   --with-isl-include=PATH Specify directory for installed ISL include files
1556   --with-isl-lib=PATH     Specify the directory for the installed ISL library
1557   --with-build-sysroot=SYSROOT
1558                           use sysroot as the system root during the build
1559   --with-debug-prefix-map='A=B C=D ...'
1560                           map A to B, C to D ... in debug information
1561   --with-build-config='NAME NAME2...'
1562                           use config/NAME.mk build configuration
1563   --with-build-time-tools=PATH
1564                           use given path to find target tools during the build
1565
1566 Some influential environment variables:
1567   CC          C compiler command
1568   CFLAGS      C compiler flags
1569   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1570               nonstandard directory <lib dir>
1571   LIBS        libraries to pass to the linker, e.g. -l<library>
1572   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1573               you have headers in a nonstandard directory <include dir>
1574   CXX         C++ compiler command
1575   CXXFLAGS    C++ compiler flags
1576   build_configargs
1577               additional configure arguments for build directories
1578   host_configargs
1579               additional configure arguments for host directories
1580   target_configargs
1581               additional configure arguments for target directories
1582   AR          AR for the host
1583   AS          AS for the host
1584   DLLTOOL     DLLTOOL for the host
1585   LD          LD for the host
1586   LIPO        LIPO for the host
1587   NM          NM for the host
1588   RANLIB      RANLIB for the host
1589   STRIP       STRIP for the host
1590   WINDRES     WINDRES for the host
1591   WINDMC      WINDMC for the host
1592   OBJCOPY     OBJCOPY for the host
1593   OBJDUMP     OBJDUMP for the host
1594   READELF     READELF for the host
1595   CC_FOR_TARGET
1596               CC for the target
1597   CXX_FOR_TARGET
1598               CXX for the target
1599   GCC_FOR_TARGET
1600               GCC for the target
1601   GCJ_FOR_TARGET
1602               GCJ for the target
1603   GFORTRAN_FOR_TARGET
1604               GFORTRAN for the target
1605   GOC_FOR_TARGET
1606               GOC for the target
1607   AR_FOR_TARGET
1608               AR for the target
1609   AS_FOR_TARGET
1610               AS for the target
1611   DLLTOOL_FOR_TARGET
1612               DLLTOOL for the target
1613   LD_FOR_TARGET
1614               LD for the target
1615   LIPO_FOR_TARGET
1616               LIPO for the target
1617   NM_FOR_TARGET
1618               NM for the target
1619   OBJCOPY_FOR_TARGET
1620               OBJCOPY for the target
1621   OBJDUMP_FOR_TARGET
1622               OBJDUMP for the target
1623   RANLIB_FOR_TARGET
1624               RANLIB for the target
1625   READELF_FOR_TARGET
1626               READELF for the target
1627   STRIP_FOR_TARGET
1628               STRIP for the target
1629   WINDRES_FOR_TARGET
1630               WINDRES for the target
1631   WINDMC_FOR_TARGET
1632               WINDMC for the target
1633
1634 Use these variables to override the choices made by `configure' or to help
1635 it to find libraries and programs with nonstandard names/locations.
1636
1637 Report bugs to the package provider.
1638 _ACEOF
1639 ac_status=$?
1640 fi
1641
1642 if test "$ac_init_help" = "recursive"; then
1643   # If there are subdirs, report their specific --help.
1644   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1645     test -d "$ac_dir" ||
1646       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1647       continue
1648     ac_builddir=.
1649
1650 case "$ac_dir" in
1651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 *)
1653   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1654   # A ".." for each directory in $ac_dir_suffix.
1655   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1656   case $ac_top_builddir_sub in
1657   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1659   esac ;;
1660 esac
1661 ac_abs_top_builddir=$ac_pwd
1662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1663 # for backward compatibility:
1664 ac_top_builddir=$ac_top_build_prefix
1665
1666 case $srcdir in
1667   .)  # We are building in place.
1668     ac_srcdir=.
1669     ac_top_srcdir=$ac_top_builddir_sub
1670     ac_abs_top_srcdir=$ac_pwd ;;
1671   [\\/]* | ?:[\\/]* )  # Absolute name.
1672     ac_srcdir=$srcdir$ac_dir_suffix;
1673     ac_top_srcdir=$srcdir
1674     ac_abs_top_srcdir=$srcdir ;;
1675   *) # Relative name.
1676     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1677     ac_top_srcdir=$ac_top_build_prefix$srcdir
1678     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1679 esac
1680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1681
1682     cd "$ac_dir" || { ac_status=$?; continue; }
1683     # Check for guested configure.
1684     if test -f "$ac_srcdir/configure.gnu"; then
1685       echo &&
1686       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1687     elif test -f "$ac_srcdir/configure"; then
1688       echo &&
1689       $SHELL "$ac_srcdir/configure" --help=recursive
1690     else
1691       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1692     fi || ac_status=$?
1693     cd "$ac_pwd" || { ac_status=$?; break; }
1694   done
1695 fi
1696
1697 test -n "$ac_init_help" && exit $ac_status
1698 if $ac_init_version; then
1699   cat <<\_ACEOF
1700 configure
1701 generated by GNU Autoconf 2.64
1702
1703 Copyright (C) 2009 Free Software Foundation, Inc.
1704 This configure script is free software; the Free Software Foundation
1705 gives unlimited permission to copy, distribute and modify it.
1706 _ACEOF
1707   exit
1708 fi
1709
1710 ## ------------------------ ##
1711 ## Autoconf initialization. ##
1712 ## ------------------------ ##
1713
1714 # ac_fn_c_try_compile LINENO
1715 # --------------------------
1716 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1717 ac_fn_c_try_compile ()
1718 {
1719   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720   rm -f conftest.$ac_objext
1721   if { { ac_try="$ac_compile"
1722 case "(($ac_try" in
1723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724   *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728   (eval "$ac_compile") 2>conftest.err
1729   ac_status=$?
1730   if test -s conftest.err; then
1731     grep -v '^ *+' conftest.err >conftest.er1
1732     cat conftest.er1 >&5
1733     mv -f conftest.er1 conftest.err
1734   fi
1735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736   test $ac_status = 0; } && {
1737          test -z "$ac_c_werror_flag" ||
1738          test ! -s conftest.err
1739        } && test -s conftest.$ac_objext; then :
1740   ac_retval=0
1741 else
1742   $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1744
1745         ac_retval=1
1746 fi
1747   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748   return $ac_retval
1749
1750 } # ac_fn_c_try_compile
1751
1752 # ac_fn_cxx_try_compile LINENO
1753 # ----------------------------
1754 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1755 ac_fn_cxx_try_compile ()
1756 {
1757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758   rm -f conftest.$ac_objext
1759   if { { ac_try="$ac_compile"
1760 case "(($ac_try" in
1761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762   *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766   (eval "$ac_compile") 2>conftest.err
1767   ac_status=$?
1768   if test -s conftest.err; then
1769     grep -v '^ *+' conftest.err >conftest.er1
1770     cat conftest.er1 >&5
1771     mv -f conftest.er1 conftest.err
1772   fi
1773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774   test $ac_status = 0; } && {
1775          test -z "$ac_cxx_werror_flag" ||
1776          test ! -s conftest.err
1777        } && test -s conftest.$ac_objext; then :
1778   ac_retval=0
1779 else
1780   $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1782
1783         ac_retval=1
1784 fi
1785   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786   return $ac_retval
1787
1788 } # ac_fn_cxx_try_compile
1789
1790 # ac_fn_cxx_try_link LINENO
1791 # -------------------------
1792 # Try to link conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_cxx_try_link ()
1794 {
1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796   rm -f conftest.$ac_objext conftest$ac_exeext
1797   if { { ac_try="$ac_link"
1798 case "(($ac_try" in
1799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800   *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804   (eval "$ac_link") 2>conftest.err
1805   ac_status=$?
1806   if test -s conftest.err; then
1807     grep -v '^ *+' conftest.err >conftest.er1
1808     cat conftest.er1 >&5
1809     mv -f conftest.er1 conftest.err
1810   fi
1811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812   test $ac_status = 0; } && {
1813          test -z "$ac_cxx_werror_flag" ||
1814          test ! -s conftest.err
1815        } && test -s conftest$ac_exeext && {
1816          test "$cross_compiling" = yes ||
1817          $as_test_x conftest$ac_exeext
1818        }; then :
1819   ac_retval=0
1820 else
1821   $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1823
1824         ac_retval=1
1825 fi
1826   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1827   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1828   # interfere with the next link command; also delete a directory that is
1829   # left behind by Apple's compiler.  We do this before executing the actions.
1830   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832   return $ac_retval
1833
1834 } # ac_fn_cxx_try_link
1835
1836 # ac_fn_c_try_link LINENO
1837 # -----------------------
1838 # Try to link conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_link ()
1840 {
1841   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842   rm -f conftest.$ac_objext conftest$ac_exeext
1843   if { { ac_try="$ac_link"
1844 case "(($ac_try" in
1845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846   *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850   (eval "$ac_link") 2>conftest.err
1851   ac_status=$?
1852   if test -s conftest.err; then
1853     grep -v '^ *+' conftest.err >conftest.er1
1854     cat conftest.er1 >&5
1855     mv -f conftest.er1 conftest.err
1856   fi
1857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858   test $ac_status = 0; } && {
1859          test -z "$ac_c_werror_flag" ||
1860          test ! -s conftest.err
1861        } && test -s conftest$ac_exeext && {
1862          test "$cross_compiling" = yes ||
1863          $as_test_x conftest$ac_exeext
1864        }; then :
1865   ac_retval=0
1866 else
1867   $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1869
1870         ac_retval=1
1871 fi
1872   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1873   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1874   # interfere with the next link command; also delete a directory that is
1875   # left behind by Apple's compiler.  We do this before executing the actions.
1876   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878   return $ac_retval
1879
1880 } # ac_fn_c_try_link
1881 cat >config.log <<_ACEOF
1882 This file contains any messages produced by compilers while
1883 running configure, to aid debugging if configure makes a mistake.
1884
1885 It was created by $as_me, which was
1886 generated by GNU Autoconf 2.64.  Invocation command line was
1887
1888   $ $0 $@
1889
1890 _ACEOF
1891 exec 5>>config.log
1892 {
1893 cat <<_ASUNAME
1894 ## --------- ##
1895 ## Platform. ##
1896 ## --------- ##
1897
1898 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1899 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1900 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1901 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1902 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1903
1904 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1905 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1906
1907 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1908 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1909 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1910 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1911 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1912 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1913 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1914
1915 _ASUNAME
1916
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1919 do
1920   IFS=$as_save_IFS
1921   test -z "$as_dir" && as_dir=.
1922     $as_echo "PATH: $as_dir"
1923   done
1924 IFS=$as_save_IFS
1925
1926 } >&5
1927
1928 cat >&5 <<_ACEOF
1929
1930
1931 ## ----------- ##
1932 ## Core tests. ##
1933 ## ----------- ##
1934
1935 _ACEOF
1936
1937
1938 # Keep a trace of the command line.
1939 # Strip out --no-create and --no-recursion so they do not pile up.
1940 # Strip out --silent because we don't want to record it for future runs.
1941 # Also quote any args containing shell meta-characters.
1942 # Make two passes to allow for proper duplicate-argument suppression.
1943 ac_configure_args=
1944 ac_configure_args0=
1945 ac_configure_args1=
1946 ac_must_keep_next=false
1947 for ac_pass in 1 2
1948 do
1949   for ac_arg
1950   do
1951     case $ac_arg in
1952     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1953     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1954     | -silent | --silent | --silen | --sile | --sil)
1955       continue ;;
1956     *\'*)
1957       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1958     esac
1959     case $ac_pass in
1960     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1961     2)
1962       as_fn_append ac_configure_args1 " '$ac_arg'"
1963       if test $ac_must_keep_next = true; then
1964         ac_must_keep_next=false # Got value, back to normal.
1965       else
1966         case $ac_arg in
1967           *=* | --config-cache | -C | -disable-* | --disable-* \
1968           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1969           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1970           | -with-* | --with-* | -without-* | --without-* | --x)
1971             case "$ac_configure_args0 " in
1972               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1973             esac
1974             ;;
1975           -* ) ac_must_keep_next=true ;;
1976         esac
1977       fi
1978       as_fn_append ac_configure_args " '$ac_arg'"
1979       ;;
1980     esac
1981   done
1982 done
1983 { ac_configure_args0=; unset ac_configure_args0;}
1984 { ac_configure_args1=; unset ac_configure_args1;}
1985
1986 # When interrupted or exit'd, cleanup temporary files, and complete
1987 # config.log.  We remove comments because anyway the quotes in there
1988 # would cause problems or look ugly.
1989 # WARNING: Use '\'' to represent an apostrophe within the trap.
1990 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1991 trap 'exit_status=$?
1992   # Save into config.log some information that might help in debugging.
1993   {
1994     echo
1995
1996     cat <<\_ASBOX
1997 ## ---------------- ##
1998 ## Cache variables. ##
1999 ## ---------------- ##
2000 _ASBOX
2001     echo
2002     # The following way of writing the cache mishandles newlines in values,
2003 (
2004   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2005     eval ac_val=\$$ac_var
2006     case $ac_val in #(
2007     *${as_nl}*)
2008       case $ac_var in #(
2009       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2011       esac
2012       case $ac_var in #(
2013       _ | IFS | as_nl) ;; #(
2014       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2015       *) { eval $ac_var=; unset $ac_var;} ;;
2016       esac ;;
2017     esac
2018   done
2019   (set) 2>&1 |
2020     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2021     *${as_nl}ac_space=\ *)
2022       sed -n \
2023         "s/'\''/'\''\\\\'\'''\''/g;
2024           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2025       ;; #(
2026     *)
2027       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2028       ;;
2029     esac |
2030     sort
2031 )
2032     echo
2033
2034     cat <<\_ASBOX
2035 ## ----------------- ##
2036 ## Output variables. ##
2037 ## ----------------- ##
2038 _ASBOX
2039     echo
2040     for ac_var in $ac_subst_vars
2041     do
2042       eval ac_val=\$$ac_var
2043       case $ac_val in
2044       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045       esac
2046       $as_echo "$ac_var='\''$ac_val'\''"
2047     done | sort
2048     echo
2049
2050     if test -n "$ac_subst_files"; then
2051       cat <<\_ASBOX
2052 ## ------------------- ##
2053 ## File substitutions. ##
2054 ## ------------------- ##
2055 _ASBOX
2056       echo
2057       for ac_var in $ac_subst_files
2058       do
2059         eval ac_val=\$$ac_var
2060         case $ac_val in
2061         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062         esac
2063         $as_echo "$ac_var='\''$ac_val'\''"
2064       done | sort
2065       echo
2066     fi
2067
2068     if test -s confdefs.h; then
2069       cat <<\_ASBOX
2070 ## ----------- ##
2071 ## confdefs.h. ##
2072 ## ----------- ##
2073 _ASBOX
2074       echo
2075       cat confdefs.h
2076       echo
2077     fi
2078     test "$ac_signal" != 0 &&
2079       $as_echo "$as_me: caught signal $ac_signal"
2080     $as_echo "$as_me: exit $exit_status"
2081   } >&5
2082   rm -f core *.core core.conftest.* &&
2083     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2084     exit $exit_status
2085 ' 0
2086 for ac_signal in 1 2 13 15; do
2087   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2088 done
2089 ac_signal=0
2090
2091 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2092 rm -f -r conftest* confdefs.h
2093
2094 $as_echo "/* confdefs.h */" > confdefs.h
2095
2096 # Predefined preprocessor variables.
2097
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_NAME "$PACKAGE_NAME"
2100 _ACEOF
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2104 _ACEOF
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2108 _ACEOF
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_STRING "$PACKAGE_STRING"
2112 _ACEOF
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2116 _ACEOF
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_URL "$PACKAGE_URL"
2120 _ACEOF
2121
2122
2123 # Let the site file select an alternate cache file if it wants to.
2124 # Prefer an explicitly selected file to automatically selected ones.
2125 ac_site_file1=NONE
2126 ac_site_file2=NONE
2127 if test -n "$CONFIG_SITE"; then
2128   ac_site_file1=$CONFIG_SITE
2129 elif test "x$prefix" != xNONE; then
2130   ac_site_file1=$prefix/share/config.site
2131   ac_site_file2=$prefix/etc/config.site
2132 else
2133   ac_site_file1=$ac_default_prefix/share/config.site
2134   ac_site_file2=$ac_default_prefix/etc/config.site
2135 fi
2136 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2137 do
2138   test "x$ac_site_file" = xNONE && continue
2139   if test -r "$ac_site_file"; then
2140     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2141 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2142     sed 's/^/| /' "$ac_site_file" >&5
2143     . "$ac_site_file"
2144   fi
2145 done
2146
2147 if test -r "$cache_file"; then
2148   # Some versions of bash will fail to source /dev/null (special
2149   # files actually), so we avoid doing that.
2150   if test -f "$cache_file"; then
2151     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152 $as_echo "$as_me: loading cache $cache_file" >&6;}
2153     case $cache_file in
2154       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155       *)                      . "./$cache_file";;
2156     esac
2157   fi
2158 else
2159   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160 $as_echo "$as_me: creating cache $cache_file" >&6;}
2161   >$cache_file
2162 fi
2163
2164 # Check that the precious variables saved in the cache have kept the same
2165 # value.
2166 ac_cache_corrupted=false
2167 for ac_var in $ac_precious_vars; do
2168   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2169   eval ac_new_set=\$ac_env_${ac_var}_set
2170   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2171   eval ac_new_val=\$ac_env_${ac_var}_value
2172   case $ac_old_set,$ac_new_set in
2173     set,)
2174       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2176       ac_cache_corrupted=: ;;
2177     ,set)
2178       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2179 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2180       ac_cache_corrupted=: ;;
2181     ,);;
2182     *)
2183       if test "x$ac_old_val" != "x$ac_new_val"; then
2184         # differences in whitespace do not lead to failure.
2185         ac_old_val_w=`echo x $ac_old_val`
2186         ac_new_val_w=`echo x $ac_new_val`
2187         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2188           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2189 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2190           ac_cache_corrupted=:
2191         else
2192           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2193 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2194           eval $ac_var=\$ac_old_val
2195         fi
2196         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2197 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2198         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2199 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2200       fi;;
2201   esac
2202   # Pass precious variables to config.status.
2203   if test "$ac_new_set" = set; then
2204     case $ac_new_val in
2205     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2206     *) ac_arg=$ac_var=$ac_new_val ;;
2207     esac
2208     case " $ac_configure_args " in
2209       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2210       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2211     esac
2212   fi
2213 done
2214 if $ac_cache_corrupted; then
2215   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2218 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2219   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2220 fi
2221 ## -------------------- ##
2222 ## Main body of script. ##
2223 ## -------------------- ##
2224
2225 ac_ext=c
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239 progname=$0
2240 # if PWD already has a value, it is probably wrong.
2241 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2242
2243 # Export original configure arguments for use by sub-configures.
2244 # Quote arguments with shell meta charatcers.
2245 TOPLEVEL_CONFIGURE_ARGUMENTS=
2246 set -- "$progname" "$@"
2247 for ac_arg
2248 do
2249   case "$ac_arg" in
2250   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2251     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2252     # if the argument is of the form -foo=baz, quote the baz part only
2253     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2254   *) ;;
2255   esac
2256   # Add the quoted argument to the list.
2257   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2258 done
2259 if test "$silent" = yes; then
2260   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2261 fi
2262 # Remove the initial space we just introduced and, as these will be
2263 # expanded by make, quote '$'.
2264 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2265
2266
2267 # Find the build, host, and target systems.
2268 ac_aux_dir=
2269 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2270   for ac_t in install-sh install.sh shtool; do
2271     if test -f "$ac_dir/$ac_t"; then
2272       ac_aux_dir=$ac_dir
2273       ac_install_sh="$ac_aux_dir/$ac_t -c"
2274       break 2
2275     fi
2276   done
2277 done
2278 if test -z "$ac_aux_dir"; then
2279   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2280 fi
2281
2282 # These three variables are undocumented and unsupported,
2283 # and are intended to be withdrawn in a future Autoconf release.
2284 # They can cause serious problems if a builder's source tree is in a directory
2285 # whose full name contains unusual characters.
2286 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2287 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2288 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2289
2290
2291 # Make sure we can run config.sub.
2292 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2293   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2294
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2296 $as_echo_n "checking build system type... " >&6; }
2297 if test "${ac_cv_build+set}" = set; then :
2298   $as_echo_n "(cached) " >&6
2299 else
2300   ac_build_alias=$build_alias
2301 test "x$ac_build_alias" = x &&
2302   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2303 test "x$ac_build_alias" = x &&
2304   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2305 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2306   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2307
2308 fi
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2310 $as_echo "$ac_cv_build" >&6; }
2311 case $ac_cv_build in
2312 *-*-*) ;;
2313 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2314 esac
2315 build=$ac_cv_build
2316 ac_save_IFS=$IFS; IFS='-'
2317 set x $ac_cv_build
2318 shift
2319 build_cpu=$1
2320 build_vendor=$2
2321 shift; shift
2322 # Remember, the first character of IFS is used to create $*,
2323 # except with old shells:
2324 build_os=$*
2325 IFS=$ac_save_IFS
2326 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2327
2328
2329  case ${build_alias} in
2330   "") build_noncanonical=${build} ;;
2331   *) build_noncanonical=${build_alias} ;;
2332 esac
2333
2334
2335
2336  case ${host_alias} in
2337   "") host_noncanonical=${build_noncanonical} ;;
2338   *) host_noncanonical=${host_alias} ;;
2339 esac
2340
2341
2342
2343  case ${target_alias} in
2344   "") target_noncanonical=${host_noncanonical} ;;
2345   *) target_noncanonical=${target_alias} ;;
2346 esac
2347
2348
2349
2350
2351 test "$host_noncanonical" = "$target_noncanonical" &&
2352   test "$program_prefix$program_suffix$program_transform_name" = \
2353     NONENONEs,x,x, &&
2354   program_transform_name=s,y,y,
2355
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2357 $as_echo_n "checking host system type... " >&6; }
2358 if test "${ac_cv_host+set}" = set; then :
2359   $as_echo_n "(cached) " >&6
2360 else
2361   if test "x$host_alias" = x; then
2362   ac_cv_host=$ac_cv_build
2363 else
2364   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2365     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2366 fi
2367
2368 fi
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2370 $as_echo "$ac_cv_host" >&6; }
2371 case $ac_cv_host in
2372 *-*-*) ;;
2373 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2374 esac
2375 host=$ac_cv_host
2376 ac_save_IFS=$IFS; IFS='-'
2377 set x $ac_cv_host
2378 shift
2379 host_cpu=$1
2380 host_vendor=$2
2381 shift; shift
2382 # Remember, the first character of IFS is used to create $*,
2383 # except with old shells:
2384 host_os=$*
2385 IFS=$ac_save_IFS
2386 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2387
2388
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2390 $as_echo_n "checking target system type... " >&6; }
2391 if test "${ac_cv_target+set}" = set; then :
2392   $as_echo_n "(cached) " >&6
2393 else
2394   if test "x$target_alias" = x; then
2395   ac_cv_target=$ac_cv_host
2396 else
2397   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2398     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2399 fi
2400
2401 fi
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2403 $as_echo "$ac_cv_target" >&6; }
2404 case $ac_cv_target in
2405 *-*-*) ;;
2406 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2407 esac
2408 target=$ac_cv_target
2409 ac_save_IFS=$IFS; IFS='-'
2410 set x $ac_cv_target
2411 shift
2412 target_cpu=$1
2413 target_vendor=$2
2414 shift; shift
2415 # Remember, the first character of IFS is used to create $*,
2416 # except with old shells:
2417 target_os=$*
2418 IFS=$ac_save_IFS
2419 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2420
2421
2422 # The aliases save the names the user supplied, while $host etc.
2423 # will get canonicalized.
2424 test -n "$target_alias" &&
2425   test "$program_prefix$program_suffix$program_transform_name" = \
2426     NONENONEs,x,x, &&
2427   program_prefix=${target_alias}-
2428
2429 test "$program_prefix" != NONE &&
2430   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2431 # Use a double $ so make ignores it.
2432 test "$program_suffix" != NONE &&
2433   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2434 # Double any \ or $.
2435 # By default was `s,x,x', remove it if useless.
2436 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2437 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2438
2439
2440
2441 # Get 'install' or 'install-sh' and its variants.
2442 # Find a good install program.  We prefer a C program (faster),
2443 # so one script is as good as another.  But avoid the broken or
2444 # incompatible versions:
2445 # SysV /etc/install, /usr/sbin/install
2446 # SunOS /usr/etc/install
2447 # IRIX /sbin/install
2448 # AIX /bin/install
2449 # AmigaOS /C/install, which installs bootblocks on floppy discs
2450 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2451 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2453 # OS/2's system install, which has a completely different semantic
2454 # ./install, which can be erroneously created by make from ./install.sh.
2455 # Reject install programs that cannot install multiple files.
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2457 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2458 if test -z "$INSTALL"; then
2459 if test "${ac_cv_path_install+set}" = set; then :
2460   $as_echo_n "(cached) " >&6
2461 else
2462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465   IFS=$as_save_IFS
2466   test -z "$as_dir" && as_dir=.
2467     # Account for people who put trailing slashes in PATH elements.
2468 case $as_dir/ in #((
2469   ./ | .// | /[cC]/* | \
2470   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2471   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2472   /usr/ucb/* ) ;;
2473   *)
2474     # OSF1 and SCO ODT 3.0 have their own names for install.
2475     # Don't use installbsd from OSF since it installs stuff as root
2476     # by default.
2477     for ac_prog in ginstall scoinst install; do
2478       for ac_exec_ext in '' $ac_executable_extensions; do
2479         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2480           if test $ac_prog = install &&
2481             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2482             # AIX install.  It has an incompatible calling convention.
2483             :
2484           elif test $ac_prog = install &&
2485             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486             # program-specific install script used by HP pwplus--don't use.
2487             :
2488           else
2489             rm -rf conftest.one conftest.two conftest.dir
2490             echo one > conftest.one
2491             echo two > conftest.two
2492             mkdir conftest.dir
2493             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2494               test -s conftest.one && test -s conftest.two &&
2495               test -s conftest.dir/conftest.one &&
2496               test -s conftest.dir/conftest.two
2497             then
2498               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2499               break 3
2500             fi
2501           fi
2502         fi
2503       done
2504     done
2505     ;;
2506 esac
2507
2508   done
2509 IFS=$as_save_IFS
2510
2511 rm -rf conftest.one conftest.two conftest.dir
2512
2513 fi
2514   if test "${ac_cv_path_install+set}" = set; then
2515     INSTALL=$ac_cv_path_install
2516   else
2517     # As a last resort, use the slow shell script.  Don't cache a
2518     # value for INSTALL within a source directory, because that will
2519     # break other packages using the cache if that directory is
2520     # removed, or if the value is a relative name.
2521     INSTALL=$ac_install_sh
2522   fi
2523 fi
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2525 $as_echo "$INSTALL" >&6; }
2526
2527 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2528 # It thinks the first close brace ends the variable substitution.
2529 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2530
2531 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2532
2533 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2534
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2536 $as_echo_n "checking whether ln works... " >&6; }
2537 if test "${acx_cv_prog_LN+set}" = set; then :
2538   $as_echo_n "(cached) " >&6
2539 else
2540   rm -f conftestdata_t
2541 echo >conftestdata_f
2542 if ln conftestdata_f conftestdata_t 2>/dev/null
2543 then
2544   acx_cv_prog_LN=ln
2545 else
2546   acx_cv_prog_LN=no
2547 fi
2548 rm -f conftestdata_f conftestdata_t
2549
2550 fi
2551 if test $acx_cv_prog_LN = no; then
2552   LN="cp"
2553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2554 $as_echo "no, using $LN" >&6; }
2555 else
2556   LN="$acx_cv_prog_LN"
2557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2558 $as_echo "yes" >&6; }
2559 fi
2560
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2562 $as_echo_n "checking whether ln -s works... " >&6; }
2563 LN_S=$as_ln_s
2564 if test "$LN_S" = "ln -s"; then
2565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2566 $as_echo "yes" >&6; }
2567 else
2568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2569 $as_echo "no, using $LN_S" >&6; }
2570 fi
2571
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2573 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2574 if test "${ac_cv_path_SED+set}" = set; then :
2575   $as_echo_n "(cached) " >&6
2576 else
2577             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2578      for ac_i in 1 2 3 4 5 6 7; do
2579        ac_script="$ac_script$as_nl$ac_script"
2580      done
2581      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2582      { ac_script=; unset ac_script;}
2583      if test -z "$SED"; then
2584   ac_path_SED_found=false
2585   # Loop through the user's path and test for each of PROGNAME-LIST
2586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589   IFS=$as_save_IFS
2590   test -z "$as_dir" && as_dir=.
2591     for ac_prog in sed gsed; do
2592     for ac_exec_ext in '' $ac_executable_extensions; do
2593       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2594       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2595 # Check for GNU ac_path_SED and select it if it is found.
2596   # Check for GNU $ac_path_SED
2597 case `"$ac_path_SED" --version 2>&1` in
2598 *GNU*)
2599   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2600 *)
2601   ac_count=0
2602   $as_echo_n 0123456789 >"conftest.in"
2603   while :
2604   do
2605     cat "conftest.in" "conftest.in" >"conftest.tmp"
2606     mv "conftest.tmp" "conftest.in"
2607     cp "conftest.in" "conftest.nl"
2608     $as_echo '' >> "conftest.nl"
2609     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2610     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2611     as_fn_arith $ac_count + 1 && ac_count=$as_val
2612     if test $ac_count -gt ${ac_path_SED_max-0}; then
2613       # Best one so far, save it but keep looking for a better one
2614       ac_cv_path_SED="$ac_path_SED"
2615       ac_path_SED_max=$ac_count
2616     fi
2617     # 10*(2^10) chars as input seems more than enough
2618     test $ac_count -gt 10 && break
2619   done
2620   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2621 esac
2622
2623       $ac_path_SED_found && break 3
2624     done
2625   done
2626   done
2627 IFS=$as_save_IFS
2628   if test -z "$ac_cv_path_SED"; then
2629     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2630   fi
2631 else
2632   ac_cv_path_SED=$SED
2633 fi
2634
2635 fi
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2637 $as_echo "$ac_cv_path_SED" >&6; }
2638  SED="$ac_cv_path_SED"
2639   rm -f conftest.sed
2640
2641 for ac_prog in gawk mawk nawk awk
2642 do
2643   # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if test "${ac_cv_prog_AWK+set}" = set; then :
2648   $as_echo_n "(cached) " >&6
2649 else
2650   if test -n "$AWK"; then
2651   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658     for ac_exec_ext in '' $ac_executable_extensions; do
2659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660     ac_cv_prog_AWK="$ac_prog"
2661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665   done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 AWK=$ac_cv_prog_AWK
2671 if test -n "$AWK"; then
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2673 $as_echo "$AWK" >&6; }
2674 else
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2677 fi
2678
2679
2680   test -n "$AWK" && break
2681 done
2682
2683
2684 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2685
2686 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2687 # a relative path.
2688 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2689   INSTALL="${srcpwd}/install-sh -c"
2690 fi
2691
2692 # Set srcdir to "." if that's what it is.
2693 # This is important for multilib support.
2694 pwd=`${PWDCMD-pwd}`
2695 if test "${pwd}" = "${srcpwd}" ; then
2696   srcdir=.
2697 fi
2698
2699 topsrcdir=$srcpwd
2700
2701 extra_host_args=
2702
2703 ### To add a new directory to the tree, first choose whether it is a target
2704 ### or a host dependent tool.  Then put it into the appropriate list
2705 ### (library or tools, host or target), doing a dependency sort.
2706
2707 # Subdirs will be configured in the order listed in build_configdirs,
2708 # configdirs, or target_configdirs; see the serialization section below.
2709
2710 # Dependency sorting is only needed when *configuration* must be done in
2711 # a particular order.  In all cases a dependency should be specified in
2712 # the Makefile, whether or not it's implicitly specified here.
2713
2714 # Double entries in build_configdirs, configdirs, or target_configdirs may
2715 # cause circular dependencies and break everything horribly.
2716
2717 # these library is used by various programs built for the build
2718 # environment
2719 #
2720 build_libs="build-libiberty build-libcpp"
2721
2722 # these tools are built for the build environment
2723 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2724
2725 # these libraries are used by various programs built for the host environment
2726 #f
2727 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2728
2729 # these tools are built for the host environment
2730 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2731 # know that we are building the simulator.
2732 # binutils, gas and ld appear in that order because it makes sense to run
2733 # "make check" in that particular order.
2734 # If --enable-gold is used, "gold" may replace "ld".
2735 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"
2736
2737 # libgcj represents the runtime libraries only used by gcj.
2738 libgcj="target-libffi \
2739         target-zlib \
2740         target-libjava"
2741
2742 # these libraries are built for the target environment, and are built after
2743 # the host libraries and the host tools (which may be a cross compiler)
2744 # Note that libiberty is not a target library.
2745 target_libraries="target-libgcc \
2746                 target-libbacktrace \
2747                 target-libgloss \
2748                 target-newlib \
2749                 target-libgomp \
2750                 target-libcilkrts \
2751                 target-liboffloadmic \
2752                 target-libatomic \
2753                 target-libitm \
2754                 target-libstdc++-v3 \
2755                 target-libsanitizer \
2756                 target-libvtv \
2757                 target-libmpx \
2758                 target-libssp \
2759                 target-libquadmath \
2760                 target-libgfortran \
2761                 target-boehm-gc \
2762                 ${libgcj} \
2763                 target-libobjc \
2764                 target-libada \
2765                 target-libgo"
2766
2767 # these tools are built using the target libraries, and are intended to
2768 # run only in the target environment
2769 #
2770 # note: any program that *uses* libraries that are in the "target_libraries"
2771 # list belongs in this list.
2772 #
2773 target_tools="target-rda"
2774
2775 ################################################################################
2776
2777 ## All tools belong in one of the four categories, and are assigned above
2778 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2779 ## is important because configure will choke if they ever get through.
2780 ## ${configdirs} is directories we build using the host tools.
2781 ## ${target_configdirs} is directories we build using the target tools.
2782 configdirs=`echo ${host_libs} ${host_tools}`
2783 target_configdirs=`echo ${target_libraries} ${target_tools}`
2784 build_configdirs=`echo ${build_libs} ${build_tools}`
2785
2786
2787
2788 ################################################################################
2789
2790 srcname="gnu development package"
2791
2792 # This gets set non-empty for some net releases of packages.
2793 appdirs=""
2794
2795 # Define is_cross_compiler to save on calls to 'test'.
2796 is_cross_compiler=
2797 if test x"${host}" = x"${target}" ; then
2798   is_cross_compiler=no
2799 else
2800   is_cross_compiler=yes
2801 fi
2802
2803 # Find the build and target subdir names.
2804
2805 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2806 # have matching libraries, they should use host libraries: Makefile.tpl
2807 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2808 # However, they still use the build modules, because the corresponding
2809 # host modules (e.g. bison) are only built for the host when bootstrap
2810 # finishes. So:
2811 # - build_subdir is where we find build modules, and never changes.
2812 # - build_libsubdir is where we find build libraries, and can be overridden.
2813
2814 # Prefix 'build-' so this never conflicts with target_subdir.
2815 build_subdir="build-${build_noncanonical}"
2816
2817 # Check whether --with-build-libsubdir was given.
2818 if test "${with_build_libsubdir+set}" = set; then :
2819   withval=$with_build_libsubdir; build_libsubdir="$withval"
2820 else
2821   build_libsubdir="$build_subdir"
2822 fi
2823
2824 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2825 if ( test $srcdir = . && test -d gcc ) \
2826    || test -d $srcdir/../host-${host_noncanonical}; then
2827   host_subdir="host-${host_noncanonical}"
2828 else
2829   host_subdir=.
2830 fi
2831 # No prefix.
2832 target_subdir=${target_noncanonical}
2833
2834 # Be sure to cover against remnants of an in-tree build.
2835 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2836   as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2837 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2838 fi
2839
2840 # Skipdirs are removed silently.
2841 skipdirs=
2842 # Noconfigdirs are removed loudly.
2843 noconfigdirs=""
2844
2845 use_gnu_ld=
2846 # Make sure we don't let GNU ld be added if we didn't want it.
2847 if test x$with_gnu_ld = xno ; then
2848   use_gnu_ld=no
2849   noconfigdirs="$noconfigdirs ld gold"
2850 fi
2851
2852 use_gnu_as=
2853 # Make sure we don't let GNU as be added if we didn't want it.
2854 if test x$with_gnu_as = xno ; then
2855   use_gnu_as=no
2856   noconfigdirs="$noconfigdirs gas"
2857 fi
2858
2859 use_included_zlib=
2860
2861 # Check whether --with-system-zlib was given.
2862 if test "${with_system_zlib+set}" = set; then :
2863   withval=$with_system_zlib;
2864 fi
2865
2866 # Make sure we don't let ZLIB be added if we didn't want it.
2867 if test x$with_system_zlib = xyes ; then
2868   use_included_zlib=no
2869   noconfigdirs="$noconfigdirs zlib"
2870 fi
2871
2872 # some tools are so dependent upon X11 that if we're not building with X,
2873 # it's not even worth trying to configure, much less build, that tool.
2874
2875 case ${with_x} in
2876   yes | "") ;; # the default value for this tree is that X11 is available
2877   no)
2878     skipdirs="${skipdirs} tk itcl libgui"
2879     # We won't be able to build gdbtk without X.
2880     enable_gdbtk=no
2881     ;;
2882   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2883 esac
2884
2885 # Some are only suitable for cross toolchains.
2886 # Remove these if host=target.
2887 cross_only="target-libgloss target-newlib target-opcodes"
2888
2889 case $is_cross_compiler in
2890   no) skipdirs="${skipdirs} ${cross_only}" ;;
2891 esac
2892
2893 # If both --with-headers and --with-libs are specified, default to
2894 # --without-newlib.
2895 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2896    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2897   if test x"${with_newlib}" = x ; then
2898     with_newlib=no
2899   fi
2900 fi
2901
2902 # Recognize --with-newlib/--without-newlib.
2903 case ${with_newlib} in
2904   no) skipdirs="${skipdirs} target-newlib" ;;
2905   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2906 esac
2907
2908 # Check whether --enable-as-accelerator-for was given.
2909 if test "${enable_as_accelerator_for+set}" = set; then :
2910   enableval=$enable_as_accelerator_for;
2911 fi
2912
2913
2914 # Check whether --enable-offload-targets was given.
2915 if test "${enable_offload_targets+set}" = set; then :
2916   enableval=$enable_offload_targets;
2917   if test x"$enable_offload_targets" = x; then
2918     as_fn_error "no offload targets specified" "$LINENO" 5
2919   fi
2920
2921 else
2922   enable_offload_targets=
2923 fi
2924
2925
2926 # Handle --enable-gold, --enable-ld.
2927 # --disable-gold [--enable-ld]
2928 #     Build only ld.  Default option.
2929 # --enable-gold [--enable-ld]
2930 #     Build both gold and ld.  Install gold as "ld.gold", install ld
2931 #     as "ld.bfd" and "ld".
2932 # --enable-gold=default [--enable-ld]
2933 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2934 #     install ld as "ld.bfd".
2935 # --enable-gold[=default] --disable-ld
2936 #     Build only gold, which is then installed as both "ld.gold" and "ld".
2937 # --enable-gold --enable-ld=default
2938 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2939 #     and ld.bfd).
2940 #     In other words, ld is default
2941 # --enable-gold=default --enable-ld=default
2942 #     Error.
2943
2944 default_ld=
2945 # Check whether --enable-gold was given.
2946 if test "${enable_gold+set}" = set; then :
2947   enableval=$enable_gold; ENABLE_GOLD=$enableval
2948 else
2949   ENABLE_GOLD=no
2950 fi
2951
2952 case "${ENABLE_GOLD}" in
2953   yes|default)
2954     # Check for ELF target.
2955     is_elf=no
2956     case "${target}" in
2957       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2958       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2959       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2960       | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2961         case "${target}" in
2962           *-*-linux*aout* | *-*-linux*oldld*)
2963             ;;
2964           *)
2965             is_elf=yes
2966             ;;
2967         esac
2968     esac
2969
2970     if test "$is_elf" = "yes"; then
2971       # Check for target supported by gold.
2972       case "${target}" in
2973         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2974         | aarch64*-*-* | tilegx*-*-*)
2975           configdirs="$configdirs gold"
2976           if test x${ENABLE_GOLD} = xdefault; then
2977             default_ld=gold
2978           fi
2979           ENABLE_GOLD=yes
2980           ;;
2981       esac
2982     fi
2983     ;;
2984   no)
2985     ;;
2986   *)
2987     as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2988     ;;
2989 esac
2990
2991 # Check whether --enable-ld was given.
2992 if test "${enable_ld+set}" = set; then :
2993   enableval=$enable_ld; ENABLE_LD=$enableval
2994 else
2995   ENABLE_LD=yes
2996 fi
2997
2998
2999 case "${ENABLE_LD}" in
3000   default)
3001     if test x${default_ld} != x; then
3002       as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3003     fi
3004     ;;
3005   yes)
3006     ;;
3007   no)
3008     if test x${ENABLE_GOLD} != xyes; then
3009       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3010 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3011     fi
3012     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3013     ;;
3014   *)
3015     as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3016     ;;
3017 esac
3018
3019 # Configure extra directories which are host specific
3020
3021 case "${host}" in
3022   *-cygwin*)
3023     configdirs="$configdirs libtermcap" ;;
3024 esac
3025
3026 # A target can indicate whether a language isn't supported for some reason.
3027 # Only spaces may be used in this macro; not newlines or tabs.
3028 unsupported_languages=
3029
3030 # Remove more programs from consideration, based on the host or
3031 # target this usually means that a port of the program doesn't
3032 # exist yet.
3033
3034 case "${host}" in
3035   i[3456789]86-*-msdosdjgpp*)
3036     noconfigdirs="$noconfigdirs tcl tk itcl"
3037     ;;
3038 esac
3039
3040
3041 # Check whether --enable-libquadmath was given.
3042 if test "${enable_libquadmath+set}" = set; then :
3043   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3044 else
3045   ENABLE_LIBQUADMATH=yes
3046 fi
3047
3048 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3049   noconfigdirs="$noconfigdirs target-libquadmath"
3050 fi
3051
3052
3053 # Check whether --enable-libquadmath-support was given.
3054 if test "${enable_libquadmath_support+set}" = set; then :
3055   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3056 else
3057   ENABLE_LIBQUADMATH_SUPPORT=yes
3058 fi
3059
3060 enable_libquadmath_support=
3061 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3062   enable_libquadmath_support=no
3063 fi
3064
3065
3066 # Check whether --enable-libada was given.
3067 if test "${enable_libada+set}" = set; then :
3068   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3069 else
3070   ENABLE_LIBADA=yes
3071 fi
3072
3073 if test "${ENABLE_LIBADA}" != "yes" ; then
3074   noconfigdirs="$noconfigdirs gnattools"
3075 fi
3076
3077 # Check whether --enable-libssp was given.
3078 if test "${enable_libssp+set}" = set; then :
3079   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3080 else
3081   ENABLE_LIBSSP=yes
3082 fi
3083
3084
3085 # Check whether --enable-libstdcxx was given.
3086 if test "${enable_libstdcxx+set}" = set; then :
3087   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3088 else
3089   ENABLE_LIBSTDCXX=default
3090 fi
3091
3092 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3093   noconfigdirs="$noconfigdirs target-libstdc++-v3"
3094 fi
3095
3096 # If this is accelerator compiler and its target is intelmic we enable
3097 # target liboffloadmic by default.  If this is compiler with offloading
3098 # for intelmic we enable host liboffloadmic by default.  Otherwise
3099 # liboffloadmic is disabled by default.
3100 # Check whether --enable-liboffloadmic was given.
3101 if test "${enable_liboffloadmic+set}" = set; then :
3102   enableval=$enable_liboffloadmic; case "$enableval" in
3103   no | host | target)
3104     enable_liboffloadmic=$enableval ;;
3105   *)
3106     as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3107 esac
3108 else
3109   if test x"$enable_as_accelerator_for" != x; then
3110   case "${target}" in
3111     *-intelmic-* | *-intelmicemul-*)
3112       enable_liboffloadmic=target
3113       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3114       ;;
3115     *)
3116       enable_liboffloadmic=no
3117       ;;
3118   esac
3119 else
3120   case "${enable_offload_targets}" in
3121     *-intelmic-* | *-intelmicemul-*)
3122       enable_liboffloadmic=host
3123       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3124       ;;
3125     *)
3126       enable_liboffloadmic=no
3127       ;;
3128     esac
3129 fi
3130 fi
3131
3132
3133
3134 # Save it here so that, even in case of --enable-libgcj, if the Java
3135 # front-end isn't enabled, we still get libgcj disabled.
3136 libgcj_saved=$libgcj
3137 case $enable_libgcj in
3138 yes)
3139   # If we reset it here, it won't get added to noconfigdirs in the
3140   # target-specific build rules, so it will be forcibly enabled
3141   # (unless the Java language itself isn't enabled).
3142   libgcj=
3143   ;;
3144 no)
3145   # Make sure we get it printed in the list of not supported target libs.
3146   # Don't disable libffi, though, other languages use it.
3147   noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3148   # Clear libgcj_saved so that even if java is enabled libffi won't be
3149   # built.
3150   libgcj_saved=
3151   ;;
3152 esac
3153
3154 # Check whether --enable-static-libjava was given.
3155 if test "${enable_static_libjava+set}" = set; then :
3156   enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3157 else
3158   ENABLE_STATIC_LIBJAVA=no
3159 fi
3160
3161 enable_static_libjava=
3162 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3163   enable_static_libjava=yes
3164 fi
3165
3166 if test x$enable_static_libjava != xyes ; then
3167   EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3168 fi
3169
3170
3171 # Disable libgomp on non POSIX hosted systems.
3172 if test x$enable_libgomp = x ; then
3173     # Enable libgomp by default on hosted POSIX systems.
3174     case "${target}" in
3175     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3176         ;;
3177     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3178         ;;
3179     *-*-solaris2* | *-*-hpux11*)
3180         ;;
3181     *-*-darwin* | *-*-aix*)
3182         ;;
3183     *)
3184         noconfigdirs="$noconfigdirs target-libgomp"
3185         ;;
3186     esac
3187 fi
3188
3189 # Disable libatomic on unsupported systems.
3190 if test -d ${srcdir}/libatomic; then
3191     if test x$enable_libatomic = x; then
3192         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3193 $as_echo_n "checking for libatomic support... " >&6; }
3194         if (srcdir=${srcdir}/libatomic; \
3195                 . ${srcdir}/configure.tgt; \
3196                 test -n "$UNSUPPORTED")
3197         then
3198             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3200             noconfigdirs="$noconfigdirs target-libatomic"
3201         else
3202             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203 $as_echo "yes" >&6; }
3204         fi
3205     fi
3206 fi
3207
3208 # Disable libcilkrts on unsupported systems.
3209 if test -d ${srcdir}/libcilkrts; then
3210     if test x$enable_libcilkrts = x; then
3211         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3212 $as_echo_n "checking for libcilkrts support... " >&6; }
3213         if (srcdir=${srcdir}/libcilkrts; \
3214                 . ${srcdir}/configure.tgt; \
3215                 test -n "$UNSUPPORTED")
3216         then
3217             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219             noconfigdirs="$noconfigdirs target-libcilkrts"
3220         else
3221             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222 $as_echo "yes" >&6; }
3223         fi
3224     fi
3225 fi
3226
3227 # Disable liboffloadmic on unsupported systems.
3228 if test -d ${srcdir}/liboffloadmic; then
3229     if test x$enable_liboffloadmic != xno; then
3230         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3231 $as_echo_n "checking for liboffloadmic support... " >&6; }
3232         if (srcdir=${srcdir}/liboffloadmic; \
3233                 . ${srcdir}/configure.tgt; \
3234                 test -n "$UNSUPPORTED")
3235         then
3236             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238             noconfigdirs="$noconfigdirs target-liboffloadmic"
3239         else
3240             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241 $as_echo "yes" >&6; }
3242         fi
3243     fi
3244 fi
3245
3246 # Disable libitm on unsupported systems.
3247 if test -d ${srcdir}/libitm; then
3248     if test x$enable_libitm = x; then
3249         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3250 $as_echo_n "checking for libitm support... " >&6; }
3251         if (srcdir=${srcdir}/libitm; \
3252                 . ${srcdir}/configure.tgt; \
3253                 test -n "$UNSUPPORTED")
3254         then
3255             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257             noconfigdirs="$noconfigdirs target-libitm"
3258         else
3259             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3260 $as_echo "yes" >&6; }
3261         fi
3262     fi
3263 fi
3264
3265 # Disable libsanitizer on unsupported systems.
3266 if test -d ${srcdir}/libsanitizer; then
3267     if test x$enable_libsanitizer = x; then
3268         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3269 $as_echo_n "checking for libsanitizer support... " >&6; }
3270         if (srcdir=${srcdir}/libsanitizer; \
3271                 . ${srcdir}/configure.tgt; \
3272                 test -n "$UNSUPPORTED")
3273         then
3274             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276             noconfigdirs="$noconfigdirs target-libsanitizer"
3277         else
3278             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3279 $as_echo "yes" >&6; }
3280         fi
3281     fi
3282 fi
3283
3284 # Disable libvtv on unsupported systems.
3285 if test -d ${srcdir}/libvtv; then
3286     if test x$enable_libvtv = x; then
3287         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3288 $as_echo_n "checking for libvtv support... " >&6; }
3289         if (srcdir=${srcdir}/libvtv; \
3290                 . ${srcdir}/configure.tgt; \
3291                 test "$VTV_SUPPORTED" != "yes")
3292         then
3293             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3295             noconfigdirs="$noconfigdirs target-libvtv"
3296         else
3297             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3298 $as_echo "yes" >&6; }
3299         fi
3300     fi
3301 fi
3302
3303
3304 # Enable libmpx on supported systems by request.
3305 if test -d ${srcdir}/libmpx; then
3306     if test x$enable_libmpx = xyes; then
3307        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3308 $as_echo_n "checking for libmpx support... " >&6; }
3309        if (srcdir=${srcdir}/libmpx; \
3310                . ${srcdir}/configure.tgt; \
3311                test "$LIBMPX_SUPPORTED" != "yes")
3312        then
3313            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3315            noconfigdirs="$noconfigdirs target-libmpx"
3316        else
3317            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318 $as_echo "yes" >&6; }
3319        fi
3320     else
3321        noconfigdirs="$noconfigdirs target-libmpx"
3322     fi
3323 fi
3324
3325
3326
3327 # Disable libquadmath for some systems.
3328 case "${target}" in
3329   avr-*-*)
3330     noconfigdirs="$noconfigdirs target-libquadmath"
3331     ;;
3332   # libquadmath is unused on AIX and libquadmath build process use of
3333   # LD_LIBRARY_PATH can break AIX bootstrap.
3334   powerpc-*-aix* | rs6000-*-aix*)
3335     noconfigdirs="$noconfigdirs target-libquadmath"
3336     ;;
3337 esac
3338
3339 # Disable libssp for some systems.
3340 case "${target}" in
3341   avr-*-*)
3342     # No hosted I/O support.
3343     noconfigdirs="$noconfigdirs target-libssp"
3344     ;;
3345   powerpc-*-aix* | rs6000-*-aix*)
3346     noconfigdirs="$noconfigdirs target-libssp"
3347     ;;
3348   rl78-*-*)
3349     # libssp uses a misaligned load to trigger a fault, but the RL78
3350     # doesn't fault for those - instead, it gives a build-time error
3351     # for explicit misaligned loads.
3352     noconfigdirs="$noconfigdirs target-libssp"
3353     ;;
3354   visium-*-*)
3355     # No hosted I/O support.
3356     noconfigdirs="$noconfigdirs target-libssp"
3357     ;;
3358 esac
3359
3360 # Disable libstdc++-v3 for some systems.
3361 # Allow user to override this if they pass --enable-libstdc++-v3
3362 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3363   case "${target}" in
3364     *-*-vxworks*)
3365       # VxWorks uses the Dinkumware C++ library.
3366       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3367       ;;
3368     arm*-wince-pe*)
3369       # the C++ libraries don't build on top of CE's C libraries
3370       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3371       ;;
3372     avr-*-*)
3373       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3374       ;;
3375   esac
3376 fi
3377
3378 # Disable Fortran for some systems.
3379 case "${target}" in
3380   mmix-*-*)
3381     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3382     unsupported_languages="$unsupported_languages fortran"
3383     ;;
3384 esac
3385
3386 # Disable Java if libffi is not supported.
3387 case "${target}" in
3388   aarch64-*-*)
3389     ;;
3390   alpha*-*-*)
3391     ;;
3392   arm*-*-*)
3393     ;;
3394   cris-*-*)
3395     ;;
3396   frv-*-*)
3397     ;;
3398   hppa*-*-linux*)
3399     ;;
3400   hppa*-*-hpux*)
3401     ;;
3402   i?86-*-*)
3403     ;;
3404   ia64*-*-*)
3405     ;;
3406   m32r*-*-*)
3407     ;;
3408   m68k-*-*)
3409     ;;
3410   mips*-*-rtems*)
3411     ;;
3412   mips*-*-linux*)
3413     ;;
3414   powerpc*-*-linux*)
3415     ;;
3416   powerpc-*-darwin*)
3417     ;;
3418   powerpc-*-aix* | rs6000-*-aix*)
3419     ;;
3420   powerpc-*-freebsd*)
3421     ;;
3422   powerpc64-*-freebsd*)
3423     ;;
3424   powerpc*-*-rtems*)
3425     ;;
3426   s390-*-* | s390x-*-*)
3427     ;;
3428   sh-*-* | sh[34]*-*-*)
3429     ;;
3430   sh64-*-* | sh5*-*-*)
3431     ;;
3432   sparc*-*-*)
3433     ;;
3434   x86_64-*-*)
3435     ;;
3436   *-*-*)
3437     unsupported_languages="$unsupported_languages java"
3438     ;;
3439 esac
3440
3441 # Disable Java, libgcj or related libraries for some systems.
3442 case "${target}" in
3443   powerpc-*-darwin*)
3444     ;;
3445   i[3456789]86-*-darwin*)
3446     ;;
3447   x86_64-*-darwin[912]*)
3448     ;;
3449   *-*-darwin*)
3450     noconfigdirs="$noconfigdirs ${libgcj}"
3451     ;;
3452   *-*-netware*)
3453     noconfigdirs="$noconfigdirs ${libgcj}"
3454     ;;
3455   *-*-rtems*)
3456     noconfigdirs="$noconfigdirs ${libgcj}"
3457     ;;
3458   *-*-tpf*)
3459     noconfigdirs="$noconfigdirs ${libgcj}"
3460     ;;
3461   *-*-uclinux*)
3462     noconfigdirs="$noconfigdirs ${libgcj}"
3463     ;;
3464   *-*-vxworks*)
3465     noconfigdirs="$noconfigdirs ${libgcj}"
3466     ;;
3467   alpha*-*-*vms*)
3468     noconfigdirs="$noconfigdirs ${libgcj}"
3469     ;;
3470   arm*-*-freebsd*)
3471     noconfigdirs="$noconfigdirs ${libgcj}"
3472     ;;
3473   arm-wince-pe)
3474     noconfigdirs="$noconfigdirs ${libgcj}"
3475     ;;
3476   arm*-*-symbianelf*)
3477     noconfigdirs="$noconfigdirs ${libgcj}"
3478     ;;
3479   bfin-*-*)
3480     noconfigdirs="$noconfigdirs target-boehm-gc"
3481     ;;
3482   cris-*-* | crisv32-*-*)
3483     unsupported_languages="$unsupported_languages java"
3484     case "${target}" in
3485       *-*-linux*)
3486         ;;
3487       *) # See PR46792 regarding target-libffi.
3488         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3489     esac
3490     ;;
3491   hppa*64*-*-linux*)
3492     # In this case, it's because the hppa64-linux target is for
3493     # the kernel only at this point and has no libc, and thus no
3494     # headers, crt*.o, etc., all of which are needed by these.
3495     unsupported_languages="$unsupported_languages java"
3496     ;;
3497   hppa*64*-*-hpux*)
3498     noconfigdirs="$noconfigdirs ${libgcj}"
3499     ;;
3500   hppa*-hp-hpux11*)
3501     ;;
3502   hppa*-*-hpux*)
3503     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3504     # build on HP-UX 10.20.
3505     noconfigdirs="$noconfigdirs ${libgcj}"
3506     ;;
3507   ia64*-*-*vms*)
3508     noconfigdirs="$noconfigdirs ${libgcj}"
3509     ;;
3510   i[3456789]86-w64-mingw*)
3511     noconfigdirs="$noconfigdirs ${libgcj}"
3512     ;;
3513   i[3456789]86-*-mingw*)
3514     noconfigdirs="$noconfigdirs ${libgcj}"
3515     ;;
3516   x86_64-*-mingw*)
3517     noconfigdirs="$noconfigdirs ${libgcj}"
3518     ;;
3519   mmix-*-*)
3520     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3521     ;;
3522   powerpc-*-aix*)
3523     # copied from rs6000-*-* entry
3524     noconfigdirs="$noconfigdirs ${libgcj}"
3525     ;;
3526   rs6000-*-aix*)
3527     noconfigdirs="$noconfigdirs ${libgcj}"
3528     ;;
3529   ft32-*-*)
3530     noconfigdirs="$noconfigdirs ${libgcj}"
3531     ;;
3532   *-*-lynxos*)
3533     noconfigdirs="$noconfigdirs ${libgcj}"
3534     ;;
3535 esac
3536
3537 # Disable the go frontend on systems where it is known to not work. Please keep
3538 # this in sync with contrib/config-list.mk.
3539 case "${target}" in
3540 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3541     unsupported_languages="$unsupported_languages go"
3542     ;;
3543 esac
3544
3545 # Disable libgo for some systems where it is known to not work.
3546 # For testing, you can easily override this with --enable-libgo.
3547 if test x$enable_libgo = x; then
3548     case "${target}" in
3549     *-*-darwin*)
3550         # PR 46986
3551         noconfigdirs="$noconfigdirs target-libgo"
3552         ;;
3553     *-*-cygwin* | *-*-mingw*)
3554         noconfigdirs="$noconfigdirs target-libgo"
3555         ;;
3556     *-*-aix*)
3557         noconfigdirs="$noconfigdirs target-libgo"
3558         ;;
3559     esac
3560 fi
3561
3562 # Default libgloss CPU subdirectory.
3563 libgloss_dir="$target_cpu"
3564
3565 case "${target}" in
3566   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3567     libgloss_dir=wince
3568     ;;
3569   aarch64*-*-* )
3570     libgloss_dir=aarch64
3571     ;;
3572   arm*-*-*)
3573     libgloss_dir=arm
3574     ;;
3575   cris-*-* | crisv32-*-*)
3576     libgloss_dir=cris
3577     ;;
3578   hppa*-*-*)
3579     libgloss_dir=pa
3580     ;;
3581   i[3456789]86-*-*)
3582     libgloss_dir=i386
3583     ;;
3584   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3585     libgloss_dir=m68hc11
3586     ;;
3587   m68*-*-* | fido-*-*)
3588     libgloss_dir=m68k
3589     ;;
3590   mips*-*-*)
3591     libgloss_dir=mips
3592     ;;
3593   powerpc*-*-*)
3594     libgloss_dir=rs6000
3595     ;;
3596   sparc*-*-*)
3597     libgloss_dir=sparc
3598     ;;
3599 esac
3600
3601 # Disable newlib and libgloss for various target OSes.
3602 case "${target}" in
3603   alpha*-dec-osf*)
3604     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605     ;;
3606   i[3456789]86-*-linux*)
3607     # This section makes it possible to build newlib natively on linux.
3608     # If we are using a cross compiler then don't configure newlib.
3609     if test x${is_cross_compiler} != xno ; then
3610       noconfigdirs="$noconfigdirs target-newlib"
3611     fi
3612     noconfigdirs="$noconfigdirs target-libgloss"
3613     # If we are not using a cross compiler, do configure newlib.
3614     # Note however, that newlib will only be configured in this situation
3615     # if the --with-newlib option has been given, because otherwise
3616     # 'target-newlib' will appear in skipdirs.
3617     ;;
3618   i[3456789]86-*-rdos*)
3619     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620     ;;
3621   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3622     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623     ;;
3624   sparc-*-sunos4*)
3625     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626     ;;
3627   *-*-aix*)
3628     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629     ;;
3630   *-*-beos*)
3631     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632     ;;
3633   *-*-chorusos)
3634     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635     ;;
3636   *-*-dragonfly*)
3637     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3638     ;;
3639   *-*-freebsd*)
3640     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3641     ;;
3642   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3643     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3644     ;;
3645   *-*-lynxos*)
3646     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3647     ;;
3648   *-*-mingw*)
3649     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650     ;;
3651   *-*-netbsd*)
3652     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653     ;;
3654   *-*-netware*)
3655     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656     ;;
3657   *-*-tpf*)
3658     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659     ;;
3660   *-*-uclinux*)
3661     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3662     ;;
3663   *-*-vxworks*)
3664     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665     ;;
3666 esac
3667
3668 case "${target}" in
3669   *-*-chorusos)
3670     ;;
3671   powerpc-*-darwin*)
3672     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3673     noconfigdirs="$noconfigdirs sim target-rda"
3674     ;;
3675   i[3456789]86-*-darwin*)
3676     noconfigdirs="$noconfigdirs ld gprof"
3677     noconfigdirs="$noconfigdirs sim target-rda"
3678     ;;
3679   x86_64-*-darwin[912]*)
3680     noconfigdirs="$noconfigdirs ld gas gprof"
3681     noconfigdirs="$noconfigdirs sim target-rda"
3682     ;;
3683   *-*-darwin*)
3684     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3685     noconfigdirs="$noconfigdirs sim target-rda"
3686     ;;
3687   *-*-dragonfly*)
3688     ;;
3689   *-*-freebsd*)
3690     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3691         && test -f /usr/local/include/gmp.h; then
3692       with_gmp=/usr/local
3693     fi
3694     ;;
3695   *-*-kaos*)
3696     # Remove unsupported stuff on all kaOS configurations.
3697     noconfigdirs="$noconfigdirs target-libgloss"
3698     ;;
3699   *-*-netbsd*)
3700     ;;
3701   *-*-netware*)
3702     ;;
3703   *-*-rtems*)
3704     noconfigdirs="$noconfigdirs target-libgloss"
3705     # this is not caught below because this stanza matches earlier
3706     case $target in
3707       or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3708     esac
3709     ;;
3710     # The tpf target doesn't support gdb yet.
3711   *-*-tpf*)
3712     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3713     ;;
3714   *-*-uclinux*)
3715     noconfigdirs="$noconfigdirs target-rda"
3716     ;;
3717   *-*-vxworks*)
3718     ;;
3719   alpha*-dec-osf*)
3720     # ld works, but does not support shared libraries.
3721     # gas doesn't generate exception information.
3722     noconfigdirs="$noconfigdirs gas ld"
3723     ;;
3724   alpha*-*-*vms*)
3725     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3726     ;;
3727   alpha*-*-*)
3728     # newlib is not 64 bit ready
3729     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3730     ;;
3731   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3732     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3733     ;;
3734   arc-*-*|arceb-*-*)
3735     noconfigdirs="$noconfigdirs target-libgloss"
3736     ;;
3737   arm-*-pe*)
3738     noconfigdirs="$noconfigdirs target-libgloss"
3739     ;;
3740   arm-*-riscix*)
3741     noconfigdirs="$noconfigdirs ld target-libgloss"
3742     ;;
3743   avr-*-rtems*)
3744     ;;
3745   avr-*-*)
3746     if test x${with_avrlibc} != xno; then
3747       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3748     fi
3749     ;;
3750   c4x-*-* | tic4x-*-*)
3751     noconfigdirs="$noconfigdirs target-libgloss"
3752     ;;
3753   tic54x-*-*)
3754     noconfigdirs="$noconfigdirs target-libgloss gdb"
3755     ;;
3756   d10v-*-*)
3757     noconfigdirs="$noconfigdirs target-libgloss"
3758     ;;
3759   d30v-*-*)
3760     noconfigdirs="$noconfigdirs gdb"
3761     ;;
3762   fr30-*-elf*)
3763     noconfigdirs="$noconfigdirs gdb"
3764     ;;
3765   ft32-*-*)
3766     noconfigdirs="$noconfigdirs target-rda gprof"
3767     ;;
3768   moxie-*-*)
3769     noconfigdirs="$noconfigdirs"
3770     ;;
3771   h8300*-*-*)
3772     noconfigdirs="$noconfigdirs target-libgloss"
3773     ;;
3774   h8500-*-*)
3775     noconfigdirs="$noconfigdirs target-libgloss"
3776     ;;
3777   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3778     ;;
3779   hppa*64*-*-hpux*)
3780     noconfigdirs="$noconfigdirs gdb"
3781     ;;
3782   hppa*-*-hpux11*)
3783     noconfigdirs="$noconfigdirs gdb ld"
3784     ;;
3785   hppa*64*-*-linux*)
3786     ;;
3787   hppa*-*-linux*)
3788     ;;
3789   hppa*-*-*elf* | \
3790   hppa*-*-lites* | \
3791   hppa*-*-openbsd* | \
3792   hppa*64*-*-*)
3793     ;;
3794   hppa*-*-pro*)
3795     ;;
3796   hppa*-*-*)
3797     noconfigdirs="$noconfigdirs ld"
3798     ;;
3799   i960-*-*)
3800     noconfigdirs="$noconfigdirs gdb"
3801     ;;
3802   ia64*-*-elf*)
3803     # No gdb support yet.
3804     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3805     ;;
3806   ia64*-**-hpux*)
3807     # No ld support yet.
3808     noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3809     ;;
3810   ia64*-*-*vms*)
3811     # No ld support yet.
3812     noconfigdirs="$noconfigdirs libgui itcl ld"
3813     ;;
3814   i[3456789]86-w64-mingw*)
3815     ;;
3816   i[3456789]86-*-mingw*)
3817     target_configdirs="$target_configdirs target-winsup"
3818     ;;
3819   *-*-cygwin*)
3820     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3821     noconfigdirs="$noconfigdirs target-libgloss"
3822     # always build newlib if winsup directory is present.
3823     if test -d "$srcdir/winsup/cygwin"; then
3824       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3825     elif test -d "$srcdir/newlib"; then
3826       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3827     fi
3828     ;;
3829   i[3456789]86-*-pe)
3830     noconfigdirs="$noconfigdirs target-libgloss"
3831     ;;
3832   i[3456789]86-*-sco3.2v5*)
3833     # The linker does not yet know about weak symbols in COFF,
3834     # and is not configured to handle mixed ELF and COFF.
3835     noconfigdirs="$noconfigdirs ld target-libgloss"
3836     ;;
3837   i[3456789]86-*-sco*)
3838     noconfigdirs="$noconfigdirs gprof target-libgloss"
3839     ;;
3840   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3841     noconfigdirs="$noconfigdirs target-libgloss"
3842     ;;
3843   i[3456789]86-*-sysv4*)
3844     noconfigdirs="$noconfigdirs target-libgloss"
3845     ;;
3846   i[3456789]86-*-beos*)
3847     noconfigdirs="$noconfigdirs gdb"
3848     ;;
3849   i[3456789]86-*-rdos*)
3850     noconfigdirs="$noconfigdirs gdb"
3851     ;;
3852   mmix-*-*)
3853     noconfigdirs="$noconfigdirs gdb"
3854     ;;
3855   mt-*-*)
3856     noconfigdirs="$noconfigdirs sim"
3857     ;;
3858   powerpc-*-aix*)
3859     # copied from rs6000-*-* entry
3860     noconfigdirs="$noconfigdirs gprof"
3861     ;;
3862   powerpc*-*-winnt* | powerpc*-*-pe*)
3863     target_configdirs="$target_configdirs target-winsup"
3864     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3865     # always build newlib.
3866     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3867     ;;
3868     # This is temporary until we can link against shared libraries
3869   powerpcle-*-solaris*)
3870     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3871     ;;
3872   powerpc-*-beos*)
3873     noconfigdirs="$noconfigdirs gdb"
3874     ;;
3875   rs6000-*-lynxos*)
3876     noconfigdirs="$noconfigdirs gprof"
3877     ;;
3878   rs6000-*-aix*)
3879     noconfigdirs="$noconfigdirs gprof"
3880     ;;
3881   rs6000-*-*)
3882     noconfigdirs="$noconfigdirs gprof"
3883     ;;
3884   m68k-apollo-*)
3885     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3886     ;;
3887   microblaze*)
3888     noconfigdirs="$noconfigdirs gprof"
3889     ;;
3890   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3891     if test x$with_newlib = xyes; then
3892       noconfigdirs="$noconfigdirs gprof"
3893     fi
3894     ;;
3895   mips*-*-irix5*)
3896     noconfigdirs="$noconfigdirs gprof target-libgloss"
3897     ;;
3898   mips*-*-irix6*)
3899     noconfigdirs="$noconfigdirs gprof target-libgloss"
3900     ;;
3901   mips*-*-bsd*)
3902     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3903     ;;
3904   mips*-*-linux*)
3905     ;;
3906   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3907   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3908     noconfigdirs="$noconfigdirs ld gas gprof"
3909     ;;
3910   mips*-*-*)
3911     noconfigdirs="$noconfigdirs gprof"
3912     ;;
3913   nds32*-*-*)
3914     noconfigdirs="$noconfigdirs gdb"
3915     ;;
3916   nvptx*-*-*)
3917     # nvptx is just a compiler
3918     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3919     ;;
3920   or1k*-*-*)
3921     noconfigdirs="$noconfigdirs gdb"
3922     ;;
3923   sh-*-* | sh64-*-*)
3924     case "${target}" in
3925       sh*-*-elf)
3926          ;;
3927       *)
3928          noconfigdirs="$noconfigdirs target-libgloss" ;;
3929     esac
3930     ;;
3931   sparc-*-sunos4*)
3932     if test x${is_cross_compiler} = xno ; then
3933            use_gnu_ld=no
3934     fi
3935     ;;
3936   tic6x-*-*)
3937     noconfigdirs="$noconfigdirs sim"
3938     ;;
3939   tilepro*-*-* | tilegx*-*-*)
3940     noconfigdirs="$noconfigdirs sim"
3941     ;;
3942   v810-*-*)
3943     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3944     ;;
3945   vax-*-*)
3946     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3947     ;;
3948 esac
3949
3950 # If we aren't building newlib, then don't build libgloss, since libgloss
3951 # depends upon some newlib header files.
3952 case "${noconfigdirs}" in
3953   *target-libgloss*) ;;
3954   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3955 esac
3956
3957 # Work in distributions that contain no compiler tools, like Autoconf.
3958 host_makefile_frag=/dev/null
3959 if test -d ${srcdir}/config ; then
3960 case "${host}" in
3961   i[3456789]86-*-msdosdjgpp*)
3962     host_makefile_frag="config/mh-djgpp"
3963     ;;
3964   *-cygwin*)
3965
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3967 $as_echo_n "checking to see if cat works as expected... " >&6; }
3968 echo a >cygwin-cat-check
3969 if test `cat cygwin-cat-check` = a ; then
3970   rm cygwin-cat-check
3971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3972 $as_echo "yes" >&6; }
3973 else
3974   rm cygwin-cat-check
3975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 $as_echo "no" >&6; }
3977   as_fn_error "The cat command does not ignore carriage return characters.
3978   Please either mount the build directory in binary mode or run the following
3979   commands before running any configure script:
3980 set -o igncr
3981 export SHELLOPTS
3982   " "$LINENO" 5
3983 fi
3984
3985     host_makefile_frag="config/mh-cygwin"
3986     ;;
3987   *-mingw*)
3988     host_makefile_frag="config/mh-mingw"
3989     ;;
3990   hppa*-hp-hpux10*)
3991     host_makefile_frag="config/mh-pa-hpux10"
3992     ;;
3993   hppa*-hp-hpux*)
3994     host_makefile_frag="config/mh-pa"
3995     ;;
3996   hppa*-*)
3997     host_makefile_frag="config/mh-pa"
3998     ;;
3999   *-*-darwin*)
4000     host_makefile_frag="config/mh-darwin"
4001     ;;
4002   powerpc-*-aix*)
4003     host_makefile_frag="config/mh-ppc-aix"
4004     ;;
4005   rs6000-*-aix*)
4006     host_makefile_frag="config/mh-ppc-aix"
4007     ;;
4008 esac
4009 fi
4010
4011 if test "${build}" != "${host}" ; then
4012   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4013   AS_FOR_BUILD=${AS_FOR_BUILD-as}
4014   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4015   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4016   GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4017   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4018   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4019   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4020   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4021   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4022   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4023   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4024   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4025 else
4026   AR_FOR_BUILD="\$(AR)"
4027   AS_FOR_BUILD="\$(AS)"
4028   CC_FOR_BUILD="\$(CC)"
4029   CXX_FOR_BUILD="\$(CXX)"
4030   GCJ_FOR_BUILD="\$(GCJ)"
4031   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4032   GOC_FOR_BUILD="\$(GOC)"
4033   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4034   LD_FOR_BUILD="\$(LD)"
4035   NM_FOR_BUILD="\$(NM)"
4036   RANLIB_FOR_BUILD="\$(RANLIB)"
4037   WINDRES_FOR_BUILD="\$(WINDRES)"
4038   WINDMC_FOR_BUILD="\$(WINDMC)"
4039 fi
4040
4041 ac_ext=c
4042 ac_cpp='$CPP $CPPFLAGS'
4043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046 if test -n "$ac_tool_prefix"; then
4047   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4048 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050 $as_echo_n "checking for $ac_word... " >&6; }
4051 if test "${ac_cv_prog_CC+set}" = set; then :
4052   $as_echo_n "(cached) " >&6
4053 else
4054   if test -n "$CC"; then
4055   ac_cv_prog_CC="$CC" # Let the user override the test.
4056 else
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH
4059 do
4060   IFS=$as_save_IFS
4061   test -z "$as_dir" && as_dir=.
4062     for ac_exec_ext in '' $ac_executable_extensions; do
4063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4064     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4066     break 2
4067   fi
4068 done
4069   done
4070 IFS=$as_save_IFS
4071
4072 fi
4073 fi
4074 CC=$ac_cv_prog_CC
4075 if test -n "$CC"; then
4076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4077 $as_echo "$CC" >&6; }
4078 else
4079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4081 fi
4082
4083
4084 fi
4085 if test -z "$ac_cv_prog_CC"; then
4086   ac_ct_CC=$CC
4087   # Extract the first word of "gcc", so it can be a program name with args.
4088 set dummy gcc; ac_word=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4092   $as_echo_n "(cached) " >&6
4093 else
4094   if test -n "$ac_ct_CC"; then
4095   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4096 else
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4099 do
4100   IFS=$as_save_IFS
4101   test -z "$as_dir" && as_dir=.
4102     for ac_exec_ext in '' $ac_executable_extensions; do
4103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4104     ac_cv_prog_ac_ct_CC="gcc"
4105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106     break 2
4107   fi
4108 done
4109   done
4110 IFS=$as_save_IFS
4111
4112 fi
4113 fi
4114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4115 if test -n "$ac_ct_CC"; then
4116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4117 $as_echo "$ac_ct_CC" >&6; }
4118 else
4119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4121 fi
4122
4123   if test "x$ac_ct_CC" = x; then
4124     CC=""
4125   else
4126     case $cross_compiling:$ac_tool_warned in
4127 yes:)
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4130 ac_tool_warned=yes ;;
4131 esac
4132     CC=$ac_ct_CC
4133   fi
4134 else
4135   CC="$ac_cv_prog_CC"
4136 fi
4137
4138 if test -z "$CC"; then
4139           if test -n "$ac_tool_prefix"; then
4140     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4141 set dummy ${ac_tool_prefix}cc; ac_word=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if test "${ac_cv_prog_CC+set}" = set; then :
4145   $as_echo_n "(cached) " >&6
4146 else
4147   if test -n "$CC"; then
4148   ac_cv_prog_CC="$CC" # Let the user override the test.
4149 else
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153   IFS=$as_save_IFS
4154   test -z "$as_dir" && as_dir=.
4155     for ac_exec_ext in '' $ac_executable_extensions; do
4156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4157     ac_cv_prog_CC="${ac_tool_prefix}cc"
4158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4159     break 2
4160   fi
4161 done
4162   done
4163 IFS=$as_save_IFS
4164
4165 fi
4166 fi
4167 CC=$ac_cv_prog_CC
4168 if test -n "$CC"; then
4169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4170 $as_echo "$CC" >&6; }
4171 else
4172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4174 fi
4175
4176
4177   fi
4178 fi
4179 if test -z "$CC"; then
4180   # Extract the first word of "cc", so it can be a program name with args.
4181 set dummy cc; ac_word=$2
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 $as_echo_n "checking for $ac_word... " >&6; }
4184 if test "${ac_cv_prog_CC+set}" = set; then :
4185   $as_echo_n "(cached) " >&6
4186 else
4187   if test -n "$CC"; then
4188   ac_cv_prog_CC="$CC" # Let the user override the test.
4189 else
4190   ac_prog_rejected=no
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194   IFS=$as_save_IFS
4195   test -z "$as_dir" && as_dir=.
4196     for ac_exec_ext in '' $ac_executable_extensions; do
4197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4198     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4199        ac_prog_rejected=yes
4200        continue
4201      fi
4202     ac_cv_prog_CC="cc"
4203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204     break 2
4205   fi
4206 done
4207   done
4208 IFS=$as_save_IFS
4209
4210 if test $ac_prog_rejected = yes; then
4211   # We found a bogon in the path, so make sure we never use it.
4212   set dummy $ac_cv_prog_CC
4213   shift
4214   if test $# != 0; then
4215     # We chose a different compiler from the bogus one.
4216     # However, it has the same basename, so the bogon will be chosen
4217     # first if we set CC to just the basename; use the full file name.
4218     shift
4219     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4220   fi
4221 fi
4222 fi
4223 fi
4224 CC=$ac_cv_prog_CC
4225 if test -n "$CC"; then
4226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4227 $as_echo "$CC" >&6; }
4228 else
4229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230 $as_echo "no" >&6; }
4231 fi
4232
4233
4234 fi
4235 if test -z "$CC"; then
4236   if test -n "$ac_tool_prefix"; then
4237   for ac_prog in cl.exe
4238   do
4239     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4240 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242 $as_echo_n "checking for $ac_word... " >&6; }
4243 if test "${ac_cv_prog_CC+set}" = set; then :
4244   $as_echo_n "(cached) " >&6
4245 else
4246   if test -n "$CC"; then
4247   ac_cv_prog_CC="$CC" # Let the user override the test.
4248 else
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4251 do
4252   IFS=$as_save_IFS
4253   test -z "$as_dir" && as_dir=.
4254     for ac_exec_ext in '' $ac_executable_extensions; do
4255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258     break 2
4259   fi
4260 done
4261   done
4262 IFS=$as_save_IFS
4263
4264 fi
4265 fi
4266 CC=$ac_cv_prog_CC
4267 if test -n "$CC"; then
4268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4269 $as_echo "$CC" >&6; }
4270 else
4271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272 $as_echo "no" >&6; }
4273 fi
4274
4275
4276     test -n "$CC" && break
4277   done
4278 fi
4279 if test -z "$CC"; then
4280   ac_ct_CC=$CC
4281   for ac_prog in cl.exe
4282 do
4283   # Extract the first word of "$ac_prog", so it can be a program name with args.
4284 set dummy $ac_prog; ac_word=$2
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4286 $as_echo_n "checking for $ac_word... " >&6; }
4287 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4288   $as_echo_n "(cached) " >&6
4289 else
4290   if test -n "$ac_ct_CC"; then
4291   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296   IFS=$as_save_IFS
4297   test -z "$as_dir" && as_dir=.
4298     for ac_exec_ext in '' $ac_executable_extensions; do
4299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4300     ac_cv_prog_ac_ct_CC="$ac_prog"
4301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4302     break 2
4303   fi
4304 done
4305   done
4306 IFS=$as_save_IFS
4307
4308 fi
4309 fi
4310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4311 if test -n "$ac_ct_CC"; then
4312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4313 $as_echo "$ac_ct_CC" >&6; }
4314 else
4315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4317 fi
4318
4319
4320   test -n "$ac_ct_CC" && break
4321 done
4322
4323   if test "x$ac_ct_CC" = x; then
4324     CC=""
4325   else
4326     case $cross_compiling:$ac_tool_warned in
4327 yes:)
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4330 ac_tool_warned=yes ;;
4331 esac
4332     CC=$ac_ct_CC
4333   fi
4334 fi
4335
4336 fi
4337
4338
4339 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4341 as_fn_error "no acceptable C compiler found in \$PATH
4342 See \`config.log' for more details." "$LINENO" 5; }
4343
4344 # Provide some information about the compiler.
4345 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4346 set X $ac_compile
4347 ac_compiler=$2
4348 for ac_option in --version -v -V -qversion; do
4349   { { ac_try="$ac_compiler $ac_option >&5"
4350 case "(($ac_try" in
4351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352   *) ac_try_echo=$ac_try;;
4353 esac
4354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4355 $as_echo "$ac_try_echo"; } >&5
4356   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4357   ac_status=$?
4358   if test -s conftest.err; then
4359     sed '10a\
4360 ... rest of stderr output deleted ...
4361          10q' conftest.err >conftest.er1
4362     cat conftest.er1 >&5
4363     rm -f conftest.er1 conftest.err
4364   fi
4365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4366   test $ac_status = 0; }
4367 done
4368
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h.  */
4371
4372 int
4373 main ()
4374 {
4375
4376   ;
4377   return 0;
4378 }
4379 _ACEOF
4380 ac_clean_files_save=$ac_clean_files
4381 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4382 # Try to create an executable without -o first, disregard a.out.
4383 # It will help us diagnose broken compilers, and finding out an intuition
4384 # of exeext.
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4386 $as_echo_n "checking for C compiler default output file name... " >&6; }
4387 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4388
4389 # The possible output files:
4390 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4391
4392 ac_rmfiles=
4393 for ac_file in $ac_files
4394 do
4395   case $ac_file in
4396     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4397     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4398   esac
4399 done
4400 rm -f $ac_rmfiles
4401
4402 if { { ac_try="$ac_link_default"
4403 case "(($ac_try" in
4404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405   *) ac_try_echo=$ac_try;;
4406 esac
4407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408 $as_echo "$ac_try_echo"; } >&5
4409   (eval "$ac_link_default") 2>&5
4410   ac_status=$?
4411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412   test $ac_status = 0; }; then :
4413   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4414 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4415 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4416 # so that the user can short-circuit this test for compilers unknown to
4417 # Autoconf.
4418 for ac_file in $ac_files ''
4419 do
4420   test -f "$ac_file" || continue
4421   case $ac_file in
4422     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4423         ;;
4424     [ab].out )
4425         # We found the default executable, but exeext='' is most
4426         # certainly right.
4427         break;;
4428     *.* )
4429         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4430         then :; else
4431            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4432         fi
4433         # We set ac_cv_exeext here because the later test for it is not
4434         # safe: cross compilers may not add the suffix if given an `-o'
4435         # argument, so we may need to know it at that point already.
4436         # Even if this section looks crufty: it has the advantage of
4437         # actually working.
4438         break;;
4439     * )
4440         break;;
4441   esac
4442 done
4443 test "$ac_cv_exeext" = no && ac_cv_exeext=
4444
4445 else
4446   ac_file=''
4447 fi
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4449 $as_echo "$ac_file" >&6; }
4450 if test -z "$ac_file"; then :
4451   $as_echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4453
4454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4456 { as_fn_set_status 77
4457 as_fn_error "C compiler cannot create executables
4458 See \`config.log' for more details." "$LINENO" 5; }; }
4459 fi
4460 ac_exeext=$ac_cv_exeext
4461
4462 # Check that the compiler produces executables we can run.  If not, either
4463 # the compiler is broken, or we cross compile.
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4465 $as_echo_n "checking whether the C compiler works... " >&6; }
4466 # If not cross compiling, check that we can run a simple program.
4467 if test "$cross_compiling" != yes; then
4468   if { ac_try='./$ac_file'
4469   { { case "(($ac_try" in
4470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471   *) ac_try_echo=$ac_try;;
4472 esac
4473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4474 $as_echo "$ac_try_echo"; } >&5
4475   (eval "$ac_try") 2>&5
4476   ac_status=$?
4477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4478   test $ac_status = 0; }; }; then
4479     cross_compiling=no
4480   else
4481     if test "$cross_compiling" = maybe; then
4482         cross_compiling=yes
4483     else
4484         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4486 as_fn_error "cannot run C compiled programs.
4487 If you meant to cross compile, use \`--host'.
4488 See \`config.log' for more details." "$LINENO" 5; }
4489     fi
4490   fi
4491 fi
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4493 $as_echo "yes" >&6; }
4494
4495 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4496 ac_clean_files=$ac_clean_files_save
4497 # Check that the compiler produces executables we can run.  If not, either
4498 # the compiler is broken, or we cross compile.
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4500 $as_echo_n "checking whether we are cross compiling... " >&6; }
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4502 $as_echo "$cross_compiling" >&6; }
4503
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4505 $as_echo_n "checking for suffix of executables... " >&6; }
4506 if { { ac_try="$ac_link"
4507 case "(($ac_try" in
4508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509   *) ac_try_echo=$ac_try;;
4510 esac
4511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4512 $as_echo "$ac_try_echo"; } >&5
4513   (eval "$ac_link") 2>&5
4514   ac_status=$?
4515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516   test $ac_status = 0; }; then :
4517   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4518 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4519 # work properly (i.e., refer to `conftest.exe'), while it won't with
4520 # `rm'.
4521 for ac_file in conftest.exe conftest conftest.*; do
4522   test -f "$ac_file" || continue
4523   case $ac_file in
4524     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4525     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4526           break;;
4527     * ) break;;
4528   esac
4529 done
4530 else
4531   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4533 as_fn_error "cannot compute suffix of executables: cannot compile and link
4534 See \`config.log' for more details." "$LINENO" 5; }
4535 fi
4536 rm -f conftest$ac_cv_exeext
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4538 $as_echo "$ac_cv_exeext" >&6; }
4539
4540 rm -f conftest.$ac_ext
4541 EXEEXT=$ac_cv_exeext
4542 ac_exeext=$EXEEXT
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4544 $as_echo_n "checking for suffix of object files... " >&6; }
4545 if test "${ac_cv_objext+set}" = set; then :
4546   $as_echo_n "(cached) " >&6
4547 else
4548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h.  */
4550
4551 int
4552 main ()
4553 {
4554
4555   ;
4556   return 0;
4557 }
4558 _ACEOF
4559 rm -f conftest.o conftest.obj
4560 if { { ac_try="$ac_compile"
4561 case "(($ac_try" in
4562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563   *) ac_try_echo=$ac_try;;
4564 esac
4565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4566 $as_echo "$ac_try_echo"; } >&5
4567   (eval "$ac_compile") 2>&5
4568   ac_status=$?
4569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4570   test $ac_status = 0; }; then :
4571   for ac_file in conftest.o conftest.obj conftest.*; do
4572   test -f "$ac_file" || continue;
4573   case $ac_file in
4574     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4575     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4576        break;;
4577   esac
4578 done
4579 else
4580   $as_echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4582
4583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4585 as_fn_error "cannot compute suffix of object files: cannot compile
4586 See \`config.log' for more details." "$LINENO" 5; }
4587 fi
4588 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4589 fi
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4591 $as_echo "$ac_cv_objext" >&6; }
4592 OBJEXT=$ac_cv_objext
4593 ac_objext=$OBJEXT
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4595 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4596 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4597   $as_echo_n "(cached) " >&6
4598 else
4599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h.  */
4601
4602 int
4603 main ()
4604 {
4605 #ifndef __GNUC__
4606        choke me
4607 #endif
4608
4609   ;
4610   return 0;
4611 }
4612 _ACEOF
4613 if ac_fn_c_try_compile "$LINENO"; then :
4614   ac_compiler_gnu=yes
4615 else
4616   ac_compiler_gnu=no
4617 fi
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4620
4621 fi
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4623 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4624 if test $ac_compiler_gnu = yes; then
4625   GCC=yes
4626 else
4627   GCC=
4628 fi
4629 ac_test_CFLAGS=${CFLAGS+set}
4630 ac_save_CFLAGS=$CFLAGS
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4632 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4633 if test "${ac_cv_prog_cc_g+set}" = set; then :
4634   $as_echo_n "(cached) " >&6
4635 else
4636   ac_save_c_werror_flag=$ac_c_werror_flag
4637    ac_c_werror_flag=yes
4638    ac_cv_prog_cc_g=no
4639    CFLAGS="-g"
4640    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h.  */
4642
4643 int
4644 main ()
4645 {
4646
4647   ;
4648   return 0;
4649 }
4650 _ACEOF
4651 if ac_fn_c_try_compile "$LINENO"; then :
4652   ac_cv_prog_cc_g=yes
4653 else
4654   CFLAGS=""
4655       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h.  */
4657
4658 int
4659 main ()
4660 {
4661
4662   ;
4663   return 0;
4664 }
4665 _ACEOF
4666 if ac_fn_c_try_compile "$LINENO"; then :
4667
4668 else
4669   ac_c_werror_flag=$ac_save_c_werror_flag
4670          CFLAGS="-g"
4671          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h.  */
4673
4674 int
4675 main ()
4676 {
4677
4678   ;
4679   return 0;
4680 }
4681 _ACEOF
4682 if ac_fn_c_try_compile "$LINENO"; then :
4683   ac_cv_prog_cc_g=yes
4684 fi
4685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686 fi
4687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688 fi
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690    ac_c_werror_flag=$ac_save_c_werror_flag
4691 fi
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4693 $as_echo "$ac_cv_prog_cc_g" >&6; }
4694 if test "$ac_test_CFLAGS" = set; then
4695   CFLAGS=$ac_save_CFLAGS
4696 elif test $ac_cv_prog_cc_g = yes; then
4697   if test "$GCC" = yes; then
4698     CFLAGS="-g -O2"
4699   else
4700     CFLAGS="-g"
4701   fi
4702 else
4703   if test "$GCC" = yes; then
4704     CFLAGS="-O2"
4705   else
4706     CFLAGS=
4707   fi
4708 fi
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4710 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4711 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4712   $as_echo_n "(cached) " >&6
4713 else
4714   ac_cv_prog_cc_c89=no
4715 ac_save_CC=$CC
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h.  */
4718 #include <stdarg.h>
4719 #include <stdio.h>
4720 #include <sys/types.h>
4721 #include <sys/stat.h>
4722 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4723 struct buf { int x; };
4724 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4725 static char *e (p, i)
4726      char **p;
4727      int i;
4728 {
4729   return p[i];
4730 }
4731 static char *f (char * (*g) (char **, int), char **p, ...)
4732 {
4733   char *s;
4734   va_list v;
4735   va_start (v,p);
4736   s = g (p, va_arg (v,int));
4737   va_end (v);
4738   return s;
4739 }
4740
4741 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4742    function prototypes and stuff, but not '\xHH' hex character constants.
4743    These don't provoke an error unfortunately, instead are silently treated
4744    as 'x'.  The following induces an error, until -std is added to get
4745    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4746    array size at least.  It's necessary to write '\x00'==0 to get something
4747    that's true only with -std.  */
4748 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4749
4750 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4751    inside strings and character constants.  */
4752 #define FOO(x) 'x'
4753 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4754
4755 int test (int i, double x);
4756 struct s1 {int (*f) (int a);};
4757 struct s2 {int (*f) (double a);};
4758 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4759 int argc;
4760 char **argv;
4761 int
4762 main ()
4763 {
4764 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4765   ;
4766   return 0;
4767 }
4768 _ACEOF
4769 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4770         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4771 do
4772   CC="$ac_save_CC $ac_arg"
4773   if ac_fn_c_try_compile "$LINENO"; then :
4774   ac_cv_prog_cc_c89=$ac_arg
4775 fi
4776 rm -f core conftest.err conftest.$ac_objext
4777   test "x$ac_cv_prog_cc_c89" != "xno" && break
4778 done
4779 rm -f conftest.$ac_ext
4780 CC=$ac_save_CC
4781
4782 fi
4783 # AC_CACHE_VAL
4784 case "x$ac_cv_prog_cc_c89" in
4785   x)
4786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4787 $as_echo "none needed" >&6; } ;;
4788   xno)
4789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4790 $as_echo "unsupported" >&6; } ;;
4791   *)
4792     CC="$CC $ac_cv_prog_cc_c89"
4793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4794 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4795 esac
4796 if test "x$ac_cv_prog_cc_c89" != xno; then :
4797
4798 fi
4799
4800 ac_ext=c
4801 ac_cpp='$CPP $CPPFLAGS'
4802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4805
4806 ac_ext=cpp
4807 ac_cpp='$CXXCPP $CPPFLAGS'
4808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4811 if test -z "$CXX"; then
4812   if test -n "$CCC"; then
4813     CXX=$CCC
4814   else
4815     if test -n "$ac_tool_prefix"; then
4816   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4817   do
4818     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821 $as_echo_n "checking for $ac_word... " >&6; }
4822 if test "${ac_cv_prog_CXX+set}" = set; then :
4823   $as_echo_n "(cached) " >&6
4824 else
4825   if test -n "$CXX"; then
4826   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4827 else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4830 do
4831   IFS=$as_save_IFS
4832   test -z "$as_dir" && as_dir=.
4833     for ac_exec_ext in '' $ac_executable_extensions; do
4834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4837     break 2
4838   fi
4839 done
4840   done
4841 IFS=$as_save_IFS
4842
4843 fi
4844 fi
4845 CXX=$ac_cv_prog_CXX
4846 if test -n "$CXX"; then
4847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4848 $as_echo "$CXX" >&6; }
4849 else
4850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 $as_echo "no" >&6; }
4852 fi
4853
4854
4855     test -n "$CXX" && break
4856   done
4857 fi
4858 if test -z "$CXX"; then
4859   ac_ct_CXX=$CXX
4860   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4861 do
4862   # Extract the first word of "$ac_prog", so it can be a program name with args.
4863 set dummy $ac_prog; ac_word=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4867   $as_echo_n "(cached) " >&6
4868 else
4869   if test -n "$ac_ct_CXX"; then
4870   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   test -z "$as_dir" && as_dir=.
4877     for ac_exec_ext in '' $ac_executable_extensions; do
4878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879     ac_cv_prog_ac_ct_CXX="$ac_prog"
4880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881     break 2
4882   fi
4883 done
4884   done
4885 IFS=$as_save_IFS
4886
4887 fi
4888 fi
4889 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4890 if test -n "$ac_ct_CXX"; then
4891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4892 $as_echo "$ac_ct_CXX" >&6; }
4893 else
4894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4896 fi
4897
4898
4899   test -n "$ac_ct_CXX" && break
4900 done
4901
4902   if test "x$ac_ct_CXX" = x; then
4903     CXX="g++"
4904   else
4905     case $cross_compiling:$ac_tool_warned in
4906 yes:)
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4909 ac_tool_warned=yes ;;
4910 esac
4911     CXX=$ac_ct_CXX
4912   fi
4913 fi
4914
4915   fi
4916 fi
4917 # Provide some information about the compiler.
4918 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4919 set X $ac_compile
4920 ac_compiler=$2
4921 for ac_option in --version -v -V -qversion; do
4922   { { ac_try="$ac_compiler $ac_option >&5"
4923 case "(($ac_try" in
4924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925   *) ac_try_echo=$ac_try;;
4926 esac
4927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4928 $as_echo "$ac_try_echo"; } >&5
4929   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4930   ac_status=$?
4931   if test -s conftest.err; then
4932     sed '10a\
4933 ... rest of stderr output deleted ...
4934          10q' conftest.err >conftest.er1
4935     cat conftest.er1 >&5
4936     rm -f conftest.er1 conftest.err
4937   fi
4938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4939   test $ac_status = 0; }
4940 done
4941
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4943 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4944 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4945   $as_echo_n "(cached) " >&6
4946 else
4947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h.  */
4949
4950 int
4951 main ()
4952 {
4953 #ifndef __GNUC__
4954        choke me
4955 #endif
4956
4957   ;
4958   return 0;
4959 }
4960 _ACEOF
4961 if ac_fn_cxx_try_compile "$LINENO"; then :
4962   ac_compiler_gnu=yes
4963 else
4964   ac_compiler_gnu=no
4965 fi
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4968
4969 fi
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4971 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4972 if test $ac_compiler_gnu = yes; then
4973   GXX=yes
4974 else
4975   GXX=
4976 fi
4977 ac_test_CXXFLAGS=${CXXFLAGS+set}
4978 ac_save_CXXFLAGS=$CXXFLAGS
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4980 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4981 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4982   $as_echo_n "(cached) " >&6
4983 else
4984   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4985    ac_cxx_werror_flag=yes
4986    ac_cv_prog_cxx_g=no
4987    CXXFLAGS="-g"
4988    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h.  */
4990
4991 int
4992 main ()
4993 {
4994
4995   ;
4996   return 0;
4997 }
4998 _ACEOF
4999 if ac_fn_cxx_try_compile "$LINENO"; then :
5000   ac_cv_prog_cxx_g=yes
5001 else
5002   CXXFLAGS=""
5003       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h.  */
5005
5006 int
5007 main ()
5008 {
5009
5010   ;
5011   return 0;
5012 }
5013 _ACEOF
5014 if ac_fn_cxx_try_compile "$LINENO"; then :
5015
5016 else
5017   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5018          CXXFLAGS="-g"
5019          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h.  */
5021
5022 int
5023 main ()
5024 {
5025
5026   ;
5027   return 0;
5028 }
5029 _ACEOF
5030 if ac_fn_cxx_try_compile "$LINENO"; then :
5031   ac_cv_prog_cxx_g=yes
5032 fi
5033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034 fi
5035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036 fi
5037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5041 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5042 if test "$ac_test_CXXFLAGS" = set; then
5043   CXXFLAGS=$ac_save_CXXFLAGS
5044 elif test $ac_cv_prog_cxx_g = yes; then
5045   if test "$GXX" = yes; then
5046     CXXFLAGS="-g -O2"
5047   else
5048     CXXFLAGS="-g"
5049   fi
5050 else
5051   if test "$GXX" = yes; then
5052     CXXFLAGS="-O2"
5053   else
5054     CXXFLAGS=
5055   fi
5056 fi
5057 ac_ext=c
5058 ac_cpp='$CPP $CPPFLAGS'
5059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5062
5063
5064 # We must set the default linker to the linker used by gcc for the correct
5065 # operation of libtool.  If LD is not defined and we are using gcc, try to
5066 # set the LD default to the ld used by gcc.
5067 if test -z "$LD"; then
5068   if test "$GCC" = yes; then
5069     case $build in
5070     *-*-mingw*)
5071       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5072     *)
5073       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5074     esac
5075     case $gcc_prog_ld in
5076     # Accept absolute paths.
5077     [\\/]* | [A-Za-z]:[\\/]*)
5078       LD="$gcc_prog_ld" ;;
5079     esac
5080   fi
5081 fi
5082
5083 # Check whether -static-libstdc++ -static-libgcc is supported.
5084 have_static_libs=no
5085 if test "$GCC" = yes; then
5086   saved_LDFLAGS="$LDFLAGS"
5087
5088   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5090 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5091   ac_ext=cpp
5092 ac_cpp='$CXXCPP $CPPFLAGS'
5093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5096
5097
5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h.  */
5100
5101 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5102 #error -static-libstdc++ not implemented
5103 #endif
5104 int main() {}
5105 _ACEOF
5106 if ac_fn_cxx_try_link "$LINENO"; then :
5107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5108 $as_echo "yes" >&6; }; have_static_libs=yes
5109 else
5110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5112 fi
5113 rm -f core conftest.err conftest.$ac_objext \
5114     conftest$ac_exeext conftest.$ac_ext
5115   ac_ext=c
5116 ac_cpp='$CPP $CPPFLAGS'
5117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120
5121
5122   LDFLAGS="$saved_LDFLAGS"
5123 fi
5124
5125
5126
5127
5128 if test -n "$ac_tool_prefix"; then
5129   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5130 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5134   $as_echo_n "(cached) " >&6
5135 else
5136   if test -n "$GNATBIND"; then
5137   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142   IFS=$as_save_IFS
5143   test -z "$as_dir" && as_dir=.
5144     for ac_exec_ext in '' $ac_executable_extensions; do
5145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5146     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148     break 2
5149   fi
5150 done
5151   done
5152 IFS=$as_save_IFS
5153
5154 fi
5155 fi
5156 GNATBIND=$ac_cv_prog_GNATBIND
5157 if test -n "$GNATBIND"; then
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5159 $as_echo "$GNATBIND" >&6; }
5160 else
5161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5163 fi
5164
5165
5166 fi
5167 if test -z "$ac_cv_prog_GNATBIND"; then
5168   ac_ct_GNATBIND=$GNATBIND
5169   # Extract the first word of "gnatbind", so it can be a program name with args.
5170 set dummy gnatbind; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5174   $as_echo_n "(cached) " >&6
5175 else
5176   if test -n "$ac_ct_GNATBIND"; then
5177   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5181 do
5182   IFS=$as_save_IFS
5183   test -z "$as_dir" && as_dir=.
5184     for ac_exec_ext in '' $ac_executable_extensions; do
5185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188     break 2
5189   fi
5190 done
5191   done
5192 IFS=$as_save_IFS
5193
5194 fi
5195 fi
5196 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5197 if test -n "$ac_ct_GNATBIND"; then
5198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5199 $as_echo "$ac_ct_GNATBIND" >&6; }
5200 else
5201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5203 fi
5204
5205   if test "x$ac_ct_GNATBIND" = x; then
5206     GNATBIND="no"
5207   else
5208     case $cross_compiling:$ac_tool_warned in
5209 yes:)
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212 ac_tool_warned=yes ;;
5213 esac
5214     GNATBIND=$ac_ct_GNATBIND
5215   fi
5216 else
5217   GNATBIND="$ac_cv_prog_GNATBIND"
5218 fi
5219
5220 if test -n "$ac_tool_prefix"; then
5221   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5222 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5226   $as_echo_n "(cached) " >&6
5227 else
5228   if test -n "$GNATMAKE"; then
5229   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234   IFS=$as_save_IFS
5235   test -z "$as_dir" && as_dir=.
5236     for ac_exec_ext in '' $ac_executable_extensions; do
5237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240     break 2
5241   fi
5242 done
5243   done
5244 IFS=$as_save_IFS
5245
5246 fi
5247 fi
5248 GNATMAKE=$ac_cv_prog_GNATMAKE
5249 if test -n "$GNATMAKE"; then
5250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5251 $as_echo "$GNATMAKE" >&6; }
5252 else
5253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5255 fi
5256
5257
5258 fi
5259 if test -z "$ac_cv_prog_GNATMAKE"; then
5260   ac_ct_GNATMAKE=$GNATMAKE
5261   # Extract the first word of "gnatmake", so it can be a program name with args.
5262 set dummy gnatmake; ac_word=$2
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264 $as_echo_n "checking for $ac_word... " >&6; }
5265 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5266   $as_echo_n "(cached) " >&6
5267 else
5268   if test -n "$ac_ct_GNATMAKE"; then
5269   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5270 else
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274   IFS=$as_save_IFS
5275   test -z "$as_dir" && as_dir=.
5276     for ac_exec_ext in '' $ac_executable_extensions; do
5277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5278     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280     break 2
5281   fi
5282 done
5283   done
5284 IFS=$as_save_IFS
5285
5286 fi
5287 fi
5288 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5289 if test -n "$ac_ct_GNATMAKE"; then
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5291 $as_echo "$ac_ct_GNATMAKE" >&6; }
5292 else
5293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5295 fi
5296
5297   if test "x$ac_ct_GNATMAKE" = x; then
5298     GNATMAKE="no"
5299   else
5300     case $cross_compiling:$ac_tool_warned in
5301 yes:)
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5304 ac_tool_warned=yes ;;
5305 esac
5306     GNATMAKE=$ac_ct_GNATMAKE
5307   fi
5308 else
5309   GNATMAKE="$ac_cv_prog_GNATMAKE"
5310 fi
5311
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5313 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5314 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5315   $as_echo_n "(cached) " >&6
5316 else
5317   cat >conftest.adb <<EOF
5318 procedure conftest is begin null; end conftest;
5319 EOF
5320 acx_cv_cc_gcc_supports_ada=no
5321 # There is a bug in old released versions of GCC which causes the
5322 # driver to exit successfully when the appropriate language module
5323 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5324 # Therefore we must check for the error message as well as an
5325 # unsuccessful exit.
5326 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5327 # given a .adb file, but produce no object file.  So we must check
5328 # if an object file was really produced to guard against this.
5329 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5330 if test x"$errors" = x && test -f conftest.$ac_objext; then
5331   acx_cv_cc_gcc_supports_ada=yes
5332 fi
5333 rm -f conftest.*
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5336 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5337
5338 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5339   have_gnat=yes
5340 else
5341   have_gnat=no
5342 fi
5343
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5345 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5346 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5347   $as_echo_n "(cached) " >&6
5348 else
5349    echo abfoo >t1
5350   echo cdfoo >t2
5351   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5352   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5353     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5354       :
5355     else
5356       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5357     fi
5358   fi
5359   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5360     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5361       :
5362     else
5363       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5364     fi
5365   fi
5366   rm t1 t2
5367
5368 fi
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5370 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5371 do_compare="$gcc_cv_prog_cmp_skip"
5372
5373
5374
5375 # Check whether --enable-bootstrap was given.
5376 if test "${enable_bootstrap+set}" = set; then :
5377   enableval=$enable_bootstrap;
5378 else
5379   enable_bootstrap=default
5380 fi
5381
5382
5383 # Issue errors and warnings for invalid/strange bootstrap combinations.
5384 if test -r $srcdir/gcc/configure; then
5385   have_compiler=yes
5386 else
5387   have_compiler=no
5388 fi
5389
5390 case "$have_compiler:$host:$target:$enable_bootstrap" in
5391   *:*:*:no) ;;
5392
5393   # Default behavior.  Enable bootstrap if we have a compiler
5394   # and we are in a native configuration.
5395   yes:$build:$build:default)
5396     enable_bootstrap=yes ;;
5397
5398   *:*:*:default)
5399     enable_bootstrap=no ;;
5400
5401   # We have a compiler and we are in a native configuration, bootstrap is ok
5402   yes:$build:$build:yes)
5403     ;;
5404
5405   # Other configurations, but we have a compiler.  Assume the user knows
5406   # what he's doing.
5407   yes:*:*:yes)
5408     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5409 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5410     ;;
5411
5412   # No compiler: if they passed --enable-bootstrap explicitly, fail
5413   no:*:*:yes)
5414     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5415
5416   # Fail if wrong command line
5417   *)
5418     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5419     ;;
5420 esac
5421
5422 # Used for setting $lt_cv_objdir
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5424 $as_echo_n "checking for objdir... " >&6; }
5425 if test "${lt_cv_objdir+set}" = set; then :
5426   $as_echo_n "(cached) " >&6
5427 else
5428   rm -f .libs 2>/dev/null
5429 mkdir .libs 2>/dev/null
5430 if test -d .libs; then
5431   lt_cv_objdir=.libs
5432 else
5433   # MS-DOS does not allow filenames that begin with a dot.
5434   lt_cv_objdir=_libs
5435 fi
5436 rmdir .libs 2>/dev/null
5437 fi
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5439 $as_echo "$lt_cv_objdir" >&6; }
5440 objdir=$lt_cv_objdir
5441
5442
5443
5444
5445
5446 cat >>confdefs.h <<_ACEOF
5447 #define LT_OBJDIR "$lt_cv_objdir/"
5448 _ACEOF
5449
5450
5451
5452 # Check for GMP, MPFR and MPC
5453 gmplibs="-lmpc -lmpfr -lgmp"
5454 gmpinc=
5455 have_gmp=no
5456
5457 # Specify a location for mpc
5458 # check for this first so it ends up on the link line before mpfr.
5459
5460 # Check whether --with-mpc was given.
5461 if test "${with_mpc+set}" = set; then :
5462   withval=$with_mpc;
5463 fi
5464
5465
5466 # Check whether --with-mpc-include was given.
5467 if test "${with_mpc_include+set}" = set; then :
5468   withval=$with_mpc_include;
5469 fi
5470
5471
5472 # Check whether --with-mpc-lib was given.
5473 if test "${with_mpc_lib+set}" = set; then :
5474   withval=$with_mpc_lib;
5475 fi
5476
5477
5478 if test "x$with_mpc" != x; then
5479   gmplibs="-L$with_mpc/lib $gmplibs"
5480   gmpinc="-I$with_mpc/include $gmpinc"
5481 fi
5482 if test "x$with_mpc_include" != x; then
5483   gmpinc="-I$with_mpc_include $gmpinc"
5484 fi
5485 if test "x$with_mpc_lib" != x; then
5486   gmplibs="-L$with_mpc_lib $gmplibs"
5487 fi
5488 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5489   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5490   gmpinc='-I$$s/mpc/src '"$gmpinc"
5491   # Do not test the mpc version.  Assume that it is sufficient, since
5492   # it is in the source tree, and the library has not been built yet
5493   # but it would be included on the link line in the version check below
5494   # hence making the test fail.
5495   have_gmp=yes
5496 fi
5497
5498 # Specify a location for mpfr
5499 # check for this first so it ends up on the link line before gmp.
5500
5501 # Check whether --with-mpfr-dir was given.
5502 if test "${with_mpfr_dir+set}" = set; then :
5503   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5504 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5505 fi
5506
5507
5508
5509 # Check whether --with-mpfr was given.
5510 if test "${with_mpfr+set}" = set; then :
5511   withval=$with_mpfr;
5512 fi
5513
5514
5515 # Check whether --with-mpfr-include was given.
5516 if test "${with_mpfr_include+set}" = set; then :
5517   withval=$with_mpfr_include;
5518 fi
5519
5520
5521 # Check whether --with-mpfr-lib was given.
5522 if test "${with_mpfr_lib+set}" = set; then :
5523   withval=$with_mpfr_lib;
5524 fi
5525
5526
5527 if test "x$with_mpfr" != x; then
5528   gmplibs="-L$with_mpfr/lib $gmplibs"
5529   gmpinc="-I$with_mpfr/include $gmpinc"
5530 fi
5531 if test "x$with_mpfr_include" != x; then
5532   gmpinc="-I$with_mpfr_include $gmpinc"
5533 fi
5534 if test "x$with_mpfr_lib" != x; then
5535   gmplibs="-L$with_mpfr_lib $gmplibs"
5536 fi
5537 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5538   # MPFR v3.1.0 moved the sources into a src sub-directory.
5539   if test -d ${srcdir}/mpfr/src; then
5540     gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5541     gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5542     extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5543   else
5544     gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5545     gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5546     extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5547   fi
5548   # Do not test the mpfr version.  Assume that it is sufficient, since
5549   # it is in the source tree, and the library has not been built yet
5550   # but it would be included on the link line in the version check below
5551   # hence making the test fail.
5552   have_gmp=yes
5553 fi
5554
5555 # Specify a location for gmp
5556
5557 # Check whether --with-gmp-dir was given.
5558 if test "${with_gmp_dir+set}" = set; then :
5559   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5560 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5561 fi
5562
5563
5564
5565 # Check whether --with-gmp was given.
5566 if test "${with_gmp+set}" = set; then :
5567   withval=$with_gmp;
5568 fi
5569
5570
5571 # Check whether --with-gmp-include was given.
5572 if test "${with_gmp_include+set}" = set; then :
5573   withval=$with_gmp_include;
5574 fi
5575
5576
5577 # Check whether --with-gmp-lib was given.
5578 if test "${with_gmp_lib+set}" = set; then :
5579   withval=$with_gmp_lib;
5580 fi
5581
5582
5583
5584 if test "x$with_gmp" != x; then
5585   gmplibs="-L$with_gmp/lib $gmplibs"
5586   gmpinc="-I$with_gmp/include $gmpinc"
5587 fi
5588 if test "x$with_gmp_include" != x; then
5589   gmpinc="-I$with_gmp_include $gmpinc"
5590 fi
5591 if test "x$with_gmp_lib" != x; then
5592   gmplibs="-L$with_gmp_lib $gmplibs"
5593 fi
5594 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5595   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5596   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5597   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5598   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5599   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5600   # Do not test the gmp version.  Assume that it is sufficient, since
5601   # it is in the source tree, and the library has not been built yet
5602   # but it would be included on the link line in the version check below
5603   # hence making the test fail.
5604   have_gmp=yes
5605 fi
5606
5607 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5608   have_gmp=yes
5609   saved_CFLAGS="$CFLAGS"
5610   CFLAGS="$CFLAGS $gmpinc"
5611   # Check for the recommended and required versions of GMP.
5612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5613 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5614
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h.  */
5617 #include "gmp.h"
5618 int
5619 main ()
5620 {
5621
5622   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5623   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5624   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5625   choke me
5626   #endif
5627
5628   ;
5629   return 0;
5630 }
5631 _ACEOF
5632 if ac_fn_c_try_compile "$LINENO"; then :
5633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h.  */
5635 #include <gmp.h>
5636 int
5637 main ()
5638 {
5639
5640   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5641   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5642   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5643   choke me
5644   #endif
5645
5646   ;
5647   return 0;
5648 }
5649 _ACEOF
5650 if ac_fn_c_try_compile "$LINENO"; then :
5651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5652 $as_echo "yes" >&6; }
5653 else
5654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5655 $as_echo "buggy but acceptable" >&6; }
5656 fi
5657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658 else
5659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }; have_gmp=no
5661 fi
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663
5664   # If we have GMP, check the MPFR version.
5665   if test x"$have_gmp" = xyes; then
5666     # Check for the recommended and required versions of MPFR.
5667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5668 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5669     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h.  */
5671 #include <gmp.h>
5672     #include <mpfr.h>
5673 int
5674 main ()
5675 {
5676
5677     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5678     choke me
5679     #endif
5680
5681   ;
5682   return 0;
5683 }
5684 _ACEOF
5685 if ac_fn_c_try_compile "$LINENO"; then :
5686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h.  */
5688 #include <gmp.h>
5689     #include <mpfr.h>
5690 int
5691 main ()
5692 {
5693
5694     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5695     choke me
5696     #endif
5697
5698   ;
5699   return 0;
5700 }
5701 _ACEOF
5702 if ac_fn_c_try_compile "$LINENO"; then :
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5704 $as_echo "yes" >&6; }
5705 else
5706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5707 $as_echo "buggy but acceptable" >&6; }
5708 fi
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 else
5711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }; have_gmp=no
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715   fi
5716
5717   # Check for the MPC header version.
5718   if test x"$have_gmp" = xyes ; then
5719     # Check for the recommended and required versions of MPC.
5720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5721 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5722     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h.  */
5724 #include <mpc.h>
5725 int
5726 main ()
5727 {
5728
5729     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5730     choke me
5731     #endif
5732
5733   ;
5734   return 0;
5735 }
5736 _ACEOF
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h.  */
5740 #include <mpc.h>
5741 int
5742 main ()
5743 {
5744
5745     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5746     choke me
5747     #endif
5748
5749   ;
5750   return 0;
5751 }
5752 _ACEOF
5753 if ac_fn_c_try_compile "$LINENO"; then :
5754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5755 $as_echo "yes" >&6; }
5756 else
5757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5758 $as_echo "buggy but acceptable" >&6; }
5759 fi
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 else
5762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }; have_gmp=no
5764 fi
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766   fi
5767
5768   # Now check the MPFR library.
5769   if test x"$have_gmp" = xyes; then
5770     saved_LIBS="$LIBS"
5771     LIBS="$LIBS $gmplibs"
5772     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5773 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5774     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h.  */
5776 #include <mpc.h>
5777 int
5778 main ()
5779 {
5780
5781     mpfr_t n;
5782     mpfr_t x;
5783     mpc_t c;
5784     int t;
5785     mpfr_init (n);
5786     mpfr_init (x);
5787     mpfr_atan2 (n, n, x, GMP_RNDN);
5788     mpfr_erfc (n, x, GMP_RNDN);
5789     mpfr_subnormalize (x, t, GMP_RNDN);
5790     mpfr_clear(n);
5791     mpfr_clear(x);
5792     mpc_init2 (c, 53);
5793     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5794     mpc_cosh (c, c, MPC_RNDNN);
5795     mpc_pow (c, c, c, MPC_RNDNN);
5796     mpc_acosh (c, c, MPC_RNDNN);
5797     mpc_clear (c);
5798
5799   ;
5800   return 0;
5801 }
5802 _ACEOF
5803 if ac_fn_c_try_link "$LINENO"; then :
5804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5805 $as_echo "yes" >&6; }
5806 else
5807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808 $as_echo "no" >&6; }; have_gmp=no
5809 fi
5810 rm -f core conftest.err conftest.$ac_objext \
5811     conftest$ac_exeext conftest.$ac_ext
5812     LIBS="$saved_LIBS"
5813   fi
5814
5815   CFLAGS="$saved_CFLAGS"
5816
5817 # The library versions listed in the error message below should match
5818 # the HARD-minimums enforced above.
5819   if test x$have_gmp != xyes; then
5820     as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5821 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5822 their locations.  Source code for these libraries can be found at
5823 their respective hosting sites as well as at
5824 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5825 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5826 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5827 make sure that you have installed both the libraries and the header
5828 files.  They may be located in separate packages." "$LINENO" 5
5829   fi
5830 fi
5831
5832 # Flags needed for both GMP, MPFR and/or MPC.
5833
5834
5835
5836
5837
5838
5839
5840 # Allow host libstdc++ to be specified for static linking with PPL.
5841
5842 # Check whether --with-host-libstdcxx was given.
5843 if test "${with_host_libstdcxx+set}" = set; then :
5844   withval=$with_host_libstdcxx;
5845 fi
5846
5847
5848 case $with_host_libstdcxx in
5849   no|yes)
5850     as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5851     ;;
5852 esac
5853
5854 # Libraries to use for stage1 or when not bootstrapping.
5855
5856 # Check whether --with-stage1-libs was given.
5857 if test "${with_stage1_libs+set}" = set; then :
5858   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5859    stage1_libs=
5860  else
5861    stage1_libs=$withval
5862  fi
5863 else
5864   stage1_libs=$with_host_libstdcxx
5865 fi
5866
5867
5868
5869 # Linker flags to use for stage1 or when not bootstrapping.
5870
5871 # Check whether --with-stage1-ldflags was given.
5872 if test "${with_stage1_ldflags+set}" = set; then :
5873   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5874    stage1_ldflags=
5875  else
5876    stage1_ldflags=$withval
5877  fi
5878 else
5879   stage1_ldflags=
5880  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5881  # if supported.  But if the user explicitly specified the libraries to use,
5882  # trust that they are doing what they want.
5883  if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5884    stage1_ldflags="-static-libstdc++ -static-libgcc"
5885  fi
5886 fi
5887
5888
5889
5890 # Libraries to use for stage2 and later builds.  This defaults to the
5891 # argument passed to --with-host-libstdcxx.
5892
5893 # Check whether --with-boot-libs was given.
5894 if test "${with_boot_libs+set}" = set; then :
5895   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5896    poststage1_libs=
5897  else
5898    poststage1_libs=$withval
5899  fi
5900 else
5901   poststage1_libs=$with_host_libstdcxx
5902 fi
5903
5904
5905
5906 # Linker flags to use for stage2 and later builds.
5907
5908 # Check whether --with-boot-ldflags was given.
5909 if test "${with_boot_ldflags+set}" = set; then :
5910   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5911    poststage1_ldflags=
5912  else
5913    poststage1_ldflags=$withval
5914  fi
5915 else
5916   poststage1_ldflags=
5917  # In stages 2 and 3, default to linking libstdc++ and libgcc
5918  # statically.  But if the user explicitly specified the libraries to
5919  # use, trust that they are doing what they want.
5920  if test "$poststage1_libs" = ""; then
5921    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5922  fi
5923 fi
5924
5925
5926
5927 # GCC GRAPHITE dependency ISL.
5928 # Basic setup is inlined here, actual checks are in config/isl.m4
5929
5930
5931 # Check whether --with-isl was given.
5932 if test "${with_isl+set}" = set; then :
5933   withval=$with_isl;
5934 fi
5935
5936
5937 # Treat --without-isl as a request to disable
5938 # GRAPHITE support and skip all following checks.
5939 if test "x$with_isl" != "xno"; then
5940   # Check for ISL
5941
5942
5943 # Check whether --with-isl-include was given.
5944 if test "${with_isl_include+set}" = set; then :
5945   withval=$with_isl_include;
5946 fi
5947
5948
5949 # Check whether --with-isl-lib was given.
5950 if test "${with_isl_lib+set}" = set; then :
5951   withval=$with_isl_lib;
5952 fi
5953
5954
5955   # Check whether --enable-isl-version-check was given.
5956 if test "${enable_isl_version_check+set}" = set; then :
5957   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5958 else
5959   ENABLE_ISL_CHECK=yes
5960 fi
5961
5962
5963   # Initialize isllibs and islinc.
5964   case $with_isl in
5965     no)
5966       isllibs=
5967       islinc=
5968       ;;
5969     "" | yes)
5970       ;;
5971     *)
5972       isllibs="-L$with_isl/lib"
5973       islinc="-I$with_isl/include"
5974       ;;
5975   esac
5976   if test "x${with_isl_include}" != x ; then
5977     islinc="-I$with_isl_include"
5978   fi
5979   if test "x${with_isl_lib}" != x; then
5980     isllibs="-L$with_isl_lib"
5981   fi
5982         if test "x${islinc}" = x && test "x${isllibs}" = x \
5983      && test -d ${srcdir}/isl; then
5984     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5985     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5986     ENABLE_ISL_CHECK=no
5987     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5988 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5989   fi
5990
5991   isllibs="${isllibs} -lisl"
5992
5993
5994
5995   if test "${ENABLE_ISL_CHECK}" = yes ; then
5996     _isl_saved_CFLAGS=$CFLAGS
5997     _isl_saved_LDFLAGS=$LDFLAGS
5998     _isl_saved_LIBS=$LIBS
5999
6000     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6001     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
6002     LIBS="${_isl_saved_LIBS} -lisl"
6003
6004     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
6005 $as_echo_n "checking for compatible ISL... " >&6; }
6006     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h.  */
6008 #include <isl/val.h>
6009 int
6010 main ()
6011 {
6012 ;
6013   ;
6014   return 0;
6015 }
6016 _ACEOF
6017 if ac_fn_c_try_link "$LINENO"; then :
6018   gcc_cv_isl=yes
6019 else
6020   gcc_cv_isl=no
6021 fi
6022 rm -f core conftest.err conftest.$ac_objext \
6023     conftest$ac_exeext conftest.$ac_ext
6024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6025 $as_echo "$gcc_cv_isl" >&6; }
6026
6027     CFLAGS=$_isl_saved_CFLAGS
6028     LDFLAGS=$_isl_saved_LDFLAGS
6029     LIBS=$_isl_saved_LIBS
6030   fi
6031
6032
6033
6034
6035
6036
6037   if test "x${with_isl}" = xno; then
6038     graphite_requested=no
6039   elif test "x${with_isl}" != x \
6040     || test "x${with_isl_include}" != x \
6041     || test "x${with_isl_lib}" != x ; then
6042     graphite_requested=yes
6043   else
6044     graphite_requested=no
6045   fi
6046
6047
6048
6049   if test "${gcc_cv_isl}" = no ; then
6050     isllibs=
6051     islinc=
6052   fi
6053
6054   if test "${graphite_requested}" = yes \
6055     && test "x${isllibs}" = x \
6056     && test "x${islinc}" = x ; then
6057
6058     as_fn_error "Unable to find a usable ISL.  See config.log for details." "$LINENO" 5
6059   fi
6060
6061
6062 fi
6063
6064 # If the ISL check failed, disable builds of in-tree variant of ISL
6065 if test "x$with_isl" = xno ||
6066    test "x$gcc_cv_isl" = xno; then
6067   noconfigdirs="$noconfigdirs isl"
6068   islinc=
6069 fi
6070
6071
6072
6073
6074 # Check for LTO support.
6075 # Check whether --enable-lto was given.
6076 if test "${enable_lto+set}" = set; then :
6077   enableval=$enable_lto; enable_lto=$enableval
6078 else
6079   enable_lto=yes; default_enable_lto=yes
6080 fi
6081
6082
6083
6084
6085
6086 target_elf=no
6087 case $target in
6088   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6089   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6090   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6091   nvptx-*-none)
6092     target_elf=no
6093     ;;
6094   *)
6095     target_elf=yes
6096     ;;
6097 esac
6098
6099 if test $target_elf = yes; then :
6100   # ELF platforms build the lto-plugin always.
6101   build_lto_plugin=yes
6102
6103 else
6104   if test x"$default_enable_lto" = x"yes" ; then
6105     case $target in
6106       *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6107       # On other non-ELF platforms, LTO has yet to be validated.
6108       *) enable_lto=no ;;
6109     esac
6110   else
6111   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6112   # It would also be nice to check the binutils support, but we don't
6113   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
6114   # warn during gcc/ subconfigure; unless you're bootstrapping with
6115   # -flto it won't be needed until after installation anyway.
6116     case $target in
6117       *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6118       *) if test x"$enable_lto" = x"yes"; then
6119         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6120         fi
6121       ;;
6122     esac
6123   fi
6124   # Among non-ELF, only Windows platforms support the lto-plugin so far.
6125   # Build it unless LTO was explicitly disabled.
6126   case $target in
6127     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6128     *) ;;
6129   esac
6130
6131 fi
6132
6133
6134 # Check whether --enable-linker-plugin-configure-flags was given.
6135 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6136   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6137 else
6138   extra_linker_plugin_configure_flags=
6139 fi
6140
6141
6142 # Check whether --enable-linker-plugin-flags was given.
6143 if test "${enable_linker_plugin_flags+set}" = set; then :
6144   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6145 else
6146   extra_linker_plugin_flags=
6147 fi
6148
6149
6150
6151
6152 # By default, C and C++ are the only stage 1 languages.
6153 stage1_languages=,c,
6154
6155 # Target libraries that we bootstrap.
6156 bootstrap_target_libs=,target-libgcc,
6157
6158 # Figure out what language subdirectories are present.
6159 # Look if the user specified --enable-languages="..."; if not, use
6160 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6161 # go away some day.
6162 # NB:  embedded tabs in this IF block -- do not untabify
6163 if test -d ${srcdir}/gcc; then
6164   if test x"${enable_languages+set}" != xset; then
6165     if test x"${LANGUAGES+set}" = xset; then
6166       enable_languages="${LANGUAGES}"
6167         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6168     else
6169       enable_languages=all
6170     fi
6171   else
6172     if test x"${enable_languages}" = x ||
6173        test x"${enable_languages}" = xyes;
6174        then
6175       echo configure.in: --enable-languages needs at least one language argument 1>&2
6176       exit 1
6177     fi
6178   fi
6179   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6180
6181   # 'f95' is the old name for the 'fortran' language. We issue a warning
6182   # and make the substitution.
6183   case ,${enable_languages}, in
6184     *,f95,*)
6185       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6186       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6187       ;;
6188   esac
6189
6190   # If bootstrapping, C++ must be enabled.
6191   case ",$enable_languages,:$enable_bootstrap" in
6192     *,c++,*:*) ;;
6193     *:yes)
6194       if test -f ${srcdir}/gcc/cp/config-lang.in; then
6195         enable_languages="${enable_languages},c++"
6196       else
6197         as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6198       fi
6199       ;;
6200   esac
6201
6202   # First scan to see if an enabled language requires some other language.
6203   # We assume that a given config-lang.in will list all the language
6204   # front ends it requires, even if some are required indirectly.
6205   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6206     case ${lang_frag} in
6207       ..) ;;
6208       # The odd quoting in the next line works around
6209       # an apparent bug in bash 1.12 on linux.
6210       ${srcdir}/gcc/[*]/config-lang.in) ;;
6211       *)
6212         # From the config-lang.in, get $language, $lang_requires, and
6213         # $lang_requires_boot_languages.
6214         language=
6215         lang_requires=
6216         lang_requires_boot_languages=
6217         . ${lang_frag}
6218         for other in ${lang_requires} ${lang_requires_boot_languages}; do
6219           case ,${enable_languages}, in
6220             *,$other,*) ;;
6221             *,all,*) ;;
6222             *,$language,*)
6223               echo " \`$other' language required by \`$language'; enabling" 1>&2
6224               enable_languages="${enable_languages},${other}"
6225               ;;
6226           esac
6227         done
6228         for other in ${lang_requires_boot_languages} ; do
6229           if test "$other" != "c"; then
6230             case ,${enable_stage1_languages}, in
6231               *,$other,*) ;;
6232               *,all,*) ;;
6233               *)
6234                 case ,${enable_languages}, in
6235                   *,$language,*)
6236                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6237                     enable_stage1_languages="$enable_stage1_languages,${other}"
6238                     ;;
6239                 esac
6240                 ;;
6241             esac
6242           fi
6243         done
6244         ;;
6245     esac
6246   done
6247
6248   new_enable_languages=,c,
6249
6250   # If LTO is enabled, add the LTO front end.
6251   if test "$enable_lto" = "yes" ; then
6252     case ,${enable_languages}, in
6253       *,lto,*) ;;
6254       *) enable_languages="${enable_languages},lto" ;;
6255     esac
6256     if test "${build_lto_plugin}" = "yes" ; then
6257       configdirs="$configdirs lto-plugin"
6258     fi
6259   fi
6260
6261   # If we're building an offloading compiler, add the LTO front end.
6262   if test x"$enable_as_accelerator_for" != x ; then
6263     case ,${enable_languages}, in
6264       *,lto,*) ;;
6265       *) enable_languages="${enable_languages},lto" ;;
6266     esac
6267   fi
6268
6269   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6270   potential_languages=,c,
6271
6272   enabled_target_libs=
6273   disabled_target_libs=
6274
6275   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6276     case ${lang_frag} in
6277       ..) ;;
6278       # The odd quoting in the next line works around
6279       # an apparent bug in bash 1.12 on linux.
6280       ${srcdir}/gcc/[*]/config-lang.in) ;;
6281       *)
6282         # From the config-lang.in, get $language, $target_libs,
6283         # $lang_dirs, $boot_language, and $build_by_default
6284         language=
6285         target_libs=
6286         lang_dirs=
6287         subdir_requires=
6288         boot_language=no
6289         build_by_default=yes
6290         . ${lang_frag}
6291         if test x${language} = x; then
6292           echo "${lang_frag} doesn't set \$language." 1>&2
6293           exit 1
6294         fi
6295
6296         if test "$language" = "c++"; then
6297           boot_language=yes
6298         fi
6299
6300         add_this_lang=no
6301         case ,${enable_languages}, in
6302           *,${language},*)
6303             # Language was explicitly selected; include it
6304             # unless it is C, which is enabled by default.
6305             if test "$language" != "c"; then
6306               add_this_lang=yes
6307             fi
6308             ;;
6309           *,all,*)
6310             # 'all' was selected, select it if it is a default language
6311             if test "$language" != "c"; then
6312               add_this_lang=${build_by_default}
6313             fi
6314             ;;
6315         esac
6316
6317         # Disable languages that need other directories if these aren't available.
6318         for i in $subdir_requires; do
6319           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6320           case ,${enable_languages}, in
6321             *,${language},*)
6322               # Specifically requested language; tell them.
6323               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6324               ;;
6325             *)
6326               # Silently disable.
6327               add_this_lang=unsupported
6328               ;;
6329           esac
6330         done
6331
6332         # Disable Ada if no preexisting GNAT is available.
6333         case ,${enable_languages},:${language}:${have_gnat} in
6334           *,${language},*:ada:no)
6335             # Specifically requested language; tell them.
6336             as_fn_error "GNAT is required to build $language" "$LINENO" 5
6337             ;;
6338           *:ada:no)
6339             # Silently disable.
6340             add_this_lang=unsupported
6341             ;;
6342         esac
6343
6344         # Disable a language that is unsupported by the target.
6345         case " $unsupported_languages " in
6346           *" $language "*)
6347             add_this_lang=unsupported
6348             ;;
6349         esac
6350
6351         case $add_this_lang in
6352           unsupported)
6353             # Remove language-dependent dirs.
6354             disabled_target_libs="$disabled_target_libs $target_libs"
6355             noconfigdirs="$noconfigdirs $lang_dirs"
6356             ;;
6357           no)
6358             # Remove language-dependent dirs; still show language as supported.
6359             disabled_target_libs="$disabled_target_libs $target_libs"
6360             noconfigdirs="$noconfigdirs $lang_dirs"
6361             potential_languages="${potential_languages}${language},"
6362             ;;
6363           yes)
6364             new_enable_languages="${new_enable_languages}${language},"
6365             potential_languages="${potential_languages}${language},"
6366             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6367             enabled_target_libs="$enabled_target_libs $target_libs"
6368             case "${boot_language}:,$enable_stage1_languages," in
6369               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6370                 # Add to (comma-separated) list of stage 1 languages.
6371                 case ",$stage1_languages," in
6372                   *,$language,* | ,yes, | ,all,) ;;
6373                   *) stage1_languages="${stage1_languages}${language}," ;;
6374                 esac
6375                 # We need to bootstrap any supporting libraries.
6376                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6377                 ;;
6378             esac
6379             ;;
6380         esac
6381         ;;
6382     esac
6383   done
6384
6385   # Add target libraries which are only needed for disabled languages
6386   # to noconfigdirs.
6387   if test -n "$disabled_target_libs"; then
6388     for dir in $disabled_target_libs; do
6389       case " $enabled_target_libs " in
6390       *" ${dir} "*) ;;
6391       *) noconfigdirs="$noconfigdirs $dir" ;;
6392       esac
6393     done
6394   fi
6395
6396   # Check whether --enable-stage1-languages was given.
6397 if test "${enable_stage1_languages+set}" = set; then :
6398   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6399     ,no,|,,)
6400       # Set it to something that will have no effect in the loop below
6401       enable_stage1_languages=c ;;
6402     ,yes,)
6403       enable_stage1_languages=`echo $new_enable_languages | \
6404         sed -e "s/^,//" -e "s/,$//" ` ;;
6405     *,all,*)
6406       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6407         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6408   esac
6409
6410   # Add "good" languages from enable_stage1_languages to stage1_languages,
6411   # while "bad" languages go in missing_languages.  Leave no duplicates.
6412   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6413     case $potential_languages in
6414       *,$i,*)
6415         case $stage1_languages in
6416           *,$i,*) ;;
6417           *) stage1_languages="$stage1_languages$i," ;;
6418         esac ;;
6419       *)
6420         case $missing_languages in
6421           *,$i,*) ;;
6422           *) missing_languages="$missing_languages$i," ;;
6423         esac ;;
6424      esac
6425   done
6426 fi
6427
6428
6429   # Remove leading/trailing commas that were added for simplicity
6430   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6431   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6432   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6433   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6434
6435   if test "x$missing_languages" != x; then
6436     as_fn_error "
6437 The following requested languages could not be built: ${missing_languages}
6438 Supported languages are: ${potential_languages}" "$LINENO" 5
6439   fi
6440   if test "x$new_enable_languages" != "x$enable_languages"; then
6441     echo The following languages will be built: ${new_enable_languages}
6442     enable_languages="$new_enable_languages"
6443   fi
6444
6445
6446   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6447 fi
6448
6449 # Handle --disable-<component> generically.
6450 for dir in $configdirs $build_configdirs $target_configdirs ; do
6451   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6452   varname=`echo $dirname | sed -e s/+/_/g`
6453   if eval test x\${enable_${varname}} "=" xno ; then
6454     noconfigdirs="$noconfigdirs $dir"
6455   fi
6456 done
6457
6458 # Check for Boehm's garbage collector
6459 # Check whether --enable-objc-gc was given.
6460 if test "${enable_objc_gc+set}" = set; then :
6461   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6462   *,objc,*:*:yes:*target-boehm-gc*)
6463     as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6464     ;;
6465 esac
6466 fi
6467
6468
6469 # Make sure we only build Boehm's garbage collector if required.
6470 case ,${enable_languages},:${enable_objc_gc} in
6471   *,objc,*:yes)
6472     # Keep target-boehm-gc if requested for Objective-C.
6473     ;;
6474   *)
6475     # Otherwise remove target-boehm-gc depending on target-libjava.
6476     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6477       noconfigdirs="$noconfigdirs target-boehm-gc"
6478     fi
6479     ;;
6480 esac
6481
6482 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6483 case ,${enable_languages}, in
6484   *,c++,*)
6485     # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6486     case "${noconfigdirs}" in
6487       *target-libstdc++-v3*)
6488         noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6489         ;;
6490       *) ;;
6491     esac
6492     ;;
6493   *)
6494     noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6495     ;;
6496 esac
6497
6498 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6499 # $build_configdirs and $target_configdirs.
6500 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6501
6502 notsupp=""
6503 for dir in . $skipdirs $noconfigdirs ; do
6504   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6505   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6506     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6507     if test -r $srcdir/$dirname/configure ; then
6508       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6509         true
6510       else
6511         notsupp="$notsupp $dir"
6512       fi
6513     fi
6514   fi
6515   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6516     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6517     if test -r $srcdir/$dirname/configure ; then
6518       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6519         true
6520       else
6521         notsupp="$notsupp $dir"
6522       fi
6523     fi
6524   fi
6525   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6526     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6527     if test -r $srcdir/$dirname/configure ; then
6528       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6529         true
6530       else
6531         notsupp="$notsupp $dir"
6532       fi
6533     fi
6534   fi
6535 done
6536
6537 # Quietly strip out all directories which aren't configurable in this tree.
6538 # This relies on all configurable subdirectories being autoconfiscated, which
6539 # is now the case.
6540 build_configdirs_all="$build_configdirs"
6541 build_configdirs=
6542 for i in ${build_configdirs_all} ; do
6543   j=`echo $i | sed -e s/build-//g`
6544   if test -f ${srcdir}/$j/configure ; then
6545     build_configdirs="${build_configdirs} $i"
6546   fi
6547 done
6548
6549 configdirs_all="$configdirs"
6550 configdirs=
6551 for i in ${configdirs_all} ; do
6552   if test -f ${srcdir}/$i/configure ; then
6553     configdirs="${configdirs} $i"
6554   fi
6555 done
6556
6557 target_configdirs_all="$target_configdirs"
6558 target_configdirs=
6559 for i in ${target_configdirs_all} ; do
6560   j=`echo $i | sed -e s/target-//g`
6561   if test -f ${srcdir}/$j/configure ; then
6562     target_configdirs="${target_configdirs} $i"
6563   fi
6564 done
6565
6566 # Exclude target-zlib if target-libjava isn't built.
6567 case ${target_configdirs} in
6568 *target-libjava*)
6569   ;;
6570 *)
6571   target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6572   ;;
6573 esac
6574
6575 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6576 # so we have to add it after the preceding checks.
6577 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6578 then
6579   case " $configdirs " in
6580     *" libiberty "*)
6581       # If we can build libiberty, we can also build libiberty-linker-plugin.
6582       configdirs="$configdirs libiberty-linker-plugin"
6583       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6584         --with-libiberty=../libiberty-linker-plugin";;
6585     *)
6586       as_fn_error "libiberty missing" "$LINENO" 5;;
6587   esac
6588 fi
6589
6590 # Sometimes we have special requirements for the host libiberty.
6591 extra_host_libiberty_configure_flags=
6592 extra_host_zlib_configure_flags=
6593 case " $configdirs " in
6594   *" lto-plugin "* | *" libcc1 "*)
6595     # When these are to be built as shared libraries, the same applies to
6596     # libiberty.
6597     extra_host_libiberty_configure_flags=--enable-shared
6598     ;;
6599   *" bfd "*)
6600     # When bfd is to be built as a shared library, the same applies to
6601     # zlib.
6602     if test "$enable_shared" = "yes"; then
6603       extra_host_zlib_configure_flags=--enable-host-shared
6604     fi
6605     ;;
6606 esac
6607
6608
6609
6610 # Produce a warning message for the subdirs we can't configure.
6611 # This isn't especially interesting in the Cygnus tree, but in the individual
6612 # FSF releases, it's important to let people know when their machine isn't
6613 # supported by the one or two programs in a package.
6614
6615 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6616   # If $appdirs is non-empty, at least one of those directories must still
6617   # be configured, or we error out.  (E.g., if the gas release supports a
6618   # specified target in some subdirs but not the gas subdir, we shouldn't
6619   # pretend that all is well.)
6620   if test -n "$appdirs" ; then
6621     for dir in $appdirs ; do
6622       if test -r $dir/Makefile.in ; then
6623         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6624           appdirs=""
6625           break
6626         fi
6627         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6628           appdirs=""
6629           break
6630         fi
6631       fi
6632     done
6633     if test -n "$appdirs" ; then
6634       echo "*** This configuration is not supported by this package." 1>&2
6635       exit 1
6636     fi
6637   fi
6638   # Okay, some application will build, or we don't care to check.  Still
6639   # notify of subdirs not getting built.
6640   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6641   echo "    ${notsupp}" 1>&2
6642   echo "    (Any other directories should still work fine.)" 1>&2
6643 fi
6644
6645 case "$host" in
6646   *msdosdjgpp*)
6647     enable_gdbtk=no ;;
6648 esac
6649
6650 # To find our prefix, in gcc_cv_tool_prefix.
6651
6652 # The user is always right.
6653 if test "${PATH_SEPARATOR+set}" != set; then
6654   echo "#! /bin/sh" >conf$$.sh
6655   echo  "exit 0"   >>conf$$.sh
6656   chmod +x conf$$.sh
6657   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6658     PATH_SEPARATOR=';'
6659   else
6660     PATH_SEPARATOR=:
6661   fi
6662   rm -f conf$$.sh
6663 fi
6664
6665
6666
6667 if test "x$exec_prefix" = xNONE; then
6668         if test "x$prefix" = xNONE; then
6669                 gcc_cv_tool_prefix=$ac_default_prefix
6670         else
6671                 gcc_cv_tool_prefix=$prefix
6672         fi
6673 else
6674         gcc_cv_tool_prefix=$exec_prefix
6675 fi
6676
6677 # If there is no compiler in the tree, use the PATH only.  In any
6678 # case, if there is no compiler in the tree nobody should use
6679 # AS_FOR_TARGET and LD_FOR_TARGET.
6680 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6681     gcc_version=`cat $srcdir/gcc/BASE-VER`
6682     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6683     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6684     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6685     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6686     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6687     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6688 else
6689     gcc_cv_tool_dirs=
6690 fi
6691
6692 if test x$build = x$target && test -n "$md_exec_prefix"; then
6693         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6694 fi
6695
6696
6697
6698 copy_dirs=
6699
6700
6701 # Check whether --with-build-sysroot was given.
6702 if test "${with_build_sysroot+set}" = set; then :
6703   withval=$with_build_sysroot; if test x"$withval" != x ; then
6704      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6705    fi
6706 else
6707   SYSROOT_CFLAGS_FOR_TARGET=
6708 fi
6709
6710
6711
6712
6713 # Check whether --with-debug-prefix-map was given.
6714 if test "${with_debug_prefix_map+set}" = set; then :
6715   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6716      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6717      for debug_map in $withval; do
6718        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6719      done
6720    fi
6721 else
6722   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6723 fi
6724
6725
6726
6727 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6728 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6729 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6730 # We want to ensure that TARGET libraries (which we know are built with
6731 # gcc) are built with "-O2 -g", so include those options when setting
6732 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6733 if test "x$CFLAGS_FOR_TARGET" = x; then
6734   if test "x${is_cross_compiler}" = xyes; then
6735     CFLAGS_FOR_TARGET="-g -O2"
6736   else
6737     CFLAGS_FOR_TARGET=$CFLAGS
6738     case " $CFLAGS " in
6739       *" -O2 "*) ;;
6740       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6741     esac
6742     case " $CFLAGS " in
6743       *" -g "* | *" -g3 "*) ;;
6744       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6745     esac
6746   fi
6747 fi
6748
6749
6750 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6751   if test "x${is_cross_compiler}" = xyes; then
6752     CXXFLAGS_FOR_TARGET="-g -O2"
6753   else
6754     CXXFLAGS_FOR_TARGET=$CXXFLAGS
6755     case " $CXXFLAGS " in
6756       *" -O2 "*) ;;
6757       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6758     esac
6759     case " $CXXFLAGS " in
6760       *" -g "* | *" -g3 "*) ;;
6761       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6762     esac
6763   fi
6764 fi
6765
6766
6767
6768
6769 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6770 # the named directory are copied to $(tooldir)/sys-include.
6771 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6772   if test x${is_cross_compiler} = xno ; then
6773     echo 1>&2 '***' --with-headers is only supported when cross compiling
6774     exit 1
6775   fi
6776   if test x"${with_headers}" != xyes ; then
6777     x=${gcc_cv_tool_prefix}
6778     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6779   fi
6780 fi
6781
6782 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6783 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6784 # are permitted.
6785 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6786   if test x${is_cross_compiler} = xno ; then
6787     echo 1>&2 '***' --with-libs is only supported when cross compiling
6788     exit 1
6789   fi
6790   if test x"${with_libs}" != xyes ; then
6791     # Copy the libraries in reverse order, so that files in the first named
6792     # library override files in subsequent libraries.
6793     x=${gcc_cv_tool_prefix}
6794     for l in ${with_libs}; do
6795       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6796     done
6797   fi
6798 fi
6799
6800 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6801 #
6802 # This is done by determining whether or not the appropriate directory
6803 # is available, and by checking whether or not specific configurations
6804 # have requested that this magic not happen.
6805 #
6806 # The command line options always override the explicit settings in
6807 # configure.in, and the settings in configure.in override this magic.
6808 #
6809 # If the default for a toolchain is to use GNU as and ld, and you don't
6810 # want to do that, then you should use the --without-gnu-as and
6811 # --without-gnu-ld options for the configure script.  Similarly, if
6812 # the default is to use the included zlib and you don't want to do that,
6813 # you should use the --with-system-zlib option for the configure script.
6814
6815 if test x${use_gnu_as} = x &&
6816    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6817   with_gnu_as=yes
6818   extra_host_args="$extra_host_args --with-gnu-as"
6819 fi
6820
6821 if test x${use_gnu_ld} = x &&
6822    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6823   with_gnu_ld=yes
6824   extra_host_args="$extra_host_args --with-gnu-ld"
6825 fi
6826
6827 if test x${use_included_zlib} = x &&
6828    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6829   :
6830 else
6831   with_system_zlib=yes
6832   extra_host_args="$extra_host_args --with-system-zlib"
6833 fi
6834
6835 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6836 # can detect this case.
6837
6838 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6839   with_newlib=yes
6840   extra_host_args="$extra_host_args --with-newlib"
6841 fi
6842
6843 # Handle ${copy_dirs}
6844 set fnord ${copy_dirs}
6845 shift
6846 while test $# != 0 ; do
6847   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6848     :
6849   else
6850     echo Copying $1 to $2
6851
6852     # Use the install script to create the directory and all required
6853     # parent directories.
6854     if test -d $2 ; then
6855       :
6856     else
6857       echo >config.temp
6858       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6859     fi
6860
6861     # Copy the directory, assuming we have tar.
6862     # FIXME: Should we use B in the second tar?  Not all systems support it.
6863     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6864
6865     # It is the responsibility of the user to correctly adjust all
6866     # symlinks.  If somebody can figure out how to handle them correctly
6867     # here, feel free to add the code.
6868
6869     echo $1 > $2/COPIED
6870   fi
6871   shift; shift
6872 done
6873
6874 # Determine a target-dependent exec_prefix that the installed
6875 # gcc will search in.  Keep this list sorted by triplet, with
6876 # the *-*-osname triplets last.
6877 md_exec_prefix=
6878 case "${target}" in
6879   i[34567]86-pc-msdosdjgpp*)
6880     md_exec_prefix=/dev/env/DJDIR/bin
6881     ;;
6882   *-*-hpux* | \
6883   *-*-nto-qnx* | \
6884   *-*-solaris2*)
6885     md_exec_prefix=/usr/ccs/bin
6886     ;;
6887 esac
6888
6889 extra_arflags_for_target=
6890 extra_nmflags_for_target=
6891 extra_ranlibflags_for_target=
6892 target_makefile_frag=/dev/null
6893 case "${target}" in
6894   spu-*-*)
6895     target_makefile_frag="config/mt-spu"
6896     ;;
6897   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6898     target_makefile_frag="config/mt-sde"
6899     ;;
6900   mipsisa*-*-elfoabi*)
6901     target_makefile_frag="config/mt-mips-elfoabi"
6902     ;;
6903   mips*-*-*linux* | mips*-*-gnu*)
6904     target_makefile_frag="config/mt-mips-gnu"
6905     ;;
6906   nios2-*-elf*)
6907     target_makefile_frag="config/mt-nios2-elf"
6908     ;;
6909   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6910     target_makefile_frag="config/mt-gnu"
6911     ;;
6912   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6913     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6914     # commands to handle both 32-bit and 64-bit objects.  These flags are
6915     # harmless if we're using GNU nm or ar.
6916     extra_arflags_for_target=" -X32_64"
6917     extra_nmflags_for_target=" -B -X32_64"
6918     ;;
6919 esac
6920
6921 alphaieee_frag=/dev/null
6922 case $target in
6923   alpha*-*-*)
6924     # This just makes sure to use the -mieee option to build target libs.
6925     # This should probably be set individually by each library.
6926     alphaieee_frag="config/mt-alphaieee"
6927     ;;
6928 esac
6929
6930 # If --enable-target-optspace always use -Os instead of -O2 to build
6931 # the target libraries, similarly if it is not specified, use -Os
6932 # on selected platforms.
6933 ospace_frag=/dev/null
6934 case "${enable_target_optspace}:${target}" in
6935   yes:*)
6936     ospace_frag="config/mt-ospace"
6937     ;;
6938   :d30v-*)
6939     ospace_frag="config/mt-d30v"
6940     ;;
6941   :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6942     ospace_frag="config/mt-ospace"
6943     ;;
6944   no:* | :*)
6945     ;;
6946   *)
6947     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6948     ;;
6949 esac
6950
6951 # Some systems (e.g., one of the i386-aix systems the gas testers are
6952 # using) don't handle "\$" correctly, so don't use it here.
6953 tooldir='${exec_prefix}'/${target_noncanonical}
6954 build_tooldir=${tooldir}
6955
6956 # Create a .gdbinit file which runs the one in srcdir
6957 # and tells GDB to look there for source files.
6958
6959 if test -r ${srcdir}/.gdbinit ; then
6960   case ${srcdir} in
6961     .) ;;
6962     *) cat > ./.gdbinit <<EOF
6963 # ${NO_EDIT}
6964 dir ${srcdir}
6965 dir .
6966 source ${srcdir}/.gdbinit
6967 EOF
6968     ;;
6969   esac
6970 fi
6971
6972 # Make sure that the compiler is able to generate an executable.  If it
6973 # can't, we are probably in trouble.  We don't care whether we can run the
6974 # executable--we might be using a cross compiler--we only care whether it
6975 # can be created.  At this point the main configure script has set CC.
6976 we_are_ok=no
6977 echo "int main () { return 0; }" > conftest.c
6978 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6979 if test $? = 0 ; then
6980   if test -s conftest || test -s conftest.exe ; then
6981     we_are_ok=yes
6982   fi
6983 fi
6984 case $we_are_ok in
6985   no)
6986     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6987     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6988     rm -f conftest*
6989     exit 1
6990     ;;
6991 esac
6992 rm -f conftest*
6993
6994 # Decide which environment variable is used to find dynamic libraries.
6995 case "${host}" in
6996   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6997   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6998   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6999   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7000 esac
7001
7002 # On systems where the dynamic library environment variable is PATH,
7003 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7004 # built executables to PATH.
7005 if test "$RPATH_ENVVAR" = PATH; then
7006   GCC_SHLIB_SUBDIR=/shlib
7007 else
7008   GCC_SHLIB_SUBDIR=
7009 fi
7010
7011 # Adjust the toplevel makefile according to whether bootstrap was selected.
7012 case $enable_bootstrap in
7013   yes)
7014     bootstrap_suffix=bootstrap
7015     BUILD_CONFIG=bootstrap-debug
7016     ;;
7017   no)
7018     bootstrap_suffix=no-bootstrap
7019     BUILD_CONFIG=
7020     ;;
7021 esac
7022
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7024 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7025
7026
7027 # Check whether --with-build-config was given.
7028 if test "${with_build_config+set}" = set; then :
7029   withval=$with_build_config; case $with_build_config in
7030    yes) with_build_config= ;;
7031    no) with_build_config= BUILD_CONFIG= ;;
7032    esac
7033 fi
7034
7035
7036 if test "x${with_build_config}" != x; then
7037   BUILD_CONFIG=$with_build_config
7038 else
7039   case $BUILD_CONFIG in
7040   bootstrap-debug)
7041     if echo "int f (void) { return 0; }" > conftest.c &&
7042        ${CC} -c conftest.c &&
7043        mv conftest.o conftest.o.g0 &&
7044        ${CC} -c -g conftest.c &&
7045        mv conftest.o conftest.o.g &&
7046        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7047       :
7048     else
7049       BUILD_CONFIG=
7050     fi
7051     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7052     ;;
7053   esac
7054 fi
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7056 $as_echo "$BUILD_CONFIG" >&6; }
7057
7058
7059 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7061 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7062 # Check whether --enable-vtable-verify was given.
7063 if test "${enable_vtable_verify+set}" = set; then :
7064   enableval=$enable_vtable_verify; case "$enableval" in
7065  yes) enable_vtable_verify=yes ;;
7066  no)  enable_vtable_verify=no ;;
7067  *)   enable_vtable_verify=no;;
7068  esac
7069 else
7070   enable_vtable_verify=no
7071 fi
7072
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7074 $as_echo "$enable_vtable_verify" >&6; }
7075
7076 # Record target_configdirs and the configure arguments for target and
7077 # build configuration in Makefile.
7078 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7079 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7080 bootstrap_fixincludes=no
7081
7082 # If we are building libgomp, bootstrap it.
7083 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7084   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7085 fi
7086
7087 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7088 # or bootstrap-ubsan, bootstrap it.
7089 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7090   case "$BUILD_CONFIG" in
7091     *bootstrap-asan* | *bootstrap-ubsan* )
7092       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7093       bootstrap_fixincludes=yes
7094       ;;
7095   esac
7096 fi
7097
7098 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7099 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7100    test "$enable_vtable_verify" != no; then
7101   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7102 fi
7103
7104 # If we are building libmpx, bootstrap it.
7105 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7106   bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7107 fi
7108
7109 # Determine whether gdb needs tk/tcl or not.
7110 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7111 # and in that case we want gdb to be built without tk.  Ugh!
7112 # In fact I believe gdb is the *only* package directly dependent on tk,
7113 # so we should be able to put the 'maybe's in unconditionally and
7114 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
7115 # 100% sure that that's safe though.
7116
7117 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7118 case "$enable_gdbtk" in
7119   no)
7120     GDB_TK="" ;;
7121   yes)
7122     GDB_TK="${gdb_tk}" ;;
7123   *)
7124     # Only add the dependency on gdbtk when GDBtk is part of the gdb
7125     # distro.  Eventually someone will fix this and move Insight, nee
7126     # gdbtk to a separate directory.
7127     if test -d ${srcdir}/gdb/gdbtk ; then
7128       GDB_TK="${gdb_tk}"
7129     else
7130       GDB_TK=""
7131     fi
7132     ;;
7133 esac
7134 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7135 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7136
7137 # Strip out unwanted targets.
7138
7139 # While at that, we remove Makefiles if we were started for recursive
7140 # configuration, so that the top-level Makefile reconfigures them,
7141 # like we used to do when configure itself was recursive.
7142
7143 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
7144 # but now we're fixing up the Makefile ourselves with the additional
7145 # commands passed to AC_CONFIG_FILES.  Use separate variables
7146 # extrasub-{build,host,target} not because there is any reason to split
7147 # the substitutions up that way, but only to remain below the limit of
7148 # 99 commands in a script, for HP-UX sed.
7149 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7150
7151 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7152   yes:yes:*\ gold\ *:*,c++,*) ;;
7153   yes:yes:*\ gold\ *:*)
7154     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7155     ;;
7156 esac
7157
7158 extrasub_build=
7159 for module in ${build_configdirs} ; do
7160   if test -z "${no_recursion}" \
7161      && test -f ${build_subdir}/${module}/Makefile; then
7162     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7163     rm -f ${build_subdir}/${module}/Makefile
7164   fi
7165   extrasub_build="$extrasub_build
7166 /^@if build-$module\$/d
7167 /^@endif build-$module\$/d
7168 /^@if build-$module-$bootstrap_suffix\$/d
7169 /^@endif build-$module-$bootstrap_suffix\$/d"
7170 done
7171 extrasub_host=
7172 for module in ${configdirs} ; do
7173   if test -z "${no_recursion}"; then
7174     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7175       if test -f ${file}; then
7176         echo 1>&2 "*** removing ${file} to force reconfigure"
7177         rm -f ${file}
7178       fi
7179     done
7180   fi
7181   case ${module},${bootstrap_fixincludes} in
7182     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7183     *) host_bootstrap_suffix=$bootstrap_suffix ;;
7184   esac
7185   extrasub_host="$extrasub_host
7186 /^@if $module\$/d
7187 /^@endif $module\$/d
7188 /^@if $module-$host_bootstrap_suffix\$/d
7189 /^@endif $module-$host_bootstrap_suffix\$/d"
7190 done
7191 extrasub_target=
7192 for module in ${target_configdirs} ; do
7193   if test -z "${no_recursion}" \
7194      && test -f ${target_subdir}/${module}/Makefile; then
7195     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7196     rm -f ${target_subdir}/${module}/Makefile
7197   fi
7198
7199   # We only bootstrap target libraries listed in bootstrap_target_libs.
7200   case $bootstrap_target_libs in
7201     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7202     *) target_bootstrap_suffix=no-bootstrap ;;
7203   esac
7204
7205   extrasub_target="$extrasub_target
7206 /^@if target-$module\$/d
7207 /^@endif target-$module\$/d
7208 /^@if target-$module-$target_bootstrap_suffix\$/d
7209 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7210 done
7211
7212 # Do the final fixup along with target modules.
7213 extrasub_target="$extrasub_target
7214 /^@if /,/^@endif /d"
7215
7216 # Create the serialization dependencies.  This uses a temporary file.
7217
7218 # Check whether --enable-serial-configure was given.
7219 if test "${enable_serial_configure+set}" = set; then :
7220   enableval=$enable_serial_configure;
7221 fi
7222
7223
7224 case ${enable_serial_configure} in
7225   yes)
7226     enable_serial_build_configure=yes
7227     enable_serial_host_configure=yes
7228     enable_serial_target_configure=yes
7229     ;;
7230 esac
7231
7232 # These force 'configure's to be done one at a time, to avoid problems
7233 # with contention over a shared config.cache.
7234 rm -f serdep.tmp
7235 echo '# serdep.tmp' > serdep.tmp
7236 olditem=
7237 test "x${enable_serial_build_configure}" = xyes &&
7238 for item in ${build_configdirs} ; do
7239   case ${olditem} in
7240     "") ;;
7241     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7242   esac
7243   olditem=${item}
7244 done
7245 olditem=
7246 test "x${enable_serial_host_configure}" = xyes &&
7247 for item in ${configdirs} ; do
7248   case ${olditem} in
7249     "") ;;
7250     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7251   esac
7252   olditem=${item}
7253 done
7254 olditem=
7255 test "x${enable_serial_target_configure}" = xyes &&
7256 for item in ${target_configdirs} ; do
7257   case ${olditem} in
7258     "") ;;
7259     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7260   esac
7261   olditem=${item}
7262 done
7263 serialization_dependencies=serdep.tmp
7264
7265
7266 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
7267 # target, nonopt, and variable assignments.  These are the ones we
7268 # might not want to pass down to subconfigures.  The exception being
7269 # --cache-file=/dev/null, which is used to turn off the use of cache
7270 # files altogether, and which should be passed on to subconfigures.
7271 # Also strip program-prefix, program-suffix, and program-transform-name,
7272 # so that we can pass down a consistent program-transform-name.
7273 baseargs=
7274 tbaseargs=
7275 keep_next=no
7276 skip_next=no
7277 eval "set -- $ac_configure_args"
7278 for ac_arg
7279 do
7280   if test X"$skip_next" = X"yes"; then
7281     skip_next=no
7282     continue
7283   fi
7284   if test X"$keep_next" = X"yes"; then
7285     case $ac_arg in
7286       *\'*)
7287         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7288     esac
7289     baseargs="$baseargs '$ac_arg'"
7290     tbaseargs="$tbaseargs '$ac_arg'"
7291     keep_next=no
7292     continue
7293   fi
7294
7295   # Handle separated arguments.  Based on the logic generated by
7296   # autoconf 2.59.
7297   case $ac_arg in
7298     *=* | --config-cache | -C | -disable-* | --disable-* \
7299       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7300       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7301       | -with-* | --with-* | -without-* | --without-* | --x)
7302       separate_arg=no
7303       ;;
7304     -*)
7305       separate_arg=yes
7306       ;;
7307     *)
7308       separate_arg=no
7309       ;;
7310   esac
7311
7312   skip_targ=no
7313   case $ac_arg in
7314
7315   --with-* | --without-*)
7316     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7317
7318     case $libopt in
7319     *[-_]include)
7320       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7321       ;;
7322     *[-_]lib)
7323       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7324       ;;
7325     *)
7326       lib=$libopt
7327       ;;
7328     esac
7329
7330
7331     case $lib in
7332     mpc | mpfr | gmp | isl)
7333       # If we're processing --with-$lib, --with-$lib-include or
7334       # --with-$lib-lib, for one of the libs above, and target is
7335       # different from host, don't pass the current argument to any
7336       # target library's configure.
7337       if test x$is_cross_compiler = xyes; then
7338         skip_targ=yes
7339       fi
7340       ;;
7341     esac
7342     ;;
7343   esac
7344
7345   case "$ac_arg" in
7346     --cache-file=/dev/null | \
7347     -cache-file=/dev/null )
7348       # Handled here to avoid the test to skip args below.
7349       baseargs="$baseargs '$ac_arg'"
7350       tbaseargs="$tbaseargs '$ac_arg'"
7351       # Assert: $separate_arg should always be no.
7352       keep_next=$separate_arg
7353       ;;
7354     --no*)
7355       continue
7356       ;;
7357     --c* | \
7358     --sr* | \
7359     --ho* | \
7360     --bu* | \
7361     --t* | \
7362     --program-* | \
7363     -cache_file* | \
7364     -srcdir* | \
7365     -host* | \
7366     -build* | \
7367     -target* | \
7368     -program-prefix* | \
7369     -program-suffix* | \
7370     -program-transform-name* )
7371       skip_next=$separate_arg
7372       continue
7373       ;;
7374     -*)
7375       # An option.  Add it.
7376       case $ac_arg in
7377         *\'*)
7378           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7379       esac
7380       baseargs="$baseargs '$ac_arg'"
7381       if test X"$skip_targ" = Xno; then
7382         tbaseargs="$tbaseargs '$ac_arg'"
7383       fi
7384       keep_next=$separate_arg
7385       ;;
7386     *)
7387       # Either a variable assignment, or a nonopt (triplet).  Don't
7388       # pass it down; let the Makefile handle this.
7389       continue
7390       ;;
7391   esac
7392 done
7393 # Remove the initial space we just introduced and, as these will be
7394 # expanded by make, quote '$'.
7395 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7396
7397 # Add in --program-transform-name, after --program-prefix and
7398 # --program-suffix have been applied to it.  Autoconf has already
7399 # doubled dollar signs and backslashes in program_transform_name; we want
7400 # the backslashes un-doubled, and then the entire thing wrapped in single
7401 # quotes, because this will be expanded first by make and then by the shell.
7402 # Also, because we want to override the logic in subdir configure scripts to
7403 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7404 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7405 ${program_transform_name}
7406 EOF_SED
7407 gcc_transform_name=`cat conftestsed.out`
7408 rm -f conftestsed.out
7409 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7410 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7411 if test "$silent" = yes; then
7412   baseargs="$baseargs --silent"
7413   tbaseargs="$tbaseargs --silent"
7414 fi
7415 baseargs="$baseargs --disable-option-checking"
7416 tbaseargs="$tbaseargs --disable-option-checking"
7417
7418 # Record and document user additions to sub configure arguments.
7419
7420
7421
7422
7423 # For the build-side libraries, we just need to pretend we're native,
7424 # and not use the same cache file.  Multilibs are neither needed nor
7425 # desired.  We can't even use the same cache file for all build-side
7426 # libraries, as they're compiled differently; some with C, some with
7427 # C++ or with different feature-enabling options.
7428 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7429
7430 # For host modules, accept cache file option, or specification as blank.
7431 case "${cache_file}" in
7432 "") # empty
7433   cache_file_option="" ;;
7434 /* | [A-Za-z]:[\\/]* ) # absolute path
7435   cache_file_option="--cache-file=${cache_file}" ;;
7436 *) # relative path
7437   cache_file_option="--cache-file=../${cache_file}" ;;
7438 esac
7439
7440 # Host dirs don't like to share a cache file either, horribly enough.
7441 # This seems to be due to autoconf 2.5x stupidity.
7442 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7443
7444 target_configargs="$target_configargs ${tbaseargs}"
7445
7446 # Passing a --with-cross-host argument lets the target libraries know
7447 # whether they are being built with a cross-compiler or being built
7448 # native.  However, it would be better to use other mechanisms to make the
7449 # sorts of decisions they want to make on this basis.  Please consider
7450 # this option to be deprecated.  FIXME.
7451 if test x${is_cross_compiler} = xyes ; then
7452   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7453 fi
7454
7455 # Special user-friendly check for native x86_64-linux build, if
7456 # multilib is not explicitly enabled.
7457 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7458   x86_64-*linux*:yes:$build:$build:)
7459     # Make sure we have a developement environment that handles 32-bit
7460     dev64=no
7461     echo "int main () { return 0; }" > conftest.c
7462     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7463     if test $? = 0 ; then
7464       if test -s conftest || test -s conftest.exe ; then
7465         dev64=yes
7466       fi
7467     fi
7468     rm -f conftest*
7469     if test x${dev64} != xyes ; then
7470       as_fn_error "I suspect your system does not have 32-bit developement 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
7471     fi
7472     ;;
7473 esac
7474
7475 # Default to --enable-multilib.
7476 if test x${enable_multilib} = x ; then
7477   target_configargs="--enable-multilib ${target_configargs}"
7478 fi
7479
7480 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7481 # changed from the earlier setting of with_newlib.
7482 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7483   target_configargs="--with-newlib ${target_configargs}"
7484 fi
7485
7486 # Different target subdirs use different values of certain variables
7487 # (notably CXX).  Worse, multilibs use *lots* of different values.
7488 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7489 # it doesn't automatically accept command-line overrides of them.
7490 # This means it's not safe for target subdirs to share a cache file,
7491 # which is disgusting, but there you have it.  Hopefully this can be
7492 # fixed in future.  It's still worthwhile to use a cache file for each
7493 # directory.  I think.
7494
7495 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7496 # We need to pass --target, as newer autoconf's requires consistency
7497 # for target_alias and gcc doesn't manage it consistently.
7498 target_configargs="--cache-file=./config.cache ${target_configargs}"
7499
7500 FLAGS_FOR_TARGET=
7501 case " $target_configdirs " in
7502  *" newlib "*)
7503   case " $target_configargs " in
7504   *" --with-newlib "*)
7505    case "$target" in
7506     *-cygwin*)
7507       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7508       ;;
7509    esac
7510
7511    # If we're not building GCC, don't discard standard headers.
7512    if test -d ${srcdir}/gcc; then
7513      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7514
7515      if test "${build}" != "${host}"; then
7516        # On Canadian crosses, CC_FOR_TARGET will have already been set
7517        # by `configure', so we won't have an opportunity to add -Bgcc/
7518        # to it.  This is right: we don't want to search that directory
7519        # for binaries, but we want the header files in there, so add
7520        # them explicitly.
7521        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7522
7523        # Someone might think of using the pre-installed headers on
7524        # Canadian crosses, in case the installed compiler is not fully
7525        # compatible with the compiler being built.  In this case, it
7526        # would be better to flag an error than risking having
7527        # incompatible object files being constructed.  We can't
7528        # guarantee that an error will be flagged, but let's hope the
7529        # compiler will do it, when presented with incompatible header
7530        # files.
7531      fi
7532    fi
7533
7534    case "${target}-${is_cross_compiler}" in
7535    i[3456789]86-*-linux*-no)
7536       # Here host == target, so we don't need to build gcc,
7537       # so we don't want to discard standard headers.
7538       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7539       ;;
7540    *)
7541       # If we're building newlib, use its generic headers last, but search
7542       # for any libc-related directories first (so make it the last -B
7543       # switch).
7544       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7545
7546       # If we're building libgloss, find the startup file, simulator library
7547       # and linker script.
7548       case " $target_configdirs " in
7549         *" libgloss "*)
7550         # Look for startup file, simulator library and maybe linker script.
7551         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7552         # Look for libnosys.a in case the target needs it.
7553         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7554         # Most targets have the linker script in the source directory.
7555         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7556         ;;
7557       esac
7558       ;;
7559    esac
7560    ;;
7561   esac
7562   ;;
7563 esac
7564
7565 case "$target" in
7566   x86_64-*mingw* | *-w64-mingw*)
7567   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7568   # however, use a symlink named 'mingw' in ${prefix} .
7569     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7570     ;;
7571   *-mingw*)
7572   # MinGW can't be handled as Cygwin above since it does not use newlib.
7573     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'
7574     ;;
7575 esac
7576
7577 # Allow the user to override the flags for
7578 # our build compiler if desired.
7579 if test x"${build}" = x"${host}" ; then
7580   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7581   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7582   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7583 fi
7584
7585 # On Canadian crosses, we'll be searching the right directories for
7586 # the previously-installed cross compiler, so don't bother to add
7587 # flags for directories within the install tree of the compiler
7588 # being built; programs in there won't even run.
7589 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7590   # Search for pre-installed headers if nothing else fits.
7591   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7592 fi
7593
7594 if test "x${use_gnu_ld}" = x &&
7595    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7596   # Arrange for us to find uninstalled linker scripts.
7597   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7598 fi
7599
7600 # Search for other target-specific linker scripts and such.
7601 case "${target}" in
7602   mep*)
7603     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7604     ;;
7605 esac
7606
7607 # Makefile fragments.
7608 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7609 do
7610   eval fragval=\$$frag
7611   if test $fragval != /dev/null; then
7612     eval $frag=${srcdir}/$fragval
7613   fi
7614 done
7615
7616
7617
7618
7619
7620 # Miscellanea: directories, flags, etc.
7621
7622
7623
7624
7625
7626
7627
7628
7629 # Build module lists & subconfigure args.
7630
7631
7632
7633 # Host module lists & subconfigure args.
7634
7635
7636
7637
7638 # Target module lists & subconfigure args.
7639
7640
7641
7642 # Build tools.
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660 # Generate default definitions for YACC, M4, LEX and other programs that run
7661 # on the build machine.  These are used if the Makefile can't locate these
7662 # programs in objdir.
7663 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7664
7665 for ac_prog in 'bison -y' byacc yacc
7666 do
7667   # Extract the first word of "$ac_prog", so it can be a program name with args.
7668 set dummy $ac_prog; ac_word=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if test "${ac_cv_prog_YACC+set}" = set; then :
7672   $as_echo_n "(cached) " >&6
7673 else
7674   if test -n "$YACC"; then
7675   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7676 else
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7679 do
7680   IFS=$as_save_IFS
7681   test -z "$as_dir" && as_dir=.
7682     for ac_exec_ext in '' $ac_executable_extensions; do
7683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684     ac_cv_prog_YACC="$ac_prog"
7685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686     break 2
7687   fi
7688 done
7689   done
7690 IFS=$as_save_IFS
7691
7692 fi
7693 fi
7694 YACC=$ac_cv_prog_YACC
7695 if test -n "$YACC"; then
7696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7697 $as_echo "$YACC" >&6; }
7698 else
7699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7701 fi
7702
7703
7704   test -n "$YACC" && break
7705 done
7706 test -n "$YACC" || YACC="$MISSING bison -y"
7707
7708 case " $build_configdirs " in
7709   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7710 esac
7711
7712 for ac_prog in bison
7713 do
7714   # Extract the first word of "$ac_prog", so it can be a program name with args.
7715 set dummy $ac_prog; ac_word=$2
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717 $as_echo_n "checking for $ac_word... " >&6; }
7718 if test "${ac_cv_prog_BISON+set}" = set; then :
7719   $as_echo_n "(cached) " >&6
7720 else
7721   if test -n "$BISON"; then
7722   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7723 else
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7726 do
7727   IFS=$as_save_IFS
7728   test -z "$as_dir" && as_dir=.
7729     for ac_exec_ext in '' $ac_executable_extensions; do
7730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7731     ac_cv_prog_BISON="$ac_prog"
7732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7733     break 2
7734   fi
7735 done
7736   done
7737 IFS=$as_save_IFS
7738
7739 fi
7740 fi
7741 BISON=$ac_cv_prog_BISON
7742 if test -n "$BISON"; then
7743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7744 $as_echo "$BISON" >&6; }
7745 else
7746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7748 fi
7749
7750
7751   test -n "$BISON" && break
7752 done
7753 test -n "$BISON" || BISON="$MISSING bison"
7754
7755 case " $build_configdirs " in
7756   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7757 esac
7758
7759 for ac_prog in gm4 gnum4 m4
7760 do
7761   # Extract the first word of "$ac_prog", so it can be a program name with args.
7762 set dummy $ac_prog; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if test "${ac_cv_prog_M4+set}" = set; then :
7766   $as_echo_n "(cached) " >&6
7767 else
7768   if test -n "$M4"; then
7769   ac_cv_prog_M4="$M4" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774   IFS=$as_save_IFS
7775   test -z "$as_dir" && as_dir=.
7776     for ac_exec_ext in '' $ac_executable_extensions; do
7777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778     ac_cv_prog_M4="$ac_prog"
7779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780     break 2
7781   fi
7782 done
7783   done
7784 IFS=$as_save_IFS
7785
7786 fi
7787 fi
7788 M4=$ac_cv_prog_M4
7789 if test -n "$M4"; then
7790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7791 $as_echo "$M4" >&6; }
7792 else
7793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7795 fi
7796
7797
7798   test -n "$M4" && break
7799 done
7800 test -n "$M4" || M4="$MISSING m4"
7801
7802 case " $build_configdirs " in
7803   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7804 esac
7805
7806 for ac_prog in flex lex
7807 do
7808   # Extract the first word of "$ac_prog", so it can be a program name with args.
7809 set dummy $ac_prog; ac_word=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if test "${ac_cv_prog_LEX+set}" = set; then :
7813   $as_echo_n "(cached) " >&6
7814 else
7815   if test -n "$LEX"; then
7816   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7817 else
7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 for as_dir in $PATH
7820 do
7821   IFS=$as_save_IFS
7822   test -z "$as_dir" && as_dir=.
7823     for ac_exec_ext in '' $ac_executable_extensions; do
7824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7825     ac_cv_prog_LEX="$ac_prog"
7826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7827     break 2
7828   fi
7829 done
7830   done
7831 IFS=$as_save_IFS
7832
7833 fi
7834 fi
7835 LEX=$ac_cv_prog_LEX
7836 if test -n "$LEX"; then
7837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7838 $as_echo "$LEX" >&6; }
7839 else
7840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 $as_echo "no" >&6; }
7842 fi
7843
7844
7845   test -n "$LEX" && break
7846 done
7847 test -n "$LEX" || LEX="$MISSING flex"
7848
7849 case " $build_configdirs " in
7850   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7851   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7852 esac
7853
7854 for ac_prog in flex
7855 do
7856   # Extract the first word of "$ac_prog", so it can be a program name with args.
7857 set dummy $ac_prog; ac_word=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 $as_echo_n "checking for $ac_word... " >&6; }
7860 if test "${ac_cv_prog_FLEX+set}" = set; then :
7861   $as_echo_n "(cached) " >&6
7862 else
7863   if test -n "$FLEX"; then
7864   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7865 else
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7868 do
7869   IFS=$as_save_IFS
7870   test -z "$as_dir" && as_dir=.
7871     for ac_exec_ext in '' $ac_executable_extensions; do
7872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7873     ac_cv_prog_FLEX="$ac_prog"
7874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875     break 2
7876   fi
7877 done
7878   done
7879 IFS=$as_save_IFS
7880
7881 fi
7882 fi
7883 FLEX=$ac_cv_prog_FLEX
7884 if test -n "$FLEX"; then
7885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7886 $as_echo "$FLEX" >&6; }
7887 else
7888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7890 fi
7891
7892
7893   test -n "$FLEX" && break
7894 done
7895 test -n "$FLEX" || FLEX="$MISSING flex"
7896
7897 case " $build_configdirs " in
7898   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7899 esac
7900
7901 for ac_prog in makeinfo
7902 do
7903   # Extract the first word of "$ac_prog", so it can be a program name with args.
7904 set dummy $ac_prog; ac_word=$2
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906 $as_echo_n "checking for $ac_word... " >&6; }
7907 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7908   $as_echo_n "(cached) " >&6
7909 else
7910   if test -n "$MAKEINFO"; then
7911   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7912 else
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 for as_dir in $PATH
7915 do
7916   IFS=$as_save_IFS
7917   test -z "$as_dir" && as_dir=.
7918     for ac_exec_ext in '' $ac_executable_extensions; do
7919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7920     ac_cv_prog_MAKEINFO="$ac_prog"
7921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7922     break 2
7923   fi
7924 done
7925   done
7926 IFS=$as_save_IFS
7927
7928 fi
7929 fi
7930 MAKEINFO=$ac_cv_prog_MAKEINFO
7931 if test -n "$MAKEINFO"; then
7932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7933 $as_echo "$MAKEINFO" >&6; }
7934 else
7935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7937 fi
7938
7939
7940   test -n "$MAKEINFO" && break
7941 done
7942 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7943
7944 case " $build_configdirs " in
7945   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7946   *)
7947
7948     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7949     # higher, else we use the "missing" dummy.
7950     if ${MAKEINFO} --version \
7951        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7952       :
7953     else
7954       MAKEINFO="$MISSING makeinfo"
7955     fi
7956     ;;
7957
7958 esac
7959
7960 # FIXME: expect and dejagnu may become build tools?
7961
7962 for ac_prog in expect
7963 do
7964   # Extract the first word of "$ac_prog", so it can be a program name with args.
7965 set dummy $ac_prog; ac_word=$2
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967 $as_echo_n "checking for $ac_word... " >&6; }
7968 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7969   $as_echo_n "(cached) " >&6
7970 else
7971   if test -n "$EXPECT"; then
7972   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7973 else
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7976 do
7977   IFS=$as_save_IFS
7978   test -z "$as_dir" && as_dir=.
7979     for ac_exec_ext in '' $ac_executable_extensions; do
7980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7981     ac_cv_prog_EXPECT="$ac_prog"
7982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7983     break 2
7984   fi
7985 done
7986   done
7987 IFS=$as_save_IFS
7988
7989 fi
7990 fi
7991 EXPECT=$ac_cv_prog_EXPECT
7992 if test -n "$EXPECT"; then
7993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7994 $as_echo "$EXPECT" >&6; }
7995 else
7996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
7998 fi
7999
8000
8001   test -n "$EXPECT" && break
8002 done
8003 test -n "$EXPECT" || EXPECT="expect"
8004
8005 case " $configdirs " in
8006   *" expect "*)
8007     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8008     ;;
8009 esac
8010
8011 for ac_prog in runtest
8012 do
8013   # Extract the first word of "$ac_prog", so it can be a program name with args.
8014 set dummy $ac_prog; ac_word=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8018   $as_echo_n "(cached) " >&6
8019 else
8020   if test -n "$RUNTEST"; then
8021   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8022 else
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 for as_dir in $PATH
8025 do
8026   IFS=$as_save_IFS
8027   test -z "$as_dir" && as_dir=.
8028     for ac_exec_ext in '' $ac_executable_extensions; do
8029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8030     ac_cv_prog_RUNTEST="$ac_prog"
8031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032     break 2
8033   fi
8034 done
8035   done
8036 IFS=$as_save_IFS
8037
8038 fi
8039 fi
8040 RUNTEST=$ac_cv_prog_RUNTEST
8041 if test -n "$RUNTEST"; then
8042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8043 $as_echo "$RUNTEST" >&6; }
8044 else
8045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8047 fi
8048
8049
8050   test -n "$RUNTEST" && break
8051 done
8052 test -n "$RUNTEST" || RUNTEST="runtest"
8053
8054 case " $configdirs " in
8055   *" dejagnu "*)
8056     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8057     ;;
8058 esac
8059
8060
8061 # Host tools.
8062 ncn_tool_prefix=
8063 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8064 ncn_target_tool_prefix=
8065 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8066
8067
8068
8069 if test -n "$AR"; then
8070   ac_cv_prog_AR=$AR
8071 elif test -n "$ac_cv_prog_AR"; then
8072   AR=$ac_cv_prog_AR
8073 fi
8074
8075 if test -n "$ac_cv_prog_AR"; then
8076   for ncn_progname in ar; do
8077     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8078 set dummy ${ncn_progname}; ac_word=$2
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080 $as_echo_n "checking for $ac_word... " >&6; }
8081 if test "${ac_cv_prog_AR+set}" = set; then :
8082   $as_echo_n "(cached) " >&6
8083 else
8084   if test -n "$AR"; then
8085   ac_cv_prog_AR="$AR" # Let the user override the test.
8086 else
8087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 for as_dir in $PATH
8089 do
8090   IFS=$as_save_IFS
8091   test -z "$as_dir" && as_dir=.
8092     for ac_exec_ext in '' $ac_executable_extensions; do
8093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8094     ac_cv_prog_AR="${ncn_progname}"
8095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096     break 2
8097   fi
8098 done
8099   done
8100 IFS=$as_save_IFS
8101
8102 fi
8103 fi
8104 AR=$ac_cv_prog_AR
8105 if test -n "$AR"; then
8106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8107 $as_echo "$AR" >&6; }
8108 else
8109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8111 fi
8112
8113
8114   done
8115 fi
8116
8117 for ncn_progname in ar; do
8118   if test -n "$ncn_tool_prefix"; then
8119     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8120 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122 $as_echo_n "checking for $ac_word... " >&6; }
8123 if test "${ac_cv_prog_AR+set}" = set; then :
8124   $as_echo_n "(cached) " >&6
8125 else
8126   if test -n "$AR"; then
8127   ac_cv_prog_AR="$AR" # Let the user override the test.
8128 else
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8131 do
8132   IFS=$as_save_IFS
8133   test -z "$as_dir" && as_dir=.
8134     for ac_exec_ext in '' $ac_executable_extensions; do
8135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8136     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138     break 2
8139   fi
8140 done
8141   done
8142 IFS=$as_save_IFS
8143
8144 fi
8145 fi
8146 AR=$ac_cv_prog_AR
8147 if test -n "$AR"; then
8148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8149 $as_echo "$AR" >&6; }
8150 else
8151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8153 fi
8154
8155
8156   fi
8157   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8158     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8159 set dummy ${ncn_progname}; ac_word=$2
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161 $as_echo_n "checking for $ac_word... " >&6; }
8162 if test "${ac_cv_prog_AR+set}" = set; then :
8163   $as_echo_n "(cached) " >&6
8164 else
8165   if test -n "$AR"; then
8166   ac_cv_prog_AR="$AR" # Let the user override the test.
8167 else
8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 for as_dir in $PATH
8170 do
8171   IFS=$as_save_IFS
8172   test -z "$as_dir" && as_dir=.
8173     for ac_exec_ext in '' $ac_executable_extensions; do
8174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8175     ac_cv_prog_AR="${ncn_progname}"
8176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8177     break 2
8178   fi
8179 done
8180   done
8181 IFS=$as_save_IFS
8182
8183 fi
8184 fi
8185 AR=$ac_cv_prog_AR
8186 if test -n "$AR"; then
8187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8188 $as_echo "$AR" >&6; }
8189 else
8190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191 $as_echo "no" >&6; }
8192 fi
8193
8194
8195   fi
8196   test -n "$ac_cv_prog_AR" && break
8197 done
8198
8199 if test -z "$ac_cv_prog_AR" ; then
8200   set dummy ar
8201   if test $build = $host ; then
8202     AR="$2"
8203   else
8204     AR="${ncn_tool_prefix}$2"
8205   fi
8206 fi
8207
8208
8209
8210 if test -n "$AS"; then
8211   ac_cv_prog_AS=$AS
8212 elif test -n "$ac_cv_prog_AS"; then
8213   AS=$ac_cv_prog_AS
8214 fi
8215
8216 if test -n "$ac_cv_prog_AS"; then
8217   for ncn_progname in as; do
8218     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8219 set dummy ${ncn_progname}; ac_word=$2
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8221 $as_echo_n "checking for $ac_word... " >&6; }
8222 if test "${ac_cv_prog_AS+set}" = set; then :
8223   $as_echo_n "(cached) " >&6
8224 else
8225   if test -n "$AS"; then
8226   ac_cv_prog_AS="$AS" # Let the user override the test.
8227 else
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 for as_dir in $PATH
8230 do
8231   IFS=$as_save_IFS
8232   test -z "$as_dir" && as_dir=.
8233     for ac_exec_ext in '' $ac_executable_extensions; do
8234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8235     ac_cv_prog_AS="${ncn_progname}"
8236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8237     break 2
8238   fi
8239 done
8240   done
8241 IFS=$as_save_IFS
8242
8243 fi
8244 fi
8245 AS=$ac_cv_prog_AS
8246 if test -n "$AS"; then
8247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8248 $as_echo "$AS" >&6; }
8249 else
8250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 $as_echo "no" >&6; }
8252 fi
8253
8254
8255   done
8256 fi
8257
8258 for ncn_progname in as; do
8259   if test -n "$ncn_tool_prefix"; then
8260     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8261 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 $as_echo_n "checking for $ac_word... " >&6; }
8264 if test "${ac_cv_prog_AS+set}" = set; then :
8265   $as_echo_n "(cached) " >&6
8266 else
8267   if test -n "$AS"; then
8268   ac_cv_prog_AS="$AS" # Let the user override the test.
8269 else
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8272 do
8273   IFS=$as_save_IFS
8274   test -z "$as_dir" && as_dir=.
8275     for ac_exec_ext in '' $ac_executable_extensions; do
8276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8277     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279     break 2
8280   fi
8281 done
8282   done
8283 IFS=$as_save_IFS
8284
8285 fi
8286 fi
8287 AS=$ac_cv_prog_AS
8288 if test -n "$AS"; then
8289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8290 $as_echo "$AS" >&6; }
8291 else
8292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8294 fi
8295
8296
8297   fi
8298   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8299     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8300 set dummy ${ncn_progname}; ac_word=$2
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302 $as_echo_n "checking for $ac_word... " >&6; }
8303 if test "${ac_cv_prog_AS+set}" = set; then :
8304   $as_echo_n "(cached) " >&6
8305 else
8306   if test -n "$AS"; then
8307   ac_cv_prog_AS="$AS" # Let the user override the test.
8308 else
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8311 do
8312   IFS=$as_save_IFS
8313   test -z "$as_dir" && as_dir=.
8314     for ac_exec_ext in '' $ac_executable_extensions; do
8315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8316     ac_cv_prog_AS="${ncn_progname}"
8317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318     break 2
8319   fi
8320 done
8321   done
8322 IFS=$as_save_IFS
8323
8324 fi
8325 fi
8326 AS=$ac_cv_prog_AS
8327 if test -n "$AS"; then
8328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8329 $as_echo "$AS" >&6; }
8330 else
8331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8333 fi
8334
8335
8336   fi
8337   test -n "$ac_cv_prog_AS" && break
8338 done
8339
8340 if test -z "$ac_cv_prog_AS" ; then
8341   set dummy as
8342   if test $build = $host ; then
8343     AS="$2"
8344   else
8345     AS="${ncn_tool_prefix}$2"
8346   fi
8347 fi
8348
8349
8350
8351 if test -n "$DLLTOOL"; then
8352   ac_cv_prog_DLLTOOL=$DLLTOOL
8353 elif test -n "$ac_cv_prog_DLLTOOL"; then
8354   DLLTOOL=$ac_cv_prog_DLLTOOL
8355 fi
8356
8357 if test -n "$ac_cv_prog_DLLTOOL"; then
8358   for ncn_progname in dlltool; do
8359     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8360 set dummy ${ncn_progname}; ac_word=$2
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362 $as_echo_n "checking for $ac_word... " >&6; }
8363 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8364   $as_echo_n "(cached) " >&6
8365 else
8366   if test -n "$DLLTOOL"; then
8367   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8368 else
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 for as_dir in $PATH
8371 do
8372   IFS=$as_save_IFS
8373   test -z "$as_dir" && as_dir=.
8374     for ac_exec_ext in '' $ac_executable_extensions; do
8375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8376     ac_cv_prog_DLLTOOL="${ncn_progname}"
8377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8378     break 2
8379   fi
8380 done
8381   done
8382 IFS=$as_save_IFS
8383
8384 fi
8385 fi
8386 DLLTOOL=$ac_cv_prog_DLLTOOL
8387 if test -n "$DLLTOOL"; then
8388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8389 $as_echo "$DLLTOOL" >&6; }
8390 else
8391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393 fi
8394
8395
8396   done
8397 fi
8398
8399 for ncn_progname in dlltool; do
8400   if test -n "$ncn_tool_prefix"; then
8401     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8402 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404 $as_echo_n "checking for $ac_word... " >&6; }
8405 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8406   $as_echo_n "(cached) " >&6
8407 else
8408   if test -n "$DLLTOOL"; then
8409   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8410 else
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 for as_dir in $PATH
8413 do
8414   IFS=$as_save_IFS
8415   test -z "$as_dir" && as_dir=.
8416     for ac_exec_ext in '' $ac_executable_extensions; do
8417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8418     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8420     break 2
8421   fi
8422 done
8423   done
8424 IFS=$as_save_IFS
8425
8426 fi
8427 fi
8428 DLLTOOL=$ac_cv_prog_DLLTOOL
8429 if test -n "$DLLTOOL"; then
8430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8431 $as_echo "$DLLTOOL" >&6; }
8432 else
8433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434 $as_echo "no" >&6; }
8435 fi
8436
8437
8438   fi
8439   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8440     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8441 set dummy ${ncn_progname}; ac_word=$2
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8443 $as_echo_n "checking for $ac_word... " >&6; }
8444 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8445   $as_echo_n "(cached) " >&6
8446 else
8447   if test -n "$DLLTOOL"; then
8448   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8449 else
8450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 for as_dir in $PATH
8452 do
8453   IFS=$as_save_IFS
8454   test -z "$as_dir" && as_dir=.
8455     for ac_exec_ext in '' $ac_executable_extensions; do
8456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8457     ac_cv_prog_DLLTOOL="${ncn_progname}"
8458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8459     break 2
8460   fi
8461 done
8462   done
8463 IFS=$as_save_IFS
8464
8465 fi
8466 fi
8467 DLLTOOL=$ac_cv_prog_DLLTOOL
8468 if test -n "$DLLTOOL"; then
8469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8470 $as_echo "$DLLTOOL" >&6; }
8471 else
8472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473 $as_echo "no" >&6; }
8474 fi
8475
8476
8477   fi
8478   test -n "$ac_cv_prog_DLLTOOL" && break
8479 done
8480
8481 if test -z "$ac_cv_prog_DLLTOOL" ; then
8482   set dummy dlltool
8483   if test $build = $host ; then
8484     DLLTOOL="$2"
8485   else
8486     DLLTOOL="${ncn_tool_prefix}$2"
8487   fi
8488 fi
8489
8490
8491
8492 if test -n "$LD"; then
8493   ac_cv_prog_LD=$LD
8494 elif test -n "$ac_cv_prog_LD"; then
8495   LD=$ac_cv_prog_LD
8496 fi
8497
8498 if test -n "$ac_cv_prog_LD"; then
8499   for ncn_progname in ld; do
8500     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8501 set dummy ${ncn_progname}; ac_word=$2
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503 $as_echo_n "checking for $ac_word... " >&6; }
8504 if test "${ac_cv_prog_LD+set}" = set; then :
8505   $as_echo_n "(cached) " >&6
8506 else
8507   if test -n "$LD"; then
8508   ac_cv_prog_LD="$LD" # Let the user override the test.
8509 else
8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 for as_dir in $PATH
8512 do
8513   IFS=$as_save_IFS
8514   test -z "$as_dir" && as_dir=.
8515     for ac_exec_ext in '' $ac_executable_extensions; do
8516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8517     ac_cv_prog_LD="${ncn_progname}"
8518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8519     break 2
8520   fi
8521 done
8522   done
8523 IFS=$as_save_IFS
8524
8525 fi
8526 fi
8527 LD=$ac_cv_prog_LD
8528 if test -n "$LD"; then
8529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8530 $as_echo "$LD" >&6; }
8531 else
8532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533 $as_echo "no" >&6; }
8534 fi
8535
8536
8537   done
8538 fi
8539
8540 for ncn_progname in ld; do
8541   if test -n "$ncn_tool_prefix"; then
8542     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8543 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8545 $as_echo_n "checking for $ac_word... " >&6; }
8546 if test "${ac_cv_prog_LD+set}" = set; then :
8547   $as_echo_n "(cached) " >&6
8548 else
8549   if test -n "$LD"; then
8550   ac_cv_prog_LD="$LD" # Let the user override the test.
8551 else
8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553 for as_dir in $PATH
8554 do
8555   IFS=$as_save_IFS
8556   test -z "$as_dir" && as_dir=.
8557     for ac_exec_ext in '' $ac_executable_extensions; do
8558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8559     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8561     break 2
8562   fi
8563 done
8564   done
8565 IFS=$as_save_IFS
8566
8567 fi
8568 fi
8569 LD=$ac_cv_prog_LD
8570 if test -n "$LD"; then
8571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8572 $as_echo "$LD" >&6; }
8573 else
8574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8576 fi
8577
8578
8579   fi
8580   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8581     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8582 set dummy ${ncn_progname}; ac_word=$2
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584 $as_echo_n "checking for $ac_word... " >&6; }
8585 if test "${ac_cv_prog_LD+set}" = set; then :
8586   $as_echo_n "(cached) " >&6
8587 else
8588   if test -n "$LD"; then
8589   ac_cv_prog_LD="$LD" # Let the user override the test.
8590 else
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 for as_dir in $PATH
8593 do
8594   IFS=$as_save_IFS
8595   test -z "$as_dir" && as_dir=.
8596     for ac_exec_ext in '' $ac_executable_extensions; do
8597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8598     ac_cv_prog_LD="${ncn_progname}"
8599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600     break 2
8601   fi
8602 done
8603   done
8604 IFS=$as_save_IFS
8605
8606 fi
8607 fi
8608 LD=$ac_cv_prog_LD
8609 if test -n "$LD"; then
8610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8611 $as_echo "$LD" >&6; }
8612 else
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8615 fi
8616
8617
8618   fi
8619   test -n "$ac_cv_prog_LD" && break
8620 done
8621
8622 if test -z "$ac_cv_prog_LD" ; then
8623   set dummy ld
8624   if test $build = $host ; then
8625     LD="$2"
8626   else
8627     LD="${ncn_tool_prefix}$2"
8628   fi
8629 fi
8630
8631
8632
8633 if test -n "$LIPO"; then
8634   ac_cv_prog_LIPO=$LIPO
8635 elif test -n "$ac_cv_prog_LIPO"; then
8636   LIPO=$ac_cv_prog_LIPO
8637 fi
8638
8639 if test -n "$ac_cv_prog_LIPO"; then
8640   for ncn_progname in lipo; do
8641     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8642 set dummy ${ncn_progname}; ac_word=$2
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644 $as_echo_n "checking for $ac_word... " >&6; }
8645 if test "${ac_cv_prog_LIPO+set}" = set; then :
8646   $as_echo_n "(cached) " >&6
8647 else
8648   if test -n "$LIPO"; then
8649   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8650 else
8651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652 for as_dir in $PATH
8653 do
8654   IFS=$as_save_IFS
8655   test -z "$as_dir" && as_dir=.
8656     for ac_exec_ext in '' $ac_executable_extensions; do
8657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8658     ac_cv_prog_LIPO="${ncn_progname}"
8659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8660     break 2
8661   fi
8662 done
8663   done
8664 IFS=$as_save_IFS
8665
8666 fi
8667 fi
8668 LIPO=$ac_cv_prog_LIPO
8669 if test -n "$LIPO"; then
8670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8671 $as_echo "$LIPO" >&6; }
8672 else
8673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8674 $as_echo "no" >&6; }
8675 fi
8676
8677
8678   done
8679 fi
8680
8681 for ncn_progname in lipo; do
8682   if test -n "$ncn_tool_prefix"; then
8683     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8684 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8686 $as_echo_n "checking for $ac_word... " >&6; }
8687 if test "${ac_cv_prog_LIPO+set}" = set; then :
8688   $as_echo_n "(cached) " >&6
8689 else
8690   if test -n "$LIPO"; then
8691   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8692 else
8693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694 for as_dir in $PATH
8695 do
8696   IFS=$as_save_IFS
8697   test -z "$as_dir" && as_dir=.
8698     for ac_exec_ext in '' $ac_executable_extensions; do
8699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8700     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8702     break 2
8703   fi
8704 done
8705   done
8706 IFS=$as_save_IFS
8707
8708 fi
8709 fi
8710 LIPO=$ac_cv_prog_LIPO
8711 if test -n "$LIPO"; then
8712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8713 $as_echo "$LIPO" >&6; }
8714 else
8715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716 $as_echo "no" >&6; }
8717 fi
8718
8719
8720   fi
8721   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8722     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8723 set dummy ${ncn_progname}; ac_word=$2
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725 $as_echo_n "checking for $ac_word... " >&6; }
8726 if test "${ac_cv_prog_LIPO+set}" = set; then :
8727   $as_echo_n "(cached) " >&6
8728 else
8729   if test -n "$LIPO"; then
8730   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8731 else
8732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 for as_dir in $PATH
8734 do
8735   IFS=$as_save_IFS
8736   test -z "$as_dir" && as_dir=.
8737     for ac_exec_ext in '' $ac_executable_extensions; do
8738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8739     ac_cv_prog_LIPO="${ncn_progname}"
8740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8741     break 2
8742   fi
8743 done
8744   done
8745 IFS=$as_save_IFS
8746
8747 fi
8748 fi
8749 LIPO=$ac_cv_prog_LIPO
8750 if test -n "$LIPO"; then
8751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8752 $as_echo "$LIPO" >&6; }
8753 else
8754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 $as_echo "no" >&6; }
8756 fi
8757
8758
8759   fi
8760   test -n "$ac_cv_prog_LIPO" && break
8761 done
8762
8763 if test -z "$ac_cv_prog_LIPO" ; then
8764   set dummy lipo
8765   if test $build = $host ; then
8766     LIPO="$2"
8767   else
8768     LIPO="${ncn_tool_prefix}$2"
8769   fi
8770 fi
8771
8772
8773
8774 if test -n "$NM"; then
8775   ac_cv_prog_NM=$NM
8776 elif test -n "$ac_cv_prog_NM"; then
8777   NM=$ac_cv_prog_NM
8778 fi
8779
8780 if test -n "$ac_cv_prog_NM"; then
8781   for ncn_progname in nm; do
8782     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8783 set dummy ${ncn_progname}; ac_word=$2
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785 $as_echo_n "checking for $ac_word... " >&6; }
8786 if test "${ac_cv_prog_NM+set}" = set; then :
8787   $as_echo_n "(cached) " >&6
8788 else
8789   if test -n "$NM"; then
8790   ac_cv_prog_NM="$NM" # Let the user override the test.
8791 else
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 for as_dir in $PATH
8794 do
8795   IFS=$as_save_IFS
8796   test -z "$as_dir" && as_dir=.
8797     for ac_exec_ext in '' $ac_executable_extensions; do
8798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8799     ac_cv_prog_NM="${ncn_progname}"
8800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801     break 2
8802   fi
8803 done
8804   done
8805 IFS=$as_save_IFS
8806
8807 fi
8808 fi
8809 NM=$ac_cv_prog_NM
8810 if test -n "$NM"; then
8811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8812 $as_echo "$NM" >&6; }
8813 else
8814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 $as_echo "no" >&6; }
8816 fi
8817
8818
8819   done
8820 fi
8821
8822 for ncn_progname in nm; do
8823   if test -n "$ncn_tool_prefix"; then
8824     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8825 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827 $as_echo_n "checking for $ac_word... " >&6; }
8828 if test "${ac_cv_prog_NM+set}" = set; then :
8829   $as_echo_n "(cached) " >&6
8830 else
8831   if test -n "$NM"; then
8832   ac_cv_prog_NM="$NM" # Let the user override the test.
8833 else
8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835 for as_dir in $PATH
8836 do
8837   IFS=$as_save_IFS
8838   test -z "$as_dir" && as_dir=.
8839     for ac_exec_ext in '' $ac_executable_extensions; do
8840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8841     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8843     break 2
8844   fi
8845 done
8846   done
8847 IFS=$as_save_IFS
8848
8849 fi
8850 fi
8851 NM=$ac_cv_prog_NM
8852 if test -n "$NM"; then
8853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8854 $as_echo "$NM" >&6; }
8855 else
8856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857 $as_echo "no" >&6; }
8858 fi
8859
8860
8861   fi
8862   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8863     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8864 set dummy ${ncn_progname}; ac_word=$2
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866 $as_echo_n "checking for $ac_word... " >&6; }
8867 if test "${ac_cv_prog_NM+set}" = set; then :
8868   $as_echo_n "(cached) " >&6
8869 else
8870   if test -n "$NM"; then
8871   ac_cv_prog_NM="$NM" # Let the user override the test.
8872 else
8873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874 for as_dir in $PATH
8875 do
8876   IFS=$as_save_IFS
8877   test -z "$as_dir" && as_dir=.
8878     for ac_exec_ext in '' $ac_executable_extensions; do
8879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8880     ac_cv_prog_NM="${ncn_progname}"
8881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8882     break 2
8883   fi
8884 done
8885   done
8886 IFS=$as_save_IFS
8887
8888 fi
8889 fi
8890 NM=$ac_cv_prog_NM
8891 if test -n "$NM"; then
8892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8893 $as_echo "$NM" >&6; }
8894 else
8895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896 $as_echo "no" >&6; }
8897 fi
8898
8899
8900   fi
8901   test -n "$ac_cv_prog_NM" && break
8902 done
8903
8904 if test -z "$ac_cv_prog_NM" ; then
8905   set dummy nm
8906   if test $build = $host ; then
8907     NM="$2"
8908   else
8909     NM="${ncn_tool_prefix}$2"
8910   fi
8911 fi
8912
8913
8914
8915 if test -n "$RANLIB"; then
8916   ac_cv_prog_RANLIB=$RANLIB
8917 elif test -n "$ac_cv_prog_RANLIB"; then
8918   RANLIB=$ac_cv_prog_RANLIB
8919 fi
8920
8921 if test -n "$ac_cv_prog_RANLIB"; then
8922   for ncn_progname in ranlib; do
8923     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8924 set dummy ${ncn_progname}; ac_word=$2
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8926 $as_echo_n "checking for $ac_word... " >&6; }
8927 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8928   $as_echo_n "(cached) " >&6
8929 else
8930   if test -n "$RANLIB"; then
8931   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8932 else
8933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934 for as_dir in $PATH
8935 do
8936   IFS=$as_save_IFS
8937   test -z "$as_dir" && as_dir=.
8938     for ac_exec_ext in '' $ac_executable_extensions; do
8939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8940     ac_cv_prog_RANLIB="${ncn_progname}"
8941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8942     break 2
8943   fi
8944 done
8945   done
8946 IFS=$as_save_IFS
8947
8948 fi
8949 fi
8950 RANLIB=$ac_cv_prog_RANLIB
8951 if test -n "$RANLIB"; then
8952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8953 $as_echo "$RANLIB" >&6; }
8954 else
8955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956 $as_echo "no" >&6; }
8957 fi
8958
8959
8960   done
8961 fi
8962
8963 for ncn_progname in ranlib; do
8964   if test -n "$ncn_tool_prefix"; then
8965     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8966 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8968 $as_echo_n "checking for $ac_word... " >&6; }
8969 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8970   $as_echo_n "(cached) " >&6
8971 else
8972   if test -n "$RANLIB"; then
8973   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8974 else
8975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976 for as_dir in $PATH
8977 do
8978   IFS=$as_save_IFS
8979   test -z "$as_dir" && as_dir=.
8980     for ac_exec_ext in '' $ac_executable_extensions; do
8981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8982     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8984     break 2
8985   fi
8986 done
8987   done
8988 IFS=$as_save_IFS
8989
8990 fi
8991 fi
8992 RANLIB=$ac_cv_prog_RANLIB
8993 if test -n "$RANLIB"; then
8994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8995 $as_echo "$RANLIB" >&6; }
8996 else
8997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8998 $as_echo "no" >&6; }
8999 fi
9000
9001
9002   fi
9003   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9004     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9005 set dummy ${ncn_progname}; ac_word=$2
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9007 $as_echo_n "checking for $ac_word... " >&6; }
9008 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9009   $as_echo_n "(cached) " >&6
9010 else
9011   if test -n "$RANLIB"; then
9012   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9013 else
9014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015 for as_dir in $PATH
9016 do
9017   IFS=$as_save_IFS
9018   test -z "$as_dir" && as_dir=.
9019     for ac_exec_ext in '' $ac_executable_extensions; do
9020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9021     ac_cv_prog_RANLIB="${ncn_progname}"
9022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9023     break 2
9024   fi
9025 done
9026   done
9027 IFS=$as_save_IFS
9028
9029 fi
9030 fi
9031 RANLIB=$ac_cv_prog_RANLIB
9032 if test -n "$RANLIB"; then
9033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9034 $as_echo "$RANLIB" >&6; }
9035 else
9036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037 $as_echo "no" >&6; }
9038 fi
9039
9040
9041   fi
9042   test -n "$ac_cv_prog_RANLIB" && break
9043 done
9044
9045 if test -z "$ac_cv_prog_RANLIB" ; then
9046   RANLIB="true"
9047 fi
9048
9049
9050
9051 if test -n "$STRIP"; then
9052   ac_cv_prog_STRIP=$STRIP
9053 elif test -n "$ac_cv_prog_STRIP"; then
9054   STRIP=$ac_cv_prog_STRIP
9055 fi
9056
9057 if test -n "$ac_cv_prog_STRIP"; then
9058   for ncn_progname in strip; do
9059     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9060 set dummy ${ncn_progname}; ac_word=$2
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9062 $as_echo_n "checking for $ac_word... " >&6; }
9063 if test "${ac_cv_prog_STRIP+set}" = set; then :
9064   $as_echo_n "(cached) " >&6
9065 else
9066   if test -n "$STRIP"; then
9067   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9068 else
9069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9070 for as_dir in $PATH
9071 do
9072   IFS=$as_save_IFS
9073   test -z "$as_dir" && as_dir=.
9074     for ac_exec_ext in '' $ac_executable_extensions; do
9075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9076     ac_cv_prog_STRIP="${ncn_progname}"
9077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9078     break 2
9079   fi
9080 done
9081   done
9082 IFS=$as_save_IFS
9083
9084 fi
9085 fi
9086 STRIP=$ac_cv_prog_STRIP
9087 if test -n "$STRIP"; then
9088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9089 $as_echo "$STRIP" >&6; }
9090 else
9091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092 $as_echo "no" >&6; }
9093 fi
9094
9095
9096   done
9097 fi
9098
9099 for ncn_progname in strip; do
9100   if test -n "$ncn_tool_prefix"; then
9101     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9102 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9104 $as_echo_n "checking for $ac_word... " >&6; }
9105 if test "${ac_cv_prog_STRIP+set}" = set; then :
9106   $as_echo_n "(cached) " >&6
9107 else
9108   if test -n "$STRIP"; then
9109   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9110 else
9111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112 for as_dir in $PATH
9113 do
9114   IFS=$as_save_IFS
9115   test -z "$as_dir" && as_dir=.
9116     for ac_exec_ext in '' $ac_executable_extensions; do
9117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9118     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9120     break 2
9121   fi
9122 done
9123   done
9124 IFS=$as_save_IFS
9125
9126 fi
9127 fi
9128 STRIP=$ac_cv_prog_STRIP
9129 if test -n "$STRIP"; then
9130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9131 $as_echo "$STRIP" >&6; }
9132 else
9133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134 $as_echo "no" >&6; }
9135 fi
9136
9137
9138   fi
9139   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9140     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9141 set dummy ${ncn_progname}; ac_word=$2
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9143 $as_echo_n "checking for $ac_word... " >&6; }
9144 if test "${ac_cv_prog_STRIP+set}" = set; then :
9145   $as_echo_n "(cached) " >&6
9146 else
9147   if test -n "$STRIP"; then
9148   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9149 else
9150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151 for as_dir in $PATH
9152 do
9153   IFS=$as_save_IFS
9154   test -z "$as_dir" && as_dir=.
9155     for ac_exec_ext in '' $ac_executable_extensions; do
9156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9157     ac_cv_prog_STRIP="${ncn_progname}"
9158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9159     break 2
9160   fi
9161 done
9162   done
9163 IFS=$as_save_IFS
9164
9165 fi
9166 fi
9167 STRIP=$ac_cv_prog_STRIP
9168 if test -n "$STRIP"; then
9169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9170 $as_echo "$STRIP" >&6; }
9171 else
9172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173 $as_echo "no" >&6; }
9174 fi
9175
9176
9177   fi
9178   test -n "$ac_cv_prog_STRIP" && break
9179 done
9180
9181 if test -z "$ac_cv_prog_STRIP" ; then
9182   STRIP="true"
9183 fi
9184
9185
9186
9187 if test -n "$WINDRES"; then
9188   ac_cv_prog_WINDRES=$WINDRES
9189 elif test -n "$ac_cv_prog_WINDRES"; then
9190   WINDRES=$ac_cv_prog_WINDRES
9191 fi
9192
9193 if test -n "$ac_cv_prog_WINDRES"; then
9194   for ncn_progname in windres; do
9195     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9196 set dummy ${ncn_progname}; ac_word=$2
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9198 $as_echo_n "checking for $ac_word... " >&6; }
9199 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9200   $as_echo_n "(cached) " >&6
9201 else
9202   if test -n "$WINDRES"; then
9203   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9204 else
9205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9206 for as_dir in $PATH
9207 do
9208   IFS=$as_save_IFS
9209   test -z "$as_dir" && as_dir=.
9210     for ac_exec_ext in '' $ac_executable_extensions; do
9211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9212     ac_cv_prog_WINDRES="${ncn_progname}"
9213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9214     break 2
9215   fi
9216 done
9217   done
9218 IFS=$as_save_IFS
9219
9220 fi
9221 fi
9222 WINDRES=$ac_cv_prog_WINDRES
9223 if test -n "$WINDRES"; then
9224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9225 $as_echo "$WINDRES" >&6; }
9226 else
9227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9228 $as_echo "no" >&6; }
9229 fi
9230
9231
9232   done
9233 fi
9234
9235 for ncn_progname in windres; do
9236   if test -n "$ncn_tool_prefix"; then
9237     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9238 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9240 $as_echo_n "checking for $ac_word... " >&6; }
9241 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9242   $as_echo_n "(cached) " >&6
9243 else
9244   if test -n "$WINDRES"; then
9245   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9246 else
9247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248 for as_dir in $PATH
9249 do
9250   IFS=$as_save_IFS
9251   test -z "$as_dir" && as_dir=.
9252     for ac_exec_ext in '' $ac_executable_extensions; do
9253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9254     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9256     break 2
9257   fi
9258 done
9259   done
9260 IFS=$as_save_IFS
9261
9262 fi
9263 fi
9264 WINDRES=$ac_cv_prog_WINDRES
9265 if test -n "$WINDRES"; then
9266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9267 $as_echo "$WINDRES" >&6; }
9268 else
9269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270 $as_echo "no" >&6; }
9271 fi
9272
9273
9274   fi
9275   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9276     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9277 set dummy ${ncn_progname}; ac_word=$2
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9279 $as_echo_n "checking for $ac_word... " >&6; }
9280 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9281   $as_echo_n "(cached) " >&6
9282 else
9283   if test -n "$WINDRES"; then
9284   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9285 else
9286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287 for as_dir in $PATH
9288 do
9289   IFS=$as_save_IFS
9290   test -z "$as_dir" && as_dir=.
9291     for ac_exec_ext in '' $ac_executable_extensions; do
9292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9293     ac_cv_prog_WINDRES="${ncn_progname}"
9294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9295     break 2
9296   fi
9297 done
9298   done
9299 IFS=$as_save_IFS
9300
9301 fi
9302 fi
9303 WINDRES=$ac_cv_prog_WINDRES
9304 if test -n "$WINDRES"; then
9305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9306 $as_echo "$WINDRES" >&6; }
9307 else
9308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9309 $as_echo "no" >&6; }
9310 fi
9311
9312
9313   fi
9314   test -n "$ac_cv_prog_WINDRES" && break
9315 done
9316
9317 if test -z "$ac_cv_prog_WINDRES" ; then
9318   set dummy windres
9319   if test $build = $host ; then
9320     WINDRES="$2"
9321   else
9322     WINDRES="${ncn_tool_prefix}$2"
9323   fi
9324 fi
9325
9326
9327
9328 if test -n "$WINDMC"; then
9329   ac_cv_prog_WINDMC=$WINDMC
9330 elif test -n "$ac_cv_prog_WINDMC"; then
9331   WINDMC=$ac_cv_prog_WINDMC
9332 fi
9333
9334 if test -n "$ac_cv_prog_WINDMC"; then
9335   for ncn_progname in windmc; do
9336     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9337 set dummy ${ncn_progname}; ac_word=$2
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9339 $as_echo_n "checking for $ac_word... " >&6; }
9340 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9341   $as_echo_n "(cached) " >&6
9342 else
9343   if test -n "$WINDMC"; then
9344   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9345 else
9346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347 for as_dir in $PATH
9348 do
9349   IFS=$as_save_IFS
9350   test -z "$as_dir" && as_dir=.
9351     for ac_exec_ext in '' $ac_executable_extensions; do
9352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9353     ac_cv_prog_WINDMC="${ncn_progname}"
9354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9355     break 2
9356   fi
9357 done
9358   done
9359 IFS=$as_save_IFS
9360
9361 fi
9362 fi
9363 WINDMC=$ac_cv_prog_WINDMC
9364 if test -n "$WINDMC"; then
9365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9366 $as_echo "$WINDMC" >&6; }
9367 else
9368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9369 $as_echo "no" >&6; }
9370 fi
9371
9372
9373   done
9374 fi
9375
9376 for ncn_progname in windmc; do
9377   if test -n "$ncn_tool_prefix"; then
9378     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9379 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9381 $as_echo_n "checking for $ac_word... " >&6; }
9382 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9383   $as_echo_n "(cached) " >&6
9384 else
9385   if test -n "$WINDMC"; then
9386   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9387 else
9388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389 for as_dir in $PATH
9390 do
9391   IFS=$as_save_IFS
9392   test -z "$as_dir" && as_dir=.
9393     for ac_exec_ext in '' $ac_executable_extensions; do
9394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9395     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9397     break 2
9398   fi
9399 done
9400   done
9401 IFS=$as_save_IFS
9402
9403 fi
9404 fi
9405 WINDMC=$ac_cv_prog_WINDMC
9406 if test -n "$WINDMC"; then
9407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9408 $as_echo "$WINDMC" >&6; }
9409 else
9410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9411 $as_echo "no" >&6; }
9412 fi
9413
9414
9415   fi
9416   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9417     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9418 set dummy ${ncn_progname}; ac_word=$2
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9420 $as_echo_n "checking for $ac_word... " >&6; }
9421 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9422   $as_echo_n "(cached) " >&6
9423 else
9424   if test -n "$WINDMC"; then
9425   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9426 else
9427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428 for as_dir in $PATH
9429 do
9430   IFS=$as_save_IFS
9431   test -z "$as_dir" && as_dir=.
9432     for ac_exec_ext in '' $ac_executable_extensions; do
9433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9434     ac_cv_prog_WINDMC="${ncn_progname}"
9435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9436     break 2
9437   fi
9438 done
9439   done
9440 IFS=$as_save_IFS
9441
9442 fi
9443 fi
9444 WINDMC=$ac_cv_prog_WINDMC
9445 if test -n "$WINDMC"; then
9446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9447 $as_echo "$WINDMC" >&6; }
9448 else
9449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450 $as_echo "no" >&6; }
9451 fi
9452
9453
9454   fi
9455   test -n "$ac_cv_prog_WINDMC" && break
9456 done
9457
9458 if test -z "$ac_cv_prog_WINDMC" ; then
9459   set dummy windmc
9460   if test $build = $host ; then
9461     WINDMC="$2"
9462   else
9463     WINDMC="${ncn_tool_prefix}$2"
9464   fi
9465 fi
9466
9467
9468
9469 if test -n "$OBJCOPY"; then
9470   ac_cv_prog_OBJCOPY=$OBJCOPY
9471 elif test -n "$ac_cv_prog_OBJCOPY"; then
9472   OBJCOPY=$ac_cv_prog_OBJCOPY
9473 fi
9474
9475 if test -n "$ac_cv_prog_OBJCOPY"; then
9476   for ncn_progname in objcopy; do
9477     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9478 set dummy ${ncn_progname}; ac_word=$2
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9480 $as_echo_n "checking for $ac_word... " >&6; }
9481 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9482   $as_echo_n "(cached) " >&6
9483 else
9484   if test -n "$OBJCOPY"; then
9485   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9486 else
9487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488 for as_dir in $PATH
9489 do
9490   IFS=$as_save_IFS
9491   test -z "$as_dir" && as_dir=.
9492     for ac_exec_ext in '' $ac_executable_extensions; do
9493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9494     ac_cv_prog_OBJCOPY="${ncn_progname}"
9495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9496     break 2
9497   fi
9498 done
9499   done
9500 IFS=$as_save_IFS
9501
9502 fi
9503 fi
9504 OBJCOPY=$ac_cv_prog_OBJCOPY
9505 if test -n "$OBJCOPY"; then
9506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9507 $as_echo "$OBJCOPY" >&6; }
9508 else
9509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510 $as_echo "no" >&6; }
9511 fi
9512
9513
9514   done
9515 fi
9516
9517 for ncn_progname in objcopy; do
9518   if test -n "$ncn_tool_prefix"; then
9519     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9520 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9522 $as_echo_n "checking for $ac_word... " >&6; }
9523 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9524   $as_echo_n "(cached) " >&6
9525 else
9526   if test -n "$OBJCOPY"; then
9527   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9528 else
9529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530 for as_dir in $PATH
9531 do
9532   IFS=$as_save_IFS
9533   test -z "$as_dir" && as_dir=.
9534     for ac_exec_ext in '' $ac_executable_extensions; do
9535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9536     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9538     break 2
9539   fi
9540 done
9541   done
9542 IFS=$as_save_IFS
9543
9544 fi
9545 fi
9546 OBJCOPY=$ac_cv_prog_OBJCOPY
9547 if test -n "$OBJCOPY"; then
9548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9549 $as_echo "$OBJCOPY" >&6; }
9550 else
9551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9552 $as_echo "no" >&6; }
9553 fi
9554
9555
9556   fi
9557   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9558     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9559 set dummy ${ncn_progname}; ac_word=$2
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9561 $as_echo_n "checking for $ac_word... " >&6; }
9562 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9563   $as_echo_n "(cached) " >&6
9564 else
9565   if test -n "$OBJCOPY"; then
9566   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9567 else
9568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569 for as_dir in $PATH
9570 do
9571   IFS=$as_save_IFS
9572   test -z "$as_dir" && as_dir=.
9573     for ac_exec_ext in '' $ac_executable_extensions; do
9574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9575     ac_cv_prog_OBJCOPY="${ncn_progname}"
9576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9577     break 2
9578   fi
9579 done
9580   done
9581 IFS=$as_save_IFS
9582
9583 fi
9584 fi
9585 OBJCOPY=$ac_cv_prog_OBJCOPY
9586 if test -n "$OBJCOPY"; then
9587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9588 $as_echo "$OBJCOPY" >&6; }
9589 else
9590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 $as_echo "no" >&6; }
9592 fi
9593
9594
9595   fi
9596   test -n "$ac_cv_prog_OBJCOPY" && break
9597 done
9598
9599 if test -z "$ac_cv_prog_OBJCOPY" ; then
9600   set dummy objcopy
9601   if test $build = $host ; then
9602     OBJCOPY="$2"
9603   else
9604     OBJCOPY="${ncn_tool_prefix}$2"
9605   fi
9606 fi
9607
9608
9609
9610 if test -n "$OBJDUMP"; then
9611   ac_cv_prog_OBJDUMP=$OBJDUMP
9612 elif test -n "$ac_cv_prog_OBJDUMP"; then
9613   OBJDUMP=$ac_cv_prog_OBJDUMP
9614 fi
9615
9616 if test -n "$ac_cv_prog_OBJDUMP"; then
9617   for ncn_progname in objdump; do
9618     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9619 set dummy ${ncn_progname}; ac_word=$2
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9621 $as_echo_n "checking for $ac_word... " >&6; }
9622 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9623   $as_echo_n "(cached) " >&6
9624 else
9625   if test -n "$OBJDUMP"; then
9626   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9627 else
9628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629 for as_dir in $PATH
9630 do
9631   IFS=$as_save_IFS
9632   test -z "$as_dir" && as_dir=.
9633     for ac_exec_ext in '' $ac_executable_extensions; do
9634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9635     ac_cv_prog_OBJDUMP="${ncn_progname}"
9636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9637     break 2
9638   fi
9639 done
9640   done
9641 IFS=$as_save_IFS
9642
9643 fi
9644 fi
9645 OBJDUMP=$ac_cv_prog_OBJDUMP
9646 if test -n "$OBJDUMP"; then
9647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9648 $as_echo "$OBJDUMP" >&6; }
9649 else
9650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9651 $as_echo "no" >&6; }
9652 fi
9653
9654
9655   done
9656 fi
9657
9658 for ncn_progname in objdump; do
9659   if test -n "$ncn_tool_prefix"; then
9660     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9661 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9663 $as_echo_n "checking for $ac_word... " >&6; }
9664 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9665   $as_echo_n "(cached) " >&6
9666 else
9667   if test -n "$OBJDUMP"; then
9668   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9669 else
9670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9671 for as_dir in $PATH
9672 do
9673   IFS=$as_save_IFS
9674   test -z "$as_dir" && as_dir=.
9675     for ac_exec_ext in '' $ac_executable_extensions; do
9676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9677     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9679     break 2
9680   fi
9681 done
9682   done
9683 IFS=$as_save_IFS
9684
9685 fi
9686 fi
9687 OBJDUMP=$ac_cv_prog_OBJDUMP
9688 if test -n "$OBJDUMP"; then
9689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9690 $as_echo "$OBJDUMP" >&6; }
9691 else
9692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693 $as_echo "no" >&6; }
9694 fi
9695
9696
9697   fi
9698   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9699     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9700 set dummy ${ncn_progname}; ac_word=$2
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9702 $as_echo_n "checking for $ac_word... " >&6; }
9703 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9704   $as_echo_n "(cached) " >&6
9705 else
9706   if test -n "$OBJDUMP"; then
9707   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9708 else
9709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710 for as_dir in $PATH
9711 do
9712   IFS=$as_save_IFS
9713   test -z "$as_dir" && as_dir=.
9714     for ac_exec_ext in '' $ac_executable_extensions; do
9715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9716     ac_cv_prog_OBJDUMP="${ncn_progname}"
9717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9718     break 2
9719   fi
9720 done
9721   done
9722 IFS=$as_save_IFS
9723
9724 fi
9725 fi
9726 OBJDUMP=$ac_cv_prog_OBJDUMP
9727 if test -n "$OBJDUMP"; then
9728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9729 $as_echo "$OBJDUMP" >&6; }
9730 else
9731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732 $as_echo "no" >&6; }
9733 fi
9734
9735
9736   fi
9737   test -n "$ac_cv_prog_OBJDUMP" && break
9738 done
9739
9740 if test -z "$ac_cv_prog_OBJDUMP" ; then
9741   set dummy objdump
9742   if test $build = $host ; then
9743     OBJDUMP="$2"
9744   else
9745     OBJDUMP="${ncn_tool_prefix}$2"
9746   fi
9747 fi
9748
9749
9750
9751 if test -n "$READELF"; then
9752   ac_cv_prog_READELF=$READELF
9753 elif test -n "$ac_cv_prog_READELF"; then
9754   READELF=$ac_cv_prog_READELF
9755 fi
9756
9757 if test -n "$ac_cv_prog_READELF"; then
9758   for ncn_progname in readelf; do
9759     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9760 set dummy ${ncn_progname}; ac_word=$2
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762 $as_echo_n "checking for $ac_word... " >&6; }
9763 if test "${ac_cv_prog_READELF+set}" = set; then :
9764   $as_echo_n "(cached) " >&6
9765 else
9766   if test -n "$READELF"; then
9767   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9768 else
9769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770 for as_dir in $PATH
9771 do
9772   IFS=$as_save_IFS
9773   test -z "$as_dir" && as_dir=.
9774     for ac_exec_ext in '' $ac_executable_extensions; do
9775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9776     ac_cv_prog_READELF="${ncn_progname}"
9777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9778     break 2
9779   fi
9780 done
9781   done
9782 IFS=$as_save_IFS
9783
9784 fi
9785 fi
9786 READELF=$ac_cv_prog_READELF
9787 if test -n "$READELF"; then
9788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9789 $as_echo "$READELF" >&6; }
9790 else
9791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9792 $as_echo "no" >&6; }
9793 fi
9794
9795
9796   done
9797 fi
9798
9799 for ncn_progname in readelf; do
9800   if test -n "$ncn_tool_prefix"; then
9801     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9802 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9804 $as_echo_n "checking for $ac_word... " >&6; }
9805 if test "${ac_cv_prog_READELF+set}" = set; then :
9806   $as_echo_n "(cached) " >&6
9807 else
9808   if test -n "$READELF"; then
9809   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9810 else
9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812 for as_dir in $PATH
9813 do
9814   IFS=$as_save_IFS
9815   test -z "$as_dir" && as_dir=.
9816     for ac_exec_ext in '' $ac_executable_extensions; do
9817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9818     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9820     break 2
9821   fi
9822 done
9823   done
9824 IFS=$as_save_IFS
9825
9826 fi
9827 fi
9828 READELF=$ac_cv_prog_READELF
9829 if test -n "$READELF"; then
9830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9831 $as_echo "$READELF" >&6; }
9832 else
9833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9834 $as_echo "no" >&6; }
9835 fi
9836
9837
9838   fi
9839   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9840     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9841 set dummy ${ncn_progname}; ac_word=$2
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9843 $as_echo_n "checking for $ac_word... " >&6; }
9844 if test "${ac_cv_prog_READELF+set}" = set; then :
9845   $as_echo_n "(cached) " >&6
9846 else
9847   if test -n "$READELF"; then
9848   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9849 else
9850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9851 for as_dir in $PATH
9852 do
9853   IFS=$as_save_IFS
9854   test -z "$as_dir" && as_dir=.
9855     for ac_exec_ext in '' $ac_executable_extensions; do
9856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9857     ac_cv_prog_READELF="${ncn_progname}"
9858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9859     break 2
9860   fi
9861 done
9862   done
9863 IFS=$as_save_IFS
9864
9865 fi
9866 fi
9867 READELF=$ac_cv_prog_READELF
9868 if test -n "$READELF"; then
9869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9870 $as_echo "$READELF" >&6; }
9871 else
9872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873 $as_echo "no" >&6; }
9874 fi
9875
9876
9877   fi
9878   test -n "$ac_cv_prog_READELF" && break
9879 done
9880
9881 if test -z "$ac_cv_prog_READELF" ; then
9882   set dummy readelf
9883   if test $build = $host ; then
9884     READELF="$2"
9885   else
9886     READELF="${ncn_tool_prefix}$2"
9887   fi
9888 fi
9889
9890
9891
9892
9893
9894
9895 # Target tools.
9896
9897 # Check whether --with-build-time-tools was given.
9898 if test "${with_build_time_tools+set}" = set; then :
9899   withval=$with_build_time_tools; case x"$withval" in
9900      x/*) ;;
9901      *)
9902        with_build_time_tools=
9903        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9904 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9905        ;;
9906    esac
9907 else
9908   with_build_time_tools=
9909 fi
9910
9911
9912
9913
9914 if test -n "$CC_FOR_TARGET"; then
9915   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9916 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9917   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9918 fi
9919
9920 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9921   for ncn_progname in cc gcc; do
9922     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9923 set dummy ${ncn_progname}; ac_word=$2
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9925 $as_echo_n "checking for $ac_word... " >&6; }
9926 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9927   $as_echo_n "(cached) " >&6
9928 else
9929   if test -n "$CC_FOR_TARGET"; then
9930   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9931 else
9932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933 for as_dir in $PATH
9934 do
9935   IFS=$as_save_IFS
9936   test -z "$as_dir" && as_dir=.
9937     for ac_exec_ext in '' $ac_executable_extensions; do
9938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9939     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9941     break 2
9942   fi
9943 done
9944   done
9945 IFS=$as_save_IFS
9946
9947 fi
9948 fi
9949 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9950 if test -n "$CC_FOR_TARGET"; then
9951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9952 $as_echo "$CC_FOR_TARGET" >&6; }
9953 else
9954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955 $as_echo "no" >&6; }
9956 fi
9957
9958
9959   done
9960 fi
9961
9962 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9963   for ncn_progname in cc gcc; do
9964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9965 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9966     if test -x $with_build_time_tools/${ncn_progname}; then
9967       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9968       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9969 $as_echo "yes" >&6; }
9970       break
9971     else
9972       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973 $as_echo "no" >&6; }
9974     fi
9975   done
9976 fi
9977
9978 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9979   for ncn_progname in cc gcc; do
9980     if test -n "$ncn_target_tool_prefix"; then
9981       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9982 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9984 $as_echo_n "checking for $ac_word... " >&6; }
9985 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9986   $as_echo_n "(cached) " >&6
9987 else
9988   if test -n "$CC_FOR_TARGET"; then
9989   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9990 else
9991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9992 for as_dir in $PATH
9993 do
9994   IFS=$as_save_IFS
9995   test -z "$as_dir" && as_dir=.
9996     for ac_exec_ext in '' $ac_executable_extensions; do
9997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9998     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10000     break 2
10001   fi
10002 done
10003   done
10004 IFS=$as_save_IFS
10005
10006 fi
10007 fi
10008 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10009 if test -n "$CC_FOR_TARGET"; then
10010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10011 $as_echo "$CC_FOR_TARGET" >&6; }
10012 else
10013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014 $as_echo "no" >&6; }
10015 fi
10016
10017
10018     fi
10019     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10020       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10021 set dummy ${ncn_progname}; ac_word=$2
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10023 $as_echo_n "checking for $ac_word... " >&6; }
10024 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10025   $as_echo_n "(cached) " >&6
10026 else
10027   if test -n "$CC_FOR_TARGET"; then
10028   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10029 else
10030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031 for as_dir in $PATH
10032 do
10033   IFS=$as_save_IFS
10034   test -z "$as_dir" && as_dir=.
10035     for ac_exec_ext in '' $ac_executable_extensions; do
10036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10037     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10039     break 2
10040   fi
10041 done
10042   done
10043 IFS=$as_save_IFS
10044
10045 fi
10046 fi
10047 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10048 if test -n "$CC_FOR_TARGET"; then
10049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10050 $as_echo "$CC_FOR_TARGET" >&6; }
10051 else
10052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10054 fi
10055
10056
10057     fi
10058     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10059   done
10060 fi
10061
10062 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10063   set dummy cc gcc
10064   if test $build = $target ; then
10065     CC_FOR_TARGET="$2"
10066   else
10067     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10068   fi
10069 else
10070   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10071 fi
10072
10073
10074
10075 if test -n "$CXX_FOR_TARGET"; then
10076   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10077 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10078   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10079 fi
10080
10081 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10082   for ncn_progname in c++ g++ cxx gxx; do
10083     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10084 set dummy ${ncn_progname}; ac_word=$2
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086 $as_echo_n "checking for $ac_word... " >&6; }
10087 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10088   $as_echo_n "(cached) " >&6
10089 else
10090   if test -n "$CXX_FOR_TARGET"; then
10091   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10092 else
10093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094 for as_dir in $PATH
10095 do
10096   IFS=$as_save_IFS
10097   test -z "$as_dir" && as_dir=.
10098     for ac_exec_ext in '' $ac_executable_extensions; do
10099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10100     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10102     break 2
10103   fi
10104 done
10105   done
10106 IFS=$as_save_IFS
10107
10108 fi
10109 fi
10110 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10111 if test -n "$CXX_FOR_TARGET"; then
10112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10113 $as_echo "$CXX_FOR_TARGET" >&6; }
10114 else
10115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116 $as_echo "no" >&6; }
10117 fi
10118
10119
10120   done
10121 fi
10122
10123 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10124   for ncn_progname in c++ g++ cxx gxx; do
10125     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10126 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10127     if test -x $with_build_time_tools/${ncn_progname}; then
10128       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10129       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10130 $as_echo "yes" >&6; }
10131       break
10132     else
10133       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10134 $as_echo "no" >&6; }
10135     fi
10136   done
10137 fi
10138
10139 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10140   for ncn_progname in c++ g++ cxx gxx; do
10141     if test -n "$ncn_target_tool_prefix"; then
10142       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10143 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145 $as_echo_n "checking for $ac_word... " >&6; }
10146 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10147   $as_echo_n "(cached) " >&6
10148 else
10149   if test -n "$CXX_FOR_TARGET"; then
10150   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10151 else
10152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153 for as_dir in $PATH
10154 do
10155   IFS=$as_save_IFS
10156   test -z "$as_dir" && as_dir=.
10157     for ac_exec_ext in '' $ac_executable_extensions; do
10158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10159     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161     break 2
10162   fi
10163 done
10164   done
10165 IFS=$as_save_IFS
10166
10167 fi
10168 fi
10169 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10170 if test -n "$CXX_FOR_TARGET"; then
10171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10172 $as_echo "$CXX_FOR_TARGET" >&6; }
10173 else
10174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175 $as_echo "no" >&6; }
10176 fi
10177
10178
10179     fi
10180     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10181       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10182 set dummy ${ncn_progname}; ac_word=$2
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10184 $as_echo_n "checking for $ac_word... " >&6; }
10185 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10186   $as_echo_n "(cached) " >&6
10187 else
10188   if test -n "$CXX_FOR_TARGET"; then
10189   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10190 else
10191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10192 for as_dir in $PATH
10193 do
10194   IFS=$as_save_IFS
10195   test -z "$as_dir" && as_dir=.
10196     for ac_exec_ext in '' $ac_executable_extensions; do
10197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10198     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10200     break 2
10201   fi
10202 done
10203   done
10204 IFS=$as_save_IFS
10205
10206 fi
10207 fi
10208 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10209 if test -n "$CXX_FOR_TARGET"; then
10210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10211 $as_echo "$CXX_FOR_TARGET" >&6; }
10212 else
10213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10214 $as_echo "no" >&6; }
10215 fi
10216
10217
10218     fi
10219     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10220   done
10221 fi
10222
10223 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10224   set dummy c++ g++ cxx gxx
10225   if test $build = $target ; then
10226     CXX_FOR_TARGET="$2"
10227   else
10228     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10229   fi
10230 else
10231   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10232 fi
10233
10234
10235
10236 if test -n "$GCC_FOR_TARGET"; then
10237   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10238 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10239   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10240 fi
10241
10242 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10243   for ncn_progname in gcc; do
10244     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10245 set dummy ${ncn_progname}; ac_word=$2
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247 $as_echo_n "checking for $ac_word... " >&6; }
10248 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10249   $as_echo_n "(cached) " >&6
10250 else
10251   if test -n "$GCC_FOR_TARGET"; then
10252   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10253 else
10254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255 for as_dir in $PATH
10256 do
10257   IFS=$as_save_IFS
10258   test -z "$as_dir" && as_dir=.
10259     for ac_exec_ext in '' $ac_executable_extensions; do
10260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10261     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10263     break 2
10264   fi
10265 done
10266   done
10267 IFS=$as_save_IFS
10268
10269 fi
10270 fi
10271 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10272 if test -n "$GCC_FOR_TARGET"; then
10273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10274 $as_echo "$GCC_FOR_TARGET" >&6; }
10275 else
10276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277 $as_echo "no" >&6; }
10278 fi
10279
10280
10281   done
10282 fi
10283
10284 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10285   for ncn_progname in gcc; do
10286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10287 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10288     if test -x $with_build_time_tools/${ncn_progname}; then
10289       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10290       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10291 $as_echo "yes" >&6; }
10292       break
10293     else
10294       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10295 $as_echo "no" >&6; }
10296     fi
10297   done
10298 fi
10299
10300 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10301   for ncn_progname in gcc; do
10302     if test -n "$ncn_target_tool_prefix"; then
10303       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10304 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10306 $as_echo_n "checking for $ac_word... " >&6; }
10307 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10308   $as_echo_n "(cached) " >&6
10309 else
10310   if test -n "$GCC_FOR_TARGET"; then
10311   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10312 else
10313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314 for as_dir in $PATH
10315 do
10316   IFS=$as_save_IFS
10317   test -z "$as_dir" && as_dir=.
10318     for ac_exec_ext in '' $ac_executable_extensions; do
10319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10320     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10322     break 2
10323   fi
10324 done
10325   done
10326 IFS=$as_save_IFS
10327
10328 fi
10329 fi
10330 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10331 if test -n "$GCC_FOR_TARGET"; then
10332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10333 $as_echo "$GCC_FOR_TARGET" >&6; }
10334 else
10335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10336 $as_echo "no" >&6; }
10337 fi
10338
10339
10340     fi
10341     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10342       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10343 set dummy ${ncn_progname}; ac_word=$2
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10345 $as_echo_n "checking for $ac_word... " >&6; }
10346 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10347   $as_echo_n "(cached) " >&6
10348 else
10349   if test -n "$GCC_FOR_TARGET"; then
10350   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10351 else
10352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353 for as_dir in $PATH
10354 do
10355   IFS=$as_save_IFS
10356   test -z "$as_dir" && as_dir=.
10357     for ac_exec_ext in '' $ac_executable_extensions; do
10358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10359     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10361     break 2
10362   fi
10363 done
10364   done
10365 IFS=$as_save_IFS
10366
10367 fi
10368 fi
10369 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10370 if test -n "$GCC_FOR_TARGET"; then
10371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10372 $as_echo "$GCC_FOR_TARGET" >&6; }
10373 else
10374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 $as_echo "no" >&6; }
10376 fi
10377
10378
10379     fi
10380     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10381   done
10382 fi
10383
10384 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10385   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10386 else
10387   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10388 fi
10389
10390
10391
10392 if test -n "$GCJ_FOR_TARGET"; then
10393   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10394 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10395   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10396 fi
10397
10398 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10399   for ncn_progname in gcj; do
10400     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10401 set dummy ${ncn_progname}; ac_word=$2
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10403 $as_echo_n "checking for $ac_word... " >&6; }
10404 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10405   $as_echo_n "(cached) " >&6
10406 else
10407   if test -n "$GCJ_FOR_TARGET"; then
10408   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10409 else
10410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411 for as_dir in $PATH
10412 do
10413   IFS=$as_save_IFS
10414   test -z "$as_dir" && as_dir=.
10415     for ac_exec_ext in '' $ac_executable_extensions; do
10416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10417     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10419     break 2
10420   fi
10421 done
10422   done
10423 IFS=$as_save_IFS
10424
10425 fi
10426 fi
10427 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10428 if test -n "$GCJ_FOR_TARGET"; then
10429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10430 $as_echo "$GCJ_FOR_TARGET" >&6; }
10431 else
10432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433 $as_echo "no" >&6; }
10434 fi
10435
10436
10437   done
10438 fi
10439
10440 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10441   for ncn_progname in gcj; do
10442     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10443 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10444     if test -x $with_build_time_tools/${ncn_progname}; then
10445       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10446       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10447 $as_echo "yes" >&6; }
10448       break
10449     else
10450       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10451 $as_echo "no" >&6; }
10452     fi
10453   done
10454 fi
10455
10456 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10457   for ncn_progname in gcj; do
10458     if test -n "$ncn_target_tool_prefix"; then
10459       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10460 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10462 $as_echo_n "checking for $ac_word... " >&6; }
10463 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10464   $as_echo_n "(cached) " >&6
10465 else
10466   if test -n "$GCJ_FOR_TARGET"; then
10467   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10468 else
10469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470 for as_dir in $PATH
10471 do
10472   IFS=$as_save_IFS
10473   test -z "$as_dir" && as_dir=.
10474     for ac_exec_ext in '' $ac_executable_extensions; do
10475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10476     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10478     break 2
10479   fi
10480 done
10481   done
10482 IFS=$as_save_IFS
10483
10484 fi
10485 fi
10486 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10487 if test -n "$GCJ_FOR_TARGET"; then
10488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10489 $as_echo "$GCJ_FOR_TARGET" >&6; }
10490 else
10491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10492 $as_echo "no" >&6; }
10493 fi
10494
10495
10496     fi
10497     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10498       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10499 set dummy ${ncn_progname}; ac_word=$2
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10501 $as_echo_n "checking for $ac_word... " >&6; }
10502 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10503   $as_echo_n "(cached) " >&6
10504 else
10505   if test -n "$GCJ_FOR_TARGET"; then
10506   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10507 else
10508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509 for as_dir in $PATH
10510 do
10511   IFS=$as_save_IFS
10512   test -z "$as_dir" && as_dir=.
10513     for ac_exec_ext in '' $ac_executable_extensions; do
10514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10515     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10517     break 2
10518   fi
10519 done
10520   done
10521 IFS=$as_save_IFS
10522
10523 fi
10524 fi
10525 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10526 if test -n "$GCJ_FOR_TARGET"; then
10527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10528 $as_echo "$GCJ_FOR_TARGET" >&6; }
10529 else
10530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531 $as_echo "no" >&6; }
10532 fi
10533
10534
10535     fi
10536     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10537   done
10538 fi
10539
10540 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10541   set dummy gcj
10542   if test $build = $target ; then
10543     GCJ_FOR_TARGET="$2"
10544   else
10545     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10546   fi
10547 else
10548   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10549 fi
10550
10551
10552
10553 if test -n "$GFORTRAN_FOR_TARGET"; then
10554   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10555 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10556   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10557 fi
10558
10559 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10560   for ncn_progname in gfortran; do
10561     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10562 set dummy ${ncn_progname}; ac_word=$2
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10564 $as_echo_n "checking for $ac_word... " >&6; }
10565 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10566   $as_echo_n "(cached) " >&6
10567 else
10568   if test -n "$GFORTRAN_FOR_TARGET"; then
10569   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10570 else
10571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572 for as_dir in $PATH
10573 do
10574   IFS=$as_save_IFS
10575   test -z "$as_dir" && as_dir=.
10576     for ac_exec_ext in '' $ac_executable_extensions; do
10577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10578     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10580     break 2
10581   fi
10582 done
10583   done
10584 IFS=$as_save_IFS
10585
10586 fi
10587 fi
10588 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10589 if test -n "$GFORTRAN_FOR_TARGET"; then
10590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10591 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10592 else
10593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594 $as_echo "no" >&6; }
10595 fi
10596
10597
10598   done
10599 fi
10600
10601 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10602   for ncn_progname in gfortran; do
10603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10604 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10605     if test -x $with_build_time_tools/${ncn_progname}; then
10606       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10607       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10608 $as_echo "yes" >&6; }
10609       break
10610     else
10611       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10612 $as_echo "no" >&6; }
10613     fi
10614   done
10615 fi
10616
10617 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10618   for ncn_progname in gfortran; do
10619     if test -n "$ncn_target_tool_prefix"; then
10620       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10621 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10623 $as_echo_n "checking for $ac_word... " >&6; }
10624 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10625   $as_echo_n "(cached) " >&6
10626 else
10627   if test -n "$GFORTRAN_FOR_TARGET"; then
10628   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10629 else
10630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10631 for as_dir in $PATH
10632 do
10633   IFS=$as_save_IFS
10634   test -z "$as_dir" && as_dir=.
10635     for ac_exec_ext in '' $ac_executable_extensions; do
10636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10637     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10639     break 2
10640   fi
10641 done
10642   done
10643 IFS=$as_save_IFS
10644
10645 fi
10646 fi
10647 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10648 if test -n "$GFORTRAN_FOR_TARGET"; then
10649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10650 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10651 else
10652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653 $as_echo "no" >&6; }
10654 fi
10655
10656
10657     fi
10658     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10659       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10660 set dummy ${ncn_progname}; ac_word=$2
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10662 $as_echo_n "checking for $ac_word... " >&6; }
10663 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10664   $as_echo_n "(cached) " >&6
10665 else
10666   if test -n "$GFORTRAN_FOR_TARGET"; then
10667   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10668 else
10669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670 for as_dir in $PATH
10671 do
10672   IFS=$as_save_IFS
10673   test -z "$as_dir" && as_dir=.
10674     for ac_exec_ext in '' $ac_executable_extensions; do
10675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10676     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10678     break 2
10679   fi
10680 done
10681   done
10682 IFS=$as_save_IFS
10683
10684 fi
10685 fi
10686 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10687 if test -n "$GFORTRAN_FOR_TARGET"; then
10688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10689 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10690 else
10691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692 $as_echo "no" >&6; }
10693 fi
10694
10695
10696     fi
10697     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10698   done
10699 fi
10700
10701 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10702   set dummy gfortran
10703   if test $build = $target ; then
10704     GFORTRAN_FOR_TARGET="$2"
10705   else
10706     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10707   fi
10708 else
10709   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10710 fi
10711
10712
10713
10714 if test -n "$GOC_FOR_TARGET"; then
10715   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10716 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10717   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10718 fi
10719
10720 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10721   for ncn_progname in gccgo; do
10722     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10723 set dummy ${ncn_progname}; ac_word=$2
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10725 $as_echo_n "checking for $ac_word... " >&6; }
10726 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10727   $as_echo_n "(cached) " >&6
10728 else
10729   if test -n "$GOC_FOR_TARGET"; then
10730   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10731 else
10732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10733 for as_dir in $PATH
10734 do
10735   IFS=$as_save_IFS
10736   test -z "$as_dir" && as_dir=.
10737     for ac_exec_ext in '' $ac_executable_extensions; do
10738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10739     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10741     break 2
10742   fi
10743 done
10744   done
10745 IFS=$as_save_IFS
10746
10747 fi
10748 fi
10749 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10750 if test -n "$GOC_FOR_TARGET"; then
10751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10752 $as_echo "$GOC_FOR_TARGET" >&6; }
10753 else
10754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755 $as_echo "no" >&6; }
10756 fi
10757
10758
10759   done
10760 fi
10761
10762 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10763   for ncn_progname in gccgo; do
10764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10765 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10766     if test -x $with_build_time_tools/${ncn_progname}; then
10767       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10768       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10769 $as_echo "yes" >&6; }
10770       break
10771     else
10772       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10773 $as_echo "no" >&6; }
10774     fi
10775   done
10776 fi
10777
10778 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10779   for ncn_progname in gccgo; do
10780     if test -n "$ncn_target_tool_prefix"; then
10781       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10782 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10784 $as_echo_n "checking for $ac_word... " >&6; }
10785 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10786   $as_echo_n "(cached) " >&6
10787 else
10788   if test -n "$GOC_FOR_TARGET"; then
10789   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10790 else
10791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792 for as_dir in $PATH
10793 do
10794   IFS=$as_save_IFS
10795   test -z "$as_dir" && as_dir=.
10796     for ac_exec_ext in '' $ac_executable_extensions; do
10797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10798     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10800     break 2
10801   fi
10802 done
10803   done
10804 IFS=$as_save_IFS
10805
10806 fi
10807 fi
10808 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10809 if test -n "$GOC_FOR_TARGET"; then
10810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10811 $as_echo "$GOC_FOR_TARGET" >&6; }
10812 else
10813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; }
10815 fi
10816
10817
10818     fi
10819     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10820       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10821 set dummy ${ncn_progname}; ac_word=$2
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10823 $as_echo_n "checking for $ac_word... " >&6; }
10824 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10825   $as_echo_n "(cached) " >&6
10826 else
10827   if test -n "$GOC_FOR_TARGET"; then
10828   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10829 else
10830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10831 for as_dir in $PATH
10832 do
10833   IFS=$as_save_IFS
10834   test -z "$as_dir" && as_dir=.
10835     for ac_exec_ext in '' $ac_executable_extensions; do
10836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10837     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10839     break 2
10840   fi
10841 done
10842   done
10843 IFS=$as_save_IFS
10844
10845 fi
10846 fi
10847 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10848 if test -n "$GOC_FOR_TARGET"; then
10849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10850 $as_echo "$GOC_FOR_TARGET" >&6; }
10851 else
10852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853 $as_echo "no" >&6; }
10854 fi
10855
10856
10857     fi
10858     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10859   done
10860 fi
10861
10862 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10863   set dummy gccgo
10864   if test $build = $target ; then
10865     GOC_FOR_TARGET="$2"
10866   else
10867     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10868   fi
10869 else
10870   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10871 fi
10872
10873
10874
10875 cat > conftest.c << \EOF
10876 #ifdef __GNUC__
10877   gcc_yay;
10878 #endif
10879 EOF
10880 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10881   have_gcc_for_target=yes
10882 else
10883   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10884   have_gcc_for_target=no
10885 fi
10886 rm conftest.c
10887
10888
10889
10890
10891 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10892   if test -n "$with_build_time_tools"; then
10893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10894 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10895     if test -x $with_build_time_tools/ar; then
10896       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10897       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10898       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10899 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10900     else
10901       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10902 $as_echo "no" >&6; }
10903     fi
10904   elif test $build != $host && test $have_gcc_for_target = yes; then
10905     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10906     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10907     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10908   fi
10909 fi
10910 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10911   # Extract the first word of "ar", so it can be a program name with args.
10912 set dummy ar; ac_word=$2
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10914 $as_echo_n "checking for $ac_word... " >&6; }
10915 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10916   $as_echo_n "(cached) " >&6
10917 else
10918   case $AR_FOR_TARGET in
10919   [\\/]* | ?:[\\/]*)
10920   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10921   ;;
10922   *)
10923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10924 for as_dir in $gcc_cv_tool_dirs
10925 do
10926   IFS=$as_save_IFS
10927   test -z "$as_dir" && as_dir=.
10928     for ac_exec_ext in '' $ac_executable_extensions; do
10929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10930     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10932     break 2
10933   fi
10934 done
10935   done
10936 IFS=$as_save_IFS
10937
10938   ;;
10939 esac
10940 fi
10941 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10942 if test -n "$AR_FOR_TARGET"; then
10943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10944 $as_echo "$AR_FOR_TARGET" >&6; }
10945 else
10946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10947 $as_echo "no" >&6; }
10948 fi
10949
10950
10951 fi
10952 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10953
10954
10955 if test -n "$AR_FOR_TARGET"; then
10956   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10957 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10958   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10959 fi
10960
10961 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10962   for ncn_progname in ar; do
10963     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10964 set dummy ${ncn_progname}; ac_word=$2
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10966 $as_echo_n "checking for $ac_word... " >&6; }
10967 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10968   $as_echo_n "(cached) " >&6
10969 else
10970   if test -n "$AR_FOR_TARGET"; then
10971   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10972 else
10973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974 for as_dir in $PATH
10975 do
10976   IFS=$as_save_IFS
10977   test -z "$as_dir" && as_dir=.
10978     for ac_exec_ext in '' $ac_executable_extensions; do
10979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10980     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10982     break 2
10983   fi
10984 done
10985   done
10986 IFS=$as_save_IFS
10987
10988 fi
10989 fi
10990 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10991 if test -n "$AR_FOR_TARGET"; then
10992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10993 $as_echo "$AR_FOR_TARGET" >&6; }
10994 else
10995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996 $as_echo "no" >&6; }
10997 fi
10998
10999
11000   done
11001 fi
11002
11003 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11004   for ncn_progname in ar; do
11005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11006 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11007     if test -x $with_build_time_tools/${ncn_progname}; then
11008       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11009       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11010 $as_echo "yes" >&6; }
11011       break
11012     else
11013       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11014 $as_echo "no" >&6; }
11015     fi
11016   done
11017 fi
11018
11019 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11020   for ncn_progname in ar; do
11021     if test -n "$ncn_target_tool_prefix"; then
11022       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11023 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11025 $as_echo_n "checking for $ac_word... " >&6; }
11026 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11027   $as_echo_n "(cached) " >&6
11028 else
11029   if test -n "$AR_FOR_TARGET"; then
11030   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11031 else
11032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033 for as_dir in $PATH
11034 do
11035   IFS=$as_save_IFS
11036   test -z "$as_dir" && as_dir=.
11037     for ac_exec_ext in '' $ac_executable_extensions; do
11038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11039     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11041     break 2
11042   fi
11043 done
11044   done
11045 IFS=$as_save_IFS
11046
11047 fi
11048 fi
11049 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11050 if test -n "$AR_FOR_TARGET"; then
11051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11052 $as_echo "$AR_FOR_TARGET" >&6; }
11053 else
11054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11055 $as_echo "no" >&6; }
11056 fi
11057
11058
11059     fi
11060     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11061       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11062 set dummy ${ncn_progname}; ac_word=$2
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11064 $as_echo_n "checking for $ac_word... " >&6; }
11065 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11066   $as_echo_n "(cached) " >&6
11067 else
11068   if test -n "$AR_FOR_TARGET"; then
11069   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11070 else
11071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072 for as_dir in $PATH
11073 do
11074   IFS=$as_save_IFS
11075   test -z "$as_dir" && as_dir=.
11076     for ac_exec_ext in '' $ac_executable_extensions; do
11077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11078     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11080     break 2
11081   fi
11082 done
11083   done
11084 IFS=$as_save_IFS
11085
11086 fi
11087 fi
11088 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11089 if test -n "$AR_FOR_TARGET"; then
11090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11091 $as_echo "$AR_FOR_TARGET" >&6; }
11092 else
11093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11095 fi
11096
11097
11098     fi
11099     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11100   done
11101 fi
11102
11103 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11104   set dummy ar
11105   if test $build = $target ; then
11106     AR_FOR_TARGET="$2"
11107   else
11108     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11109   fi
11110 else
11111   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11112 fi
11113
11114 else
11115   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11116 fi
11117
11118
11119
11120
11121 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11122   if test -n "$with_build_time_tools"; then
11123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11124 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11125     if test -x $with_build_time_tools/as; then
11126       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11127       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11128       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11129 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11130     else
11131       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11132 $as_echo "no" >&6; }
11133     fi
11134   elif test $build != $host && test $have_gcc_for_target = yes; then
11135     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11136     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11137     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11138   fi
11139 fi
11140 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11141   # Extract the first word of "as", so it can be a program name with args.
11142 set dummy as; ac_word=$2
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11144 $as_echo_n "checking for $ac_word... " >&6; }
11145 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11146   $as_echo_n "(cached) " >&6
11147 else
11148   case $AS_FOR_TARGET in
11149   [\\/]* | ?:[\\/]*)
11150   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11151   ;;
11152   *)
11153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11154 for as_dir in $gcc_cv_tool_dirs
11155 do
11156   IFS=$as_save_IFS
11157   test -z "$as_dir" && as_dir=.
11158     for ac_exec_ext in '' $ac_executable_extensions; do
11159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11160     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11162     break 2
11163   fi
11164 done
11165   done
11166 IFS=$as_save_IFS
11167
11168   ;;
11169 esac
11170 fi
11171 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11172 if test -n "$AS_FOR_TARGET"; then
11173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11174 $as_echo "$AS_FOR_TARGET" >&6; }
11175 else
11176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177 $as_echo "no" >&6; }
11178 fi
11179
11180
11181 fi
11182 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11183
11184
11185 if test -n "$AS_FOR_TARGET"; then
11186   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11187 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11188   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11189 fi
11190
11191 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11192   for ncn_progname in as; do
11193     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11194 set dummy ${ncn_progname}; ac_word=$2
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11196 $as_echo_n "checking for $ac_word... " >&6; }
11197 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11198   $as_echo_n "(cached) " >&6
11199 else
11200   if test -n "$AS_FOR_TARGET"; then
11201   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11202 else
11203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204 for as_dir in $PATH
11205 do
11206   IFS=$as_save_IFS
11207   test -z "$as_dir" && as_dir=.
11208     for ac_exec_ext in '' $ac_executable_extensions; do
11209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11210     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11212     break 2
11213   fi
11214 done
11215   done
11216 IFS=$as_save_IFS
11217
11218 fi
11219 fi
11220 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11221 if test -n "$AS_FOR_TARGET"; then
11222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11223 $as_echo "$AS_FOR_TARGET" >&6; }
11224 else
11225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226 $as_echo "no" >&6; }
11227 fi
11228
11229
11230   done
11231 fi
11232
11233 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11234   for ncn_progname in as; do
11235     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11236 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11237     if test -x $with_build_time_tools/${ncn_progname}; then
11238       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11239       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11240 $as_echo "yes" >&6; }
11241       break
11242     else
11243       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11244 $as_echo "no" >&6; }
11245     fi
11246   done
11247 fi
11248
11249 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11250   for ncn_progname in as; do
11251     if test -n "$ncn_target_tool_prefix"; then
11252       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11253 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11255 $as_echo_n "checking for $ac_word... " >&6; }
11256 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11257   $as_echo_n "(cached) " >&6
11258 else
11259   if test -n "$AS_FOR_TARGET"; then
11260   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11261 else
11262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263 for as_dir in $PATH
11264 do
11265   IFS=$as_save_IFS
11266   test -z "$as_dir" && as_dir=.
11267     for ac_exec_ext in '' $ac_executable_extensions; do
11268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11269     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11271     break 2
11272   fi
11273 done
11274   done
11275 IFS=$as_save_IFS
11276
11277 fi
11278 fi
11279 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11280 if test -n "$AS_FOR_TARGET"; then
11281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11282 $as_echo "$AS_FOR_TARGET" >&6; }
11283 else
11284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285 $as_echo "no" >&6; }
11286 fi
11287
11288
11289     fi
11290     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11291       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11292 set dummy ${ncn_progname}; ac_word=$2
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11294 $as_echo_n "checking for $ac_word... " >&6; }
11295 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11296   $as_echo_n "(cached) " >&6
11297 else
11298   if test -n "$AS_FOR_TARGET"; then
11299   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11300 else
11301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302 for as_dir in $PATH
11303 do
11304   IFS=$as_save_IFS
11305   test -z "$as_dir" && as_dir=.
11306     for ac_exec_ext in '' $ac_executable_extensions; do
11307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11308     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11310     break 2
11311   fi
11312 done
11313   done
11314 IFS=$as_save_IFS
11315
11316 fi
11317 fi
11318 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11319 if test -n "$AS_FOR_TARGET"; then
11320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11321 $as_echo "$AS_FOR_TARGET" >&6; }
11322 else
11323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11324 $as_echo "no" >&6; }
11325 fi
11326
11327
11328     fi
11329     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11330   done
11331 fi
11332
11333 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11334   set dummy as
11335   if test $build = $target ; then
11336     AS_FOR_TARGET="$2"
11337   else
11338     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11339   fi
11340 else
11341   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11342 fi
11343
11344 else
11345   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11346 fi
11347
11348
11349
11350
11351 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11352   if test -n "$with_build_time_tools"; then
11353     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11354 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11355     if test -x $with_build_time_tools/dlltool; then
11356       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11357       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11358       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11359 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11360     else
11361       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362 $as_echo "no" >&6; }
11363     fi
11364   elif test $build != $host && test $have_gcc_for_target = yes; then
11365     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11366     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11367     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11368   fi
11369 fi
11370 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11371   # Extract the first word of "dlltool", so it can be a program name with args.
11372 set dummy dlltool; ac_word=$2
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11374 $as_echo_n "checking for $ac_word... " >&6; }
11375 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11376   $as_echo_n "(cached) " >&6
11377 else
11378   case $DLLTOOL_FOR_TARGET in
11379   [\\/]* | ?:[\\/]*)
11380   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11381   ;;
11382   *)
11383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384 for as_dir in $gcc_cv_tool_dirs
11385 do
11386   IFS=$as_save_IFS
11387   test -z "$as_dir" && as_dir=.
11388     for ac_exec_ext in '' $ac_executable_extensions; do
11389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11390     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392     break 2
11393   fi
11394 done
11395   done
11396 IFS=$as_save_IFS
11397
11398   ;;
11399 esac
11400 fi
11401 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11402 if test -n "$DLLTOOL_FOR_TARGET"; then
11403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11404 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11405 else
11406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11407 $as_echo "no" >&6; }
11408 fi
11409
11410
11411 fi
11412 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11413
11414
11415 if test -n "$DLLTOOL_FOR_TARGET"; then
11416   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11417 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11418   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11419 fi
11420
11421 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11422   for ncn_progname in dlltool; do
11423     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11424 set dummy ${ncn_progname}; ac_word=$2
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426 $as_echo_n "checking for $ac_word... " >&6; }
11427 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11428   $as_echo_n "(cached) " >&6
11429 else
11430   if test -n "$DLLTOOL_FOR_TARGET"; then
11431   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11432 else
11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434 for as_dir in $PATH
11435 do
11436   IFS=$as_save_IFS
11437   test -z "$as_dir" && as_dir=.
11438     for ac_exec_ext in '' $ac_executable_extensions; do
11439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11440     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11442     break 2
11443   fi
11444 done
11445   done
11446 IFS=$as_save_IFS
11447
11448 fi
11449 fi
11450 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11451 if test -n "$DLLTOOL_FOR_TARGET"; then
11452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11453 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11454 else
11455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11457 fi
11458
11459
11460   done
11461 fi
11462
11463 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11464   for ncn_progname in dlltool; do
11465     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11466 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11467     if test -x $with_build_time_tools/${ncn_progname}; then
11468       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11469       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11470 $as_echo "yes" >&6; }
11471       break
11472     else
11473       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474 $as_echo "no" >&6; }
11475     fi
11476   done
11477 fi
11478
11479 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11480   for ncn_progname in dlltool; do
11481     if test -n "$ncn_target_tool_prefix"; then
11482       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11483 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11485 $as_echo_n "checking for $ac_word... " >&6; }
11486 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11487   $as_echo_n "(cached) " >&6
11488 else
11489   if test -n "$DLLTOOL_FOR_TARGET"; then
11490   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11491 else
11492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11493 for as_dir in $PATH
11494 do
11495   IFS=$as_save_IFS
11496   test -z "$as_dir" && as_dir=.
11497     for ac_exec_ext in '' $ac_executable_extensions; do
11498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11499     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11501     break 2
11502   fi
11503 done
11504   done
11505 IFS=$as_save_IFS
11506
11507 fi
11508 fi
11509 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11510 if test -n "$DLLTOOL_FOR_TARGET"; then
11511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11512 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11513 else
11514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515 $as_echo "no" >&6; }
11516 fi
11517
11518
11519     fi
11520     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11521       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11522 set dummy ${ncn_progname}; ac_word=$2
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524 $as_echo_n "checking for $ac_word... " >&6; }
11525 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11526   $as_echo_n "(cached) " >&6
11527 else
11528   if test -n "$DLLTOOL_FOR_TARGET"; then
11529   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11530 else
11531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11532 for as_dir in $PATH
11533 do
11534   IFS=$as_save_IFS
11535   test -z "$as_dir" && as_dir=.
11536     for ac_exec_ext in '' $ac_executable_extensions; do
11537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11538     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11540     break 2
11541   fi
11542 done
11543   done
11544 IFS=$as_save_IFS
11545
11546 fi
11547 fi
11548 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11549 if test -n "$DLLTOOL_FOR_TARGET"; then
11550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11551 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11552 else
11553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554 $as_echo "no" >&6; }
11555 fi
11556
11557
11558     fi
11559     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11560   done
11561 fi
11562
11563 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11564   set dummy dlltool
11565   if test $build = $target ; then
11566     DLLTOOL_FOR_TARGET="$2"
11567   else
11568     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11569   fi
11570 else
11571   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11572 fi
11573
11574 else
11575   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11576 fi
11577
11578
11579
11580
11581 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11582   if test -n "$with_build_time_tools"; then
11583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11584 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11585     if test -x $with_build_time_tools/ld; then
11586       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11587       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11588       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11589 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11590     else
11591       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592 $as_echo "no" >&6; }
11593     fi
11594   elif test $build != $host && test $have_gcc_for_target = yes; then
11595     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11596     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11597     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11598   fi
11599 fi
11600 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11601   # Extract the first word of "ld", so it can be a program name with args.
11602 set dummy ld; ac_word=$2
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11604 $as_echo_n "checking for $ac_word... " >&6; }
11605 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11606   $as_echo_n "(cached) " >&6
11607 else
11608   case $LD_FOR_TARGET in
11609   [\\/]* | ?:[\\/]*)
11610   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11611   ;;
11612   *)
11613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614 for as_dir in $gcc_cv_tool_dirs
11615 do
11616   IFS=$as_save_IFS
11617   test -z "$as_dir" && as_dir=.
11618     for ac_exec_ext in '' $ac_executable_extensions; do
11619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11620     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11622     break 2
11623   fi
11624 done
11625   done
11626 IFS=$as_save_IFS
11627
11628   ;;
11629 esac
11630 fi
11631 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11632 if test -n "$LD_FOR_TARGET"; then
11633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11634 $as_echo "$LD_FOR_TARGET" >&6; }
11635 else
11636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637 $as_echo "no" >&6; }
11638 fi
11639
11640
11641 fi
11642 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11643
11644
11645 if test -n "$LD_FOR_TARGET"; then
11646   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11647 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11648   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11649 fi
11650
11651 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11652   for ncn_progname in ld; do
11653     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11654 set dummy ${ncn_progname}; ac_word=$2
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11656 $as_echo_n "checking for $ac_word... " >&6; }
11657 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11658   $as_echo_n "(cached) " >&6
11659 else
11660   if test -n "$LD_FOR_TARGET"; then
11661   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11662 else
11663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664 for as_dir in $PATH
11665 do
11666   IFS=$as_save_IFS
11667   test -z "$as_dir" && as_dir=.
11668     for ac_exec_ext in '' $ac_executable_extensions; do
11669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11670     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11672     break 2
11673   fi
11674 done
11675   done
11676 IFS=$as_save_IFS
11677
11678 fi
11679 fi
11680 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11681 if test -n "$LD_FOR_TARGET"; then
11682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11683 $as_echo "$LD_FOR_TARGET" >&6; }
11684 else
11685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686 $as_echo "no" >&6; }
11687 fi
11688
11689
11690   done
11691 fi
11692
11693 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11694   for ncn_progname in ld; do
11695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11696 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11697     if test -x $with_build_time_tools/${ncn_progname}; then
11698       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11699       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11700 $as_echo "yes" >&6; }
11701       break
11702     else
11703       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704 $as_echo "no" >&6; }
11705     fi
11706   done
11707 fi
11708
11709 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11710   for ncn_progname in ld; do
11711     if test -n "$ncn_target_tool_prefix"; then
11712       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11713 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11715 $as_echo_n "checking for $ac_word... " >&6; }
11716 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11717   $as_echo_n "(cached) " >&6
11718 else
11719   if test -n "$LD_FOR_TARGET"; then
11720   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11721 else
11722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11723 for as_dir in $PATH
11724 do
11725   IFS=$as_save_IFS
11726   test -z "$as_dir" && as_dir=.
11727     for ac_exec_ext in '' $ac_executable_extensions; do
11728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11729     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11731     break 2
11732   fi
11733 done
11734   done
11735 IFS=$as_save_IFS
11736
11737 fi
11738 fi
11739 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11740 if test -n "$LD_FOR_TARGET"; then
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11742 $as_echo "$LD_FOR_TARGET" >&6; }
11743 else
11744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; }
11746 fi
11747
11748
11749     fi
11750     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11751       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11752 set dummy ${ncn_progname}; ac_word=$2
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11754 $as_echo_n "checking for $ac_word... " >&6; }
11755 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11756   $as_echo_n "(cached) " >&6
11757 else
11758   if test -n "$LD_FOR_TARGET"; then
11759   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11760 else
11761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11762 for as_dir in $PATH
11763 do
11764   IFS=$as_save_IFS
11765   test -z "$as_dir" && as_dir=.
11766     for ac_exec_ext in '' $ac_executable_extensions; do
11767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11768     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11770     break 2
11771   fi
11772 done
11773   done
11774 IFS=$as_save_IFS
11775
11776 fi
11777 fi
11778 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11779 if test -n "$LD_FOR_TARGET"; then
11780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11781 $as_echo "$LD_FOR_TARGET" >&6; }
11782 else
11783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784 $as_echo "no" >&6; }
11785 fi
11786
11787
11788     fi
11789     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11790   done
11791 fi
11792
11793 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11794   set dummy ld
11795   if test $build = $target ; then
11796     LD_FOR_TARGET="$2"
11797   else
11798     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11799   fi
11800 else
11801   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11802 fi
11803
11804 else
11805   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11806 fi
11807
11808
11809
11810
11811 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11812   if test -n "$with_build_time_tools"; then
11813     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11814 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11815     if test -x $with_build_time_tools/lipo; then
11816       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11817       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11818       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11819 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11820     else
11821       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822 $as_echo "no" >&6; }
11823     fi
11824   elif test $build != $host && test $have_gcc_for_target = yes; then
11825     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11826     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11827     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11828   fi
11829 fi
11830 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11831   # Extract the first word of "lipo", so it can be a program name with args.
11832 set dummy lipo; ac_word=$2
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11834 $as_echo_n "checking for $ac_word... " >&6; }
11835 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11836   $as_echo_n "(cached) " >&6
11837 else
11838   case $LIPO_FOR_TARGET in
11839   [\\/]* | ?:[\\/]*)
11840   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11841   ;;
11842   *)
11843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11844 for as_dir in $gcc_cv_tool_dirs
11845 do
11846   IFS=$as_save_IFS
11847   test -z "$as_dir" && as_dir=.
11848     for ac_exec_ext in '' $ac_executable_extensions; do
11849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11850     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11852     break 2
11853   fi
11854 done
11855   done
11856 IFS=$as_save_IFS
11857
11858   ;;
11859 esac
11860 fi
11861 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11862 if test -n "$LIPO_FOR_TARGET"; then
11863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11864 $as_echo "$LIPO_FOR_TARGET" >&6; }
11865 else
11866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 $as_echo "no" >&6; }
11868 fi
11869
11870
11871 fi
11872 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11873
11874
11875 if test -n "$LIPO_FOR_TARGET"; then
11876   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11877 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11878   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11879 fi
11880
11881 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11882   for ncn_progname in lipo; do
11883     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11884 set dummy ${ncn_progname}; ac_word=$2
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11886 $as_echo_n "checking for $ac_word... " >&6; }
11887 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11888   $as_echo_n "(cached) " >&6
11889 else
11890   if test -n "$LIPO_FOR_TARGET"; then
11891   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11892 else
11893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11894 for as_dir in $PATH
11895 do
11896   IFS=$as_save_IFS
11897   test -z "$as_dir" && as_dir=.
11898     for ac_exec_ext in '' $ac_executable_extensions; do
11899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11900     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11902     break 2
11903   fi
11904 done
11905   done
11906 IFS=$as_save_IFS
11907
11908 fi
11909 fi
11910 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11911 if test -n "$LIPO_FOR_TARGET"; then
11912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11913 $as_echo "$LIPO_FOR_TARGET" >&6; }
11914 else
11915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11917 fi
11918
11919
11920   done
11921 fi
11922
11923 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11924   for ncn_progname in lipo; do
11925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11926 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11927     if test -x $with_build_time_tools/${ncn_progname}; then
11928       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11929       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11930 $as_echo "yes" >&6; }
11931       break
11932     else
11933       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934 $as_echo "no" >&6; }
11935     fi
11936   done
11937 fi
11938
11939 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11940   for ncn_progname in lipo; do
11941     if test -n "$ncn_target_tool_prefix"; then
11942       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11943 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11945 $as_echo_n "checking for $ac_word... " >&6; }
11946 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11947   $as_echo_n "(cached) " >&6
11948 else
11949   if test -n "$LIPO_FOR_TARGET"; then
11950   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11951 else
11952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11953 for as_dir in $PATH
11954 do
11955   IFS=$as_save_IFS
11956   test -z "$as_dir" && as_dir=.
11957     for ac_exec_ext in '' $ac_executable_extensions; do
11958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11959     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11961     break 2
11962   fi
11963 done
11964   done
11965 IFS=$as_save_IFS
11966
11967 fi
11968 fi
11969 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11970 if test -n "$LIPO_FOR_TARGET"; then
11971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11972 $as_echo "$LIPO_FOR_TARGET" >&6; }
11973 else
11974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975 $as_echo "no" >&6; }
11976 fi
11977
11978
11979     fi
11980     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11981       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11982 set dummy ${ncn_progname}; ac_word=$2
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11984 $as_echo_n "checking for $ac_word... " >&6; }
11985 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11986   $as_echo_n "(cached) " >&6
11987 else
11988   if test -n "$LIPO_FOR_TARGET"; then
11989   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11990 else
11991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11992 for as_dir in $PATH
11993 do
11994   IFS=$as_save_IFS
11995   test -z "$as_dir" && as_dir=.
11996     for ac_exec_ext in '' $ac_executable_extensions; do
11997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11998     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12000     break 2
12001   fi
12002 done
12003   done
12004 IFS=$as_save_IFS
12005
12006 fi
12007 fi
12008 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12009 if test -n "$LIPO_FOR_TARGET"; then
12010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12011 $as_echo "$LIPO_FOR_TARGET" >&6; }
12012 else
12013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014 $as_echo "no" >&6; }
12015 fi
12016
12017
12018     fi
12019     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12020   done
12021 fi
12022
12023 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12024   set dummy lipo
12025   if test $build = $target ; then
12026     LIPO_FOR_TARGET="$2"
12027   else
12028     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12029   fi
12030 else
12031   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12032 fi
12033
12034 else
12035   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12036 fi
12037
12038
12039
12040
12041 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12042   if test -n "$with_build_time_tools"; then
12043     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12044 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12045     if test -x $with_build_time_tools/nm; then
12046       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12047       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12048       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12049 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12050     else
12051       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052 $as_echo "no" >&6; }
12053     fi
12054   elif test $build != $host && test $have_gcc_for_target = yes; then
12055     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12056     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12057     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12058   fi
12059 fi
12060 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12061   # Extract the first word of "nm", so it can be a program name with args.
12062 set dummy nm; ac_word=$2
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12064 $as_echo_n "checking for $ac_word... " >&6; }
12065 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12066   $as_echo_n "(cached) " >&6
12067 else
12068   case $NM_FOR_TARGET in
12069   [\\/]* | ?:[\\/]*)
12070   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12071   ;;
12072   *)
12073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12074 for as_dir in $gcc_cv_tool_dirs
12075 do
12076   IFS=$as_save_IFS
12077   test -z "$as_dir" && as_dir=.
12078     for ac_exec_ext in '' $ac_executable_extensions; do
12079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12080     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12082     break 2
12083   fi
12084 done
12085   done
12086 IFS=$as_save_IFS
12087
12088   ;;
12089 esac
12090 fi
12091 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12092 if test -n "$NM_FOR_TARGET"; then
12093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12094 $as_echo "$NM_FOR_TARGET" >&6; }
12095 else
12096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12097 $as_echo "no" >&6; }
12098 fi
12099
12100
12101 fi
12102 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12103
12104
12105 if test -n "$NM_FOR_TARGET"; then
12106   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12107 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12108   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12109 fi
12110
12111 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12112   for ncn_progname in nm; do
12113     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12114 set dummy ${ncn_progname}; ac_word=$2
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12116 $as_echo_n "checking for $ac_word... " >&6; }
12117 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12118   $as_echo_n "(cached) " >&6
12119 else
12120   if test -n "$NM_FOR_TARGET"; then
12121   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12122 else
12123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12124 for as_dir in $PATH
12125 do
12126   IFS=$as_save_IFS
12127   test -z "$as_dir" && as_dir=.
12128     for ac_exec_ext in '' $ac_executable_extensions; do
12129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12130     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12132     break 2
12133   fi
12134 done
12135   done
12136 IFS=$as_save_IFS
12137
12138 fi
12139 fi
12140 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12141 if test -n "$NM_FOR_TARGET"; then
12142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12143 $as_echo "$NM_FOR_TARGET" >&6; }
12144 else
12145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146 $as_echo "no" >&6; }
12147 fi
12148
12149
12150   done
12151 fi
12152
12153 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12154   for ncn_progname in nm; do
12155     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12156 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12157     if test -x $with_build_time_tools/${ncn_progname}; then
12158       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12159       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12160 $as_echo "yes" >&6; }
12161       break
12162     else
12163       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164 $as_echo "no" >&6; }
12165     fi
12166   done
12167 fi
12168
12169 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12170   for ncn_progname in nm; do
12171     if test -n "$ncn_target_tool_prefix"; then
12172       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12173 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12175 $as_echo_n "checking for $ac_word... " >&6; }
12176 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12177   $as_echo_n "(cached) " >&6
12178 else
12179   if test -n "$NM_FOR_TARGET"; then
12180   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12181 else
12182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183 for as_dir in $PATH
12184 do
12185   IFS=$as_save_IFS
12186   test -z "$as_dir" && as_dir=.
12187     for ac_exec_ext in '' $ac_executable_extensions; do
12188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12189     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12191     break 2
12192   fi
12193 done
12194   done
12195 IFS=$as_save_IFS
12196
12197 fi
12198 fi
12199 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12200 if test -n "$NM_FOR_TARGET"; then
12201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12202 $as_echo "$NM_FOR_TARGET" >&6; }
12203 else
12204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12205 $as_echo "no" >&6; }
12206 fi
12207
12208
12209     fi
12210     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12211       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12212 set dummy ${ncn_progname}; ac_word=$2
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12214 $as_echo_n "checking for $ac_word... " >&6; }
12215 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12216   $as_echo_n "(cached) " >&6
12217 else
12218   if test -n "$NM_FOR_TARGET"; then
12219   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12220 else
12221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12222 for as_dir in $PATH
12223 do
12224   IFS=$as_save_IFS
12225   test -z "$as_dir" && as_dir=.
12226     for ac_exec_ext in '' $ac_executable_extensions; do
12227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12228     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12230     break 2
12231   fi
12232 done
12233   done
12234 IFS=$as_save_IFS
12235
12236 fi
12237 fi
12238 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12239 if test -n "$NM_FOR_TARGET"; then
12240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12241 $as_echo "$NM_FOR_TARGET" >&6; }
12242 else
12243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12244 $as_echo "no" >&6; }
12245 fi
12246
12247
12248     fi
12249     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12250   done
12251 fi
12252
12253 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12254   set dummy nm
12255   if test $build = $target ; then
12256     NM_FOR_TARGET="$2"
12257   else
12258     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12259   fi
12260 else
12261   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12262 fi
12263
12264 else
12265   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12266 fi
12267
12268
12269
12270
12271 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12272   if test -n "$with_build_time_tools"; then
12273     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12274 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12275     if test -x $with_build_time_tools/objcopy; then
12276       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12277       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12278       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12279 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12280     else
12281       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282 $as_echo "no" >&6; }
12283     fi
12284   elif test $build != $host && test $have_gcc_for_target = yes; then
12285     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12286     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12287     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12288   fi
12289 fi
12290 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12291   # Extract the first word of "objcopy", so it can be a program name with args.
12292 set dummy objcopy; ac_word=$2
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12294 $as_echo_n "checking for $ac_word... " >&6; }
12295 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12296   $as_echo_n "(cached) " >&6
12297 else
12298   case $OBJCOPY_FOR_TARGET in
12299   [\\/]* | ?:[\\/]*)
12300   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12301   ;;
12302   *)
12303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304 for as_dir in $gcc_cv_tool_dirs
12305 do
12306   IFS=$as_save_IFS
12307   test -z "$as_dir" && as_dir=.
12308     for ac_exec_ext in '' $ac_executable_extensions; do
12309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12310     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312     break 2
12313   fi
12314 done
12315   done
12316 IFS=$as_save_IFS
12317
12318   ;;
12319 esac
12320 fi
12321 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12322 if test -n "$OBJCOPY_FOR_TARGET"; then
12323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12324 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12325 else
12326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327 $as_echo "no" >&6; }
12328 fi
12329
12330
12331 fi
12332 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12333
12334
12335 if test -n "$OBJCOPY_FOR_TARGET"; then
12336   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12337 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12338   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12339 fi
12340
12341 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12342   for ncn_progname in objcopy; do
12343     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12344 set dummy ${ncn_progname}; ac_word=$2
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12346 $as_echo_n "checking for $ac_word... " >&6; }
12347 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12348   $as_echo_n "(cached) " >&6
12349 else
12350   if test -n "$OBJCOPY_FOR_TARGET"; then
12351   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12352 else
12353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354 for as_dir in $PATH
12355 do
12356   IFS=$as_save_IFS
12357   test -z "$as_dir" && as_dir=.
12358     for ac_exec_ext in '' $ac_executable_extensions; do
12359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12360     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362     break 2
12363   fi
12364 done
12365   done
12366 IFS=$as_save_IFS
12367
12368 fi
12369 fi
12370 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12371 if test -n "$OBJCOPY_FOR_TARGET"; then
12372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12373 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12374 else
12375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376 $as_echo "no" >&6; }
12377 fi
12378
12379
12380   done
12381 fi
12382
12383 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12384   for ncn_progname in objcopy; do
12385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12386 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12387     if test -x $with_build_time_tools/${ncn_progname}; then
12388       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12389       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12390 $as_echo "yes" >&6; }
12391       break
12392     else
12393       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394 $as_echo "no" >&6; }
12395     fi
12396   done
12397 fi
12398
12399 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12400   for ncn_progname in objcopy; do
12401     if test -n "$ncn_target_tool_prefix"; then
12402       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12403 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405 $as_echo_n "checking for $ac_word... " >&6; }
12406 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12407   $as_echo_n "(cached) " >&6
12408 else
12409   if test -n "$OBJCOPY_FOR_TARGET"; then
12410   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12411 else
12412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 for as_dir in $PATH
12414 do
12415   IFS=$as_save_IFS
12416   test -z "$as_dir" && as_dir=.
12417     for ac_exec_ext in '' $ac_executable_extensions; do
12418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12419     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12421     break 2
12422   fi
12423 done
12424   done
12425 IFS=$as_save_IFS
12426
12427 fi
12428 fi
12429 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12430 if test -n "$OBJCOPY_FOR_TARGET"; then
12431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12432 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12433 else
12434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435 $as_echo "no" >&6; }
12436 fi
12437
12438
12439     fi
12440     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12441       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12442 set dummy ${ncn_progname}; ac_word=$2
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12444 $as_echo_n "checking for $ac_word... " >&6; }
12445 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12446   $as_echo_n "(cached) " >&6
12447 else
12448   if test -n "$OBJCOPY_FOR_TARGET"; then
12449   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12450 else
12451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12452 for as_dir in $PATH
12453 do
12454   IFS=$as_save_IFS
12455   test -z "$as_dir" && as_dir=.
12456     for ac_exec_ext in '' $ac_executable_extensions; do
12457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12458     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12460     break 2
12461   fi
12462 done
12463   done
12464 IFS=$as_save_IFS
12465
12466 fi
12467 fi
12468 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12469 if test -n "$OBJCOPY_FOR_TARGET"; then
12470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12471 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12472 else
12473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12474 $as_echo "no" >&6; }
12475 fi
12476
12477
12478     fi
12479     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12480   done
12481 fi
12482
12483 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12484   set dummy objcopy
12485   if test $build = $target ; then
12486     OBJCOPY_FOR_TARGET="$2"
12487   else
12488     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12489   fi
12490 else
12491   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12492 fi
12493
12494 else
12495   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12496 fi
12497
12498
12499
12500
12501 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12502   if test -n "$with_build_time_tools"; then
12503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12504 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12505     if test -x $with_build_time_tools/objdump; then
12506       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12507       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12508       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12509 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12510     else
12511       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12512 $as_echo "no" >&6; }
12513     fi
12514   elif test $build != $host && test $have_gcc_for_target = yes; then
12515     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12516     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12517     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12518   fi
12519 fi
12520 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12521   # Extract the first word of "objdump", so it can be a program name with args.
12522 set dummy objdump; ac_word=$2
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12524 $as_echo_n "checking for $ac_word... " >&6; }
12525 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12526   $as_echo_n "(cached) " >&6
12527 else
12528   case $OBJDUMP_FOR_TARGET in
12529   [\\/]* | ?:[\\/]*)
12530   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12531   ;;
12532   *)
12533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12534 for as_dir in $gcc_cv_tool_dirs
12535 do
12536   IFS=$as_save_IFS
12537   test -z "$as_dir" && as_dir=.
12538     for ac_exec_ext in '' $ac_executable_extensions; do
12539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12540     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12542     break 2
12543   fi
12544 done
12545   done
12546 IFS=$as_save_IFS
12547
12548   ;;
12549 esac
12550 fi
12551 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12552 if test -n "$OBJDUMP_FOR_TARGET"; then
12553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12554 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12555 else
12556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12557 $as_echo "no" >&6; }
12558 fi
12559
12560
12561 fi
12562 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12563
12564
12565 if test -n "$OBJDUMP_FOR_TARGET"; then
12566   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12567 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12568   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12569 fi
12570
12571 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12572   for ncn_progname in objdump; do
12573     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12574 set dummy ${ncn_progname}; ac_word=$2
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12576 $as_echo_n "checking for $ac_word... " >&6; }
12577 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12578   $as_echo_n "(cached) " >&6
12579 else
12580   if test -n "$OBJDUMP_FOR_TARGET"; then
12581   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12582 else
12583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12584 for as_dir in $PATH
12585 do
12586   IFS=$as_save_IFS
12587   test -z "$as_dir" && as_dir=.
12588     for ac_exec_ext in '' $ac_executable_extensions; do
12589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12590     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12592     break 2
12593   fi
12594 done
12595   done
12596 IFS=$as_save_IFS
12597
12598 fi
12599 fi
12600 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12601 if test -n "$OBJDUMP_FOR_TARGET"; then
12602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12603 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12604 else
12605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606 $as_echo "no" >&6; }
12607 fi
12608
12609
12610   done
12611 fi
12612
12613 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12614   for ncn_progname in objdump; do
12615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12616 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12617     if test -x $with_build_time_tools/${ncn_progname}; then
12618       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12619       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12620 $as_echo "yes" >&6; }
12621       break
12622     else
12623       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12625     fi
12626   done
12627 fi
12628
12629 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12630   for ncn_progname in objdump; do
12631     if test -n "$ncn_target_tool_prefix"; then
12632       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12633 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635 $as_echo_n "checking for $ac_word... " >&6; }
12636 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12637   $as_echo_n "(cached) " >&6
12638 else
12639   if test -n "$OBJDUMP_FOR_TARGET"; then
12640   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12641 else
12642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12643 for as_dir in $PATH
12644 do
12645   IFS=$as_save_IFS
12646   test -z "$as_dir" && as_dir=.
12647     for ac_exec_ext in '' $ac_executable_extensions; do
12648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12649     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12651     break 2
12652   fi
12653 done
12654   done
12655 IFS=$as_save_IFS
12656
12657 fi
12658 fi
12659 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12660 if test -n "$OBJDUMP_FOR_TARGET"; then
12661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12662 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12663 else
12664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665 $as_echo "no" >&6; }
12666 fi
12667
12668
12669     fi
12670     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12671       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12672 set dummy ${ncn_progname}; ac_word=$2
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12674 $as_echo_n "checking for $ac_word... " >&6; }
12675 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12676   $as_echo_n "(cached) " >&6
12677 else
12678   if test -n "$OBJDUMP_FOR_TARGET"; then
12679   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12680 else
12681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12682 for as_dir in $PATH
12683 do
12684   IFS=$as_save_IFS
12685   test -z "$as_dir" && as_dir=.
12686     for ac_exec_ext in '' $ac_executable_extensions; do
12687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12688     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12690     break 2
12691   fi
12692 done
12693   done
12694 IFS=$as_save_IFS
12695
12696 fi
12697 fi
12698 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12699 if test -n "$OBJDUMP_FOR_TARGET"; then
12700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12701 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12702 else
12703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 $as_echo "no" >&6; }
12705 fi
12706
12707
12708     fi
12709     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12710   done
12711 fi
12712
12713 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12714   set dummy objdump
12715   if test $build = $target ; then
12716     OBJDUMP_FOR_TARGET="$2"
12717   else
12718     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12719   fi
12720 else
12721   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12722 fi
12723
12724 else
12725   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12726 fi
12727
12728
12729
12730
12731 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12732   if test -n "$with_build_time_tools"; then
12733     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12734 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12735     if test -x $with_build_time_tools/ranlib; then
12736       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12737       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12738       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12739 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12740     else
12741       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742 $as_echo "no" >&6; }
12743     fi
12744   elif test $build != $host && test $have_gcc_for_target = yes; then
12745     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12746     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12747     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12748   fi
12749 fi
12750 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12751   # Extract the first word of "ranlib", so it can be a program name with args.
12752 set dummy ranlib; ac_word=$2
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12754 $as_echo_n "checking for $ac_word... " >&6; }
12755 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12756   $as_echo_n "(cached) " >&6
12757 else
12758   case $RANLIB_FOR_TARGET in
12759   [\\/]* | ?:[\\/]*)
12760   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12761   ;;
12762   *)
12763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764 for as_dir in $gcc_cv_tool_dirs
12765 do
12766   IFS=$as_save_IFS
12767   test -z "$as_dir" && as_dir=.
12768     for ac_exec_ext in '' $ac_executable_extensions; do
12769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12770     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12772     break 2
12773   fi
12774 done
12775   done
12776 IFS=$as_save_IFS
12777
12778   ;;
12779 esac
12780 fi
12781 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12782 if test -n "$RANLIB_FOR_TARGET"; then
12783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12784 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12785 else
12786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12788 fi
12789
12790
12791 fi
12792 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12793
12794
12795 if test -n "$RANLIB_FOR_TARGET"; then
12796   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12797 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12798   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12799 fi
12800
12801 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12802   for ncn_progname in ranlib; do
12803     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12804 set dummy ${ncn_progname}; ac_word=$2
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806 $as_echo_n "checking for $ac_word... " >&6; }
12807 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12808   $as_echo_n "(cached) " >&6
12809 else
12810   if test -n "$RANLIB_FOR_TARGET"; then
12811   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12812 else
12813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814 for as_dir in $PATH
12815 do
12816   IFS=$as_save_IFS
12817   test -z "$as_dir" && as_dir=.
12818     for ac_exec_ext in '' $ac_executable_extensions; do
12819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12820     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822     break 2
12823   fi
12824 done
12825   done
12826 IFS=$as_save_IFS
12827
12828 fi
12829 fi
12830 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12831 if test -n "$RANLIB_FOR_TARGET"; then
12832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12833 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12834 else
12835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836 $as_echo "no" >&6; }
12837 fi
12838
12839
12840   done
12841 fi
12842
12843 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12844   for ncn_progname in ranlib; do
12845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12846 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12847     if test -x $with_build_time_tools/${ncn_progname}; then
12848       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12849       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12850 $as_echo "yes" >&6; }
12851       break
12852     else
12853       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12854 $as_echo "no" >&6; }
12855     fi
12856   done
12857 fi
12858
12859 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12860   for ncn_progname in ranlib; do
12861     if test -n "$ncn_target_tool_prefix"; then
12862       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12863 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865 $as_echo_n "checking for $ac_word... " >&6; }
12866 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12867   $as_echo_n "(cached) " >&6
12868 else
12869   if test -n "$RANLIB_FOR_TARGET"; then
12870   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12871 else
12872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12873 for as_dir in $PATH
12874 do
12875   IFS=$as_save_IFS
12876   test -z "$as_dir" && as_dir=.
12877     for ac_exec_ext in '' $ac_executable_extensions; do
12878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12879     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12881     break 2
12882   fi
12883 done
12884   done
12885 IFS=$as_save_IFS
12886
12887 fi
12888 fi
12889 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12890 if test -n "$RANLIB_FOR_TARGET"; then
12891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12892 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12893 else
12894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895 $as_echo "no" >&6; }
12896 fi
12897
12898
12899     fi
12900     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12901       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12902 set dummy ${ncn_progname}; ac_word=$2
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12904 $as_echo_n "checking for $ac_word... " >&6; }
12905 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12906   $as_echo_n "(cached) " >&6
12907 else
12908   if test -n "$RANLIB_FOR_TARGET"; then
12909   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12910 else
12911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12912 for as_dir in $PATH
12913 do
12914   IFS=$as_save_IFS
12915   test -z "$as_dir" && as_dir=.
12916     for ac_exec_ext in '' $ac_executable_extensions; do
12917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12918     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12920     break 2
12921   fi
12922 done
12923   done
12924 IFS=$as_save_IFS
12925
12926 fi
12927 fi
12928 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12929 if test -n "$RANLIB_FOR_TARGET"; then
12930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12931 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12932 else
12933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934 $as_echo "no" >&6; }
12935 fi
12936
12937
12938     fi
12939     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12940   done
12941 fi
12942
12943 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12944   set dummy ranlib
12945   if test $build = $target ; then
12946     RANLIB_FOR_TARGET="$2"
12947   else
12948     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12949   fi
12950 else
12951   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12952 fi
12953
12954 else
12955   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12956 fi
12957
12958
12959
12960
12961 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12962   if test -n "$with_build_time_tools"; then
12963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12964 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12965     if test -x $with_build_time_tools/readelf; then
12966       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12967       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12968       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12969 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12970     else
12971       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972 $as_echo "no" >&6; }
12973     fi
12974   elif test $build != $host && test $have_gcc_for_target = yes; then
12975     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12976     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12977     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12978   fi
12979 fi
12980 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12981   # Extract the first word of "readelf", so it can be a program name with args.
12982 set dummy readelf; ac_word=$2
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12984 $as_echo_n "checking for $ac_word... " >&6; }
12985 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12986   $as_echo_n "(cached) " >&6
12987 else
12988   case $READELF_FOR_TARGET in
12989   [\\/]* | ?:[\\/]*)
12990   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12991   ;;
12992   *)
12993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12994 for as_dir in $gcc_cv_tool_dirs
12995 do
12996   IFS=$as_save_IFS
12997   test -z "$as_dir" && as_dir=.
12998     for ac_exec_ext in '' $ac_executable_extensions; do
12999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13000     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13002     break 2
13003   fi
13004 done
13005   done
13006 IFS=$as_save_IFS
13007
13008   ;;
13009 esac
13010 fi
13011 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13012 if test -n "$READELF_FOR_TARGET"; then
13013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13014 $as_echo "$READELF_FOR_TARGET" >&6; }
13015 else
13016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017 $as_echo "no" >&6; }
13018 fi
13019
13020
13021 fi
13022 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13023
13024
13025 if test -n "$READELF_FOR_TARGET"; then
13026   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13027 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13028   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13029 fi
13030
13031 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13032   for ncn_progname in readelf; do
13033     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13034 set dummy ${ncn_progname}; ac_word=$2
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13036 $as_echo_n "checking for $ac_word... " >&6; }
13037 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13038   $as_echo_n "(cached) " >&6
13039 else
13040   if test -n "$READELF_FOR_TARGET"; then
13041   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13042 else
13043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044 for as_dir in $PATH
13045 do
13046   IFS=$as_save_IFS
13047   test -z "$as_dir" && as_dir=.
13048     for ac_exec_ext in '' $ac_executable_extensions; do
13049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13050     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13052     break 2
13053   fi
13054 done
13055   done
13056 IFS=$as_save_IFS
13057
13058 fi
13059 fi
13060 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13061 if test -n "$READELF_FOR_TARGET"; then
13062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13063 $as_echo "$READELF_FOR_TARGET" >&6; }
13064 else
13065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066 $as_echo "no" >&6; }
13067 fi
13068
13069
13070   done
13071 fi
13072
13073 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13074   for ncn_progname in readelf; do
13075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13076 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13077     if test -x $with_build_time_tools/${ncn_progname}; then
13078       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13079       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13080 $as_echo "yes" >&6; }
13081       break
13082     else
13083       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13084 $as_echo "no" >&6; }
13085     fi
13086   done
13087 fi
13088
13089 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13090   for ncn_progname in readelf; do
13091     if test -n "$ncn_target_tool_prefix"; then
13092       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13093 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13095 $as_echo_n "checking for $ac_word... " >&6; }
13096 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13097   $as_echo_n "(cached) " >&6
13098 else
13099   if test -n "$READELF_FOR_TARGET"; then
13100   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13101 else
13102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13103 for as_dir in $PATH
13104 do
13105   IFS=$as_save_IFS
13106   test -z "$as_dir" && as_dir=.
13107     for ac_exec_ext in '' $ac_executable_extensions; do
13108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13109     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13111     break 2
13112   fi
13113 done
13114   done
13115 IFS=$as_save_IFS
13116
13117 fi
13118 fi
13119 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13120 if test -n "$READELF_FOR_TARGET"; then
13121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13122 $as_echo "$READELF_FOR_TARGET" >&6; }
13123 else
13124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125 $as_echo "no" >&6; }
13126 fi
13127
13128
13129     fi
13130     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13131       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13132 set dummy ${ncn_progname}; ac_word=$2
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13134 $as_echo_n "checking for $ac_word... " >&6; }
13135 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13136   $as_echo_n "(cached) " >&6
13137 else
13138   if test -n "$READELF_FOR_TARGET"; then
13139   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13140 else
13141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13142 for as_dir in $PATH
13143 do
13144   IFS=$as_save_IFS
13145   test -z "$as_dir" && as_dir=.
13146     for ac_exec_ext in '' $ac_executable_extensions; do
13147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13148     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13150     break 2
13151   fi
13152 done
13153   done
13154 IFS=$as_save_IFS
13155
13156 fi
13157 fi
13158 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13159 if test -n "$READELF_FOR_TARGET"; then
13160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13161 $as_echo "$READELF_FOR_TARGET" >&6; }
13162 else
13163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164 $as_echo "no" >&6; }
13165 fi
13166
13167
13168     fi
13169     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13170   done
13171 fi
13172
13173 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13174   set dummy readelf
13175   if test $build = $target ; then
13176     READELF_FOR_TARGET="$2"
13177   else
13178     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13179   fi
13180 else
13181   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13182 fi
13183
13184 else
13185   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13186 fi
13187
13188
13189
13190
13191 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13192   if test -n "$with_build_time_tools"; then
13193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13194 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13195     if test -x $with_build_time_tools/strip; then
13196       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13197       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13198       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13199 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13200     else
13201       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202 $as_echo "no" >&6; }
13203     fi
13204   elif test $build != $host && test $have_gcc_for_target = yes; then
13205     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13206     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13207     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13208   fi
13209 fi
13210 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13211   # Extract the first word of "strip", so it can be a program name with args.
13212 set dummy strip; ac_word=$2
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214 $as_echo_n "checking for $ac_word... " >&6; }
13215 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13216   $as_echo_n "(cached) " >&6
13217 else
13218   case $STRIP_FOR_TARGET in
13219   [\\/]* | ?:[\\/]*)
13220   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13221   ;;
13222   *)
13223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224 for as_dir in $gcc_cv_tool_dirs
13225 do
13226   IFS=$as_save_IFS
13227   test -z "$as_dir" && as_dir=.
13228     for ac_exec_ext in '' $ac_executable_extensions; do
13229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13230     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13232     break 2
13233   fi
13234 done
13235   done
13236 IFS=$as_save_IFS
13237
13238   ;;
13239 esac
13240 fi
13241 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13242 if test -n "$STRIP_FOR_TARGET"; then
13243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13244 $as_echo "$STRIP_FOR_TARGET" >&6; }
13245 else
13246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13247 $as_echo "no" >&6; }
13248 fi
13249
13250
13251 fi
13252 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13253
13254
13255 if test -n "$STRIP_FOR_TARGET"; then
13256   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13257 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13258   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13259 fi
13260
13261 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13262   for ncn_progname in strip; do
13263     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13264 set dummy ${ncn_progname}; ac_word=$2
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266 $as_echo_n "checking for $ac_word... " >&6; }
13267 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13268   $as_echo_n "(cached) " >&6
13269 else
13270   if test -n "$STRIP_FOR_TARGET"; then
13271   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13272 else
13273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274 for as_dir in $PATH
13275 do
13276   IFS=$as_save_IFS
13277   test -z "$as_dir" && as_dir=.
13278     for ac_exec_ext in '' $ac_executable_extensions; do
13279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13280     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13282     break 2
13283   fi
13284 done
13285   done
13286 IFS=$as_save_IFS
13287
13288 fi
13289 fi
13290 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13291 if test -n "$STRIP_FOR_TARGET"; then
13292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13293 $as_echo "$STRIP_FOR_TARGET" >&6; }
13294 else
13295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296 $as_echo "no" >&6; }
13297 fi
13298
13299
13300   done
13301 fi
13302
13303 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13304   for ncn_progname in strip; do
13305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13306 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13307     if test -x $with_build_time_tools/${ncn_progname}; then
13308       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13309       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13310 $as_echo "yes" >&6; }
13311       break
13312     else
13313       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314 $as_echo "no" >&6; }
13315     fi
13316   done
13317 fi
13318
13319 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13320   for ncn_progname in strip; do
13321     if test -n "$ncn_target_tool_prefix"; then
13322       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13323 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13325 $as_echo_n "checking for $ac_word... " >&6; }
13326 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13327   $as_echo_n "(cached) " >&6
13328 else
13329   if test -n "$STRIP_FOR_TARGET"; then
13330   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13331 else
13332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13333 for as_dir in $PATH
13334 do
13335   IFS=$as_save_IFS
13336   test -z "$as_dir" && as_dir=.
13337     for ac_exec_ext in '' $ac_executable_extensions; do
13338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13339     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13341     break 2
13342   fi
13343 done
13344   done
13345 IFS=$as_save_IFS
13346
13347 fi
13348 fi
13349 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13350 if test -n "$STRIP_FOR_TARGET"; then
13351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13352 $as_echo "$STRIP_FOR_TARGET" >&6; }
13353 else
13354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13355 $as_echo "no" >&6; }
13356 fi
13357
13358
13359     fi
13360     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13361       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13362 set dummy ${ncn_progname}; ac_word=$2
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364 $as_echo_n "checking for $ac_word... " >&6; }
13365 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13366   $as_echo_n "(cached) " >&6
13367 else
13368   if test -n "$STRIP_FOR_TARGET"; then
13369   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13370 else
13371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372 for as_dir in $PATH
13373 do
13374   IFS=$as_save_IFS
13375   test -z "$as_dir" && as_dir=.
13376     for ac_exec_ext in '' $ac_executable_extensions; do
13377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13378     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13380     break 2
13381   fi
13382 done
13383   done
13384 IFS=$as_save_IFS
13385
13386 fi
13387 fi
13388 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13389 if test -n "$STRIP_FOR_TARGET"; then
13390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13391 $as_echo "$STRIP_FOR_TARGET" >&6; }
13392 else
13393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13395 fi
13396
13397
13398     fi
13399     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13400   done
13401 fi
13402
13403 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13404   set dummy strip
13405   if test $build = $target ; then
13406     STRIP_FOR_TARGET="$2"
13407   else
13408     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13409   fi
13410 else
13411   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13412 fi
13413
13414 else
13415   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13416 fi
13417
13418
13419
13420
13421 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13422   if test -n "$with_build_time_tools"; then
13423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13424 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13425     if test -x $with_build_time_tools/windres; then
13426       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13427       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13428       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13429 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13430     else
13431       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13432 $as_echo "no" >&6; }
13433     fi
13434   elif test $build != $host && test $have_gcc_for_target = yes; then
13435     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13436     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13437     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13438   fi
13439 fi
13440 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13441   # Extract the first word of "windres", so it can be a program name with args.
13442 set dummy windres; ac_word=$2
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13444 $as_echo_n "checking for $ac_word... " >&6; }
13445 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13446   $as_echo_n "(cached) " >&6
13447 else
13448   case $WINDRES_FOR_TARGET in
13449   [\\/]* | ?:[\\/]*)
13450   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13451   ;;
13452   *)
13453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13454 for as_dir in $gcc_cv_tool_dirs
13455 do
13456   IFS=$as_save_IFS
13457   test -z "$as_dir" && as_dir=.
13458     for ac_exec_ext in '' $ac_executable_extensions; do
13459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13460     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13462     break 2
13463   fi
13464 done
13465   done
13466 IFS=$as_save_IFS
13467
13468   ;;
13469 esac
13470 fi
13471 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13472 if test -n "$WINDRES_FOR_TARGET"; then
13473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13474 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13475 else
13476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477 $as_echo "no" >&6; }
13478 fi
13479
13480
13481 fi
13482 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13483
13484
13485 if test -n "$WINDRES_FOR_TARGET"; then
13486   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13487 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13488   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13489 fi
13490
13491 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13492   for ncn_progname in windres; do
13493     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13494 set dummy ${ncn_progname}; ac_word=$2
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13496 $as_echo_n "checking for $ac_word... " >&6; }
13497 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13498   $as_echo_n "(cached) " >&6
13499 else
13500   if test -n "$WINDRES_FOR_TARGET"; then
13501   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13502 else
13503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13504 for as_dir in $PATH
13505 do
13506   IFS=$as_save_IFS
13507   test -z "$as_dir" && as_dir=.
13508     for ac_exec_ext in '' $ac_executable_extensions; do
13509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13510     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13512     break 2
13513   fi
13514 done
13515   done
13516 IFS=$as_save_IFS
13517
13518 fi
13519 fi
13520 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13521 if test -n "$WINDRES_FOR_TARGET"; then
13522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13523 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13524 else
13525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526 $as_echo "no" >&6; }
13527 fi
13528
13529
13530   done
13531 fi
13532
13533 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13534   for ncn_progname in windres; do
13535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13536 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13537     if test -x $with_build_time_tools/${ncn_progname}; then
13538       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13539       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13540 $as_echo "yes" >&6; }
13541       break
13542     else
13543       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13544 $as_echo "no" >&6; }
13545     fi
13546   done
13547 fi
13548
13549 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13550   for ncn_progname in windres; do
13551     if test -n "$ncn_target_tool_prefix"; then
13552       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13553 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13555 $as_echo_n "checking for $ac_word... " >&6; }
13556 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13557   $as_echo_n "(cached) " >&6
13558 else
13559   if test -n "$WINDRES_FOR_TARGET"; then
13560   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13561 else
13562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13563 for as_dir in $PATH
13564 do
13565   IFS=$as_save_IFS
13566   test -z "$as_dir" && as_dir=.
13567     for ac_exec_ext in '' $ac_executable_extensions; do
13568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13569     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13571     break 2
13572   fi
13573 done
13574   done
13575 IFS=$as_save_IFS
13576
13577 fi
13578 fi
13579 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13580 if test -n "$WINDRES_FOR_TARGET"; then
13581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13582 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13583 else
13584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585 $as_echo "no" >&6; }
13586 fi
13587
13588
13589     fi
13590     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13591       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13592 set dummy ${ncn_progname}; ac_word=$2
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13594 $as_echo_n "checking for $ac_word... " >&6; }
13595 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13596   $as_echo_n "(cached) " >&6
13597 else
13598   if test -n "$WINDRES_FOR_TARGET"; then
13599   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13600 else
13601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13602 for as_dir in $PATH
13603 do
13604   IFS=$as_save_IFS
13605   test -z "$as_dir" && as_dir=.
13606     for ac_exec_ext in '' $ac_executable_extensions; do
13607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13608     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13610     break 2
13611   fi
13612 done
13613   done
13614 IFS=$as_save_IFS
13615
13616 fi
13617 fi
13618 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13619 if test -n "$WINDRES_FOR_TARGET"; then
13620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13621 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13622 else
13623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13624 $as_echo "no" >&6; }
13625 fi
13626
13627
13628     fi
13629     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13630   done
13631 fi
13632
13633 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13634   set dummy windres
13635   if test $build = $target ; then
13636     WINDRES_FOR_TARGET="$2"
13637   else
13638     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13639   fi
13640 else
13641   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13642 fi
13643
13644 else
13645   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13646 fi
13647
13648
13649
13650
13651 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13652   if test -n "$with_build_time_tools"; then
13653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13654 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13655     if test -x $with_build_time_tools/windmc; then
13656       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13657       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13658       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13659 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13660     else
13661       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13662 $as_echo "no" >&6; }
13663     fi
13664   elif test $build != $host && test $have_gcc_for_target = yes; then
13665     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13666     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13667     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13668   fi
13669 fi
13670 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13671   # Extract the first word of "windmc", so it can be a program name with args.
13672 set dummy windmc; ac_word=$2
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13674 $as_echo_n "checking for $ac_word... " >&6; }
13675 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13676   $as_echo_n "(cached) " >&6
13677 else
13678   case $WINDMC_FOR_TARGET in
13679   [\\/]* | ?:[\\/]*)
13680   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13681   ;;
13682   *)
13683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13684 for as_dir in $gcc_cv_tool_dirs
13685 do
13686   IFS=$as_save_IFS
13687   test -z "$as_dir" && as_dir=.
13688     for ac_exec_ext in '' $ac_executable_extensions; do
13689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13690     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13692     break 2
13693   fi
13694 done
13695   done
13696 IFS=$as_save_IFS
13697
13698   ;;
13699 esac
13700 fi
13701 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13702 if test -n "$WINDMC_FOR_TARGET"; then
13703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13704 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13705 else
13706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13707 $as_echo "no" >&6; }
13708 fi
13709
13710
13711 fi
13712 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13713
13714
13715 if test -n "$WINDMC_FOR_TARGET"; then
13716   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13717 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13718   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13719 fi
13720
13721 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13722   for ncn_progname in windmc; do
13723     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13724 set dummy ${ncn_progname}; ac_word=$2
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13726 $as_echo_n "checking for $ac_word... " >&6; }
13727 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13728   $as_echo_n "(cached) " >&6
13729 else
13730   if test -n "$WINDMC_FOR_TARGET"; then
13731   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13732 else
13733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734 for as_dir in $PATH
13735 do
13736   IFS=$as_save_IFS
13737   test -z "$as_dir" && as_dir=.
13738     for ac_exec_ext in '' $ac_executable_extensions; do
13739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13740     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13742     break 2
13743   fi
13744 done
13745   done
13746 IFS=$as_save_IFS
13747
13748 fi
13749 fi
13750 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13751 if test -n "$WINDMC_FOR_TARGET"; then
13752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13753 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13754 else
13755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13756 $as_echo "no" >&6; }
13757 fi
13758
13759
13760   done
13761 fi
13762
13763 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13764   for ncn_progname in windmc; do
13765     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13766 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13767     if test -x $with_build_time_tools/${ncn_progname}; then
13768       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13769       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13770 $as_echo "yes" >&6; }
13771       break
13772     else
13773       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774 $as_echo "no" >&6; }
13775     fi
13776   done
13777 fi
13778
13779 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13780   for ncn_progname in windmc; do
13781     if test -n "$ncn_target_tool_prefix"; then
13782       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13783 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13785 $as_echo_n "checking for $ac_word... " >&6; }
13786 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13787   $as_echo_n "(cached) " >&6
13788 else
13789   if test -n "$WINDMC_FOR_TARGET"; then
13790   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13791 else
13792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13793 for as_dir in $PATH
13794 do
13795   IFS=$as_save_IFS
13796   test -z "$as_dir" && as_dir=.
13797     for ac_exec_ext in '' $ac_executable_extensions; do
13798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13799     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13801     break 2
13802   fi
13803 done
13804   done
13805 IFS=$as_save_IFS
13806
13807 fi
13808 fi
13809 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13810 if test -n "$WINDMC_FOR_TARGET"; then
13811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13812 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13813 else
13814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13815 $as_echo "no" >&6; }
13816 fi
13817
13818
13819     fi
13820     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13821       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13822 set dummy ${ncn_progname}; ac_word=$2
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13824 $as_echo_n "checking for $ac_word... " >&6; }
13825 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13826   $as_echo_n "(cached) " >&6
13827 else
13828   if test -n "$WINDMC_FOR_TARGET"; then
13829   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13830 else
13831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13832 for as_dir in $PATH
13833 do
13834   IFS=$as_save_IFS
13835   test -z "$as_dir" && as_dir=.
13836     for ac_exec_ext in '' $ac_executable_extensions; do
13837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13838     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13840     break 2
13841   fi
13842 done
13843   done
13844 IFS=$as_save_IFS
13845
13846 fi
13847 fi
13848 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13849 if test -n "$WINDMC_FOR_TARGET"; then
13850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13851 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13852 else
13853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13854 $as_echo "no" >&6; }
13855 fi
13856
13857
13858     fi
13859     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13860   done
13861 fi
13862
13863 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13864   set dummy windmc
13865   if test $build = $target ; then
13866     WINDMC_FOR_TARGET="$2"
13867   else
13868     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13869   fi
13870 else
13871   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13872 fi
13873
13874 else
13875   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13876 fi
13877
13878
13879 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13880
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13882 $as_echo_n "checking where to find the target ar... " >&6; }
13883 if test "x${build}" != "x${host}" ; then
13884   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13885     # We already found the complete path
13886     ac_dir=`dirname $AR_FOR_TARGET`
13887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13888 $as_echo "pre-installed in $ac_dir" >&6; }
13889   else
13890     # Canadian cross, just use what we found
13891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13892 $as_echo "pre-installed" >&6; }
13893   fi
13894 else
13895   ok=yes
13896   case " ${configdirs} " in
13897     *" binutils "*) ;;
13898     *) ok=no ;;
13899   esac
13900
13901   if test $ok = yes; then
13902     # An in-tree tool is available and we can use it
13903     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13905 $as_echo "just compiled" >&6; }
13906   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13907     # We already found the complete path
13908     ac_dir=`dirname $AR_FOR_TARGET`
13909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13910 $as_echo "pre-installed in $ac_dir" >&6; }
13911   elif test "x$target" = "x$host"; then
13912     # We can use an host tool
13913     AR_FOR_TARGET='$(AR)'
13914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13915 $as_echo "host tool" >&6; }
13916   else
13917     # We need a cross tool
13918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13919 $as_echo "pre-installed" >&6; }
13920   fi
13921 fi
13922
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13924 $as_echo_n "checking where to find the target as... " >&6; }
13925 if test "x${build}" != "x${host}" ; then
13926   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13927     # We already found the complete path
13928     ac_dir=`dirname $AS_FOR_TARGET`
13929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13930 $as_echo "pre-installed in $ac_dir" >&6; }
13931   else
13932     # Canadian cross, just use what we found
13933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13934 $as_echo "pre-installed" >&6; }
13935   fi
13936 else
13937   ok=yes
13938   case " ${configdirs} " in
13939     *" gas "*) ;;
13940     *) ok=no ;;
13941   esac
13942
13943   if test $ok = yes; then
13944     # An in-tree tool is available and we can use it
13945     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13946     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13947 $as_echo "just compiled" >&6; }
13948   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13949     # We already found the complete path
13950     ac_dir=`dirname $AS_FOR_TARGET`
13951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13952 $as_echo "pre-installed in $ac_dir" >&6; }
13953   elif test "x$target" = "x$host"; then
13954     # We can use an host tool
13955     AS_FOR_TARGET='$(AS)'
13956     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13957 $as_echo "host tool" >&6; }
13958   else
13959     # We need a cross tool
13960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13961 $as_echo "pre-installed" >&6; }
13962   fi
13963 fi
13964
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13966 $as_echo_n "checking where to find the target cc... " >&6; }
13967 if test "x${build}" != "x${host}" ; then
13968   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13969     # We already found the complete path
13970     ac_dir=`dirname $CC_FOR_TARGET`
13971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13972 $as_echo "pre-installed in $ac_dir" >&6; }
13973   else
13974     # Canadian cross, just use what we found
13975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13976 $as_echo "pre-installed" >&6; }
13977   fi
13978 else
13979   ok=yes
13980   case " ${configdirs} " in
13981     *" gcc "*) ;;
13982     *) ok=no ;;
13983   esac
13984
13985   if test $ok = yes; then
13986     # An in-tree tool is available and we can use it
13987     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13989 $as_echo "just compiled" >&6; }
13990   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13991     # We already found the complete path
13992     ac_dir=`dirname $CC_FOR_TARGET`
13993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13994 $as_echo "pre-installed in $ac_dir" >&6; }
13995   elif test "x$target" = "x$host"; then
13996     # We can use an host tool
13997     CC_FOR_TARGET='$(CC)'
13998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13999 $as_echo "host tool" >&6; }
14000   else
14001     # We need a cross tool
14002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14003 $as_echo "pre-installed" >&6; }
14004   fi
14005 fi
14006
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14008 $as_echo_n "checking where to find the target c++... " >&6; }
14009 if test "x${build}" != "x${host}" ; then
14010   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14011     # We already found the complete path
14012     ac_dir=`dirname $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   else
14016     # Canadian cross, just use what we found
14017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14018 $as_echo "pre-installed" >&6; }
14019   fi
14020 else
14021   ok=yes
14022   case " ${configdirs} " in
14023     *" gcc "*) ;;
14024     *) ok=no ;;
14025   esac
14026   case ,${enable_languages}, in
14027     *,c++,*) ;;
14028     *) ok=no ;;
14029   esac
14030   if test $ok = yes; then
14031     # An in-tree tool is available and we can use it
14032     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'
14033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14034 $as_echo "just compiled" >&6; }
14035   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14036     # We already found the complete path
14037     ac_dir=`dirname $CXX_FOR_TARGET`
14038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14039 $as_echo "pre-installed in $ac_dir" >&6; }
14040   elif test "x$target" = "x$host"; then
14041     # We can use an host tool
14042     CXX_FOR_TARGET='$(CXX)'
14043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14044 $as_echo "host tool" >&6; }
14045   else
14046     # We need a cross tool
14047     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14048 $as_echo "pre-installed" >&6; }
14049   fi
14050 fi
14051
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14053 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14054 if test "x${build}" != "x${host}" ; then
14055   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14056     # We already found the complete path
14057     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14059 $as_echo "pre-installed in $ac_dir" >&6; }
14060   else
14061     # Canadian cross, just use what we found
14062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14063 $as_echo "pre-installed" >&6; }
14064   fi
14065 else
14066   ok=yes
14067   case " ${configdirs} " in
14068     *" gcc "*) ;;
14069     *) ok=no ;;
14070   esac
14071   case ,${enable_languages}, in
14072     *,c++,*) ;;
14073     *) ok=no ;;
14074   esac
14075   if test $ok = yes; then
14076     # An in-tree tool is available and we can use it
14077     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'
14078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14079 $as_echo "just compiled" >&6; }
14080   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14081     # We already found the complete path
14082     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14084 $as_echo "pre-installed in $ac_dir" >&6; }
14085   elif test "x$target" = "x$host"; then
14086     # We can use an host tool
14087     RAW_CXX_FOR_TARGET='$(CXX)'
14088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14089 $as_echo "host tool" >&6; }
14090   else
14091     # We need a cross tool
14092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14093 $as_echo "pre-installed" >&6; }
14094   fi
14095 fi
14096
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14098 $as_echo_n "checking where to find the target dlltool... " >&6; }
14099 if test "x${build}" != "x${host}" ; then
14100   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14101     # We already found the complete path
14102     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14103     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14104 $as_echo "pre-installed in $ac_dir" >&6; }
14105   else
14106     # Canadian cross, just use what we found
14107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14108 $as_echo "pre-installed" >&6; }
14109   fi
14110 else
14111   ok=yes
14112   case " ${configdirs} " in
14113     *" binutils "*) ;;
14114     *) ok=no ;;
14115   esac
14116
14117   if test $ok = yes; then
14118     # An in-tree tool is available and we can use it
14119     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14121 $as_echo "just compiled" >&6; }
14122   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14123     # We already found the complete path
14124     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14126 $as_echo "pre-installed in $ac_dir" >&6; }
14127   elif test "x$target" = "x$host"; then
14128     # We can use an host tool
14129     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14131 $as_echo "host tool" >&6; }
14132   else
14133     # We need a cross tool
14134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14135 $as_echo "pre-installed" >&6; }
14136   fi
14137 fi
14138
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14140 $as_echo_n "checking where to find the target gcc... " >&6; }
14141 if test "x${build}" != "x${host}" ; then
14142   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14143     # We already found the complete path
14144     ac_dir=`dirname $GCC_FOR_TARGET`
14145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14146 $as_echo "pre-installed in $ac_dir" >&6; }
14147   else
14148     # Canadian cross, just use what we found
14149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14150 $as_echo "pre-installed" >&6; }
14151   fi
14152 else
14153   ok=yes
14154   case " ${configdirs} " in
14155     *" gcc "*) ;;
14156     *) ok=no ;;
14157   esac
14158
14159   if test $ok = yes; then
14160     # An in-tree tool is available and we can use it
14161     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14163 $as_echo "just compiled" >&6; }
14164   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14165     # We already found the complete path
14166     ac_dir=`dirname $GCC_FOR_TARGET`
14167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14168 $as_echo "pre-installed in $ac_dir" >&6; }
14169   elif test "x$target" = "x$host"; then
14170     # We can use an host tool
14171     GCC_FOR_TARGET='$()'
14172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14173 $as_echo "host tool" >&6; }
14174   else
14175     # We need a cross tool
14176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14177 $as_echo "pre-installed" >&6; }
14178   fi
14179 fi
14180
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14182 $as_echo_n "checking where to find the target gcj... " >&6; }
14183 if test "x${build}" != "x${host}" ; then
14184   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14185     # We already found the complete path
14186     ac_dir=`dirname $GCJ_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   else
14190     # Canadian cross, just use what we found
14191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14192 $as_echo "pre-installed" >&6; }
14193   fi
14194 else
14195   ok=yes
14196   case " ${configdirs} " in
14197     *" gcc "*) ;;
14198     *) ok=no ;;
14199   esac
14200   case ,${enable_languages}, in
14201     *,java,*) ;;
14202     *) ok=no ;;
14203   esac
14204   if test $ok = yes; then
14205     # An in-tree tool is available and we can use it
14206     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14208 $as_echo "just compiled" >&6; }
14209   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14210     # We already found the complete path
14211     ac_dir=`dirname $GCJ_FOR_TARGET`
14212     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14213 $as_echo "pre-installed in $ac_dir" >&6; }
14214   elif test "x$target" = "x$host"; then
14215     # We can use an host tool
14216     GCJ_FOR_TARGET='$(GCJ)'
14217     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14218 $as_echo "host tool" >&6; }
14219   else
14220     # We need a cross tool
14221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14222 $as_echo "pre-installed" >&6; }
14223   fi
14224 fi
14225
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14227 $as_echo_n "checking where to find the target gfortran... " >&6; }
14228 if test "x${build}" != "x${host}" ; then
14229   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14230     # We already found the complete path
14231     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14232     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14233 $as_echo "pre-installed in $ac_dir" >&6; }
14234   else
14235     # Canadian cross, just use what we found
14236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14237 $as_echo "pre-installed" >&6; }
14238   fi
14239 else
14240   ok=yes
14241   case " ${configdirs} " in
14242     *" gcc "*) ;;
14243     *) ok=no ;;
14244   esac
14245   case ,${enable_languages}, in
14246     *,fortran,*) ;;
14247     *) ok=no ;;
14248   esac
14249   if test $ok = yes; then
14250     # An in-tree tool is available and we can use it
14251     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14252     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14253 $as_echo "just compiled" >&6; }
14254   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14255     # We already found the complete path
14256     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14257     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14258 $as_echo "pre-installed in $ac_dir" >&6; }
14259   elif test "x$target" = "x$host"; then
14260     # We can use an host tool
14261     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14262     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14263 $as_echo "host tool" >&6; }
14264   else
14265     # We need a cross tool
14266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14267 $as_echo "pre-installed" >&6; }
14268   fi
14269 fi
14270
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14272 $as_echo_n "checking where to find the target gccgo... " >&6; }
14273 if test "x${build}" != "x${host}" ; then
14274   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14275     # We already found the complete path
14276     ac_dir=`dirname $GOC_FOR_TARGET`
14277     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14278 $as_echo "pre-installed in $ac_dir" >&6; }
14279   else
14280     # Canadian cross, just use what we found
14281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14282 $as_echo "pre-installed" >&6; }
14283   fi
14284 else
14285   ok=yes
14286   case " ${configdirs} " in
14287     *" gcc "*) ;;
14288     *) ok=no ;;
14289   esac
14290   case ,${enable_languages}, in
14291     *,go,*) ;;
14292     *) ok=no ;;
14293   esac
14294   if test $ok = yes; then
14295     # An in-tree tool is available and we can use it
14296     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14297     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14298 $as_echo "just compiled" >&6; }
14299   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14300     # We already found the complete path
14301     ac_dir=`dirname $GOC_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     GOC_FOR_TARGET='$(GOC)'
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 ld" >&5
14317 $as_echo_n "checking where to find the target ld... " >&6; }
14318 if test "x${build}" != "x${host}" ; then
14319   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14320     # We already found the complete path
14321     ac_dir=`dirname $LD_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     *" ld "*) ;;
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     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14340 $as_echo "just compiled" >&6; }
14341   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14342     # We already found the complete path
14343     ac_dir=`dirname $LD_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     LD_FOR_TARGET='$(LD)'
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 lipo" >&5
14359 $as_echo_n "checking where to find the target lipo... " >&6; }
14360 if test "x${build}" != "x${host}" ; then
14361   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14362     # We already found the complete path
14363     ac_dir=`dirname $LIPO_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   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14373     # We already found the complete path
14374     ac_dir=`dirname $LIPO_FOR_TARGET`
14375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14376 $as_echo "pre-installed in $ac_dir" >&6; }
14377   elif test "x$target" = "x$host"; then
14378     # We can use an host tool
14379     LIPO_FOR_TARGET='$(LIPO)'
14380     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14381 $as_echo "host tool" >&6; }
14382   else
14383     # We need a cross tool
14384     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14385 $as_echo "pre-installed" >&6; }
14386   fi
14387 fi
14388
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14390 $as_echo_n "checking where to find the target nm... " >&6; }
14391 if test "x${build}" != "x${host}" ; then
14392   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14393     # We already found the complete path
14394     ac_dir=`dirname $NM_FOR_TARGET`
14395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14396 $as_echo "pre-installed in $ac_dir" >&6; }
14397   else
14398     # Canadian cross, just use what we found
14399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14400 $as_echo "pre-installed" >&6; }
14401   fi
14402 else
14403   ok=yes
14404   case " ${configdirs} " in
14405     *" binutils "*) ;;
14406     *) ok=no ;;
14407   esac
14408
14409   if test $ok = yes; then
14410     # An in-tree tool is available and we can use it
14411     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14413 $as_echo "just compiled" >&6; }
14414   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14415     # We already found the complete path
14416     ac_dir=`dirname $NM_FOR_TARGET`
14417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14418 $as_echo "pre-installed in $ac_dir" >&6; }
14419   elif test "x$target" = "x$host"; then
14420     # We can use an host tool
14421     NM_FOR_TARGET='$(NM)'
14422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14423 $as_echo "host tool" >&6; }
14424   else
14425     # We need a cross tool
14426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14427 $as_echo "pre-installed" >&6; }
14428   fi
14429 fi
14430
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14432 $as_echo_n "checking where to find the target objcopy... " >&6; }
14433 if test "x${build}" != "x${host}" ; then
14434   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14435     # We already found the complete path
14436     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14438 $as_echo "pre-installed in $ac_dir" >&6; }
14439   else
14440     # Canadian cross, just use what we found
14441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14442 $as_echo "pre-installed" >&6; }
14443   fi
14444 else
14445   ok=yes
14446   case " ${configdirs} " in
14447     *" binutils "*) ;;
14448     *) ok=no ;;
14449   esac
14450
14451   if test $ok = yes; then
14452     # An in-tree tool is available and we can use it
14453     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14454     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14455 $as_echo "just compiled" >&6; }
14456   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14457     # We already found the complete path
14458     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14460 $as_echo "pre-installed in $ac_dir" >&6; }
14461   elif test "x$target" = "x$host"; then
14462     # We can use an host tool
14463     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14465 $as_echo "host tool" >&6; }
14466   else
14467     # We need a cross tool
14468     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14469 $as_echo "pre-installed" >&6; }
14470   fi
14471 fi
14472
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14474 $as_echo_n "checking where to find the target objdump... " >&6; }
14475 if test "x${build}" != "x${host}" ; then
14476   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14477     # We already found the complete path
14478     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14480 $as_echo "pre-installed in $ac_dir" >&6; }
14481   else
14482     # Canadian cross, just use what we found
14483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14484 $as_echo "pre-installed" >&6; }
14485   fi
14486 else
14487   ok=yes
14488   case " ${configdirs} " in
14489     *" binutils "*) ;;
14490     *) ok=no ;;
14491   esac
14492
14493   if test $ok = yes; then
14494     # An in-tree tool is available and we can use it
14495     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14497 $as_echo "just compiled" >&6; }
14498   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14499     # We already found the complete path
14500     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14502 $as_echo "pre-installed in $ac_dir" >&6; }
14503   elif test "x$target" = "x$host"; then
14504     # We can use an host tool
14505     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14507 $as_echo "host tool" >&6; }
14508   else
14509     # We need a cross tool
14510     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14511 $as_echo "pre-installed" >&6; }
14512   fi
14513 fi
14514
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14516 $as_echo_n "checking where to find the target ranlib... " >&6; }
14517 if test "x${build}" != "x${host}" ; then
14518   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14519     # We already found the complete path
14520     ac_dir=`dirname $RANLIB_FOR_TARGET`
14521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14522 $as_echo "pre-installed in $ac_dir" >&6; }
14523   else
14524     # Canadian cross, just use what we found
14525     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14526 $as_echo "pre-installed" >&6; }
14527   fi
14528 else
14529   ok=yes
14530   case " ${configdirs} " in
14531     *" binutils "*) ;;
14532     *) ok=no ;;
14533   esac
14534
14535   if test $ok = yes; then
14536     # An in-tree tool is available and we can use it
14537     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14538     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14539 $as_echo "just compiled" >&6; }
14540   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14541     # We already found the complete path
14542     ac_dir=`dirname $RANLIB_FOR_TARGET`
14543     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14544 $as_echo "pre-installed in $ac_dir" >&6; }
14545   elif test "x$target" = "x$host"; then
14546     # We can use an host tool
14547     RANLIB_FOR_TARGET='$(RANLIB)'
14548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14549 $as_echo "host tool" >&6; }
14550   else
14551     # We need a cross tool
14552     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14553 $as_echo "pre-installed" >&6; }
14554   fi
14555 fi
14556
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14558 $as_echo_n "checking where to find the target readelf... " >&6; }
14559 if test "x${build}" != "x${host}" ; then
14560   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14561     # We already found the complete path
14562     ac_dir=`dirname $READELF_FOR_TARGET`
14563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14564 $as_echo "pre-installed in $ac_dir" >&6; }
14565   else
14566     # Canadian cross, just use what we found
14567     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14568 $as_echo "pre-installed" >&6; }
14569   fi
14570 else
14571   ok=yes
14572   case " ${configdirs} " in
14573     *" binutils "*) ;;
14574     *) ok=no ;;
14575   esac
14576
14577   if test $ok = yes; then
14578     # An in-tree tool is available and we can use it
14579     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14581 $as_echo "just compiled" >&6; }
14582   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14583     # We already found the complete path
14584     ac_dir=`dirname $READELF_FOR_TARGET`
14585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14586 $as_echo "pre-installed in $ac_dir" >&6; }
14587   elif test "x$target" = "x$host"; then
14588     # We can use an host tool
14589     READELF_FOR_TARGET='$(READELF)'
14590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14591 $as_echo "host tool" >&6; }
14592   else
14593     # We need a cross tool
14594     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14595 $as_echo "pre-installed" >&6; }
14596   fi
14597 fi
14598
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14600 $as_echo_n "checking where to find the target strip... " >&6; }
14601 if test "x${build}" != "x${host}" ; then
14602   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14603     # We already found the complete path
14604     ac_dir=`dirname $STRIP_FOR_TARGET`
14605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14606 $as_echo "pre-installed in $ac_dir" >&6; }
14607   else
14608     # Canadian cross, just use what we found
14609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14610 $as_echo "pre-installed" >&6; }
14611   fi
14612 else
14613   ok=yes
14614   case " ${configdirs} " in
14615     *" binutils "*) ;;
14616     *) ok=no ;;
14617   esac
14618
14619   if test $ok = yes; then
14620     # An in-tree tool is available and we can use it
14621     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14623 $as_echo "just compiled" >&6; }
14624   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14625     # We already found the complete path
14626     ac_dir=`dirname $STRIP_FOR_TARGET`
14627     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14628 $as_echo "pre-installed in $ac_dir" >&6; }
14629   elif test "x$target" = "x$host"; then
14630     # We can use an host tool
14631     STRIP_FOR_TARGET='$(STRIP)'
14632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14633 $as_echo "host tool" >&6; }
14634   else
14635     # We need a cross tool
14636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14637 $as_echo "pre-installed" >&6; }
14638   fi
14639 fi
14640
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14642 $as_echo_n "checking where to find the target windres... " >&6; }
14643 if test "x${build}" != "x${host}" ; then
14644   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14645     # We already found the complete path
14646     ac_dir=`dirname $WINDRES_FOR_TARGET`
14647     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14648 $as_echo "pre-installed in $ac_dir" >&6; }
14649   else
14650     # Canadian cross, just use what we found
14651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14652 $as_echo "pre-installed" >&6; }
14653   fi
14654 else
14655   ok=yes
14656   case " ${configdirs} " in
14657     *" binutils "*) ;;
14658     *) ok=no ;;
14659   esac
14660
14661   if test $ok = yes; then
14662     # An in-tree tool is available and we can use it
14663     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14665 $as_echo "just compiled" >&6; }
14666   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14667     # We already found the complete path
14668     ac_dir=`dirname $WINDRES_FOR_TARGET`
14669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14670 $as_echo "pre-installed in $ac_dir" >&6; }
14671   elif test "x$target" = "x$host"; then
14672     # We can use an host tool
14673     WINDRES_FOR_TARGET='$(WINDRES)'
14674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14675 $as_echo "host tool" >&6; }
14676   else
14677     # We need a cross tool
14678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14679 $as_echo "pre-installed" >&6; }
14680   fi
14681 fi
14682
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14684 $as_echo_n "checking where to find the target windmc... " >&6; }
14685 if test "x${build}" != "x${host}" ; then
14686   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14687     # We already found the complete path
14688     ac_dir=`dirname $WINDMC_FOR_TARGET`
14689     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14690 $as_echo "pre-installed in $ac_dir" >&6; }
14691   else
14692     # Canadian cross, just use what we found
14693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14694 $as_echo "pre-installed" >&6; }
14695   fi
14696 else
14697   ok=yes
14698   case " ${configdirs} " in
14699     *" binutils "*) ;;
14700     *) ok=no ;;
14701   esac
14702
14703   if test $ok = yes; then
14704     # An in-tree tool is available and we can use it
14705     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14707 $as_echo "just compiled" >&6; }
14708   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14709     # We already found the complete path
14710     ac_dir=`dirname $WINDMC_FOR_TARGET`
14711     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14712 $as_echo "pre-installed in $ac_dir" >&6; }
14713   elif test "x$target" = "x$host"; then
14714     # We can use an host tool
14715     WINDMC_FOR_TARGET='$(WINDMC)'
14716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14717 $as_echo "host tool" >&6; }
14718   else
14719     # We need a cross tool
14720     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14721 $as_echo "pre-installed" >&6; }
14722   fi
14723 fi
14724
14725
14726
14727
14728
14729 # Certain tools may need extra flags.
14730 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14731 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14732 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14733
14734 # When building target libraries, except in a Canadian cross, we use
14735 # the same toolchain as the compiler we just built.
14736 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14737 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14738 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14739 if test $host = $build; then
14740   case " $configdirs " in
14741     *" gcc "*)
14742       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14743       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14744       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14745       ;;
14746   esac
14747 fi
14748
14749
14750
14751
14752
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14754 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14755 # Check whether --enable-maintainer-mode was given.
14756 if test "${enable_maintainer_mode+set}" = set; then :
14757   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14758 else
14759   USE_MAINTAINER_MODE=no
14760 fi
14761
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14763 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14764
14765
14766 if test "$USE_MAINTAINER_MODE" = yes; then
14767   MAINTAINER_MODE_TRUE=
14768   MAINTAINER_MODE_FALSE='#'
14769 else
14770   MAINTAINER_MODE_TRUE='#'
14771   MAINTAINER_MODE_FALSE=
14772 fi
14773 MAINT=$MAINTAINER_MODE_TRUE
14774
14775 # ---------------------
14776 # GCC bootstrap support
14777 # ---------------------
14778
14779 # Stage specific cflags for build.
14780 stage1_cflags="-g"
14781 case $build in
14782   vax-*-*)
14783     case ${GCC} in
14784       yes) stage1_cflags="-g -Wa,-J" ;;
14785       *) stage1_cflags="-g -J" ;;
14786     esac ;;
14787 esac
14788
14789
14790
14791 # Enable --enable-checking in stage1 of the compiler.
14792 # Check whether --enable-stage1-checking was given.
14793 if test "${enable_stage1_checking+set}" = set; then :
14794   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14795 else
14796   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14797   stage1_checking=--enable-checking=yes,types
14798 else
14799   stage1_checking=--enable-checking=$enable_checking,types
14800 fi
14801 fi
14802
14803
14804
14805 # Enable -Werror in bootstrap stage2 and later.
14806 # Check whether --enable-werror was given.
14807 if test "${enable_werror+set}" = set; then :
14808   enableval=$enable_werror;
14809 else
14810   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14811   enable_werror=yes
14812 else
14813   enable_werror=no
14814 fi
14815 fi
14816
14817 case ${enable_werror} in
14818   yes) stage2_werror_flag="--enable-werror-always" ;;
14819   *) stage2_werror_flag="" ;;
14820 esac
14821
14822
14823 # Enable --enable-host-shared.
14824 # Check whether --enable-host-shared was given.
14825 if test "${enable_host_shared+set}" = set; then :
14826   enableval=$enable_host_shared; host_shared=$enableval
14827 else
14828   host_shared=no
14829 fi
14830
14831
14832
14833 # PR jit/64780: Require the user to explicitly specify
14834 # --enable-host-shared if the jit is enabled, hinting
14835 # that they might want to do a separate configure/build of
14836 # the jit, to avoid users from slowing down the rest of the
14837 # compiler by enabling the jit.
14838 if test ${host_shared} = "no" ; then
14839   case "${enable_languages}" in
14840     *jit*)
14841       as_fn_error "
14842 Enabling language \"jit\" requires --enable-host-shared.
14843
14844 --enable-host-shared typically slows the rest of the compiler down by
14845 a few %, so you must explicitly enable it.
14846
14847 If you want to build both the jit and the regular compiler, it is often
14848 best to do this via two separate configure/builds, in separate
14849 directories, to avoid imposing the performance cost of
14850 --enable-host-shared on the regular compiler." "$LINENO" 5
14851       ;;
14852     *)
14853       ;;
14854   esac
14855 fi
14856
14857 # Specify what files to not compare during bootstrap.
14858
14859 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14860 case "$target" in
14861   hppa*64*-*-hpux*) ;;
14862   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14863   powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14864 esac
14865
14866
14867 ac_config_files="$ac_config_files Makefile"
14868
14869 cat >confcache <<\_ACEOF
14870 # This file is a shell script that caches the results of configure
14871 # tests run on this system so they can be shared between configure
14872 # scripts and configure runs, see configure's option --config-cache.
14873 # It is not useful on other systems.  If it contains results you don't
14874 # want to keep, you may remove or edit it.
14875 #
14876 # config.status only pays attention to the cache file if you give it
14877 # the --recheck option to rerun configure.
14878 #
14879 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14880 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14881 # following values.
14882
14883 _ACEOF
14884
14885 # The following way of writing the cache mishandles newlines in values,
14886 # but we know of no workaround that is simple, portable, and efficient.
14887 # So, we kill variables containing newlines.
14888 # Ultrix sh set writes to stderr and can't be redirected directly,
14889 # and sets the high bit in the cache file unless we assign to the vars.
14890 (
14891   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14892     eval ac_val=\$$ac_var
14893     case $ac_val in #(
14894     *${as_nl}*)
14895       case $ac_var in #(
14896       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14897 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14898       esac
14899       case $ac_var in #(
14900       _ | IFS | as_nl) ;; #(
14901       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14902       *) { eval $ac_var=; unset $ac_var;} ;;
14903       esac ;;
14904     esac
14905   done
14906
14907   (set) 2>&1 |
14908     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14909     *${as_nl}ac_space=\ *)
14910       # `set' does not quote correctly, so add quotes: double-quote
14911       # substitution turns \\\\ into \\, and sed turns \\ into \.
14912       sed -n \
14913         "s/'/'\\\\''/g;
14914           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14915       ;; #(
14916     *)
14917       # `set' quotes correctly as required by POSIX, so do not add quotes.
14918       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14919       ;;
14920     esac |
14921     sort
14922 ) |
14923   sed '
14924      /^ac_cv_env_/b end
14925      t clear
14926      :clear
14927      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14928      t end
14929      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14930      :end' >>confcache
14931 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14932   if test -w "$cache_file"; then
14933     test "x$cache_file" != "x/dev/null" &&
14934       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14935 $as_echo "$as_me: updating cache $cache_file" >&6;}
14936     cat confcache >$cache_file
14937   else
14938     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14939 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14940   fi
14941 fi
14942 rm -f confcache
14943
14944 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14945 # Let make expand exec_prefix.
14946 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14947
14948 # Transform confdefs.h into DEFS.
14949 # Protect against shell expansion while executing Makefile rules.
14950 # Protect against Makefile macro expansion.
14951 #
14952 # If the first sed substitution is executed (which looks for macros that
14953 # take arguments), then branch to the quote section.  Otherwise,
14954 # look for a macro that doesn't take arguments.
14955 ac_script='
14956 :mline
14957 /\\$/{
14958  N
14959  s,\\\n,,
14960  b mline
14961 }
14962 t clear
14963 :clear
14964 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
14965 t quote
14966 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
14967 t quote
14968 b any
14969 :quote
14970 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14971 s/\[/\\&/g
14972 s/\]/\\&/g
14973 s/\$/$$/g
14974 H
14975 :any
14976 ${
14977         g
14978         s/^\n//
14979         s/\n/ /g
14980         p
14981 }
14982 '
14983 DEFS=`sed -n "$ac_script" confdefs.h`
14984
14985
14986 ac_libobjs=
14987 ac_ltlibobjs=
14988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14989   # 1. Remove the extension, and $U if already installed.
14990   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14991   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14992   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14993   #    will be set to the directory where LIBOBJS objects are built.
14994   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14995   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14996 done
14997 LIBOBJS=$ac_libobjs
14998
14999 LTLIBOBJS=$ac_ltlibobjs
15000
15001
15002
15003 : ${CONFIG_STATUS=./config.status}
15004 ac_write_fail=0
15005 ac_clean_files_save=$ac_clean_files
15006 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15008 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15009 as_write_fail=0
15010 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15011 #! $SHELL
15012 # Generated by $as_me.
15013 # Run this file to recreate the current configuration.
15014 # Compiler output produced by configure, useful for debugging
15015 # configure, is in config.log if it exists.
15016
15017 debug=false
15018 ac_cs_recheck=false
15019 ac_cs_silent=false
15020
15021 SHELL=\${CONFIG_SHELL-$SHELL}
15022 export SHELL
15023 _ASEOF
15024 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15025 ## -------------------- ##
15026 ## M4sh Initialization. ##
15027 ## -------------------- ##
15028
15029 # Be more Bourne compatible
15030 DUALCASE=1; export DUALCASE # for MKS sh
15031 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15032   emulate sh
15033   NULLCMD=:
15034   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15035   # is contrary to our usage.  Disable this feature.
15036   alias -g '${1+"$@"}'='"$@"'
15037   setopt NO_GLOB_SUBST
15038 else
15039   case `(set -o) 2>/dev/null` in #(
15040   *posix*) :
15041     set -o posix ;; #(
15042   *) :
15043      ;;
15044 esac
15045 fi
15046
15047
15048 as_nl='
15049 '
15050 export as_nl
15051 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15052 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15053 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15054 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15055 # Prefer a ksh shell builtin over an external printf program on Solaris,
15056 # but without wasting forks for bash or zsh.
15057 if test -z "$BASH_VERSION$ZSH_VERSION" \
15058     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15059   as_echo='print -r --'
15060   as_echo_n='print -rn --'
15061 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15062   as_echo='printf %s\n'
15063   as_echo_n='printf %s'
15064 else
15065   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15066     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15067     as_echo_n='/usr/ucb/echo -n'
15068   else
15069     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15070     as_echo_n_body='eval
15071       arg=$1;
15072       case $arg in #(
15073       *"$as_nl"*)
15074         expr "X$arg" : "X\\(.*\\)$as_nl";
15075         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15076       esac;
15077       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15078     '
15079     export as_echo_n_body
15080     as_echo_n='sh -c $as_echo_n_body as_echo'
15081   fi
15082   export as_echo_body
15083   as_echo='sh -c $as_echo_body as_echo'
15084 fi
15085
15086 # The user is always right.
15087 if test "${PATH_SEPARATOR+set}" != set; then
15088   PATH_SEPARATOR=:
15089   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15090     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15091       PATH_SEPARATOR=';'
15092   }
15093 fi
15094
15095
15096 # IFS
15097 # We need space, tab and new line, in precisely that order.  Quoting is
15098 # there to prevent editors from complaining about space-tab.
15099 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15100 # splitting by setting IFS to empty value.)
15101 IFS=" ""        $as_nl"
15102
15103 # Find who we are.  Look in the path if we contain no directory separator.
15104 case $0 in #((
15105   *[\\/]* ) as_myself=$0 ;;
15106   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15107 for as_dir in $PATH
15108 do
15109   IFS=$as_save_IFS
15110   test -z "$as_dir" && as_dir=.
15111     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15112   done
15113 IFS=$as_save_IFS
15114
15115      ;;
15116 esac
15117 # We did not find ourselves, most probably we were run as `sh COMMAND'
15118 # in which case we are not to be found in the path.
15119 if test "x$as_myself" = x; then
15120   as_myself=$0
15121 fi
15122 if test ! -f "$as_myself"; then
15123   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15124   exit 1
15125 fi
15126
15127 # Unset variables that we do not need and which cause bugs (e.g. in
15128 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15129 # suppresses any "Segmentation fault" message there.  '((' could
15130 # trigger a bug in pdksh 5.2.14.
15131 for as_var in BASH_ENV ENV MAIL MAILPATH
15132 do eval test x\${$as_var+set} = xset \
15133   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15134 done
15135 PS1='$ '
15136 PS2='> '
15137 PS4='+ '
15138
15139 # NLS nuisances.
15140 LC_ALL=C
15141 export LC_ALL
15142 LANGUAGE=C
15143 export LANGUAGE
15144
15145 # CDPATH.
15146 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15147
15148
15149 # as_fn_error ERROR [LINENO LOG_FD]
15150 # ---------------------------------
15151 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15152 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15153 # script with status $?, using 1 if that was 0.
15154 as_fn_error ()
15155 {
15156   as_status=$?; test $as_status -eq 0 && as_status=1
15157   if test "$3"; then
15158     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15159     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15160   fi
15161   $as_echo "$as_me: error: $1" >&2
15162   as_fn_exit $as_status
15163 } # as_fn_error
15164
15165
15166 # as_fn_set_status STATUS
15167 # -----------------------
15168 # Set $? to STATUS, without forking.
15169 as_fn_set_status ()
15170 {
15171   return $1
15172 } # as_fn_set_status
15173
15174 # as_fn_exit STATUS
15175 # -----------------
15176 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15177 as_fn_exit ()
15178 {
15179   set +e
15180   as_fn_set_status $1
15181   exit $1
15182 } # as_fn_exit
15183
15184 # as_fn_unset VAR
15185 # ---------------
15186 # Portably unset VAR.
15187 as_fn_unset ()
15188 {
15189   { eval $1=; unset $1;}
15190 }
15191 as_unset=as_fn_unset
15192 # as_fn_append VAR VALUE
15193 # ----------------------
15194 # Append the text in VALUE to the end of the definition contained in VAR. Take
15195 # advantage of any shell optimizations that allow amortized linear growth over
15196 # repeated appends, instead of the typical quadratic growth present in naive
15197 # implementations.
15198 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15199   eval 'as_fn_append ()
15200   {
15201     eval $1+=\$2
15202   }'
15203 else
15204   as_fn_append ()
15205   {
15206     eval $1=\$$1\$2
15207   }
15208 fi # as_fn_append
15209
15210 # as_fn_arith ARG...
15211 # ------------------
15212 # Perform arithmetic evaluation on the ARGs, and store the result in the
15213 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15214 # must be portable across $(()) and expr.
15215 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15216   eval 'as_fn_arith ()
15217   {
15218     as_val=$(( $* ))
15219   }'
15220 else
15221   as_fn_arith ()
15222   {
15223     as_val=`expr "$@" || test $? -eq 1`
15224   }
15225 fi # as_fn_arith
15226
15227
15228 if expr a : '\(a\)' >/dev/null 2>&1 &&
15229    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15230   as_expr=expr
15231 else
15232   as_expr=false
15233 fi
15234
15235 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15236   as_basename=basename
15237 else
15238   as_basename=false
15239 fi
15240
15241 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15242   as_dirname=dirname
15243 else
15244   as_dirname=false
15245 fi
15246
15247 as_me=`$as_basename -- "$0" ||
15248 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15249          X"$0" : 'X\(//\)$' \| \
15250          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15251 $as_echo X/"$0" |
15252     sed '/^.*\/\([^/][^/]*\)\/*$/{
15253             s//\1/
15254             q
15255           }
15256           /^X\/\(\/\/\)$/{
15257             s//\1/
15258             q
15259           }
15260           /^X\/\(\/\).*/{
15261             s//\1/
15262             q
15263           }
15264           s/.*/./; q'`
15265
15266 # Avoid depending upon Character Ranges.
15267 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15268 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15269 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15270 as_cr_digits='0123456789'
15271 as_cr_alnum=$as_cr_Letters$as_cr_digits
15272
15273 ECHO_C= ECHO_N= ECHO_T=
15274 case `echo -n x` in #(((((
15275 -n*)
15276   case `echo 'xy\c'` in
15277   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15278   xy)  ECHO_C='\c';;
15279   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15280        ECHO_T=' ';;
15281   esac;;
15282 *)
15283   ECHO_N='-n';;
15284 esac
15285
15286 rm -f conf$$ conf$$.exe conf$$.file
15287 if test -d conf$$.dir; then
15288   rm -f conf$$.dir/conf$$.file
15289 else
15290   rm -f conf$$.dir
15291   mkdir conf$$.dir 2>/dev/null
15292 fi
15293 if (echo >conf$$.file) 2>/dev/null; then
15294   if ln -s conf$$.file conf$$ 2>/dev/null; then
15295     as_ln_s='ln -s'
15296     # ... but there are two gotchas:
15297     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15298     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15299     # In both cases, we have to default to `cp -p'.
15300     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15301       as_ln_s='cp -p'
15302   elif ln conf$$.file conf$$ 2>/dev/null; then
15303     as_ln_s=ln
15304   else
15305     as_ln_s='cp -p'
15306   fi
15307 else
15308   as_ln_s='cp -p'
15309 fi
15310 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15311 rmdir conf$$.dir 2>/dev/null
15312
15313
15314 # as_fn_mkdir_p
15315 # -------------
15316 # Create "$as_dir" as a directory, including parents if necessary.
15317 as_fn_mkdir_p ()
15318 {
15319
15320   case $as_dir in #(
15321   -*) as_dir=./$as_dir;;
15322   esac
15323   test -d "$as_dir" || eval $as_mkdir_p || {
15324     as_dirs=
15325     while :; do
15326       case $as_dir in #(
15327       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15328       *) as_qdir=$as_dir;;
15329       esac
15330       as_dirs="'$as_qdir' $as_dirs"
15331       as_dir=`$as_dirname -- "$as_dir" ||
15332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15333          X"$as_dir" : 'X\(//\)[^/]' \| \
15334          X"$as_dir" : 'X\(//\)$' \| \
15335          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15336 $as_echo X"$as_dir" |
15337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15338             s//\1/
15339             q
15340           }
15341           /^X\(\/\/\)[^/].*/{
15342             s//\1/
15343             q
15344           }
15345           /^X\(\/\/\)$/{
15346             s//\1/
15347             q
15348           }
15349           /^X\(\/\).*/{
15350             s//\1/
15351             q
15352           }
15353           s/.*/./; q'`
15354       test -d "$as_dir" && break
15355     done
15356     test -z "$as_dirs" || eval "mkdir $as_dirs"
15357   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15358
15359
15360 } # as_fn_mkdir_p
15361 if mkdir -p . 2>/dev/null; then
15362   as_mkdir_p='mkdir -p "$as_dir"'
15363 else
15364   test -d ./-p && rmdir ./-p
15365   as_mkdir_p=false
15366 fi
15367
15368 if test -x / >/dev/null 2>&1; then
15369   as_test_x='test -x'
15370 else
15371   if ls -dL / >/dev/null 2>&1; then
15372     as_ls_L_option=L
15373   else
15374     as_ls_L_option=
15375   fi
15376   as_test_x='
15377     eval sh -c '\''
15378       if test -d "$1"; then
15379         test -d "$1/.";
15380       else
15381         case $1 in #(
15382         -*)set "./$1";;
15383         esac;
15384         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15385         ???[sx]*):;;*)false;;esac;fi
15386     '\'' sh
15387   '
15388 fi
15389 as_executable_p=$as_test_x
15390
15391 # Sed expression to map a string onto a valid CPP name.
15392 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15393
15394 # Sed expression to map a string onto a valid variable name.
15395 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15396
15397
15398 exec 6>&1
15399 ## ----------------------------------- ##
15400 ## Main body of $CONFIG_STATUS script. ##
15401 ## ----------------------------------- ##
15402 _ASEOF
15403 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15404
15405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15406 # Save the log message, to keep $0 and so on meaningful, and to
15407 # report actual input values of CONFIG_FILES etc. instead of their
15408 # values after options handling.
15409 ac_log="
15410 This file was extended by $as_me, which was
15411 generated by GNU Autoconf 2.64.  Invocation command line was
15412
15413   CONFIG_FILES    = $CONFIG_FILES
15414   CONFIG_HEADERS  = $CONFIG_HEADERS
15415   CONFIG_LINKS    = $CONFIG_LINKS
15416   CONFIG_COMMANDS = $CONFIG_COMMANDS
15417   $ $0 $@
15418
15419 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15420 "
15421
15422 _ACEOF
15423
15424 case $ac_config_files in *"
15425 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15426 esac
15427
15428
15429
15430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15431 # Files that config.status was made for.
15432 config_files="$ac_config_files"
15433
15434 _ACEOF
15435
15436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15437 ac_cs_usage="\
15438 \`$as_me' instantiates files and other configuration actions
15439 from templates according to the current configuration.  Unless the files
15440 and actions are specified as TAGs, all are instantiated by default.
15441
15442 Usage: $0 [OPTION]... [TAG]...
15443
15444   -h, --help       print this help, then exit
15445   -V, --version    print version number and configuration settings, then exit
15446   -q, --quiet, --silent
15447                    do not print progress messages
15448   -d, --debug      don't remove temporary files
15449       --recheck    update $as_me by reconfiguring in the same conditions
15450       --file=FILE[:TEMPLATE]
15451                    instantiate the configuration file FILE
15452
15453 Configuration files:
15454 $config_files
15455
15456 Report bugs to the package provider."
15457
15458 _ACEOF
15459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15460 ac_cs_version="\\
15461 config.status
15462 configured by $0, generated by GNU Autoconf 2.64,
15463   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15464
15465 Copyright (C) 2009 Free Software Foundation, Inc.
15466 This config.status script is free software; the Free Software Foundation
15467 gives unlimited permission to copy, distribute and modify it."
15468
15469 ac_pwd='$ac_pwd'
15470 srcdir='$srcdir'
15471 INSTALL='$INSTALL'
15472 AWK='$AWK'
15473 test -n "\$AWK" || AWK=awk
15474 _ACEOF
15475
15476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15477 # The default lists apply if the user does not specify any file.
15478 ac_need_defaults=:
15479 while test $# != 0
15480 do
15481   case $1 in
15482   --*=*)
15483     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15484     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15485     ac_shift=:
15486     ;;
15487   *)
15488     ac_option=$1
15489     ac_optarg=$2
15490     ac_shift=shift
15491     ;;
15492   esac
15493
15494   case $ac_option in
15495   # Handling of the options.
15496   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15497     ac_cs_recheck=: ;;
15498   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15499     $as_echo "$ac_cs_version"; exit ;;
15500   --debug | --debu | --deb | --de | --d | -d )
15501     debug=: ;;
15502   --file | --fil | --fi | --f )
15503     $ac_shift
15504     case $ac_optarg in
15505     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15506     esac
15507     as_fn_append CONFIG_FILES " '$ac_optarg'"
15508     ac_need_defaults=false;;
15509   --he | --h |  --help | --hel | -h )
15510     $as_echo "$ac_cs_usage"; exit ;;
15511   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15512   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15513     ac_cs_silent=: ;;
15514
15515   # This is an error.
15516   -*) as_fn_error "unrecognized option: \`$1'
15517 Try \`$0 --help' for more information." ;;
15518
15519   *) as_fn_append ac_config_targets " $1"
15520      ac_need_defaults=false ;;
15521
15522   esac
15523   shift
15524 done
15525
15526 ac_configure_extra_args=
15527
15528 if $ac_cs_silent; then
15529   exec 6>/dev/null
15530   ac_configure_extra_args="$ac_configure_extra_args --silent"
15531 fi
15532
15533 _ACEOF
15534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15535 if \$ac_cs_recheck; then
15536   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15537   shift
15538   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15539   CONFIG_SHELL='$SHELL'
15540   export CONFIG_SHELL
15541   exec "\$@"
15542 fi
15543
15544 _ACEOF
15545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15546 exec 5>>config.log
15547 {
15548   echo
15549   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15550 ## Running $as_me. ##
15551 _ASBOX
15552   $as_echo "$ac_log"
15553 } >&5
15554
15555 _ACEOF
15556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15557 #
15558 # INIT-COMMANDS
15559 #
15560 extrasub_build="$extrasub_build"
15561    extrasub_host="$extrasub_host"
15562    extrasub_target="$extrasub_target"
15563
15564 _ACEOF
15565
15566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15567
15568 # Handling of arguments.
15569 for ac_config_target in $ac_config_targets
15570 do
15571   case $ac_config_target in
15572     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15573
15574   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15575   esac
15576 done
15577
15578
15579 # If the user did not use the arguments to specify the items to instantiate,
15580 # then the envvar interface is used.  Set only those that are not.
15581 # We use the long form for the default assignment because of an extremely
15582 # bizarre bug on SunOS 4.1.3.
15583 if $ac_need_defaults; then
15584   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15585 fi
15586
15587 # Have a temporary directory for convenience.  Make it in the build tree
15588 # simply because there is no reason against having it here, and in addition,
15589 # creating and moving files from /tmp can sometimes cause problems.
15590 # Hook for its removal unless debugging.
15591 # Note that there is a small window in which the directory will not be cleaned:
15592 # after its creation but before its name has been assigned to `$tmp'.
15593 $debug ||
15594 {
15595   tmp=
15596   trap 'exit_status=$?
15597   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15598 ' 0
15599   trap 'as_fn_exit 1' 1 2 13 15
15600 }
15601 # Create a (secure) tmp directory for tmp files.
15602
15603 {
15604   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15605   test -n "$tmp" && test -d "$tmp"
15606 }  ||
15607 {
15608   tmp=./conf$$-$RANDOM
15609   (umask 077 && mkdir "$tmp")
15610 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15611
15612 # Set up the scripts for CONFIG_FILES section.
15613 # No need to generate them if there are no CONFIG_FILES.
15614 # This happens for instance with `./config.status config.h'.
15615 if test -n "$CONFIG_FILES"; then
15616
15617 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15618   ac_cs_awk_getline=:
15619   ac_cs_awk_pipe_init=
15620   ac_cs_awk_read_file='
15621       while ((getline aline < (F[key])) > 0)
15622         print(aline)
15623       close(F[key])'
15624   ac_cs_awk_pipe_fini=
15625 else
15626   ac_cs_awk_getline=false
15627   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15628   ac_cs_awk_read_file='
15629       print "|#_!!_#|"
15630       print "cat " F[key] " &&"
15631       '$ac_cs_awk_pipe_init
15632   # The final `:' finishes the AND list.
15633   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15634 fi
15635 ac_cr=`echo X | tr X '\015'`
15636 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15637 # But we know of no other shell where ac_cr would be empty at this
15638 # point, so we can use a bashism as a fallback.
15639 if test "x$ac_cr" = x; then
15640   eval ac_cr=\$\'\\r\'
15641 fi
15642 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15643 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15644   ac_cs_awk_cr='\r'
15645 else
15646   ac_cs_awk_cr=$ac_cr
15647 fi
15648
15649 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15650 _ACEOF
15651
15652 # Create commands to substitute file output variables.
15653 {
15654   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15655   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15656   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15657   echo "_ACAWK" &&
15658   echo "_ACEOF"
15659 } >conf$$files.sh &&
15660 . ./conf$$files.sh ||
15661   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15662 rm -f conf$$files.sh
15663
15664 {
15665   echo "cat >conf$$subs.awk <<_ACEOF" &&
15666   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15667   echo "_ACEOF"
15668 } >conf$$subs.sh ||
15669   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15670 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15671 ac_delim='%!_!# '
15672 for ac_last_try in false false false false false :; do
15673   . ./conf$$subs.sh ||
15674     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15675
15676   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15677   if test $ac_delim_n = $ac_delim_num; then
15678     break
15679   elif $ac_last_try; then
15680     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15681   else
15682     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15683   fi
15684 done
15685 rm -f conf$$subs.sh
15686
15687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15688 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15689 _ACEOF
15690 sed -n '
15691 h
15692 s/^/S["/; s/!.*/"]=/
15693 p
15694 g
15695 s/^[^!]*!//
15696 :repl
15697 t repl
15698 s/'"$ac_delim"'$//
15699 t delim
15700 :nl
15701 h
15702 s/\(.\{148\}\).*/\1/
15703 t more1
15704 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15705 p
15706 n
15707 b repl
15708 :more1
15709 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15710 p
15711 g
15712 s/.\{148\}//
15713 t nl
15714 :delim
15715 h
15716 s/\(.\{148\}\).*/\1/
15717 t more2
15718 s/["\\]/\\&/g; s/^/"/; s/$/"/
15719 p
15720 b
15721 :more2
15722 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15723 p
15724 g
15725 s/.\{148\}//
15726 t delim
15727 ' <conf$$subs.awk | sed '
15728 /^[^""]/{
15729   N
15730   s/\n//
15731 }
15732 ' >>$CONFIG_STATUS || ac_write_fail=1
15733 rm -f conf$$subs.awk
15734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15735 _ACAWK
15736 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15737   for (key in S) S_is_set[key] = 1
15738   FS = "\a"
15739   \$ac_cs_awk_pipe_init
15740 }
15741 {
15742   line = $ 0
15743   nfields = split(line, field, "@")
15744   substed = 0
15745   len = length(field[1])
15746   for (i = 2; i < nfields; i++) {
15747     key = field[i]
15748     keylen = length(key)
15749     if (S_is_set[key]) {
15750       value = S[key]
15751       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15752       len += length(value) + length(field[++i])
15753       substed = 1
15754     } else
15755       len += 1 + keylen
15756   }
15757   if (nfields == 3 && !substed) {
15758     key = field[2]
15759     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15760       \$ac_cs_awk_read_file
15761       next
15762     }
15763   }
15764   print line
15765 }
15766 \$ac_cs_awk_pipe_fini
15767 _ACAWK
15768 _ACEOF
15769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15770 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15771   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15772 else
15773   cat
15774 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15775   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15776 _ACEOF
15777
15778 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15779 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15780 # trailing colons and then remove the whole line if VPATH becomes empty
15781 # (actually we leave an empty line to preserve line numbers).
15782 if test "x$srcdir" = x.; then
15783   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15784 s/:*\$(srcdir):*/:/
15785 s/:*\${srcdir}:*/:/
15786 s/:*@srcdir@:*/:/
15787 s/^\([^=]*=[     ]*\):*/\1/
15788 s/:*$//
15789 s/^[^=]*=[       ]*$//
15790 }'
15791 fi
15792
15793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15794 fi # test -n "$CONFIG_FILES"
15795
15796
15797 eval set X "  :F $CONFIG_FILES      "
15798 shift
15799 for ac_tag
15800 do
15801   case $ac_tag in
15802   :[FHLC]) ac_mode=$ac_tag; continue;;
15803   esac
15804   case $ac_mode$ac_tag in
15805   :[FHL]*:*);;
15806   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15807   :[FH]-) ac_tag=-:-;;
15808   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15809   esac
15810   ac_save_IFS=$IFS
15811   IFS=:
15812   set x $ac_tag
15813   IFS=$ac_save_IFS
15814   shift
15815   ac_file=$1
15816   shift
15817
15818   case $ac_mode in
15819   :L) ac_source=$1;;
15820   :[FH])
15821     ac_file_inputs=
15822     for ac_f
15823     do
15824       case $ac_f in
15825       -) ac_f="$tmp/stdin";;
15826       *) # Look for the file first in the build tree, then in the source tree
15827          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15828          # because $ac_f cannot contain `:'.
15829          test -f "$ac_f" ||
15830            case $ac_f in
15831            [\\/$]*) false;;
15832            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15833            esac ||
15834            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15835       esac
15836       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15837       as_fn_append ac_file_inputs " '$ac_f'"
15838     done
15839
15840     # Let's still pretend it is `configure' which instantiates (i.e., don't
15841     # use $as_me), people would be surprised to read:
15842     #    /* config.h.  Generated by config.status.  */
15843     configure_input='Generated from '`
15844           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15845         `' by configure.'
15846     if test x"$ac_file" != x-; then
15847       configure_input="$ac_file.  $configure_input"
15848       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15849 $as_echo "$as_me: creating $ac_file" >&6;}
15850     fi
15851     # Neutralize special characters interpreted by sed in replacement strings.
15852     case $configure_input in #(
15853     *\&* | *\|* | *\\* )
15854        ac_sed_conf_input=`$as_echo "$configure_input" |
15855        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15856     *) ac_sed_conf_input=$configure_input;;
15857     esac
15858
15859     case $ac_tag in
15860     *:-:* | *:-) cat >"$tmp/stdin" \
15861       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15862     esac
15863     ;;
15864   esac
15865
15866   ac_dir=`$as_dirname -- "$ac_file" ||
15867 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15868          X"$ac_file" : 'X\(//\)[^/]' \| \
15869          X"$ac_file" : 'X\(//\)$' \| \
15870          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15871 $as_echo X"$ac_file" |
15872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15873             s//\1/
15874             q
15875           }
15876           /^X\(\/\/\)[^/].*/{
15877             s//\1/
15878             q
15879           }
15880           /^X\(\/\/\)$/{
15881             s//\1/
15882             q
15883           }
15884           /^X\(\/\).*/{
15885             s//\1/
15886             q
15887           }
15888           s/.*/./; q'`
15889   as_dir="$ac_dir"; as_fn_mkdir_p
15890   ac_builddir=.
15891
15892 case "$ac_dir" in
15893 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15894 *)
15895   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15896   # A ".." for each directory in $ac_dir_suffix.
15897   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15898   case $ac_top_builddir_sub in
15899   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15900   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15901   esac ;;
15902 esac
15903 ac_abs_top_builddir=$ac_pwd
15904 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15905 # for backward compatibility:
15906 ac_top_builddir=$ac_top_build_prefix
15907
15908 case $srcdir in
15909   .)  # We are building in place.
15910     ac_srcdir=.
15911     ac_top_srcdir=$ac_top_builddir_sub
15912     ac_abs_top_srcdir=$ac_pwd ;;
15913   [\\/]* | ?:[\\/]* )  # Absolute name.
15914     ac_srcdir=$srcdir$ac_dir_suffix;
15915     ac_top_srcdir=$srcdir
15916     ac_abs_top_srcdir=$srcdir ;;
15917   *) # Relative name.
15918     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15919     ac_top_srcdir=$ac_top_build_prefix$srcdir
15920     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15921 esac
15922 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15923
15924
15925   case $ac_mode in
15926   :F)
15927   #
15928   # CONFIG_FILE
15929   #
15930
15931   case $INSTALL in
15932   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15933   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15934   esac
15935 _ACEOF
15936
15937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15938 # If the template does not know about datarootdir, expand it.
15939 # FIXME: This hack should be removed a few years after 2.60.
15940 ac_datarootdir_hack=; ac_datarootdir_seen=
15941 ac_sed_dataroot='
15942 /datarootdir/ {
15943   p
15944   q
15945 }
15946 /@datadir@/p
15947 /@docdir@/p
15948 /@infodir@/p
15949 /@localedir@/p
15950 /@mandir@/p'
15951 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15952 *datarootdir*) ac_datarootdir_seen=yes;;
15953 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15954   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15955 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15956 _ACEOF
15957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15958   ac_datarootdir_hack='
15959   s&@datadir@&$datadir&g
15960   s&@docdir@&$docdir&g
15961   s&@infodir@&$infodir&g
15962   s&@localedir@&$localedir&g
15963   s&@mandir@&$mandir&g
15964   s&\\\${datarootdir}&$datarootdir&g' ;;
15965 esac
15966 _ACEOF
15967
15968 # Neutralize VPATH when `$srcdir' = `.'.
15969 # Shell code in configure.ac might set extrasub.
15970 # FIXME: do we really want to maintain this feature?
15971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15972 ac_sed_extra="$ac_vpsub
15973 $extrasub
15974 _ACEOF
15975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15976 :t
15977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15978 s|@configure_input@|$ac_sed_conf_input|;t t
15979 s&@top_builddir@&$ac_top_builddir_sub&;t t
15980 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15981 s&@srcdir@&$ac_srcdir&;t t
15982 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15983 s&@top_srcdir@&$ac_top_srcdir&;t t
15984 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15985 s&@builddir@&$ac_builddir&;t t
15986 s&@abs_builddir@&$ac_abs_builddir&;t t
15987 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15988 s&@INSTALL@&$ac_INSTALL&;t t
15989 $ac_datarootdir_hack
15990 "
15991 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15992 if $ac_cs_awk_getline; then
15993   $AWK -f "$tmp/subs.awk"
15994 else
15995   $AWK -f "$tmp/subs.awk" | $SHELL
15996 fi >$tmp/out \
15997   || as_fn_error "could not create $ac_file" "$LINENO" 5
15998
15999 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16000   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16001   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16002   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16003 which seems to be undefined.  Please make sure it is defined." >&5
16004 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16005 which seems to be undefined.  Please make sure it is defined." >&2;}
16006
16007   rm -f "$tmp/stdin"
16008   case $ac_file in
16009   -) cat "$tmp/out" && rm -f "$tmp/out";;
16010   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16011   esac \
16012   || as_fn_error "could not create $ac_file" "$LINENO" 5
16013  ;;
16014
16015
16016
16017   esac
16018
16019
16020   case $ac_file$ac_mode in
16021     "Makefile":F) sed "$extrasub_build" Makefile |
16022    sed "$extrasub_host" |
16023    sed "$extrasub_target" > mf$$
16024    mv -f mf$$ Makefile ;;
16025
16026   esac
16027 done # for ac_tag
16028
16029
16030 as_fn_exit 0
16031 _ACEOF
16032 ac_clean_files=$ac_clean_files_save
16033
16034 test $ac_write_fail = 0 ||
16035   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16036
16037
16038 # configure is writing to config.log, and then calls config.status.
16039 # config.status does its own redirection, appending to config.log.
16040 # Unfortunately, on DOS this fails, as config.log is still kept open
16041 # by configure, so config.status won't be able to write to it; its
16042 # output is simply discarded.  So we exec the FD to /dev/null,
16043 # effectively closing config.log, so it can be properly (re)opened and
16044 # appended to by config.status.  When coming back to configure, we
16045 # need to make the FD available again.
16046 if test "$no_create" != yes; then
16047   ac_cs_success=:
16048   ac_config_status_args=
16049   test "$silent" = yes &&
16050     ac_config_status_args="$ac_config_status_args --quiet"
16051   exec 5>/dev/null
16052   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16053   exec 5>>config.log
16054   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16055   # would make configure fail if this is the last instruction.
16056   $ac_cs_success || as_fn_exit $?
16057 fi
16058 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16059   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16060 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16061 fi
16062