Sync with binutils: Support the PGO build for binutils+gdb
[platform/upstream/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GDC_FOR_TARGET
617 GOC_FOR_TARGET
618 GFORTRAN_FOR_TARGET
619 GCC_FOR_TARGET
620 CXX_FOR_TARGET
621 CC_FOR_TARGET
622 RANLIB_PLUGIN_OPTION
623 AR_PLUGIN_OPTION
624 GDCFLAGS
625 READELF
626 OTOOL
627 OBJDUMP
628 OBJCOPY
629 WINDMC
630 WINDRES
631 STRIP
632 RANLIB
633 NM
634 LIPO
635 LD
636 DSYMUTIL
637 DLLTOOL
638 AS
639 AR
640 RUNTEST
641 EXPECT
642 MAKEINFO
643 FLEX
644 LEX
645 M4
646 BISON
647 YACC
648 WINDRES_FOR_BUILD
649 WINDMC_FOR_BUILD
650 RANLIB_FOR_BUILD
651 NM_FOR_BUILD
652 LD_FOR_BUILD
653 LDFLAGS_FOR_BUILD
654 GDC_FOR_BUILD
655 GOC_FOR_BUILD
656 GFORTRAN_FOR_BUILD
657 DSYMUTIL_FOR_BUILD
658 DLLTOOL_FOR_BUILD
659 CXX_FOR_BUILD
660 CXXFLAGS_FOR_BUILD
661 CPPFLAGS_FOR_BUILD
662 CPP_FOR_BUILD
663 CFLAGS_FOR_BUILD
664 CC_FOR_BUILD
665 AS_FOR_BUILD
666 AR_FOR_BUILD
667 target_configdirs
668 configdirs
669 build_configdirs
670 INSTALL_GDB_TK
671 GDB_TK
672 CONFIGURE_GDB_TK
673 build_tooldir
674 tooldir
675 GCC_SHLIB_SUBDIR
676 RPATH_ENVVAR
677 target_configargs
678 host_configargs
679 build_configargs
680 BUILD_CONFIG
681 LDFLAGS_FOR_TARGET
682 CXXFLAGS_FOR_TARGET
683 CFLAGS_FOR_TARGET
684 DEBUG_PREFIX_CFLAGS_FOR_TARGET
685 SYSROOT_CFLAGS_FOR_TARGET
686 get_gcc_base_ver
687 extra_host_zlib_configure_flags
688 extra_host_libiberty_configure_flags
689 stage1_languages
690 host_shared
691 extra_linker_plugin_flags
692 extra_linker_plugin_configure_flags
693 islinc
694 isllibs
695 poststage1_ldflags
696 poststage1_libs
697 stage1_ldflags
698 stage1_libs
699 extra_isl_gmp_configure_flags
700 extra_mpc_mpfr_configure_flags
701 extra_mpc_gmp_configure_flags
702 extra_mpfr_configure_flags
703 gmpinc
704 gmplibs
705 PGO_BUILD_LTO_CFLAGS
706 PGO_BUILD_USE_CFLAGS
707 PGO_BUILD_GEN_CFLAGS
708 HAVE_CXX11_FOR_BUILD
709 HAVE_CXX11
710 do_compare
711 GDC
712 GNATMAKE
713 GNATBIND
714 ac_ct_CXX
715 CXXFLAGS
716 CXX
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 extra_liboffloadmic_configure_flags
725 target_subdir
726 host_subdir
727 build_subdir
728 build_libsubdir
729 AWK
730 SED
731 LN_S
732 LN
733 INSTALL_DATA
734 INSTALL_SCRIPT
735 INSTALL_PROGRAM
736 target_os
737 target_vendor
738 target_cpu
739 target
740 host_os
741 host_vendor
742 host_cpu
743 host
744 target_noncanonical
745 host_noncanonical
746 build_noncanonical
747 build_os
748 build_vendor
749 build_cpu
750 build
751 TOPLEVEL_CONFIGURE_ARGUMENTS
752 target_alias
753 host_alias
754 build_alias
755 LIBS
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 DEFS
760 mandir
761 localedir
762 libdir
763 psdir
764 pdfdir
765 dvidir
766 htmldir
767 infodir
768 docdir
769 oldincludedir
770 includedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL'
790 ac_subst_files='serialization_dependencies
791 host_makefile_frag
792 target_makefile_frag
793 alphaieee_frag
794 ospace_frag'
795 ac_user_opts='
796 enable_option_checking
797 with_build_libsubdir
798 with_system_zlib
799 enable_as_accelerator_for
800 enable_offload_targets
801 enable_offload_defaulted
802 enable_gold
803 enable_ld
804 enable_compressed_debug_sections
805 enable_libquadmath
806 enable_libquadmath_support
807 enable_libada
808 enable_libssp
809 enable_libstdcxx
810 enable_liboffloadmic
811 enable_bootstrap
812 enable_pgo_build
813 with_mpc
814 with_mpc_include
815 with_mpc_lib
816 with_mpfr_dir
817 with_mpfr
818 with_mpfr_include
819 with_mpfr_lib
820 with_gmp_dir
821 with_gmp
822 with_gmp_include
823 with_gmp_lib
824 with_stage1_libs
825 with_static_standard_libraries
826 with_stage1_ldflags
827 with_boot_libs
828 with_boot_ldflags
829 with_isl
830 with_isl_include
831 with_isl_lib
832 enable_isl_version_check
833 enable_lto
834 enable_linker_plugin_configure_flags
835 enable_linker_plugin_flags
836 enable_host_shared
837 enable_stage1_languages
838 enable_objc_gc
839 with_target_bdw_gc
840 with_target_bdw_gc_include
841 with_target_bdw_gc_lib
842 with_gcc_major_version_only
843 with_build_sysroot
844 with_debug_prefix_map
845 with_build_config
846 enable_vtable_verify
847 enable_serial_configure
848 with_build_time_tools
849 enable_maintainer_mode
850 enable_stage1_checking
851 enable_werror
852 '
853       ac_precious_vars='build_alias
854 host_alias
855 target_alias
856 CC
857 CFLAGS
858 LDFLAGS
859 LIBS
860 CPPFLAGS
861 CXX
862 CXXFLAGS
863 CCC
864 build_configargs
865 host_configargs
866 target_configargs
867 AR
868 AS
869 DLLTOOL
870 DSYMUTIL
871 LD
872 LIPO
873 NM
874 RANLIB
875 STRIP
876 WINDRES
877 WINDMC
878 OBJCOPY
879 OBJDUMP
880 OTOOL
881 READELF
882 CC_FOR_TARGET
883 CXX_FOR_TARGET
884 GCC_FOR_TARGET
885 GFORTRAN_FOR_TARGET
886 GOC_FOR_TARGET
887 GDC_FOR_TARGET
888 AR_FOR_TARGET
889 AS_FOR_TARGET
890 DLLTOOL_FOR_TARGET
891 DSYMUTIL_FOR_TARGET
892 LD_FOR_TARGET
893 LIPO_FOR_TARGET
894 NM_FOR_TARGET
895 OBJCOPY_FOR_TARGET
896 OBJDUMP_FOR_TARGET
897 OTOOL_FOR_TARGET
898 RANLIB_FOR_TARGET
899 READELF_FOR_TARGET
900 STRIP_FOR_TARGET
901 WINDRES_FOR_TARGET
902 WINDMC_FOR_TARGET'
903
904
905 # Initialize some variables set by options.
906 ac_init_help=
907 ac_init_version=false
908 ac_unrecognized_opts=
909 ac_unrecognized_sep=
910 # The variables have the same names as the options, with
911 # dashes changed to underlines.
912 cache_file=/dev/null
913 exec_prefix=NONE
914 no_create=
915 no_recursion=
916 prefix=NONE
917 program_prefix=NONE
918 program_suffix=NONE
919 program_transform_name=s,x,x,
920 silent=
921 site=
922 srcdir=
923 verbose=
924 x_includes=NONE
925 x_libraries=NONE
926
927 # Installation directory options.
928 # These are left unexpanded so users can "make install exec_prefix=/foo"
929 # and all the variables that are supposed to be based on exec_prefix
930 # by default will actually change.
931 # Use braces instead of parens because sh, perl, etc. also accept them.
932 # (The list follows the same order as the GNU Coding Standards.)
933 bindir='${exec_prefix}/bin'
934 sbindir='${exec_prefix}/sbin'
935 libexecdir='${exec_prefix}/libexec'
936 datarootdir='${prefix}/share'
937 datadir='${datarootdir}'
938 sysconfdir='${prefix}/etc'
939 sharedstatedir='${prefix}/com'
940 localstatedir='${prefix}/var'
941 includedir='${prefix}/include'
942 oldincludedir='/usr/include'
943 docdir='${datarootdir}/doc/${PACKAGE}'
944 infodir='${datarootdir}/info'
945 htmldir='${docdir}'
946 dvidir='${docdir}'
947 pdfdir='${docdir}'
948 psdir='${docdir}'
949 libdir='${exec_prefix}/lib'
950 localedir='${datarootdir}/locale'
951 mandir='${datarootdir}/man'
952
953 ac_prev=
954 ac_dashdash=
955 for ac_option
956 do
957   # If the previous option needs an argument, assign it.
958   if test -n "$ac_prev"; then
959     eval $ac_prev=\$ac_option
960     ac_prev=
961     continue
962   fi
963
964   case $ac_option in
965   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966   *=)   ac_optarg= ;;
967   *)    ac_optarg=yes ;;
968   esac
969
970   # Accept the important Cygnus configure options, so we can diagnose typos.
971
972   case $ac_dashdash$ac_option in
973   --)
974     ac_dashdash=yes ;;
975
976   -bindir | --bindir | --bindi | --bind | --bin | --bi)
977     ac_prev=bindir ;;
978   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979     bindir=$ac_optarg ;;
980
981   -build | --build | --buil | --bui | --bu)
982     ac_prev=build_alias ;;
983   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984     build_alias=$ac_optarg ;;
985
986   -cache-file | --cache-file | --cache-fil | --cache-fi \
987   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988     ac_prev=cache_file ;;
989   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991     cache_file=$ac_optarg ;;
992
993   --config-cache | -C)
994     cache_file=config.cache ;;
995
996   -datadir | --datadir | --datadi | --datad)
997     ac_prev=datadir ;;
998   -datadir=* | --datadir=* | --datadi=* | --datad=*)
999     datadir=$ac_optarg ;;
1000
1001   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002   | --dataroo | --dataro | --datar)
1003     ac_prev=datarootdir ;;
1004   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006     datarootdir=$ac_optarg ;;
1007
1008   -disable-* | --disable-*)
1009     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010     # Reject names that are not valid shell variable names.
1011     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012       as_fn_error $? "invalid feature name: $ac_useropt"
1013     ac_useropt_orig=$ac_useropt
1014     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015     case $ac_user_opts in
1016       *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020          ac_unrecognized_sep=', ';;
1021     esac
1022     eval enable_$ac_useropt=no ;;
1023
1024   -docdir | --docdir | --docdi | --doc | --do)
1025     ac_prev=docdir ;;
1026   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027     docdir=$ac_optarg ;;
1028
1029   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030     ac_prev=dvidir ;;
1031   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032     dvidir=$ac_optarg ;;
1033
1034   -enable-* | --enable-*)
1035     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036     # Reject names that are not valid shell variable names.
1037     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038       as_fn_error $? "invalid feature name: $ac_useropt"
1039     ac_useropt_orig=$ac_useropt
1040     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041     case $ac_user_opts in
1042       *"
1043 "enable_$ac_useropt"
1044 "*) ;;
1045       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046          ac_unrecognized_sep=', ';;
1047     esac
1048     eval enable_$ac_useropt=\$ac_optarg ;;
1049
1050   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052   | --exec | --exe | --ex)
1053     ac_prev=exec_prefix ;;
1054   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056   | --exec=* | --exe=* | --ex=*)
1057     exec_prefix=$ac_optarg ;;
1058
1059   -gas | --gas | --ga | --g)
1060     # Obsolete; use --with-gas.
1061     with_gas=yes ;;
1062
1063   -help | --help | --hel | --he | -h)
1064     ac_init_help=long ;;
1065   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066     ac_init_help=recursive ;;
1067   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068     ac_init_help=short ;;
1069
1070   -host | --host | --hos | --ho)
1071     ac_prev=host_alias ;;
1072   -host=* | --host=* | --hos=* | --ho=*)
1073     host_alias=$ac_optarg ;;
1074
1075   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076     ac_prev=htmldir ;;
1077   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078   | --ht=*)
1079     htmldir=$ac_optarg ;;
1080
1081   -includedir | --includedir | --includedi | --included | --include \
1082   | --includ | --inclu | --incl | --inc)
1083     ac_prev=includedir ;;
1084   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085   | --includ=* | --inclu=* | --incl=* | --inc=*)
1086     includedir=$ac_optarg ;;
1087
1088   -infodir | --infodir | --infodi | --infod | --info | --inf)
1089     ac_prev=infodir ;;
1090   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091     infodir=$ac_optarg ;;
1092
1093   -libdir | --libdir | --libdi | --libd)
1094     ac_prev=libdir ;;
1095   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096     libdir=$ac_optarg ;;
1097
1098   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099   | --libexe | --libex | --libe)
1100     ac_prev=libexecdir ;;
1101   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102   | --libexe=* | --libex=* | --libe=*)
1103     libexecdir=$ac_optarg ;;
1104
1105   -localedir | --localedir | --localedi | --localed | --locale)
1106     ac_prev=localedir ;;
1107   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108     localedir=$ac_optarg ;;
1109
1110   -localstatedir | --localstatedir | --localstatedi | --localstated \
1111   | --localstate | --localstat | --localsta | --localst | --locals)
1112     ac_prev=localstatedir ;;
1113   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115     localstatedir=$ac_optarg ;;
1116
1117   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118     ac_prev=mandir ;;
1119   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120     mandir=$ac_optarg ;;
1121
1122   -nfp | --nfp | --nf)
1123     # Obsolete; use --without-fp.
1124     with_fp=no ;;
1125
1126   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127   | --no-cr | --no-c | -n)
1128     no_create=yes ;;
1129
1130   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132     no_recursion=yes ;;
1133
1134   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136   | --oldin | --oldi | --old | --ol | --o)
1137     ac_prev=oldincludedir ;;
1138   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141     oldincludedir=$ac_optarg ;;
1142
1143   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144     ac_prev=prefix ;;
1145   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146     prefix=$ac_optarg ;;
1147
1148   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149   | --program-pre | --program-pr | --program-p)
1150     ac_prev=program_prefix ;;
1151   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153     program_prefix=$ac_optarg ;;
1154
1155   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156   | --program-suf | --program-su | --program-s)
1157     ac_prev=program_suffix ;;
1158   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160     program_suffix=$ac_optarg ;;
1161
1162   -program-transform-name | --program-transform-name \
1163   | --program-transform-nam | --program-transform-na \
1164   | --program-transform-n | --program-transform- \
1165   | --program-transform | --program-transfor \
1166   | --program-transfo | --program-transf \
1167   | --program-trans | --program-tran \
1168   | --progr-tra | --program-tr | --program-t)
1169     ac_prev=program_transform_name ;;
1170   -program-transform-name=* | --program-transform-name=* \
1171   | --program-transform-nam=* | --program-transform-na=* \
1172   | --program-transform-n=* | --program-transform-=* \
1173   | --program-transform=* | --program-transfor=* \
1174   | --program-transfo=* | --program-transf=* \
1175   | --program-trans=* | --program-tran=* \
1176   | --progr-tra=* | --program-tr=* | --program-t=*)
1177     program_transform_name=$ac_optarg ;;
1178
1179   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180     ac_prev=pdfdir ;;
1181   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182     pdfdir=$ac_optarg ;;
1183
1184   -psdir | --psdir | --psdi | --psd | --ps)
1185     ac_prev=psdir ;;
1186   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187     psdir=$ac_optarg ;;
1188
1189   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190   | -silent | --silent | --silen | --sile | --sil)
1191     silent=yes ;;
1192
1193   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194     ac_prev=sbindir ;;
1195   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196   | --sbi=* | --sb=*)
1197     sbindir=$ac_optarg ;;
1198
1199   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201   | --sharedst | --shareds | --shared | --share | --shar \
1202   | --sha | --sh)
1203     ac_prev=sharedstatedir ;;
1204   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207   | --sha=* | --sh=*)
1208     sharedstatedir=$ac_optarg ;;
1209
1210   -site | --site | --sit)
1211     ac_prev=site ;;
1212   -site=* | --site=* | --sit=*)
1213     site=$ac_optarg ;;
1214
1215   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216     ac_prev=srcdir ;;
1217   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218     srcdir=$ac_optarg ;;
1219
1220   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221   | --syscon | --sysco | --sysc | --sys | --sy)
1222     ac_prev=sysconfdir ;;
1223   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225     sysconfdir=$ac_optarg ;;
1226
1227   -target | --target | --targe | --targ | --tar | --ta | --t)
1228     ac_prev=target_alias ;;
1229   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230     target_alias=$ac_optarg ;;
1231
1232   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233     verbose=yes ;;
1234
1235   -version | --version | --versio | --versi | --vers | -V)
1236     ac_init_version=: ;;
1237
1238   -with-* | --with-*)
1239     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240     # Reject names that are not valid shell variable names.
1241     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242       as_fn_error $? "invalid package name: $ac_useropt"
1243     ac_useropt_orig=$ac_useropt
1244     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245     case $ac_user_opts in
1246       *"
1247 "with_$ac_useropt"
1248 "*) ;;
1249       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250          ac_unrecognized_sep=', ';;
1251     esac
1252     eval with_$ac_useropt=\$ac_optarg ;;
1253
1254   -without-* | --without-*)
1255     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256     # Reject names that are not valid shell variable names.
1257     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258       as_fn_error $? "invalid package name: $ac_useropt"
1259     ac_useropt_orig=$ac_useropt
1260     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261     case $ac_user_opts in
1262       *"
1263 "with_$ac_useropt"
1264 "*) ;;
1265       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1266          ac_unrecognized_sep=', ';;
1267     esac
1268     eval with_$ac_useropt=no ;;
1269
1270   --x)
1271     # Obsolete; use --with-x.
1272     with_x=yes ;;
1273
1274   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275   | --x-incl | --x-inc | --x-in | --x-i)
1276     ac_prev=x_includes ;;
1277   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1279     x_includes=$ac_optarg ;;
1280
1281   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283     ac_prev=x_libraries ;;
1284   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1286     x_libraries=$ac_optarg ;;
1287
1288   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1289 Try \`$0 --help' for more information"
1290     ;;
1291
1292   *=*)
1293     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1294     # Reject names that are not valid shell variable names.
1295     case $ac_envvar in #(
1296       '' | [0-9]* | *[!_$as_cr_alnum]* )
1297       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1298     esac
1299     eval $ac_envvar=\$ac_optarg
1300     export $ac_envvar ;;
1301
1302   *)
1303     # FIXME: should be removed in autoconf 3.0.
1304     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1305     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1307     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308     ;;
1309
1310   esac
1311 done
1312
1313 if test -n "$ac_prev"; then
1314   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1315   as_fn_error $? "missing argument to $ac_option"
1316 fi
1317
1318 if test -n "$ac_unrecognized_opts"; then
1319   case $enable_option_checking in
1320     no) ;;
1321     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1322     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323   esac
1324 fi
1325
1326 # Check all directory arguments for consistency.
1327 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328                 datadir sysconfdir sharedstatedir localstatedir includedir \
1329                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330                 libdir localedir mandir
1331 do
1332   eval ac_val=\$$ac_var
1333   # Remove trailing slashes.
1334   case $ac_val in
1335     */ )
1336       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1337       eval $ac_var=\$ac_val;;
1338   esac
1339   # Be sure to have absolute directory names.
1340   case $ac_val in
1341     [\\/$]* | ?:[\\/]* )  continue;;
1342     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343   esac
1344   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1345 done
1346
1347 # There might be people who depend on the old broken behavior: `$host'
1348 # used to hold the argument of --host etc.
1349 # FIXME: To remove some day.
1350 build=$build_alias
1351 host=$host_alias
1352 target=$target_alias
1353
1354 # FIXME: To remove some day.
1355 if test "x$host_alias" != x; then
1356   if test "x$build_alias" = x; then
1357     cross_compiling=maybe
1358   elif test "x$build_alias" != "x$host_alias"; then
1359     cross_compiling=yes
1360   fi
1361 fi
1362
1363 ac_tool_prefix=
1364 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366 test "$silent" = yes && exec 6>/dev/null
1367
1368
1369 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370 ac_ls_di=`ls -di .` &&
1371 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372   as_fn_error $? "working directory cannot be determined"
1373 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374   as_fn_error $? "pwd does not report name of working directory"
1375
1376
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379   ac_srcdir_defaulted=yes
1380   # Try the directory containing this script, then the parent directory.
1381   ac_confdir=`$as_dirname -- "$as_myself" ||
1382 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383          X"$as_myself" : 'X\(//\)[^/]' \| \
1384          X"$as_myself" : 'X\(//\)$' \| \
1385          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386 $as_echo X"$as_myself" |
1387     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388             s//\1/
1389             q
1390           }
1391           /^X\(\/\/\)[^/].*/{
1392             s//\1/
1393             q
1394           }
1395           /^X\(\/\/\)$/{
1396             s//\1/
1397             q
1398           }
1399           /^X\(\/\).*/{
1400             s//\1/
1401             q
1402           }
1403           s/.*/./; q'`
1404   srcdir=$ac_confdir
1405   if test ! -r "$srcdir/$ac_unique_file"; then
1406     srcdir=..
1407   fi
1408 else
1409   ac_srcdir_defaulted=no
1410 fi
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1414 fi
1415 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 ac_abs_confdir=`(
1417         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418         pwd)`
1419 # When building in place, set srcdir=.
1420 if test "$ac_abs_confdir" = "$ac_pwd"; then
1421   srcdir=.
1422 fi
1423 # Remove unnecessary trailing slashes from srcdir.
1424 # Double slashes in file names in object file debugging info
1425 # mess up M-x gdb in Emacs.
1426 case $srcdir in
1427 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 esac
1429 case $srcdir in
1430   *" "*)
1431     as_fn_error $? "path to source, $srcdir, contains spaces"
1432     ;;
1433 esac
1434 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1435
1436 for ac_var in $ac_precious_vars; do
1437   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438   eval ac_env_${ac_var}_value=\$${ac_var}
1439   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441 done
1442
1443 #
1444 # Report the --help message.
1445 #
1446 if test "$ac_init_help" = "long"; then
1447   # Omit some internal or obsolete options to make the list less imposing.
1448   # This message is too long to be a string in the A/UX 3.1 sh.
1449   cat <<_ACEOF
1450 \`configure' configures this package to adapt to many kinds of systems.
1451
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1453
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE.  See below for descriptions of some of the useful variables.
1456
1457 Defaults for the options are specified in brackets.
1458
1459 Configuration:
1460   -h, --help              display this help and exit
1461       --help=short        display options specific to this package
1462       --help=recursive    display the short help of all the included packages
1463   -V, --version           display version information and exit
1464   -q, --quiet, --silent   do not print \`checking ...' messages
1465       --cache-file=FILE   cache test results in FILE [disabled]
1466   -C, --config-cache      alias for \`--cache-file=config.cache'
1467   -n, --no-create         do not create output files
1468       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1469
1470 Installation directories:
1471   --prefix=PREFIX         install architecture-independent files in PREFIX
1472                           [$ac_default_prefix]
1473   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1474                           [PREFIX]
1475
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1480
1481 For better control, use the options below.
1482
1483 Fine tuning of the installation directories:
1484   --bindir=DIR            user executables [EPREFIX/bin]
1485   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1486   --libexecdir=DIR        program executables [EPREFIX/libexec]
1487   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1488   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1489   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1490   --libdir=DIR            object code libraries [EPREFIX/lib]
1491   --includedir=DIR        C header files [PREFIX/include]
1492   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1493   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1494   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1495   --infodir=DIR           info documentation [DATAROOTDIR/info]
1496   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1497   --mandir=DIR            man documentation [DATAROOTDIR/man]
1498   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1499   --htmldir=DIR           html documentation [DOCDIR]
1500   --dvidir=DIR            dvi documentation [DOCDIR]
1501   --pdfdir=DIR            pdf documentation [DOCDIR]
1502   --psdir=DIR             ps documentation [DOCDIR]
1503 _ACEOF
1504
1505   cat <<\_ACEOF
1506
1507 Program names:
1508   --program-prefix=PREFIX            prepend PREFIX to installed program names
1509   --program-suffix=SUFFIX            append SUFFIX to installed program names
1510   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1511
1512 System types:
1513   --build=BUILD     configure for building on BUILD [guessed]
1514   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1515   --target=TARGET   configure for building compilers for TARGET [HOST]
1516 _ACEOF
1517 fi
1518
1519 if test -n "$ac_init_help"; then
1520
1521   cat <<\_ACEOF
1522
1523 Optional Features:
1524   --disable-option-checking  ignore unrecognized --enable/--with options
1525   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1526   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1527   --enable-as-accelerator-for=ARG
1528                           build as offload target compiler. Specify offload
1529                           host triple by ARG
1530   --enable-offload-targets=LIST
1531                           enable offloading to devices from comma-separated
1532                           LIST of TARGET[=DIR]. Use optional path to find
1533                           offload target compiler during the build
1534   --enable-offload-defaulted
1535                 If enabled, configured but not installed offload compilers and
1536                 libgomp plugins are silently ignored.  Useful for distribution
1537                 compilers where those are in separate optional packages.
1538
1539   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1540   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1541   --enable-compressed-debug-sections={all,gas,gold,ld,none}
1542                           Enable compressed debug sections for gas, gold or ld
1543                           by default
1544   --disable-libquadmath   do not build libquadmath directory
1545   --disable-libquadmath-support
1546                           disable libquadmath support for Fortran
1547   --enable-libada         build libada directory
1548   --enable-libssp         build libssp directory
1549   --disable-libstdcxx     do not build libstdc++-v3 directory
1550   --enable-liboffloadmic=ARG
1551                           build liboffloadmic [ARG={no,host,target}]
1552   --enable-bootstrap      enable bootstrapping [yes if native build]
1553   --enable-pgo-build[=lto]
1554                           enable the PGO build
1555   --disable-isl-version-check
1556                           disable check for isl version
1557   --enable-lto            enable link time optimization support
1558   --enable-linker-plugin-configure-flags=FLAGS
1559                           additional flags for configuring linker plugins
1560                           [none]
1561   --enable-linker-plugin-flags=FLAGS
1562                           additional flags for configuring and building linker
1563                           plugins [none]
1564   --enable-host-shared    build host code as shared libraries
1565   --enable-stage1-languages[=all]
1566                           choose additional languages to build during stage1.
1567                           Mostly useful for compiler development
1568   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1569                           Objective-C runtime
1570   --enable-vtable-verify  Enable vtable verification feature
1571   --enable-serial-[{host,target,build}-]configure
1572                           force sequential configuration of sub-packages for
1573                           the host, target or build machine, or all
1574                           sub-packages
1575   --enable-maintainer-mode
1576                           enable make rules and dependencies not useful (and
1577                           sometimes confusing) to the casual installer
1578   --enable-stage1-checking[=all]
1579                           choose additional checking for stage1 of the
1580                           compiler
1581   --enable-werror         enable -Werror in bootstrap stage2 and later
1582
1583 Optional Packages:
1584   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1585   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1586   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1587   --with-system-zlib      use installed libz
1588   --with-mpc=PATH         specify prefix directory for installed MPC package.
1589                           Equivalent to --with-mpc-include=PATH/include plus
1590                           --with-mpc-lib=PATH/lib
1591   --with-mpc-include=PATH specify directory for installed MPC include files
1592   --with-mpc-lib=PATH     specify directory for the installed MPC library
1593   --with-mpfr-dir=PATH    this option has been REMOVED
1594   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1595                           Equivalent to --with-mpfr-include=PATH/include plus
1596                           --with-mpfr-lib=PATH/lib
1597   --with-mpfr-include=PATH
1598                           specify directory for installed MPFR include files
1599   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1600   --with-gmp-dir=PATH     this option has been REMOVED
1601   --with-gmp=PATH         specify prefix directory for the installed GMP
1602                           package. Equivalent to
1603                           --with-gmp-include=PATH/include plus
1604                           --with-gmp-lib=PATH/lib
1605   --with-gmp-include=PATH specify directory for installed GMP include files
1606   --with-gmp-lib=PATH     specify directory for the installed GMP library
1607   --with-stage1-libs=LIBS libraries for stage1
1608   --with-static-standard-libraries
1609                           use -static-libstdc++ and -static-libgcc
1610                           (default=auto)
1611   --with-stage1-ldflags=FLAGS
1612                           linker flags for stage1
1613   --with-boot-libs=LIBS   libraries for stage2 and later
1614   --with-boot-ldflags=FLAGS
1615                           linker flags for stage2 and later
1616   --with-isl=PATH         Specify prefix directory for the installed isl
1617                           package. Equivalent to
1618                           --with-isl-include=PATH/include plus
1619                           --with-isl-lib=PATH/lib
1620   --with-isl-include=PATH Specify directory for installed isl include files
1621   --with-isl-lib=PATH     Specify the directory for the installed isl library
1622   --with-target-bdw-gc=PATHLIST
1623                           specify prefix directory for installed bdw-gc
1624                           package. Equivalent to
1625                           --with-target-bdw-gc-include=PATH/include plus
1626                           --with-target-bdw-gc-lib=PATH/lib
1627   --with-target-bdw-gc-include=PATHLIST
1628                           specify directories for installed bdw-gc include
1629                           files
1630   --with-target-bdw-gc-lib=PATHLIST
1631                           specify directories for installed bdw-gc library
1632   --with-gcc-major-version-only
1633                           use only GCC major number in filesystem paths
1634   --with-build-sysroot=SYSROOT
1635                           use sysroot as the system root during the build
1636   --with-debug-prefix-map='A=B C=D ...'
1637                           map A to B, C to D ... in debug information
1638   --with-build-config='NAME NAME2...'
1639                           use config/NAME.mk build configuration
1640   --with-build-time-tools=PATH
1641                           use given path to find target tools during the build
1642
1643 Some influential environment variables:
1644   CC          C compiler command
1645   CFLAGS      C compiler flags
1646   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1647               nonstandard directory <lib dir>
1648   LIBS        libraries to pass to the linker, e.g. -l<library>
1649   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1650               you have headers in a nonstandard directory <include dir>
1651   CXX         C++ compiler command
1652   CXXFLAGS    C++ compiler flags
1653   build_configargs
1654               additional configure arguments for build directories
1655   host_configargs
1656               additional configure arguments for host directories
1657   target_configargs
1658               additional configure arguments for target directories
1659   AR          AR for the host
1660   AS          AS for the host
1661   DLLTOOL     DLLTOOL for the host
1662   DSYMUTIL    DSYMUTIL for the host
1663   LD          LD for the host
1664   LIPO        LIPO for the host
1665   NM          NM for the host
1666   RANLIB      RANLIB for the host
1667   STRIP       STRIP for the host
1668   WINDRES     WINDRES for the host
1669   WINDMC      WINDMC for the host
1670   OBJCOPY     OBJCOPY for the host
1671   OBJDUMP     OBJDUMP for the host
1672   OTOOL       OTOOL for the host
1673   READELF     READELF for the host
1674   CC_FOR_TARGET
1675               CC for the target
1676   CXX_FOR_TARGET
1677               CXX for the target
1678   GCC_FOR_TARGET
1679               GCC for the target
1680   GFORTRAN_FOR_TARGET
1681               GFORTRAN for the target
1682   GOC_FOR_TARGET
1683               GOC for the target
1684   GDC_FOR_TARGET
1685               GDC for the target
1686   AR_FOR_TARGET
1687               AR for the target
1688   AS_FOR_TARGET
1689               AS for the target
1690   DLLTOOL_FOR_TARGET
1691               DLLTOOL for the target
1692   DSYMUTIL_FOR_TARGET
1693               DSYMUTIL for the target
1694   LD_FOR_TARGET
1695               LD for the target
1696   LIPO_FOR_TARGET
1697               LIPO for the target
1698   NM_FOR_TARGET
1699               NM for the target
1700   OBJCOPY_FOR_TARGET
1701               OBJCOPY for the target
1702   OBJDUMP_FOR_TARGET
1703               OBJDUMP for the target
1704   OTOOL_FOR_TARGET
1705               OTOOL for the target
1706   RANLIB_FOR_TARGET
1707               RANLIB for the target
1708   READELF_FOR_TARGET
1709               READELF for the target
1710   STRIP_FOR_TARGET
1711               STRIP for the target
1712   WINDRES_FOR_TARGET
1713               WINDRES for the target
1714   WINDMC_FOR_TARGET
1715               WINDMC for the target
1716
1717 Use these variables to override the choices made by `configure' or to help
1718 it to find libraries and programs with nonstandard names/locations.
1719
1720 Report bugs to the package provider.
1721 _ACEOF
1722 ac_status=$?
1723 fi
1724
1725 if test "$ac_init_help" = "recursive"; then
1726   # If there are subdirs, report their specific --help.
1727   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1728     test -d "$ac_dir" ||
1729       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1730       continue
1731     ac_builddir=.
1732
1733 case "$ac_dir" in
1734 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735 *)
1736   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1737   # A ".." for each directory in $ac_dir_suffix.
1738   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1739   case $ac_top_builddir_sub in
1740   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1741   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1742   esac ;;
1743 esac
1744 ac_abs_top_builddir=$ac_pwd
1745 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1746 # for backward compatibility:
1747 ac_top_builddir=$ac_top_build_prefix
1748
1749 case $srcdir in
1750   .)  # We are building in place.
1751     ac_srcdir=.
1752     ac_top_srcdir=$ac_top_builddir_sub
1753     ac_abs_top_srcdir=$ac_pwd ;;
1754   [\\/]* | ?:[\\/]* )  # Absolute name.
1755     ac_srcdir=$srcdir$ac_dir_suffix;
1756     ac_top_srcdir=$srcdir
1757     ac_abs_top_srcdir=$srcdir ;;
1758   *) # Relative name.
1759     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1760     ac_top_srcdir=$ac_top_build_prefix$srcdir
1761     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1762 esac
1763 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1764
1765     cd "$ac_dir" || { ac_status=$?; continue; }
1766     # Check for guested configure.
1767     if test -f "$ac_srcdir/configure.gnu"; then
1768       echo &&
1769       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1770     elif test -f "$ac_srcdir/configure"; then
1771       echo &&
1772       $SHELL "$ac_srcdir/configure" --help=recursive
1773     else
1774       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1775     fi || ac_status=$?
1776     cd "$ac_pwd" || { ac_status=$?; break; }
1777   done
1778 fi
1779
1780 test -n "$ac_init_help" && exit $ac_status
1781 if $ac_init_version; then
1782   cat <<\_ACEOF
1783 configure
1784 generated by GNU Autoconf 2.69
1785
1786 Copyright (C) 2012 Free Software Foundation, Inc.
1787 This configure script is free software; the Free Software Foundation
1788 gives unlimited permission to copy, distribute and modify it.
1789 _ACEOF
1790   exit
1791 fi
1792
1793 ## ------------------------ ##
1794 ## Autoconf initialization. ##
1795 ## ------------------------ ##
1796
1797 # ac_fn_c_try_compile LINENO
1798 # --------------------------
1799 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_c_try_compile ()
1801 {
1802   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803   rm -f conftest.$ac_objext
1804   if { { ac_try="$ac_compile"
1805 case "(($ac_try" in
1806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807   *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811   (eval "$ac_compile") 2>conftest.err
1812   ac_status=$?
1813   if test -s conftest.err; then
1814     grep -v '^ *+' conftest.err >conftest.er1
1815     cat conftest.er1 >&5
1816     mv -f conftest.er1 conftest.err
1817   fi
1818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819   test $ac_status = 0; } && {
1820          test -z "$ac_c_werror_flag" ||
1821          test ! -s conftest.err
1822        } && test -s conftest.$ac_objext; then :
1823   ac_retval=0
1824 else
1825   $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828         ac_retval=1
1829 fi
1830   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831   as_fn_set_status $ac_retval
1832
1833 } # ac_fn_c_try_compile
1834
1835 # ac_fn_cxx_try_compile LINENO
1836 # ----------------------------
1837 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_cxx_try_compile ()
1839 {
1840   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841   rm -f conftest.$ac_objext
1842   if { { ac_try="$ac_compile"
1843 case "(($ac_try" in
1844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845   *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849   (eval "$ac_compile") 2>conftest.err
1850   ac_status=$?
1851   if test -s conftest.err; then
1852     grep -v '^ *+' conftest.err >conftest.er1
1853     cat conftest.er1 >&5
1854     mv -f conftest.er1 conftest.err
1855   fi
1856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857   test $ac_status = 0; } && {
1858          test -z "$ac_cxx_werror_flag" ||
1859          test ! -s conftest.err
1860        } && test -s conftest.$ac_objext; then :
1861   ac_retval=0
1862 else
1863   $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1865
1866         ac_retval=1
1867 fi
1868   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869   as_fn_set_status $ac_retval
1870
1871 } # ac_fn_cxx_try_compile
1872
1873 # ac_fn_cxx_try_link LINENO
1874 # -------------------------
1875 # Try to link conftest.$ac_ext, and return whether this succeeded.
1876 ac_fn_cxx_try_link ()
1877 {
1878   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879   rm -f conftest.$ac_objext conftest$ac_exeext
1880   if { { ac_try="$ac_link"
1881 case "(($ac_try" in
1882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883   *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887   (eval "$ac_link") 2>conftest.err
1888   ac_status=$?
1889   if test -s conftest.err; then
1890     grep -v '^ *+' conftest.err >conftest.er1
1891     cat conftest.er1 >&5
1892     mv -f conftest.er1 conftest.err
1893   fi
1894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895   test $ac_status = 0; } && {
1896          test -z "$ac_cxx_werror_flag" ||
1897          test ! -s conftest.err
1898        } && test -s conftest$ac_exeext && {
1899          test "$cross_compiling" = yes ||
1900          test -x conftest$ac_exeext
1901        }; then :
1902   ac_retval=0
1903 else
1904   $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1906
1907         ac_retval=1
1908 fi
1909   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1910   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1911   # interfere with the next link command; also delete a directory that is
1912   # left behind by Apple's compiler.  We do this before executing the actions.
1913   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915   as_fn_set_status $ac_retval
1916
1917 } # ac_fn_cxx_try_link
1918
1919 # ac_fn_c_try_link LINENO
1920 # -----------------------
1921 # Try to link conftest.$ac_ext, and return whether this succeeded.
1922 ac_fn_c_try_link ()
1923 {
1924   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925   rm -f conftest.$ac_objext conftest$ac_exeext
1926   if { { ac_try="$ac_link"
1927 case "(($ac_try" in
1928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929   *) ac_try_echo=$ac_try;;
1930 esac
1931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932 $as_echo "$ac_try_echo"; } >&5
1933   (eval "$ac_link") 2>conftest.err
1934   ac_status=$?
1935   if test -s conftest.err; then
1936     grep -v '^ *+' conftest.err >conftest.er1
1937     cat conftest.er1 >&5
1938     mv -f conftest.er1 conftest.err
1939   fi
1940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941   test $ac_status = 0; } && {
1942          test -z "$ac_c_werror_flag" ||
1943          test ! -s conftest.err
1944        } && test -s conftest$ac_exeext && {
1945          test "$cross_compiling" = yes ||
1946          test -x conftest$ac_exeext
1947        }; then :
1948   ac_retval=0
1949 else
1950   $as_echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1952
1953         ac_retval=1
1954 fi
1955   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1956   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1957   # interfere with the next link command; also delete a directory that is
1958   # left behind by Apple's compiler.  We do this before executing the actions.
1959   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1960   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961   as_fn_set_status $ac_retval
1962
1963 } # ac_fn_c_try_link
1964 cat >config.log <<_ACEOF
1965 This file contains any messages produced by compilers while
1966 running configure, to aid debugging if configure makes a mistake.
1967
1968 It was created by $as_me, which was
1969 generated by GNU Autoconf 2.69.  Invocation command line was
1970
1971   $ $0 $@
1972
1973 _ACEOF
1974 exec 5>>config.log
1975 {
1976 cat <<_ASUNAME
1977 ## --------- ##
1978 ## Platform. ##
1979 ## --------- ##
1980
1981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1986
1987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1988 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1989
1990 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1991 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1993 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1994 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1995 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1996 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1997
1998 _ASUNAME
1999
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 for as_dir in $PATH
2002 do
2003   IFS=$as_save_IFS
2004   test -z "$as_dir" && as_dir=.
2005     $as_echo "PATH: $as_dir"
2006   done
2007 IFS=$as_save_IFS
2008
2009 } >&5
2010
2011 cat >&5 <<_ACEOF
2012
2013
2014 ## ----------- ##
2015 ## Core tests. ##
2016 ## ----------- ##
2017
2018 _ACEOF
2019
2020
2021 # Keep a trace of the command line.
2022 # Strip out --no-create and --no-recursion so they do not pile up.
2023 # Strip out --silent because we don't want to record it for future runs.
2024 # Also quote any args containing shell meta-characters.
2025 # Make two passes to allow for proper duplicate-argument suppression.
2026 ac_configure_args=
2027 ac_configure_args0=
2028 ac_configure_args1=
2029 ac_must_keep_next=false
2030 for ac_pass in 1 2
2031 do
2032   for ac_arg
2033   do
2034     case $ac_arg in
2035     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2036     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2037     | -silent | --silent | --silen | --sile | --sil)
2038       continue ;;
2039     *\'*)
2040       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2041     esac
2042     case $ac_pass in
2043     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2044     2)
2045       as_fn_append ac_configure_args1 " '$ac_arg'"
2046       if test $ac_must_keep_next = true; then
2047         ac_must_keep_next=false # Got value, back to normal.
2048       else
2049         case $ac_arg in
2050           *=* | --config-cache | -C | -disable-* | --disable-* \
2051           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2052           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2053           | -with-* | --with-* | -without-* | --without-* | --x)
2054             case "$ac_configure_args0 " in
2055               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2056             esac
2057             ;;
2058           -* ) ac_must_keep_next=true ;;
2059         esac
2060       fi
2061       as_fn_append ac_configure_args " '$ac_arg'"
2062       ;;
2063     esac
2064   done
2065 done
2066 { ac_configure_args0=; unset ac_configure_args0;}
2067 { ac_configure_args1=; unset ac_configure_args1;}
2068
2069 # When interrupted or exit'd, cleanup temporary files, and complete
2070 # config.log.  We remove comments because anyway the quotes in there
2071 # would cause problems or look ugly.
2072 # WARNING: Use '\'' to represent an apostrophe within the trap.
2073 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2074 trap 'exit_status=$?
2075   # Save into config.log some information that might help in debugging.
2076   {
2077     echo
2078
2079     $as_echo "## ---------------- ##
2080 ## Cache variables. ##
2081 ## ---------------- ##"
2082     echo
2083     # The following way of writing the cache mishandles newlines in values,
2084 (
2085   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2086     eval ac_val=\$$ac_var
2087     case $ac_val in #(
2088     *${as_nl}*)
2089       case $ac_var in #(
2090       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2091 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2092       esac
2093       case $ac_var in #(
2094       _ | IFS | as_nl) ;; #(
2095       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2096       *) { eval $ac_var=; unset $ac_var;} ;;
2097       esac ;;
2098     esac
2099   done
2100   (set) 2>&1 |
2101     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2102     *${as_nl}ac_space=\ *)
2103       sed -n \
2104         "s/'\''/'\''\\\\'\'''\''/g;
2105           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2106       ;; #(
2107     *)
2108       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2109       ;;
2110     esac |
2111     sort
2112 )
2113     echo
2114
2115     $as_echo "## ----------------- ##
2116 ## Output variables. ##
2117 ## ----------------- ##"
2118     echo
2119     for ac_var in $ac_subst_vars
2120     do
2121       eval ac_val=\$$ac_var
2122       case $ac_val in
2123       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124       esac
2125       $as_echo "$ac_var='\''$ac_val'\''"
2126     done | sort
2127     echo
2128
2129     if test -n "$ac_subst_files"; then
2130       $as_echo "## ------------------- ##
2131 ## File substitutions. ##
2132 ## ------------------- ##"
2133       echo
2134       for ac_var in $ac_subst_files
2135       do
2136         eval ac_val=\$$ac_var
2137         case $ac_val in
2138         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2139         esac
2140         $as_echo "$ac_var='\''$ac_val'\''"
2141       done | sort
2142       echo
2143     fi
2144
2145     if test -s confdefs.h; then
2146       $as_echo "## ----------- ##
2147 ## confdefs.h. ##
2148 ## ----------- ##"
2149       echo
2150       cat confdefs.h
2151       echo
2152     fi
2153     test "$ac_signal" != 0 &&
2154       $as_echo "$as_me: caught signal $ac_signal"
2155     $as_echo "$as_me: exit $exit_status"
2156   } >&5
2157   rm -f core *.core core.conftest.* &&
2158     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2159     exit $exit_status
2160 ' 0
2161 for ac_signal in 1 2 13 15; do
2162   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2163 done
2164 ac_signal=0
2165
2166 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2167 rm -f -r conftest* confdefs.h
2168
2169 $as_echo "/* confdefs.h */" > confdefs.h
2170
2171 # Predefined preprocessor variables.
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_NAME "$PACKAGE_NAME"
2175 _ACEOF
2176
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2179 _ACEOF
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2183 _ACEOF
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_STRING "$PACKAGE_STRING"
2187 _ACEOF
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2191 _ACEOF
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_URL "$PACKAGE_URL"
2195 _ACEOF
2196
2197
2198 # Let the site file select an alternate cache file if it wants to.
2199 # Prefer an explicitly selected file to automatically selected ones.
2200 ac_site_file1=NONE
2201 ac_site_file2=NONE
2202 if test -n "$CONFIG_SITE"; then
2203   # We do not want a PATH search for config.site.
2204   case $CONFIG_SITE in #((
2205     -*)  ac_site_file1=./$CONFIG_SITE;;
2206     */*) ac_site_file1=$CONFIG_SITE;;
2207     *)   ac_site_file1=./$CONFIG_SITE;;
2208   esac
2209 elif test "x$prefix" != xNONE; then
2210   ac_site_file1=$prefix/share/config.site
2211   ac_site_file2=$prefix/etc/config.site
2212 else
2213   ac_site_file1=$ac_default_prefix/share/config.site
2214   ac_site_file2=$ac_default_prefix/etc/config.site
2215 fi
2216 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2217 do
2218   test "x$ac_site_file" = xNONE && continue
2219   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2220     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2221 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2222     sed 's/^/| /' "$ac_site_file" >&5
2223     . "$ac_site_file" \
2224       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2226 as_fn_error $? "failed to load site script $ac_site_file
2227 See \`config.log' for more details" "$LINENO" 5; }
2228   fi
2229 done
2230
2231 if test -r "$cache_file"; then
2232   # Some versions of bash will fail to source /dev/null (special files
2233   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2234   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2235     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2236 $as_echo "$as_me: loading cache $cache_file" >&6;}
2237     case $cache_file in
2238       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2239       *)                      . "./$cache_file";;
2240     esac
2241   fi
2242 else
2243   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2244 $as_echo "$as_me: creating cache $cache_file" >&6;}
2245   >$cache_file
2246 fi
2247
2248 # Check that the precious variables saved in the cache have kept the same
2249 # value.
2250 ac_cache_corrupted=false
2251 for ac_var in $ac_precious_vars; do
2252   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2253   eval ac_new_set=\$ac_env_${ac_var}_set
2254   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2255   eval ac_new_val=\$ac_env_${ac_var}_value
2256   case $ac_old_set,$ac_new_set in
2257     set,)
2258       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2259 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2260       ac_cache_corrupted=: ;;
2261     ,set)
2262       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2263 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2264       ac_cache_corrupted=: ;;
2265     ,);;
2266     *)
2267       if test "x$ac_old_val" != "x$ac_new_val"; then
2268         # differences in whitespace do not lead to failure.
2269         ac_old_val_w=`echo x $ac_old_val`
2270         ac_new_val_w=`echo x $ac_new_val`
2271         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2272           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2273 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2274           ac_cache_corrupted=:
2275         else
2276           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2277 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2278           eval $ac_var=\$ac_old_val
2279         fi
2280         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2281 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2282         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2283 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2284       fi;;
2285   esac
2286   # Pass precious variables to config.status.
2287   if test "$ac_new_set" = set; then
2288     case $ac_new_val in
2289     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2290     *) ac_arg=$ac_var=$ac_new_val ;;
2291     esac
2292     case " $ac_configure_args " in
2293       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2294       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2295     esac
2296   fi
2297 done
2298 if $ac_cache_corrupted; then
2299   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2301   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2302 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2303   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2304 fi
2305 ## -------------------- ##
2306 ## Main body of script. ##
2307 ## -------------------- ##
2308
2309 ac_ext=c
2310 ac_cpp='$CPP $CPPFLAGS'
2311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314
2315
2316
2317
2318
2319
2320
2321
2322 progname=$0
2323 # if PWD already has a value, it is probably wrong.
2324 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2325
2326 # Export original configure arguments for use by sub-configures.
2327 # Quote arguments with shell meta charatcers.
2328 TOPLEVEL_CONFIGURE_ARGUMENTS=
2329 set -- "$progname" "$@"
2330 for ac_arg
2331 do
2332   case "$ac_arg" in
2333   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2334     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2335     # if the argument is of the form -foo=baz, quote the baz part only
2336     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2337   *) ;;
2338   esac
2339   # Add the quoted argument to the list.
2340   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2341 done
2342 if test "$silent" = yes; then
2343   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2344 fi
2345 # Remove the initial space we just introduced and, as these will be
2346 # expanded by make, quote '$'.
2347 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2348
2349
2350 # Find the build, host, and target systems.
2351 ac_aux_dir=
2352 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2353   if test -f "$ac_dir/install-sh"; then
2354     ac_aux_dir=$ac_dir
2355     ac_install_sh="$ac_aux_dir/install-sh -c"
2356     break
2357   elif test -f "$ac_dir/install.sh"; then
2358     ac_aux_dir=$ac_dir
2359     ac_install_sh="$ac_aux_dir/install.sh -c"
2360     break
2361   elif test -f "$ac_dir/shtool"; then
2362     ac_aux_dir=$ac_dir
2363     ac_install_sh="$ac_aux_dir/shtool install -c"
2364     break
2365   fi
2366 done
2367 if test -z "$ac_aux_dir"; then
2368   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2369 fi
2370
2371 # These three variables are undocumented and unsupported,
2372 # and are intended to be withdrawn in a future Autoconf release.
2373 # They can cause serious problems if a builder's source tree is in a directory
2374 # whose full name contains unusual characters.
2375 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2376 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2377 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2378
2379
2380 # Make sure we can run config.sub.
2381 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2382   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2383
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2385 $as_echo_n "checking build system type... " >&6; }
2386 if ${ac_cv_build+:} false; then :
2387   $as_echo_n "(cached) " >&6
2388 else
2389   ac_build_alias=$build_alias
2390 test "x$ac_build_alias" = x &&
2391   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2392 test "x$ac_build_alias" = x &&
2393   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2394 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2395   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2396
2397 fi
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2399 $as_echo "$ac_cv_build" >&6; }
2400 case $ac_cv_build in
2401 *-*-*) ;;
2402 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2403 esac
2404 build=$ac_cv_build
2405 ac_save_IFS=$IFS; IFS='-'
2406 set x $ac_cv_build
2407 shift
2408 build_cpu=$1
2409 build_vendor=$2
2410 shift; shift
2411 # Remember, the first character of IFS is used to create $*,
2412 # except with old shells:
2413 build_os=$*
2414 IFS=$ac_save_IFS
2415 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2416
2417
2418  case ${build_alias} in
2419   "") build_noncanonical=${build} ;;
2420   *) build_noncanonical=${build_alias} ;;
2421 esac
2422
2423
2424
2425  case ${host_alias} in
2426   "") host_noncanonical=${build_noncanonical} ;;
2427   *) host_noncanonical=${host_alias} ;;
2428 esac
2429
2430
2431
2432  case ${target_alias} in
2433   "") target_noncanonical=${host_noncanonical} ;;
2434   *) target_noncanonical=${target_alias} ;;
2435 esac
2436
2437
2438
2439
2440 test "$host_noncanonical" = "$target_noncanonical" &&
2441   test "$program_prefix$program_suffix$program_transform_name" = \
2442     NONENONEs,x,x, &&
2443   program_transform_name=s,y,y,
2444
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2446 $as_echo_n "checking host system type... " >&6; }
2447 if ${ac_cv_host+:} false; then :
2448   $as_echo_n "(cached) " >&6
2449 else
2450   if test "x$host_alias" = x; then
2451   ac_cv_host=$ac_cv_build
2452 else
2453   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2454     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2455 fi
2456
2457 fi
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2459 $as_echo "$ac_cv_host" >&6; }
2460 case $ac_cv_host in
2461 *-*-*) ;;
2462 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2463 esac
2464 host=$ac_cv_host
2465 ac_save_IFS=$IFS; IFS='-'
2466 set x $ac_cv_host
2467 shift
2468 host_cpu=$1
2469 host_vendor=$2
2470 shift; shift
2471 # Remember, the first character of IFS is used to create $*,
2472 # except with old shells:
2473 host_os=$*
2474 IFS=$ac_save_IFS
2475 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2476
2477
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2479 $as_echo_n "checking target system type... " >&6; }
2480 if ${ac_cv_target+:} false; then :
2481   $as_echo_n "(cached) " >&6
2482 else
2483   if test "x$target_alias" = x; then
2484   ac_cv_target=$ac_cv_host
2485 else
2486   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2487     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2488 fi
2489
2490 fi
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2492 $as_echo "$ac_cv_target" >&6; }
2493 case $ac_cv_target in
2494 *-*-*) ;;
2495 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2496 esac
2497 target=$ac_cv_target
2498 ac_save_IFS=$IFS; IFS='-'
2499 set x $ac_cv_target
2500 shift
2501 target_cpu=$1
2502 target_vendor=$2
2503 shift; shift
2504 # Remember, the first character of IFS is used to create $*,
2505 # except with old shells:
2506 target_os=$*
2507 IFS=$ac_save_IFS
2508 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2509
2510
2511 # The aliases save the names the user supplied, while $host etc.
2512 # will get canonicalized.
2513 test -n "$target_alias" &&
2514   test "$program_prefix$program_suffix$program_transform_name" = \
2515     NONENONEs,x,x, &&
2516   program_prefix=${target_alias}-
2517
2518 test "$program_prefix" != NONE &&
2519   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2520 # Use a double $ so make ignores it.
2521 test "$program_suffix" != NONE &&
2522   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2523 # Double any \ or $.
2524 # By default was `s,x,x', remove it if useless.
2525 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2526 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2527
2528
2529
2530 # Get 'install' or 'install-sh' and its variants.
2531 # Find a good install program.  We prefer a C program (faster),
2532 # so one script is as good as another.  But avoid the broken or
2533 # incompatible versions:
2534 # SysV /etc/install, /usr/sbin/install
2535 # SunOS /usr/etc/install
2536 # IRIX /sbin/install
2537 # AIX /bin/install
2538 # AmigaOS /C/install, which installs bootblocks on floppy discs
2539 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2540 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2541 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2542 # OS/2's system install, which has a completely different semantic
2543 # ./install, which can be erroneously created by make from ./install.sh.
2544 # Reject install programs that cannot install multiple files.
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2546 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2547 if test -z "$INSTALL"; then
2548 if ${ac_cv_path_install+:} false; then :
2549   $as_echo_n "(cached) " >&6
2550 else
2551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2553 do
2554   IFS=$as_save_IFS
2555   test -z "$as_dir" && as_dir=.
2556     # Account for people who put trailing slashes in PATH elements.
2557 case $as_dir/ in #((
2558   ./ | .// | /[cC]/* | \
2559   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2560   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2561   /usr/ucb/* ) ;;
2562   *)
2563     # OSF1 and SCO ODT 3.0 have their own names for install.
2564     # Don't use installbsd from OSF since it installs stuff as root
2565     # by default.
2566     for ac_prog in ginstall scoinst install; do
2567       for ac_exec_ext in '' $ac_executable_extensions; do
2568         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2569           if test $ac_prog = install &&
2570             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2571             # AIX install.  It has an incompatible calling convention.
2572             :
2573           elif test $ac_prog = install &&
2574             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2575             # program-specific install script used by HP pwplus--don't use.
2576             :
2577           else
2578             rm -rf conftest.one conftest.two conftest.dir
2579             echo one > conftest.one
2580             echo two > conftest.two
2581             mkdir conftest.dir
2582             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2583               test -s conftest.one && test -s conftest.two &&
2584               test -s conftest.dir/conftest.one &&
2585               test -s conftest.dir/conftest.two
2586             then
2587               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2588               break 3
2589             fi
2590           fi
2591         fi
2592       done
2593     done
2594     ;;
2595 esac
2596
2597   done
2598 IFS=$as_save_IFS
2599
2600 rm -rf conftest.one conftest.two conftest.dir
2601
2602 fi
2603   if test "${ac_cv_path_install+set}" = set; then
2604     INSTALL=$ac_cv_path_install
2605   else
2606     # As a last resort, use the slow shell script.  Don't cache a
2607     # value for INSTALL within a source directory, because that will
2608     # break other packages using the cache if that directory is
2609     # removed, or if the value is a relative name.
2610     INSTALL=$ac_install_sh
2611   fi
2612 fi
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2614 $as_echo "$INSTALL" >&6; }
2615
2616 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2617 # It thinks the first close brace ends the variable substitution.
2618 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2619
2620 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2621
2622 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2623
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2625 $as_echo_n "checking whether ln works... " >&6; }
2626 if ${acx_cv_prog_LN+:} false; then :
2627   $as_echo_n "(cached) " >&6
2628 else
2629   rm -f conftestdata_t
2630 echo >conftestdata_f
2631 if ln conftestdata_f conftestdata_t 2>/dev/null
2632 then
2633   acx_cv_prog_LN=ln
2634 else
2635   acx_cv_prog_LN=no
2636 fi
2637 rm -f conftestdata_f conftestdata_t
2638
2639 fi
2640 if test $acx_cv_prog_LN = no; then
2641   LN="cp"
2642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2643 $as_echo "no, using $LN" >&6; }
2644 else
2645   LN="$acx_cv_prog_LN"
2646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2647 $as_echo "yes" >&6; }
2648 fi
2649
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2651 $as_echo_n "checking whether ln -s works... " >&6; }
2652 LN_S=$as_ln_s
2653 if test "$LN_S" = "ln -s"; then
2654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2655 $as_echo "yes" >&6; }
2656 else
2657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2658 $as_echo "no, using $LN_S" >&6; }
2659 fi
2660
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2662 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2663 if ${ac_cv_path_SED+:} false; then :
2664   $as_echo_n "(cached) " >&6
2665 else
2666             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2667      for ac_i in 1 2 3 4 5 6 7; do
2668        ac_script="$ac_script$as_nl$ac_script"
2669      done
2670      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2671      { ac_script=; unset ac_script;}
2672      if test -z "$SED"; then
2673   ac_path_SED_found=false
2674   # Loop through the user's path and test for each of PROGNAME-LIST
2675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 for as_dir in $PATH
2677 do
2678   IFS=$as_save_IFS
2679   test -z "$as_dir" && as_dir=.
2680     for ac_prog in sed gsed; do
2681     for ac_exec_ext in '' $ac_executable_extensions; do
2682       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2683       as_fn_executable_p "$ac_path_SED" || continue
2684 # Check for GNU ac_path_SED and select it if it is found.
2685   # Check for GNU $ac_path_SED
2686 case `"$ac_path_SED" --version 2>&1` in
2687 *GNU*)
2688   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2689 *)
2690   ac_count=0
2691   $as_echo_n 0123456789 >"conftest.in"
2692   while :
2693   do
2694     cat "conftest.in" "conftest.in" >"conftest.tmp"
2695     mv "conftest.tmp" "conftest.in"
2696     cp "conftest.in" "conftest.nl"
2697     $as_echo '' >> "conftest.nl"
2698     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2699     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2700     as_fn_arith $ac_count + 1 && ac_count=$as_val
2701     if test $ac_count -gt ${ac_path_SED_max-0}; then
2702       # Best one so far, save it but keep looking for a better one
2703       ac_cv_path_SED="$ac_path_SED"
2704       ac_path_SED_max=$ac_count
2705     fi
2706     # 10*(2^10) chars as input seems more than enough
2707     test $ac_count -gt 10 && break
2708   done
2709   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2710 esac
2711
2712       $ac_path_SED_found && break 3
2713     done
2714   done
2715   done
2716 IFS=$as_save_IFS
2717   if test -z "$ac_cv_path_SED"; then
2718     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2719   fi
2720 else
2721   ac_cv_path_SED=$SED
2722 fi
2723
2724 fi
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2726 $as_echo "$ac_cv_path_SED" >&6; }
2727  SED="$ac_cv_path_SED"
2728   rm -f conftest.sed
2729
2730 for ac_prog in gawk mawk nawk awk
2731 do
2732   # Extract the first word of "$ac_prog", so it can be a program name with args.
2733 set dummy $ac_prog; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_AWK+:} false; then :
2737   $as_echo_n "(cached) " >&6
2738 else
2739   if test -n "$AWK"; then
2740   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745   IFS=$as_save_IFS
2746   test -z "$as_dir" && as_dir=.
2747     for ac_exec_ext in '' $ac_executable_extensions; do
2748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749     ac_cv_prog_AWK="$ac_prog"
2750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751     break 2
2752   fi
2753 done
2754   done
2755 IFS=$as_save_IFS
2756
2757 fi
2758 fi
2759 AWK=$ac_cv_prog_AWK
2760 if test -n "$AWK"; then
2761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2762 $as_echo "$AWK" >&6; }
2763 else
2764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 fi
2767
2768
2769   test -n "$AWK" && break
2770 done
2771
2772
2773 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2774
2775 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2776 # a relative path.
2777 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2778   INSTALL="${srcpwd}/install-sh -c"
2779 fi
2780
2781 # Set srcdir to "." if that's what it is.
2782 # This is important for multilib support.
2783 pwd=`${PWDCMD-pwd}`
2784 if test "${pwd}" = "${srcpwd}" ; then
2785   srcdir=.
2786 fi
2787
2788 topsrcdir=$srcpwd
2789
2790 extra_host_args=
2791
2792 ### To add a new directory to the tree, first choose whether it is a target
2793 ### or a host dependent tool.  Then put it into the appropriate list
2794 ### (library or tools, host or target), doing a dependency sort.
2795
2796 # Subdirs will be configured in the order listed in build_configdirs,
2797 # configdirs, or target_configdirs; see the serialization section below.
2798
2799 # Dependency sorting is only needed when *configuration* must be done in
2800 # a particular order.  In all cases a dependency should be specified in
2801 # the Makefile, whether or not it's implicitly specified here.
2802
2803 # Double entries in build_configdirs, configdirs, or target_configdirs may
2804 # cause circular dependencies and break everything horribly.
2805
2806 # these library is used by various programs built for the build
2807 # environment
2808 #
2809 build_libs="build-libiberty build-libcpp"
2810
2811 # these tools are built for the build environment
2812 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2813
2814 # these libraries are used by various programs built for the host environment
2815 #f
2816 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2817
2818 # these tools are built for the host environment
2819 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2820 # know that we are building the simulator.
2821 # binutils, gas and ld appear in that order because it makes sense to run
2822 # "make check" in that particular order.
2823 # If --enable-gold is used, "gold" may replace "ld".
2824 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
2825
2826 # these libraries are built for the target environment, and are built after
2827 # the host libraries and the host tools (which may be a cross compiler)
2828 # Note that libiberty is not a target library.
2829 target_libraries="target-libgcc \
2830                 target-libbacktrace \
2831                 target-libgloss \
2832                 target-newlib \
2833                 target-libgomp \
2834                 target-liboffloadmic \
2835                 target-libatomic \
2836                 target-libitm \
2837                 target-libstdc++-v3 \
2838                 target-libsanitizer \
2839                 target-libvtv \
2840                 target-libssp \
2841                 target-libquadmath \
2842                 target-libgfortran \
2843                 target-libffi \
2844                 target-libobjc \
2845                 target-libada \
2846                 target-libgo \
2847                 target-libphobos \
2848                 target-zlib"
2849
2850 # these tools are built using the target libraries, and are intended to
2851 # run only in the target environment
2852 #
2853 # note: any program that *uses* libraries that are in the "target_libraries"
2854 # list belongs in this list.
2855 #
2856 target_tools="target-rda"
2857
2858 ################################################################################
2859
2860 ## All tools belong in one of the four categories, and are assigned above
2861 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2862 ## is important because configure will choke if they ever get through.
2863 ## ${configdirs} is directories we build using the host tools.
2864 ## ${target_configdirs} is directories we build using the target tools.
2865 configdirs=`echo ${host_libs} ${host_tools}`
2866 target_configdirs=`echo ${target_libraries} ${target_tools}`
2867 build_configdirs=`echo ${build_libs} ${build_tools}`
2868
2869
2870
2871 ################################################################################
2872
2873 srcname="gnu development package"
2874
2875 # This gets set non-empty for some net releases of packages.
2876 appdirs=""
2877
2878 # Define is_cross_compiler to save on calls to 'test'.
2879 is_cross_compiler=
2880 if test x"${host}" = x"${target}" ; then
2881   is_cross_compiler=no
2882 else
2883   is_cross_compiler=yes
2884 fi
2885
2886 # Find the build and target subdir names.
2887
2888 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2889 # have matching libraries, they should use host libraries: Makefile.tpl
2890 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2891 # However, they still use the build modules, because the corresponding
2892 # host modules (e.g. bison) are only built for the host when bootstrap
2893 # finishes. So:
2894 # - build_subdir is where we find build modules, and never changes.
2895 # - build_libsubdir is where we find build libraries, and can be overridden.
2896
2897 # Prefix 'build-' so this never conflicts with target_subdir.
2898 build_subdir="build-${build_noncanonical}"
2899
2900 # Check whether --with-build-libsubdir was given.
2901 if test "${with_build_libsubdir+set}" = set; then :
2902   withval=$with_build_libsubdir; build_libsubdir="$withval"
2903 else
2904   build_libsubdir="$build_subdir"
2905 fi
2906
2907 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2908 if ( test $srcdir = . && test -d gcc ) \
2909    || test -d $srcdir/../host-${host_noncanonical}; then
2910   host_subdir="host-${host_noncanonical}"
2911 else
2912   host_subdir=.
2913 fi
2914 # No prefix.
2915 target_subdir=${target_noncanonical}
2916
2917 # Be sure to cover against remnants of an in-tree build.
2918 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2919   as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2920 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2921 fi
2922
2923 # Skipdirs are removed silently.
2924 skipdirs=
2925 # Noconfigdirs are removed loudly.
2926 noconfigdirs=""
2927
2928 use_gnu_ld=
2929 # Make sure we don't let GNU ld be added if we didn't want it.
2930 if test x$with_gnu_ld = xno ; then
2931   use_gnu_ld=no
2932   noconfigdirs="$noconfigdirs ld gold"
2933 fi
2934
2935 use_gnu_as=
2936 # Make sure we don't let GNU as be added if we didn't want it.
2937 if test x$with_gnu_as = xno ; then
2938   use_gnu_as=no
2939   noconfigdirs="$noconfigdirs gas"
2940 fi
2941
2942 use_included_zlib=
2943
2944 # Check whether --with-system-zlib was given.
2945 if test "${with_system_zlib+set}" = set; then :
2946   withval=$with_system_zlib;
2947 fi
2948
2949 # Make sure we don't let ZLIB be added if we didn't want it.
2950 if test x$with_system_zlib = xyes ; then
2951   use_included_zlib=no
2952   noconfigdirs="$noconfigdirs zlib"
2953 fi
2954
2955 # some tools are so dependent upon X11 that if we're not building with X,
2956 # it's not even worth trying to configure, much less build, that tool.
2957
2958 case ${with_x} in
2959   yes | "") ;; # the default value for this tree is that X11 is available
2960   no)
2961     skipdirs="${skipdirs} tk itcl libgui"
2962     # We won't be able to build gdbtk without X.
2963     enable_gdbtk=no
2964     ;;
2965   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2966 esac
2967
2968 # Some are only suitable for cross toolchains.
2969 # Remove these if host=target.
2970 cross_only="target-libgloss target-newlib target-opcodes"
2971
2972 case $is_cross_compiler in
2973   no) skipdirs="${skipdirs} ${cross_only}" ;;
2974 esac
2975
2976 # If both --with-headers and --with-libs are specified, default to
2977 # --without-newlib.
2978 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2979    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2980   if test x"${with_newlib}" = x ; then
2981     with_newlib=no
2982   fi
2983 fi
2984
2985 # Recognize --with-newlib/--without-newlib.
2986 case ${with_newlib} in
2987   no) skipdirs="${skipdirs} target-newlib" ;;
2988   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2989 esac
2990
2991 # Check whether --enable-as-accelerator-for was given.
2992 if test "${enable_as_accelerator_for+set}" = set; then :
2993   enableval=$enable_as_accelerator_for;
2994 fi
2995
2996
2997 # Check whether --enable-offload-targets was given.
2998 if test "${enable_offload_targets+set}" = set; then :
2999   enableval=$enable_offload_targets;
3000   if test x"$enable_offload_targets" = x; then
3001     as_fn_error $? "no offload targets specified" "$LINENO" 5
3002   fi
3003
3004 else
3005   enable_offload_targets=
3006 fi
3007
3008
3009 # Check whether --enable-offload-defaulted was given.
3010 if test "${enable_offload_defaulted+set}" = set; then :
3011   enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3012 else
3013   enable_offload_defaulted=
3014 fi
3015
3016
3017 # Handle --enable-gold, --enable-ld.
3018 # --disable-gold [--enable-ld]
3019 #     Build only ld.  Default option.
3020 # --enable-gold [--enable-ld]
3021 #     Build both gold and ld.  Install gold as "ld.gold", install ld
3022 #     as "ld.bfd" and "ld".
3023 # --enable-gold=default [--enable-ld]
3024 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
3025 #     install ld as "ld.bfd".
3026 # --enable-gold[=default] --disable-ld
3027 #     Build only gold, which is then installed as both "ld.gold" and "ld".
3028 # --enable-gold --enable-ld=default
3029 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
3030 #     and ld.bfd).
3031 #     In other words, ld is default
3032 # --enable-gold=default --enable-ld=default
3033 #     Error.
3034
3035 default_ld=
3036 # Check whether --enable-gold was given.
3037 if test "${enable_gold+set}" = set; then :
3038   enableval=$enable_gold; ENABLE_GOLD=$enableval
3039 else
3040   ENABLE_GOLD=no
3041 fi
3042
3043 case "${ENABLE_GOLD}" in
3044   yes|default)
3045     # Check for ELF target.
3046     is_elf=no
3047     case "${target}" in
3048       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3049       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3050       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3051       | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3052         case "${target}" in
3053           *-*-linux*aout* | *-*-linux*oldld*)
3054             ;;
3055           *)
3056             is_elf=yes
3057             ;;
3058         esac
3059     esac
3060
3061     if test "$is_elf" = "yes"; then
3062       # Check for target supported by gold.
3063       case "${target}" in
3064         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3065         | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3066           configdirs="$configdirs gold"
3067           if test x${ENABLE_GOLD} = xdefault; then
3068             default_ld=gold
3069           fi
3070           ENABLE_GOLD=yes
3071           ;;
3072       esac
3073     fi
3074     ;;
3075   no)
3076     ;;
3077   *)
3078     as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3079     ;;
3080 esac
3081
3082 # Check whether --enable-ld was given.
3083 if test "${enable_ld+set}" = set; then :
3084   enableval=$enable_ld; ENABLE_LD=$enableval
3085 else
3086   ENABLE_LD=yes
3087 fi
3088
3089
3090 case "${ENABLE_LD}" in
3091   default)
3092     if test x${default_ld} != x; then
3093       as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3094     fi
3095     ;;
3096   yes)
3097     ;;
3098   no)
3099     if test x${ENABLE_GOLD} != xyes; then
3100       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3101 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3102     fi
3103     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3104     ;;
3105   *)
3106     as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3107     ;;
3108 esac
3109
3110 # PR gas/19109
3111 # Decide the default method for compressing debug sections.
3112 # Provide a configure time option to override our default.
3113 # Check whether --enable-compressed_debug_sections was given.
3114 if test "${enable_compressed_debug_sections+set}" = set; then :
3115   enableval=$enable_compressed_debug_sections;
3116   if test x"$enable_compressed_debug_sections" = xyes; then
3117     as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3118   fi
3119
3120 else
3121   enable_compressed_debug_sections=
3122 fi
3123
3124
3125 # Configure extra directories which are host specific
3126
3127 case "${host}" in
3128   *-cygwin*)
3129     configdirs="$configdirs libtermcap" ;;
3130 esac
3131
3132 # A target can indicate whether a language isn't supported for some reason.
3133 # Only spaces may be used in this macro; not newlines or tabs.
3134 unsupported_languages=
3135
3136 # Remove more programs from consideration, based on the host or
3137 # target this usually means that a port of the program doesn't
3138 # exist yet.
3139
3140 case "${host}" in
3141   i[3456789]86-*-msdosdjgpp*)
3142     noconfigdirs="$noconfigdirs tcl tk itcl"
3143     ;;
3144 esac
3145
3146
3147 # Check whether --enable-libquadmath was given.
3148 if test "${enable_libquadmath+set}" = set; then :
3149   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3150 else
3151   ENABLE_LIBQUADMATH=yes
3152 fi
3153
3154 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3155   noconfigdirs="$noconfigdirs target-libquadmath"
3156 fi
3157
3158
3159 # Check whether --enable-libquadmath-support was given.
3160 if test "${enable_libquadmath_support+set}" = set; then :
3161   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3162 else
3163   ENABLE_LIBQUADMATH_SUPPORT=yes
3164 fi
3165
3166 enable_libquadmath_support=
3167 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3168   enable_libquadmath_support=no
3169 fi
3170
3171
3172 # Check whether --enable-libada was given.
3173 if test "${enable_libada+set}" = set; then :
3174   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3175 else
3176   ENABLE_LIBADA=yes
3177 fi
3178
3179 if test "${ENABLE_LIBADA}" != "yes" ; then
3180   noconfigdirs="$noconfigdirs gnattools"
3181 fi
3182
3183 # Check whether --enable-libssp was given.
3184 if test "${enable_libssp+set}" = set; then :
3185   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3186 else
3187   ENABLE_LIBSSP=yes
3188 fi
3189
3190
3191 # Check whether --enable-libstdcxx was given.
3192 if test "${enable_libstdcxx+set}" = set; then :
3193   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3194 else
3195   ENABLE_LIBSTDCXX=default
3196 fi
3197
3198 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3199   noconfigdirs="$noconfigdirs target-libstdc++-v3"
3200 fi
3201
3202 # If this is accelerator compiler and its target is intelmic we enable
3203 # target liboffloadmic by default.  If this is compiler with offloading
3204 # for intelmic we enable host liboffloadmic by default.  Otherwise
3205 # liboffloadmic is disabled by default.
3206 # Check whether --enable-liboffloadmic was given.
3207 if test "${enable_liboffloadmic+set}" = set; then :
3208   enableval=$enable_liboffloadmic; case "$enableval" in
3209   no | host | target)
3210     enable_liboffloadmic=$enableval ;;
3211   *)
3212     as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3213 esac
3214 else
3215   if test x"$enable_as_accelerator_for" != x; then
3216   case "${target}" in
3217     *-intelmic-* | *-intelmicemul-*)
3218       enable_liboffloadmic=target
3219       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3220       ;;
3221     *)
3222       enable_liboffloadmic=no
3223       ;;
3224   esac
3225 else
3226   case "${enable_offload_targets}" in
3227     *-intelmic-* | *-intelmicemul-*)
3228       enable_liboffloadmic=host
3229       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3230       ;;
3231     *)
3232       enable_liboffloadmic=no
3233       ;;
3234     esac
3235 fi
3236 fi
3237
3238
3239
3240 # Enable libgomp by default on hosted POSIX systems, and a few others.
3241 if test x$enable_libgomp = x ; then
3242     case "${target}" in
3243     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3244         ;;
3245     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3246         ;;
3247     *-*-solaris2* | *-*-hpux11*)
3248         ;;
3249     *-*-darwin* | *-*-aix*)
3250         ;;
3251     nvptx*-*-* | amdgcn*-*-*)
3252         ;;
3253     *)
3254         noconfigdirs="$noconfigdirs target-libgomp"
3255         ;;
3256     esac
3257 fi
3258
3259 # Disable libatomic on unsupported systems.
3260 if test -d ${srcdir}/libatomic; then
3261     if test x$enable_libatomic = x; then
3262         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3263 $as_echo_n "checking for libatomic support... " >&6; }
3264         if (srcdir=${srcdir}/libatomic; \
3265                 . ${srcdir}/configure.tgt; \
3266                 test -n "$UNSUPPORTED")
3267         then
3268             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270             noconfigdirs="$noconfigdirs target-libatomic"
3271         else
3272             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273 $as_echo "yes" >&6; }
3274         fi
3275     fi
3276 fi
3277
3278 # Disable liboffloadmic on unsupported systems.
3279 if test -d ${srcdir}/liboffloadmic; then
3280     if test x$enable_liboffloadmic != xno; then
3281         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3282 $as_echo_n "checking for liboffloadmic support... " >&6; }
3283         if (srcdir=${srcdir}/liboffloadmic; \
3284                 . ${srcdir}/configure.tgt; \
3285                 test -n "$UNSUPPORTED")
3286         then
3287             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289             noconfigdirs="$noconfigdirs target-liboffloadmic"
3290         else
3291             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292 $as_echo "yes" >&6; }
3293         fi
3294     fi
3295 fi
3296
3297 # Disable libitm on unsupported systems.
3298 if test -d ${srcdir}/libitm; then
3299     if test x$enable_libitm = x; then
3300         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3301 $as_echo_n "checking for libitm support... " >&6; }
3302         if (srcdir=${srcdir}/libitm; \
3303                 . ${srcdir}/configure.tgt; \
3304                 test -n "$UNSUPPORTED")
3305         then
3306             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308             noconfigdirs="$noconfigdirs target-libitm"
3309         else
3310             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311 $as_echo "yes" >&6; }
3312         fi
3313     fi
3314 fi
3315
3316 # Disable libsanitizer on unsupported systems.
3317 if test -d ${srcdir}/libsanitizer; then
3318     if test x$enable_libsanitizer = x; then
3319         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3320 $as_echo_n "checking for libsanitizer support... " >&6; }
3321         if (srcdir=${srcdir}/libsanitizer; \
3322                 . ${srcdir}/configure.tgt; \
3323                 test -n "$UNSUPPORTED")
3324         then
3325             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327             noconfigdirs="$noconfigdirs target-libsanitizer"
3328         else
3329             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3330 $as_echo "yes" >&6; }
3331         fi
3332     fi
3333 fi
3334
3335 # Disable libvtv on unsupported systems.
3336 if test -d ${srcdir}/libvtv; then
3337     if test x$enable_libvtv = x; then
3338         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3339 $as_echo_n "checking for libvtv support... " >&6; }
3340         if (srcdir=${srcdir}/libvtv; \
3341                 . ${srcdir}/configure.tgt; \
3342                 test "$VTV_SUPPORTED" != "yes")
3343         then
3344             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3346             noconfigdirs="$noconfigdirs target-libvtv"
3347         else
3348             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3349 $as_echo "yes" >&6; }
3350         fi
3351     fi
3352 fi
3353
3354 # Disable libquadmath for some systems.
3355 case "${target}" in
3356   avr-*-*)
3357     noconfigdirs="$noconfigdirs target-libquadmath"
3358     ;;
3359   # libquadmath is unused on AIX and libquadmath build process use of
3360   # LD_LIBRARY_PATH can break AIX bootstrap.
3361   powerpc-*-aix* | rs6000-*-aix*)
3362     noconfigdirs="$noconfigdirs target-libquadmath"
3363     ;;
3364 esac
3365
3366 # Disable libssp for some systems.
3367 case "${target}" in
3368   avr-*-*)
3369     # No hosted I/O support.
3370     noconfigdirs="$noconfigdirs target-libssp"
3371     ;;
3372   bpf-*-*)
3373     noconfigdirs="$noconfigdirs target-libssp"
3374     ;;
3375   powerpc-*-aix* | rs6000-*-aix*)
3376     noconfigdirs="$noconfigdirs target-libssp"
3377     ;;
3378   pru-*-*)
3379     # No hosted I/O support.
3380     noconfigdirs="$noconfigdirs target-libssp"
3381     ;;
3382   rl78-*-*)
3383     # libssp uses a misaligned load to trigger a fault, but the RL78
3384     # doesn't fault for those - instead, it gives a build-time error
3385     # for explicit misaligned loads.
3386     noconfigdirs="$noconfigdirs target-libssp"
3387     ;;
3388   visium-*-*)
3389     # No hosted I/O support.
3390     noconfigdirs="$noconfigdirs target-libssp"
3391     ;;
3392 esac
3393
3394 # Disable libstdc++-v3 for some systems.
3395 # Allow user to override this if they pass --enable-libstdc++-v3
3396 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3397   case "${target}" in
3398     *-*-vxworks*)
3399       # VxWorks uses the Dinkumware C++ library.
3400       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3401       ;;
3402     amdgcn*-*-*)
3403       # Not ported/fails to build when using newlib.
3404       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3405       ;;
3406     arm*-wince-pe*)
3407       # the C++ libraries don't build on top of CE's C libraries
3408       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3409       ;;
3410     avr-*-*)
3411       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3412       ;;
3413     bpf-*-*)
3414       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3415       ;;
3416     ft32-*-*)
3417       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3418       ;;
3419   esac
3420 fi
3421
3422 # Disable C++ on systems where it is known to not work.
3423 # For testing, you can override this with --enable-languages=c++.
3424 case ,${enable_languages}, in
3425   *,c++,*)
3426     ;;
3427   *)
3428       case "${target}" in
3429         bpf-*-*)
3430           unsupported_languages="$unsupported_languages c++"
3431           ;;
3432       esac
3433       ;;
3434 esac
3435
3436 # Disable Objc on systems where it is known to not work.
3437 # For testing, you can override this with --enable-languages=objc.
3438 case ,${enable_languages}, in
3439   *,objc,*)
3440     ;;
3441   *)
3442       case "${target}" in
3443         bpf-*-*)
3444           unsupported_languages="$unsupported_languages objc"
3445           ;;
3446       esac
3447       ;;
3448 esac
3449
3450 # Disable D on systems where it is known to not work.
3451 # For testing, you can override this with --enable-languages=d.
3452 case ,${enable_languages}, in
3453   *,d,*)
3454     ;;
3455   *)
3456     case "${target}" in
3457       bpf-*-*)
3458         unsupported_languages="$unsupported_languages d"
3459         ;;
3460     esac
3461     ;;
3462 esac
3463
3464 # Disable libphobos on unsupported systems.
3465 # For testing, you can override this with --enable-libphobos.
3466 if test -d ${srcdir}/libphobos; then
3467     if test x$enable_libphobos = x; then
3468         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3469 $as_echo_n "checking for libphobos support... " >&6; }
3470         if (srcdir=${srcdir}/libphobos; \
3471                 . ${srcdir}/configure.tgt; \
3472                 test "$LIBPHOBOS_SUPPORTED" != "yes")
3473         then
3474             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3476             noconfigdirs="$noconfigdirs target-libphobos"
3477         else
3478             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3479 $as_echo "yes" >&6; }
3480         fi
3481     fi
3482 fi
3483
3484 # Disable Fortran for some systems.
3485 case "${target}" in
3486   mmix-*-*)
3487     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3488     unsupported_languages="$unsupported_languages fortran"
3489     ;;
3490   bpf-*-*)
3491     unsupported_languages="$unsupported_languages fortran"
3492     ;;
3493 esac
3494
3495 # Disable libffi for some systems.
3496 case "${target}" in
3497   powerpc-*-darwin*)
3498     ;;
3499   i[3456789]86-*-darwin*)
3500     ;;
3501   x86_64-*-darwin[912]*)
3502     ;;
3503   *-*-darwin*)
3504     noconfigdirs="$noconfigdirs target-libffi"
3505     ;;
3506   *-*-netware*)
3507     noconfigdirs="$noconfigdirs target-libffi"
3508     ;;
3509   *-*-phoenix*)
3510     noconfigdirs="$noconfigdirs target-libffi"
3511     ;;
3512   *-*-rtems*)
3513     noconfigdirs="$noconfigdirs target-libffi"
3514     ;;
3515   *-*-tpf*)
3516     noconfigdirs="$noconfigdirs target-libffi"
3517     ;;
3518   *-*-uclinux*)
3519     noconfigdirs="$noconfigdirs target-libffi"
3520     ;;
3521   *-*-vxworks*)
3522     noconfigdirs="$noconfigdirs target-libffi"
3523     ;;
3524   aarch64*-*-freebsd*)
3525     noconfigdirs="$noconfigdirs target-libffi"
3526     ;;
3527   alpha*-*-*vms*)
3528     noconfigdirs="$noconfigdirs target-libffi"
3529     ;;
3530   arm*-*-freebsd*)
3531     noconfigdirs="$noconfigdirs target-libffi"
3532     ;;
3533   arm-wince-pe)
3534     noconfigdirs="$noconfigdirs target-libffi"
3535     ;;
3536   arm*-*-symbianelf*)
3537     noconfigdirs="$noconfigdirs target-libffi"
3538     ;;
3539   bpf-*-*)
3540     noconfigdirs="$noconfigdirs target-libffi"
3541     ;;
3542   cris-*-* | crisv32-*-*)
3543     case "${target}" in
3544       *-*-linux*)
3545         ;;
3546       *) # See PR46792 regarding target-libffi.
3547         noconfigdirs="$noconfigdirs target-libffi";;
3548     esac
3549     ;;
3550   hppa*64*-*-hpux*)
3551     noconfigdirs="$noconfigdirs target-libffi"
3552     ;;
3553   hppa*-hp-hpux11*)
3554     ;;
3555   hppa*-*-hpux*)
3556     noconfigdirs="$noconfigdirs target-libffi"
3557     ;;
3558   ia64*-*-*vms*)
3559     noconfigdirs="$noconfigdirs target-libffi"
3560     ;;
3561   i[3456789]86-w64-mingw*)
3562     noconfigdirs="$noconfigdirs target-libffi"
3563     ;;
3564   i[3456789]86-*-mingw*)
3565     noconfigdirs="$noconfigdirs target-libffi"
3566     ;;
3567   x86_64-*-mingw*)
3568     noconfigdirs="$noconfigdirs target-libffi"
3569     ;;
3570   mmix-*-*)
3571     noconfigdirs="$noconfigdirs target-libffi"
3572     ;;
3573   powerpc-*-aix*)
3574     ;;
3575   rs6000-*-aix*)
3576     ;;
3577   ft32-*-*)
3578     noconfigdirs="$noconfigdirs target-libffi"
3579     ;;
3580   *-*-lynxos*)
3581     noconfigdirs="$noconfigdirs target-libffi"
3582     ;;
3583 esac
3584
3585 # Disable the go frontend on systems where it is known to not work. Please keep
3586 # this in sync with contrib/config-list.mk.
3587 case "${target}" in
3588 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3589     unsupported_languages="$unsupported_languages go"
3590     ;;
3591 esac
3592
3593 # Only allow gdbserver on some systems.
3594 if test -d ${srcdir}/gdbserver; then
3595     if test x$enable_gdbserver = x; then
3596         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3597 $as_echo_n "checking for gdbserver support... " >&6; }
3598         if (srcdir=${srcdir}/gdbserver; \
3599                 . ${srcdir}/configure.srv; \
3600                 test -n "$UNSUPPORTED")
3601         then
3602             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3604             noconfigdirs="$noconfigdirs gdbserver"
3605         else
3606             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3607 $as_echo "yes" >&6; }
3608         fi
3609     fi
3610 fi
3611
3612 # Disable libgo for some systems where it is known to not work.
3613 # For testing, you can easily override this with --enable-libgo.
3614 if test x$enable_libgo = x; then
3615     case "${target}" in
3616     *-*-darwin*)
3617         # PR 46986
3618         noconfigdirs="$noconfigdirs target-libgo"
3619         ;;
3620     *-*-cygwin* | *-*-mingw*)
3621         noconfigdirs="$noconfigdirs target-libgo"
3622         ;;
3623     bpf-*-*)
3624         noconfigdirs="$noconfigdirs target-libgo"
3625         ;;
3626     esac
3627 fi
3628
3629 # Default libgloss CPU subdirectory.
3630 libgloss_dir="$target_cpu"
3631
3632 case "${target}" in
3633   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3634     libgloss_dir=wince
3635     ;;
3636   aarch64*-*-* )
3637     libgloss_dir=aarch64
3638     ;;
3639   arm*-*-*)
3640     libgloss_dir=arm
3641     ;;
3642   cris-*-* | crisv32-*-*)
3643     libgloss_dir=cris
3644     ;;
3645   hppa*-*-*)
3646     libgloss_dir=pa
3647     ;;
3648   i[3456789]86-*-*)
3649     libgloss_dir=i386
3650     ;;
3651   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3652     libgloss_dir=m68hc11
3653     ;;
3654   m68*-*-* | fido-*-*)
3655     libgloss_dir=m68k
3656     ;;
3657   mips*-*-*)
3658     libgloss_dir=mips
3659     ;;
3660   powerpc*-*-*)
3661     libgloss_dir=rs6000
3662     ;;
3663   pru-*-*)
3664     libgloss_dir=pru
3665     ;;
3666   sparc*-*-*)
3667     libgloss_dir=sparc
3668     ;;
3669 esac
3670
3671 # Disable newlib and libgloss for various target OSes.
3672 case "${target}" in
3673   alpha*-dec-osf*)
3674     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3675     ;;
3676   i[3456789]86-*-linux*)
3677     # This section makes it possible to build newlib natively on linux.
3678     # If we are using a cross compiler then don't configure newlib.
3679     if test x${is_cross_compiler} != xno ; then
3680       noconfigdirs="$noconfigdirs target-newlib"
3681     fi
3682     noconfigdirs="$noconfigdirs target-libgloss"
3683     # If we are not using a cross compiler, do configure newlib.
3684     # Note however, that newlib will only be configured in this situation
3685     # if the --with-newlib option has been given, because otherwise
3686     # 'target-newlib' will appear in skipdirs.
3687     ;;
3688   i[3456789]86-*-rdos*)
3689     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3690     ;;
3691   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3692     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693     ;;
3694   sparc-*-sunos4*)
3695     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3696     ;;
3697   bpf-*-*)
3698     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3699     ;;
3700   *-*-aix*)
3701     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3702     ;;
3703   *-*-beos*)
3704     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3705     ;;
3706   *-*-chorusos)
3707     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3708     ;;
3709   *-*-dragonfly*)
3710     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3711     ;;
3712   *-*-freebsd*)
3713     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3714     ;;
3715   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3716     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3717     ;;
3718   *-*-lynxos*)
3719     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720     ;;
3721   *-*-mingw*)
3722     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3723     ;;
3724   *-*-netbsd*)
3725     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3726     ;;
3727   *-*-netware*)
3728     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3729     ;;
3730   *-*-tpf*)
3731     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3732     ;;
3733   *-*-uclinux*)
3734     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3735     ;;
3736   *-*-vxworks*)
3737     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3738     ;;
3739 esac
3740
3741 case "${target}" in
3742   *-*-chorusos)
3743     ;;
3744   aarch64-*-darwin*)
3745     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3746     noconfigdirs="$noconfigdirs sim target-rda"
3747     ;;
3748   amdgcn*-*-*)
3749     ;;
3750   arm-*-darwin*)
3751     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3752     noconfigdirs="$noconfigdirs sim target-rda"
3753     ;;
3754   powerpc-*-darwin*)
3755     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3756     noconfigdirs="$noconfigdirs sim target-rda"
3757     ;;
3758   i[3456789]86-*-darwin*)
3759     noconfigdirs="$noconfigdirs ld gprof"
3760     noconfigdirs="$noconfigdirs sim target-rda"
3761     ;;
3762   x86_64-*-darwin[912]*)
3763     noconfigdirs="$noconfigdirs ld gas gprof"
3764     noconfigdirs="$noconfigdirs sim target-rda"
3765     ;;
3766   *-*-darwin*)
3767     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3768     noconfigdirs="$noconfigdirs sim target-rda"
3769     ;;
3770   *-*-dragonfly*)
3771     ;;
3772   *-*-freebsd*)
3773     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3774         && ! test -d ${srcdir}/gmp \
3775         && test -f /usr/local/include/gmp.h; then
3776       with_gmp=/usr/local
3777     fi
3778     ;;
3779   *-*-kaos*)
3780     # Remove unsupported stuff on all kaOS configurations.
3781     noconfigdirs="$noconfigdirs target-libgloss"
3782     ;;
3783   *-*-netbsd*)
3784     ;;
3785   *-*-netware*)
3786     ;;
3787   *-*-phoenix*)
3788     noconfigdirs="$noconfigdirs target-libgloss"
3789     ;;
3790   *-*-rtems*)
3791     noconfigdirs="$noconfigdirs target-libgloss"
3792     ;;
3793     # The tpf target doesn't support gdb yet.
3794   *-*-tpf*)
3795     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3796     ;;
3797   *-*-uclinux*)
3798     noconfigdirs="$noconfigdirs target-rda"
3799     ;;
3800   *-*-vxworks*)
3801     ;;
3802   alpha*-dec-osf*)
3803     # ld works, but does not support shared libraries.
3804     # gas doesn't generate exception information.
3805     noconfigdirs="$noconfigdirs gas ld"
3806     ;;
3807   alpha*-*-*vms*)
3808     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3809     ;;
3810   alpha*-*-*)
3811     # newlib is not 64 bit ready
3812     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3813     ;;
3814   bpf-*-*)
3815     noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3816     ;;
3817   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3818     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3819     ;;
3820   arc*-*-*)
3821     noconfigdirs="$noconfigdirs sim"
3822     ;;
3823   arm-*-pe*)
3824     noconfigdirs="$noconfigdirs target-libgloss"
3825     ;;
3826   arm-*-riscix*)
3827     noconfigdirs="$noconfigdirs ld target-libgloss"
3828     ;;
3829   avr-*-*)
3830     if test x${with_avrlibc} != xno; then
3831       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3832     fi
3833     ;;
3834   c4x-*-* | tic4x-*-*)
3835     noconfigdirs="$noconfigdirs target-libgloss"
3836     ;;
3837   tic54x-*-*)
3838     noconfigdirs="$noconfigdirs target-libgloss gdb"
3839     ;;
3840   d10v-*-*)
3841     noconfigdirs="$noconfigdirs target-libgloss"
3842     ;;
3843   d30v-*-*)
3844     noconfigdirs="$noconfigdirs gdb"
3845     ;;
3846   fr30-*-elf*)
3847     noconfigdirs="$noconfigdirs gdb"
3848     ;;
3849   ft32-*-*)
3850     noconfigdirs="$noconfigdirs target-rda gprof"
3851     ;;
3852   moxie-*-*)
3853     noconfigdirs="$noconfigdirs"
3854     ;;
3855   h8300*-*-*)
3856     noconfigdirs="$noconfigdirs target-libgloss"
3857     ;;
3858   h8500-*-*)
3859     noconfigdirs="$noconfigdirs target-libgloss"
3860     ;;
3861   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3862     ;;
3863   hppa*64*-*-hpux*)
3864     noconfigdirs="$noconfigdirs gdb"
3865     ;;
3866   hppa*-*-hpux11*)
3867     noconfigdirs="$noconfigdirs gdb ld"
3868     ;;
3869   hppa*64*-*-linux*)
3870     ;;
3871   hppa*-*-linux*)
3872     ;;
3873   hppa*-*-*elf* | \
3874   hppa*-*-lites* | \
3875   hppa*-*-openbsd* | \
3876   hppa*64*-*-*)
3877     ;;
3878   hppa*-*-pro*)
3879     ;;
3880   hppa*-*-*)
3881     noconfigdirs="$noconfigdirs ld"
3882     ;;
3883   i960-*-*)
3884     noconfigdirs="$noconfigdirs gdb"
3885     ;;
3886   ia64*-*-elf*)
3887     # No gdb support yet.
3888     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3889     ;;
3890   ia64*-**-hpux*)
3891     # No ld support yet.
3892     noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3893     ;;
3894   ia64*-*-*vms*)
3895     # No ld support yet.
3896     noconfigdirs="$noconfigdirs libgui itcl ld"
3897     ;;
3898   i[3456789]86-w64-mingw*)
3899     ;;
3900   i[3456789]86-*-mingw*)
3901     target_configdirs="$target_configdirs target-winsup"
3902     ;;
3903   *-*-cygwin*)
3904     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3905     noconfigdirs="$noconfigdirs target-libgloss"
3906     # always build newlib if winsup directory is present.
3907     if test -d "$srcdir/winsup/cygwin"; then
3908       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3909     elif test -d "$srcdir/newlib"; then
3910       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3911     fi
3912     ;;
3913   i[3456789]86-*-pe)
3914     noconfigdirs="$noconfigdirs target-libgloss"
3915     ;;
3916   i[3456789]86-*-sco3.2v5*)
3917     # The linker does not yet know about weak symbols in COFF,
3918     # and is not configured to handle mixed ELF and COFF.
3919     noconfigdirs="$noconfigdirs ld target-libgloss"
3920     ;;
3921   i[3456789]86-*-sco*)
3922     noconfigdirs="$noconfigdirs gprof target-libgloss"
3923     ;;
3924   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3925     noconfigdirs="$noconfigdirs target-libgloss"
3926     ;;
3927   i[3456789]86-*-sysv4*)
3928     noconfigdirs="$noconfigdirs target-libgloss"
3929     ;;
3930   i[3456789]86-*-beos*)
3931     noconfigdirs="$noconfigdirs gdb"
3932     ;;
3933   i[3456789]86-*-rdos*)
3934     noconfigdirs="$noconfigdirs gdb"
3935     ;;
3936   mmix-*-*)
3937     noconfigdirs="$noconfigdirs gdb"
3938     ;;
3939   mt-*-*)
3940     noconfigdirs="$noconfigdirs sim"
3941     ;;
3942   nfp-*-*)
3943     noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3944     noconfigdirs="$noconfigdirs $target_libraries"
3945     ;;
3946   pdp11-*-*)
3947     noconfigdirs="$noconfigdirs gdb gprof"
3948     ;;
3949   powerpc-*-aix*)
3950     # copied from rs6000-*-* entry
3951     noconfigdirs="$noconfigdirs gprof"
3952     ;;
3953   powerpc*-*-winnt* | powerpc*-*-pe*)
3954     target_configdirs="$target_configdirs target-winsup"
3955     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3956     # always build newlib.
3957     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3958     ;;
3959     # This is temporary until we can link against shared libraries
3960   powerpcle-*-solaris*)
3961     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3962     ;;
3963   powerpc-*-beos*)
3964     noconfigdirs="$noconfigdirs gdb"
3965     ;;
3966   rs6000-*-lynxos*)
3967     noconfigdirs="$noconfigdirs gprof"
3968     ;;
3969   rs6000-*-aix*)
3970     noconfigdirs="$noconfigdirs gprof"
3971     ;;
3972   rs6000-*-*)
3973     noconfigdirs="$noconfigdirs gprof"
3974     ;;
3975   m68k-apollo-*)
3976     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3977     ;;
3978   microblaze*)
3979     noconfigdirs="$noconfigdirs gprof"
3980     ;;
3981   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3982     if test x$with_newlib = xyes; then
3983       noconfigdirs="$noconfigdirs gprof"
3984     fi
3985     ;;
3986   mips*-*-irix5*)
3987     noconfigdirs="$noconfigdirs gprof target-libgloss"
3988     ;;
3989   mips*-*-irix6*)
3990     noconfigdirs="$noconfigdirs gprof target-libgloss"
3991     ;;
3992   mips*-*-bsd*)
3993     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3994     ;;
3995   mips*-*-linux*)
3996     ;;
3997   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3998   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3999     noconfigdirs="$noconfigdirs ld gas gprof"
4000     ;;
4001   mips*-*-*)
4002     noconfigdirs="$noconfigdirs gprof"
4003     ;;
4004   nvptx*-*-*)
4005     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4006     ;;
4007   sh-*-*)
4008     case "${target}" in
4009       sh*-*-elf)
4010          ;;
4011       *)
4012          noconfigdirs="$noconfigdirs target-libgloss" ;;
4013     esac
4014     ;;
4015   sparc-*-sunos4*)
4016     if test x${is_cross_compiler} = xno ; then
4017            use_gnu_ld=no
4018     fi
4019     ;;
4020   tic6x-*-*)
4021     noconfigdirs="$noconfigdirs sim"
4022     ;;
4023   tilepro*-*-* | tilegx*-*-*)
4024     noconfigdirs="$noconfigdirs sim"
4025     ;;
4026   v810-*-*)
4027     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4028     ;;
4029   vax-*-*)
4030     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4031     ;;
4032   wasm32-*-*)
4033     noconfigdirs="$noconfigdirs ld"
4034     ;;
4035 esac
4036
4037 # If we aren't building newlib, then don't build libgloss, since libgloss
4038 # depends upon some newlib header files.
4039 case "${noconfigdirs}" in
4040   *target-libgloss*) ;;
4041   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4042 esac
4043
4044 # Work in distributions that contain no compiler tools, like Autoconf.
4045 host_makefile_frag=/dev/null
4046 if test -d ${srcdir}/config ; then
4047 case "${host}" in
4048   i[3456789]86-*-msdosdjgpp*)
4049     host_makefile_frag="config/mh-djgpp"
4050     ;;
4051   *-cygwin*)
4052
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4054 $as_echo_n "checking to see if cat works as expected... " >&6; }
4055 echo a >cygwin-cat-check
4056 if test `cat cygwin-cat-check` = a ; then
4057   rm cygwin-cat-check
4058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4059 $as_echo "yes" >&6; }
4060 else
4061   rm cygwin-cat-check
4062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063 $as_echo "no" >&6; }
4064   as_fn_error $? "The cat command does not ignore carriage return characters.
4065   Please either mount the build directory in binary mode or run the following
4066   commands before running any configure script:
4067 set -o igncr
4068 export SHELLOPTS
4069   " "$LINENO" 5
4070 fi
4071
4072     host_makefile_frag="config/mh-cygwin"
4073     ;;
4074   *-mingw*)
4075     host_makefile_frag="config/mh-mingw"
4076     ;;
4077   alpha*-linux*)
4078     host_makefile_frag="config/mh-alpha-linux"
4079     ;;
4080   hppa*-hp-hpux10*)
4081     host_makefile_frag="config/mh-pa-hpux10"
4082     ;;
4083   hppa*-hp-hpux*)
4084     host_makefile_frag="config/mh-pa"
4085     ;;
4086   hppa*-*)
4087     host_makefile_frag="config/mh-pa"
4088     ;;
4089   i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4090     host_makefile_frag="config/mh-darwin"
4091     ;;
4092   powerpc-*-aix*)
4093     host_makefile_frag="config/mh-ppc-aix"
4094     ;;
4095   rs6000-*-aix*)
4096     host_makefile_frag="config/mh-ppc-aix"
4097     ;;
4098 esac
4099 fi
4100
4101 if test "${build}" != "${host}" ; then
4102   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4103   AS_FOR_BUILD=${AS_FOR_BUILD-as}
4104   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4105   CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4106   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4107   DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4108   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4109   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4110   GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4111   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4112   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4113   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4114   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4115   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4116   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4117 else
4118   AR_FOR_BUILD="\$(AR)"
4119   AS_FOR_BUILD="\$(AS)"
4120   CC_FOR_BUILD="\$(CC)"
4121   CXX_FOR_BUILD="\$(CXX)"
4122   DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4123   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4124   GOC_FOR_BUILD="\$(GOC)"
4125   GDC_FOR_BUILD="\$(GDC)"
4126   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4127   LD_FOR_BUILD="\$(LD)"
4128   NM_FOR_BUILD="\$(NM)"
4129   RANLIB_FOR_BUILD="\$(RANLIB)"
4130   WINDRES_FOR_BUILD="\$(WINDRES)"
4131   WINDMC_FOR_BUILD="\$(WINDMC)"
4132 fi
4133
4134 ac_ext=c
4135 ac_cpp='$CPP $CPPFLAGS'
4136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139 if test -n "$ac_tool_prefix"; then
4140   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4141 set dummy ${ac_tool_prefix}gcc; 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 ${ac_cv_prog_CC+:} false; 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157     ac_cv_prog_CC="${ac_tool_prefix}gcc"
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 if test -z "$ac_cv_prog_CC"; then
4179   ac_ct_CC=$CC
4180   # Extract the first word of "gcc", so it can be a program name with args.
4181 set dummy gcc; 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 ${ac_cv_prog_ac_ct_CC+:} false; then :
4185   $as_echo_n "(cached) " >&6
4186 else
4187   if test -n "$ac_ct_CC"; then
4188   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4189 else
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193   IFS=$as_save_IFS
4194   test -z "$as_dir" && as_dir=.
4195     for ac_exec_ext in '' $ac_executable_extensions; do
4196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197     ac_cv_prog_ac_ct_CC="gcc"
4198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4199     break 2
4200   fi
4201 done
4202   done
4203 IFS=$as_save_IFS
4204
4205 fi
4206 fi
4207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4208 if test -n "$ac_ct_CC"; then
4209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4210 $as_echo "$ac_ct_CC" >&6; }
4211 else
4212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4214 fi
4215
4216   if test "x$ac_ct_CC" = x; then
4217     CC=""
4218   else
4219     case $cross_compiling:$ac_tool_warned in
4220 yes:)
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4223 ac_tool_warned=yes ;;
4224 esac
4225     CC=$ac_ct_CC
4226   fi
4227 else
4228   CC="$ac_cv_prog_CC"
4229 fi
4230
4231 if test -z "$CC"; then
4232           if test -n "$ac_tool_prefix"; then
4233     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4234 set dummy ${ac_tool_prefix}cc; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if ${ac_cv_prog_CC+:} false; then :
4238   $as_echo_n "(cached) " >&6
4239 else
4240   if test -n "$CC"; then
4241   ac_cv_prog_CC="$CC" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246   IFS=$as_save_IFS
4247   test -z "$as_dir" && as_dir=.
4248     for ac_exec_ext in '' $ac_executable_extensions; do
4249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250     ac_cv_prog_CC="${ac_tool_prefix}cc"
4251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252     break 2
4253   fi
4254 done
4255   done
4256 IFS=$as_save_IFS
4257
4258 fi
4259 fi
4260 CC=$ac_cv_prog_CC
4261 if test -n "$CC"; then
4262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4263 $as_echo "$CC" >&6; }
4264 else
4265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4267 fi
4268
4269
4270   fi
4271 fi
4272 if test -z "$CC"; then
4273   # Extract the first word of "cc", so it can be a program name with args.
4274 set dummy cc; ac_word=$2
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276 $as_echo_n "checking for $ac_word... " >&6; }
4277 if ${ac_cv_prog_CC+:} false; then :
4278   $as_echo_n "(cached) " >&6
4279 else
4280   if test -n "$CC"; then
4281   ac_cv_prog_CC="$CC" # Let the user override the test.
4282 else
4283   ac_prog_rejected=no
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287   IFS=$as_save_IFS
4288   test -z "$as_dir" && as_dir=.
4289     for ac_exec_ext in '' $ac_executable_extensions; do
4290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4292        ac_prog_rejected=yes
4293        continue
4294      fi
4295     ac_cv_prog_CC="cc"
4296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297     break 2
4298   fi
4299 done
4300   done
4301 IFS=$as_save_IFS
4302
4303 if test $ac_prog_rejected = yes; then
4304   # We found a bogon in the path, so make sure we never use it.
4305   set dummy $ac_cv_prog_CC
4306   shift
4307   if test $# != 0; then
4308     # We chose a different compiler from the bogus one.
4309     # However, it has the same basename, so the bogon will be chosen
4310     # first if we set CC to just the basename; use the full file name.
4311     shift
4312     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4313   fi
4314 fi
4315 fi
4316 fi
4317 CC=$ac_cv_prog_CC
4318 if test -n "$CC"; then
4319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4320 $as_echo "$CC" >&6; }
4321 else
4322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323 $as_echo "no" >&6; }
4324 fi
4325
4326
4327 fi
4328 if test -z "$CC"; then
4329   if test -n "$ac_tool_prefix"; then
4330   for ac_prog in cl.exe
4331   do
4332     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335 $as_echo_n "checking for $ac_word... " >&6; }
4336 if ${ac_cv_prog_CC+:} false; then :
4337   $as_echo_n "(cached) " >&6
4338 else
4339   if test -n "$CC"; then
4340   ac_cv_prog_CC="$CC" # Let the user override the test.
4341 else
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH
4344 do
4345   IFS=$as_save_IFS
4346   test -z "$as_dir" && as_dir=.
4347     for ac_exec_ext in '' $ac_executable_extensions; do
4348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4349     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351     break 2
4352   fi
4353 done
4354   done
4355 IFS=$as_save_IFS
4356
4357 fi
4358 fi
4359 CC=$ac_cv_prog_CC
4360 if test -n "$CC"; then
4361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4362 $as_echo "$CC" >&6; }
4363 else
4364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4366 fi
4367
4368
4369     test -n "$CC" && break
4370   done
4371 fi
4372 if test -z "$CC"; then
4373   ac_ct_CC=$CC
4374   for ac_prog in cl.exe
4375 do
4376   # Extract the first word of "$ac_prog", so it can be a program name with args.
4377 set dummy $ac_prog; ac_word=$2
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379 $as_echo_n "checking for $ac_word... " >&6; }
4380 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4381   $as_echo_n "(cached) " >&6
4382 else
4383   if test -n "$ac_ct_CC"; then
4384   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4385 else
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH
4388 do
4389   IFS=$as_save_IFS
4390   test -z "$as_dir" && as_dir=.
4391     for ac_exec_ext in '' $ac_executable_extensions; do
4392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4393     ac_cv_prog_ac_ct_CC="$ac_prog"
4394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4395     break 2
4396   fi
4397 done
4398   done
4399 IFS=$as_save_IFS
4400
4401 fi
4402 fi
4403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4404 if test -n "$ac_ct_CC"; then
4405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4406 $as_echo "$ac_ct_CC" >&6; }
4407 else
4408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409 $as_echo "no" >&6; }
4410 fi
4411
4412
4413   test -n "$ac_ct_CC" && break
4414 done
4415
4416   if test "x$ac_ct_CC" = x; then
4417     CC=""
4418   else
4419     case $cross_compiling:$ac_tool_warned in
4420 yes:)
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4423 ac_tool_warned=yes ;;
4424 esac
4425     CC=$ac_ct_CC
4426   fi
4427 fi
4428
4429 fi
4430
4431
4432 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4434 as_fn_error $? "no acceptable C compiler found in \$PATH
4435 See \`config.log' for more details" "$LINENO" 5; }
4436
4437 # Provide some information about the compiler.
4438 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4439 set X $ac_compile
4440 ac_compiler=$2
4441 for ac_option in --version -v -V -qversion; do
4442   { { ac_try="$ac_compiler $ac_option >&5"
4443 case "(($ac_try" in
4444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445   *) ac_try_echo=$ac_try;;
4446 esac
4447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4448 $as_echo "$ac_try_echo"; } >&5
4449   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4450   ac_status=$?
4451   if test -s conftest.err; then
4452     sed '10a\
4453 ... rest of stderr output deleted ...
4454          10q' conftest.err >conftest.er1
4455     cat conftest.er1 >&5
4456   fi
4457   rm -f conftest.er1 conftest.err
4458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459   test $ac_status = 0; }
4460 done
4461
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h.  */
4464
4465 int
4466 main ()
4467 {
4468
4469   ;
4470   return 0;
4471 }
4472 _ACEOF
4473 ac_clean_files_save=$ac_clean_files
4474 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4475 # Try to create an executable without -o first, disregard a.out.
4476 # It will help us diagnose broken compilers, and finding out an intuition
4477 # of exeext.
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4479 $as_echo_n "checking whether the C compiler works... " >&6; }
4480 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4481
4482 # The possible output files:
4483 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4484
4485 ac_rmfiles=
4486 for ac_file in $ac_files
4487 do
4488   case $ac_file in
4489     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4490     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4491   esac
4492 done
4493 rm -f $ac_rmfiles
4494
4495 if { { ac_try="$ac_link_default"
4496 case "(($ac_try" in
4497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498   *) ac_try_echo=$ac_try;;
4499 esac
4500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501 $as_echo "$ac_try_echo"; } >&5
4502   (eval "$ac_link_default") 2>&5
4503   ac_status=$?
4504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505   test $ac_status = 0; }; then :
4506   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4507 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4508 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4509 # so that the user can short-circuit this test for compilers unknown to
4510 # Autoconf.
4511 for ac_file in $ac_files ''
4512 do
4513   test -f "$ac_file" || continue
4514   case $ac_file in
4515     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4516         ;;
4517     [ab].out )
4518         # We found the default executable, but exeext='' is most
4519         # certainly right.
4520         break;;
4521     *.* )
4522         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4523         then :; else
4524            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4525         fi
4526         # We set ac_cv_exeext here because the later test for it is not
4527         # safe: cross compilers may not add the suffix if given an `-o'
4528         # argument, so we may need to know it at that point already.
4529         # Even if this section looks crufty: it has the advantage of
4530         # actually working.
4531         break;;
4532     * )
4533         break;;
4534   esac
4535 done
4536 test "$ac_cv_exeext" = no && ac_cv_exeext=
4537
4538 else
4539   ac_file=''
4540 fi
4541 if test -z "$ac_file"; then :
4542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544 $as_echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4546
4547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4549 as_fn_error 77 "C compiler cannot create executables
4550 See \`config.log' for more details" "$LINENO" 5; }
4551 else
4552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553 $as_echo "yes" >&6; }
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4556 $as_echo_n "checking for C compiler default output file name... " >&6; }
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4558 $as_echo "$ac_file" >&6; }
4559 ac_exeext=$ac_cv_exeext
4560
4561 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4562 ac_clean_files=$ac_clean_files_save
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4564 $as_echo_n "checking for suffix of executables... " >&6; }
4565 if { { ac_try="$ac_link"
4566 case "(($ac_try" in
4567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568   *) ac_try_echo=$ac_try;;
4569 esac
4570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4571 $as_echo "$ac_try_echo"; } >&5
4572   (eval "$ac_link") 2>&5
4573   ac_status=$?
4574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4575   test $ac_status = 0; }; then :
4576   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4577 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4578 # work properly (i.e., refer to `conftest.exe'), while it won't with
4579 # `rm'.
4580 for ac_file in conftest.exe conftest conftest.*; do
4581   test -f "$ac_file" || continue
4582   case $ac_file in
4583     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4584     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4585           break;;
4586     * ) break;;
4587   esac
4588 done
4589 else
4590   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4592 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4593 See \`config.log' for more details" "$LINENO" 5; }
4594 fi
4595 rm -f conftest conftest$ac_cv_exeext
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4597 $as_echo "$ac_cv_exeext" >&6; }
4598
4599 rm -f conftest.$ac_ext
4600 EXEEXT=$ac_cv_exeext
4601 ac_exeext=$EXEEXT
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h.  */
4604 #include <stdio.h>
4605 int
4606 main ()
4607 {
4608 FILE *f = fopen ("conftest.out", "w");
4609  return ferror (f) || fclose (f) != 0;
4610
4611   ;
4612   return 0;
4613 }
4614 _ACEOF
4615 ac_clean_files="$ac_clean_files conftest.out"
4616 # Check that the compiler produces executables we can run.  If not, either
4617 # the compiler is broken, or we cross compile.
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4619 $as_echo_n "checking whether we are cross compiling... " >&6; }
4620 if test "$cross_compiling" != yes; then
4621   { { ac_try="$ac_link"
4622 case "(($ac_try" in
4623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624   *) ac_try_echo=$ac_try;;
4625 esac
4626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4627 $as_echo "$ac_try_echo"; } >&5
4628   (eval "$ac_link") 2>&5
4629   ac_status=$?
4630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4631   test $ac_status = 0; }
4632   if { ac_try='./conftest$ac_cv_exeext'
4633   { { case "(($ac_try" in
4634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635   *) ac_try_echo=$ac_try;;
4636 esac
4637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4638 $as_echo "$ac_try_echo"; } >&5
4639   (eval "$ac_try") 2>&5
4640   ac_status=$?
4641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642   test $ac_status = 0; }; }; then
4643     cross_compiling=no
4644   else
4645     if test "$cross_compiling" = maybe; then
4646         cross_compiling=yes
4647     else
4648         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4650 as_fn_error $? "cannot run C compiled programs.
4651 If you meant to cross compile, use \`--host'.
4652 See \`config.log' for more details" "$LINENO" 5; }
4653     fi
4654   fi
4655 fi
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4657 $as_echo "$cross_compiling" >&6; }
4658
4659 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4660 ac_clean_files=$ac_clean_files_save
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4662 $as_echo_n "checking for suffix of object files... " >&6; }
4663 if ${ac_cv_objext+:} false; then :
4664   $as_echo_n "(cached) " >&6
4665 else
4666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h.  */
4668
4669 int
4670 main ()
4671 {
4672
4673   ;
4674   return 0;
4675 }
4676 _ACEOF
4677 rm -f conftest.o conftest.obj
4678 if { { ac_try="$ac_compile"
4679 case "(($ac_try" in
4680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681   *) ac_try_echo=$ac_try;;
4682 esac
4683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4684 $as_echo "$ac_try_echo"; } >&5
4685   (eval "$ac_compile") 2>&5
4686   ac_status=$?
4687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4688   test $ac_status = 0; }; then :
4689   for ac_file in conftest.o conftest.obj conftest.*; do
4690   test -f "$ac_file" || continue;
4691   case $ac_file in
4692     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4693     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4694        break;;
4695   esac
4696 done
4697 else
4698   $as_echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4700
4701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4703 as_fn_error $? "cannot compute suffix of object files: cannot compile
4704 See \`config.log' for more details" "$LINENO" 5; }
4705 fi
4706 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4707 fi
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4709 $as_echo "$ac_cv_objext" >&6; }
4710 OBJEXT=$ac_cv_objext
4711 ac_objext=$OBJEXT
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4713 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4714 if ${ac_cv_c_compiler_gnu+:} false; then :
4715   $as_echo_n "(cached) " >&6
4716 else
4717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h.  */
4719
4720 int
4721 main ()
4722 {
4723 #ifndef __GNUC__
4724        choke me
4725 #endif
4726
4727   ;
4728   return 0;
4729 }
4730 _ACEOF
4731 if ac_fn_c_try_compile "$LINENO"; then :
4732   ac_compiler_gnu=yes
4733 else
4734   ac_compiler_gnu=no
4735 fi
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4738
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4741 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4742 if test $ac_compiler_gnu = yes; then
4743   GCC=yes
4744 else
4745   GCC=
4746 fi
4747 ac_test_CFLAGS=${CFLAGS+set}
4748 ac_save_CFLAGS=$CFLAGS
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4750 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4751 if ${ac_cv_prog_cc_g+:} false; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754   ac_save_c_werror_flag=$ac_c_werror_flag
4755    ac_c_werror_flag=yes
4756    ac_cv_prog_cc_g=no
4757    CFLAGS="-g"
4758    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h.  */
4760
4761 int
4762 main ()
4763 {
4764
4765   ;
4766   return 0;
4767 }
4768 _ACEOF
4769 if ac_fn_c_try_compile "$LINENO"; then :
4770   ac_cv_prog_cc_g=yes
4771 else
4772   CFLAGS=""
4773       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h.  */
4775
4776 int
4777 main ()
4778 {
4779
4780   ;
4781   return 0;
4782 }
4783 _ACEOF
4784 if ac_fn_c_try_compile "$LINENO"; then :
4785
4786 else
4787   ac_c_werror_flag=$ac_save_c_werror_flag
4788          CFLAGS="-g"
4789          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h.  */
4791
4792 int
4793 main ()
4794 {
4795
4796   ;
4797   return 0;
4798 }
4799 _ACEOF
4800 if ac_fn_c_try_compile "$LINENO"; then :
4801   ac_cv_prog_cc_g=yes
4802 fi
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 fi
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 fi
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808    ac_c_werror_flag=$ac_save_c_werror_flag
4809 fi
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4811 $as_echo "$ac_cv_prog_cc_g" >&6; }
4812 if test "$ac_test_CFLAGS" = set; then
4813   CFLAGS=$ac_save_CFLAGS
4814 elif test $ac_cv_prog_cc_g = yes; then
4815   if test "$GCC" = yes; then
4816     CFLAGS="-g -O2"
4817   else
4818     CFLAGS="-g"
4819   fi
4820 else
4821   if test "$GCC" = yes; then
4822     CFLAGS="-O2"
4823   else
4824     CFLAGS=
4825   fi
4826 fi
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4828 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4829 if ${ac_cv_prog_cc_c89+:} false; then :
4830   $as_echo_n "(cached) " >&6
4831 else
4832   ac_cv_prog_cc_c89=no
4833 ac_save_CC=$CC
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h.  */
4836 #include <stdarg.h>
4837 #include <stdio.h>
4838 struct stat;
4839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4840 struct buf { int x; };
4841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4842 static char *e (p, i)
4843      char **p;
4844      int i;
4845 {
4846   return p[i];
4847 }
4848 static char *f (char * (*g) (char **, int), char **p, ...)
4849 {
4850   char *s;
4851   va_list v;
4852   va_start (v,p);
4853   s = g (p, va_arg (v,int));
4854   va_end (v);
4855   return s;
4856 }
4857
4858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4859    function prototypes and stuff, but not '\xHH' hex character constants.
4860    These don't provoke an error unfortunately, instead are silently treated
4861    as 'x'.  The following induces an error, until -std is added to get
4862    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4863    array size at least.  It's necessary to write '\x00'==0 to get something
4864    that's true only with -std.  */
4865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4866
4867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4868    inside strings and character constants.  */
4869 #define FOO(x) 'x'
4870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4871
4872 int test (int i, double x);
4873 struct s1 {int (*f) (int a);};
4874 struct s2 {int (*f) (double a);};
4875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4876 int argc;
4877 char **argv;
4878 int
4879 main ()
4880 {
4881 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4882   ;
4883   return 0;
4884 }
4885 _ACEOF
4886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4887         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4888 do
4889   CC="$ac_save_CC $ac_arg"
4890   if ac_fn_c_try_compile "$LINENO"; then :
4891   ac_cv_prog_cc_c89=$ac_arg
4892 fi
4893 rm -f core conftest.err conftest.$ac_objext
4894   test "x$ac_cv_prog_cc_c89" != "xno" && break
4895 done
4896 rm -f conftest.$ac_ext
4897 CC=$ac_save_CC
4898
4899 fi
4900 # AC_CACHE_VAL
4901 case "x$ac_cv_prog_cc_c89" in
4902   x)
4903     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4904 $as_echo "none needed" >&6; } ;;
4905   xno)
4906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4907 $as_echo "unsupported" >&6; } ;;
4908   *)
4909     CC="$CC $ac_cv_prog_cc_c89"
4910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4911 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4912 esac
4913 if test "x$ac_cv_prog_cc_c89" != xno; then :
4914
4915 fi
4916
4917 ac_ext=c
4918 ac_cpp='$CPP $CPPFLAGS'
4919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4922
4923    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4924 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4925 if ${ac_cv_prog_cc_c99+:} false; then :
4926   $as_echo_n "(cached) " >&6
4927 else
4928   ac_cv_prog_cc_c99=no
4929 ac_save_CC=$CC
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h.  */
4932 #include <stdarg.h>
4933 #include <stdbool.h>
4934 #include <stdlib.h>
4935 #include <wchar.h>
4936 #include <stdio.h>
4937
4938 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4939 #define debug(...) fprintf (stderr, __VA_ARGS__)
4940 #define showlist(...) puts (#__VA_ARGS__)
4941 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4942 static void
4943 test_varargs_macros (void)
4944 {
4945   int x = 1234;
4946   int y = 5678;
4947   debug ("Flag");
4948   debug ("X = %d\n", x);
4949   showlist (The first, second, and third items.);
4950   report (x>y, "x is %d but y is %d", x, y);
4951 }
4952
4953 // Check long long types.
4954 #define BIG64 18446744073709551615ull
4955 #define BIG32 4294967295ul
4956 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4957 #if !BIG_OK
4958   your preprocessor is broken;
4959 #endif
4960 #if BIG_OK
4961 #else
4962   your preprocessor is broken;
4963 #endif
4964 static long long int bignum = -9223372036854775807LL;
4965 static unsigned long long int ubignum = BIG64;
4966
4967 struct incomplete_array
4968 {
4969   int datasize;
4970   double data[];
4971 };
4972
4973 struct named_init {
4974   int number;
4975   const wchar_t *name;
4976   double average;
4977 };
4978
4979 typedef const char *ccp;
4980
4981 static inline int
4982 test_restrict (ccp restrict text)
4983 {
4984   // See if C++-style comments work.
4985   // Iterate through items via the restricted pointer.
4986   // Also check for declarations in for loops.
4987   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4988     continue;
4989   return 0;
4990 }
4991
4992 // Check varargs and va_copy.
4993 static void
4994 test_varargs (const char *format, ...)
4995 {
4996   va_list args;
4997   va_start (args, format);
4998   va_list args_copy;
4999   va_copy (args_copy, args);
5000
5001   const char *str;
5002   int number;
5003   float fnumber;
5004
5005   while (*format)
5006     {
5007       switch (*format++)
5008         {
5009         case 's': // string
5010           str = va_arg (args_copy, const char *);
5011           break;
5012         case 'd': // int
5013           number = va_arg (args_copy, int);
5014           break;
5015         case 'f': // float
5016           fnumber = va_arg (args_copy, double);
5017           break;
5018         default:
5019           break;
5020         }
5021     }
5022   va_end (args_copy);
5023   va_end (args);
5024 }
5025
5026 int
5027 main ()
5028 {
5029
5030   // Check bool.
5031   _Bool success = false;
5032
5033   // Check restrict.
5034   if (test_restrict ("String literal") == 0)
5035     success = true;
5036   char *restrict newvar = "Another string";
5037
5038   // Check varargs.
5039   test_varargs ("s, d' f .", "string", 65, 34.234);
5040   test_varargs_macros ();
5041
5042   // Check flexible array members.
5043   struct incomplete_array *ia =
5044     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5045   ia->datasize = 10;
5046   for (int i = 0; i < ia->datasize; ++i)
5047     ia->data[i] = i * 1.234;
5048
5049   // Check named initializers.
5050   struct named_init ni = {
5051     .number = 34,
5052     .name = L"Test wide string",
5053     .average = 543.34343,
5054   };
5055
5056   ni.number = 58;
5057
5058   int dynamic_array[ni.number];
5059   dynamic_array[ni.number - 1] = 543;
5060
5061   // work around unused variable warnings
5062   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5063           || dynamic_array[ni.number - 1] != 543);
5064
5065   ;
5066   return 0;
5067 }
5068 _ACEOF
5069 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5070 do
5071   CC="$ac_save_CC $ac_arg"
5072   if ac_fn_c_try_compile "$LINENO"; then :
5073   ac_cv_prog_cc_c99=$ac_arg
5074 fi
5075 rm -f core conftest.err conftest.$ac_objext
5076   test "x$ac_cv_prog_cc_c99" != "xno" && break
5077 done
5078 rm -f conftest.$ac_ext
5079 CC=$ac_save_CC
5080
5081 fi
5082 # AC_CACHE_VAL
5083 case "x$ac_cv_prog_cc_c99" in
5084   x)
5085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5086 $as_echo "none needed" >&6; } ;;
5087   xno)
5088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5089 $as_echo "unsupported" >&6; } ;;
5090   *)
5091     CC="$CC $ac_cv_prog_cc_c99"
5092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5093 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5094 esac
5095 if test "x$ac_cv_prog_cc_c99" != xno; then :
5096
5097 fi
5098
5099
5100 ac_ext=cpp
5101 ac_cpp='$CXXCPP $CPPFLAGS'
5102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5105 if test -z "$CXX"; then
5106   if test -n "$CCC"; then
5107     CXX=$CCC
5108   else
5109     if test -n "$ac_tool_prefix"; then
5110   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5111   do
5112     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if ${ac_cv_prog_CXX+:} false; then :
5117   $as_echo_n "(cached) " >&6
5118 else
5119   if test -n "$CXX"; then
5120   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125   IFS=$as_save_IFS
5126   test -z "$as_dir" && as_dir=.
5127     for ac_exec_ext in '' $ac_executable_extensions; do
5128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131     break 2
5132   fi
5133 done
5134   done
5135 IFS=$as_save_IFS
5136
5137 fi
5138 fi
5139 CXX=$ac_cv_prog_CXX
5140 if test -n "$CXX"; then
5141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5142 $as_echo "$CXX" >&6; }
5143 else
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5146 fi
5147
5148
5149     test -n "$CXX" && break
5150   done
5151 fi
5152 if test -z "$CXX"; then
5153   ac_ct_CXX=$CXX
5154   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5155 do
5156   # Extract the first word of "$ac_prog", so it can be a program name with args.
5157 set dummy $ac_prog; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5161   $as_echo_n "(cached) " >&6
5162 else
5163   if test -n "$ac_ct_CXX"; then
5164   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5168 do
5169   IFS=$as_save_IFS
5170   test -z "$as_dir" && as_dir=.
5171     for ac_exec_ext in '' $ac_executable_extensions; do
5172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173     ac_cv_prog_ac_ct_CXX="$ac_prog"
5174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175     break 2
5176   fi
5177 done
5178   done
5179 IFS=$as_save_IFS
5180
5181 fi
5182 fi
5183 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5184 if test -n "$ac_ct_CXX"; then
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5186 $as_echo "$ac_ct_CXX" >&6; }
5187 else
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5190 fi
5191
5192
5193   test -n "$ac_ct_CXX" && break
5194 done
5195
5196   if test "x$ac_ct_CXX" = x; then
5197     CXX="g++"
5198   else
5199     case $cross_compiling:$ac_tool_warned in
5200 yes:)
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5203 ac_tool_warned=yes ;;
5204 esac
5205     CXX=$ac_ct_CXX
5206   fi
5207 fi
5208
5209   fi
5210 fi
5211 # Provide some information about the compiler.
5212 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5213 set X $ac_compile
5214 ac_compiler=$2
5215 for ac_option in --version -v -V -qversion; do
5216   { { ac_try="$ac_compiler $ac_option >&5"
5217 case "(($ac_try" in
5218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219   *) ac_try_echo=$ac_try;;
5220 esac
5221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5222 $as_echo "$ac_try_echo"; } >&5
5223   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5224   ac_status=$?
5225   if test -s conftest.err; then
5226     sed '10a\
5227 ... rest of stderr output deleted ...
5228          10q' conftest.err >conftest.er1
5229     cat conftest.er1 >&5
5230   fi
5231   rm -f conftest.er1 conftest.err
5232   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5233   test $ac_status = 0; }
5234 done
5235
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5237 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5238 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5239   $as_echo_n "(cached) " >&6
5240 else
5241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h.  */
5243
5244 int
5245 main ()
5246 {
5247 #ifndef __GNUC__
5248        choke me
5249 #endif
5250
5251   ;
5252   return 0;
5253 }
5254 _ACEOF
5255 if ac_fn_cxx_try_compile "$LINENO"; then :
5256   ac_compiler_gnu=yes
5257 else
5258   ac_compiler_gnu=no
5259 fi
5260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5261 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5262
5263 fi
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5265 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5266 if test $ac_compiler_gnu = yes; then
5267   GXX=yes
5268 else
5269   GXX=
5270 fi
5271 ac_test_CXXFLAGS=${CXXFLAGS+set}
5272 ac_save_CXXFLAGS=$CXXFLAGS
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5274 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5275 if ${ac_cv_prog_cxx_g+:} false; then :
5276   $as_echo_n "(cached) " >&6
5277 else
5278   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5279    ac_cxx_werror_flag=yes
5280    ac_cv_prog_cxx_g=no
5281    CXXFLAGS="-g"
5282    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h.  */
5284
5285 int
5286 main ()
5287 {
5288
5289   ;
5290   return 0;
5291 }
5292 _ACEOF
5293 if ac_fn_cxx_try_compile "$LINENO"; then :
5294   ac_cv_prog_cxx_g=yes
5295 else
5296   CXXFLAGS=""
5297       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h.  */
5299
5300 int
5301 main ()
5302 {
5303
5304   ;
5305   return 0;
5306 }
5307 _ACEOF
5308 if ac_fn_cxx_try_compile "$LINENO"; then :
5309
5310 else
5311   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5312          CXXFLAGS="-g"
5313          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h.  */
5315
5316 int
5317 main ()
5318 {
5319
5320   ;
5321   return 0;
5322 }
5323 _ACEOF
5324 if ac_fn_cxx_try_compile "$LINENO"; then :
5325   ac_cv_prog_cxx_g=yes
5326 fi
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328 fi
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 fi
5331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5332    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5333 fi
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5335 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5336 if test "$ac_test_CXXFLAGS" = set; then
5337   CXXFLAGS=$ac_save_CXXFLAGS
5338 elif test $ac_cv_prog_cxx_g = yes; then
5339   if test "$GXX" = yes; then
5340     CXXFLAGS="-g -O2"
5341   else
5342     CXXFLAGS="-g"
5343   fi
5344 else
5345   if test "$GXX" = yes; then
5346     CXXFLAGS="-O2"
5347   else
5348     CXXFLAGS=
5349   fi
5350 fi
5351 ac_ext=c
5352 ac_cpp='$CPP $CPPFLAGS'
5353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356
5357
5358 # We must set the default linker to the linker used by gcc for the correct
5359 # operation of libtool.  If LD is not defined and we are using gcc, try to
5360 # set the LD default to the ld used by gcc.
5361 if test -z "$LD"; then
5362   if test "$GCC" = yes; then
5363     case $build in
5364     *-*-mingw*)
5365       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5366     *)
5367       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5368     esac
5369     case $gcc_prog_ld in
5370     # Accept absolute paths.
5371     [\\/]* | [A-Za-z]:[\\/]*)
5372       LD="$gcc_prog_ld" ;;
5373     esac
5374   fi
5375 fi
5376
5377 # Check whether -static-libstdc++ -static-libgcc is supported.
5378 have_static_libs=no
5379 if test "$GCC" = yes; then
5380   saved_LDFLAGS="$LDFLAGS"
5381
5382   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5384 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5385   ac_ext=cpp
5386 ac_cpp='$CXXCPP $CPPFLAGS'
5387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5390
5391
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h.  */
5394
5395 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5396 #error -static-libstdc++ not implemented
5397 #endif
5398 int main() {}
5399 _ACEOF
5400 if ac_fn_cxx_try_link "$LINENO"; then :
5401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5402 $as_echo "yes" >&6; }; have_static_libs=yes
5403 else
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext \
5408     conftest$ac_exeext conftest.$ac_ext
5409   ac_ext=c
5410 ac_cpp='$CPP $CPPFLAGS'
5411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5414
5415
5416   LDFLAGS="$saved_LDFLAGS"
5417 fi
5418
5419
5420
5421
5422 if test -n "$ac_tool_prefix"; then
5423   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5424 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_prog_GNATBIND+:} false; then :
5428   $as_echo_n "(cached) " >&6
5429 else
5430   if test -n "$GNATBIND"; then
5431   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5432 else
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5435 do
5436   IFS=$as_save_IFS
5437   test -z "$as_dir" && as_dir=.
5438     for ac_exec_ext in '' $ac_executable_extensions; do
5439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5442     break 2
5443   fi
5444 done
5445   done
5446 IFS=$as_save_IFS
5447
5448 fi
5449 fi
5450 GNATBIND=$ac_cv_prog_GNATBIND
5451 if test -n "$GNATBIND"; then
5452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5453 $as_echo "$GNATBIND" >&6; }
5454 else
5455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5457 fi
5458
5459
5460 fi
5461 if test -z "$ac_cv_prog_GNATBIND"; then
5462   ac_ct_GNATBIND=$GNATBIND
5463   # Extract the first word of "gnatbind", so it can be a program name with args.
5464 set dummy gnatbind; ac_word=$2
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5468   $as_echo_n "(cached) " >&6
5469 else
5470   if test -n "$ac_ct_GNATBIND"; then
5471   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5472 else
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5475 do
5476   IFS=$as_save_IFS
5477   test -z "$as_dir" && as_dir=.
5478     for ac_exec_ext in '' $ac_executable_extensions; do
5479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5480     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5482     break 2
5483   fi
5484 done
5485   done
5486 IFS=$as_save_IFS
5487
5488 fi
5489 fi
5490 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5491 if test -n "$ac_ct_GNATBIND"; then
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5493 $as_echo "$ac_ct_GNATBIND" >&6; }
5494 else
5495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5497 fi
5498
5499   if test "x$ac_ct_GNATBIND" = x; then
5500     GNATBIND="no"
5501   else
5502     case $cross_compiling:$ac_tool_warned in
5503 yes:)
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5506 ac_tool_warned=yes ;;
5507 esac
5508     GNATBIND=$ac_ct_GNATBIND
5509   fi
5510 else
5511   GNATBIND="$ac_cv_prog_GNATBIND"
5512 fi
5513
5514 if test -n "$ac_tool_prefix"; then
5515   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5516 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_prog_GNATMAKE+:} false; then :
5520   $as_echo_n "(cached) " >&6
5521 else
5522   if test -n "$GNATMAKE"; then
5523   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5527 do
5528   IFS=$as_save_IFS
5529   test -z "$as_dir" && as_dir=.
5530     for ac_exec_ext in '' $ac_executable_extensions; do
5531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5532     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534     break 2
5535   fi
5536 done
5537   done
5538 IFS=$as_save_IFS
5539
5540 fi
5541 fi
5542 GNATMAKE=$ac_cv_prog_GNATMAKE
5543 if test -n "$GNATMAKE"; then
5544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5545 $as_echo "$GNATMAKE" >&6; }
5546 else
5547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5549 fi
5550
5551
5552 fi
5553 if test -z "$ac_cv_prog_GNATMAKE"; then
5554   ac_ct_GNATMAKE=$GNATMAKE
5555   # Extract the first word of "gnatmake", so it can be a program name with args.
5556 set dummy gnatmake; ac_word=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5560   $as_echo_n "(cached) " >&6
5561 else
5562   if test -n "$ac_ct_GNATMAKE"; then
5563   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5564 else
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5567 do
5568   IFS=$as_save_IFS
5569   test -z "$as_dir" && as_dir=.
5570     for ac_exec_ext in '' $ac_executable_extensions; do
5571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5572     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574     break 2
5575   fi
5576 done
5577   done
5578 IFS=$as_save_IFS
5579
5580 fi
5581 fi
5582 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5583 if test -n "$ac_ct_GNATMAKE"; then
5584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5585 $as_echo "$ac_ct_GNATMAKE" >&6; }
5586 else
5587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5589 fi
5590
5591   if test "x$ac_ct_GNATMAKE" = x; then
5592     GNATMAKE="no"
5593   else
5594     case $cross_compiling:$ac_tool_warned in
5595 yes:)
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5598 ac_tool_warned=yes ;;
5599 esac
5600     GNATMAKE=$ac_ct_GNATMAKE
5601   fi
5602 else
5603   GNATMAKE="$ac_cv_prog_GNATMAKE"
5604 fi
5605
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5607 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5608 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   cat >conftest.adb <<EOF
5612 procedure conftest is begin null; end conftest;
5613 EOF
5614 acx_cv_cc_gcc_supports_ada=no
5615 # There is a bug in old released versions of GCC which causes the
5616 # driver to exit successfully when the appropriate language module
5617 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5618 # Therefore we must check for the error message as well as an
5619 # unsuccessful exit.
5620 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5621 # given a .adb file, but produce no object file.  So we must check
5622 # if an object file was really produced to guard against this.
5623 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5624 if test x"$errors" = x && test -f conftest.$ac_objext; then
5625   acx_cv_cc_gcc_supports_ada=yes
5626 fi
5627 rm -f conftest.*
5628 fi
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5630 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5631
5632 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5633   have_gnat=yes
5634 else
5635   have_gnat=no
5636 fi
5637
5638
5639
5640 if test -n "$ac_tool_prefix"; then
5641   # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5642 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644 $as_echo_n "checking for $ac_word... " >&6; }
5645 if ${ac_cv_prog_GDC+:} false; then :
5646   $as_echo_n "(cached) " >&6
5647 else
5648   if test -n "$GDC"; then
5649   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5650 else
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5653 do
5654   IFS=$as_save_IFS
5655   test -z "$as_dir" && as_dir=.
5656     for ac_exec_ext in '' $ac_executable_extensions; do
5657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658     ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660     break 2
5661   fi
5662 done
5663   done
5664 IFS=$as_save_IFS
5665
5666 fi
5667 fi
5668 GDC=$ac_cv_prog_GDC
5669 if test -n "$GDC"; then
5670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5671 $as_echo "$GDC" >&6; }
5672 else
5673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 $as_echo "no" >&6; }
5675 fi
5676
5677
5678 fi
5679 if test -z "$ac_cv_prog_GDC"; then
5680   ac_ct_GDC=$GDC
5681   # Extract the first word of "gdc", so it can be a program name with args.
5682 set dummy gdc; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5686   $as_echo_n "(cached) " >&6
5687 else
5688   if test -n "$ac_ct_GDC"; then
5689   ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5690 else
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5693 do
5694   IFS=$as_save_IFS
5695   test -z "$as_dir" && as_dir=.
5696     for ac_exec_ext in '' $ac_executable_extensions; do
5697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698     ac_cv_prog_ac_ct_GDC="gdc"
5699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700     break 2
5701   fi
5702 done
5703   done
5704 IFS=$as_save_IFS
5705
5706 fi
5707 fi
5708 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5709 if test -n "$ac_ct_GDC"; then
5710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5711 $as_echo "$ac_ct_GDC" >&6; }
5712 else
5713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5715 fi
5716
5717   if test "x$ac_ct_GDC" = x; then
5718     GDC="no"
5719   else
5720     case $cross_compiling:$ac_tool_warned in
5721 yes:)
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5724 ac_tool_warned=yes ;;
5725 esac
5726     GDC=$ac_ct_GDC
5727   fi
5728 else
5729   GDC="$ac_cv_prog_GDC"
5730 fi
5731
5732 if test "x$GDC" != xno; then
5733   have_gdc=yes
5734 else
5735   have_gdc=no
5736 fi
5737
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5739 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5740 if ${gcc_cv_prog_cmp_skip+:} false; then :
5741   $as_echo_n "(cached) " >&6
5742 else
5743    echo abfoo >t1
5744   echo cdfoo >t2
5745   gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5746   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5747     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5748       :
5749     else
5750       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5751     fi
5752   fi
5753   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5754     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5755       :
5756     else
5757       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5758     fi
5759   fi
5760   rm t1 t2
5761
5762 fi
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5764 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5765 do_compare="$gcc_cv_prog_cmp_skip"
5766
5767
5768
5769 # Check whether --enable-bootstrap was given.
5770 if test "${enable_bootstrap+set}" = set; then :
5771   enableval=$enable_bootstrap;
5772 else
5773   enable_bootstrap=default
5774 fi
5775
5776
5777 # Issue errors and warnings for invalid/strange bootstrap combinations.
5778 if test -r $srcdir/gcc/configure; then
5779   have_compiler=yes
5780 else
5781   have_compiler=no
5782 fi
5783
5784 case "$have_compiler:$host:$target:$enable_bootstrap" in
5785   *:*:*:no) ;;
5786
5787   # Default behavior.  Enable bootstrap if we have a compiler
5788   # and we are in a native configuration.
5789   yes:$build:$build:default)
5790     enable_bootstrap=yes ;;
5791
5792   *:*:*:default)
5793     enable_bootstrap=no ;;
5794
5795   # We have a compiler and we are in a native configuration, bootstrap is ok
5796   yes:$build:$build:yes)
5797     ;;
5798
5799   # Other configurations, but we have a compiler.  Assume the user knows
5800   # what he's doing.
5801   yes:*:*:yes)
5802     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5803 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5804     ;;
5805
5806   # No compiler: if they passed --enable-bootstrap explicitly, fail
5807   no:*:*:yes)
5808     as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5809
5810   # Fail if wrong command line
5811   *)
5812     as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5813     ;;
5814 esac
5815
5816 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5817 # C++11 compiler can still start the bootstrap.  Otherwise, if building GCC,
5818 # require C++11 (or higher).
5819 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5820   CXX="$CXX -std=c++11"
5821 elif test "$have_compiler" = yes; then
5822     ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
5823   ac_ext=cpp
5824 ac_cpp='$CXXCPP $CPPFLAGS'
5825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5828   ac_success=no
5829
5830       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5831 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5832 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5833   $as_echo_n "(cached) " >&6
5834 else
5835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h.  */
5837
5838
5839 // If the compiler admits that it is not ready for C++11, why torture it?
5840 // Hopefully, this will speed up the test.
5841
5842 #ifndef __cplusplus
5843
5844 #error "This is not a C++ compiler"
5845
5846 #elif __cplusplus < 201103L
5847
5848 #error "This is not a C++11 compiler"
5849
5850 #else
5851
5852 namespace cxx11
5853 {
5854
5855   namespace test_static_assert
5856   {
5857
5858     template <typename T>
5859     struct check
5860     {
5861       static_assert(sizeof(int) <= sizeof(T), "not big enough");
5862     };
5863
5864   }
5865
5866   namespace test_final_override
5867   {
5868
5869     struct Base
5870     {
5871       virtual ~Base() {}
5872       virtual void f() {}
5873     };
5874
5875     struct Derived : public Base
5876     {
5877       virtual ~Derived() override {}
5878       virtual void f() override {}
5879     };
5880
5881   }
5882
5883   namespace test_double_right_angle_brackets
5884   {
5885
5886     template < typename T >
5887     struct check {};
5888
5889     typedef check<void> single_type;
5890     typedef check<check<void>> double_type;
5891     typedef check<check<check<void>>> triple_type;
5892     typedef check<check<check<check<void>>>> quadruple_type;
5893
5894   }
5895
5896   namespace test_decltype
5897   {
5898
5899     int
5900     f()
5901     {
5902       int a = 1;
5903       decltype(a) b = 2;
5904       return a + b;
5905     }
5906
5907   }
5908
5909   namespace test_type_deduction
5910   {
5911
5912     template < typename T1, typename T2 >
5913     struct is_same
5914     {
5915       static const bool value = false;
5916     };
5917
5918     template < typename T >
5919     struct is_same<T, T>
5920     {
5921       static const bool value = true;
5922     };
5923
5924     template < typename T1, typename T2 >
5925     auto
5926     add(T1 a1, T2 a2) -> decltype(a1 + a2)
5927     {
5928       return a1 + a2;
5929     }
5930
5931     int
5932     test(const int c, volatile int v)
5933     {
5934       static_assert(is_same<int, decltype(0)>::value == true, "");
5935       static_assert(is_same<int, decltype(c)>::value == false, "");
5936       static_assert(is_same<int, decltype(v)>::value == false, "");
5937       auto ac = c;
5938       auto av = v;
5939       auto sumi = ac + av + 'x';
5940       auto sumf = ac + av + 1.0;
5941       static_assert(is_same<int, decltype(ac)>::value == true, "");
5942       static_assert(is_same<int, decltype(av)>::value == true, "");
5943       static_assert(is_same<int, decltype(sumi)>::value == true, "");
5944       static_assert(is_same<int, decltype(sumf)>::value == false, "");
5945       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5946       return (sumf > 0.0) ? sumi : add(c, v);
5947     }
5948
5949   }
5950
5951   namespace test_noexcept
5952   {
5953
5954     int f() { return 0; }
5955     int g() noexcept { return 0; }
5956
5957     static_assert(noexcept(f()) == false, "");
5958     static_assert(noexcept(g()) == true, "");
5959
5960   }
5961
5962   namespace test_constexpr
5963   {
5964
5965     template < typename CharT >
5966     unsigned long constexpr
5967     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5968     {
5969       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5970     }
5971
5972     template < typename CharT >
5973     unsigned long constexpr
5974     strlen_c(const CharT *const s) noexcept
5975     {
5976       return strlen_c_r(s, 0UL);
5977     }
5978
5979     static_assert(strlen_c("") == 0UL, "");
5980     static_assert(strlen_c("1") == 1UL, "");
5981     static_assert(strlen_c("example") == 7UL, "");
5982     static_assert(strlen_c("another\0example") == 7UL, "");
5983
5984   }
5985
5986   namespace test_rvalue_references
5987   {
5988
5989     template < int N >
5990     struct answer
5991     {
5992       static constexpr int value = N;
5993     };
5994
5995     answer<1> f(int&)       { return answer<1>(); }
5996     answer<2> f(const int&) { return answer<2>(); }
5997     answer<3> f(int&&)      { return answer<3>(); }
5998
5999     void
6000     test()
6001     {
6002       int i = 0;
6003       const int c = 0;
6004       static_assert(decltype(f(i))::value == 1, "");
6005       static_assert(decltype(f(c))::value == 2, "");
6006       static_assert(decltype(f(0))::value == 3, "");
6007     }
6008
6009   }
6010
6011   namespace test_uniform_initialization
6012   {
6013
6014     struct test
6015     {
6016       static const int zero {};
6017       static const int one {1};
6018     };
6019
6020     static_assert(test::zero == 0, "");
6021     static_assert(test::one == 1, "");
6022
6023   }
6024
6025   namespace test_lambdas
6026   {
6027
6028     void
6029     test1()
6030     {
6031       auto lambda1 = [](){};
6032       auto lambda2 = lambda1;
6033       lambda1();
6034       lambda2();
6035     }
6036
6037     int
6038     test2()
6039     {
6040       auto a = [](int i, int j){ return i + j; }(1, 2);
6041       auto b = []() -> int { return '0'; }();
6042       auto c = [=](){ return a + b; }();
6043       auto d = [&](){ return c; }();
6044       auto e = [a, &b](int x) mutable {
6045         const auto identity = [](int y){ return y; };
6046         for (auto i = 0; i < a; ++i)
6047           a += b--;
6048         return x + identity(a + b);
6049       }(0);
6050       return a + b + c + d + e;
6051     }
6052
6053     int
6054     test3()
6055     {
6056       const auto nullary = [](){ return 0; };
6057       const auto unary = [](int x){ return x; };
6058       using nullary_t = decltype(nullary);
6059       using unary_t = decltype(unary);
6060       const auto higher1st = [](nullary_t f){ return f(); };
6061       const auto higher2nd = [unary](nullary_t f1){
6062         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6063       };
6064       return higher1st(nullary) + higher2nd(nullary)(unary);
6065     }
6066
6067   }
6068
6069   namespace test_variadic_templates
6070   {
6071
6072     template <int...>
6073     struct sum;
6074
6075     template <int N0, int... N1toN>
6076     struct sum<N0, N1toN...>
6077     {
6078       static constexpr auto value = N0 + sum<N1toN...>::value;
6079     };
6080
6081     template <>
6082     struct sum<>
6083     {
6084       static constexpr auto value = 0;
6085     };
6086
6087     static_assert(sum<>::value == 0, "");
6088     static_assert(sum<1>::value == 1, "");
6089     static_assert(sum<23>::value == 23, "");
6090     static_assert(sum<1, 2>::value == 3, "");
6091     static_assert(sum<5, 5, 11>::value == 21, "");
6092     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6093
6094   }
6095
6096   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6097   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6098   // because of this.
6099   namespace test_template_alias_sfinae
6100   {
6101
6102     struct foo {};
6103
6104     template<typename T>
6105     using member = typename T::member_type;
6106
6107     template<typename T>
6108     void func(...) {}
6109
6110     template<typename T>
6111     void func(member<T>*) {}
6112
6113     void test();
6114
6115     void test() { func<foo>(0); }
6116
6117   }
6118
6119 }  // namespace cxx11
6120
6121 #endif  // __cplusplus >= 201103L
6122
6123
6124
6125 _ACEOF
6126 if ac_fn_cxx_try_compile "$LINENO"; then :
6127   ax_cv_cxx_compile_cxx11=yes
6128 else
6129   ax_cv_cxx_compile_cxx11=no
6130 fi
6131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132 fi
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6134 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6135     if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6136       ac_success=yes
6137     fi
6138
6139     if test x$ac_success = xno; then
6140     for alternative in ${ax_cxx_compile_alternatives}; do
6141       switch="-std=gnu++${alternative}"
6142       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6143       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6144 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6145 if eval \${$cachevar+:} false; then :
6146   $as_echo_n "(cached) " >&6
6147 else
6148   ac_save_CXX="$CXX"
6149          CXX="$CXX $switch"
6150          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h.  */
6152
6153
6154 // If the compiler admits that it is not ready for C++11, why torture it?
6155 // Hopefully, this will speed up the test.
6156
6157 #ifndef __cplusplus
6158
6159 #error "This is not a C++ compiler"
6160
6161 #elif __cplusplus < 201103L
6162
6163 #error "This is not a C++11 compiler"
6164
6165 #else
6166
6167 namespace cxx11
6168 {
6169
6170   namespace test_static_assert
6171   {
6172
6173     template <typename T>
6174     struct check
6175     {
6176       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6177     };
6178
6179   }
6180
6181   namespace test_final_override
6182   {
6183
6184     struct Base
6185     {
6186       virtual ~Base() {}
6187       virtual void f() {}
6188     };
6189
6190     struct Derived : public Base
6191     {
6192       virtual ~Derived() override {}
6193       virtual void f() override {}
6194     };
6195
6196   }
6197
6198   namespace test_double_right_angle_brackets
6199   {
6200
6201     template < typename T >
6202     struct check {};
6203
6204     typedef check<void> single_type;
6205     typedef check<check<void>> double_type;
6206     typedef check<check<check<void>>> triple_type;
6207     typedef check<check<check<check<void>>>> quadruple_type;
6208
6209   }
6210
6211   namespace test_decltype
6212   {
6213
6214     int
6215     f()
6216     {
6217       int a = 1;
6218       decltype(a) b = 2;
6219       return a + b;
6220     }
6221
6222   }
6223
6224   namespace test_type_deduction
6225   {
6226
6227     template < typename T1, typename T2 >
6228     struct is_same
6229     {
6230       static const bool value = false;
6231     };
6232
6233     template < typename T >
6234     struct is_same<T, T>
6235     {
6236       static const bool value = true;
6237     };
6238
6239     template < typename T1, typename T2 >
6240     auto
6241     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6242     {
6243       return a1 + a2;
6244     }
6245
6246     int
6247     test(const int c, volatile int v)
6248     {
6249       static_assert(is_same<int, decltype(0)>::value == true, "");
6250       static_assert(is_same<int, decltype(c)>::value == false, "");
6251       static_assert(is_same<int, decltype(v)>::value == false, "");
6252       auto ac = c;
6253       auto av = v;
6254       auto sumi = ac + av + 'x';
6255       auto sumf = ac + av + 1.0;
6256       static_assert(is_same<int, decltype(ac)>::value == true, "");
6257       static_assert(is_same<int, decltype(av)>::value == true, "");
6258       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6259       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6260       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6261       return (sumf > 0.0) ? sumi : add(c, v);
6262     }
6263
6264   }
6265
6266   namespace test_noexcept
6267   {
6268
6269     int f() { return 0; }
6270     int g() noexcept { return 0; }
6271
6272     static_assert(noexcept(f()) == false, "");
6273     static_assert(noexcept(g()) == true, "");
6274
6275   }
6276
6277   namespace test_constexpr
6278   {
6279
6280     template < typename CharT >
6281     unsigned long constexpr
6282     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6283     {
6284       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6285     }
6286
6287     template < typename CharT >
6288     unsigned long constexpr
6289     strlen_c(const CharT *const s) noexcept
6290     {
6291       return strlen_c_r(s, 0UL);
6292     }
6293
6294     static_assert(strlen_c("") == 0UL, "");
6295     static_assert(strlen_c("1") == 1UL, "");
6296     static_assert(strlen_c("example") == 7UL, "");
6297     static_assert(strlen_c("another\0example") == 7UL, "");
6298
6299   }
6300
6301   namespace test_rvalue_references
6302   {
6303
6304     template < int N >
6305     struct answer
6306     {
6307       static constexpr int value = N;
6308     };
6309
6310     answer<1> f(int&)       { return answer<1>(); }
6311     answer<2> f(const int&) { return answer<2>(); }
6312     answer<3> f(int&&)      { return answer<3>(); }
6313
6314     void
6315     test()
6316     {
6317       int i = 0;
6318       const int c = 0;
6319       static_assert(decltype(f(i))::value == 1, "");
6320       static_assert(decltype(f(c))::value == 2, "");
6321       static_assert(decltype(f(0))::value == 3, "");
6322     }
6323
6324   }
6325
6326   namespace test_uniform_initialization
6327   {
6328
6329     struct test
6330     {
6331       static const int zero {};
6332       static const int one {1};
6333     };
6334
6335     static_assert(test::zero == 0, "");
6336     static_assert(test::one == 1, "");
6337
6338   }
6339
6340   namespace test_lambdas
6341   {
6342
6343     void
6344     test1()
6345     {
6346       auto lambda1 = [](){};
6347       auto lambda2 = lambda1;
6348       lambda1();
6349       lambda2();
6350     }
6351
6352     int
6353     test2()
6354     {
6355       auto a = [](int i, int j){ return i + j; }(1, 2);
6356       auto b = []() -> int { return '0'; }();
6357       auto c = [=](){ return a + b; }();
6358       auto d = [&](){ return c; }();
6359       auto e = [a, &b](int x) mutable {
6360         const auto identity = [](int y){ return y; };
6361         for (auto i = 0; i < a; ++i)
6362           a += b--;
6363         return x + identity(a + b);
6364       }(0);
6365       return a + b + c + d + e;
6366     }
6367
6368     int
6369     test3()
6370     {
6371       const auto nullary = [](){ return 0; };
6372       const auto unary = [](int x){ return x; };
6373       using nullary_t = decltype(nullary);
6374       using unary_t = decltype(unary);
6375       const auto higher1st = [](nullary_t f){ return f(); };
6376       const auto higher2nd = [unary](nullary_t f1){
6377         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6378       };
6379       return higher1st(nullary) + higher2nd(nullary)(unary);
6380     }
6381
6382   }
6383
6384   namespace test_variadic_templates
6385   {
6386
6387     template <int...>
6388     struct sum;
6389
6390     template <int N0, int... N1toN>
6391     struct sum<N0, N1toN...>
6392     {
6393       static constexpr auto value = N0 + sum<N1toN...>::value;
6394     };
6395
6396     template <>
6397     struct sum<>
6398     {
6399       static constexpr auto value = 0;
6400     };
6401
6402     static_assert(sum<>::value == 0, "");
6403     static_assert(sum<1>::value == 1, "");
6404     static_assert(sum<23>::value == 23, "");
6405     static_assert(sum<1, 2>::value == 3, "");
6406     static_assert(sum<5, 5, 11>::value == 21, "");
6407     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6408
6409   }
6410
6411   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6412   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6413   // because of this.
6414   namespace test_template_alias_sfinae
6415   {
6416
6417     struct foo {};
6418
6419     template<typename T>
6420     using member = typename T::member_type;
6421
6422     template<typename T>
6423     void func(...) {}
6424
6425     template<typename T>
6426     void func(member<T>*) {}
6427
6428     void test();
6429
6430     void test() { func<foo>(0); }
6431
6432   }
6433
6434 }  // namespace cxx11
6435
6436 #endif  // __cplusplus >= 201103L
6437
6438
6439
6440 _ACEOF
6441 if ac_fn_cxx_try_compile "$LINENO"; then :
6442   eval $cachevar=yes
6443 else
6444   eval $cachevar=no
6445 fi
6446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447          CXX="$ac_save_CXX"
6448 fi
6449 eval ac_res=\$$cachevar
6450                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6451 $as_echo "$ac_res" >&6; }
6452       if eval test x\$$cachevar = xyes; then
6453         CXX="$CXX $switch"
6454         if test -n "$CXXCPP" ; then
6455           CXXCPP="$CXXCPP $switch"
6456         fi
6457         ac_success=yes
6458         break
6459       fi
6460     done
6461   fi
6462
6463     if test x$ac_success = xno; then
6464                 for alternative in ${ax_cxx_compile_alternatives}; do
6465       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6466         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6467         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6468 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6469 if eval \${$cachevar+:} false; then :
6470   $as_echo_n "(cached) " >&6
6471 else
6472   ac_save_CXX="$CXX"
6473            CXX="$CXX $switch"
6474            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h.  */
6476
6477
6478 // If the compiler admits that it is not ready for C++11, why torture it?
6479 // Hopefully, this will speed up the test.
6480
6481 #ifndef __cplusplus
6482
6483 #error "This is not a C++ compiler"
6484
6485 #elif __cplusplus < 201103L
6486
6487 #error "This is not a C++11 compiler"
6488
6489 #else
6490
6491 namespace cxx11
6492 {
6493
6494   namespace test_static_assert
6495   {
6496
6497     template <typename T>
6498     struct check
6499     {
6500       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6501     };
6502
6503   }
6504
6505   namespace test_final_override
6506   {
6507
6508     struct Base
6509     {
6510       virtual ~Base() {}
6511       virtual void f() {}
6512     };
6513
6514     struct Derived : public Base
6515     {
6516       virtual ~Derived() override {}
6517       virtual void f() override {}
6518     };
6519
6520   }
6521
6522   namespace test_double_right_angle_brackets
6523   {
6524
6525     template < typename T >
6526     struct check {};
6527
6528     typedef check<void> single_type;
6529     typedef check<check<void>> double_type;
6530     typedef check<check<check<void>>> triple_type;
6531     typedef check<check<check<check<void>>>> quadruple_type;
6532
6533   }
6534
6535   namespace test_decltype
6536   {
6537
6538     int
6539     f()
6540     {
6541       int a = 1;
6542       decltype(a) b = 2;
6543       return a + b;
6544     }
6545
6546   }
6547
6548   namespace test_type_deduction
6549   {
6550
6551     template < typename T1, typename T2 >
6552     struct is_same
6553     {
6554       static const bool value = false;
6555     };
6556
6557     template < typename T >
6558     struct is_same<T, T>
6559     {
6560       static const bool value = true;
6561     };
6562
6563     template < typename T1, typename T2 >
6564     auto
6565     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6566     {
6567       return a1 + a2;
6568     }
6569
6570     int
6571     test(const int c, volatile int v)
6572     {
6573       static_assert(is_same<int, decltype(0)>::value == true, "");
6574       static_assert(is_same<int, decltype(c)>::value == false, "");
6575       static_assert(is_same<int, decltype(v)>::value == false, "");
6576       auto ac = c;
6577       auto av = v;
6578       auto sumi = ac + av + 'x';
6579       auto sumf = ac + av + 1.0;
6580       static_assert(is_same<int, decltype(ac)>::value == true, "");
6581       static_assert(is_same<int, decltype(av)>::value == true, "");
6582       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6583       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6584       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6585       return (sumf > 0.0) ? sumi : add(c, v);
6586     }
6587
6588   }
6589
6590   namespace test_noexcept
6591   {
6592
6593     int f() { return 0; }
6594     int g() noexcept { return 0; }
6595
6596     static_assert(noexcept(f()) == false, "");
6597     static_assert(noexcept(g()) == true, "");
6598
6599   }
6600
6601   namespace test_constexpr
6602   {
6603
6604     template < typename CharT >
6605     unsigned long constexpr
6606     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6607     {
6608       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6609     }
6610
6611     template < typename CharT >
6612     unsigned long constexpr
6613     strlen_c(const CharT *const s) noexcept
6614     {
6615       return strlen_c_r(s, 0UL);
6616     }
6617
6618     static_assert(strlen_c("") == 0UL, "");
6619     static_assert(strlen_c("1") == 1UL, "");
6620     static_assert(strlen_c("example") == 7UL, "");
6621     static_assert(strlen_c("another\0example") == 7UL, "");
6622
6623   }
6624
6625   namespace test_rvalue_references
6626   {
6627
6628     template < int N >
6629     struct answer
6630     {
6631       static constexpr int value = N;
6632     };
6633
6634     answer<1> f(int&)       { return answer<1>(); }
6635     answer<2> f(const int&) { return answer<2>(); }
6636     answer<3> f(int&&)      { return answer<3>(); }
6637
6638     void
6639     test()
6640     {
6641       int i = 0;
6642       const int c = 0;
6643       static_assert(decltype(f(i))::value == 1, "");
6644       static_assert(decltype(f(c))::value == 2, "");
6645       static_assert(decltype(f(0))::value == 3, "");
6646     }
6647
6648   }
6649
6650   namespace test_uniform_initialization
6651   {
6652
6653     struct test
6654     {
6655       static const int zero {};
6656       static const int one {1};
6657     };
6658
6659     static_assert(test::zero == 0, "");
6660     static_assert(test::one == 1, "");
6661
6662   }
6663
6664   namespace test_lambdas
6665   {
6666
6667     void
6668     test1()
6669     {
6670       auto lambda1 = [](){};
6671       auto lambda2 = lambda1;
6672       lambda1();
6673       lambda2();
6674     }
6675
6676     int
6677     test2()
6678     {
6679       auto a = [](int i, int j){ return i + j; }(1, 2);
6680       auto b = []() -> int { return '0'; }();
6681       auto c = [=](){ return a + b; }();
6682       auto d = [&](){ return c; }();
6683       auto e = [a, &b](int x) mutable {
6684         const auto identity = [](int y){ return y; };
6685         for (auto i = 0; i < a; ++i)
6686           a += b--;
6687         return x + identity(a + b);
6688       }(0);
6689       return a + b + c + d + e;
6690     }
6691
6692     int
6693     test3()
6694     {
6695       const auto nullary = [](){ return 0; };
6696       const auto unary = [](int x){ return x; };
6697       using nullary_t = decltype(nullary);
6698       using unary_t = decltype(unary);
6699       const auto higher1st = [](nullary_t f){ return f(); };
6700       const auto higher2nd = [unary](nullary_t f1){
6701         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6702       };
6703       return higher1st(nullary) + higher2nd(nullary)(unary);
6704     }
6705
6706   }
6707
6708   namespace test_variadic_templates
6709   {
6710
6711     template <int...>
6712     struct sum;
6713
6714     template <int N0, int... N1toN>
6715     struct sum<N0, N1toN...>
6716     {
6717       static constexpr auto value = N0 + sum<N1toN...>::value;
6718     };
6719
6720     template <>
6721     struct sum<>
6722     {
6723       static constexpr auto value = 0;
6724     };
6725
6726     static_assert(sum<>::value == 0, "");
6727     static_assert(sum<1>::value == 1, "");
6728     static_assert(sum<23>::value == 23, "");
6729     static_assert(sum<1, 2>::value == 3, "");
6730     static_assert(sum<5, 5, 11>::value == 21, "");
6731     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6732
6733   }
6734
6735   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6736   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6737   // because of this.
6738   namespace test_template_alias_sfinae
6739   {
6740
6741     struct foo {};
6742
6743     template<typename T>
6744     using member = typename T::member_type;
6745
6746     template<typename T>
6747     void func(...) {}
6748
6749     template<typename T>
6750     void func(member<T>*) {}
6751
6752     void test();
6753
6754     void test() { func<foo>(0); }
6755
6756   }
6757
6758 }  // namespace cxx11
6759
6760 #endif  // __cplusplus >= 201103L
6761
6762
6763
6764 _ACEOF
6765 if ac_fn_cxx_try_compile "$LINENO"; then :
6766   eval $cachevar=yes
6767 else
6768   eval $cachevar=no
6769 fi
6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771            CXX="$ac_save_CXX"
6772 fi
6773 eval ac_res=\$$cachevar
6774                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6775 $as_echo "$ac_res" >&6; }
6776         if eval test x\$$cachevar = xyes; then
6777           CXX="$CXX $switch"
6778           if test -n "$CXXCPP" ; then
6779             CXXCPP="$CXXCPP $switch"
6780           fi
6781           ac_success=yes
6782           break
6783         fi
6784       done
6785       if test x$ac_success = xyes; then
6786         break
6787       fi
6788     done
6789   fi
6790
6791   ac_ext=c
6792 ac_cpp='$CPP $CPPFLAGS'
6793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6796
6797   if test x$ax_cxx_compile_cxx11_required = xtrue; then
6798     if test x$ac_success = xno; then
6799       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6800     fi
6801   fi
6802   if test x$ac_success = xno; then
6803     HAVE_CXX11=0
6804     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6805 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6806   else
6807     HAVE_CXX11=1
6808
6809 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6810
6811   fi
6812
6813
6814
6815   if test "${build}" != "${host}"; then
6816       ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
6817   ac_ext=cpp
6818 ac_cpp='$CXXCPP $CPPFLAGS'
6819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6822   ac_success=no
6823       ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6824     ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6825     ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6826     CXX="$CXX_FOR_BUILD"
6827     CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6828     CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6829       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6830 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6831 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6832   $as_echo_n "(cached) " >&6
6833 else
6834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h.  */
6836
6837
6838 // If the compiler admits that it is not ready for C++11, why torture it?
6839 // Hopefully, this will speed up the test.
6840
6841 #ifndef __cplusplus
6842
6843 #error "This is not a C++ compiler"
6844
6845 #elif __cplusplus < 201103L
6846
6847 #error "This is not a C++11 compiler"
6848
6849 #else
6850
6851 namespace cxx11
6852 {
6853
6854   namespace test_static_assert
6855   {
6856
6857     template <typename T>
6858     struct check
6859     {
6860       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6861     };
6862
6863   }
6864
6865   namespace test_final_override
6866   {
6867
6868     struct Base
6869     {
6870       virtual ~Base() {}
6871       virtual void f() {}
6872     };
6873
6874     struct Derived : public Base
6875     {
6876       virtual ~Derived() override {}
6877       virtual void f() override {}
6878     };
6879
6880   }
6881
6882   namespace test_double_right_angle_brackets
6883   {
6884
6885     template < typename T >
6886     struct check {};
6887
6888     typedef check<void> single_type;
6889     typedef check<check<void>> double_type;
6890     typedef check<check<check<void>>> triple_type;
6891     typedef check<check<check<check<void>>>> quadruple_type;
6892
6893   }
6894
6895   namespace test_decltype
6896   {
6897
6898     int
6899     f()
6900     {
6901       int a = 1;
6902       decltype(a) b = 2;
6903       return a + b;
6904     }
6905
6906   }
6907
6908   namespace test_type_deduction
6909   {
6910
6911     template < typename T1, typename T2 >
6912     struct is_same
6913     {
6914       static const bool value = false;
6915     };
6916
6917     template < typename T >
6918     struct is_same<T, T>
6919     {
6920       static const bool value = true;
6921     };
6922
6923     template < typename T1, typename T2 >
6924     auto
6925     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6926     {
6927       return a1 + a2;
6928     }
6929
6930     int
6931     test(const int c, volatile int v)
6932     {
6933       static_assert(is_same<int, decltype(0)>::value == true, "");
6934       static_assert(is_same<int, decltype(c)>::value == false, "");
6935       static_assert(is_same<int, decltype(v)>::value == false, "");
6936       auto ac = c;
6937       auto av = v;
6938       auto sumi = ac + av + 'x';
6939       auto sumf = ac + av + 1.0;
6940       static_assert(is_same<int, decltype(ac)>::value == true, "");
6941       static_assert(is_same<int, decltype(av)>::value == true, "");
6942       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6943       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6944       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6945       return (sumf > 0.0) ? sumi : add(c, v);
6946     }
6947
6948   }
6949
6950   namespace test_noexcept
6951   {
6952
6953     int f() { return 0; }
6954     int g() noexcept { return 0; }
6955
6956     static_assert(noexcept(f()) == false, "");
6957     static_assert(noexcept(g()) == true, "");
6958
6959   }
6960
6961   namespace test_constexpr
6962   {
6963
6964     template < typename CharT >
6965     unsigned long constexpr
6966     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6967     {
6968       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6969     }
6970
6971     template < typename CharT >
6972     unsigned long constexpr
6973     strlen_c(const CharT *const s) noexcept
6974     {
6975       return strlen_c_r(s, 0UL);
6976     }
6977
6978     static_assert(strlen_c("") == 0UL, "");
6979     static_assert(strlen_c("1") == 1UL, "");
6980     static_assert(strlen_c("example") == 7UL, "");
6981     static_assert(strlen_c("another\0example") == 7UL, "");
6982
6983   }
6984
6985   namespace test_rvalue_references
6986   {
6987
6988     template < int N >
6989     struct answer
6990     {
6991       static constexpr int value = N;
6992     };
6993
6994     answer<1> f(int&)       { return answer<1>(); }
6995     answer<2> f(const int&) { return answer<2>(); }
6996     answer<3> f(int&&)      { return answer<3>(); }
6997
6998     void
6999     test()
7000     {
7001       int i = 0;
7002       const int c = 0;
7003       static_assert(decltype(f(i))::value == 1, "");
7004       static_assert(decltype(f(c))::value == 2, "");
7005       static_assert(decltype(f(0))::value == 3, "");
7006     }
7007
7008   }
7009
7010   namespace test_uniform_initialization
7011   {
7012
7013     struct test
7014     {
7015       static const int zero {};
7016       static const int one {1};
7017     };
7018
7019     static_assert(test::zero == 0, "");
7020     static_assert(test::one == 1, "");
7021
7022   }
7023
7024   namespace test_lambdas
7025   {
7026
7027     void
7028     test1()
7029     {
7030       auto lambda1 = [](){};
7031       auto lambda2 = lambda1;
7032       lambda1();
7033       lambda2();
7034     }
7035
7036     int
7037     test2()
7038     {
7039       auto a = [](int i, int j){ return i + j; }(1, 2);
7040       auto b = []() -> int { return '0'; }();
7041       auto c = [=](){ return a + b; }();
7042       auto d = [&](){ return c; }();
7043       auto e = [a, &b](int x) mutable {
7044         const auto identity = [](int y){ return y; };
7045         for (auto i = 0; i < a; ++i)
7046           a += b--;
7047         return x + identity(a + b);
7048       }(0);
7049       return a + b + c + d + e;
7050     }
7051
7052     int
7053     test3()
7054     {
7055       const auto nullary = [](){ return 0; };
7056       const auto unary = [](int x){ return x; };
7057       using nullary_t = decltype(nullary);
7058       using unary_t = decltype(unary);
7059       const auto higher1st = [](nullary_t f){ return f(); };
7060       const auto higher2nd = [unary](nullary_t f1){
7061         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7062       };
7063       return higher1st(nullary) + higher2nd(nullary)(unary);
7064     }
7065
7066   }
7067
7068   namespace test_variadic_templates
7069   {
7070
7071     template <int...>
7072     struct sum;
7073
7074     template <int N0, int... N1toN>
7075     struct sum<N0, N1toN...>
7076     {
7077       static constexpr auto value = N0 + sum<N1toN...>::value;
7078     };
7079
7080     template <>
7081     struct sum<>
7082     {
7083       static constexpr auto value = 0;
7084     };
7085
7086     static_assert(sum<>::value == 0, "");
7087     static_assert(sum<1>::value == 1, "");
7088     static_assert(sum<23>::value == 23, "");
7089     static_assert(sum<1, 2>::value == 3, "");
7090     static_assert(sum<5, 5, 11>::value == 21, "");
7091     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7092
7093   }
7094
7095   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7096   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7097   // because of this.
7098   namespace test_template_alias_sfinae
7099   {
7100
7101     struct foo {};
7102
7103     template<typename T>
7104     using member = typename T::member_type;
7105
7106     template<typename T>
7107     void func(...) {}
7108
7109     template<typename T>
7110     void func(member<T>*) {}
7111
7112     void test();
7113
7114     void test() { func<foo>(0); }
7115
7116   }
7117
7118 }  // namespace cxx11
7119
7120 #endif  // __cplusplus >= 201103L
7121
7122
7123
7124 _ACEOF
7125 if ac_fn_cxx_try_compile "$LINENO"; then :
7126   ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7127 else
7128   ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7129 fi
7130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131 fi
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7133 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7134     if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7135       ac_success=yes
7136     fi
7137
7138     if test x$ac_success = xno; then
7139     for alternative in ${ax_cxx_compile_alternatives}; do
7140       switch="-std=gnu++${alternative}"
7141       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7142       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7143 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7144 if eval \${$cachevar+:} false; then :
7145   $as_echo_n "(cached) " >&6
7146 else
7147   ac_save_CXX="$CXX"
7148          CXX="$CXX $switch"
7149          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h.  */
7151
7152
7153 // If the compiler admits that it is not ready for C++11, why torture it?
7154 // Hopefully, this will speed up the test.
7155
7156 #ifndef __cplusplus
7157
7158 #error "This is not a C++ compiler"
7159
7160 #elif __cplusplus < 201103L
7161
7162 #error "This is not a C++11 compiler"
7163
7164 #else
7165
7166 namespace cxx11
7167 {
7168
7169   namespace test_static_assert
7170   {
7171
7172     template <typename T>
7173     struct check
7174     {
7175       static_assert(sizeof(int) <= sizeof(T), "not big enough");
7176     };
7177
7178   }
7179
7180   namespace test_final_override
7181   {
7182
7183     struct Base
7184     {
7185       virtual ~Base() {}
7186       virtual void f() {}
7187     };
7188
7189     struct Derived : public Base
7190     {
7191       virtual ~Derived() override {}
7192       virtual void f() override {}
7193     };
7194
7195   }
7196
7197   namespace test_double_right_angle_brackets
7198   {
7199
7200     template < typename T >
7201     struct check {};
7202
7203     typedef check<void> single_type;
7204     typedef check<check<void>> double_type;
7205     typedef check<check<check<void>>> triple_type;
7206     typedef check<check<check<check<void>>>> quadruple_type;
7207
7208   }
7209
7210   namespace test_decltype
7211   {
7212
7213     int
7214     f()
7215     {
7216       int a = 1;
7217       decltype(a) b = 2;
7218       return a + b;
7219     }
7220
7221   }
7222
7223   namespace test_type_deduction
7224   {
7225
7226     template < typename T1, typename T2 >
7227     struct is_same
7228     {
7229       static const bool value = false;
7230     };
7231
7232     template < typename T >
7233     struct is_same<T, T>
7234     {
7235       static const bool value = true;
7236     };
7237
7238     template < typename T1, typename T2 >
7239     auto
7240     add(T1 a1, T2 a2) -> decltype(a1 + a2)
7241     {
7242       return a1 + a2;
7243     }
7244
7245     int
7246     test(const int c, volatile int v)
7247     {
7248       static_assert(is_same<int, decltype(0)>::value == true, "");
7249       static_assert(is_same<int, decltype(c)>::value == false, "");
7250       static_assert(is_same<int, decltype(v)>::value == false, "");
7251       auto ac = c;
7252       auto av = v;
7253       auto sumi = ac + av + 'x';
7254       auto sumf = ac + av + 1.0;
7255       static_assert(is_same<int, decltype(ac)>::value == true, "");
7256       static_assert(is_same<int, decltype(av)>::value == true, "");
7257       static_assert(is_same<int, decltype(sumi)>::value == true, "");
7258       static_assert(is_same<int, decltype(sumf)>::value == false, "");
7259       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7260       return (sumf > 0.0) ? sumi : add(c, v);
7261     }
7262
7263   }
7264
7265   namespace test_noexcept
7266   {
7267
7268     int f() { return 0; }
7269     int g() noexcept { return 0; }
7270
7271     static_assert(noexcept(f()) == false, "");
7272     static_assert(noexcept(g()) == true, "");
7273
7274   }
7275
7276   namespace test_constexpr
7277   {
7278
7279     template < typename CharT >
7280     unsigned long constexpr
7281     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7282     {
7283       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7284     }
7285
7286     template < typename CharT >
7287     unsigned long constexpr
7288     strlen_c(const CharT *const s) noexcept
7289     {
7290       return strlen_c_r(s, 0UL);
7291     }
7292
7293     static_assert(strlen_c("") == 0UL, "");
7294     static_assert(strlen_c("1") == 1UL, "");
7295     static_assert(strlen_c("example") == 7UL, "");
7296     static_assert(strlen_c("another\0example") == 7UL, "");
7297
7298   }
7299
7300   namespace test_rvalue_references
7301   {
7302
7303     template < int N >
7304     struct answer
7305     {
7306       static constexpr int value = N;
7307     };
7308
7309     answer<1> f(int&)       { return answer<1>(); }
7310     answer<2> f(const int&) { return answer<2>(); }
7311     answer<3> f(int&&)      { return answer<3>(); }
7312
7313     void
7314     test()
7315     {
7316       int i = 0;
7317       const int c = 0;
7318       static_assert(decltype(f(i))::value == 1, "");
7319       static_assert(decltype(f(c))::value == 2, "");
7320       static_assert(decltype(f(0))::value == 3, "");
7321     }
7322
7323   }
7324
7325   namespace test_uniform_initialization
7326   {
7327
7328     struct test
7329     {
7330       static const int zero {};
7331       static const int one {1};
7332     };
7333
7334     static_assert(test::zero == 0, "");
7335     static_assert(test::one == 1, "");
7336
7337   }
7338
7339   namespace test_lambdas
7340   {
7341
7342     void
7343     test1()
7344     {
7345       auto lambda1 = [](){};
7346       auto lambda2 = lambda1;
7347       lambda1();
7348       lambda2();
7349     }
7350
7351     int
7352     test2()
7353     {
7354       auto a = [](int i, int j){ return i + j; }(1, 2);
7355       auto b = []() -> int { return '0'; }();
7356       auto c = [=](){ return a + b; }();
7357       auto d = [&](){ return c; }();
7358       auto e = [a, &b](int x) mutable {
7359         const auto identity = [](int y){ return y; };
7360         for (auto i = 0; i < a; ++i)
7361           a += b--;
7362         return x + identity(a + b);
7363       }(0);
7364       return a + b + c + d + e;
7365     }
7366
7367     int
7368     test3()
7369     {
7370       const auto nullary = [](){ return 0; };
7371       const auto unary = [](int x){ return x; };
7372       using nullary_t = decltype(nullary);
7373       using unary_t = decltype(unary);
7374       const auto higher1st = [](nullary_t f){ return f(); };
7375       const auto higher2nd = [unary](nullary_t f1){
7376         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7377       };
7378       return higher1st(nullary) + higher2nd(nullary)(unary);
7379     }
7380
7381   }
7382
7383   namespace test_variadic_templates
7384   {
7385
7386     template <int...>
7387     struct sum;
7388
7389     template <int N0, int... N1toN>
7390     struct sum<N0, N1toN...>
7391     {
7392       static constexpr auto value = N0 + sum<N1toN...>::value;
7393     };
7394
7395     template <>
7396     struct sum<>
7397     {
7398       static constexpr auto value = 0;
7399     };
7400
7401     static_assert(sum<>::value == 0, "");
7402     static_assert(sum<1>::value == 1, "");
7403     static_assert(sum<23>::value == 23, "");
7404     static_assert(sum<1, 2>::value == 3, "");
7405     static_assert(sum<5, 5, 11>::value == 21, "");
7406     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7407
7408   }
7409
7410   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7411   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7412   // because of this.
7413   namespace test_template_alias_sfinae
7414   {
7415
7416     struct foo {};
7417
7418     template<typename T>
7419     using member = typename T::member_type;
7420
7421     template<typename T>
7422     void func(...) {}
7423
7424     template<typename T>
7425     void func(member<T>*) {}
7426
7427     void test();
7428
7429     void test() { func<foo>(0); }
7430
7431   }
7432
7433 }  // namespace cxx11
7434
7435 #endif  // __cplusplus >= 201103L
7436
7437
7438
7439 _ACEOF
7440 if ac_fn_cxx_try_compile "$LINENO"; then :
7441   eval $cachevar=yes
7442 else
7443   eval $cachevar=no
7444 fi
7445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7446          CXX="$ac_save_CXX"
7447 fi
7448 eval ac_res=\$$cachevar
7449                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7450 $as_echo "$ac_res" >&6; }
7451       if eval test x\$$cachevar = xyes; then
7452         CXX="$CXX $switch"
7453         if test -n "$CXXCPP" ; then
7454           CXXCPP="$CXXCPP $switch"
7455         fi
7456         ac_success=yes
7457         break
7458       fi
7459     done
7460   fi
7461
7462     if test x$ac_success = xno; then
7463                 for alternative in ${ax_cxx_compile_alternatives}; do
7464       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7465         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7466         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7467 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7468 if eval \${$cachevar+:} false; then :
7469   $as_echo_n "(cached) " >&6
7470 else
7471   ac_save_CXX="$CXX"
7472            CXX="$CXX $switch"
7473            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h.  */
7475
7476
7477 // If the compiler admits that it is not ready for C++11, why torture it?
7478 // Hopefully, this will speed up the test.
7479
7480 #ifndef __cplusplus
7481
7482 #error "This is not a C++ compiler"
7483
7484 #elif __cplusplus < 201103L
7485
7486 #error "This is not a C++11 compiler"
7487
7488 #else
7489
7490 namespace cxx11
7491 {
7492
7493   namespace test_static_assert
7494   {
7495
7496     template <typename T>
7497     struct check
7498     {
7499       static_assert(sizeof(int) <= sizeof(T), "not big enough");
7500     };
7501
7502   }
7503
7504   namespace test_final_override
7505   {
7506
7507     struct Base
7508     {
7509       virtual ~Base() {}
7510       virtual void f() {}
7511     };
7512
7513     struct Derived : public Base
7514     {
7515       virtual ~Derived() override {}
7516       virtual void f() override {}
7517     };
7518
7519   }
7520
7521   namespace test_double_right_angle_brackets
7522   {
7523
7524     template < typename T >
7525     struct check {};
7526
7527     typedef check<void> single_type;
7528     typedef check<check<void>> double_type;
7529     typedef check<check<check<void>>> triple_type;
7530     typedef check<check<check<check<void>>>> quadruple_type;
7531
7532   }
7533
7534   namespace test_decltype
7535   {
7536
7537     int
7538     f()
7539     {
7540       int a = 1;
7541       decltype(a) b = 2;
7542       return a + b;
7543     }
7544
7545   }
7546
7547   namespace test_type_deduction
7548   {
7549
7550     template < typename T1, typename T2 >
7551     struct is_same
7552     {
7553       static const bool value = false;
7554     };
7555
7556     template < typename T >
7557     struct is_same<T, T>
7558     {
7559       static const bool value = true;
7560     };
7561
7562     template < typename T1, typename T2 >
7563     auto
7564     add(T1 a1, T2 a2) -> decltype(a1 + a2)
7565     {
7566       return a1 + a2;
7567     }
7568
7569     int
7570     test(const int c, volatile int v)
7571     {
7572       static_assert(is_same<int, decltype(0)>::value == true, "");
7573       static_assert(is_same<int, decltype(c)>::value == false, "");
7574       static_assert(is_same<int, decltype(v)>::value == false, "");
7575       auto ac = c;
7576       auto av = v;
7577       auto sumi = ac + av + 'x';
7578       auto sumf = ac + av + 1.0;
7579       static_assert(is_same<int, decltype(ac)>::value == true, "");
7580       static_assert(is_same<int, decltype(av)>::value == true, "");
7581       static_assert(is_same<int, decltype(sumi)>::value == true, "");
7582       static_assert(is_same<int, decltype(sumf)>::value == false, "");
7583       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7584       return (sumf > 0.0) ? sumi : add(c, v);
7585     }
7586
7587   }
7588
7589   namespace test_noexcept
7590   {
7591
7592     int f() { return 0; }
7593     int g() noexcept { return 0; }
7594
7595     static_assert(noexcept(f()) == false, "");
7596     static_assert(noexcept(g()) == true, "");
7597
7598   }
7599
7600   namespace test_constexpr
7601   {
7602
7603     template < typename CharT >
7604     unsigned long constexpr
7605     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7606     {
7607       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7608     }
7609
7610     template < typename CharT >
7611     unsigned long constexpr
7612     strlen_c(const CharT *const s) noexcept
7613     {
7614       return strlen_c_r(s, 0UL);
7615     }
7616
7617     static_assert(strlen_c("") == 0UL, "");
7618     static_assert(strlen_c("1") == 1UL, "");
7619     static_assert(strlen_c("example") == 7UL, "");
7620     static_assert(strlen_c("another\0example") == 7UL, "");
7621
7622   }
7623
7624   namespace test_rvalue_references
7625   {
7626
7627     template < int N >
7628     struct answer
7629     {
7630       static constexpr int value = N;
7631     };
7632
7633     answer<1> f(int&)       { return answer<1>(); }
7634     answer<2> f(const int&) { return answer<2>(); }
7635     answer<3> f(int&&)      { return answer<3>(); }
7636
7637     void
7638     test()
7639     {
7640       int i = 0;
7641       const int c = 0;
7642       static_assert(decltype(f(i))::value == 1, "");
7643       static_assert(decltype(f(c))::value == 2, "");
7644       static_assert(decltype(f(0))::value == 3, "");
7645     }
7646
7647   }
7648
7649   namespace test_uniform_initialization
7650   {
7651
7652     struct test
7653     {
7654       static const int zero {};
7655       static const int one {1};
7656     };
7657
7658     static_assert(test::zero == 0, "");
7659     static_assert(test::one == 1, "");
7660
7661   }
7662
7663   namespace test_lambdas
7664   {
7665
7666     void
7667     test1()
7668     {
7669       auto lambda1 = [](){};
7670       auto lambda2 = lambda1;
7671       lambda1();
7672       lambda2();
7673     }
7674
7675     int
7676     test2()
7677     {
7678       auto a = [](int i, int j){ return i + j; }(1, 2);
7679       auto b = []() -> int { return '0'; }();
7680       auto c = [=](){ return a + b; }();
7681       auto d = [&](){ return c; }();
7682       auto e = [a, &b](int x) mutable {
7683         const auto identity = [](int y){ return y; };
7684         for (auto i = 0; i < a; ++i)
7685           a += b--;
7686         return x + identity(a + b);
7687       }(0);
7688       return a + b + c + d + e;
7689     }
7690
7691     int
7692     test3()
7693     {
7694       const auto nullary = [](){ return 0; };
7695       const auto unary = [](int x){ return x; };
7696       using nullary_t = decltype(nullary);
7697       using unary_t = decltype(unary);
7698       const auto higher1st = [](nullary_t f){ return f(); };
7699       const auto higher2nd = [unary](nullary_t f1){
7700         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7701       };
7702       return higher1st(nullary) + higher2nd(nullary)(unary);
7703     }
7704
7705   }
7706
7707   namespace test_variadic_templates
7708   {
7709
7710     template <int...>
7711     struct sum;
7712
7713     template <int N0, int... N1toN>
7714     struct sum<N0, N1toN...>
7715     {
7716       static constexpr auto value = N0 + sum<N1toN...>::value;
7717     };
7718
7719     template <>
7720     struct sum<>
7721     {
7722       static constexpr auto value = 0;
7723     };
7724
7725     static_assert(sum<>::value == 0, "");
7726     static_assert(sum<1>::value == 1, "");
7727     static_assert(sum<23>::value == 23, "");
7728     static_assert(sum<1, 2>::value == 3, "");
7729     static_assert(sum<5, 5, 11>::value == 21, "");
7730     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7731
7732   }
7733
7734   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7735   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7736   // because of this.
7737   namespace test_template_alias_sfinae
7738   {
7739
7740     struct foo {};
7741
7742     template<typename T>
7743     using member = typename T::member_type;
7744
7745     template<typename T>
7746     void func(...) {}
7747
7748     template<typename T>
7749     void func(member<T>*) {}
7750
7751     void test();
7752
7753     void test() { func<foo>(0); }
7754
7755   }
7756
7757 }  // namespace cxx11
7758
7759 #endif  // __cplusplus >= 201103L
7760
7761
7762
7763 _ACEOF
7764 if ac_fn_cxx_try_compile "$LINENO"; then :
7765   eval $cachevar=yes
7766 else
7767   eval $cachevar=no
7768 fi
7769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770            CXX="$ac_save_CXX"
7771 fi
7772 eval ac_res=\$$cachevar
7773                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7774 $as_echo "$ac_res" >&6; }
7775         if eval test x\$$cachevar = xyes; then
7776           CXX="$CXX $switch"
7777           if test -n "$CXXCPP" ; then
7778             CXXCPP="$CXXCPP $switch"
7779           fi
7780           ac_success=yes
7781           break
7782         fi
7783       done
7784       if test x$ac_success = xyes; then
7785         break
7786       fi
7787     done
7788   fi
7789       CXX_FOR_BUILD="$CXX"
7790     CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7791     CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7792     CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7793     CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7794     CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7795   ac_ext=c
7796 ac_cpp='$CPP $CPPFLAGS'
7797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7800
7801   if test x$ax_cxx_compile_cxx11_required = xtrue; then
7802     if test x$ac_success = xno; then
7803       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7804     fi
7805   fi
7806   if test x$ac_success = xno; then
7807     HAVE_CXX11_FOR_BUILD=0
7808     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7809 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7810   else
7811     HAVE_CXX11_FOR_BUILD=1
7812
7813 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7814
7815   fi
7816
7817
7818   fi
7819 fi
7820
7821 # Check whether --enable-pgo-build was given.
7822 if test "${enable_pgo_build+set}" = set; then :
7823   enableval=$enable_pgo_build; enable_pgo_build=$enableval
7824 else
7825   enable_pgo_build=no
7826 fi
7827
7828
7829 # Issue errors and warnings for invalid/strange PGO build combinations.
7830 case "$have_compiler:$host:$target:$enable_pgo_build" in
7831   *:*:*:no) ;;
7832
7833   # Allow the PGO build only if we aren't building a compiler and
7834   # we are in a native configuration.
7835   no:$build:$build:yes | no:$build:$build:lto) ;;
7836
7837   # Disallow the PGO bootstrap if we are building a compiler.
7838   yes:*:*:yes | yes:*:*:lto)
7839     as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7840
7841   *)
7842     as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7843     ;;
7844 esac
7845
7846 if test "$enable_pgo_build" != "no"; then
7847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7848 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7849   old_CFLAGS="$CFLAGS"
7850   PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7851   CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7852
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h.  */
7855 int foo;
7856 _ACEOF
7857 if ac_fn_c_try_compile "$LINENO"; then :
7858
7859 else
7860   PGO_BUILD_GEN_CFLAGS=
7861 fi
7862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863   CFLAGS="$old_CFLAGS"
7864   if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7865     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7866 $as_echo "yes" >&6; }
7867     PGO_BUILD_USE_CFLAGS="-fprofile-use"
7868   else
7869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7871     as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7872   fi
7873
7874   if test "$enable_pgo_build" = "lto"; then
7875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7876 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7877     old_CFLAGS="$CFLAGS"
7878     PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7879     CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7880     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7881 /* end confdefs.h.  */
7882 int foo;
7883 _ACEOF
7884 if ac_fn_c_try_compile "$LINENO"; then :
7885
7886 else
7887   PGO_BUILD_LTO_CFLAGS=
7888 fi
7889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890     CFLAGS="$old_CFLAGS"
7891     if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7892       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7893 $as_echo "yes" >&6; }
7894     else
7895       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7897       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7898 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7899     fi
7900   fi
7901 fi
7902
7903
7904
7905
7906 # Used for setting $lt_cv_objdir
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7908 $as_echo_n "checking for objdir... " >&6; }
7909 if ${lt_cv_objdir+:} false; then :
7910   $as_echo_n "(cached) " >&6
7911 else
7912   rm -f .libs 2>/dev/null
7913 mkdir .libs 2>/dev/null
7914 if test -d .libs; then
7915   lt_cv_objdir=.libs
7916 else
7917   # MS-DOS does not allow filenames that begin with a dot.
7918   lt_cv_objdir=_libs
7919 fi
7920 rmdir .libs 2>/dev/null
7921 fi
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7923 $as_echo "$lt_cv_objdir" >&6; }
7924 objdir=$lt_cv_objdir
7925
7926
7927
7928
7929
7930 cat >>confdefs.h <<_ACEOF
7931 #define LT_OBJDIR "$lt_cv_objdir/"
7932 _ACEOF
7933
7934
7935
7936 # Check for GMP, MPFR and MPC
7937 gmplibs="-lmpc -lmpfr -lgmp"
7938 gmpinc=
7939 have_gmp=no
7940
7941 # Specify a location for mpc
7942 # check for this first so it ends up on the link line before mpfr.
7943
7944 # Check whether --with-mpc was given.
7945 if test "${with_mpc+set}" = set; then :
7946   withval=$with_mpc;
7947 fi
7948
7949
7950 # Check whether --with-mpc-include was given.
7951 if test "${with_mpc_include+set}" = set; then :
7952   withval=$with_mpc_include;
7953 fi
7954
7955
7956 # Check whether --with-mpc-lib was given.
7957 if test "${with_mpc_lib+set}" = set; then :
7958   withval=$with_mpc_lib;
7959 fi
7960
7961
7962 if test "x$with_mpc" != x; then
7963   gmplibs="-L$with_mpc/lib $gmplibs"
7964   gmpinc="-I$with_mpc/include $gmpinc"
7965 fi
7966 if test "x$with_mpc_include" != x; then
7967   gmpinc="-I$with_mpc_include $gmpinc"
7968 fi
7969 if test "x$with_mpc_lib" != x; then
7970   gmplibs="-L$with_mpc_lib $gmplibs"
7971 fi
7972 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7973   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7974   gmpinc='-I$$s/mpc/src '"$gmpinc"
7975   # Do not test the mpc version.  Assume that it is sufficient, since
7976   # it is in the source tree, and the library has not been built yet
7977   # but it would be included on the link line in the version check below
7978   # hence making the test fail.
7979   have_gmp=yes
7980 fi
7981
7982 # Specify a location for mpfr
7983 # check for this first so it ends up on the link line before gmp.
7984
7985 # Check whether --with-mpfr-dir was given.
7986 if test "${with_mpfr_dir+set}" = set; then :
7987   withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
7988 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7989 fi
7990
7991
7992
7993 # Check whether --with-mpfr was given.
7994 if test "${with_mpfr+set}" = set; then :
7995   withval=$with_mpfr;
7996 fi
7997
7998
7999 # Check whether --with-mpfr-include was given.
8000 if test "${with_mpfr_include+set}" = set; then :
8001   withval=$with_mpfr_include;
8002 fi
8003
8004
8005 # Check whether --with-mpfr-lib was given.
8006 if test "${with_mpfr_lib+set}" = set; then :
8007   withval=$with_mpfr_lib;
8008 fi
8009
8010
8011 if test "x$with_mpfr" != x; then
8012   gmplibs="-L$with_mpfr/lib $gmplibs"
8013   gmpinc="-I$with_mpfr/include $gmpinc"
8014 fi
8015 if test "x$with_mpfr_include" != x; then
8016   gmpinc="-I$with_mpfr_include $gmpinc"
8017 fi
8018 if test "x$with_mpfr_lib" != x; then
8019   gmplibs="-L$with_mpfr_lib $gmplibs"
8020 fi
8021 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8022   # MPFR v3.1.0 moved the sources into a src sub-directory.
8023   if ! test -d ${srcdir}/mpfr/src; then
8024     as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8025   fi
8026   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8027   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8028   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8029   # Do not test the mpfr version.  Assume that it is sufficient, since
8030   # it is in the source tree, and the library has not been built yet
8031   # but it would be included on the link line in the version check below
8032   # hence making the test fail.
8033   have_gmp=yes
8034 fi
8035
8036 # Specify a location for gmp
8037
8038 # Check whether --with-gmp-dir was given.
8039 if test "${with_gmp_dir+set}" = set; then :
8040   withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
8041 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
8042 fi
8043
8044
8045
8046 # Check whether --with-gmp was given.
8047 if test "${with_gmp+set}" = set; then :
8048   withval=$with_gmp;
8049 fi
8050
8051
8052 # Check whether --with-gmp-include was given.
8053 if test "${with_gmp_include+set}" = set; then :
8054   withval=$with_gmp_include;
8055 fi
8056
8057
8058 # Check whether --with-gmp-lib was given.
8059 if test "${with_gmp_lib+set}" = set; then :
8060   withval=$with_gmp_lib;
8061 fi
8062
8063
8064
8065 if test "x$with_gmp" != x; then
8066   gmplibs="-L$with_gmp/lib $gmplibs"
8067   gmpinc="-I$with_gmp/include $gmpinc"
8068 fi
8069 if test "x$with_gmp_include" != x; then
8070   gmpinc="-I$with_gmp_include $gmpinc"
8071 fi
8072 if test "x$with_gmp_lib" != x; then
8073   gmplibs="-L$with_gmp_lib $gmplibs"
8074 fi
8075 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8076   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8077   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8078   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8079   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8080   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8081   # Do not test the gmp version.  Assume that it is sufficient, since
8082   # it is in the source tree, and the library has not been built yet
8083   # but it would be included on the link line in the version check below
8084   # hence making the test fail.
8085   have_gmp=yes
8086 fi
8087
8088 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
8089   have_gmp=yes
8090   saved_CFLAGS="$CFLAGS"
8091   CFLAGS="$CFLAGS $gmpinc"
8092   # Check for the recommended and required versions of GMP.
8093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8094 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096 /* end confdefs.h.  */
8097 #include "gmp.h"
8098 int
8099 main ()
8100 {
8101
8102   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8103   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8104   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8105   choke me
8106   #endif
8107
8108   ;
8109   return 0;
8110 }
8111 _ACEOF
8112 if ac_fn_c_try_compile "$LINENO"; then :
8113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h.  */
8115 #include <gmp.h>
8116 int
8117 main ()
8118 {
8119
8120   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8121   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8122   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8123   choke me
8124   #endif
8125
8126   ;
8127   return 0;
8128 }
8129 _ACEOF
8130 if ac_fn_c_try_compile "$LINENO"; then :
8131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8132 $as_echo "yes" >&6; }
8133 else
8134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8135 $as_echo "buggy but acceptable" >&6; }
8136 fi
8137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138 else
8139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }; have_gmp=no
8141 fi
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143
8144   # If we have GMP, check the MPFR version.
8145   if test x"$have_gmp" = xyes; then
8146     # Check for the recommended and required versions of MPFR.
8147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8148 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8149     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h.  */
8151 #include <gmp.h>
8152     #include <mpfr.h>
8153 int
8154 main ()
8155 {
8156
8157     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8158     choke me
8159     #endif
8160
8161   ;
8162   return 0;
8163 }
8164 _ACEOF
8165 if ac_fn_c_try_compile "$LINENO"; then :
8166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h.  */
8168 #include <gmp.h>
8169     #include <mpfr.h>
8170 int
8171 main ()
8172 {
8173
8174     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8175     choke me
8176     #endif
8177
8178   ;
8179   return 0;
8180 }
8181 _ACEOF
8182 if ac_fn_c_try_compile "$LINENO"; then :
8183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8184 $as_echo "yes" >&6; }
8185 else
8186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8187 $as_echo "buggy but acceptable" >&6; }
8188 fi
8189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190 else
8191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }; have_gmp=no
8193 fi
8194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195   fi
8196
8197   # Check for the MPC header version.
8198   if test x"$have_gmp" = xyes ; then
8199     # Check for the recommended and required versions of MPC.
8200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8201 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8202     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h.  */
8204 #include <mpc.h>
8205 int
8206 main ()
8207 {
8208
8209     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8210     choke me
8211     #endif
8212
8213   ;
8214   return 0;
8215 }
8216 _ACEOF
8217 if ac_fn_c_try_compile "$LINENO"; then :
8218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h.  */
8220 #include <mpc.h>
8221 int
8222 main ()
8223 {
8224
8225     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8226     choke me
8227     #endif
8228
8229   ;
8230   return 0;
8231 }
8232 _ACEOF
8233 if ac_fn_c_try_compile "$LINENO"; then :
8234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8235 $as_echo "yes" >&6; }
8236 else
8237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8238 $as_echo "buggy but acceptable" >&6; }
8239 fi
8240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8241 else
8242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }; have_gmp=no
8244 fi
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246   fi
8247
8248   # Now check the MPFR library.
8249   if test x"$have_gmp" = xyes; then
8250     saved_LIBS="$LIBS"
8251     LIBS="$LIBS $gmplibs"
8252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8253 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8254     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h.  */
8256 #include <mpc.h>
8257 int
8258 main ()
8259 {
8260
8261     mpfr_t n;
8262     mpfr_t x;
8263     mpc_t c;
8264     int t;
8265     mpfr_init (n);
8266     mpfr_init (x);
8267     mpfr_atan2 (n, n, x, MPFR_RNDN);
8268     mpfr_erfc (n, x, MPFR_RNDN);
8269     mpfr_subnormalize (x, t, MPFR_RNDN);
8270     mpfr_clear(n);
8271     mpfr_clear(x);
8272     mpc_init2 (c, 53);
8273     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8274     mpc_cosh (c, c, MPC_RNDNN);
8275     mpc_pow (c, c, c, MPC_RNDNN);
8276     mpc_acosh (c, c, MPC_RNDNN);
8277     mpc_clear (c);
8278
8279   ;
8280   return 0;
8281 }
8282 _ACEOF
8283 if ac_fn_c_try_link "$LINENO"; then :
8284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8285 $as_echo "yes" >&6; }
8286 else
8287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288 $as_echo "no" >&6; }; have_gmp=no
8289 fi
8290 rm -f core conftest.err conftest.$ac_objext \
8291     conftest$ac_exeext conftest.$ac_ext
8292     LIBS="$saved_LIBS"
8293   fi
8294
8295   CFLAGS="$saved_CFLAGS"
8296
8297 # The library versions listed in the error message below should match
8298 # the HARD-minimums enforced above.
8299   if test x$have_gmp != xyes; then
8300     as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8301 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8302 their locations.  Source code for these libraries can be found at
8303 their respective hosting sites as well as at
8304 https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
8305 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
8306 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8307 make sure that you have installed both the libraries and the header
8308 files.  They may be located in separate packages." "$LINENO" 5
8309   fi
8310 fi
8311
8312 # Flags needed for both GMP, MPFR and/or MPC.
8313
8314
8315
8316
8317
8318
8319
8320 # Libraries to use for stage1 or when not bootstrapping.
8321
8322 # Check whether --with-stage1-libs was given.
8323 if test "${with_stage1_libs+set}" = set; then :
8324   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8325    stage1_libs=
8326  else
8327    stage1_libs=$withval
8328  fi
8329 else
8330   stage1_libs=
8331 fi
8332
8333
8334
8335 # Whether or not to use -static-libstdc++ and -static-libgcc.  The
8336 # default is yes if gcc is being built; no otherwise.  The reason for
8337 # this default is that gdb is sometimes linked against GNU Source
8338 # Highlight, which is a shared library that uses C++ exceptions.  In
8339 # this case, -static-libstdc++ will cause crashes.
8340
8341 # Check whether --with-static-standard-libraries was given.
8342 if test "${with_static_standard_libraries+set}" = set; then :
8343   withval=$with_static_standard_libraries;
8344 else
8345   with_static_standard_libraries=auto
8346 fi
8347
8348 if test "$with_static_standard_libraries" = auto; then
8349   with_static_standard_libraries=$have_compiler
8350 fi
8351
8352 # Linker flags to use for stage1 or when not bootstrapping.
8353
8354 # Check whether --with-stage1-ldflags was given.
8355 if test "${with_stage1_ldflags+set}" = set; then :
8356   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8357    stage1_ldflags=
8358  else
8359    stage1_ldflags=$withval
8360  fi
8361 else
8362   stage1_ldflags=
8363  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8364  # if supported.  But if the user explicitly specified the libraries to use,
8365  # trust that they are doing what they want.
8366  if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8367      -a "$have_static_libs" = yes; then
8368    stage1_ldflags="-static-libstdc++ -static-libgcc"
8369  fi
8370 fi
8371
8372
8373
8374 # Libraries to use for stage2 and later builds.
8375
8376 # Check whether --with-boot-libs was given.
8377 if test "${with_boot_libs+set}" = set; then :
8378   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8379    poststage1_libs=
8380  else
8381    poststage1_libs=$withval
8382  fi
8383 else
8384   poststage1_libs=
8385 fi
8386
8387
8388
8389 # Linker flags to use for stage2 and later builds.
8390
8391 # Check whether --with-boot-ldflags was given.
8392 if test "${with_boot_ldflags+set}" = set; then :
8393   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8394    poststage1_ldflags=
8395  else
8396    poststage1_ldflags=$withval
8397  fi
8398 else
8399   poststage1_ldflags=
8400  # In stages 2 and 3, default to linking libstdc++ and libgcc
8401  # statically.  But if the user explicitly specified the libraries to
8402  # use, trust that they are doing what they want.
8403  if test "$poststage1_libs" = ""; then
8404    poststage1_ldflags="-static-libstdc++ -static-libgcc"
8405  fi
8406 fi
8407
8408
8409
8410 # GCC GRAPHITE dependency isl.
8411 # Basic setup is inlined here, actual checks are in config/isl.m4
8412
8413
8414 # Check whether --with-isl was given.
8415 if test "${with_isl+set}" = set; then :
8416   withval=$with_isl;
8417 fi
8418
8419
8420 # Treat --without-isl as a request to disable
8421 # GRAPHITE support and skip all following checks.
8422 if test "x$with_isl" != "xno"; then
8423   # Check for isl
8424
8425
8426 # Check whether --with-isl-include was given.
8427 if test "${with_isl_include+set}" = set; then :
8428   withval=$with_isl_include;
8429 fi
8430
8431
8432 # Check whether --with-isl-lib was given.
8433 if test "${with_isl_lib+set}" = set; then :
8434   withval=$with_isl_lib;
8435 fi
8436
8437
8438   # Check whether --enable-isl-version-check was given.
8439 if test "${enable_isl_version_check+set}" = set; then :
8440   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8441 else
8442   ENABLE_ISL_CHECK=yes
8443 fi
8444
8445
8446   # Initialize isllibs and islinc.
8447   case $with_isl in
8448     no)
8449       isllibs=
8450       islinc=
8451       ;;
8452     "" | yes)
8453       ;;
8454     *)
8455       isllibs="-L$with_isl/lib"
8456       islinc="-I$with_isl/include"
8457       ;;
8458   esac
8459   if test "x${with_isl_include}" != x ; then
8460     islinc="-I$with_isl_include"
8461   fi
8462   if test "x${with_isl_lib}" != x; then
8463     isllibs="-L$with_isl_lib"
8464   fi
8465         if test "x${islinc}" = x && test "x${isllibs}" = x \
8466      && test -d ${srcdir}/isl; then
8467     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8468     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8469     ENABLE_ISL_CHECK=no
8470     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8471 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8472   fi
8473
8474   isllibs="${isllibs} -lisl"
8475
8476
8477
8478   if test "${ENABLE_ISL_CHECK}" = yes ; then
8479     _isl_saved_CFLAGS=$CFLAGS
8480     _isl_saved_LDFLAGS=$LDFLAGS
8481     _isl_saved_LIBS=$LIBS
8482
8483     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8484     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8485     LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8486
8487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8488 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8489     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h.  */
8491 #include <isl/schedule.h>
8492 int
8493 main ()
8494 {
8495 isl_options_set_schedule_serialize_sccs (NULL, 0);
8496   ;
8497   return 0;
8498 }
8499 _ACEOF
8500 if ac_fn_c_try_link "$LINENO"; then :
8501   gcc_cv_isl=yes
8502 else
8503   gcc_cv_isl=no
8504 fi
8505 rm -f core conftest.err conftest.$ac_objext \
8506     conftest$ac_exeext conftest.$ac_ext
8507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8508 $as_echo "$gcc_cv_isl" >&6; }
8509
8510     if test "${gcc_cv_isl}" = no ; then
8511       { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8512 $as_echo "required isl version is 0.15 or later" >&6; }
8513     fi
8514
8515     CFLAGS=$_isl_saved_CFLAGS
8516     LDFLAGS=$_isl_saved_LDFLAGS
8517     LIBS=$_isl_saved_LIBS
8518   fi
8519
8520
8521
8522
8523
8524
8525   if test "x${with_isl}" = xno; then
8526     graphite_requested=no
8527   elif test "x${with_isl}" != x \
8528     || test "x${with_isl_include}" != x \
8529     || test "x${with_isl_lib}" != x ; then
8530     graphite_requested=yes
8531   else
8532     graphite_requested=no
8533   fi
8534
8535
8536
8537   if test "${gcc_cv_isl}" = no ; then
8538     isllibs=
8539     islinc=
8540   fi
8541
8542   if test "${graphite_requested}" = yes \
8543     && test "x${isllibs}" = x \
8544     && test "x${islinc}" = x ; then
8545
8546     as_fn_error $? "Unable to find a usable isl.  See config.log for details." "$LINENO" 5
8547   fi
8548
8549
8550 fi
8551
8552 # If the isl check failed, disable builds of in-tree variant of isl
8553 if test "x$with_isl" = xno ||
8554    test "x$gcc_cv_isl" = xno; then
8555   noconfigdirs="$noconfigdirs isl"
8556   islinc=
8557 fi
8558
8559
8560
8561
8562 # Check for LTO support.
8563 # Check whether --enable-lto was given.
8564 if test "${enable_lto+set}" = set; then :
8565   enableval=$enable_lto; enable_lto=$enableval
8566 else
8567   enable_lto=yes; default_enable_lto=yes
8568 fi
8569
8570
8571
8572
8573
8574 target_elf=no
8575 case $target in
8576   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8577   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8578   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8579   nvptx-*-none)
8580     target_elf=no
8581     ;;
8582   *)
8583     target_elf=yes
8584     ;;
8585 esac
8586
8587 if test $target_elf = yes; then :
8588   # ELF platforms build the lto-plugin always.
8589   build_lto_plugin=yes
8590
8591 else
8592   if test x"$default_enable_lto" = x"yes" ; then
8593     case $target in
8594       *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8595       # On other non-ELF platforms, LTO has yet to be validated.
8596       *) enable_lto=no ;;
8597     esac
8598   else
8599   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8600   # It would also be nice to check the binutils support, but we don't
8601   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
8602   # warn during gcc/ subconfigure; unless you're bootstrapping with
8603   # -flto it won't be needed until after installation anyway.
8604     case $target in
8605       *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8606       *) if test x"$enable_lto" = x"yes"; then
8607         as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8608         fi
8609       ;;
8610     esac
8611   fi
8612   # Among non-ELF, only Windows platforms support the lto-plugin so far.
8613   # Build it unless LTO was explicitly disabled.
8614   case $target in
8615     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8616     *) ;;
8617   esac
8618
8619 fi
8620
8621
8622 # Check whether --enable-linker-plugin-configure-flags was given.
8623 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8624   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8625 else
8626   extra_linker_plugin_configure_flags=
8627 fi
8628
8629
8630 # Check whether --enable-linker-plugin-flags was given.
8631 if test "${enable_linker_plugin_flags+set}" = set; then :
8632   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8633 else
8634   extra_linker_plugin_flags=
8635 fi
8636
8637
8638
8639 # Enable --enable-host-shared.
8640 # Checked early to determine whether jit is an 'all' language
8641 # Check whether --enable-host-shared was given.
8642 if test "${enable_host_shared+set}" = set; then :
8643   enableval=$enable_host_shared; host_shared=$enableval
8644  case $target in
8645    x86_64-*-darwin* | aarch64-*-darwin*)
8646      if test x$host_shared != xyes ; then
8647        # PIC is the default, and actually cannot be switched off.
8648        echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8649        host_shared=yes
8650      fi ;;
8651   *) ;;
8652  esac
8653 else
8654   case $target in
8655   x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8656   *) host_shared=no ;;
8657  esac
8658 fi
8659
8660
8661
8662 # By default, C and C++ are the only stage 1 languages.
8663 stage1_languages=,c,
8664
8665 # Target libraries that we bootstrap.
8666 bootstrap_target_libs=,target-libgcc,
8667
8668 # Figure out what language subdirectories are present.
8669 # Look if the user specified --enable-languages="..."; if not, use
8670 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8671 # go away some day.
8672 # NB:  embedded tabs in this IF block -- do not untabify
8673 if test -d ${srcdir}/gcc; then
8674   if test x"${enable_languages+set}" != xset; then
8675     if test x"${LANGUAGES+set}" = xset; then
8676       enable_languages="${LANGUAGES}"
8677         echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8678     else
8679       enable_languages=default
8680     fi
8681   else
8682     if test x"${enable_languages}" = x ||
8683        test x"${enable_languages}" = xyes;
8684        then
8685       echo configure.ac: --enable-languages needs at least one language argument 1>&2
8686       exit 1
8687     fi
8688   fi
8689   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
8690
8691   # 'f95' is the old name for the 'fortran' language. We issue a warning
8692   # and make the substitution.
8693   case ,${enable_languages}, in
8694     *,f95,*)
8695       echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8696       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8697       ;;
8698   esac
8699
8700   # If bootstrapping, C++ must be enabled.
8701   case ",$enable_languages,:$enable_bootstrap" in
8702     *,c++,*:*) ;;
8703     *:yes)
8704       if test -f ${srcdir}/gcc/cp/config-lang.in; then
8705         enable_languages="${enable_languages},c++"
8706       else
8707         as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8708       fi
8709       ;;
8710   esac
8711
8712   # First scan to see if an enabled language requires some other language.
8713   # We assume that a given config-lang.in will list all the language
8714   # front ends it requires, even if some are required indirectly.
8715   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8716     case ${lang_frag} in
8717       ..) ;;
8718       # The odd quoting in the next line works around
8719       # an apparent bug in bash 1.12 on linux.
8720       ${srcdir}/gcc/[*]/config-lang.in) ;;
8721       *)
8722         # From the config-lang.in, get $language, $lang_requires, and
8723         # $lang_requires_boot_languages.
8724         language=
8725         lang_requires=
8726         lang_requires_boot_languages=
8727         # set srcdir during sourcing lang_frag to the gcc dir.
8728         # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8729         # polutes this shell
8730         saved_srcdir=${srcdir}
8731         srcdir=${srcdir}/gcc . ${lang_frag}
8732         srcdir=${saved_srcdir}
8733         for other in ${lang_requires} ${lang_requires_boot_languages}; do
8734           case ,${enable_languages}, in
8735             *,$other,*) ;;
8736             *,default,*) ;;
8737             *,all,*) ;;
8738             *,$language,*)
8739               echo " \`$other' language required by \`$language'; enabling" 1>&2
8740               enable_languages="${enable_languages},${other}"
8741               ;;
8742           esac
8743         done
8744         for other in ${lang_requires_boot_languages} ; do
8745           if test "$other" != "c"; then
8746             case ,${enable_stage1_languages}, in
8747               *,$other,*) ;;
8748               *,default,*) ;;
8749               *,all,*) ;;
8750               *)
8751                 case ,${enable_languages}, in
8752                   *,$language,*)
8753                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8754                     enable_stage1_languages="$enable_stage1_languages,${other}"
8755                     ;;
8756                 esac
8757                 ;;
8758             esac
8759           fi
8760         done
8761         ;;
8762     esac
8763   done
8764
8765   new_enable_languages=,c,
8766
8767   # If LTO is enabled, add the LTO front end.
8768   if test "$enable_lto" = "yes" ; then
8769     case ,${enable_languages}, in
8770       *,lto,*) ;;
8771       *) enable_languages="${enable_languages},lto" ;;
8772     esac
8773     if test "${build_lto_plugin}" = "yes" ; then
8774       configdirs="$configdirs lto-plugin"
8775     fi
8776   fi
8777
8778   # If we're building an offloading compiler, add the LTO front end.
8779   if test x"$enable_as_accelerator_for" != x ; then
8780     case ,${enable_languages}, in
8781       *,lto,*) ;;
8782       *) enable_languages="${enable_languages},lto" ;;
8783     esac
8784   fi
8785
8786   missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8787   potential_languages=,c,
8788
8789   enabled_target_libs=
8790   disabled_target_libs=
8791
8792   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8793     case ${lang_frag} in
8794       ..) ;;
8795       # The odd quoting in the next line works around
8796       # an apparent bug in bash 1.12 on linux.
8797       ${srcdir}/gcc/[*]/config-lang.in) ;;
8798       *)
8799         # From the config-lang.in, get $language, $target_libs,
8800         # $lang_dirs, $boot_language, and $build_by_default
8801         language=
8802         target_libs=
8803         lang_dirs=
8804         subdir_requires=
8805         boot_language=no
8806         build_by_default=yes
8807         # set srcdir during sourcing.  See above about save & restore
8808         saved_srcdir=${srcdir}
8809         srcdir=${srcdir}/gcc . ${lang_frag}
8810         srcdir=${saved_srcdir}
8811         if test x${language} = x; then
8812           echo "${lang_frag} doesn't set \$language." 1>&2
8813           exit 1
8814         fi
8815
8816         if test "$language" = "c++"; then
8817           boot_language=yes
8818         fi
8819
8820         add_this_lang=no
8821         # C is always enabled, so no need to add it again
8822         if test "$language" != "c"; then
8823           case ,${enable_languages}, in
8824             *,${language},*)
8825               # Language was explicitly selected; include it
8826               add_this_lang=yes
8827               ;;
8828             *,all,*)
8829               # All languages are enabled
8830               add_this_lang=all
8831               ;;
8832             *,default,*)
8833               # 'default' was selected, select it if it is a default language
8834               add_this_lang=${build_by_default}
8835               ;;
8836           esac
8837         fi
8838
8839         # Disable languages that need other directories if these aren't available.
8840         for i in $subdir_requires; do
8841           test -f "$srcdir/gcc/$i/config-lang.in" && continue
8842           case ${add_this_lang} in
8843             yes)
8844               # Specifically requested language; tell them.
8845               as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8846               ;;
8847             all)
8848               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8849 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8850               add_this_lang=unsupported
8851               ;;
8852             *)
8853               # Silently disable.
8854               add_this_lang=unsupported
8855               ;;
8856           esac
8857         done
8858
8859         # Disable Ada if no preexisting GNAT is available.
8860         case ${add_this_lang}:${language}:${have_gnat} in
8861           yes:ada:no)
8862             # Specifically requested language; tell them.
8863             as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8864             ;;
8865           all:ada:no)
8866             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8867 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8868             add_this_lang=unsupported
8869             ;;
8870           *:ada:no)
8871             # Silently disable.
8872             add_this_lang=unsupported
8873             ;;
8874         esac
8875
8876         # Disable D if no preexisting GDC is available.
8877         case ${add_this_lang}:${language}:${have_gdc} in
8878           yes:d:no)
8879             # Specifically requested language; tell them.
8880             as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8881            ;;
8882           all:d:no)
8883             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8884 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8885             add_this_lang=unsupported
8886             ;;
8887           *:d:no)
8888             # Silently disable.
8889             add_this_lang=unsupported
8890             ;;
8891         esac
8892
8893         # Disable jit if -enable-host-shared not specified
8894         # but not if building for Mingw. All code in Windows
8895         # is position independent code (PIC).
8896         case $target in
8897           *mingw*) ;;
8898           *)
8899           case ${add_this_lang}:${language}:${host_shared} in
8900             yes:jit:no)
8901                    # PR jit/64780: explicitly specify --enable-host-shared
8902             as_fn_error $? "
8903 Enabling language \"jit\" requires --enable-host-shared.
8904
8905 --enable-host-shared typically slows the rest of the compiler down by
8906 a few %, so you must explicitly enable it.
8907
8908 If you want to build both the jit and the regular compiler, it is often
8909 best to do this via two separate configure/builds, in separate
8910 directories, to avoid imposing the performance cost of
8911 --enable-host-shared on the regular compiler." "$LINENO" 5
8912                     ;;
8913             all:jit:no)
8914               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8915 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8916               add_this_lang=unsupported
8917               ;;
8918             *:jit:no)
8919               # Silently disable.
8920               add_this_lang=unsupported
8921               ;;
8922                 esac
8923           ;;
8924         esac
8925
8926         # Disable a language that is unsupported by the target.
8927         case "${add_this_lang}: $unsupported_languages " in
8928           no:*) ;;
8929           unsupported:*) ;;
8930           *:*" $language "*)
8931             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8932 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8933             add_this_lang=unsupported
8934             ;;
8935         esac
8936
8937         case $add_this_lang in
8938           unsupported)
8939             # Remove language-dependent dirs.
8940             disabled_target_libs="$disabled_target_libs $target_libs"
8941             noconfigdirs="$noconfigdirs $lang_dirs"
8942             ;;
8943           no)
8944             # Remove language-dependent dirs; still show language as supported.
8945             disabled_target_libs="$disabled_target_libs $target_libs"
8946             noconfigdirs="$noconfigdirs $lang_dirs"
8947             potential_languages="${potential_languages}${language},"
8948             ;;
8949           all|yes)
8950             new_enable_languages="${new_enable_languages}${language},"
8951             potential_languages="${potential_languages}${language},"
8952             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8953             enabled_target_libs="$enabled_target_libs $target_libs"
8954             case "${boot_language}:,$enable_stage1_languages," in
8955               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8956                 # Add to (comma-separated) list of stage 1 languages.
8957                 case ",$stage1_languages," in
8958                   *,$language,* | ,yes, | ,all,) ;;
8959                   *) stage1_languages="${stage1_languages}${language}," ;;
8960                 esac
8961                 # We need to bootstrap any supporting libraries.
8962                 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8963                 ;;
8964             esac
8965             ;;
8966         esac
8967         ;;
8968     esac
8969   done
8970
8971   # Add target libraries which are only needed for disabled languages
8972   # to noconfigdirs.
8973   if test -n "$disabled_target_libs"; then
8974     for dir in $disabled_target_libs; do
8975       case " $enabled_target_libs " in
8976       *" ${dir} "*) ;;
8977       *) noconfigdirs="$noconfigdirs $dir" ;;
8978       esac
8979     done
8980   fi
8981
8982   # Check whether --enable-stage1-languages was given.
8983 if test "${enable_stage1_languages+set}" = set; then :
8984   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8985     ,no,|,,)
8986       # Set it to something that will have no effect in the loop below
8987       enable_stage1_languages=c ;;
8988     ,yes,)
8989       enable_stage1_languages=`echo $new_enable_languages | \
8990         sed -e "s/^,//" -e "s/,$//" ` ;;
8991     *,all,*)
8992       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8993         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8994   esac
8995
8996   # Add "good" languages from enable_stage1_languages to stage1_languages,
8997   # while "bad" languages go in missing_languages.  Leave no duplicates.
8998   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8999     case $potential_languages in
9000       *,$i,*)
9001         case $stage1_languages in
9002           *,$i,*) ;;
9003           *) stage1_languages="$stage1_languages$i," ;;
9004         esac ;;
9005       *)
9006         case $missing_languages in
9007           *,$i,*) ;;
9008           *) missing_languages="$missing_languages$i," ;;
9009         esac ;;
9010      esac
9011   done
9012 fi
9013
9014
9015   # Remove leading/trailing commas that were added for simplicity
9016   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9017   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9018   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9019   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9020
9021   if test "x$missing_languages" != x; then
9022     as_fn_error $? "
9023 The following requested languages could not be built: ${missing_languages}
9024 Supported languages are: ${potential_languages}" "$LINENO" 5
9025   fi
9026   if test "x$new_enable_languages" != "x$enable_languages"; then
9027     echo The following languages will be built: ${new_enable_languages}
9028     enable_languages="$new_enable_languages"
9029   fi
9030
9031
9032   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9033 fi
9034
9035 # Handle --disable-<component> generically.
9036 for dir in $configdirs $build_configdirs $target_configdirs ; do
9037   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9038   varname=`echo $dirname | sed -e s/+/_/g`
9039   if eval test x\${enable_${varname}} "=" xno ; then
9040     noconfigdirs="$noconfigdirs $dir"
9041   fi
9042 done
9043
9044 # Check for Boehm's garbage collector
9045 # Check whether --enable-objc-gc was given.
9046 if test "${enable_objc_gc+set}" = set; then :
9047   enableval=$enable_objc_gc;
9048 fi
9049
9050
9051 # Check whether --with-target-bdw-gc was given.
9052 if test "${with_target_bdw_gc+set}" = set; then :
9053   withval=$with_target_bdw_gc;
9054 fi
9055
9056
9057 # Check whether --with-target-bdw-gc-include was given.
9058 if test "${with_target_bdw_gc_include+set}" = set; then :
9059   withval=$with_target_bdw_gc_include;
9060 fi
9061
9062
9063 # Check whether --with-target-bdw-gc-lib was given.
9064 if test "${with_target_bdw_gc_lib+set}" = set; then :
9065   withval=$with_target_bdw_gc_lib;
9066 fi
9067
9068
9069 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9071 $as_echo_n "checking for bdw garbage collector... " >&6; }
9072   if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9073         { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9074 $as_echo "using bdw-gc in default locations" >&6; }
9075   else
9076         if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9077       as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9078     elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9079       as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9080     else
9081       { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9082 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9083     fi
9084   fi
9085 esac
9086
9087 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9088 case ,${enable_languages}, in
9089   *,c++,*)
9090     # Disable libitm, libsanitizer if we're not building libstdc++
9091     case "${noconfigdirs}" in
9092       *target-libstdc++-v3*)
9093         noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9094         ;;
9095       *) ;;
9096     esac
9097     ;;
9098   *)
9099     noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9100     ;;
9101 esac
9102
9103 # If gcc/ is not in the source tree then we'll not be building a
9104 # target compiler, assume in that case we don't want to build any
9105 # target libraries or tools.
9106 #
9107 # This was added primarily for the benefit for binutils-gdb who reuse
9108 # this configure script, but don't always have target tools available.
9109 if test ! -d ${srcdir}/gcc; then
9110    skipdirs="${skipdirs} ${target_configdirs}"
9111 fi
9112
9113 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9114 # $build_configdirs and $target_configdirs.
9115 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9116
9117 notsupp=""
9118 for dir in . $skipdirs $noconfigdirs ; do
9119   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9120   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9121     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9122     if test -r $srcdir/$dirname/configure ; then
9123       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9124         true
9125       else
9126         notsupp="$notsupp $dir"
9127       fi
9128     fi
9129   fi
9130   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9131     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9132     if test -r $srcdir/$dirname/configure ; then
9133       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9134         true
9135       else
9136         notsupp="$notsupp $dir"
9137       fi
9138     fi
9139   fi
9140   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9141     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9142     if test -r $srcdir/$dirname/configure ; then
9143       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9144         true
9145       else
9146         notsupp="$notsupp $dir"
9147       fi
9148     fi
9149   fi
9150 done
9151
9152 # Quietly strip out all directories which aren't configurable in this tree.
9153 # This relies on all configurable subdirectories being autoconfiscated, which
9154 # is now the case.
9155 build_configdirs_all="$build_configdirs"
9156 build_configdirs=
9157 for i in ${build_configdirs_all} ; do
9158   j=`echo $i | sed -e s/build-//g`
9159   if test -f ${srcdir}/$j/configure ; then
9160     build_configdirs="${build_configdirs} $i"
9161   fi
9162 done
9163
9164 configdirs_all="$configdirs"
9165 configdirs=
9166 for i in ${configdirs_all} ; do
9167   if test -f ${srcdir}/$i/configure ; then
9168     configdirs="${configdirs} $i"
9169   fi
9170 done
9171
9172 target_configdirs_all="$target_configdirs"
9173 target_configdirs=
9174 for i in ${target_configdirs_all} ; do
9175   j=`echo $i | sed -e s/target-//g`
9176   if test -f ${srcdir}/$j/configure ; then
9177     target_configdirs="${target_configdirs} $i"
9178   fi
9179 done
9180
9181 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9182 # so we have to add it after the preceding checks.
9183 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9184 then
9185   case " $configdirs " in
9186     *" libiberty "*)
9187       # If we can build libiberty, we can also build libiberty-linker-plugin.
9188       configdirs="$configdirs libiberty-linker-plugin"
9189       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9190         --with-libiberty=../libiberty-linker-plugin";;
9191     *)
9192       as_fn_error $? "libiberty missing" "$LINENO" 5;;
9193   esac
9194 fi
9195
9196 # Sometimes we have special requirements for the host libiberty.
9197 extra_host_libiberty_configure_flags=
9198 extra_host_zlib_configure_flags=
9199 case " $configdirs " in
9200   *" lto-plugin "* | *" libcc1 "*)
9201     # When these are to be built as shared libraries, the same applies to
9202     # libiberty.
9203     extra_host_libiberty_configure_flags=--enable-shared
9204     ;;
9205   *" bfd "*)
9206     # When bfd is to be built as a shared library, the same applies to
9207     # zlib.
9208     if test "$enable_shared" = "yes"; then
9209       extra_host_zlib_configure_flags=--enable-host-shared
9210     fi
9211     ;;
9212 esac
9213
9214
9215
9216 # Produce a warning message for the subdirs we can't configure.
9217 # This isn't especially interesting in the Cygnus tree, but in the individual
9218 # FSF releases, it's important to let people know when their machine isn't
9219 # supported by the one or two programs in a package.
9220
9221 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9222   # If $appdirs is non-empty, at least one of those directories must still
9223   # be configured, or we error out.  (E.g., if the gas release supports a
9224   # specified target in some subdirs but not the gas subdir, we shouldn't
9225   # pretend that all is well.)
9226   if test -n "$appdirs" ; then
9227     for dir in $appdirs ; do
9228       if test -r $dir/Makefile.in ; then
9229         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9230           appdirs=""
9231           break
9232         fi
9233         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9234           appdirs=""
9235           break
9236         fi
9237       fi
9238     done
9239     if test -n "$appdirs" ; then
9240       echo "*** This configuration is not supported by this package." 1>&2
9241       exit 1
9242     fi
9243   fi
9244   # Okay, some application will build, or we don't care to check.  Still
9245   # notify of subdirs not getting built.
9246   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9247   echo "    ${notsupp}" 1>&2
9248   echo "    (Any other directories should still work fine.)" 1>&2
9249 fi
9250
9251 case "$host" in
9252   *msdosdjgpp*)
9253     enable_gdbtk=no ;;
9254 esac
9255
9256 # To find our prefix, in gcc_cv_tool_prefix.
9257
9258 # The user is always right.
9259 if test "${PATH_SEPARATOR+set}" != set; then
9260   echo "#! /bin/sh" >conf$$.sh
9261   echo  "exit 0"   >>conf$$.sh
9262   chmod +x conf$$.sh
9263   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9264     PATH_SEPARATOR=';'
9265   else
9266     PATH_SEPARATOR=:
9267   fi
9268   rm -f conf$$.sh
9269 fi
9270
9271
9272   get_gcc_base_ver="cat"
9273
9274 # Check whether --with-gcc-major-version-only was given.
9275 if test "${with_gcc_major_version_only+set}" = set; then :
9276   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9277         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9278       fi
9279
9280 fi
9281
9282
9283
9284
9285
9286
9287 if test "x$exec_prefix" = xNONE; then
9288         if test "x$prefix" = xNONE; then
9289                 gcc_cv_tool_prefix=$ac_default_prefix
9290         else
9291                 gcc_cv_tool_prefix=$prefix
9292         fi
9293 else
9294         gcc_cv_tool_prefix=$exec_prefix
9295 fi
9296
9297 # If there is no compiler in the tree, use the PATH only.  In any
9298 # case, if there is no compiler in the tree nobody should use
9299 # AS_FOR_TARGET and LD_FOR_TARGET.
9300 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9301     if test x$with_gcc_major_version_only = xyes ; then
9302                 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9303             else
9304         gcc_version=`cat $srcdir/gcc/BASE-VER`
9305     fi
9306     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9307     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9308     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9309     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9310     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9311     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9312 else
9313     gcc_cv_tool_dirs=
9314 fi
9315
9316 if test x$build = x$target && test -n "$md_exec_prefix"; then
9317         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9318 fi
9319
9320
9321
9322 copy_dirs=
9323
9324
9325 # Check whether --with-build-sysroot was given.
9326 if test "${with_build_sysroot+set}" = set; then :
9327   withval=$with_build_sysroot; if test x"$withval" != x ; then
9328      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9329    fi
9330 else
9331   SYSROOT_CFLAGS_FOR_TARGET=
9332 fi
9333
9334
9335
9336
9337 # Check whether --with-debug-prefix-map was given.
9338 if test "${with_debug_prefix_map+set}" = set; then :
9339   withval=$with_debug_prefix_map; if test x"$withval" != x; then
9340      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9341      for debug_map in $withval; do
9342        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9343      done
9344    fi
9345 else
9346   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9347 fi
9348
9349
9350
9351 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9352 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
9353 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9354 # We want to ensure that TARGET libraries (which we know are built with
9355 # gcc) are built with "-O2 -g", so include those options when setting
9356 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9357 if test "x$CFLAGS_FOR_TARGET" = x; then
9358   if test "x${is_cross_compiler}" = xyes; then
9359     CFLAGS_FOR_TARGET="-g -O2"
9360   else
9361     CFLAGS_FOR_TARGET=$CFLAGS
9362     case " $CFLAGS " in
9363       *" -O2 "*) ;;
9364       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9365     esac
9366     case " $CFLAGS " in
9367       *" -g "* | *" -g3 "*) ;;
9368       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9369     esac
9370   fi
9371 fi
9372
9373
9374 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9375   if test "x${is_cross_compiler}" = xyes; then
9376     CXXFLAGS_FOR_TARGET="-g -O2"
9377   else
9378     CXXFLAGS_FOR_TARGET=$CXXFLAGS
9379     case " $CXXFLAGS " in
9380       *" -O2 "*) ;;
9381       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9382     esac
9383     case " $CXXFLAGS " in
9384       *" -g "* | *" -g3 "*) ;;
9385       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9386     esac
9387   fi
9388 fi
9389
9390
9391
9392
9393 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
9394 # the named directory are copied to $(tooldir)/sys-include.
9395 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9396   if test x${is_cross_compiler} = xno ; then
9397     echo 1>&2 '***' --with-headers is only supported when cross compiling
9398     exit 1
9399   fi
9400   if test x"${with_headers}" != xyes ; then
9401     x=${gcc_cv_tool_prefix}
9402     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9403   fi
9404 fi
9405
9406 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
9407 # the name directories are copied to $(tooldir)/lib.  Multiple directories
9408 # are permitted.
9409 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9410   if test x${is_cross_compiler} = xno ; then
9411     echo 1>&2 '***' --with-libs is only supported when cross compiling
9412     exit 1
9413   fi
9414   if test x"${with_libs}" != xyes ; then
9415     # Copy the libraries in reverse order, so that files in the first named
9416     # library override files in subsequent libraries.
9417     x=${gcc_cv_tool_prefix}
9418     for l in ${with_libs}; do
9419       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9420     done
9421   fi
9422 fi
9423
9424 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9425 #
9426 # This is done by determining whether or not the appropriate directory
9427 # is available, and by checking whether or not specific configurations
9428 # have requested that this magic not happen.
9429 #
9430 # The command line options always override the explicit settings in
9431 # configure.ac, and the settings in configure.ac override this magic.
9432 #
9433 # If the default for a toolchain is to use GNU as and ld, and you don't
9434 # want to do that, then you should use the --without-gnu-as and
9435 # --without-gnu-ld options for the configure script.  Similarly, if
9436 # the default is to use the included zlib and you don't want to do that,
9437 # you should use the --with-system-zlib option for the configure script.
9438
9439 if test x${use_gnu_as} = x &&
9440    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9441   with_gnu_as=yes
9442   extra_host_args="$extra_host_args --with-gnu-as"
9443 fi
9444
9445 if test x${use_gnu_ld} = x &&
9446    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9447   with_gnu_ld=yes
9448   extra_host_args="$extra_host_args --with-gnu-ld"
9449 fi
9450
9451 if test x${use_included_zlib} = x &&
9452    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9453   :
9454 else
9455   with_system_zlib=yes
9456   extra_host_args="$extra_host_args --with-system-zlib"
9457 fi
9458
9459 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9460 # can detect this case.
9461
9462 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9463   with_newlib=yes
9464   extra_host_args="$extra_host_args --with-newlib"
9465 fi
9466
9467 # Handle ${copy_dirs}
9468 set fnord ${copy_dirs}
9469 shift
9470 while test $# != 0 ; do
9471   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9472     :
9473   else
9474     echo Copying $1 to $2
9475
9476     # Use the install script to create the directory and all required
9477     # parent directories.
9478     if test -d $2 ; then
9479       :
9480     else
9481       echo >config.temp
9482       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9483     fi
9484
9485     # Copy the directory, assuming we have tar.
9486     # FIXME: Should we use B in the second tar?  Not all systems support it.
9487     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9488
9489     # It is the responsibility of the user to correctly adjust all
9490     # symlinks.  If somebody can figure out how to handle them correctly
9491     # here, feel free to add the code.
9492
9493     echo $1 > $2/COPIED
9494   fi
9495   shift; shift
9496 done
9497
9498 # Determine a target-dependent exec_prefix that the installed
9499 # gcc will search in.  Keep this list sorted by triplet, with
9500 # the *-*-osname triplets last.
9501 md_exec_prefix=
9502 case "${target}" in
9503   i[34567]86-pc-msdosdjgpp*)
9504     md_exec_prefix=/dev/env/DJDIR/bin
9505     ;;
9506   *-*-hpux* | \
9507   *-*-nto-qnx* | \
9508   *-*-solaris2*)
9509     md_exec_prefix=/usr/ccs/bin
9510     ;;
9511 esac
9512
9513 extra_arflags_for_target=
9514 extra_nmflags_for_target=
9515 extra_ranlibflags_for_target=
9516 target_makefile_frag=/dev/null
9517 case "${target}" in
9518   spu-*-*)
9519     target_makefile_frag="config/mt-spu"
9520     ;;
9521   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9522     target_makefile_frag="config/mt-sde"
9523     ;;
9524   mipsisa*-*-elfoabi*)
9525     target_makefile_frag="config/mt-mips-elfoabi"
9526     ;;
9527   mips*-*-*linux* | mips*-*-gnu*)
9528     target_makefile_frag="config/mt-mips-gnu"
9529     ;;
9530   nios2-*-elf*)
9531     target_makefile_frag="config/mt-nios2-elf"
9532     ;;
9533   *-*-linux-android*)
9534     target_makefile_frag="config/mt-android"
9535     ;;
9536   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9537     target_makefile_frag="config/mt-gnu"
9538     ;;
9539   *-*-aix4.[3456789]* | *-*-aix[56789].*)
9540     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9541     # commands to handle both 32-bit and 64-bit objects.  These flags are
9542     # harmless if we're using GNU nm or ar.
9543     extra_arflags_for_target=" -X32_64"
9544     extra_nmflags_for_target=" -B -X32_64"
9545     ;;
9546 esac
9547
9548 alphaieee_frag=/dev/null
9549 case $target in
9550   alpha*-*-*)
9551     # This just makes sure to use the -mieee option to build target libs.
9552     # This should probably be set individually by each library.
9553     alphaieee_frag="config/mt-alphaieee"
9554     ;;
9555 esac
9556
9557 # If --enable-target-optspace always use -Os instead of -O2 to build
9558 # the target libraries, similarly if it is not specified, use -Os
9559 # on selected platforms.
9560 ospace_frag=/dev/null
9561 case "${enable_target_optspace}:${target}" in
9562   yes:*)
9563     ospace_frag="config/mt-ospace"
9564     ;;
9565   :d30v-*)
9566     ospace_frag="config/mt-d30v"
9567     ;;
9568   :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9569     ospace_frag="config/mt-ospace"
9570     ;;
9571   no:* | :*)
9572     ;;
9573   *)
9574     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9575     ;;
9576 esac
9577
9578 # Some systems (e.g., one of the i386-aix systems the gas testers are
9579 # using) don't handle "\$" correctly, so don't use it here.
9580 tooldir='${exec_prefix}'/${target_noncanonical}
9581 build_tooldir=${tooldir}
9582
9583 # Create a .gdbinit file which runs the one in srcdir
9584 # and tells GDB to look there for source files.
9585
9586 if test -r ${srcdir}/.gdbinit ; then
9587   case ${srcdir} in
9588     .) ;;
9589     *) cat > ./.gdbinit <<EOF
9590 # ${NO_EDIT}
9591 dir ${srcdir}
9592 dir .
9593 source ${srcdir}/.gdbinit
9594 EOF
9595     ;;
9596   esac
9597 fi
9598
9599 # Make sure that the compiler is able to generate an executable.  If it
9600 # can't, we are probably in trouble.  We don't care whether we can run the
9601 # executable--we might be using a cross compiler--we only care whether it
9602 # can be created.  At this point the main configure script has set CC.
9603 we_are_ok=no
9604 echo "int main () { return 0; }" > conftest.c
9605 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9606 if test $? = 0 ; then
9607   if test -s conftest || test -s conftest.exe ; then
9608     we_are_ok=yes
9609   fi
9610 fi
9611 case $we_are_ok in
9612   no)
9613     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9614     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9615     rm -f conftest*
9616     exit 1
9617     ;;
9618 esac
9619 rm -f conftest*
9620
9621 # Decide which environment variable is used to find dynamic libraries.
9622 case "${host}" in
9623   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9624   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9625   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9626   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9627 esac
9628
9629 # On systems where the dynamic library environment variable is PATH,
9630 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9631 # built executables to PATH.
9632 if test "$RPATH_ENVVAR" = PATH; then
9633   GCC_SHLIB_SUBDIR=/shlib
9634 else
9635   GCC_SHLIB_SUBDIR=
9636 fi
9637
9638 # Adjust the toplevel makefile according to whether bootstrap was selected.
9639 case $enable_bootstrap in
9640   yes)
9641     bootstrap_suffix=bootstrap
9642     BUILD_CONFIG=bootstrap-debug
9643     ;;
9644   no)
9645     bootstrap_suffix=no-bootstrap
9646     BUILD_CONFIG=
9647     ;;
9648 esac
9649
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9651 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9652
9653
9654 # Check whether --with-build-config was given.
9655 if test "${with_build_config+set}" = set; then :
9656   withval=$with_build_config; case $with_build_config in
9657    yes) with_build_config= ;;
9658    no) with_build_config= BUILD_CONFIG= ;;
9659    esac
9660 fi
9661
9662
9663 if test "x${with_build_config}" != x; then
9664   BUILD_CONFIG=$with_build_config
9665 else
9666   case $BUILD_CONFIG in
9667   bootstrap-debug)
9668     if echo "int f (void) { return 0; }" > conftest.c &&
9669        ${CC} -c conftest.c &&
9670        mv conftest.o conftest.o.g0 &&
9671        ${CC} -c -g conftest.c &&
9672        mv conftest.o conftest.o.g &&
9673        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9674       :
9675     else
9676       BUILD_CONFIG=
9677     fi
9678     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9679     ;;
9680   esac
9681 fi
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9683 $as_echo "$BUILD_CONFIG" >&6; }
9684
9685
9686 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9688 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9689 # Check whether --enable-vtable-verify was given.
9690 if test "${enable_vtable_verify+set}" = set; then :
9691   enableval=$enable_vtable_verify; case "$enableval" in
9692  yes) enable_vtable_verify=yes ;;
9693  no)  enable_vtable_verify=no ;;
9694  *)   enable_vtable_verify=no;;
9695  esac
9696 else
9697   enable_vtable_verify=no
9698 fi
9699
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9701 $as_echo "$enable_vtable_verify" >&6; }
9702
9703 # Record target_configdirs and the configure arguments for target and
9704 # build configuration in Makefile.
9705 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9706 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9707 bootstrap_fixincludes=no
9708
9709 # If we are building libgomp, bootstrap it.
9710 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9711   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9712 fi
9713
9714 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9715 # or bootstrap-ubsan, bootstrap it.
9716 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9717   case "$BUILD_CONFIG" in
9718     *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9719       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9720       bootstrap_fixincludes=yes
9721       ;;
9722   esac
9723 fi
9724
9725 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9726 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9727    test "$enable_vtable_verify" != no; then
9728   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9729 fi
9730
9731 # If we are building libatomic and the list of enabled languages includes the
9732 # D frontend, bootstrap it.
9733 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9734   case ,${enable_languages}, in
9735     *,d,*)
9736       bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9737       ;;
9738   esac
9739 fi
9740
9741 # Determine whether gdb needs tk/tcl or not.
9742 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9743 # and in that case we want gdb to be built without tk.  Ugh!
9744 # In fact I believe gdb is the *only* package directly dependent on tk,
9745 # so we should be able to put the 'maybe's in unconditionally and
9746 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
9747 # 100% sure that that's safe though.
9748
9749 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9750 case "$enable_gdbtk" in
9751   no)
9752     GDB_TK="" ;;
9753   yes)
9754     GDB_TK="${gdb_tk}" ;;
9755   *)
9756     # Only add the dependency on gdbtk when GDBtk is part of the gdb
9757     # distro.  Eventually someone will fix this and move Insight, nee
9758     # gdbtk to a separate directory.
9759     if test -d ${srcdir}/gdb/gdbtk ; then
9760       GDB_TK="${gdb_tk}"
9761     else
9762       GDB_TK=""
9763     fi
9764     ;;
9765 esac
9766 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9767 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9768
9769 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9770 # else does, only include them if one of these is built.  The Makefile
9771 # provides the ordering, so it's enough here to add to the list.
9772 case " ${configdirs} " in
9773   *\ gdb\ *)
9774     configdirs="${configdirs} gnulib gdbsupport"
9775     ;;
9776   *\ gdbserver\ *)
9777     configdirs="${configdirs} gnulib gdbsupport"
9778     ;;
9779   *\ sim\ *)
9780     configdirs="${configdirs} gnulib"
9781     ;;
9782 esac
9783
9784 # Strip out unwanted targets.
9785
9786 # While at that, we remove Makefiles if we were started for recursive
9787 # configuration, so that the top-level Makefile reconfigures them,
9788 # like we used to do when configure itself was recursive.
9789
9790 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
9791 # but now we're fixing up the Makefile ourselves with the additional
9792 # commands passed to AC_CONFIG_FILES.  Use separate variables
9793 # extrasub-{build,host,target} not because there is any reason to split
9794 # the substitutions up that way, but only to remain below the limit of
9795 # 99 commands in a script, for HP-UX sed.
9796
9797 # Do not nest @if/@endif or @unless/@endunless pairs, because
9798 # configure will not warn you at all.
9799
9800 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9801   yes:yes:*\ gold\ *:*,c++,*) ;;
9802   yes:yes:*\ gold\ *:*)
9803     as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9804     ;;
9805 esac
9806
9807 extrasub_build=
9808 for module in ${build_configdirs} ; do
9809   if test -z "${no_recursion}" \
9810      && test -f ${build_subdir}/${module}/Makefile; then
9811     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9812     rm -f ${build_subdir}/${module}/Makefile
9813   fi
9814   extrasub_build="$extrasub_build
9815 /^@if build-$module\$/d
9816 /^@endif build-$module\$/d
9817 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9818 /^@if build-$module-$bootstrap_suffix\$/d
9819 /^@endif build-$module-$bootstrap_suffix\$/d
9820 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9821 done
9822 extrasub_host=
9823 for module in ${configdirs} ; do
9824   if test -z "${no_recursion}"; then
9825     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9826       if test -f ${file}; then
9827         echo 1>&2 "*** removing ${file} to force reconfigure"
9828         rm -f ${file}
9829       fi
9830     done
9831   fi
9832   case ${module},${bootstrap_fixincludes} in
9833     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9834     *) host_bootstrap_suffix=$bootstrap_suffix ;;
9835   esac
9836   extrasub_host="$extrasub_host
9837 /^@if $module\$/d
9838 /^@endif $module\$/d
9839 /^@unless $module\$/,/^@endunless $module\$/d
9840 /^@if $module-$host_bootstrap_suffix\$/d
9841 /^@endif $module-$host_bootstrap_suffix\$/d
9842 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9843 done
9844 extrasub_target=
9845 for module in ${target_configdirs} ; do
9846   if test -z "${no_recursion}" \
9847      && test -f ${target_subdir}/${module}/Makefile; then
9848     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9849     rm -f ${target_subdir}/${module}/Makefile
9850   fi
9851
9852   # We only bootstrap target libraries listed in bootstrap_target_libs.
9853   case $bootstrap_target_libs in
9854     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9855     *) target_bootstrap_suffix=no-bootstrap ;;
9856   esac
9857
9858   extrasub_target="$extrasub_target
9859 /^@if target-$module\$/d
9860 /^@endif target-$module\$/d
9861 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9862 /^@if target-$module-$target_bootstrap_suffix\$/d
9863 /^@endif target-$module-$target_bootstrap_suffix\$/d
9864 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9865 done
9866
9867 # Do the final fixup along with target modules.
9868 extrasub_target="$extrasub_target
9869 /^@if /,/^@endif /d
9870 /^@unless /d
9871 /^@endunless /d"
9872
9873 if test "$enable_pgo_build" != "no"; then
9874   extrasub_build="$extrasub_build
9875 /^@if pgo-build\$/d
9876 /^@endif pgo-build\$/d"
9877 fi
9878
9879 # Create the serialization dependencies.  This uses a temporary file.
9880
9881 # Check whether --enable-serial-configure was given.
9882 if test "${enable_serial_configure+set}" = set; then :
9883   enableval=$enable_serial_configure;
9884 fi
9885
9886
9887 case ${enable_serial_configure} in
9888   yes)
9889     enable_serial_build_configure=yes
9890     enable_serial_host_configure=yes
9891     enable_serial_target_configure=yes
9892     ;;
9893 esac
9894
9895 # These force 'configure's to be done one at a time, to avoid problems
9896 # with contention over a shared config.cache.
9897 rm -f serdep.tmp
9898 echo '# serdep.tmp' > serdep.tmp
9899 olditem=
9900 test "x${enable_serial_build_configure}" = xyes &&
9901 for item in ${build_configdirs} ; do
9902   case ${olditem} in
9903     "") ;;
9904     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9905   esac
9906   olditem=${item}
9907 done
9908 olditem=
9909 test "x${enable_serial_host_configure}" = xyes &&
9910 for item in ${configdirs} ; do
9911   case ${olditem} in
9912     "") ;;
9913     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9914   esac
9915   olditem=${item}
9916 done
9917 olditem=
9918 test "x${enable_serial_target_configure}" = xyes &&
9919 for item in ${target_configdirs} ; do
9920   case ${olditem} in
9921     "") ;;
9922     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9923   esac
9924   olditem=${item}
9925 done
9926 serialization_dependencies=serdep.tmp
9927
9928
9929 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
9930 # target, nonopt, and variable assignments.  These are the ones we
9931 # might not want to pass down to subconfigures.  The exception being
9932 # --cache-file=/dev/null, which is used to turn off the use of cache
9933 # files altogether, and which should be passed on to subconfigures.
9934 # Also strip program-prefix, program-suffix, and program-transform-name,
9935 # so that we can pass down a consistent program-transform-name.
9936 baseargs=
9937 tbaseargs=
9938 keep_next=no
9939 skip_next=no
9940 eval "set -- $ac_configure_args"
9941 for ac_arg
9942 do
9943   if test X"$skip_next" = X"yes"; then
9944     skip_next=no
9945     continue
9946   fi
9947   if test X"$keep_next" = X"yes"; then
9948     case $ac_arg in
9949       *\'*)
9950         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9951     esac
9952     baseargs="$baseargs '$ac_arg'"
9953     tbaseargs="$tbaseargs '$ac_arg'"
9954     keep_next=no
9955     continue
9956   fi
9957
9958   # Handle separated arguments.  Based on the logic generated by
9959   # autoconf 2.59.
9960   case $ac_arg in
9961     *=* | --config-cache | -C | -disable-* | --disable-* \
9962       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9963       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9964       | -with-* | --with-* | -without-* | --without-* | --x)
9965       separate_arg=no
9966       ;;
9967     -*)
9968       separate_arg=yes
9969       ;;
9970     *)
9971       separate_arg=no
9972       ;;
9973   esac
9974
9975   skip_targ=no
9976   case $ac_arg in
9977
9978   --with-* | --without-*)
9979     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9980
9981     case $libopt in
9982     *[-_]include)
9983       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9984       ;;
9985     *[-_]lib)
9986       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9987       ;;
9988     *)
9989       lib=$libopt
9990       ;;
9991     esac
9992
9993
9994     case $lib in
9995     mpc | mpfr | gmp | isl)
9996       # If we're processing --with-$lib, --with-$lib-include or
9997       # --with-$lib-lib, for one of the libs above, and target is
9998       # different from host, don't pass the current argument to any
9999       # target library's configure.
10000       if test x$is_cross_compiler = xyes; then
10001         skip_targ=yes
10002       fi
10003       ;;
10004     esac
10005     ;;
10006   esac
10007
10008   case "$ac_arg" in
10009     --cache-file=/dev/null | \
10010     -cache-file=/dev/null )
10011       # Handled here to avoid the test to skip args below.
10012       baseargs="$baseargs '$ac_arg'"
10013       tbaseargs="$tbaseargs '$ac_arg'"
10014       # Assert: $separate_arg should always be no.
10015       keep_next=$separate_arg
10016       ;;
10017     --no*)
10018       continue
10019       ;;
10020     --c* | \
10021     --sr* | \
10022     --ho* | \
10023     --bu* | \
10024     --t* | \
10025     --program-* | \
10026     -cache_file* | \
10027     -srcdir* | \
10028     -host* | \
10029     -build* | \
10030     -target* | \
10031     -program-prefix* | \
10032     -program-suffix* | \
10033     -program-transform-name* )
10034       skip_next=$separate_arg
10035       continue
10036       ;;
10037     -*)
10038       # An option.  Add it.
10039       case $ac_arg in
10040         *\'*)
10041           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10042       esac
10043       baseargs="$baseargs '$ac_arg'"
10044       if test X"$skip_targ" = Xno; then
10045         tbaseargs="$tbaseargs '$ac_arg'"
10046       fi
10047       keep_next=$separate_arg
10048       ;;
10049     *)
10050       # Either a variable assignment, or a nonopt (triplet).  Don't
10051       # pass it down; let the Makefile handle this.
10052       continue
10053       ;;
10054   esac
10055 done
10056 # Remove the initial space we just introduced and, as these will be
10057 # expanded by make, quote '$'.
10058 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10059
10060 # Add in --program-transform-name, after --program-prefix and
10061 # --program-suffix have been applied to it.  Autoconf has already
10062 # doubled dollar signs and backslashes in program_transform_name; we want
10063 # the backslashes un-doubled, and then the entire thing wrapped in single
10064 # quotes, because this will be expanded first by make and then by the shell.
10065 # Also, because we want to override the logic in subdir configure scripts to
10066 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10067 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10068 ${program_transform_name}
10069 EOF_SED
10070 gcc_transform_name=`cat conftestsed.out`
10071 rm -f conftestsed.out
10072 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10073 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10074 if test "$silent" = yes; then
10075   baseargs="$baseargs --silent"
10076   tbaseargs="$tbaseargs --silent"
10077 fi
10078 baseargs="$baseargs --disable-option-checking"
10079 tbaseargs="$tbaseargs --disable-option-checking"
10080
10081 # Record and document user additions to sub configure arguments.
10082
10083
10084
10085
10086 # For the build-side libraries, we just need to pretend we're native,
10087 # and not use the same cache file.  Multilibs are neither needed nor
10088 # desired.  We can't even use the same cache file for all build-side
10089 # libraries, as they're compiled differently; some with C, some with
10090 # C++ or with different feature-enabling options.
10091 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10092
10093 # For host modules, accept cache file option, or specification as blank.
10094 case "${cache_file}" in
10095 "") # empty
10096   cache_file_option="" ;;
10097 /* | [A-Za-z]:[\\/]* ) # absolute path
10098   cache_file_option="--cache-file=${cache_file}" ;;
10099 *) # relative path
10100   cache_file_option="--cache-file=../${cache_file}" ;;
10101 esac
10102
10103 # Host dirs don't like to share a cache file either, horribly enough.
10104 # This seems to be due to autoconf 2.5x stupidity.
10105 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10106
10107 target_configargs="$target_configargs ${tbaseargs}"
10108
10109 # Passing a --with-cross-host argument lets the target libraries know
10110 # whether they are being built with a cross-compiler or being built
10111 # native.  However, it would be better to use other mechanisms to make the
10112 # sorts of decisions they want to make on this basis.  Please consider
10113 # this option to be deprecated.  FIXME.
10114 if test x${is_cross_compiler} = xyes ; then
10115   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10116 fi
10117
10118 # Special user-friendly check for native x86_64-linux build, if
10119 # multilib is not explicitly enabled.
10120 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10121   x86_64-*linux*:yes:$build:$build:)
10122     # Make sure we have a development environment that handles 32-bit
10123     dev64=no
10124     echo "int main () { return 0; }" > conftest.c
10125     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10126     if test $? = 0 ; then
10127       if test -s conftest || test -s conftest.exe ; then
10128         dev64=yes
10129       fi
10130     fi
10131     rm -f conftest*
10132     if test x${dev64} != xyes ; then
10133       as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
10134     fi
10135     ;;
10136 esac
10137
10138 # Default to --enable-multilib.
10139 if test x${enable_multilib} = x ; then
10140   target_configargs="--enable-multilib ${target_configargs}"
10141 fi
10142
10143 # Pass --with-newlib if appropriate.  Note that target_configdirs has
10144 # changed from the earlier setting of with_newlib.
10145 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10146   target_configargs="--with-newlib ${target_configargs}"
10147 fi
10148
10149 # Different target subdirs use different values of certain variables
10150 # (notably CXX).  Worse, multilibs use *lots* of different values.
10151 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10152 # it doesn't automatically accept command-line overrides of them.
10153 # This means it's not safe for target subdirs to share a cache file,
10154 # which is disgusting, but there you have it.  Hopefully this can be
10155 # fixed in future.  It's still worthwhile to use a cache file for each
10156 # directory.  I think.
10157
10158 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10159 # We need to pass --target, as newer autoconf's requires consistency
10160 # for target_alias and gcc doesn't manage it consistently.
10161 target_configargs="--cache-file=./config.cache ${target_configargs}"
10162
10163 FLAGS_FOR_TARGET=
10164 case " $target_configdirs " in
10165  *" newlib "*)
10166   case " $target_configargs " in
10167   *" --with-newlib "*)
10168    case "$target" in
10169     *-cygwin*)
10170       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10171       ;;
10172    esac
10173
10174    # If we're not building GCC, don't discard standard headers.
10175    if test -d ${srcdir}/gcc; then
10176      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10177
10178      if test "${build}" != "${host}"; then
10179        # On Canadian crosses, CC_FOR_TARGET will have already been set
10180        # by `configure', so we won't have an opportunity to add -Bgcc/
10181        # to it.  This is right: we don't want to search that directory
10182        # for binaries, but we want the header files in there, so add
10183        # them explicitly.
10184        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10185
10186        # Someone might think of using the pre-installed headers on
10187        # Canadian crosses, in case the installed compiler is not fully
10188        # compatible with the compiler being built.  In this case, it
10189        # would be better to flag an error than risking having
10190        # incompatible object files being constructed.  We can't
10191        # guarantee that an error will be flagged, but let's hope the
10192        # compiler will do it, when presented with incompatible header
10193        # files.
10194      fi
10195    fi
10196
10197    case "${target}-${is_cross_compiler}" in
10198    i[3456789]86-*-linux*-no)
10199       # Here host == target, so we don't need to build gcc,
10200       # so we don't want to discard standard headers.
10201       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10202       ;;
10203    *)
10204       # If we're building newlib, use its generic headers last, but search
10205       # for any libc-related directories first (so make it the last -B
10206       # switch).
10207       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10208
10209       # If we're building libgloss, find the startup file, simulator library
10210       # and linker script.
10211       case " $target_configdirs " in
10212         *" libgloss "*)
10213         # Look for startup file, simulator library and maybe linker script.
10214         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10215         # Look for libnosys.a in case the target needs it.
10216         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10217         # Most targets have the linker script in the source directory.
10218         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10219         ;;
10220       esac
10221       ;;
10222    esac
10223    ;;
10224   esac
10225   ;;
10226 esac
10227
10228 case "$target" in
10229   x86_64-*mingw* | *-w64-mingw*)
10230   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10231   # however, use a symlink named 'mingw' in ${prefix} .
10232     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10233     ;;
10234   *-mingw*)
10235   # MinGW can't be handled as Cygwin above since it does not use newlib.
10236     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'
10237     ;;
10238 esac
10239
10240 # Allow the user to override the flags for
10241 # our build compiler if desired.
10242 if test x"${build}" = x"${host}" ; then
10243   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10244   CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10245   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10246   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10247 fi
10248
10249 # On Canadian crosses, we'll be searching the right directories for
10250 # the previously-installed cross compiler, so don't bother to add
10251 # flags for directories within the install tree of the compiler
10252 # being built; programs in there won't even run.
10253 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10254   # Search for pre-installed headers if nothing else fits.
10255   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10256 fi
10257
10258 if test "x${use_gnu_ld}" = x &&
10259    echo " ${configdirs} " | grep " ld " > /dev/null ; then
10260   # Arrange for us to find uninstalled linker scripts.
10261   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10262 fi
10263
10264 # Search for other target-specific linker scripts and such.
10265 case "${target}" in
10266   mep*)
10267     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10268     ;;
10269 esac
10270
10271 # Makefile fragments.
10272 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10273 do
10274   eval fragval=\$$frag
10275   if test $fragval != /dev/null; then
10276     eval $frag=${srcdir}/$fragval
10277   fi
10278 done
10279
10280
10281
10282
10283
10284 # Miscellanea: directories, flags, etc.
10285
10286
10287
10288
10289
10290
10291
10292
10293 # Build module lists & subconfigure args.
10294
10295
10296
10297 # Host module lists & subconfigure args.
10298
10299
10300
10301
10302 # Target module lists & subconfigure args.
10303
10304
10305
10306 # Build tools.
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327 # Generate default definitions for YACC, M4, LEX and other programs that run
10328 # on the build machine.  These are used if the Makefile can't locate these
10329 # programs in objdir.
10330 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10331
10332 for ac_prog in 'bison -y' byacc yacc
10333 do
10334   # Extract the first word of "$ac_prog", so it can be a program name with args.
10335 set dummy $ac_prog; ac_word=$2
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10337 $as_echo_n "checking for $ac_word... " >&6; }
10338 if ${ac_cv_prog_YACC+:} false; then :
10339   $as_echo_n "(cached) " >&6
10340 else
10341   if test -n "$YACC"; then
10342   ac_cv_prog_YACC="$YACC" # Let the user override the test.
10343 else
10344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10345 for as_dir in $PATH
10346 do
10347   IFS=$as_save_IFS
10348   test -z "$as_dir" && as_dir=.
10349     for ac_exec_ext in '' $ac_executable_extensions; do
10350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10351     ac_cv_prog_YACC="$ac_prog"
10352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10353     break 2
10354   fi
10355 done
10356   done
10357 IFS=$as_save_IFS
10358
10359 fi
10360 fi
10361 YACC=$ac_cv_prog_YACC
10362 if test -n "$YACC"; then
10363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10364 $as_echo "$YACC" >&6; }
10365 else
10366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10367 $as_echo "no" >&6; }
10368 fi
10369
10370
10371   test -n "$YACC" && break
10372 done
10373 test -n "$YACC" || YACC="$MISSING bison -y"
10374
10375 case " $build_configdirs " in
10376   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10377 esac
10378
10379 for ac_prog in bison
10380 do
10381   # Extract the first word of "$ac_prog", so it can be a program name with args.
10382 set dummy $ac_prog; ac_word=$2
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10384 $as_echo_n "checking for $ac_word... " >&6; }
10385 if ${ac_cv_prog_BISON+:} false; then :
10386   $as_echo_n "(cached) " >&6
10387 else
10388   if test -n "$BISON"; then
10389   ac_cv_prog_BISON="$BISON" # Let the user override the test.
10390 else
10391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392 for as_dir in $PATH
10393 do
10394   IFS=$as_save_IFS
10395   test -z "$as_dir" && as_dir=.
10396     for ac_exec_ext in '' $ac_executable_extensions; do
10397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10398     ac_cv_prog_BISON="$ac_prog"
10399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10400     break 2
10401   fi
10402 done
10403   done
10404 IFS=$as_save_IFS
10405
10406 fi
10407 fi
10408 BISON=$ac_cv_prog_BISON
10409 if test -n "$BISON"; then
10410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10411 $as_echo "$BISON" >&6; }
10412 else
10413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10414 $as_echo "no" >&6; }
10415 fi
10416
10417
10418   test -n "$BISON" && break
10419 done
10420 test -n "$BISON" || BISON="$MISSING bison"
10421
10422 case " $build_configdirs " in
10423   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10424 esac
10425
10426 for ac_prog in gm4 gnum4 m4
10427 do
10428   # Extract the first word of "$ac_prog", so it can be a program name with args.
10429 set dummy $ac_prog; ac_word=$2
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10431 $as_echo_n "checking for $ac_word... " >&6; }
10432 if ${ac_cv_prog_M4+:} false; then :
10433   $as_echo_n "(cached) " >&6
10434 else
10435   if test -n "$M4"; then
10436   ac_cv_prog_M4="$M4" # Let the user override the test.
10437 else
10438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439 for as_dir in $PATH
10440 do
10441   IFS=$as_save_IFS
10442   test -z "$as_dir" && as_dir=.
10443     for ac_exec_ext in '' $ac_executable_extensions; do
10444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10445     ac_cv_prog_M4="$ac_prog"
10446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10447     break 2
10448   fi
10449 done
10450   done
10451 IFS=$as_save_IFS
10452
10453 fi
10454 fi
10455 M4=$ac_cv_prog_M4
10456 if test -n "$M4"; then
10457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10458 $as_echo "$M4" >&6; }
10459 else
10460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461 $as_echo "no" >&6; }
10462 fi
10463
10464
10465   test -n "$M4" && break
10466 done
10467 test -n "$M4" || M4="$MISSING m4"
10468
10469 case " $build_configdirs " in
10470   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10471 esac
10472
10473 for ac_prog in flex lex
10474 do
10475   # Extract the first word of "$ac_prog", so it can be a program name with args.
10476 set dummy $ac_prog; ac_word=$2
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10478 $as_echo_n "checking for $ac_word... " >&6; }
10479 if ${ac_cv_prog_LEX+:} false; then :
10480   $as_echo_n "(cached) " >&6
10481 else
10482   if test -n "$LEX"; then
10483   ac_cv_prog_LEX="$LEX" # Let the user override the test.
10484 else
10485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10486 for as_dir in $PATH
10487 do
10488   IFS=$as_save_IFS
10489   test -z "$as_dir" && as_dir=.
10490     for ac_exec_ext in '' $ac_executable_extensions; do
10491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10492     ac_cv_prog_LEX="$ac_prog"
10493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10494     break 2
10495   fi
10496 done
10497   done
10498 IFS=$as_save_IFS
10499
10500 fi
10501 fi
10502 LEX=$ac_cv_prog_LEX
10503 if test -n "$LEX"; then
10504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10505 $as_echo "$LEX" >&6; }
10506 else
10507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10508 $as_echo "no" >&6; }
10509 fi
10510
10511
10512   test -n "$LEX" && break
10513 done
10514 test -n "$LEX" || LEX="$MISSING flex"
10515
10516 case " $build_configdirs " in
10517   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10518   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10519 esac
10520
10521 for ac_prog in flex
10522 do
10523   # Extract the first word of "$ac_prog", so it can be a program name with args.
10524 set dummy $ac_prog; ac_word=$2
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10526 $as_echo_n "checking for $ac_word... " >&6; }
10527 if ${ac_cv_prog_FLEX+:} false; then :
10528   $as_echo_n "(cached) " >&6
10529 else
10530   if test -n "$FLEX"; then
10531   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10532 else
10533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10534 for as_dir in $PATH
10535 do
10536   IFS=$as_save_IFS
10537   test -z "$as_dir" && as_dir=.
10538     for ac_exec_ext in '' $ac_executable_extensions; do
10539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10540     ac_cv_prog_FLEX="$ac_prog"
10541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10542     break 2
10543   fi
10544 done
10545   done
10546 IFS=$as_save_IFS
10547
10548 fi
10549 fi
10550 FLEX=$ac_cv_prog_FLEX
10551 if test -n "$FLEX"; then
10552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10553 $as_echo "$FLEX" >&6; }
10554 else
10555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556 $as_echo "no" >&6; }
10557 fi
10558
10559
10560   test -n "$FLEX" && break
10561 done
10562 test -n "$FLEX" || FLEX="$MISSING flex"
10563
10564 case " $build_configdirs " in
10565   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10566 esac
10567
10568 for ac_prog in makeinfo
10569 do
10570   # Extract the first word of "$ac_prog", so it can be a program name with args.
10571 set dummy $ac_prog; ac_word=$2
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10573 $as_echo_n "checking for $ac_word... " >&6; }
10574 if ${ac_cv_prog_MAKEINFO+:} false; then :
10575   $as_echo_n "(cached) " >&6
10576 else
10577   if test -n "$MAKEINFO"; then
10578   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10579 else
10580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10581 for as_dir in $PATH
10582 do
10583   IFS=$as_save_IFS
10584   test -z "$as_dir" && as_dir=.
10585     for ac_exec_ext in '' $ac_executable_extensions; do
10586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10587     ac_cv_prog_MAKEINFO="$ac_prog"
10588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10589     break 2
10590   fi
10591 done
10592   done
10593 IFS=$as_save_IFS
10594
10595 fi
10596 fi
10597 MAKEINFO=$ac_cv_prog_MAKEINFO
10598 if test -n "$MAKEINFO"; then
10599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10600 $as_echo "$MAKEINFO" >&6; }
10601 else
10602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; }
10604 fi
10605
10606
10607   test -n "$MAKEINFO" && break
10608 done
10609 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10610
10611 case " $build_configdirs " in
10612   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10613   *)
10614
10615     # For an installed makeinfo, we require it to be from texinfo 4.7 or
10616     # higher, else we use the "missing" dummy.
10617     if ${MAKEINFO} --version \
10618        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10619       :
10620     else
10621       MAKEINFO="$MISSING makeinfo"
10622     fi
10623     ;;
10624
10625 esac
10626
10627 # FIXME: expect and dejagnu may become build tools?
10628
10629 for ac_prog in expect
10630 do
10631   # Extract the first word of "$ac_prog", so it can be a program name with args.
10632 set dummy $ac_prog; ac_word=$2
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634 $as_echo_n "checking for $ac_word... " >&6; }
10635 if ${ac_cv_prog_EXPECT+:} false; then :
10636   $as_echo_n "(cached) " >&6
10637 else
10638   if test -n "$EXPECT"; then
10639   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10640 else
10641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642 for as_dir in $PATH
10643 do
10644   IFS=$as_save_IFS
10645   test -z "$as_dir" && as_dir=.
10646     for ac_exec_ext in '' $ac_executable_extensions; do
10647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10648     ac_cv_prog_EXPECT="$ac_prog"
10649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10650     break 2
10651   fi
10652 done
10653   done
10654 IFS=$as_save_IFS
10655
10656 fi
10657 fi
10658 EXPECT=$ac_cv_prog_EXPECT
10659 if test -n "$EXPECT"; then
10660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10661 $as_echo "$EXPECT" >&6; }
10662 else
10663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664 $as_echo "no" >&6; }
10665 fi
10666
10667
10668   test -n "$EXPECT" && break
10669 done
10670 test -n "$EXPECT" || EXPECT="expect"
10671
10672 case " $configdirs " in
10673   *" expect "*)
10674     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10675     ;;
10676 esac
10677
10678 for ac_prog in runtest
10679 do
10680   # Extract the first word of "$ac_prog", so it can be a program name with args.
10681 set dummy $ac_prog; ac_word=$2
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10683 $as_echo_n "checking for $ac_word... " >&6; }
10684 if ${ac_cv_prog_RUNTEST+:} false; then :
10685   $as_echo_n "(cached) " >&6
10686 else
10687   if test -n "$RUNTEST"; then
10688   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10689 else
10690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10691 for as_dir in $PATH
10692 do
10693   IFS=$as_save_IFS
10694   test -z "$as_dir" && as_dir=.
10695     for ac_exec_ext in '' $ac_executable_extensions; do
10696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10697     ac_cv_prog_RUNTEST="$ac_prog"
10698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10699     break 2
10700   fi
10701 done
10702   done
10703 IFS=$as_save_IFS
10704
10705 fi
10706 fi
10707 RUNTEST=$ac_cv_prog_RUNTEST
10708 if test -n "$RUNTEST"; then
10709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10710 $as_echo "$RUNTEST" >&6; }
10711 else
10712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10713 $as_echo "no" >&6; }
10714 fi
10715
10716
10717   test -n "$RUNTEST" && break
10718 done
10719 test -n "$RUNTEST" || RUNTEST="runtest"
10720
10721 case " $configdirs " in
10722   *" dejagnu "*)
10723     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10724     ;;
10725 esac
10726
10727
10728 # Host tools.
10729 ncn_tool_prefix=
10730 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10731 ncn_target_tool_prefix=
10732 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10733
10734
10735
10736 if test -n "$AR"; then
10737   ac_cv_prog_AR=$AR
10738 elif test -n "$ac_cv_prog_AR"; then
10739   AR=$ac_cv_prog_AR
10740 fi
10741
10742 if test -n "$ac_cv_prog_AR"; then
10743   for ncn_progname in ar; do
10744     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10745 set dummy ${ncn_progname}; ac_word=$2
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10747 $as_echo_n "checking for $ac_word... " >&6; }
10748 if ${ac_cv_prog_AR+:} false; then :
10749   $as_echo_n "(cached) " >&6
10750 else
10751   if test -n "$AR"; then
10752   ac_cv_prog_AR="$AR" # Let the user override the test.
10753 else
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10756 do
10757   IFS=$as_save_IFS
10758   test -z "$as_dir" && as_dir=.
10759     for ac_exec_ext in '' $ac_executable_extensions; do
10760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10761     ac_cv_prog_AR="${ncn_progname}"
10762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10763     break 2
10764   fi
10765 done
10766   done
10767 IFS=$as_save_IFS
10768
10769 fi
10770 fi
10771 AR=$ac_cv_prog_AR
10772 if test -n "$AR"; then
10773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10774 $as_echo "$AR" >&6; }
10775 else
10776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10778 fi
10779
10780
10781   done
10782 fi
10783
10784 for ncn_progname in ar; do
10785   if test -n "$ncn_tool_prefix"; then
10786     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10787 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10789 $as_echo_n "checking for $ac_word... " >&6; }
10790 if ${ac_cv_prog_AR+:} false; then :
10791   $as_echo_n "(cached) " >&6
10792 else
10793   if test -n "$AR"; then
10794   ac_cv_prog_AR="$AR" # Let the user override the test.
10795 else
10796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10797 for as_dir in $PATH
10798 do
10799   IFS=$as_save_IFS
10800   test -z "$as_dir" && as_dir=.
10801     for ac_exec_ext in '' $ac_executable_extensions; do
10802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10803     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10805     break 2
10806   fi
10807 done
10808   done
10809 IFS=$as_save_IFS
10810
10811 fi
10812 fi
10813 AR=$ac_cv_prog_AR
10814 if test -n "$AR"; then
10815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10816 $as_echo "$AR" >&6; }
10817 else
10818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; }
10820 fi
10821
10822
10823   fi
10824   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10825     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10826 set dummy ${ncn_progname}; ac_word=$2
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10828 $as_echo_n "checking for $ac_word... " >&6; }
10829 if ${ac_cv_prog_AR+:} false; then :
10830   $as_echo_n "(cached) " >&6
10831 else
10832   if test -n "$AR"; then
10833   ac_cv_prog_AR="$AR" # Let the user override the test.
10834 else
10835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836 for as_dir in $PATH
10837 do
10838   IFS=$as_save_IFS
10839   test -z "$as_dir" && as_dir=.
10840     for ac_exec_ext in '' $ac_executable_extensions; do
10841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10842     ac_cv_prog_AR="${ncn_progname}"
10843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10844     break 2
10845   fi
10846 done
10847   done
10848 IFS=$as_save_IFS
10849
10850 fi
10851 fi
10852 AR=$ac_cv_prog_AR
10853 if test -n "$AR"; then
10854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10855 $as_echo "$AR" >&6; }
10856 else
10857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10858 $as_echo "no" >&6; }
10859 fi
10860
10861
10862   fi
10863   test -n "$ac_cv_prog_AR" && break
10864 done
10865
10866 if test -z "$ac_cv_prog_AR" ; then
10867   set dummy ar
10868   if test $build = $host ; then
10869     AR="$2"
10870   else
10871     AR="${ncn_tool_prefix}$2"
10872   fi
10873 fi
10874
10875
10876
10877 if test -n "$AS"; then
10878   ac_cv_prog_AS=$AS
10879 elif test -n "$ac_cv_prog_AS"; then
10880   AS=$ac_cv_prog_AS
10881 fi
10882
10883 if test -n "$ac_cv_prog_AS"; then
10884   for ncn_progname in as; do
10885     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10886 set dummy ${ncn_progname}; ac_word=$2
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10888 $as_echo_n "checking for $ac_word... " >&6; }
10889 if ${ac_cv_prog_AS+:} false; then :
10890   $as_echo_n "(cached) " >&6
10891 else
10892   if test -n "$AS"; then
10893   ac_cv_prog_AS="$AS" # Let the user override the test.
10894 else
10895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896 for as_dir in $PATH
10897 do
10898   IFS=$as_save_IFS
10899   test -z "$as_dir" && as_dir=.
10900     for ac_exec_ext in '' $ac_executable_extensions; do
10901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10902     ac_cv_prog_AS="${ncn_progname}"
10903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10904     break 2
10905   fi
10906 done
10907   done
10908 IFS=$as_save_IFS
10909
10910 fi
10911 fi
10912 AS=$ac_cv_prog_AS
10913 if test -n "$AS"; then
10914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10915 $as_echo "$AS" >&6; }
10916 else
10917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 $as_echo "no" >&6; }
10919 fi
10920
10921
10922   done
10923 fi
10924
10925 for ncn_progname in as; do
10926   if test -n "$ncn_tool_prefix"; then
10927     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10928 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10930 $as_echo_n "checking for $ac_word... " >&6; }
10931 if ${ac_cv_prog_AS+:} false; then :
10932   $as_echo_n "(cached) " >&6
10933 else
10934   if test -n "$AS"; then
10935   ac_cv_prog_AS="$AS" # Let the user override the test.
10936 else
10937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10938 for as_dir in $PATH
10939 do
10940   IFS=$as_save_IFS
10941   test -z "$as_dir" && as_dir=.
10942     for ac_exec_ext in '' $ac_executable_extensions; do
10943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10944     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10946     break 2
10947   fi
10948 done
10949   done
10950 IFS=$as_save_IFS
10951
10952 fi
10953 fi
10954 AS=$ac_cv_prog_AS
10955 if test -n "$AS"; then
10956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10957 $as_echo "$AS" >&6; }
10958 else
10959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10960 $as_echo "no" >&6; }
10961 fi
10962
10963
10964   fi
10965   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10966     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10967 set dummy ${ncn_progname}; ac_word=$2
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10969 $as_echo_n "checking for $ac_word... " >&6; }
10970 if ${ac_cv_prog_AS+:} false; then :
10971   $as_echo_n "(cached) " >&6
10972 else
10973   if test -n "$AS"; then
10974   ac_cv_prog_AS="$AS" # Let the user override the test.
10975 else
10976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977 for as_dir in $PATH
10978 do
10979   IFS=$as_save_IFS
10980   test -z "$as_dir" && as_dir=.
10981     for ac_exec_ext in '' $ac_executable_extensions; do
10982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10983     ac_cv_prog_AS="${ncn_progname}"
10984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10985     break 2
10986   fi
10987 done
10988   done
10989 IFS=$as_save_IFS
10990
10991 fi
10992 fi
10993 AS=$ac_cv_prog_AS
10994 if test -n "$AS"; then
10995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10996 $as_echo "$AS" >&6; }
10997 else
10998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999 $as_echo "no" >&6; }
11000 fi
11001
11002
11003   fi
11004   test -n "$ac_cv_prog_AS" && break
11005 done
11006
11007 if test -z "$ac_cv_prog_AS" ; then
11008   set dummy as
11009   if test $build = $host ; then
11010     AS="$2"
11011   else
11012     AS="${ncn_tool_prefix}$2"
11013   fi
11014 fi
11015
11016
11017
11018 if test -n "$DLLTOOL"; then
11019   ac_cv_prog_DLLTOOL=$DLLTOOL
11020 elif test -n "$ac_cv_prog_DLLTOOL"; then
11021   DLLTOOL=$ac_cv_prog_DLLTOOL
11022 fi
11023
11024 if test -n "$ac_cv_prog_DLLTOOL"; then
11025   for ncn_progname in dlltool; do
11026     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11027 set dummy ${ncn_progname}; ac_word=$2
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11029 $as_echo_n "checking for $ac_word... " >&6; }
11030 if ${ac_cv_prog_DLLTOOL+:} false; then :
11031   $as_echo_n "(cached) " >&6
11032 else
11033   if test -n "$DLLTOOL"; then
11034   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11035 else
11036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037 for as_dir in $PATH
11038 do
11039   IFS=$as_save_IFS
11040   test -z "$as_dir" && as_dir=.
11041     for ac_exec_ext in '' $ac_executable_extensions; do
11042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11043     ac_cv_prog_DLLTOOL="${ncn_progname}"
11044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11045     break 2
11046   fi
11047 done
11048   done
11049 IFS=$as_save_IFS
11050
11051 fi
11052 fi
11053 DLLTOOL=$ac_cv_prog_DLLTOOL
11054 if test -n "$DLLTOOL"; then
11055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11056 $as_echo "$DLLTOOL" >&6; }
11057 else
11058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11059 $as_echo "no" >&6; }
11060 fi
11061
11062
11063   done
11064 fi
11065
11066 for ncn_progname in dlltool; do
11067   if test -n "$ncn_tool_prefix"; then
11068     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11069 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11071 $as_echo_n "checking for $ac_word... " >&6; }
11072 if ${ac_cv_prog_DLLTOOL+:} false; then :
11073   $as_echo_n "(cached) " >&6
11074 else
11075   if test -n "$DLLTOOL"; then
11076   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11077 else
11078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079 for as_dir in $PATH
11080 do
11081   IFS=$as_save_IFS
11082   test -z "$as_dir" && as_dir=.
11083     for ac_exec_ext in '' $ac_executable_extensions; do
11084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11085     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11087     break 2
11088   fi
11089 done
11090   done
11091 IFS=$as_save_IFS
11092
11093 fi
11094 fi
11095 DLLTOOL=$ac_cv_prog_DLLTOOL
11096 if test -n "$DLLTOOL"; then
11097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11098 $as_echo "$DLLTOOL" >&6; }
11099 else
11100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11101 $as_echo "no" >&6; }
11102 fi
11103
11104
11105   fi
11106   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11107     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11108 set dummy ${ncn_progname}; ac_word=$2
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11110 $as_echo_n "checking for $ac_word... " >&6; }
11111 if ${ac_cv_prog_DLLTOOL+:} false; then :
11112   $as_echo_n "(cached) " >&6
11113 else
11114   if test -n "$DLLTOOL"; then
11115   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11116 else
11117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11118 for as_dir in $PATH
11119 do
11120   IFS=$as_save_IFS
11121   test -z "$as_dir" && as_dir=.
11122     for ac_exec_ext in '' $ac_executable_extensions; do
11123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11124     ac_cv_prog_DLLTOOL="${ncn_progname}"
11125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11126     break 2
11127   fi
11128 done
11129   done
11130 IFS=$as_save_IFS
11131
11132 fi
11133 fi
11134 DLLTOOL=$ac_cv_prog_DLLTOOL
11135 if test -n "$DLLTOOL"; then
11136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11137 $as_echo "$DLLTOOL" >&6; }
11138 else
11139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140 $as_echo "no" >&6; }
11141 fi
11142
11143
11144   fi
11145   test -n "$ac_cv_prog_DLLTOOL" && break
11146 done
11147
11148 if test -z "$ac_cv_prog_DLLTOOL" ; then
11149   set dummy dlltool
11150   if test $build = $host ; then
11151     DLLTOOL="$2"
11152   else
11153     DLLTOOL="${ncn_tool_prefix}$2"
11154   fi
11155 fi
11156
11157
11158
11159 if test -n "$DSYMUTIL"; then
11160   ac_cv_prog_DSYMUTIL=$DSYMUTIL
11161 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11162   DSYMUTIL=$ac_cv_prog_DSYMUTIL
11163 fi
11164
11165 if test -n "$ac_cv_prog_DSYMUTIL"; then
11166   for ncn_progname in dsymutil; do
11167     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11168 set dummy ${ncn_progname}; ac_word=$2
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11170 $as_echo_n "checking for $ac_word... " >&6; }
11171 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11172   $as_echo_n "(cached) " >&6
11173 else
11174   if test -n "$DSYMUTIL"; then
11175   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11176 else
11177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178 for as_dir in $PATH
11179 do
11180   IFS=$as_save_IFS
11181   test -z "$as_dir" && as_dir=.
11182     for ac_exec_ext in '' $ac_executable_extensions; do
11183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11184     ac_cv_prog_DSYMUTIL="${ncn_progname}"
11185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11186     break 2
11187   fi
11188 done
11189   done
11190 IFS=$as_save_IFS
11191
11192 fi
11193 fi
11194 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11195 if test -n "$DSYMUTIL"; then
11196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11197 $as_echo "$DSYMUTIL" >&6; }
11198 else
11199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200 $as_echo "no" >&6; }
11201 fi
11202
11203
11204   done
11205 fi
11206
11207 for ncn_progname in dsymutil; do
11208   if test -n "$ncn_tool_prefix"; then
11209     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11210 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11212 $as_echo_n "checking for $ac_word... " >&6; }
11213 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11214   $as_echo_n "(cached) " >&6
11215 else
11216   if test -n "$DSYMUTIL"; then
11217   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11218 else
11219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220 for as_dir in $PATH
11221 do
11222   IFS=$as_save_IFS
11223   test -z "$as_dir" && as_dir=.
11224     for ac_exec_ext in '' $ac_executable_extensions; do
11225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11226     ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11228     break 2
11229   fi
11230 done
11231   done
11232 IFS=$as_save_IFS
11233
11234 fi
11235 fi
11236 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11237 if test -n "$DSYMUTIL"; then
11238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11239 $as_echo "$DSYMUTIL" >&6; }
11240 else
11241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242 $as_echo "no" >&6; }
11243 fi
11244
11245
11246   fi
11247   if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11248     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11249 set dummy ${ncn_progname}; ac_word=$2
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11251 $as_echo_n "checking for $ac_word... " >&6; }
11252 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11253   $as_echo_n "(cached) " >&6
11254 else
11255   if test -n "$DSYMUTIL"; then
11256   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11257 else
11258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11259 for as_dir in $PATH
11260 do
11261   IFS=$as_save_IFS
11262   test -z "$as_dir" && as_dir=.
11263     for ac_exec_ext in '' $ac_executable_extensions; do
11264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11265     ac_cv_prog_DSYMUTIL="${ncn_progname}"
11266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11267     break 2
11268   fi
11269 done
11270   done
11271 IFS=$as_save_IFS
11272
11273 fi
11274 fi
11275 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11276 if test -n "$DSYMUTIL"; then
11277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11278 $as_echo "$DSYMUTIL" >&6; }
11279 else
11280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281 $as_echo "no" >&6; }
11282 fi
11283
11284
11285   fi
11286   test -n "$ac_cv_prog_DSYMUTIL" && break
11287 done
11288
11289 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11290   set dummy dsymutil
11291   if test $build = $host ; then
11292     DSYMUTIL="$2"
11293   else
11294     DSYMUTIL="${ncn_tool_prefix}$2"
11295   fi
11296 fi
11297
11298
11299
11300 if test -n "$LD"; then
11301   ac_cv_prog_LD=$LD
11302 elif test -n "$ac_cv_prog_LD"; then
11303   LD=$ac_cv_prog_LD
11304 fi
11305
11306 if test -n "$ac_cv_prog_LD"; then
11307   for ncn_progname in ld; do
11308     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11309 set dummy ${ncn_progname}; ac_word=$2
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11311 $as_echo_n "checking for $ac_word... " >&6; }
11312 if ${ac_cv_prog_LD+:} false; then :
11313   $as_echo_n "(cached) " >&6
11314 else
11315   if test -n "$LD"; then
11316   ac_cv_prog_LD="$LD" # Let the user override the test.
11317 else
11318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11319 for as_dir in $PATH
11320 do
11321   IFS=$as_save_IFS
11322   test -z "$as_dir" && as_dir=.
11323     for ac_exec_ext in '' $ac_executable_extensions; do
11324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11325     ac_cv_prog_LD="${ncn_progname}"
11326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11327     break 2
11328   fi
11329 done
11330   done
11331 IFS=$as_save_IFS
11332
11333 fi
11334 fi
11335 LD=$ac_cv_prog_LD
11336 if test -n "$LD"; then
11337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11338 $as_echo "$LD" >&6; }
11339 else
11340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341 $as_echo "no" >&6; }
11342 fi
11343
11344
11345   done
11346 fi
11347
11348 for ncn_progname in ld; do
11349   if test -n "$ncn_tool_prefix"; then
11350     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11351 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11353 $as_echo_n "checking for $ac_word... " >&6; }
11354 if ${ac_cv_prog_LD+:} false; then :
11355   $as_echo_n "(cached) " >&6
11356 else
11357   if test -n "$LD"; then
11358   ac_cv_prog_LD="$LD" # Let the user override the test.
11359 else
11360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11361 for as_dir in $PATH
11362 do
11363   IFS=$as_save_IFS
11364   test -z "$as_dir" && as_dir=.
11365     for ac_exec_ext in '' $ac_executable_extensions; do
11366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11367     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11369     break 2
11370   fi
11371 done
11372   done
11373 IFS=$as_save_IFS
11374
11375 fi
11376 fi
11377 LD=$ac_cv_prog_LD
11378 if test -n "$LD"; then
11379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11380 $as_echo "$LD" >&6; }
11381 else
11382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383 $as_echo "no" >&6; }
11384 fi
11385
11386
11387   fi
11388   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11389     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11390 set dummy ${ncn_progname}; ac_word=$2
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11392 $as_echo_n "checking for $ac_word... " >&6; }
11393 if ${ac_cv_prog_LD+:} false; then :
11394   $as_echo_n "(cached) " >&6
11395 else
11396   if test -n "$LD"; then
11397   ac_cv_prog_LD="$LD" # Let the user override the test.
11398 else
11399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400 for as_dir in $PATH
11401 do
11402   IFS=$as_save_IFS
11403   test -z "$as_dir" && as_dir=.
11404     for ac_exec_ext in '' $ac_executable_extensions; do
11405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11406     ac_cv_prog_LD="${ncn_progname}"
11407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11408     break 2
11409   fi
11410 done
11411   done
11412 IFS=$as_save_IFS
11413
11414 fi
11415 fi
11416 LD=$ac_cv_prog_LD
11417 if test -n "$LD"; then
11418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11419 $as_echo "$LD" >&6; }
11420 else
11421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11422 $as_echo "no" >&6; }
11423 fi
11424
11425
11426   fi
11427   test -n "$ac_cv_prog_LD" && break
11428 done
11429
11430 if test -z "$ac_cv_prog_LD" ; then
11431   set dummy ld
11432   if test $build = $host ; then
11433     LD="$2"
11434   else
11435     LD="${ncn_tool_prefix}$2"
11436   fi
11437 fi
11438
11439
11440
11441 if test -n "$LIPO"; then
11442   ac_cv_prog_LIPO=$LIPO
11443 elif test -n "$ac_cv_prog_LIPO"; then
11444   LIPO=$ac_cv_prog_LIPO
11445 fi
11446
11447 if test -n "$ac_cv_prog_LIPO"; then
11448   for ncn_progname in lipo; do
11449     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11450 set dummy ${ncn_progname}; ac_word=$2
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11452 $as_echo_n "checking for $ac_word... " >&6; }
11453 if ${ac_cv_prog_LIPO+:} false; then :
11454   $as_echo_n "(cached) " >&6
11455 else
11456   if test -n "$LIPO"; then
11457   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11458 else
11459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460 for as_dir in $PATH
11461 do
11462   IFS=$as_save_IFS
11463   test -z "$as_dir" && as_dir=.
11464     for ac_exec_ext in '' $ac_executable_extensions; do
11465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11466     ac_cv_prog_LIPO="${ncn_progname}"
11467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11468     break 2
11469   fi
11470 done
11471   done
11472 IFS=$as_save_IFS
11473
11474 fi
11475 fi
11476 LIPO=$ac_cv_prog_LIPO
11477 if test -n "$LIPO"; then
11478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11479 $as_echo "$LIPO" >&6; }
11480 else
11481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11482 $as_echo "no" >&6; }
11483 fi
11484
11485
11486   done
11487 fi
11488
11489 for ncn_progname in lipo; do
11490   if test -n "$ncn_tool_prefix"; then
11491     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11492 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11494 $as_echo_n "checking for $ac_word... " >&6; }
11495 if ${ac_cv_prog_LIPO+:} false; then :
11496   $as_echo_n "(cached) " >&6
11497 else
11498   if test -n "$LIPO"; then
11499   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11500 else
11501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502 for as_dir in $PATH
11503 do
11504   IFS=$as_save_IFS
11505   test -z "$as_dir" && as_dir=.
11506     for ac_exec_ext in '' $ac_executable_extensions; do
11507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11508     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11510     break 2
11511   fi
11512 done
11513   done
11514 IFS=$as_save_IFS
11515
11516 fi
11517 fi
11518 LIPO=$ac_cv_prog_LIPO
11519 if test -n "$LIPO"; then
11520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11521 $as_echo "$LIPO" >&6; }
11522 else
11523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524 $as_echo "no" >&6; }
11525 fi
11526
11527
11528   fi
11529   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11530     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11531 set dummy ${ncn_progname}; ac_word=$2
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11533 $as_echo_n "checking for $ac_word... " >&6; }
11534 if ${ac_cv_prog_LIPO+:} false; then :
11535   $as_echo_n "(cached) " >&6
11536 else
11537   if test -n "$LIPO"; then
11538   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11539 else
11540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11541 for as_dir in $PATH
11542 do
11543   IFS=$as_save_IFS
11544   test -z "$as_dir" && as_dir=.
11545     for ac_exec_ext in '' $ac_executable_extensions; do
11546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11547     ac_cv_prog_LIPO="${ncn_progname}"
11548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11549     break 2
11550   fi
11551 done
11552   done
11553 IFS=$as_save_IFS
11554
11555 fi
11556 fi
11557 LIPO=$ac_cv_prog_LIPO
11558 if test -n "$LIPO"; then
11559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11560 $as_echo "$LIPO" >&6; }
11561 else
11562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11564 fi
11565
11566
11567   fi
11568   test -n "$ac_cv_prog_LIPO" && break
11569 done
11570
11571 if test -z "$ac_cv_prog_LIPO" ; then
11572   set dummy lipo
11573   if test $build = $host ; then
11574     LIPO="$2"
11575   else
11576     LIPO="${ncn_tool_prefix}$2"
11577   fi
11578 fi
11579
11580
11581
11582 if test -n "$NM"; then
11583   ac_cv_prog_NM=$NM
11584 elif test -n "$ac_cv_prog_NM"; then
11585   NM=$ac_cv_prog_NM
11586 fi
11587
11588 if test -n "$ac_cv_prog_NM"; then
11589   for ncn_progname in nm; do
11590     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11591 set dummy ${ncn_progname}; ac_word=$2
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11593 $as_echo_n "checking for $ac_word... " >&6; }
11594 if ${ac_cv_prog_NM+:} false; then :
11595   $as_echo_n "(cached) " >&6
11596 else
11597   if test -n "$NM"; then
11598   ac_cv_prog_NM="$NM" # Let the user override the test.
11599 else
11600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601 for as_dir in $PATH
11602 do
11603   IFS=$as_save_IFS
11604   test -z "$as_dir" && as_dir=.
11605     for ac_exec_ext in '' $ac_executable_extensions; do
11606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11607     ac_cv_prog_NM="${ncn_progname}"
11608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11609     break 2
11610   fi
11611 done
11612   done
11613 IFS=$as_save_IFS
11614
11615 fi
11616 fi
11617 NM=$ac_cv_prog_NM
11618 if test -n "$NM"; then
11619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11620 $as_echo "$NM" >&6; }
11621 else
11622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623 $as_echo "no" >&6; }
11624 fi
11625
11626
11627   done
11628 fi
11629
11630 for ncn_progname in nm; do
11631   if test -n "$ncn_tool_prefix"; then
11632     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11633 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11635 $as_echo_n "checking for $ac_word... " >&6; }
11636 if ${ac_cv_prog_NM+:} false; then :
11637   $as_echo_n "(cached) " >&6
11638 else
11639   if test -n "$NM"; then
11640   ac_cv_prog_NM="$NM" # Let the user override the test.
11641 else
11642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643 for as_dir in $PATH
11644 do
11645   IFS=$as_save_IFS
11646   test -z "$as_dir" && as_dir=.
11647     for ac_exec_ext in '' $ac_executable_extensions; do
11648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11649     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11651     break 2
11652   fi
11653 done
11654   done
11655 IFS=$as_save_IFS
11656
11657 fi
11658 fi
11659 NM=$ac_cv_prog_NM
11660 if test -n "$NM"; then
11661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11662 $as_echo "$NM" >&6; }
11663 else
11664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11665 $as_echo "no" >&6; }
11666 fi
11667
11668
11669   fi
11670   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11671     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11672 set dummy ${ncn_progname}; ac_word=$2
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11674 $as_echo_n "checking for $ac_word... " >&6; }
11675 if ${ac_cv_prog_NM+:} false; then :
11676   $as_echo_n "(cached) " >&6
11677 else
11678   if test -n "$NM"; then
11679   ac_cv_prog_NM="$NM" # Let the user override the test.
11680 else
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $PATH
11683 do
11684   IFS=$as_save_IFS
11685   test -z "$as_dir" && as_dir=.
11686     for ac_exec_ext in '' $ac_executable_extensions; do
11687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11688     ac_cv_prog_NM="${ncn_progname}"
11689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11690     break 2
11691   fi
11692 done
11693   done
11694 IFS=$as_save_IFS
11695
11696 fi
11697 fi
11698 NM=$ac_cv_prog_NM
11699 if test -n "$NM"; then
11700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11701 $as_echo "$NM" >&6; }
11702 else
11703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704 $as_echo "no" >&6; }
11705 fi
11706
11707
11708   fi
11709   test -n "$ac_cv_prog_NM" && break
11710 done
11711
11712 if test -z "$ac_cv_prog_NM" ; then
11713   set dummy nm
11714   if test $build = $host ; then
11715     NM="$2"
11716   else
11717     NM="${ncn_tool_prefix}$2"
11718   fi
11719 fi
11720
11721
11722
11723 if test -n "$RANLIB"; then
11724   ac_cv_prog_RANLIB=$RANLIB
11725 elif test -n "$ac_cv_prog_RANLIB"; then
11726   RANLIB=$ac_cv_prog_RANLIB
11727 fi
11728
11729 if test -n "$ac_cv_prog_RANLIB"; then
11730   for ncn_progname in ranlib; do
11731     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11732 set dummy ${ncn_progname}; ac_word=$2
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11734 $as_echo_n "checking for $ac_word... " >&6; }
11735 if ${ac_cv_prog_RANLIB+:} false; then :
11736   $as_echo_n "(cached) " >&6
11737 else
11738   if test -n "$RANLIB"; then
11739   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11740 else
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in $PATH
11743 do
11744   IFS=$as_save_IFS
11745   test -z "$as_dir" && as_dir=.
11746     for ac_exec_ext in '' $ac_executable_extensions; do
11747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11748     ac_cv_prog_RANLIB="${ncn_progname}"
11749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11750     break 2
11751   fi
11752 done
11753   done
11754 IFS=$as_save_IFS
11755
11756 fi
11757 fi
11758 RANLIB=$ac_cv_prog_RANLIB
11759 if test -n "$RANLIB"; then
11760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11761 $as_echo "$RANLIB" >&6; }
11762 else
11763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11765 fi
11766
11767
11768   done
11769 fi
11770
11771 for ncn_progname in ranlib; do
11772   if test -n "$ncn_tool_prefix"; then
11773     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11774 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11776 $as_echo_n "checking for $ac_word... " >&6; }
11777 if ${ac_cv_prog_RANLIB+:} false; then :
11778   $as_echo_n "(cached) " >&6
11779 else
11780   if test -n "$RANLIB"; then
11781   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11782 else
11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH
11785 do
11786   IFS=$as_save_IFS
11787   test -z "$as_dir" && as_dir=.
11788     for ac_exec_ext in '' $ac_executable_extensions; do
11789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11790     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11792     break 2
11793   fi
11794 done
11795   done
11796 IFS=$as_save_IFS
11797
11798 fi
11799 fi
11800 RANLIB=$ac_cv_prog_RANLIB
11801 if test -n "$RANLIB"; then
11802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11803 $as_echo "$RANLIB" >&6; }
11804 else
11805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11807 fi
11808
11809
11810   fi
11811   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11812     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11813 set dummy ${ncn_progname}; ac_word=$2
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11815 $as_echo_n "checking for $ac_word... " >&6; }
11816 if ${ac_cv_prog_RANLIB+:} false; then :
11817   $as_echo_n "(cached) " >&6
11818 else
11819   if test -n "$RANLIB"; then
11820   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11821 else
11822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11823 for as_dir in $PATH
11824 do
11825   IFS=$as_save_IFS
11826   test -z "$as_dir" && as_dir=.
11827     for ac_exec_ext in '' $ac_executable_extensions; do
11828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11829     ac_cv_prog_RANLIB="${ncn_progname}"
11830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11831     break 2
11832   fi
11833 done
11834   done
11835 IFS=$as_save_IFS
11836
11837 fi
11838 fi
11839 RANLIB=$ac_cv_prog_RANLIB
11840 if test -n "$RANLIB"; then
11841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11842 $as_echo "$RANLIB" >&6; }
11843 else
11844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; }
11846 fi
11847
11848
11849   fi
11850   test -n "$ac_cv_prog_RANLIB" && break
11851 done
11852
11853 if test -z "$ac_cv_prog_RANLIB" ; then
11854   RANLIB="true"
11855 fi
11856
11857
11858
11859 if test -n "$STRIP"; then
11860   ac_cv_prog_STRIP=$STRIP
11861 elif test -n "$ac_cv_prog_STRIP"; then
11862   STRIP=$ac_cv_prog_STRIP
11863 fi
11864
11865 if test -n "$ac_cv_prog_STRIP"; then
11866   for ncn_progname in strip; do
11867     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11868 set dummy ${ncn_progname}; ac_word=$2
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11870 $as_echo_n "checking for $ac_word... " >&6; }
11871 if ${ac_cv_prog_STRIP+:} false; then :
11872   $as_echo_n "(cached) " >&6
11873 else
11874   if test -n "$STRIP"; then
11875   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11876 else
11877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878 for as_dir in $PATH
11879 do
11880   IFS=$as_save_IFS
11881   test -z "$as_dir" && as_dir=.
11882     for ac_exec_ext in '' $ac_executable_extensions; do
11883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11884     ac_cv_prog_STRIP="${ncn_progname}"
11885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11886     break 2
11887   fi
11888 done
11889   done
11890 IFS=$as_save_IFS
11891
11892 fi
11893 fi
11894 STRIP=$ac_cv_prog_STRIP
11895 if test -n "$STRIP"; then
11896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11897 $as_echo "$STRIP" >&6; }
11898 else
11899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11901 fi
11902
11903
11904   done
11905 fi
11906
11907 for ncn_progname in strip; do
11908   if test -n "$ncn_tool_prefix"; then
11909     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11910 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11912 $as_echo_n "checking for $ac_word... " >&6; }
11913 if ${ac_cv_prog_STRIP+:} false; then :
11914   $as_echo_n "(cached) " >&6
11915 else
11916   if test -n "$STRIP"; then
11917   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11918 else
11919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11920 for as_dir in $PATH
11921 do
11922   IFS=$as_save_IFS
11923   test -z "$as_dir" && as_dir=.
11924     for ac_exec_ext in '' $ac_executable_extensions; do
11925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11926     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11928     break 2
11929   fi
11930 done
11931   done
11932 IFS=$as_save_IFS
11933
11934 fi
11935 fi
11936 STRIP=$ac_cv_prog_STRIP
11937 if test -n "$STRIP"; then
11938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11939 $as_echo "$STRIP" >&6; }
11940 else
11941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942 $as_echo "no" >&6; }
11943 fi
11944
11945
11946   fi
11947   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11948     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11949 set dummy ${ncn_progname}; ac_word=$2
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951 $as_echo_n "checking for $ac_word... " >&6; }
11952 if ${ac_cv_prog_STRIP+:} false; then :
11953   $as_echo_n "(cached) " >&6
11954 else
11955   if test -n "$STRIP"; then
11956   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11957 else
11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH
11960 do
11961   IFS=$as_save_IFS
11962   test -z "$as_dir" && as_dir=.
11963     for ac_exec_ext in '' $ac_executable_extensions; do
11964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11965     ac_cv_prog_STRIP="${ncn_progname}"
11966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967     break 2
11968   fi
11969 done
11970   done
11971 IFS=$as_save_IFS
11972
11973 fi
11974 fi
11975 STRIP=$ac_cv_prog_STRIP
11976 if test -n "$STRIP"; then
11977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11978 $as_echo "$STRIP" >&6; }
11979 else
11980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981 $as_echo "no" >&6; }
11982 fi
11983
11984
11985   fi
11986   test -n "$ac_cv_prog_STRIP" && break
11987 done
11988
11989 if test -z "$ac_cv_prog_STRIP" ; then
11990   STRIP="true"
11991 fi
11992
11993
11994
11995 if test -n "$WINDRES"; then
11996   ac_cv_prog_WINDRES=$WINDRES
11997 elif test -n "$ac_cv_prog_WINDRES"; then
11998   WINDRES=$ac_cv_prog_WINDRES
11999 fi
12000
12001 if test -n "$ac_cv_prog_WINDRES"; then
12002   for ncn_progname in windres; do
12003     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12004 set dummy ${ncn_progname}; ac_word=$2
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12006 $as_echo_n "checking for $ac_word... " >&6; }
12007 if ${ac_cv_prog_WINDRES+:} false; then :
12008   $as_echo_n "(cached) " >&6
12009 else
12010   if test -n "$WINDRES"; then
12011   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12012 else
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12015 do
12016   IFS=$as_save_IFS
12017   test -z "$as_dir" && as_dir=.
12018     for ac_exec_ext in '' $ac_executable_extensions; do
12019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12020     ac_cv_prog_WINDRES="${ncn_progname}"
12021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12022     break 2
12023   fi
12024 done
12025   done
12026 IFS=$as_save_IFS
12027
12028 fi
12029 fi
12030 WINDRES=$ac_cv_prog_WINDRES
12031 if test -n "$WINDRES"; then
12032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12033 $as_echo "$WINDRES" >&6; }
12034 else
12035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12037 fi
12038
12039
12040   done
12041 fi
12042
12043 for ncn_progname in windres; do
12044   if test -n "$ncn_tool_prefix"; then
12045     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12046 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12048 $as_echo_n "checking for $ac_word... " >&6; }
12049 if ${ac_cv_prog_WINDRES+:} false; then :
12050   $as_echo_n "(cached) " >&6
12051 else
12052   if test -n "$WINDRES"; then
12053   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12054 else
12055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056 for as_dir in $PATH
12057 do
12058   IFS=$as_save_IFS
12059   test -z "$as_dir" && as_dir=.
12060     for ac_exec_ext in '' $ac_executable_extensions; do
12061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12062     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12064     break 2
12065   fi
12066 done
12067   done
12068 IFS=$as_save_IFS
12069
12070 fi
12071 fi
12072 WINDRES=$ac_cv_prog_WINDRES
12073 if test -n "$WINDRES"; then
12074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12075 $as_echo "$WINDRES" >&6; }
12076 else
12077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 $as_echo "no" >&6; }
12079 fi
12080
12081
12082   fi
12083   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12084     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12085 set dummy ${ncn_progname}; ac_word=$2
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087 $as_echo_n "checking for $ac_word... " >&6; }
12088 if ${ac_cv_prog_WINDRES+:} false; then :
12089   $as_echo_n "(cached) " >&6
12090 else
12091   if test -n "$WINDRES"; then
12092   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12093 else
12094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095 for as_dir in $PATH
12096 do
12097   IFS=$as_save_IFS
12098   test -z "$as_dir" && as_dir=.
12099     for ac_exec_ext in '' $ac_executable_extensions; do
12100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12101     ac_cv_prog_WINDRES="${ncn_progname}"
12102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12103     break 2
12104   fi
12105 done
12106   done
12107 IFS=$as_save_IFS
12108
12109 fi
12110 fi
12111 WINDRES=$ac_cv_prog_WINDRES
12112 if test -n "$WINDRES"; then
12113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12114 $as_echo "$WINDRES" >&6; }
12115 else
12116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12118 fi
12119
12120
12121   fi
12122   test -n "$ac_cv_prog_WINDRES" && break
12123 done
12124
12125 if test -z "$ac_cv_prog_WINDRES" ; then
12126   set dummy windres
12127   if test $build = $host ; then
12128     WINDRES="$2"
12129   else
12130     WINDRES="${ncn_tool_prefix}$2"
12131   fi
12132 fi
12133
12134
12135
12136 if test -n "$WINDMC"; then
12137   ac_cv_prog_WINDMC=$WINDMC
12138 elif test -n "$ac_cv_prog_WINDMC"; then
12139   WINDMC=$ac_cv_prog_WINDMC
12140 fi
12141
12142 if test -n "$ac_cv_prog_WINDMC"; then
12143   for ncn_progname in windmc; do
12144     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12145 set dummy ${ncn_progname}; ac_word=$2
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12147 $as_echo_n "checking for $ac_word... " >&6; }
12148 if ${ac_cv_prog_WINDMC+:} false; then :
12149   $as_echo_n "(cached) " >&6
12150 else
12151   if test -n "$WINDMC"; then
12152   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12153 else
12154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155 for as_dir in $PATH
12156 do
12157   IFS=$as_save_IFS
12158   test -z "$as_dir" && as_dir=.
12159     for ac_exec_ext in '' $ac_executable_extensions; do
12160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12161     ac_cv_prog_WINDMC="${ncn_progname}"
12162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12163     break 2
12164   fi
12165 done
12166   done
12167 IFS=$as_save_IFS
12168
12169 fi
12170 fi
12171 WINDMC=$ac_cv_prog_WINDMC
12172 if test -n "$WINDMC"; then
12173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12174 $as_echo "$WINDMC" >&6; }
12175 else
12176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12177 $as_echo "no" >&6; }
12178 fi
12179
12180
12181   done
12182 fi
12183
12184 for ncn_progname in windmc; do
12185   if test -n "$ncn_tool_prefix"; then
12186     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12187 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12189 $as_echo_n "checking for $ac_word... " >&6; }
12190 if ${ac_cv_prog_WINDMC+:} false; then :
12191   $as_echo_n "(cached) " >&6
12192 else
12193   if test -n "$WINDMC"; then
12194   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12195 else
12196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12197 for as_dir in $PATH
12198 do
12199   IFS=$as_save_IFS
12200   test -z "$as_dir" && as_dir=.
12201     for ac_exec_ext in '' $ac_executable_extensions; do
12202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12203     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12205     break 2
12206   fi
12207 done
12208   done
12209 IFS=$as_save_IFS
12210
12211 fi
12212 fi
12213 WINDMC=$ac_cv_prog_WINDMC
12214 if test -n "$WINDMC"; then
12215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12216 $as_echo "$WINDMC" >&6; }
12217 else
12218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219 $as_echo "no" >&6; }
12220 fi
12221
12222
12223   fi
12224   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12225     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12226 set dummy ${ncn_progname}; ac_word=$2
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228 $as_echo_n "checking for $ac_word... " >&6; }
12229 if ${ac_cv_prog_WINDMC+:} false; then :
12230   $as_echo_n "(cached) " >&6
12231 else
12232   if test -n "$WINDMC"; then
12233   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12234 else
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12237 do
12238   IFS=$as_save_IFS
12239   test -z "$as_dir" && as_dir=.
12240     for ac_exec_ext in '' $ac_executable_extensions; do
12241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12242     ac_cv_prog_WINDMC="${ncn_progname}"
12243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12244     break 2
12245   fi
12246 done
12247   done
12248 IFS=$as_save_IFS
12249
12250 fi
12251 fi
12252 WINDMC=$ac_cv_prog_WINDMC
12253 if test -n "$WINDMC"; then
12254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12255 $as_echo "$WINDMC" >&6; }
12256 else
12257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258 $as_echo "no" >&6; }
12259 fi
12260
12261
12262   fi
12263   test -n "$ac_cv_prog_WINDMC" && break
12264 done
12265
12266 if test -z "$ac_cv_prog_WINDMC" ; then
12267   set dummy windmc
12268   if test $build = $host ; then
12269     WINDMC="$2"
12270   else
12271     WINDMC="${ncn_tool_prefix}$2"
12272   fi
12273 fi
12274
12275
12276
12277 if test -n "$OBJCOPY"; then
12278   ac_cv_prog_OBJCOPY=$OBJCOPY
12279 elif test -n "$ac_cv_prog_OBJCOPY"; then
12280   OBJCOPY=$ac_cv_prog_OBJCOPY
12281 fi
12282
12283 if test -n "$ac_cv_prog_OBJCOPY"; then
12284   for ncn_progname in objcopy; do
12285     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12286 set dummy ${ncn_progname}; ac_word=$2
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12288 $as_echo_n "checking for $ac_word... " >&6; }
12289 if ${ac_cv_prog_OBJCOPY+:} false; then :
12290   $as_echo_n "(cached) " >&6
12291 else
12292   if test -n "$OBJCOPY"; then
12293   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12294 else
12295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296 for as_dir in $PATH
12297 do
12298   IFS=$as_save_IFS
12299   test -z "$as_dir" && as_dir=.
12300     for ac_exec_ext in '' $ac_executable_extensions; do
12301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12302     ac_cv_prog_OBJCOPY="${ncn_progname}"
12303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12304     break 2
12305   fi
12306 done
12307   done
12308 IFS=$as_save_IFS
12309
12310 fi
12311 fi
12312 OBJCOPY=$ac_cv_prog_OBJCOPY
12313 if test -n "$OBJCOPY"; then
12314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12315 $as_echo "$OBJCOPY" >&6; }
12316 else
12317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12319 fi
12320
12321
12322   done
12323 fi
12324
12325 for ncn_progname in objcopy; do
12326   if test -n "$ncn_tool_prefix"; then
12327     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12328 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12330 $as_echo_n "checking for $ac_word... " >&6; }
12331 if ${ac_cv_prog_OBJCOPY+:} false; then :
12332   $as_echo_n "(cached) " >&6
12333 else
12334   if test -n "$OBJCOPY"; then
12335   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12336 else
12337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338 for as_dir in $PATH
12339 do
12340   IFS=$as_save_IFS
12341   test -z "$as_dir" && as_dir=.
12342     for ac_exec_ext in '' $ac_executable_extensions; do
12343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12344     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12346     break 2
12347   fi
12348 done
12349   done
12350 IFS=$as_save_IFS
12351
12352 fi
12353 fi
12354 OBJCOPY=$ac_cv_prog_OBJCOPY
12355 if test -n "$OBJCOPY"; then
12356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12357 $as_echo "$OBJCOPY" >&6; }
12358 else
12359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360 $as_echo "no" >&6; }
12361 fi
12362
12363
12364   fi
12365   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12366     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12367 set dummy ${ncn_progname}; ac_word=$2
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12369 $as_echo_n "checking for $ac_word... " >&6; }
12370 if ${ac_cv_prog_OBJCOPY+:} false; then :
12371   $as_echo_n "(cached) " >&6
12372 else
12373   if test -n "$OBJCOPY"; then
12374   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12375 else
12376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377 for as_dir in $PATH
12378 do
12379   IFS=$as_save_IFS
12380   test -z "$as_dir" && as_dir=.
12381     for ac_exec_ext in '' $ac_executable_extensions; do
12382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12383     ac_cv_prog_OBJCOPY="${ncn_progname}"
12384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12385     break 2
12386   fi
12387 done
12388   done
12389 IFS=$as_save_IFS
12390
12391 fi
12392 fi
12393 OBJCOPY=$ac_cv_prog_OBJCOPY
12394 if test -n "$OBJCOPY"; then
12395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12396 $as_echo "$OBJCOPY" >&6; }
12397 else
12398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399 $as_echo "no" >&6; }
12400 fi
12401
12402
12403   fi
12404   test -n "$ac_cv_prog_OBJCOPY" && break
12405 done
12406
12407 if test -z "$ac_cv_prog_OBJCOPY" ; then
12408   set dummy objcopy
12409   if test $build = $host ; then
12410     OBJCOPY="$2"
12411   else
12412     OBJCOPY="${ncn_tool_prefix}$2"
12413   fi
12414 fi
12415
12416
12417
12418 if test -n "$OBJDUMP"; then
12419   ac_cv_prog_OBJDUMP=$OBJDUMP
12420 elif test -n "$ac_cv_prog_OBJDUMP"; then
12421   OBJDUMP=$ac_cv_prog_OBJDUMP
12422 fi
12423
12424 if test -n "$ac_cv_prog_OBJDUMP"; then
12425   for ncn_progname in objdump; do
12426     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12427 set dummy ${ncn_progname}; ac_word=$2
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429 $as_echo_n "checking for $ac_word... " >&6; }
12430 if ${ac_cv_prog_OBJDUMP+:} false; then :
12431   $as_echo_n "(cached) " >&6
12432 else
12433   if test -n "$OBJDUMP"; then
12434   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12435 else
12436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437 for as_dir in $PATH
12438 do
12439   IFS=$as_save_IFS
12440   test -z "$as_dir" && as_dir=.
12441     for ac_exec_ext in '' $ac_executable_extensions; do
12442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12443     ac_cv_prog_OBJDUMP="${ncn_progname}"
12444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12445     break 2
12446   fi
12447 done
12448   done
12449 IFS=$as_save_IFS
12450
12451 fi
12452 fi
12453 OBJDUMP=$ac_cv_prog_OBJDUMP
12454 if test -n "$OBJDUMP"; then
12455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12456 $as_echo "$OBJDUMP" >&6; }
12457 else
12458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459 $as_echo "no" >&6; }
12460 fi
12461
12462
12463   done
12464 fi
12465
12466 for ncn_progname in objdump; do
12467   if test -n "$ncn_tool_prefix"; then
12468     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12469 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471 $as_echo_n "checking for $ac_word... " >&6; }
12472 if ${ac_cv_prog_OBJDUMP+:} false; then :
12473   $as_echo_n "(cached) " >&6
12474 else
12475   if test -n "$OBJDUMP"; then
12476   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12477 else
12478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479 for as_dir in $PATH
12480 do
12481   IFS=$as_save_IFS
12482   test -z "$as_dir" && as_dir=.
12483     for ac_exec_ext in '' $ac_executable_extensions; do
12484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12485     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12487     break 2
12488   fi
12489 done
12490   done
12491 IFS=$as_save_IFS
12492
12493 fi
12494 fi
12495 OBJDUMP=$ac_cv_prog_OBJDUMP
12496 if test -n "$OBJDUMP"; then
12497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12498 $as_echo "$OBJDUMP" >&6; }
12499 else
12500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12502 fi
12503
12504
12505   fi
12506   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12507     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12508 set dummy ${ncn_progname}; ac_word=$2
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12510 $as_echo_n "checking for $ac_word... " >&6; }
12511 if ${ac_cv_prog_OBJDUMP+:} false; then :
12512   $as_echo_n "(cached) " >&6
12513 else
12514   if test -n "$OBJDUMP"; then
12515   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12516 else
12517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12518 for as_dir in $PATH
12519 do
12520   IFS=$as_save_IFS
12521   test -z "$as_dir" && as_dir=.
12522     for ac_exec_ext in '' $ac_executable_extensions; do
12523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12524     ac_cv_prog_OBJDUMP="${ncn_progname}"
12525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12526     break 2
12527   fi
12528 done
12529   done
12530 IFS=$as_save_IFS
12531
12532 fi
12533 fi
12534 OBJDUMP=$ac_cv_prog_OBJDUMP
12535 if test -n "$OBJDUMP"; then
12536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12537 $as_echo "$OBJDUMP" >&6; }
12538 else
12539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540 $as_echo "no" >&6; }
12541 fi
12542
12543
12544   fi
12545   test -n "$ac_cv_prog_OBJDUMP" && break
12546 done
12547
12548 if test -z "$ac_cv_prog_OBJDUMP" ; then
12549   set dummy objdump
12550   if test $build = $host ; then
12551     OBJDUMP="$2"
12552   else
12553     OBJDUMP="${ncn_tool_prefix}$2"
12554   fi
12555 fi
12556
12557
12558
12559 if test -n "$OTOOL"; then
12560   ac_cv_prog_OTOOL=$OTOOL
12561 elif test -n "$ac_cv_prog_OTOOL"; then
12562   OTOOL=$ac_cv_prog_OTOOL
12563 fi
12564
12565 if test -n "$ac_cv_prog_OTOOL"; then
12566   for ncn_progname in otool; do
12567     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12568 set dummy ${ncn_progname}; ac_word=$2
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12570 $as_echo_n "checking for $ac_word... " >&6; }
12571 if ${ac_cv_prog_OTOOL+:} false; then :
12572   $as_echo_n "(cached) " >&6
12573 else
12574   if test -n "$OTOOL"; then
12575   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12576 else
12577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578 for as_dir in $PATH
12579 do
12580   IFS=$as_save_IFS
12581   test -z "$as_dir" && as_dir=.
12582     for ac_exec_ext in '' $ac_executable_extensions; do
12583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12584     ac_cv_prog_OTOOL="${ncn_progname}"
12585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12586     break 2
12587   fi
12588 done
12589   done
12590 IFS=$as_save_IFS
12591
12592 fi
12593 fi
12594 OTOOL=$ac_cv_prog_OTOOL
12595 if test -n "$OTOOL"; then
12596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12597 $as_echo "$OTOOL" >&6; }
12598 else
12599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12600 $as_echo "no" >&6; }
12601 fi
12602
12603
12604   done
12605 fi
12606
12607 for ncn_progname in otool; do
12608   if test -n "$ncn_tool_prefix"; then
12609     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12610 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12612 $as_echo_n "checking for $ac_word... " >&6; }
12613 if ${ac_cv_prog_OTOOL+:} false; then :
12614   $as_echo_n "(cached) " >&6
12615 else
12616   if test -n "$OTOOL"; then
12617   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12618 else
12619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12620 for as_dir in $PATH
12621 do
12622   IFS=$as_save_IFS
12623   test -z "$as_dir" && as_dir=.
12624     for ac_exec_ext in '' $ac_executable_extensions; do
12625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12626     ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12628     break 2
12629   fi
12630 done
12631   done
12632 IFS=$as_save_IFS
12633
12634 fi
12635 fi
12636 OTOOL=$ac_cv_prog_OTOOL
12637 if test -n "$OTOOL"; then
12638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12639 $as_echo "$OTOOL" >&6; }
12640 else
12641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12642 $as_echo "no" >&6; }
12643 fi
12644
12645
12646   fi
12647   if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12648     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12649 set dummy ${ncn_progname}; ac_word=$2
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12651 $as_echo_n "checking for $ac_word... " >&6; }
12652 if ${ac_cv_prog_OTOOL+:} false; then :
12653   $as_echo_n "(cached) " >&6
12654 else
12655   if test -n "$OTOOL"; then
12656   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12657 else
12658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12659 for as_dir in $PATH
12660 do
12661   IFS=$as_save_IFS
12662   test -z "$as_dir" && as_dir=.
12663     for ac_exec_ext in '' $ac_executable_extensions; do
12664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12665     ac_cv_prog_OTOOL="${ncn_progname}"
12666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12667     break 2
12668   fi
12669 done
12670   done
12671 IFS=$as_save_IFS
12672
12673 fi
12674 fi
12675 OTOOL=$ac_cv_prog_OTOOL
12676 if test -n "$OTOOL"; then
12677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12678 $as_echo "$OTOOL" >&6; }
12679 else
12680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681 $as_echo "no" >&6; }
12682 fi
12683
12684
12685   fi
12686   test -n "$ac_cv_prog_OTOOL" && break
12687 done
12688
12689 if test -z "$ac_cv_prog_OTOOL" ; then
12690   set dummy otool
12691   if test $build = $host ; then
12692     OTOOL="$2"
12693   else
12694     OTOOL="${ncn_tool_prefix}$2"
12695   fi
12696 fi
12697
12698
12699
12700 if test -n "$READELF"; then
12701   ac_cv_prog_READELF=$READELF
12702 elif test -n "$ac_cv_prog_READELF"; then
12703   READELF=$ac_cv_prog_READELF
12704 fi
12705
12706 if test -n "$ac_cv_prog_READELF"; then
12707   for ncn_progname in readelf; do
12708     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12709 set dummy ${ncn_progname}; ac_word=$2
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12711 $as_echo_n "checking for $ac_word... " >&6; }
12712 if ${ac_cv_prog_READELF+:} false; then :
12713   $as_echo_n "(cached) " >&6
12714 else
12715   if test -n "$READELF"; then
12716   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12717 else
12718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12719 for as_dir in $PATH
12720 do
12721   IFS=$as_save_IFS
12722   test -z "$as_dir" && as_dir=.
12723     for ac_exec_ext in '' $ac_executable_extensions; do
12724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12725     ac_cv_prog_READELF="${ncn_progname}"
12726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12727     break 2
12728   fi
12729 done
12730   done
12731 IFS=$as_save_IFS
12732
12733 fi
12734 fi
12735 READELF=$ac_cv_prog_READELF
12736 if test -n "$READELF"; then
12737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12738 $as_echo "$READELF" >&6; }
12739 else
12740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12741 $as_echo "no" >&6; }
12742 fi
12743
12744
12745   done
12746 fi
12747
12748 for ncn_progname in readelf; do
12749   if test -n "$ncn_tool_prefix"; then
12750     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12751 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12753 $as_echo_n "checking for $ac_word... " >&6; }
12754 if ${ac_cv_prog_READELF+:} false; then :
12755   $as_echo_n "(cached) " >&6
12756 else
12757   if test -n "$READELF"; then
12758   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12759 else
12760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12761 for as_dir in $PATH
12762 do
12763   IFS=$as_save_IFS
12764   test -z "$as_dir" && as_dir=.
12765     for ac_exec_ext in '' $ac_executable_extensions; do
12766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12767     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12769     break 2
12770   fi
12771 done
12772   done
12773 IFS=$as_save_IFS
12774
12775 fi
12776 fi
12777 READELF=$ac_cv_prog_READELF
12778 if test -n "$READELF"; then
12779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12780 $as_echo "$READELF" >&6; }
12781 else
12782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12783 $as_echo "no" >&6; }
12784 fi
12785
12786
12787   fi
12788   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12789     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12790 set dummy ${ncn_progname}; ac_word=$2
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792 $as_echo_n "checking for $ac_word... " >&6; }
12793 if ${ac_cv_prog_READELF+:} false; then :
12794   $as_echo_n "(cached) " >&6
12795 else
12796   if test -n "$READELF"; then
12797   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12798 else
12799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12800 for as_dir in $PATH
12801 do
12802   IFS=$as_save_IFS
12803   test -z "$as_dir" && as_dir=.
12804     for ac_exec_ext in '' $ac_executable_extensions; do
12805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12806     ac_cv_prog_READELF="${ncn_progname}"
12807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12808     break 2
12809   fi
12810 done
12811   done
12812 IFS=$as_save_IFS
12813
12814 fi
12815 fi
12816 READELF=$ac_cv_prog_READELF
12817 if test -n "$READELF"; then
12818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12819 $as_echo "$READELF" >&6; }
12820 else
12821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822 $as_echo "no" >&6; }
12823 fi
12824
12825
12826   fi
12827   test -n "$ac_cv_prog_READELF" && break
12828 done
12829
12830 if test -z "$ac_cv_prog_READELF" ; then
12831   set dummy readelf
12832   if test $build = $host ; then
12833     READELF="$2"
12834   else
12835     READELF="${ncn_tool_prefix}$2"
12836   fi
12837 fi
12838
12839
12840
12841
12842
12843
12844
12845
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
12847 $as_echo_n "checking for -plugin option... " >&6; }
12848
12849 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
12850 plugin_option=
12851 for plugin in $plugin_names; do
12852   plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
12853   if test x$plugin_so = x$plugin; then
12854     plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
12855   fi
12856   if test x$plugin_so != x$plugin; then
12857     plugin_option="--plugin $plugin_so"
12858     break
12859   fi
12860 done
12861 if test -n "$plugin_option"; then
12862   PLUGIN_OPTION="$plugin_option"
12863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
12864 $as_echo "$plugin_option" >&6; }
12865 else
12866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867 $as_echo "no" >&6; }
12868 fi
12869
12870 AR_PLUGIN_OPTION=
12871 RANLIB_PLUGIN_OPTION=
12872 if test -n "$PLUGIN_OPTION"; then
12873   if $AR --help 2>&1 | grep -q "\--plugin"; then
12874     AR_PLUGIN_OPTION="$PLUGIN_OPTION"
12875   fi
12876   if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
12877     RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
12878   fi
12879 fi
12880
12881
12882
12883 # Target tools.
12884
12885 # Check whether --with-build-time-tools was given.
12886 if test "${with_build_time_tools+set}" = set; then :
12887   withval=$with_build_time_tools; case x"$withval" in
12888      x/*) ;;
12889      *)
12890        with_build_time_tools=
12891        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12892 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12893        ;;
12894    esac
12895 else
12896   with_build_time_tools=
12897 fi
12898
12899
12900
12901
12902 if test -n "$CC_FOR_TARGET"; then
12903   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12904 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12905   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12906 fi
12907
12908 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12909   for ncn_progname in cc gcc; do
12910     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12911 set dummy ${ncn_progname}; ac_word=$2
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12913 $as_echo_n "checking for $ac_word... " >&6; }
12914 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12915   $as_echo_n "(cached) " >&6
12916 else
12917   if test -n "$CC_FOR_TARGET"; then
12918   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12919 else
12920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12921 for as_dir in $PATH
12922 do
12923   IFS=$as_save_IFS
12924   test -z "$as_dir" && as_dir=.
12925     for ac_exec_ext in '' $ac_executable_extensions; do
12926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12927     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12929     break 2
12930   fi
12931 done
12932   done
12933 IFS=$as_save_IFS
12934
12935 fi
12936 fi
12937 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12938 if test -n "$CC_FOR_TARGET"; then
12939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12940 $as_echo "$CC_FOR_TARGET" >&6; }
12941 else
12942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12943 $as_echo "no" >&6; }
12944 fi
12945
12946
12947   done
12948 fi
12949
12950 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12951   for ncn_progname in cc gcc; do
12952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12953 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12954     if test -x $with_build_time_tools/${ncn_progname}; then
12955       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12956       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12957 $as_echo "yes" >&6; }
12958       break
12959     else
12960       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12961 $as_echo "no" >&6; }
12962     fi
12963   done
12964 fi
12965
12966 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12967   for ncn_progname in cc gcc; do
12968     if test -n "$ncn_target_tool_prefix"; then
12969       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12970 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12972 $as_echo_n "checking for $ac_word... " >&6; }
12973 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12974   $as_echo_n "(cached) " >&6
12975 else
12976   if test -n "$CC_FOR_TARGET"; then
12977   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12978 else
12979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12980 for as_dir in $PATH
12981 do
12982   IFS=$as_save_IFS
12983   test -z "$as_dir" && as_dir=.
12984     for ac_exec_ext in '' $ac_executable_extensions; do
12985   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12986     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12988     break 2
12989   fi
12990 done
12991   done
12992 IFS=$as_save_IFS
12993
12994 fi
12995 fi
12996 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12997 if test -n "$CC_FOR_TARGET"; then
12998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12999 $as_echo "$CC_FOR_TARGET" >&6; }
13000 else
13001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002 $as_echo "no" >&6; }
13003 fi
13004
13005
13006     fi
13007     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13008       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13009 set dummy ${ncn_progname}; ac_word=$2
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13011 $as_echo_n "checking for $ac_word... " >&6; }
13012 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13013   $as_echo_n "(cached) " >&6
13014 else
13015   if test -n "$CC_FOR_TARGET"; then
13016   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13017 else
13018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019 for as_dir in $PATH
13020 do
13021   IFS=$as_save_IFS
13022   test -z "$as_dir" && as_dir=.
13023     for ac_exec_ext in '' $ac_executable_extensions; do
13024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13025     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13027     break 2
13028   fi
13029 done
13030   done
13031 IFS=$as_save_IFS
13032
13033 fi
13034 fi
13035 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13036 if test -n "$CC_FOR_TARGET"; then
13037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13038 $as_echo "$CC_FOR_TARGET" >&6; }
13039 else
13040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041 $as_echo "no" >&6; }
13042 fi
13043
13044
13045     fi
13046     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13047   done
13048 fi
13049
13050 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13051   set dummy cc gcc
13052   if test $build = $target ; then
13053     CC_FOR_TARGET="$2"
13054   else
13055     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13056   fi
13057 else
13058   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13059 fi
13060
13061
13062
13063 if test -n "$CXX_FOR_TARGET"; then
13064   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13065 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13066   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13067 fi
13068
13069 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13070   for ncn_progname in c++ g++ cxx gxx; do
13071     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13072 set dummy ${ncn_progname}; ac_word=$2
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13074 $as_echo_n "checking for $ac_word... " >&6; }
13075 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13076   $as_echo_n "(cached) " >&6
13077 else
13078   if test -n "$CXX_FOR_TARGET"; then
13079   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13080 else
13081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13082 for as_dir in $PATH
13083 do
13084   IFS=$as_save_IFS
13085   test -z "$as_dir" && as_dir=.
13086     for ac_exec_ext in '' $ac_executable_extensions; do
13087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13088     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13090     break 2
13091   fi
13092 done
13093   done
13094 IFS=$as_save_IFS
13095
13096 fi
13097 fi
13098 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13099 if test -n "$CXX_FOR_TARGET"; then
13100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13101 $as_echo "$CXX_FOR_TARGET" >&6; }
13102 else
13103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104 $as_echo "no" >&6; }
13105 fi
13106
13107
13108   done
13109 fi
13110
13111 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13112   for ncn_progname in c++ g++ cxx gxx; do
13113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13114 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13115     if test -x $with_build_time_tools/${ncn_progname}; then
13116       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13117       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13118 $as_echo "yes" >&6; }
13119       break
13120     else
13121       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13122 $as_echo "no" >&6; }
13123     fi
13124   done
13125 fi
13126
13127 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13128   for ncn_progname in c++ g++ cxx gxx; do
13129     if test -n "$ncn_target_tool_prefix"; then
13130       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13131 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133 $as_echo_n "checking for $ac_word... " >&6; }
13134 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13135   $as_echo_n "(cached) " >&6
13136 else
13137   if test -n "$CXX_FOR_TARGET"; then
13138   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13139 else
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13142 do
13143   IFS=$as_save_IFS
13144   test -z "$as_dir" && as_dir=.
13145     for ac_exec_ext in '' $ac_executable_extensions; do
13146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13147     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13149     break 2
13150   fi
13151 done
13152   done
13153 IFS=$as_save_IFS
13154
13155 fi
13156 fi
13157 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13158 if test -n "$CXX_FOR_TARGET"; then
13159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13160 $as_echo "$CXX_FOR_TARGET" >&6; }
13161 else
13162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163 $as_echo "no" >&6; }
13164 fi
13165
13166
13167     fi
13168     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13169       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13170 set dummy ${ncn_progname}; ac_word=$2
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13172 $as_echo_n "checking for $ac_word... " >&6; }
13173 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13174   $as_echo_n "(cached) " >&6
13175 else
13176   if test -n "$CXX_FOR_TARGET"; then
13177   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13178 else
13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180 for as_dir in $PATH
13181 do
13182   IFS=$as_save_IFS
13183   test -z "$as_dir" && as_dir=.
13184     for ac_exec_ext in '' $ac_executable_extensions; do
13185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13186     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13188     break 2
13189   fi
13190 done
13191   done
13192 IFS=$as_save_IFS
13193
13194 fi
13195 fi
13196 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13197 if test -n "$CXX_FOR_TARGET"; then
13198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13199 $as_echo "$CXX_FOR_TARGET" >&6; }
13200 else
13201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202 $as_echo "no" >&6; }
13203 fi
13204
13205
13206     fi
13207     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13208   done
13209 fi
13210
13211 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13212   set dummy c++ g++ cxx gxx
13213   if test $build = $target ; then
13214     CXX_FOR_TARGET="$2"
13215   else
13216     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13217   fi
13218 else
13219   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13220 fi
13221
13222
13223
13224 if test -n "$GCC_FOR_TARGET"; then
13225   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13226 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13227   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13228 fi
13229
13230 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13231   for ncn_progname in gcc; do
13232     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13233 set dummy ${ncn_progname}; ac_word=$2
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13235 $as_echo_n "checking for $ac_word... " >&6; }
13236 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13237   $as_echo_n "(cached) " >&6
13238 else
13239   if test -n "$GCC_FOR_TARGET"; then
13240   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13241 else
13242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243 for as_dir in $PATH
13244 do
13245   IFS=$as_save_IFS
13246   test -z "$as_dir" && as_dir=.
13247     for ac_exec_ext in '' $ac_executable_extensions; do
13248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13249     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13251     break 2
13252   fi
13253 done
13254   done
13255 IFS=$as_save_IFS
13256
13257 fi
13258 fi
13259 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13260 if test -n "$GCC_FOR_TARGET"; then
13261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13262 $as_echo "$GCC_FOR_TARGET" >&6; }
13263 else
13264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265 $as_echo "no" >&6; }
13266 fi
13267
13268
13269   done
13270 fi
13271
13272 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13273   for ncn_progname in gcc; do
13274     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13275 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13276     if test -x $with_build_time_tools/${ncn_progname}; then
13277       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13278       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13279 $as_echo "yes" >&6; }
13280       break
13281     else
13282       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 $as_echo "no" >&6; }
13284     fi
13285   done
13286 fi
13287
13288 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13289   for ncn_progname in gcc; do
13290     if test -n "$ncn_target_tool_prefix"; then
13291       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13292 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294 $as_echo_n "checking for $ac_word... " >&6; }
13295 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13296   $as_echo_n "(cached) " >&6
13297 else
13298   if test -n "$GCC_FOR_TARGET"; then
13299   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13300 else
13301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302 for as_dir in $PATH
13303 do
13304   IFS=$as_save_IFS
13305   test -z "$as_dir" && as_dir=.
13306     for ac_exec_ext in '' $ac_executable_extensions; do
13307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13308     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13310     break 2
13311   fi
13312 done
13313   done
13314 IFS=$as_save_IFS
13315
13316 fi
13317 fi
13318 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13319 if test -n "$GCC_FOR_TARGET"; then
13320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13321 $as_echo "$GCC_FOR_TARGET" >&6; }
13322 else
13323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324 $as_echo "no" >&6; }
13325 fi
13326
13327
13328     fi
13329     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13330       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13331 set dummy ${ncn_progname}; ac_word=$2
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13333 $as_echo_n "checking for $ac_word... " >&6; }
13334 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13335   $as_echo_n "(cached) " >&6
13336 else
13337   if test -n "$GCC_FOR_TARGET"; then
13338   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13339 else
13340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13341 for as_dir in $PATH
13342 do
13343   IFS=$as_save_IFS
13344   test -z "$as_dir" && as_dir=.
13345     for ac_exec_ext in '' $ac_executable_extensions; do
13346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13347     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13349     break 2
13350   fi
13351 done
13352   done
13353 IFS=$as_save_IFS
13354
13355 fi
13356 fi
13357 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13358 if test -n "$GCC_FOR_TARGET"; then
13359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13360 $as_echo "$GCC_FOR_TARGET" >&6; }
13361 else
13362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 $as_echo "no" >&6; }
13364 fi
13365
13366
13367     fi
13368     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13369   done
13370 fi
13371
13372 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13373   GCC_FOR_TARGET="${CC_FOR_TARGET}"
13374 else
13375   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13376 fi
13377
13378
13379
13380 if test -n "$GFORTRAN_FOR_TARGET"; then
13381   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13382 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13383   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13384 fi
13385
13386 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13387   for ncn_progname in gfortran; do
13388     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13389 set dummy ${ncn_progname}; ac_word=$2
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13391 $as_echo_n "checking for $ac_word... " >&6; }
13392 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13393   $as_echo_n "(cached) " >&6
13394 else
13395   if test -n "$GFORTRAN_FOR_TARGET"; then
13396   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13397 else
13398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13399 for as_dir in $PATH
13400 do
13401   IFS=$as_save_IFS
13402   test -z "$as_dir" && as_dir=.
13403     for ac_exec_ext in '' $ac_executable_extensions; do
13404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13405     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13407     break 2
13408   fi
13409 done
13410   done
13411 IFS=$as_save_IFS
13412
13413 fi
13414 fi
13415 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13416 if test -n "$GFORTRAN_FOR_TARGET"; then
13417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13418 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13419 else
13420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13421 $as_echo "no" >&6; }
13422 fi
13423
13424
13425   done
13426 fi
13427
13428 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13429   for ncn_progname in gfortran; do
13430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13431 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13432     if test -x $with_build_time_tools/${ncn_progname}; then
13433       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13434       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13435 $as_echo "yes" >&6; }
13436       break
13437     else
13438       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13439 $as_echo "no" >&6; }
13440     fi
13441   done
13442 fi
13443
13444 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13445   for ncn_progname in gfortran; do
13446     if test -n "$ncn_target_tool_prefix"; then
13447       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13448 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13450 $as_echo_n "checking for $ac_word... " >&6; }
13451 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13452   $as_echo_n "(cached) " >&6
13453 else
13454   if test -n "$GFORTRAN_FOR_TARGET"; then
13455   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13456 else
13457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13458 for as_dir in $PATH
13459 do
13460   IFS=$as_save_IFS
13461   test -z "$as_dir" && as_dir=.
13462     for ac_exec_ext in '' $ac_executable_extensions; do
13463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13464     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13466     break 2
13467   fi
13468 done
13469   done
13470 IFS=$as_save_IFS
13471
13472 fi
13473 fi
13474 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13475 if test -n "$GFORTRAN_FOR_TARGET"; then
13476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13477 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13478 else
13479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13480 $as_echo "no" >&6; }
13481 fi
13482
13483
13484     fi
13485     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13486       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13487 set dummy ${ncn_progname}; ac_word=$2
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13489 $as_echo_n "checking for $ac_word... " >&6; }
13490 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13491   $as_echo_n "(cached) " >&6
13492 else
13493   if test -n "$GFORTRAN_FOR_TARGET"; then
13494   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13495 else
13496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497 for as_dir in $PATH
13498 do
13499   IFS=$as_save_IFS
13500   test -z "$as_dir" && as_dir=.
13501     for ac_exec_ext in '' $ac_executable_extensions; do
13502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13503     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13505     break 2
13506   fi
13507 done
13508   done
13509 IFS=$as_save_IFS
13510
13511 fi
13512 fi
13513 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13514 if test -n "$GFORTRAN_FOR_TARGET"; then
13515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13516 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13517 else
13518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13519 $as_echo "no" >&6; }
13520 fi
13521
13522
13523     fi
13524     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13525   done
13526 fi
13527
13528 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13529   set dummy gfortran
13530   if test $build = $target ; then
13531     GFORTRAN_FOR_TARGET="$2"
13532   else
13533     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13534   fi
13535 else
13536   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13537 fi
13538
13539
13540
13541 if test -n "$GOC_FOR_TARGET"; then
13542   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13543 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13544   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13545 fi
13546
13547 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13548   for ncn_progname in gccgo; do
13549     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13550 set dummy ${ncn_progname}; ac_word=$2
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13552 $as_echo_n "checking for $ac_word... " >&6; }
13553 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13554   $as_echo_n "(cached) " >&6
13555 else
13556   if test -n "$GOC_FOR_TARGET"; then
13557   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13558 else
13559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13560 for as_dir in $PATH
13561 do
13562   IFS=$as_save_IFS
13563   test -z "$as_dir" && as_dir=.
13564     for ac_exec_ext in '' $ac_executable_extensions; do
13565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13566     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13568     break 2
13569   fi
13570 done
13571   done
13572 IFS=$as_save_IFS
13573
13574 fi
13575 fi
13576 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13577 if test -n "$GOC_FOR_TARGET"; then
13578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13579 $as_echo "$GOC_FOR_TARGET" >&6; }
13580 else
13581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582 $as_echo "no" >&6; }
13583 fi
13584
13585
13586   done
13587 fi
13588
13589 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13590   for ncn_progname in gccgo; do
13591     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13592 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13593     if test -x $with_build_time_tools/${ncn_progname}; then
13594       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13595       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13596 $as_echo "yes" >&6; }
13597       break
13598     else
13599       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13600 $as_echo "no" >&6; }
13601     fi
13602   done
13603 fi
13604
13605 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13606   for ncn_progname in gccgo; do
13607     if test -n "$ncn_target_tool_prefix"; then
13608       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13609 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13611 $as_echo_n "checking for $ac_word... " >&6; }
13612 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13613   $as_echo_n "(cached) " >&6
13614 else
13615   if test -n "$GOC_FOR_TARGET"; then
13616   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13617 else
13618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619 for as_dir in $PATH
13620 do
13621   IFS=$as_save_IFS
13622   test -z "$as_dir" && as_dir=.
13623     for ac_exec_ext in '' $ac_executable_extensions; do
13624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13625     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13627     break 2
13628   fi
13629 done
13630   done
13631 IFS=$as_save_IFS
13632
13633 fi
13634 fi
13635 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13636 if test -n "$GOC_FOR_TARGET"; then
13637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13638 $as_echo "$GOC_FOR_TARGET" >&6; }
13639 else
13640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641 $as_echo "no" >&6; }
13642 fi
13643
13644
13645     fi
13646     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13647       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13648 set dummy ${ncn_progname}; ac_word=$2
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13650 $as_echo_n "checking for $ac_word... " >&6; }
13651 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13652   $as_echo_n "(cached) " >&6
13653 else
13654   if test -n "$GOC_FOR_TARGET"; then
13655   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13656 else
13657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13658 for as_dir in $PATH
13659 do
13660   IFS=$as_save_IFS
13661   test -z "$as_dir" && as_dir=.
13662     for ac_exec_ext in '' $ac_executable_extensions; do
13663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13664     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13666     break 2
13667   fi
13668 done
13669   done
13670 IFS=$as_save_IFS
13671
13672 fi
13673 fi
13674 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13675 if test -n "$GOC_FOR_TARGET"; then
13676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13677 $as_echo "$GOC_FOR_TARGET" >&6; }
13678 else
13679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13680 $as_echo "no" >&6; }
13681 fi
13682
13683
13684     fi
13685     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13686   done
13687 fi
13688
13689 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13690   set dummy gccgo
13691   if test $build = $target ; then
13692     GOC_FOR_TARGET="$2"
13693   else
13694     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13695   fi
13696 else
13697   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13698 fi
13699
13700
13701
13702 if test -n "$GDC_FOR_TARGET"; then
13703   ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13704 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13705   GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13706 fi
13707
13708 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13709   for ncn_progname in gdc; do
13710     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13711 set dummy ${ncn_progname}; ac_word=$2
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13713 $as_echo_n "checking for $ac_word... " >&6; }
13714 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13715   $as_echo_n "(cached) " >&6
13716 else
13717   if test -n "$GDC_FOR_TARGET"; then
13718   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13719 else
13720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13721 for as_dir in $PATH
13722 do
13723   IFS=$as_save_IFS
13724   test -z "$as_dir" && as_dir=.
13725     for ac_exec_ext in '' $ac_executable_extensions; do
13726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13727     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13729     break 2
13730   fi
13731 done
13732   done
13733 IFS=$as_save_IFS
13734
13735 fi
13736 fi
13737 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13738 if test -n "$GDC_FOR_TARGET"; then
13739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13740 $as_echo "$GDC_FOR_TARGET" >&6; }
13741 else
13742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13743 $as_echo "no" >&6; }
13744 fi
13745
13746
13747   done
13748 fi
13749
13750 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13751   for ncn_progname in gdc; do
13752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13753 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13754     if test -x $with_build_time_tools/${ncn_progname}; then
13755       ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13756       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13757 $as_echo "yes" >&6; }
13758       break
13759     else
13760       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13761 $as_echo "no" >&6; }
13762     fi
13763   done
13764 fi
13765
13766 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13767   for ncn_progname in gdc; do
13768     if test -n "$ncn_target_tool_prefix"; then
13769       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13770 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13772 $as_echo_n "checking for $ac_word... " >&6; }
13773 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13774   $as_echo_n "(cached) " >&6
13775 else
13776   if test -n "$GDC_FOR_TARGET"; then
13777   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13778 else
13779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780 for as_dir in $PATH
13781 do
13782   IFS=$as_save_IFS
13783   test -z "$as_dir" && as_dir=.
13784     for ac_exec_ext in '' $ac_executable_extensions; do
13785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13786     ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13788     break 2
13789   fi
13790 done
13791   done
13792 IFS=$as_save_IFS
13793
13794 fi
13795 fi
13796 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13797 if test -n "$GDC_FOR_TARGET"; then
13798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13799 $as_echo "$GDC_FOR_TARGET" >&6; }
13800 else
13801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13802 $as_echo "no" >&6; }
13803 fi
13804
13805
13806     fi
13807     if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13808       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13809 set dummy ${ncn_progname}; ac_word=$2
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13811 $as_echo_n "checking for $ac_word... " >&6; }
13812 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13813   $as_echo_n "(cached) " >&6
13814 else
13815   if test -n "$GDC_FOR_TARGET"; then
13816   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13817 else
13818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13819 for as_dir in $PATH
13820 do
13821   IFS=$as_save_IFS
13822   test -z "$as_dir" && as_dir=.
13823     for ac_exec_ext in '' $ac_executable_extensions; do
13824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13825     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13827     break 2
13828   fi
13829 done
13830   done
13831 IFS=$as_save_IFS
13832
13833 fi
13834 fi
13835 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13836 if test -n "$GDC_FOR_TARGET"; then
13837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13838 $as_echo "$GDC_FOR_TARGET" >&6; }
13839 else
13840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13841 $as_echo "no" >&6; }
13842 fi
13843
13844
13845     fi
13846     test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13847   done
13848 fi
13849
13850 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13851   set dummy gdc
13852   if test $build = $target ; then
13853     GDC_FOR_TARGET="$2"
13854   else
13855     GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13856   fi
13857 else
13858   GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13859 fi
13860
13861
13862
13863 cat > conftest.c << \EOF
13864 #ifdef __GNUC__
13865   gcc_yay;
13866 #endif
13867 EOF
13868 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13869   have_gcc_for_target=yes
13870 else
13871   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13872   have_gcc_for_target=no
13873 fi
13874 rm conftest.c
13875
13876
13877
13878
13879 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13880   if test -n "$with_build_time_tools"; then
13881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13882 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13883     if test -x $with_build_time_tools/ar; then
13884       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13885       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13886       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13887 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13888     else
13889       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13890 $as_echo "no" >&6; }
13891     fi
13892   elif test $build != $host && test $have_gcc_for_target = yes; then
13893     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13894     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13895     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13896   fi
13897 fi
13898 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13899   # Extract the first word of "ar", so it can be a program name with args.
13900 set dummy ar; ac_word=$2
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13902 $as_echo_n "checking for $ac_word... " >&6; }
13903 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13904   $as_echo_n "(cached) " >&6
13905 else
13906   case $AR_FOR_TARGET in
13907   [\\/]* | ?:[\\/]*)
13908   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13909   ;;
13910   *)
13911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13912 for as_dir in $gcc_cv_tool_dirs
13913 do
13914   IFS=$as_save_IFS
13915   test -z "$as_dir" && as_dir=.
13916     for ac_exec_ext in '' $ac_executable_extensions; do
13917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13918     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13920     break 2
13921   fi
13922 done
13923   done
13924 IFS=$as_save_IFS
13925
13926   ;;
13927 esac
13928 fi
13929 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13930 if test -n "$AR_FOR_TARGET"; then
13931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13932 $as_echo "$AR_FOR_TARGET" >&6; }
13933 else
13934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13935 $as_echo "no" >&6; }
13936 fi
13937
13938
13939 fi
13940 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13941
13942
13943 if test -n "$AR_FOR_TARGET"; then
13944   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13945 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13946   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13947 fi
13948
13949 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13950   for ncn_progname in ar; do
13951     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13952 set dummy ${ncn_progname}; ac_word=$2
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13954 $as_echo_n "checking for $ac_word... " >&6; }
13955 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13956   $as_echo_n "(cached) " >&6
13957 else
13958   if test -n "$AR_FOR_TARGET"; then
13959   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13960 else
13961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13962 for as_dir in $PATH
13963 do
13964   IFS=$as_save_IFS
13965   test -z "$as_dir" && as_dir=.
13966     for ac_exec_ext in '' $ac_executable_extensions; do
13967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13968     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13970     break 2
13971   fi
13972 done
13973   done
13974 IFS=$as_save_IFS
13975
13976 fi
13977 fi
13978 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13979 if test -n "$AR_FOR_TARGET"; then
13980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13981 $as_echo "$AR_FOR_TARGET" >&6; }
13982 else
13983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13984 $as_echo "no" >&6; }
13985 fi
13986
13987
13988   done
13989 fi
13990
13991 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13992   for ncn_progname in ar; do
13993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13994 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13995     if test -x $with_build_time_tools/${ncn_progname}; then
13996       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13997       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13998 $as_echo "yes" >&6; }
13999       break
14000     else
14001       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14002 $as_echo "no" >&6; }
14003     fi
14004   done
14005 fi
14006
14007 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14008   for ncn_progname in ar; do
14009     if test -n "$ncn_target_tool_prefix"; then
14010       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14011 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14013 $as_echo_n "checking for $ac_word... " >&6; }
14014 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14015   $as_echo_n "(cached) " >&6
14016 else
14017   if test -n "$AR_FOR_TARGET"; then
14018   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14019 else
14020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14021 for as_dir in $PATH
14022 do
14023   IFS=$as_save_IFS
14024   test -z "$as_dir" && as_dir=.
14025     for ac_exec_ext in '' $ac_executable_extensions; do
14026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14027     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14029     break 2
14030   fi
14031 done
14032   done
14033 IFS=$as_save_IFS
14034
14035 fi
14036 fi
14037 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14038 if test -n "$AR_FOR_TARGET"; then
14039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14040 $as_echo "$AR_FOR_TARGET" >&6; }
14041 else
14042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 $as_echo "no" >&6; }
14044 fi
14045
14046
14047     fi
14048     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14049       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14050 set dummy ${ncn_progname}; ac_word=$2
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14052 $as_echo_n "checking for $ac_word... " >&6; }
14053 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14054   $as_echo_n "(cached) " >&6
14055 else
14056   if test -n "$AR_FOR_TARGET"; then
14057   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14058 else
14059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14060 for as_dir in $PATH
14061 do
14062   IFS=$as_save_IFS
14063   test -z "$as_dir" && as_dir=.
14064     for ac_exec_ext in '' $ac_executable_extensions; do
14065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14066     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14068     break 2
14069   fi
14070 done
14071   done
14072 IFS=$as_save_IFS
14073
14074 fi
14075 fi
14076 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14077 if test -n "$AR_FOR_TARGET"; then
14078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14079 $as_echo "$AR_FOR_TARGET" >&6; }
14080 else
14081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14082 $as_echo "no" >&6; }
14083 fi
14084
14085
14086     fi
14087     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14088   done
14089 fi
14090
14091 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14092   set dummy ar
14093   if test $build = $target ; then
14094     AR_FOR_TARGET="$2"
14095   else
14096     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14097   fi
14098 else
14099   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14100 fi
14101
14102 else
14103   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14104 fi
14105
14106
14107
14108
14109 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14110   if test -n "$with_build_time_tools"; then
14111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14112 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14113     if test -x $with_build_time_tools/as; then
14114       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14115       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14116       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14117 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14118     else
14119       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14120 $as_echo "no" >&6; }
14121     fi
14122   elif test $build != $host && test $have_gcc_for_target = yes; then
14123     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14124     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14125     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14126   fi
14127 fi
14128 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14129   # Extract the first word of "as", so it can be a program name with args.
14130 set dummy as; ac_word=$2
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14132 $as_echo_n "checking for $ac_word... " >&6; }
14133 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14134   $as_echo_n "(cached) " >&6
14135 else
14136   case $AS_FOR_TARGET in
14137   [\\/]* | ?:[\\/]*)
14138   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14139   ;;
14140   *)
14141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14142 for as_dir in $gcc_cv_tool_dirs
14143 do
14144   IFS=$as_save_IFS
14145   test -z "$as_dir" && as_dir=.
14146     for ac_exec_ext in '' $ac_executable_extensions; do
14147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14148     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14150     break 2
14151   fi
14152 done
14153   done
14154 IFS=$as_save_IFS
14155
14156   ;;
14157 esac
14158 fi
14159 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14160 if test -n "$AS_FOR_TARGET"; then
14161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14162 $as_echo "$AS_FOR_TARGET" >&6; }
14163 else
14164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165 $as_echo "no" >&6; }
14166 fi
14167
14168
14169 fi
14170 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14171
14172
14173 if test -n "$AS_FOR_TARGET"; then
14174   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14175 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14176   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14177 fi
14178
14179 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14180   for ncn_progname in as; do
14181     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14182 set dummy ${ncn_progname}; ac_word=$2
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14184 $as_echo_n "checking for $ac_word... " >&6; }
14185 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14186   $as_echo_n "(cached) " >&6
14187 else
14188   if test -n "$AS_FOR_TARGET"; then
14189   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14190 else
14191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14192 for as_dir in $PATH
14193 do
14194   IFS=$as_save_IFS
14195   test -z "$as_dir" && as_dir=.
14196     for ac_exec_ext in '' $ac_executable_extensions; do
14197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14198     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14200     break 2
14201   fi
14202 done
14203   done
14204 IFS=$as_save_IFS
14205
14206 fi
14207 fi
14208 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14209 if test -n "$AS_FOR_TARGET"; then
14210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14211 $as_echo "$AS_FOR_TARGET" >&6; }
14212 else
14213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14214 $as_echo "no" >&6; }
14215 fi
14216
14217
14218   done
14219 fi
14220
14221 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14222   for ncn_progname in as; do
14223     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14224 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14225     if test -x $with_build_time_tools/${ncn_progname}; then
14226       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14227       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14228 $as_echo "yes" >&6; }
14229       break
14230     else
14231       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232 $as_echo "no" >&6; }
14233     fi
14234   done
14235 fi
14236
14237 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14238   for ncn_progname in as; do
14239     if test -n "$ncn_target_tool_prefix"; then
14240       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14241 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14243 $as_echo_n "checking for $ac_word... " >&6; }
14244 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14245   $as_echo_n "(cached) " >&6
14246 else
14247   if test -n "$AS_FOR_TARGET"; then
14248   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14249 else
14250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14251 for as_dir in $PATH
14252 do
14253   IFS=$as_save_IFS
14254   test -z "$as_dir" && as_dir=.
14255     for ac_exec_ext in '' $ac_executable_extensions; do
14256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14257     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14259     break 2
14260   fi
14261 done
14262   done
14263 IFS=$as_save_IFS
14264
14265 fi
14266 fi
14267 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14268 if test -n "$AS_FOR_TARGET"; then
14269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14270 $as_echo "$AS_FOR_TARGET" >&6; }
14271 else
14272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14273 $as_echo "no" >&6; }
14274 fi
14275
14276
14277     fi
14278     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14279       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14280 set dummy ${ncn_progname}; ac_word=$2
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14282 $as_echo_n "checking for $ac_word... " >&6; }
14283 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14284   $as_echo_n "(cached) " >&6
14285 else
14286   if test -n "$AS_FOR_TARGET"; then
14287   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14288 else
14289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14290 for as_dir in $PATH
14291 do
14292   IFS=$as_save_IFS
14293   test -z "$as_dir" && as_dir=.
14294     for ac_exec_ext in '' $ac_executable_extensions; do
14295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14296     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14298     break 2
14299   fi
14300 done
14301   done
14302 IFS=$as_save_IFS
14303
14304 fi
14305 fi
14306 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14307 if test -n "$AS_FOR_TARGET"; then
14308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14309 $as_echo "$AS_FOR_TARGET" >&6; }
14310 else
14311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14312 $as_echo "no" >&6; }
14313 fi
14314
14315
14316     fi
14317     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14318   done
14319 fi
14320
14321 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14322   set dummy as
14323   if test $build = $target ; then
14324     AS_FOR_TARGET="$2"
14325   else
14326     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14327   fi
14328 else
14329   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14330 fi
14331
14332 else
14333   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14334 fi
14335
14336
14337
14338
14339 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14340   if test -n "$with_build_time_tools"; then
14341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14342 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14343     if test -x $with_build_time_tools/dlltool; then
14344       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14345       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14346       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14347 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14348     else
14349       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14350 $as_echo "no" >&6; }
14351     fi
14352   elif test $build != $host && test $have_gcc_for_target = yes; then
14353     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14354     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14355     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14356   fi
14357 fi
14358 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14359   # Extract the first word of "dlltool", so it can be a program name with args.
14360 set dummy dlltool; ac_word=$2
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14362 $as_echo_n "checking for $ac_word... " >&6; }
14363 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14364   $as_echo_n "(cached) " >&6
14365 else
14366   case $DLLTOOL_FOR_TARGET in
14367   [\\/]* | ?:[\\/]*)
14368   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14369   ;;
14370   *)
14371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14372 for as_dir in $gcc_cv_tool_dirs
14373 do
14374   IFS=$as_save_IFS
14375   test -z "$as_dir" && as_dir=.
14376     for ac_exec_ext in '' $ac_executable_extensions; do
14377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14378     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14380     break 2
14381   fi
14382 done
14383   done
14384 IFS=$as_save_IFS
14385
14386   ;;
14387 esac
14388 fi
14389 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14390 if test -n "$DLLTOOL_FOR_TARGET"; then
14391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14392 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14393 else
14394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14395 $as_echo "no" >&6; }
14396 fi
14397
14398
14399 fi
14400 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14401
14402
14403 if test -n "$DLLTOOL_FOR_TARGET"; then
14404   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14405 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14406   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14407 fi
14408
14409 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14410   for ncn_progname in dlltool; do
14411     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14412 set dummy ${ncn_progname}; ac_word=$2
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14414 $as_echo_n "checking for $ac_word... " >&6; }
14415 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14416   $as_echo_n "(cached) " >&6
14417 else
14418   if test -n "$DLLTOOL_FOR_TARGET"; then
14419   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14420 else
14421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14422 for as_dir in $PATH
14423 do
14424   IFS=$as_save_IFS
14425   test -z "$as_dir" && as_dir=.
14426     for ac_exec_ext in '' $ac_executable_extensions; do
14427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14428     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14430     break 2
14431   fi
14432 done
14433   done
14434 IFS=$as_save_IFS
14435
14436 fi
14437 fi
14438 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14439 if test -n "$DLLTOOL_FOR_TARGET"; then
14440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14441 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14442 else
14443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14444 $as_echo "no" >&6; }
14445 fi
14446
14447
14448   done
14449 fi
14450
14451 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14452   for ncn_progname in dlltool; do
14453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14454 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14455     if test -x $with_build_time_tools/${ncn_progname}; then
14456       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14457       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14458 $as_echo "yes" >&6; }
14459       break
14460     else
14461       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14462 $as_echo "no" >&6; }
14463     fi
14464   done
14465 fi
14466
14467 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14468   for ncn_progname in dlltool; do
14469     if test -n "$ncn_target_tool_prefix"; then
14470       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14471 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14473 $as_echo_n "checking for $ac_word... " >&6; }
14474 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14475   $as_echo_n "(cached) " >&6
14476 else
14477   if test -n "$DLLTOOL_FOR_TARGET"; then
14478   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14479 else
14480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481 for as_dir in $PATH
14482 do
14483   IFS=$as_save_IFS
14484   test -z "$as_dir" && as_dir=.
14485     for ac_exec_ext in '' $ac_executable_extensions; do
14486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14487     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14489     break 2
14490   fi
14491 done
14492   done
14493 IFS=$as_save_IFS
14494
14495 fi
14496 fi
14497 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14498 if test -n "$DLLTOOL_FOR_TARGET"; then
14499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14500 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14501 else
14502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14503 $as_echo "no" >&6; }
14504 fi
14505
14506
14507     fi
14508     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14509       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14510 set dummy ${ncn_progname}; ac_word=$2
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14512 $as_echo_n "checking for $ac_word... " >&6; }
14513 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14514   $as_echo_n "(cached) " >&6
14515 else
14516   if test -n "$DLLTOOL_FOR_TARGET"; then
14517   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14518 else
14519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14520 for as_dir in $PATH
14521 do
14522   IFS=$as_save_IFS
14523   test -z "$as_dir" && as_dir=.
14524     for ac_exec_ext in '' $ac_executable_extensions; do
14525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14526     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14528     break 2
14529   fi
14530 done
14531   done
14532 IFS=$as_save_IFS
14533
14534 fi
14535 fi
14536 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14537 if test -n "$DLLTOOL_FOR_TARGET"; then
14538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14539 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14540 else
14541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14542 $as_echo "no" >&6; }
14543 fi
14544
14545
14546     fi
14547     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14548   done
14549 fi
14550
14551 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14552   set dummy dlltool
14553   if test $build = $target ; then
14554     DLLTOOL_FOR_TARGET="$2"
14555   else
14556     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14557   fi
14558 else
14559   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14560 fi
14561
14562 else
14563   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14564 fi
14565
14566
14567
14568
14569 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14570   if test -n "$with_build_time_tools"; then
14571     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14572 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14573     if test -x $with_build_time_tools/dsymutil; then
14574       DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14575       ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14576       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14577 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14578     else
14579       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14580 $as_echo "no" >&6; }
14581     fi
14582   elif test $build != $host && test $have_gcc_for_target = yes; then
14583     DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14584     test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14585     test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14586   fi
14587 fi
14588 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14589   # Extract the first word of "dsymutil", so it can be a program name with args.
14590 set dummy dsymutil; ac_word=$2
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14592 $as_echo_n "checking for $ac_word... " >&6; }
14593 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14594   $as_echo_n "(cached) " >&6
14595 else
14596   case $DSYMUTIL_FOR_TARGET in
14597   [\\/]* | ?:[\\/]*)
14598   ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14599   ;;
14600   *)
14601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14602 for as_dir in $gcc_cv_tool_dirs
14603 do
14604   IFS=$as_save_IFS
14605   test -z "$as_dir" && as_dir=.
14606     for ac_exec_ext in '' $ac_executable_extensions; do
14607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14608     ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14610     break 2
14611   fi
14612 done
14613   done
14614 IFS=$as_save_IFS
14615
14616   ;;
14617 esac
14618 fi
14619 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14620 if test -n "$DSYMUTIL_FOR_TARGET"; then
14621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14622 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14623 else
14624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14625 $as_echo "no" >&6; }
14626 fi
14627
14628
14629 fi
14630 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14631
14632
14633 if test -n "$DSYMUTIL_FOR_TARGET"; then
14634   ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14635 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14636   DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14637 fi
14638
14639 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14640   for ncn_progname in dsymutil; do
14641     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14642 set dummy ${ncn_progname}; ac_word=$2
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14644 $as_echo_n "checking for $ac_word... " >&6; }
14645 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14646   $as_echo_n "(cached) " >&6
14647 else
14648   if test -n "$DSYMUTIL_FOR_TARGET"; then
14649   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14650 else
14651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14652 for as_dir in $PATH
14653 do
14654   IFS=$as_save_IFS
14655   test -z "$as_dir" && as_dir=.
14656     for ac_exec_ext in '' $ac_executable_extensions; do
14657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14658     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14660     break 2
14661   fi
14662 done
14663   done
14664 IFS=$as_save_IFS
14665
14666 fi
14667 fi
14668 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14669 if test -n "$DSYMUTIL_FOR_TARGET"; then
14670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14671 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14672 else
14673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14674 $as_echo "no" >&6; }
14675 fi
14676
14677
14678   done
14679 fi
14680
14681 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14682   for ncn_progname in dsymutil; do
14683     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14684 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14685     if test -x $with_build_time_tools/${ncn_progname}; then
14686       ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14687       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14688 $as_echo "yes" >&6; }
14689       break
14690     else
14691       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14692 $as_echo "no" >&6; }
14693     fi
14694   done
14695 fi
14696
14697 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14698   for ncn_progname in dsymutil; do
14699     if test -n "$ncn_target_tool_prefix"; then
14700       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14701 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14703 $as_echo_n "checking for $ac_word... " >&6; }
14704 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14705   $as_echo_n "(cached) " >&6
14706 else
14707   if test -n "$DSYMUTIL_FOR_TARGET"; then
14708   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14709 else
14710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14711 for as_dir in $PATH
14712 do
14713   IFS=$as_save_IFS
14714   test -z "$as_dir" && as_dir=.
14715     for ac_exec_ext in '' $ac_executable_extensions; do
14716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14717     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14719     break 2
14720   fi
14721 done
14722   done
14723 IFS=$as_save_IFS
14724
14725 fi
14726 fi
14727 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14728 if test -n "$DSYMUTIL_FOR_TARGET"; then
14729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14730 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14731 else
14732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14733 $as_echo "no" >&6; }
14734 fi
14735
14736
14737     fi
14738     if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14739       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14740 set dummy ${ncn_progname}; ac_word=$2
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14742 $as_echo_n "checking for $ac_word... " >&6; }
14743 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14744   $as_echo_n "(cached) " >&6
14745 else
14746   if test -n "$DSYMUTIL_FOR_TARGET"; then
14747   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14748 else
14749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14750 for as_dir in $PATH
14751 do
14752   IFS=$as_save_IFS
14753   test -z "$as_dir" && as_dir=.
14754     for ac_exec_ext in '' $ac_executable_extensions; do
14755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14756     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14758     break 2
14759   fi
14760 done
14761   done
14762 IFS=$as_save_IFS
14763
14764 fi
14765 fi
14766 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14767 if test -n "$DSYMUTIL_FOR_TARGET"; then
14768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14769 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14770 else
14771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14772 $as_echo "no" >&6; }
14773 fi
14774
14775
14776     fi
14777     test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14778   done
14779 fi
14780
14781 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14782   set dummy dsymutil
14783   if test $build = $target ; then
14784     DSYMUTIL_FOR_TARGET="$2"
14785   else
14786     DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14787   fi
14788 else
14789   DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14790 fi
14791
14792 else
14793   DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14794 fi
14795
14796
14797
14798
14799 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14800   if test -n "$with_build_time_tools"; then
14801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14802 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14803     if test -x $with_build_time_tools/ld; then
14804       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14805       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14806       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14807 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14808     else
14809       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14810 $as_echo "no" >&6; }
14811     fi
14812   elif test $build != $host && test $have_gcc_for_target = yes; then
14813     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14814     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14815     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14816   fi
14817 fi
14818 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14819   # Extract the first word of "ld", so it can be a program name with args.
14820 set dummy ld; ac_word=$2
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14822 $as_echo_n "checking for $ac_word... " >&6; }
14823 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14824   $as_echo_n "(cached) " >&6
14825 else
14826   case $LD_FOR_TARGET in
14827   [\\/]* | ?:[\\/]*)
14828   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14829   ;;
14830   *)
14831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14832 for as_dir in $gcc_cv_tool_dirs
14833 do
14834   IFS=$as_save_IFS
14835   test -z "$as_dir" && as_dir=.
14836     for ac_exec_ext in '' $ac_executable_extensions; do
14837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14838     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14840     break 2
14841   fi
14842 done
14843   done
14844 IFS=$as_save_IFS
14845
14846   ;;
14847 esac
14848 fi
14849 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14850 if test -n "$LD_FOR_TARGET"; then
14851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14852 $as_echo "$LD_FOR_TARGET" >&6; }
14853 else
14854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14855 $as_echo "no" >&6; }
14856 fi
14857
14858
14859 fi
14860 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14861
14862
14863 if test -n "$LD_FOR_TARGET"; then
14864   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14865 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14866   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14867 fi
14868
14869 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14870   for ncn_progname in ld; do
14871     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14872 set dummy ${ncn_progname}; ac_word=$2
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14874 $as_echo_n "checking for $ac_word... " >&6; }
14875 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14876   $as_echo_n "(cached) " >&6
14877 else
14878   if test -n "$LD_FOR_TARGET"; then
14879   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14880 else
14881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14882 for as_dir in $PATH
14883 do
14884   IFS=$as_save_IFS
14885   test -z "$as_dir" && as_dir=.
14886     for ac_exec_ext in '' $ac_executable_extensions; do
14887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14888     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14890     break 2
14891   fi
14892 done
14893   done
14894 IFS=$as_save_IFS
14895
14896 fi
14897 fi
14898 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14899 if test -n "$LD_FOR_TARGET"; then
14900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14901 $as_echo "$LD_FOR_TARGET" >&6; }
14902 else
14903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14904 $as_echo "no" >&6; }
14905 fi
14906
14907
14908   done
14909 fi
14910
14911 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14912   for ncn_progname in ld; do
14913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14914 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14915     if test -x $with_build_time_tools/${ncn_progname}; then
14916       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14917       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14918 $as_echo "yes" >&6; }
14919       break
14920     else
14921       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14922 $as_echo "no" >&6; }
14923     fi
14924   done
14925 fi
14926
14927 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14928   for ncn_progname in ld; do
14929     if test -n "$ncn_target_tool_prefix"; then
14930       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14931 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14933 $as_echo_n "checking for $ac_word... " >&6; }
14934 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14935   $as_echo_n "(cached) " >&6
14936 else
14937   if test -n "$LD_FOR_TARGET"; then
14938   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14939 else
14940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14941 for as_dir in $PATH
14942 do
14943   IFS=$as_save_IFS
14944   test -z "$as_dir" && as_dir=.
14945     for ac_exec_ext in '' $ac_executable_extensions; do
14946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14947     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14949     break 2
14950   fi
14951 done
14952   done
14953 IFS=$as_save_IFS
14954
14955 fi
14956 fi
14957 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14958 if test -n "$LD_FOR_TARGET"; then
14959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14960 $as_echo "$LD_FOR_TARGET" >&6; }
14961 else
14962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14963 $as_echo "no" >&6; }
14964 fi
14965
14966
14967     fi
14968     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14969       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14970 set dummy ${ncn_progname}; ac_word=$2
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14972 $as_echo_n "checking for $ac_word... " >&6; }
14973 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14974   $as_echo_n "(cached) " >&6
14975 else
14976   if test -n "$LD_FOR_TARGET"; then
14977   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14978 else
14979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14980 for as_dir in $PATH
14981 do
14982   IFS=$as_save_IFS
14983   test -z "$as_dir" && as_dir=.
14984     for ac_exec_ext in '' $ac_executable_extensions; do
14985   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14986     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14988     break 2
14989   fi
14990 done
14991   done
14992 IFS=$as_save_IFS
14993
14994 fi
14995 fi
14996 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14997 if test -n "$LD_FOR_TARGET"; then
14998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14999 $as_echo "$LD_FOR_TARGET" >&6; }
15000 else
15001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15002 $as_echo "no" >&6; }
15003 fi
15004
15005
15006     fi
15007     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15008   done
15009 fi
15010
15011 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15012   set dummy ld
15013   if test $build = $target ; then
15014     LD_FOR_TARGET="$2"
15015   else
15016     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15017   fi
15018 else
15019   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15020 fi
15021
15022 else
15023   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15024 fi
15025
15026
15027
15028
15029 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15030   if test -n "$with_build_time_tools"; then
15031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15032 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15033     if test -x $with_build_time_tools/lipo; then
15034       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15035       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15036       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15037 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15038     else
15039       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15040 $as_echo "no" >&6; }
15041     fi
15042   elif test $build != $host && test $have_gcc_for_target = yes; then
15043     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15044     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15045     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15046   fi
15047 fi
15048 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15049   # Extract the first word of "lipo", so it can be a program name with args.
15050 set dummy lipo; ac_word=$2
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15052 $as_echo_n "checking for $ac_word... " >&6; }
15053 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15054   $as_echo_n "(cached) " >&6
15055 else
15056   case $LIPO_FOR_TARGET in
15057   [\\/]* | ?:[\\/]*)
15058   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15059   ;;
15060   *)
15061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15062 for as_dir in $gcc_cv_tool_dirs
15063 do
15064   IFS=$as_save_IFS
15065   test -z "$as_dir" && as_dir=.
15066     for ac_exec_ext in '' $ac_executable_extensions; do
15067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15068     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15070     break 2
15071   fi
15072 done
15073   done
15074 IFS=$as_save_IFS
15075
15076   ;;
15077 esac
15078 fi
15079 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15080 if test -n "$LIPO_FOR_TARGET"; then
15081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15082 $as_echo "$LIPO_FOR_TARGET" >&6; }
15083 else
15084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15085 $as_echo "no" >&6; }
15086 fi
15087
15088
15089 fi
15090 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15091
15092
15093 if test -n "$LIPO_FOR_TARGET"; then
15094   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15095 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15096   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15097 fi
15098
15099 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15100   for ncn_progname in lipo; do
15101     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15102 set dummy ${ncn_progname}; ac_word=$2
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15104 $as_echo_n "checking for $ac_word... " >&6; }
15105 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15106   $as_echo_n "(cached) " >&6
15107 else
15108   if test -n "$LIPO_FOR_TARGET"; then
15109   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15110 else
15111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15112 for as_dir in $PATH
15113 do
15114   IFS=$as_save_IFS
15115   test -z "$as_dir" && as_dir=.
15116     for ac_exec_ext in '' $ac_executable_extensions; do
15117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15118     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15120     break 2
15121   fi
15122 done
15123   done
15124 IFS=$as_save_IFS
15125
15126 fi
15127 fi
15128 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15129 if test -n "$LIPO_FOR_TARGET"; then
15130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15131 $as_echo "$LIPO_FOR_TARGET" >&6; }
15132 else
15133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15134 $as_echo "no" >&6; }
15135 fi
15136
15137
15138   done
15139 fi
15140
15141 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15142   for ncn_progname in lipo; do
15143     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15144 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15145     if test -x $with_build_time_tools/${ncn_progname}; then
15146       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15147       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15148 $as_echo "yes" >&6; }
15149       break
15150     else
15151       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15152 $as_echo "no" >&6; }
15153     fi
15154   done
15155 fi
15156
15157 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15158   for ncn_progname in lipo; do
15159     if test -n "$ncn_target_tool_prefix"; then
15160       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15161 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15163 $as_echo_n "checking for $ac_word... " >&6; }
15164 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15165   $as_echo_n "(cached) " >&6
15166 else
15167   if test -n "$LIPO_FOR_TARGET"; then
15168   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15169 else
15170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15171 for as_dir in $PATH
15172 do
15173   IFS=$as_save_IFS
15174   test -z "$as_dir" && as_dir=.
15175     for ac_exec_ext in '' $ac_executable_extensions; do
15176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15177     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15179     break 2
15180   fi
15181 done
15182   done
15183 IFS=$as_save_IFS
15184
15185 fi
15186 fi
15187 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15188 if test -n "$LIPO_FOR_TARGET"; then
15189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15190 $as_echo "$LIPO_FOR_TARGET" >&6; }
15191 else
15192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15193 $as_echo "no" >&6; }
15194 fi
15195
15196
15197     fi
15198     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15199       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15200 set dummy ${ncn_progname}; ac_word=$2
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15202 $as_echo_n "checking for $ac_word... " >&6; }
15203 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15204   $as_echo_n "(cached) " >&6
15205 else
15206   if test -n "$LIPO_FOR_TARGET"; then
15207   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15208 else
15209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15210 for as_dir in $PATH
15211 do
15212   IFS=$as_save_IFS
15213   test -z "$as_dir" && as_dir=.
15214     for ac_exec_ext in '' $ac_executable_extensions; do
15215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15216     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15218     break 2
15219   fi
15220 done
15221   done
15222 IFS=$as_save_IFS
15223
15224 fi
15225 fi
15226 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15227 if test -n "$LIPO_FOR_TARGET"; then
15228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15229 $as_echo "$LIPO_FOR_TARGET" >&6; }
15230 else
15231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15232 $as_echo "no" >&6; }
15233 fi
15234
15235
15236     fi
15237     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15238   done
15239 fi
15240
15241 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15242   set dummy lipo
15243   if test $build = $target ; then
15244     LIPO_FOR_TARGET="$2"
15245   else
15246     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15247   fi
15248 else
15249   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15250 fi
15251
15252 else
15253   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15254 fi
15255
15256
15257
15258
15259 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15260   if test -n "$with_build_time_tools"; then
15261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15262 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15263     if test -x $with_build_time_tools/nm; then
15264       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15265       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15266       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15267 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15268     else
15269       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15270 $as_echo "no" >&6; }
15271     fi
15272   elif test $build != $host && test $have_gcc_for_target = yes; then
15273     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15274     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15275     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15276   fi
15277 fi
15278 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15279   # Extract the first word of "nm", so it can be a program name with args.
15280 set dummy nm; ac_word=$2
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15282 $as_echo_n "checking for $ac_word... " >&6; }
15283 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15284   $as_echo_n "(cached) " >&6
15285 else
15286   case $NM_FOR_TARGET in
15287   [\\/]* | ?:[\\/]*)
15288   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15289   ;;
15290   *)
15291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15292 for as_dir in $gcc_cv_tool_dirs
15293 do
15294   IFS=$as_save_IFS
15295   test -z "$as_dir" && as_dir=.
15296     for ac_exec_ext in '' $ac_executable_extensions; do
15297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15298     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15300     break 2
15301   fi
15302 done
15303   done
15304 IFS=$as_save_IFS
15305
15306   ;;
15307 esac
15308 fi
15309 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15310 if test -n "$NM_FOR_TARGET"; then
15311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15312 $as_echo "$NM_FOR_TARGET" >&6; }
15313 else
15314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15315 $as_echo "no" >&6; }
15316 fi
15317
15318
15319 fi
15320 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15321
15322
15323 if test -n "$NM_FOR_TARGET"; then
15324   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15325 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15326   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15327 fi
15328
15329 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15330   for ncn_progname in nm; do
15331     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15332 set dummy ${ncn_progname}; ac_word=$2
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15334 $as_echo_n "checking for $ac_word... " >&6; }
15335 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15336   $as_echo_n "(cached) " >&6
15337 else
15338   if test -n "$NM_FOR_TARGET"; then
15339   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15340 else
15341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15342 for as_dir in $PATH
15343 do
15344   IFS=$as_save_IFS
15345   test -z "$as_dir" && as_dir=.
15346     for ac_exec_ext in '' $ac_executable_extensions; do
15347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15348     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15350     break 2
15351   fi
15352 done
15353   done
15354 IFS=$as_save_IFS
15355
15356 fi
15357 fi
15358 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15359 if test -n "$NM_FOR_TARGET"; then
15360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15361 $as_echo "$NM_FOR_TARGET" >&6; }
15362 else
15363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15364 $as_echo "no" >&6; }
15365 fi
15366
15367
15368   done
15369 fi
15370
15371 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15372   for ncn_progname in nm; do
15373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15374 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15375     if test -x $with_build_time_tools/${ncn_progname}; then
15376       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15377       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15378 $as_echo "yes" >&6; }
15379       break
15380     else
15381       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15382 $as_echo "no" >&6; }
15383     fi
15384   done
15385 fi
15386
15387 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15388   for ncn_progname in nm; do
15389     if test -n "$ncn_target_tool_prefix"; then
15390       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15391 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15393 $as_echo_n "checking for $ac_word... " >&6; }
15394 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15395   $as_echo_n "(cached) " >&6
15396 else
15397   if test -n "$NM_FOR_TARGET"; then
15398   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15399 else
15400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15401 for as_dir in $PATH
15402 do
15403   IFS=$as_save_IFS
15404   test -z "$as_dir" && as_dir=.
15405     for ac_exec_ext in '' $ac_executable_extensions; do
15406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15407     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15409     break 2
15410   fi
15411 done
15412   done
15413 IFS=$as_save_IFS
15414
15415 fi
15416 fi
15417 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15418 if test -n "$NM_FOR_TARGET"; then
15419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15420 $as_echo "$NM_FOR_TARGET" >&6; }
15421 else
15422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15423 $as_echo "no" >&6; }
15424 fi
15425
15426
15427     fi
15428     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15429       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15430 set dummy ${ncn_progname}; ac_word=$2
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15432 $as_echo_n "checking for $ac_word... " >&6; }
15433 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15434   $as_echo_n "(cached) " >&6
15435 else
15436   if test -n "$NM_FOR_TARGET"; then
15437   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15438 else
15439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15440 for as_dir in $PATH
15441 do
15442   IFS=$as_save_IFS
15443   test -z "$as_dir" && as_dir=.
15444     for ac_exec_ext in '' $ac_executable_extensions; do
15445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15446     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15448     break 2
15449   fi
15450 done
15451   done
15452 IFS=$as_save_IFS
15453
15454 fi
15455 fi
15456 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15457 if test -n "$NM_FOR_TARGET"; then
15458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15459 $as_echo "$NM_FOR_TARGET" >&6; }
15460 else
15461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15462 $as_echo "no" >&6; }
15463 fi
15464
15465
15466     fi
15467     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15468   done
15469 fi
15470
15471 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15472   set dummy nm
15473   if test $build = $target ; then
15474     NM_FOR_TARGET="$2"
15475   else
15476     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15477   fi
15478 else
15479   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15480 fi
15481
15482 else
15483   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15484 fi
15485
15486
15487
15488
15489 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15490   if test -n "$with_build_time_tools"; then
15491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15492 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15493     if test -x $with_build_time_tools/objcopy; then
15494       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15495       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15496       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15497 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15498     else
15499       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15500 $as_echo "no" >&6; }
15501     fi
15502   elif test $build != $host && test $have_gcc_for_target = yes; then
15503     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15504     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15505     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15506   fi
15507 fi
15508 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15509   # Extract the first word of "objcopy", so it can be a program name with args.
15510 set dummy objcopy; ac_word=$2
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15512 $as_echo_n "checking for $ac_word... " >&6; }
15513 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15514   $as_echo_n "(cached) " >&6
15515 else
15516   case $OBJCOPY_FOR_TARGET in
15517   [\\/]* | ?:[\\/]*)
15518   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15519   ;;
15520   *)
15521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15522 for as_dir in $gcc_cv_tool_dirs
15523 do
15524   IFS=$as_save_IFS
15525   test -z "$as_dir" && as_dir=.
15526     for ac_exec_ext in '' $ac_executable_extensions; do
15527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15528     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15530     break 2
15531   fi
15532 done
15533   done
15534 IFS=$as_save_IFS
15535
15536   ;;
15537 esac
15538 fi
15539 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15540 if test -n "$OBJCOPY_FOR_TARGET"; then
15541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15542 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15543 else
15544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15545 $as_echo "no" >&6; }
15546 fi
15547
15548
15549 fi
15550 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15551
15552
15553 if test -n "$OBJCOPY_FOR_TARGET"; then
15554   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15555 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15556   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15557 fi
15558
15559 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15560   for ncn_progname in objcopy; do
15561     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15562 set dummy ${ncn_progname}; ac_word=$2
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15564 $as_echo_n "checking for $ac_word... " >&6; }
15565 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15566   $as_echo_n "(cached) " >&6
15567 else
15568   if test -n "$OBJCOPY_FOR_TARGET"; then
15569   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15570 else
15571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15572 for as_dir in $PATH
15573 do
15574   IFS=$as_save_IFS
15575   test -z "$as_dir" && as_dir=.
15576     for ac_exec_ext in '' $ac_executable_extensions; do
15577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15578     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15580     break 2
15581   fi
15582 done
15583   done
15584 IFS=$as_save_IFS
15585
15586 fi
15587 fi
15588 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15589 if test -n "$OBJCOPY_FOR_TARGET"; then
15590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15591 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15592 else
15593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15594 $as_echo "no" >&6; }
15595 fi
15596
15597
15598   done
15599 fi
15600
15601 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15602   for ncn_progname in objcopy; do
15603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15604 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15605     if test -x $with_build_time_tools/${ncn_progname}; then
15606       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15607       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15608 $as_echo "yes" >&6; }
15609       break
15610     else
15611       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15612 $as_echo "no" >&6; }
15613     fi
15614   done
15615 fi
15616
15617 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15618   for ncn_progname in objcopy; do
15619     if test -n "$ncn_target_tool_prefix"; then
15620       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15621 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15623 $as_echo_n "checking for $ac_word... " >&6; }
15624 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15625   $as_echo_n "(cached) " >&6
15626 else
15627   if test -n "$OBJCOPY_FOR_TARGET"; then
15628   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15629 else
15630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15631 for as_dir in $PATH
15632 do
15633   IFS=$as_save_IFS
15634   test -z "$as_dir" && as_dir=.
15635     for ac_exec_ext in '' $ac_executable_extensions; do
15636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15637     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15639     break 2
15640   fi
15641 done
15642   done
15643 IFS=$as_save_IFS
15644
15645 fi
15646 fi
15647 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15648 if test -n "$OBJCOPY_FOR_TARGET"; then
15649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15650 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15651 else
15652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15653 $as_echo "no" >&6; }
15654 fi
15655
15656
15657     fi
15658     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15659       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15660 set dummy ${ncn_progname}; ac_word=$2
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15662 $as_echo_n "checking for $ac_word... " >&6; }
15663 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15664   $as_echo_n "(cached) " >&6
15665 else
15666   if test -n "$OBJCOPY_FOR_TARGET"; then
15667   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15668 else
15669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15670 for as_dir in $PATH
15671 do
15672   IFS=$as_save_IFS
15673   test -z "$as_dir" && as_dir=.
15674     for ac_exec_ext in '' $ac_executable_extensions; do
15675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15676     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15678     break 2
15679   fi
15680 done
15681   done
15682 IFS=$as_save_IFS
15683
15684 fi
15685 fi
15686 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15687 if test -n "$OBJCOPY_FOR_TARGET"; then
15688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15689 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15690 else
15691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15692 $as_echo "no" >&6; }
15693 fi
15694
15695
15696     fi
15697     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15698   done
15699 fi
15700
15701 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15702   set dummy objcopy
15703   if test $build = $target ; then
15704     OBJCOPY_FOR_TARGET="$2"
15705   else
15706     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15707   fi
15708 else
15709   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15710 fi
15711
15712 else
15713   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15714 fi
15715
15716
15717
15718
15719 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15720   if test -n "$with_build_time_tools"; then
15721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15722 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15723     if test -x $with_build_time_tools/objdump; then
15724       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15725       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15726       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15727 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15728     else
15729       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15730 $as_echo "no" >&6; }
15731     fi
15732   elif test $build != $host && test $have_gcc_for_target = yes; then
15733     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15734     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15735     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15736   fi
15737 fi
15738 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15739   # Extract the first word of "objdump", so it can be a program name with args.
15740 set dummy objdump; ac_word=$2
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15742 $as_echo_n "checking for $ac_word... " >&6; }
15743 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15744   $as_echo_n "(cached) " >&6
15745 else
15746   case $OBJDUMP_FOR_TARGET in
15747   [\\/]* | ?:[\\/]*)
15748   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15749   ;;
15750   *)
15751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15752 for as_dir in $gcc_cv_tool_dirs
15753 do
15754   IFS=$as_save_IFS
15755   test -z "$as_dir" && as_dir=.
15756     for ac_exec_ext in '' $ac_executable_extensions; do
15757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15758     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15760     break 2
15761   fi
15762 done
15763   done
15764 IFS=$as_save_IFS
15765
15766   ;;
15767 esac
15768 fi
15769 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15770 if test -n "$OBJDUMP_FOR_TARGET"; then
15771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15772 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15773 else
15774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15775 $as_echo "no" >&6; }
15776 fi
15777
15778
15779 fi
15780 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15781
15782
15783 if test -n "$OBJDUMP_FOR_TARGET"; then
15784   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15785 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15786   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15787 fi
15788
15789 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15790   for ncn_progname in objdump; do
15791     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15792 set dummy ${ncn_progname}; ac_word=$2
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15794 $as_echo_n "checking for $ac_word... " >&6; }
15795 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15796   $as_echo_n "(cached) " >&6
15797 else
15798   if test -n "$OBJDUMP_FOR_TARGET"; then
15799   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15800 else
15801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15802 for as_dir in $PATH
15803 do
15804   IFS=$as_save_IFS
15805   test -z "$as_dir" && as_dir=.
15806     for ac_exec_ext in '' $ac_executable_extensions; do
15807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15808     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15810     break 2
15811   fi
15812 done
15813   done
15814 IFS=$as_save_IFS
15815
15816 fi
15817 fi
15818 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15819 if test -n "$OBJDUMP_FOR_TARGET"; then
15820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15821 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15822 else
15823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15824 $as_echo "no" >&6; }
15825 fi
15826
15827
15828   done
15829 fi
15830
15831 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15832   for ncn_progname in objdump; do
15833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15834 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15835     if test -x $with_build_time_tools/${ncn_progname}; then
15836       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15837       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15838 $as_echo "yes" >&6; }
15839       break
15840     else
15841       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15842 $as_echo "no" >&6; }
15843     fi
15844   done
15845 fi
15846
15847 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15848   for ncn_progname in objdump; do
15849     if test -n "$ncn_target_tool_prefix"; then
15850       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15851 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15853 $as_echo_n "checking for $ac_word... " >&6; }
15854 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15855   $as_echo_n "(cached) " >&6
15856 else
15857   if test -n "$OBJDUMP_FOR_TARGET"; then
15858   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15859 else
15860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15861 for as_dir in $PATH
15862 do
15863   IFS=$as_save_IFS
15864   test -z "$as_dir" && as_dir=.
15865     for ac_exec_ext in '' $ac_executable_extensions; do
15866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15867     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15869     break 2
15870   fi
15871 done
15872   done
15873 IFS=$as_save_IFS
15874
15875 fi
15876 fi
15877 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15878 if test -n "$OBJDUMP_FOR_TARGET"; then
15879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15880 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15881 else
15882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15883 $as_echo "no" >&6; }
15884 fi
15885
15886
15887     fi
15888     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15889       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15890 set dummy ${ncn_progname}; ac_word=$2
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15892 $as_echo_n "checking for $ac_word... " >&6; }
15893 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15894   $as_echo_n "(cached) " >&6
15895 else
15896   if test -n "$OBJDUMP_FOR_TARGET"; then
15897   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15898 else
15899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15900 for as_dir in $PATH
15901 do
15902   IFS=$as_save_IFS
15903   test -z "$as_dir" && as_dir=.
15904     for ac_exec_ext in '' $ac_executable_extensions; do
15905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15906     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15908     break 2
15909   fi
15910 done
15911   done
15912 IFS=$as_save_IFS
15913
15914 fi
15915 fi
15916 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15917 if test -n "$OBJDUMP_FOR_TARGET"; then
15918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15919 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15920 else
15921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15922 $as_echo "no" >&6; }
15923 fi
15924
15925
15926     fi
15927     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15928   done
15929 fi
15930
15931 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15932   set dummy objdump
15933   if test $build = $target ; then
15934     OBJDUMP_FOR_TARGET="$2"
15935   else
15936     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15937   fi
15938 else
15939   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15940 fi
15941
15942 else
15943   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15944 fi
15945
15946
15947
15948
15949 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15950   if test -n "$with_build_time_tools"; then
15951     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15952 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15953     if test -x $with_build_time_tools/otool; then
15954       OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15955       ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15956       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15957 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15958     else
15959       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15960 $as_echo "no" >&6; }
15961     fi
15962   elif test $build != $host && test $have_gcc_for_target = yes; then
15963     OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15964     test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15965     test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15966   fi
15967 fi
15968 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15969   # Extract the first word of "otool", so it can be a program name with args.
15970 set dummy otool; ac_word=$2
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15972 $as_echo_n "checking for $ac_word... " >&6; }
15973 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15974   $as_echo_n "(cached) " >&6
15975 else
15976   case $OTOOL_FOR_TARGET in
15977   [\\/]* | ?:[\\/]*)
15978   ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15979   ;;
15980   *)
15981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15982 for as_dir in $gcc_cv_tool_dirs
15983 do
15984   IFS=$as_save_IFS
15985   test -z "$as_dir" && as_dir=.
15986     for ac_exec_ext in '' $ac_executable_extensions; do
15987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15988     ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15990     break 2
15991   fi
15992 done
15993   done
15994 IFS=$as_save_IFS
15995
15996   ;;
15997 esac
15998 fi
15999 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16000 if test -n "$OTOOL_FOR_TARGET"; then
16001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16002 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16003 else
16004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16005 $as_echo "no" >&6; }
16006 fi
16007
16008
16009 fi
16010 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16011
16012
16013 if test -n "$OTOOL_FOR_TARGET"; then
16014   ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16015 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16016   OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16017 fi
16018
16019 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16020   for ncn_progname in otool; do
16021     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16022 set dummy ${ncn_progname}; ac_word=$2
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16024 $as_echo_n "checking for $ac_word... " >&6; }
16025 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16026   $as_echo_n "(cached) " >&6
16027 else
16028   if test -n "$OTOOL_FOR_TARGET"; then
16029   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16030 else
16031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16032 for as_dir in $PATH
16033 do
16034   IFS=$as_save_IFS
16035   test -z "$as_dir" && as_dir=.
16036     for ac_exec_ext in '' $ac_executable_extensions; do
16037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16038     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16040     break 2
16041   fi
16042 done
16043   done
16044 IFS=$as_save_IFS
16045
16046 fi
16047 fi
16048 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16049 if test -n "$OTOOL_FOR_TARGET"; then
16050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16051 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16052 else
16053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16054 $as_echo "no" >&6; }
16055 fi
16056
16057
16058   done
16059 fi
16060
16061 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16062   for ncn_progname in otool; do
16063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16064 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16065     if test -x $with_build_time_tools/${ncn_progname}; then
16066       ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16067       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16068 $as_echo "yes" >&6; }
16069       break
16070     else
16071       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16072 $as_echo "no" >&6; }
16073     fi
16074   done
16075 fi
16076
16077 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16078   for ncn_progname in otool; do
16079     if test -n "$ncn_target_tool_prefix"; then
16080       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16081 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16083 $as_echo_n "checking for $ac_word... " >&6; }
16084 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16085   $as_echo_n "(cached) " >&6
16086 else
16087   if test -n "$OTOOL_FOR_TARGET"; then
16088   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16089 else
16090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16091 for as_dir in $PATH
16092 do
16093   IFS=$as_save_IFS
16094   test -z "$as_dir" && as_dir=.
16095     for ac_exec_ext in '' $ac_executable_extensions; do
16096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16097     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16099     break 2
16100   fi
16101 done
16102   done
16103 IFS=$as_save_IFS
16104
16105 fi
16106 fi
16107 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16108 if test -n "$OTOOL_FOR_TARGET"; then
16109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16110 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16111 else
16112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16113 $as_echo "no" >&6; }
16114 fi
16115
16116
16117     fi
16118     if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16119       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16120 set dummy ${ncn_progname}; ac_word=$2
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16122 $as_echo_n "checking for $ac_word... " >&6; }
16123 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16124   $as_echo_n "(cached) " >&6
16125 else
16126   if test -n "$OTOOL_FOR_TARGET"; then
16127   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16128 else
16129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16130 for as_dir in $PATH
16131 do
16132   IFS=$as_save_IFS
16133   test -z "$as_dir" && as_dir=.
16134     for ac_exec_ext in '' $ac_executable_extensions; do
16135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16136     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16138     break 2
16139   fi
16140 done
16141   done
16142 IFS=$as_save_IFS
16143
16144 fi
16145 fi
16146 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16147 if test -n "$OTOOL_FOR_TARGET"; then
16148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16149 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16150 else
16151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16152 $as_echo "no" >&6; }
16153 fi
16154
16155
16156     fi
16157     test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16158   done
16159 fi
16160
16161 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16162   set dummy otool
16163   if test $build = $target ; then
16164     OTOOL_FOR_TARGET="$2"
16165   else
16166     OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16167   fi
16168 else
16169   OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16170 fi
16171
16172 else
16173   OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16174 fi
16175
16176
16177
16178
16179 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16180   if test -n "$with_build_time_tools"; then
16181     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16182 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16183     if test -x $with_build_time_tools/ranlib; then
16184       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16185       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16186       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16187 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16188     else
16189       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16190 $as_echo "no" >&6; }
16191     fi
16192   elif test $build != $host && test $have_gcc_for_target = yes; then
16193     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16194     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16195     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16196   fi
16197 fi
16198 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16199   # Extract the first word of "ranlib", so it can be a program name with args.
16200 set dummy ranlib; ac_word=$2
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16202 $as_echo_n "checking for $ac_word... " >&6; }
16203 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16204   $as_echo_n "(cached) " >&6
16205 else
16206   case $RANLIB_FOR_TARGET in
16207   [\\/]* | ?:[\\/]*)
16208   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16209   ;;
16210   *)
16211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16212 for as_dir in $gcc_cv_tool_dirs
16213 do
16214   IFS=$as_save_IFS
16215   test -z "$as_dir" && as_dir=.
16216     for ac_exec_ext in '' $ac_executable_extensions; do
16217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16218     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16220     break 2
16221   fi
16222 done
16223   done
16224 IFS=$as_save_IFS
16225
16226   ;;
16227 esac
16228 fi
16229 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16230 if test -n "$RANLIB_FOR_TARGET"; then
16231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16232 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16233 else
16234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16235 $as_echo "no" >&6; }
16236 fi
16237
16238
16239 fi
16240 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16241
16242
16243 if test -n "$RANLIB_FOR_TARGET"; then
16244   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16245 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16246   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16247 fi
16248
16249 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16250   for ncn_progname in ranlib; do
16251     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16252 set dummy ${ncn_progname}; ac_word=$2
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16254 $as_echo_n "checking for $ac_word... " >&6; }
16255 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16256   $as_echo_n "(cached) " >&6
16257 else
16258   if test -n "$RANLIB_FOR_TARGET"; then
16259   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16260 else
16261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16262 for as_dir in $PATH
16263 do
16264   IFS=$as_save_IFS
16265   test -z "$as_dir" && as_dir=.
16266     for ac_exec_ext in '' $ac_executable_extensions; do
16267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16268     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16270     break 2
16271   fi
16272 done
16273   done
16274 IFS=$as_save_IFS
16275
16276 fi
16277 fi
16278 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16279 if test -n "$RANLIB_FOR_TARGET"; then
16280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16281 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16282 else
16283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16284 $as_echo "no" >&6; }
16285 fi
16286
16287
16288   done
16289 fi
16290
16291 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16292   for ncn_progname in ranlib; do
16293     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16294 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16295     if test -x $with_build_time_tools/${ncn_progname}; then
16296       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16297       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16298 $as_echo "yes" >&6; }
16299       break
16300     else
16301       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16302 $as_echo "no" >&6; }
16303     fi
16304   done
16305 fi
16306
16307 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16308   for ncn_progname in ranlib; do
16309     if test -n "$ncn_target_tool_prefix"; then
16310       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16311 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16313 $as_echo_n "checking for $ac_word... " >&6; }
16314 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16315   $as_echo_n "(cached) " >&6
16316 else
16317   if test -n "$RANLIB_FOR_TARGET"; then
16318   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16319 else
16320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16321 for as_dir in $PATH
16322 do
16323   IFS=$as_save_IFS
16324   test -z "$as_dir" && as_dir=.
16325     for ac_exec_ext in '' $ac_executable_extensions; do
16326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16327     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16329     break 2
16330   fi
16331 done
16332   done
16333 IFS=$as_save_IFS
16334
16335 fi
16336 fi
16337 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16338 if test -n "$RANLIB_FOR_TARGET"; then
16339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16340 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16341 else
16342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16343 $as_echo "no" >&6; }
16344 fi
16345
16346
16347     fi
16348     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16349       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16350 set dummy ${ncn_progname}; ac_word=$2
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16352 $as_echo_n "checking for $ac_word... " >&6; }
16353 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16354   $as_echo_n "(cached) " >&6
16355 else
16356   if test -n "$RANLIB_FOR_TARGET"; then
16357   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16358 else
16359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16360 for as_dir in $PATH
16361 do
16362   IFS=$as_save_IFS
16363   test -z "$as_dir" && as_dir=.
16364     for ac_exec_ext in '' $ac_executable_extensions; do
16365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16366     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16368     break 2
16369   fi
16370 done
16371   done
16372 IFS=$as_save_IFS
16373
16374 fi
16375 fi
16376 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16377 if test -n "$RANLIB_FOR_TARGET"; then
16378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16379 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16380 else
16381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16382 $as_echo "no" >&6; }
16383 fi
16384
16385
16386     fi
16387     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16388   done
16389 fi
16390
16391 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16392   set dummy ranlib
16393   if test $build = $target ; then
16394     RANLIB_FOR_TARGET="$2"
16395   else
16396     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16397   fi
16398 else
16399   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16400 fi
16401
16402 else
16403   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16404 fi
16405
16406
16407
16408
16409 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16410   if test -n "$with_build_time_tools"; then
16411     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16412 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16413     if test -x $with_build_time_tools/readelf; then
16414       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16415       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16416       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16417 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16418     else
16419       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16420 $as_echo "no" >&6; }
16421     fi
16422   elif test $build != $host && test $have_gcc_for_target = yes; then
16423     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16424     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16425     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16426   fi
16427 fi
16428 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16429   # Extract the first word of "readelf", so it can be a program name with args.
16430 set dummy readelf; ac_word=$2
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16432 $as_echo_n "checking for $ac_word... " >&6; }
16433 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16434   $as_echo_n "(cached) " >&6
16435 else
16436   case $READELF_FOR_TARGET in
16437   [\\/]* | ?:[\\/]*)
16438   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16439   ;;
16440   *)
16441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16442 for as_dir in $gcc_cv_tool_dirs
16443 do
16444   IFS=$as_save_IFS
16445   test -z "$as_dir" && as_dir=.
16446     for ac_exec_ext in '' $ac_executable_extensions; do
16447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16448     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16450     break 2
16451   fi
16452 done
16453   done
16454 IFS=$as_save_IFS
16455
16456   ;;
16457 esac
16458 fi
16459 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16460 if test -n "$READELF_FOR_TARGET"; then
16461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16462 $as_echo "$READELF_FOR_TARGET" >&6; }
16463 else
16464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16465 $as_echo "no" >&6; }
16466 fi
16467
16468
16469 fi
16470 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16471
16472
16473 if test -n "$READELF_FOR_TARGET"; then
16474   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16475 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16476   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16477 fi
16478
16479 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16480   for ncn_progname in readelf; do
16481     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16482 set dummy ${ncn_progname}; ac_word=$2
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16484 $as_echo_n "checking for $ac_word... " >&6; }
16485 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16486   $as_echo_n "(cached) " >&6
16487 else
16488   if test -n "$READELF_FOR_TARGET"; then
16489   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16490 else
16491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16492 for as_dir in $PATH
16493 do
16494   IFS=$as_save_IFS
16495   test -z "$as_dir" && as_dir=.
16496     for ac_exec_ext in '' $ac_executable_extensions; do
16497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16498     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16500     break 2
16501   fi
16502 done
16503   done
16504 IFS=$as_save_IFS
16505
16506 fi
16507 fi
16508 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16509 if test -n "$READELF_FOR_TARGET"; then
16510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16511 $as_echo "$READELF_FOR_TARGET" >&6; }
16512 else
16513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16514 $as_echo "no" >&6; }
16515 fi
16516
16517
16518   done
16519 fi
16520
16521 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16522   for ncn_progname in readelf; do
16523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16524 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16525     if test -x $with_build_time_tools/${ncn_progname}; then
16526       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16527       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16528 $as_echo "yes" >&6; }
16529       break
16530     else
16531       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16532 $as_echo "no" >&6; }
16533     fi
16534   done
16535 fi
16536
16537 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16538   for ncn_progname in readelf; do
16539     if test -n "$ncn_target_tool_prefix"; then
16540       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16541 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16543 $as_echo_n "checking for $ac_word... " >&6; }
16544 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16545   $as_echo_n "(cached) " >&6
16546 else
16547   if test -n "$READELF_FOR_TARGET"; then
16548   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16549 else
16550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16551 for as_dir in $PATH
16552 do
16553   IFS=$as_save_IFS
16554   test -z "$as_dir" && as_dir=.
16555     for ac_exec_ext in '' $ac_executable_extensions; do
16556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16557     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16559     break 2
16560   fi
16561 done
16562   done
16563 IFS=$as_save_IFS
16564
16565 fi
16566 fi
16567 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16568 if test -n "$READELF_FOR_TARGET"; then
16569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16570 $as_echo "$READELF_FOR_TARGET" >&6; }
16571 else
16572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16573 $as_echo "no" >&6; }
16574 fi
16575
16576
16577     fi
16578     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16579       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16580 set dummy ${ncn_progname}; ac_word=$2
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16582 $as_echo_n "checking for $ac_word... " >&6; }
16583 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16584   $as_echo_n "(cached) " >&6
16585 else
16586   if test -n "$READELF_FOR_TARGET"; then
16587   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16588 else
16589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16590 for as_dir in $PATH
16591 do
16592   IFS=$as_save_IFS
16593   test -z "$as_dir" && as_dir=.
16594     for ac_exec_ext in '' $ac_executable_extensions; do
16595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16596     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16598     break 2
16599   fi
16600 done
16601   done
16602 IFS=$as_save_IFS
16603
16604 fi
16605 fi
16606 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16607 if test -n "$READELF_FOR_TARGET"; then
16608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16609 $as_echo "$READELF_FOR_TARGET" >&6; }
16610 else
16611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612 $as_echo "no" >&6; }
16613 fi
16614
16615
16616     fi
16617     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16618   done
16619 fi
16620
16621 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16622   set dummy readelf
16623   if test $build = $target ; then
16624     READELF_FOR_TARGET="$2"
16625   else
16626     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16627   fi
16628 else
16629   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16630 fi
16631
16632 else
16633   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16634 fi
16635
16636
16637
16638
16639 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16640   if test -n "$with_build_time_tools"; then
16641     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16642 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16643     if test -x $with_build_time_tools/strip; then
16644       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16645       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16646       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16647 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16648     else
16649       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16650 $as_echo "no" >&6; }
16651     fi
16652   elif test $build != $host && test $have_gcc_for_target = yes; then
16653     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16654     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16655     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16656   fi
16657 fi
16658 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16659   # Extract the first word of "strip", so it can be a program name with args.
16660 set dummy strip; ac_word=$2
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16662 $as_echo_n "checking for $ac_word... " >&6; }
16663 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16664   $as_echo_n "(cached) " >&6
16665 else
16666   case $STRIP_FOR_TARGET in
16667   [\\/]* | ?:[\\/]*)
16668   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16669   ;;
16670   *)
16671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16672 for as_dir in $gcc_cv_tool_dirs
16673 do
16674   IFS=$as_save_IFS
16675   test -z "$as_dir" && as_dir=.
16676     for ac_exec_ext in '' $ac_executable_extensions; do
16677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16678     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16680     break 2
16681   fi
16682 done
16683   done
16684 IFS=$as_save_IFS
16685
16686   ;;
16687 esac
16688 fi
16689 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16690 if test -n "$STRIP_FOR_TARGET"; then
16691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16692 $as_echo "$STRIP_FOR_TARGET" >&6; }
16693 else
16694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16695 $as_echo "no" >&6; }
16696 fi
16697
16698
16699 fi
16700 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16701
16702
16703 if test -n "$STRIP_FOR_TARGET"; then
16704   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16705 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16706   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16707 fi
16708
16709 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16710   for ncn_progname in strip; do
16711     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16712 set dummy ${ncn_progname}; ac_word=$2
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16714 $as_echo_n "checking for $ac_word... " >&6; }
16715 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16716   $as_echo_n "(cached) " >&6
16717 else
16718   if test -n "$STRIP_FOR_TARGET"; then
16719   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16720 else
16721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16722 for as_dir in $PATH
16723 do
16724   IFS=$as_save_IFS
16725   test -z "$as_dir" && as_dir=.
16726     for ac_exec_ext in '' $ac_executable_extensions; do
16727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16728     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16730     break 2
16731   fi
16732 done
16733   done
16734 IFS=$as_save_IFS
16735
16736 fi
16737 fi
16738 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16739 if test -n "$STRIP_FOR_TARGET"; then
16740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16741 $as_echo "$STRIP_FOR_TARGET" >&6; }
16742 else
16743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16744 $as_echo "no" >&6; }
16745 fi
16746
16747
16748   done
16749 fi
16750
16751 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16752   for ncn_progname in strip; do
16753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16754 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16755     if test -x $with_build_time_tools/${ncn_progname}; then
16756       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16757       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16758 $as_echo "yes" >&6; }
16759       break
16760     else
16761       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16762 $as_echo "no" >&6; }
16763     fi
16764   done
16765 fi
16766
16767 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16768   for ncn_progname in strip; do
16769     if test -n "$ncn_target_tool_prefix"; then
16770       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16771 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16773 $as_echo_n "checking for $ac_word... " >&6; }
16774 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16775   $as_echo_n "(cached) " >&6
16776 else
16777   if test -n "$STRIP_FOR_TARGET"; then
16778   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16779 else
16780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16781 for as_dir in $PATH
16782 do
16783   IFS=$as_save_IFS
16784   test -z "$as_dir" && as_dir=.
16785     for ac_exec_ext in '' $ac_executable_extensions; do
16786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16787     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16789     break 2
16790   fi
16791 done
16792   done
16793 IFS=$as_save_IFS
16794
16795 fi
16796 fi
16797 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16798 if test -n "$STRIP_FOR_TARGET"; then
16799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16800 $as_echo "$STRIP_FOR_TARGET" >&6; }
16801 else
16802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16803 $as_echo "no" >&6; }
16804 fi
16805
16806
16807     fi
16808     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16809       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16810 set dummy ${ncn_progname}; ac_word=$2
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16812 $as_echo_n "checking for $ac_word... " >&6; }
16813 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16814   $as_echo_n "(cached) " >&6
16815 else
16816   if test -n "$STRIP_FOR_TARGET"; then
16817   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16818 else
16819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16820 for as_dir in $PATH
16821 do
16822   IFS=$as_save_IFS
16823   test -z "$as_dir" && as_dir=.
16824     for ac_exec_ext in '' $ac_executable_extensions; do
16825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16826     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16828     break 2
16829   fi
16830 done
16831   done
16832 IFS=$as_save_IFS
16833
16834 fi
16835 fi
16836 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16837 if test -n "$STRIP_FOR_TARGET"; then
16838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16839 $as_echo "$STRIP_FOR_TARGET" >&6; }
16840 else
16841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16842 $as_echo "no" >&6; }
16843 fi
16844
16845
16846     fi
16847     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16848   done
16849 fi
16850
16851 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16852   set dummy strip
16853   if test $build = $target ; then
16854     STRIP_FOR_TARGET="$2"
16855   else
16856     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16857   fi
16858 else
16859   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16860 fi
16861
16862 else
16863   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16864 fi
16865
16866
16867
16868
16869 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16870   if test -n "$with_build_time_tools"; then
16871     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16872 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16873     if test -x $with_build_time_tools/windres; then
16874       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16875       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16876       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16877 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16878     else
16879       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16880 $as_echo "no" >&6; }
16881     fi
16882   elif test $build != $host && test $have_gcc_for_target = yes; then
16883     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16884     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16885     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16886   fi
16887 fi
16888 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16889   # Extract the first word of "windres", so it can be a program name with args.
16890 set dummy windres; ac_word=$2
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16892 $as_echo_n "checking for $ac_word... " >&6; }
16893 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16894   $as_echo_n "(cached) " >&6
16895 else
16896   case $WINDRES_FOR_TARGET in
16897   [\\/]* | ?:[\\/]*)
16898   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16899   ;;
16900   *)
16901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16902 for as_dir in $gcc_cv_tool_dirs
16903 do
16904   IFS=$as_save_IFS
16905   test -z "$as_dir" && as_dir=.
16906     for ac_exec_ext in '' $ac_executable_extensions; do
16907   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16908     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16910     break 2
16911   fi
16912 done
16913   done
16914 IFS=$as_save_IFS
16915
16916   ;;
16917 esac
16918 fi
16919 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16920 if test -n "$WINDRES_FOR_TARGET"; then
16921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16922 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16923 else
16924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16925 $as_echo "no" >&6; }
16926 fi
16927
16928
16929 fi
16930 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16931
16932
16933 if test -n "$WINDRES_FOR_TARGET"; then
16934   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16935 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16936   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16937 fi
16938
16939 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16940   for ncn_progname in windres; do
16941     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16942 set dummy ${ncn_progname}; ac_word=$2
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16944 $as_echo_n "checking for $ac_word... " >&6; }
16945 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16946   $as_echo_n "(cached) " >&6
16947 else
16948   if test -n "$WINDRES_FOR_TARGET"; then
16949   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16950 else
16951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16952 for as_dir in $PATH
16953 do
16954   IFS=$as_save_IFS
16955   test -z "$as_dir" && as_dir=.
16956     for ac_exec_ext in '' $ac_executable_extensions; do
16957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16958     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16960     break 2
16961   fi
16962 done
16963   done
16964 IFS=$as_save_IFS
16965
16966 fi
16967 fi
16968 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16969 if test -n "$WINDRES_FOR_TARGET"; then
16970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16971 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16972 else
16973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16974 $as_echo "no" >&6; }
16975 fi
16976
16977
16978   done
16979 fi
16980
16981 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16982   for ncn_progname in windres; do
16983     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16984 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16985     if test -x $with_build_time_tools/${ncn_progname}; then
16986       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16987       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16988 $as_echo "yes" >&6; }
16989       break
16990     else
16991       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16992 $as_echo "no" >&6; }
16993     fi
16994   done
16995 fi
16996
16997 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16998   for ncn_progname in windres; do
16999     if test -n "$ncn_target_tool_prefix"; then
17000       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17001 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17003 $as_echo_n "checking for $ac_word... " >&6; }
17004 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17005   $as_echo_n "(cached) " >&6
17006 else
17007   if test -n "$WINDRES_FOR_TARGET"; then
17008   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17009 else
17010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17011 for as_dir in $PATH
17012 do
17013   IFS=$as_save_IFS
17014   test -z "$as_dir" && as_dir=.
17015     for ac_exec_ext in '' $ac_executable_extensions; do
17016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17017     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17019     break 2
17020   fi
17021 done
17022   done
17023 IFS=$as_save_IFS
17024
17025 fi
17026 fi
17027 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17028 if test -n "$WINDRES_FOR_TARGET"; then
17029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17030 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17031 else
17032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17033 $as_echo "no" >&6; }
17034 fi
17035
17036
17037     fi
17038     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17039       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17040 set dummy ${ncn_progname}; ac_word=$2
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17042 $as_echo_n "checking for $ac_word... " >&6; }
17043 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17044   $as_echo_n "(cached) " >&6
17045 else
17046   if test -n "$WINDRES_FOR_TARGET"; then
17047   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17048 else
17049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17050 for as_dir in $PATH
17051 do
17052   IFS=$as_save_IFS
17053   test -z "$as_dir" && as_dir=.
17054     for ac_exec_ext in '' $ac_executable_extensions; do
17055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17056     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17058     break 2
17059   fi
17060 done
17061   done
17062 IFS=$as_save_IFS
17063
17064 fi
17065 fi
17066 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17067 if test -n "$WINDRES_FOR_TARGET"; then
17068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17069 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17070 else
17071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17072 $as_echo "no" >&6; }
17073 fi
17074
17075
17076     fi
17077     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17078   done
17079 fi
17080
17081 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17082   set dummy windres
17083   if test $build = $target ; then
17084     WINDRES_FOR_TARGET="$2"
17085   else
17086     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17087   fi
17088 else
17089   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17090 fi
17091
17092 else
17093   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17094 fi
17095
17096
17097
17098
17099 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17100   if test -n "$with_build_time_tools"; then
17101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17102 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17103     if test -x $with_build_time_tools/windmc; then
17104       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17105       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17106       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17107 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17108     else
17109       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17110 $as_echo "no" >&6; }
17111     fi
17112   elif test $build != $host && test $have_gcc_for_target = yes; then
17113     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17114     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17115     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17116   fi
17117 fi
17118 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17119   # Extract the first word of "windmc", so it can be a program name with args.
17120 set dummy windmc; ac_word=$2
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17122 $as_echo_n "checking for $ac_word... " >&6; }
17123 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17124   $as_echo_n "(cached) " >&6
17125 else
17126   case $WINDMC_FOR_TARGET in
17127   [\\/]* | ?:[\\/]*)
17128   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17129   ;;
17130   *)
17131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17132 for as_dir in $gcc_cv_tool_dirs
17133 do
17134   IFS=$as_save_IFS
17135   test -z "$as_dir" && as_dir=.
17136     for ac_exec_ext in '' $ac_executable_extensions; do
17137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17138     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17140     break 2
17141   fi
17142 done
17143   done
17144 IFS=$as_save_IFS
17145
17146   ;;
17147 esac
17148 fi
17149 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17150 if test -n "$WINDMC_FOR_TARGET"; then
17151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17152 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17153 else
17154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17155 $as_echo "no" >&6; }
17156 fi
17157
17158
17159 fi
17160 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17161
17162
17163 if test -n "$WINDMC_FOR_TARGET"; then
17164   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17165 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17166   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17167 fi
17168
17169 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17170   for ncn_progname in windmc; do
17171     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17172 set dummy ${ncn_progname}; ac_word=$2
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17174 $as_echo_n "checking for $ac_word... " >&6; }
17175 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17176   $as_echo_n "(cached) " >&6
17177 else
17178   if test -n "$WINDMC_FOR_TARGET"; then
17179   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17180 else
17181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17182 for as_dir in $PATH
17183 do
17184   IFS=$as_save_IFS
17185   test -z "$as_dir" && as_dir=.
17186     for ac_exec_ext in '' $ac_executable_extensions; do
17187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17188     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17190     break 2
17191   fi
17192 done
17193   done
17194 IFS=$as_save_IFS
17195
17196 fi
17197 fi
17198 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17199 if test -n "$WINDMC_FOR_TARGET"; then
17200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17201 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17202 else
17203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17204 $as_echo "no" >&6; }
17205 fi
17206
17207
17208   done
17209 fi
17210
17211 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17212   for ncn_progname in windmc; do
17213     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17214 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17215     if test -x $with_build_time_tools/${ncn_progname}; then
17216       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17217       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17218 $as_echo "yes" >&6; }
17219       break
17220     else
17221       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17222 $as_echo "no" >&6; }
17223     fi
17224   done
17225 fi
17226
17227 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17228   for ncn_progname in windmc; do
17229     if test -n "$ncn_target_tool_prefix"; then
17230       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17231 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17233 $as_echo_n "checking for $ac_word... " >&6; }
17234 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17235   $as_echo_n "(cached) " >&6
17236 else
17237   if test -n "$WINDMC_FOR_TARGET"; then
17238   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17239 else
17240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17241 for as_dir in $PATH
17242 do
17243   IFS=$as_save_IFS
17244   test -z "$as_dir" && as_dir=.
17245     for ac_exec_ext in '' $ac_executable_extensions; do
17246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17247     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17249     break 2
17250   fi
17251 done
17252   done
17253 IFS=$as_save_IFS
17254
17255 fi
17256 fi
17257 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17258 if test -n "$WINDMC_FOR_TARGET"; then
17259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17260 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17261 else
17262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17263 $as_echo "no" >&6; }
17264 fi
17265
17266
17267     fi
17268     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17269       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17270 set dummy ${ncn_progname}; ac_word=$2
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17272 $as_echo_n "checking for $ac_word... " >&6; }
17273 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17274   $as_echo_n "(cached) " >&6
17275 else
17276   if test -n "$WINDMC_FOR_TARGET"; then
17277   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17278 else
17279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17280 for as_dir in $PATH
17281 do
17282   IFS=$as_save_IFS
17283   test -z "$as_dir" && as_dir=.
17284     for ac_exec_ext in '' $ac_executable_extensions; do
17285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17286     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17288     break 2
17289   fi
17290 done
17291   done
17292 IFS=$as_save_IFS
17293
17294 fi
17295 fi
17296 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17297 if test -n "$WINDMC_FOR_TARGET"; then
17298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17299 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17300 else
17301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17302 $as_echo "no" >&6; }
17303 fi
17304
17305
17306     fi
17307     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17308   done
17309 fi
17310
17311 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17312   set dummy windmc
17313   if test $build = $target ; then
17314     WINDMC_FOR_TARGET="$2"
17315   else
17316     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17317   fi
17318 else
17319   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17320 fi
17321
17322 else
17323   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17324 fi
17325
17326
17327 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17328
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17330 $as_echo_n "checking where to find the target ar... " >&6; }
17331 if test "x${build}" != "x${host}" ; then
17332   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17333     # We already found the complete path
17334     ac_dir=`dirname $AR_FOR_TARGET`
17335     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17336 $as_echo "pre-installed in $ac_dir" >&6; }
17337   else
17338     # Canadian cross, just use what we found
17339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17340 $as_echo "pre-installed" >&6; }
17341   fi
17342 else
17343   ok=yes
17344   case " ${configdirs} " in
17345     *" binutils "*) ;;
17346     *) ok=no ;;
17347   esac
17348
17349   if test $ok = yes; then
17350     # An in-tree tool is available and we can use it
17351     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17352     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17353 $as_echo "just compiled" >&6; }
17354   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17355     # We already found the complete path
17356     ac_dir=`dirname $AR_FOR_TARGET`
17357     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17358 $as_echo "pre-installed in $ac_dir" >&6; }
17359   elif test "x$target" = "x$host"; then
17360     # We can use an host tool
17361     AR_FOR_TARGET='$(AR)'
17362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17363 $as_echo "host tool" >&6; }
17364   else
17365     # We need a cross tool
17366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17367 $as_echo "pre-installed" >&6; }
17368   fi
17369 fi
17370
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17372 $as_echo_n "checking where to find the target as... " >&6; }
17373 if test "x${build}" != "x${host}" ; then
17374   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17375     # We already found the complete path
17376     ac_dir=`dirname $AS_FOR_TARGET`
17377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17378 $as_echo "pre-installed in $ac_dir" >&6; }
17379   else
17380     # Canadian cross, just use what we found
17381     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17382 $as_echo "pre-installed" >&6; }
17383   fi
17384 else
17385   ok=yes
17386   case " ${configdirs} " in
17387     *" gas "*) ;;
17388     *) ok=no ;;
17389   esac
17390
17391   if test $ok = yes; then
17392     # An in-tree tool is available and we can use it
17393     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17395 $as_echo "just compiled" >&6; }
17396   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17397     # We already found the complete path
17398     ac_dir=`dirname $AS_FOR_TARGET`
17399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17400 $as_echo "pre-installed in $ac_dir" >&6; }
17401   elif test "x$target" = "x$host"; then
17402     # We can use an host tool
17403     AS_FOR_TARGET='$(AS)'
17404     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17405 $as_echo "host tool" >&6; }
17406   else
17407     # We need a cross tool
17408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17409 $as_echo "pre-installed" >&6; }
17410   fi
17411 fi
17412
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17414 $as_echo_n "checking where to find the target cc... " >&6; }
17415 if test "x${build}" != "x${host}" ; then
17416   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17417     # We already found the complete path
17418     ac_dir=`dirname $CC_FOR_TARGET`
17419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17420 $as_echo "pre-installed in $ac_dir" >&6; }
17421   else
17422     # Canadian cross, just use what we found
17423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17424 $as_echo "pre-installed" >&6; }
17425   fi
17426 else
17427   ok=yes
17428   case " ${configdirs} " in
17429     *" gcc "*) ;;
17430     *) ok=no ;;
17431   esac
17432
17433   if test $ok = yes; then
17434     # An in-tree tool is available and we can use it
17435     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17437 $as_echo "just compiled" >&6; }
17438   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17439     # We already found the complete path
17440     ac_dir=`dirname $CC_FOR_TARGET`
17441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17442 $as_echo "pre-installed in $ac_dir" >&6; }
17443   elif test "x$target" = "x$host"; then
17444     # We can use an host tool
17445     CC_FOR_TARGET='$(CC)'
17446     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17447 $as_echo "host tool" >&6; }
17448   else
17449     # We need a cross tool
17450     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17451 $as_echo "pre-installed" >&6; }
17452   fi
17453 fi
17454
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17456 $as_echo_n "checking where to find the target c++... " >&6; }
17457 if test "x${build}" != "x${host}" ; then
17458   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17459     # We already found the complete path
17460     ac_dir=`dirname $CXX_FOR_TARGET`
17461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17462 $as_echo "pre-installed in $ac_dir" >&6; }
17463   else
17464     # Canadian cross, just use what we found
17465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17466 $as_echo "pre-installed" >&6; }
17467   fi
17468 else
17469   ok=yes
17470   case " ${configdirs} " in
17471     *" gcc "*) ;;
17472     *) ok=no ;;
17473   esac
17474   case ,${enable_languages}, in
17475     *,c++,*) ;;
17476     *) ok=no ;;
17477   esac
17478   if test $ok = yes; then
17479     # An in-tree tool is available and we can use it
17480     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'
17481     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17482 $as_echo "just compiled" >&6; }
17483   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17484     # We already found the complete path
17485     ac_dir=`dirname $CXX_FOR_TARGET`
17486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17487 $as_echo "pre-installed in $ac_dir" >&6; }
17488   elif test "x$target" = "x$host"; then
17489     # We can use an host tool
17490     CXX_FOR_TARGET='$(CXX)'
17491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17492 $as_echo "host tool" >&6; }
17493   else
17494     # We need a cross tool
17495     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17496 $as_echo "pre-installed" >&6; }
17497   fi
17498 fi
17499
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17501 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17502 if test "x${build}" != "x${host}" ; then
17503   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17504     # We already found the complete path
17505     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17507 $as_echo "pre-installed in $ac_dir" >&6; }
17508   else
17509     # Canadian cross, just use what we found
17510     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17511 $as_echo "pre-installed" >&6; }
17512   fi
17513 else
17514   ok=yes
17515   case " ${configdirs} " in
17516     *" gcc "*) ;;
17517     *) ok=no ;;
17518   esac
17519   case ,${enable_languages}, in
17520     *,c++,*) ;;
17521     *) ok=no ;;
17522   esac
17523   if test $ok = yes; then
17524     # An in-tree tool is available and we can use it
17525     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'
17526     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17527 $as_echo "just compiled" >&6; }
17528   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17529     # We already found the complete path
17530     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17531     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17532 $as_echo "pre-installed in $ac_dir" >&6; }
17533   elif test "x$target" = "x$host"; then
17534     # We can use an host tool
17535     RAW_CXX_FOR_TARGET='$(CXX)'
17536     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17537 $as_echo "host tool" >&6; }
17538   else
17539     # We need a cross tool
17540     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17541 $as_echo "pre-installed" >&6; }
17542   fi
17543 fi
17544
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17546 $as_echo_n "checking where to find the target dlltool... " >&6; }
17547 if test "x${build}" != "x${host}" ; then
17548   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17549     # We already found the complete path
17550     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17552 $as_echo "pre-installed in $ac_dir" >&6; }
17553   else
17554     # Canadian cross, just use what we found
17555     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17556 $as_echo "pre-installed" >&6; }
17557   fi
17558 else
17559   ok=yes
17560   case " ${configdirs} " in
17561     *" binutils "*) ;;
17562     *) ok=no ;;
17563   esac
17564
17565   if test $ok = yes; then
17566     # An in-tree tool is available and we can use it
17567     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17568     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17569 $as_echo "just compiled" >&6; }
17570   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17571     # We already found the complete path
17572     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17573     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17574 $as_echo "pre-installed in $ac_dir" >&6; }
17575   elif test "x$target" = "x$host"; then
17576     # We can use an host tool
17577     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17579 $as_echo "host tool" >&6; }
17580   else
17581     # We need a cross tool
17582     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17583 $as_echo "pre-installed" >&6; }
17584   fi
17585 fi
17586
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17588 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17589 if test "x${build}" != "x${host}" ; then
17590   if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17591     # We already found the complete path
17592     ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17594 $as_echo "pre-installed in $ac_dir" >&6; }
17595   else
17596     # Canadian cross, just use what we found
17597     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17598 $as_echo "pre-installed" >&6; }
17599   fi
17600 else
17601   if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17602     # We already found the complete path
17603     ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17605 $as_echo "pre-installed in $ac_dir" >&6; }
17606   elif test "x$target" = "x$host"; then
17607     # We can use an host tool
17608     DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17610 $as_echo "host tool" >&6; }
17611   else
17612     # We need a cross tool
17613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17614 $as_echo "pre-installed" >&6; }
17615   fi
17616 fi
17617
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17619 $as_echo_n "checking where to find the target gcc... " >&6; }
17620 if test "x${build}" != "x${host}" ; then
17621   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17622     # We already found the complete path
17623     ac_dir=`dirname $GCC_FOR_TARGET`
17624     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17625 $as_echo "pre-installed in $ac_dir" >&6; }
17626   else
17627     # Canadian cross, just use what we found
17628     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17629 $as_echo "pre-installed" >&6; }
17630   fi
17631 else
17632   ok=yes
17633   case " ${configdirs} " in
17634     *" gcc "*) ;;
17635     *) ok=no ;;
17636   esac
17637
17638   if test $ok = yes; then
17639     # An in-tree tool is available and we can use it
17640     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17642 $as_echo "just compiled" >&6; }
17643   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17644     # We already found the complete path
17645     ac_dir=`dirname $GCC_FOR_TARGET`
17646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17647 $as_echo "pre-installed in $ac_dir" >&6; }
17648   elif test "x$target" = "x$host"; then
17649     # We can use an host tool
17650     GCC_FOR_TARGET='$()'
17651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17652 $as_echo "host tool" >&6; }
17653   else
17654     # We need a cross tool
17655     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17656 $as_echo "pre-installed" >&6; }
17657   fi
17658 fi
17659
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17661 $as_echo_n "checking where to find the target gfortran... " >&6; }
17662 if test "x${build}" != "x${host}" ; then
17663   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17664     # We already found the complete path
17665     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17666     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17667 $as_echo "pre-installed in $ac_dir" >&6; }
17668   else
17669     # Canadian cross, just use what we found
17670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17671 $as_echo "pre-installed" >&6; }
17672   fi
17673 else
17674   ok=yes
17675   case " ${configdirs} " in
17676     *" gcc "*) ;;
17677     *) ok=no ;;
17678   esac
17679   case ,${enable_languages}, in
17680     *,fortran,*) ;;
17681     *) ok=no ;;
17682   esac
17683   if test $ok = yes; then
17684     # An in-tree tool is available and we can use it
17685     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17686     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17687 $as_echo "just compiled" >&6; }
17688   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17689     # We already found the complete path
17690     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17692 $as_echo "pre-installed in $ac_dir" >&6; }
17693   elif test "x$target" = "x$host"; then
17694     # We can use an host tool
17695     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17697 $as_echo "host tool" >&6; }
17698   else
17699     # We need a cross tool
17700     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17701 $as_echo "pre-installed" >&6; }
17702   fi
17703 fi
17704
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17706 $as_echo_n "checking where to find the target gccgo... " >&6; }
17707 if test "x${build}" != "x${host}" ; then
17708   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17709     # We already found the complete path
17710     ac_dir=`dirname $GOC_FOR_TARGET`
17711     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17712 $as_echo "pre-installed in $ac_dir" >&6; }
17713   else
17714     # Canadian cross, just use what we found
17715     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17716 $as_echo "pre-installed" >&6; }
17717   fi
17718 else
17719   ok=yes
17720   case " ${configdirs} " in
17721     *" gcc "*) ;;
17722     *) ok=no ;;
17723   esac
17724   case ,${enable_languages}, in
17725     *,go,*) ;;
17726     *) ok=no ;;
17727   esac
17728   if test $ok = yes; then
17729     # An in-tree tool is available and we can use it
17730     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17732 $as_echo "just compiled" >&6; }
17733   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17734     # We already found the complete path
17735     ac_dir=`dirname $GOC_FOR_TARGET`
17736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17737 $as_echo "pre-installed in $ac_dir" >&6; }
17738   elif test "x$target" = "x$host"; then
17739     # We can use an host tool
17740     GOC_FOR_TARGET='$(GOC)'
17741     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17742 $as_echo "host tool" >&6; }
17743   else
17744     # We need a cross tool
17745     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17746 $as_echo "pre-installed" >&6; }
17747   fi
17748 fi
17749
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17751 $as_echo_n "checking where to find the target gdc... " >&6; }
17752 if test "x${build}" != "x${host}" ; then
17753   if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17754     # We already found the complete path
17755     ac_dir=`dirname $GDC_FOR_TARGET`
17756     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17757 $as_echo "pre-installed in $ac_dir" >&6; }
17758   else
17759     # Canadian cross, just use what we found
17760     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17761 $as_echo "pre-installed" >&6; }
17762   fi
17763 else
17764   ok=yes
17765   case " ${configdirs} " in
17766     *" gcc "*) ;;
17767     *) ok=no ;;
17768   esac
17769   case ,${enable_languages}, in
17770     *,d,*) ;;
17771     *) ok=no ;;
17772   esac
17773   if test $ok = yes; then
17774     # An in-tree tool is available and we can use it
17775     GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17777 $as_echo "just compiled" >&6; }
17778   elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17779     # We already found the complete path
17780     ac_dir=`dirname $GDC_FOR_TARGET`
17781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17782 $as_echo "pre-installed in $ac_dir" >&6; }
17783   elif test "x$target" = "x$host"; then
17784     # We can use an host tool
17785     GDC_FOR_TARGET='$(GDC)'
17786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17787 $as_echo "host tool" >&6; }
17788   else
17789     # We need a cross tool
17790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17791 $as_echo "pre-installed" >&6; }
17792   fi
17793 fi
17794
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17796 $as_echo_n "checking where to find the target ld... " >&6; }
17797 if test "x${build}" != "x${host}" ; then
17798   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17799     # We already found the complete path
17800     ac_dir=`dirname $LD_FOR_TARGET`
17801     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17802 $as_echo "pre-installed in $ac_dir" >&6; }
17803   else
17804     # Canadian cross, just use what we found
17805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17806 $as_echo "pre-installed" >&6; }
17807   fi
17808 else
17809   ok=yes
17810   case " ${configdirs} " in
17811     *" ld "*) ;;
17812     *) ok=no ;;
17813   esac
17814
17815   if test $ok = yes; then
17816     # An in-tree tool is available and we can use it
17817     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17819 $as_echo "just compiled" >&6; }
17820   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17821     # We already found the complete path
17822     ac_dir=`dirname $LD_FOR_TARGET`
17823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17824 $as_echo "pre-installed in $ac_dir" >&6; }
17825   elif test "x$target" = "x$host"; then
17826     # We can use an host tool
17827     LD_FOR_TARGET='$(LD)'
17828     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17829 $as_echo "host tool" >&6; }
17830   else
17831     # We need a cross tool
17832     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17833 $as_echo "pre-installed" >&6; }
17834   fi
17835 fi
17836
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17838 $as_echo_n "checking where to find the target lipo... " >&6; }
17839 if test "x${build}" != "x${host}" ; then
17840   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17841     # We already found the complete path
17842     ac_dir=`dirname $LIPO_FOR_TARGET`
17843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17844 $as_echo "pre-installed in $ac_dir" >&6; }
17845   else
17846     # Canadian cross, just use what we found
17847     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17848 $as_echo "pre-installed" >&6; }
17849   fi
17850 else
17851   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17852     # We already found the complete path
17853     ac_dir=`dirname $LIPO_FOR_TARGET`
17854     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17855 $as_echo "pre-installed in $ac_dir" >&6; }
17856   elif test "x$target" = "x$host"; then
17857     # We can use an host tool
17858     LIPO_FOR_TARGET='$(LIPO)'
17859     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17860 $as_echo "host tool" >&6; }
17861   else
17862     # We need a cross tool
17863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17864 $as_echo "pre-installed" >&6; }
17865   fi
17866 fi
17867
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17869 $as_echo_n "checking where to find the target nm... " >&6; }
17870 if test "x${build}" != "x${host}" ; then
17871   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17872     # We already found the complete path
17873     ac_dir=`dirname $NM_FOR_TARGET`
17874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17875 $as_echo "pre-installed in $ac_dir" >&6; }
17876   else
17877     # Canadian cross, just use what we found
17878     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17879 $as_echo "pre-installed" >&6; }
17880   fi
17881 else
17882   ok=yes
17883   case " ${configdirs} " in
17884     *" binutils "*) ;;
17885     *) ok=no ;;
17886   esac
17887
17888   if test $ok = yes; then
17889     # An in-tree tool is available and we can use it
17890     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17892 $as_echo "just compiled" >&6; }
17893   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17894     # We already found the complete path
17895     ac_dir=`dirname $NM_FOR_TARGET`
17896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17897 $as_echo "pre-installed in $ac_dir" >&6; }
17898   elif test "x$target" = "x$host"; then
17899     # We can use an host tool
17900     NM_FOR_TARGET='$(NM)'
17901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17902 $as_echo "host tool" >&6; }
17903   else
17904     # We need a cross tool
17905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17906 $as_echo "pre-installed" >&6; }
17907   fi
17908 fi
17909
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17911 $as_echo_n "checking where to find the target objcopy... " >&6; }
17912 if test "x${build}" != "x${host}" ; then
17913   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17914     # We already found the complete path
17915     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17916     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17917 $as_echo "pre-installed in $ac_dir" >&6; }
17918   else
17919     # Canadian cross, just use what we found
17920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17921 $as_echo "pre-installed" >&6; }
17922   fi
17923 else
17924   ok=yes
17925   case " ${configdirs} " in
17926     *" binutils "*) ;;
17927     *) ok=no ;;
17928   esac
17929
17930   if test $ok = yes; then
17931     # An in-tree tool is available and we can use it
17932     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17934 $as_echo "just compiled" >&6; }
17935   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17936     # We already found the complete path
17937     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17938     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17939 $as_echo "pre-installed in $ac_dir" >&6; }
17940   elif test "x$target" = "x$host"; then
17941     # We can use an host tool
17942     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17944 $as_echo "host tool" >&6; }
17945   else
17946     # We need a cross tool
17947     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17948 $as_echo "pre-installed" >&6; }
17949   fi
17950 fi
17951
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17953 $as_echo_n "checking where to find the target objdump... " >&6; }
17954 if test "x${build}" != "x${host}" ; then
17955   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17956     # We already found the complete path
17957     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17959 $as_echo "pre-installed in $ac_dir" >&6; }
17960   else
17961     # Canadian cross, just use what we found
17962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17963 $as_echo "pre-installed" >&6; }
17964   fi
17965 else
17966   ok=yes
17967   case " ${configdirs} " in
17968     *" binutils "*) ;;
17969     *) ok=no ;;
17970   esac
17971
17972   if test $ok = yes; then
17973     # An in-tree tool is available and we can use it
17974     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17976 $as_echo "just compiled" >&6; }
17977   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17978     # We already found the complete path
17979     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17981 $as_echo "pre-installed in $ac_dir" >&6; }
17982   elif test "x$target" = "x$host"; then
17983     # We can use an host tool
17984     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17986 $as_echo "host tool" >&6; }
17987   else
17988     # We need a cross tool
17989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17990 $as_echo "pre-installed" >&6; }
17991   fi
17992 fi
17993
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17995 $as_echo_n "checking where to find the target otool... " >&6; }
17996 if test "x${build}" != "x${host}" ; then
17997   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17998     # We already found the complete path
17999     ac_dir=`dirname $OTOOL_FOR_TARGET`
18000     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18001 $as_echo "pre-installed in $ac_dir" >&6; }
18002   else
18003     # Canadian cross, just use what we found
18004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18005 $as_echo "pre-installed" >&6; }
18006   fi
18007 else
18008   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18009     # We already found the complete path
18010     ac_dir=`dirname $OTOOL_FOR_TARGET`
18011     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18012 $as_echo "pre-installed in $ac_dir" >&6; }
18013   elif test "x$target" = "x$host"; then
18014     # We can use an host tool
18015     OTOOL_FOR_TARGET='$(OTOOL)'
18016     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18017 $as_echo "host tool" >&6; }
18018   else
18019     # We need a cross tool
18020     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18021 $as_echo "pre-installed" >&6; }
18022   fi
18023 fi
18024
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18026 $as_echo_n "checking where to find the target ranlib... " >&6; }
18027 if test "x${build}" != "x${host}" ; then
18028   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18029     # We already found the complete path
18030     ac_dir=`dirname $RANLIB_FOR_TARGET`
18031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18032 $as_echo "pre-installed in $ac_dir" >&6; }
18033   else
18034     # Canadian cross, just use what we found
18035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18036 $as_echo "pre-installed" >&6; }
18037   fi
18038 else
18039   ok=yes
18040   case " ${configdirs} " in
18041     *" binutils "*) ;;
18042     *) ok=no ;;
18043   esac
18044
18045   if test $ok = yes; then
18046     # An in-tree tool is available and we can use it
18047     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18049 $as_echo "just compiled" >&6; }
18050   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18051     # We already found the complete path
18052     ac_dir=`dirname $RANLIB_FOR_TARGET`
18053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18054 $as_echo "pre-installed in $ac_dir" >&6; }
18055   elif test "x$target" = "x$host"; then
18056     # We can use an host tool
18057     RANLIB_FOR_TARGET='$(RANLIB)'
18058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18059 $as_echo "host tool" >&6; }
18060   else
18061     # We need a cross tool
18062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18063 $as_echo "pre-installed" >&6; }
18064   fi
18065 fi
18066
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18068 $as_echo_n "checking where to find the target readelf... " >&6; }
18069 if test "x${build}" != "x${host}" ; then
18070   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18071     # We already found the complete path
18072     ac_dir=`dirname $READELF_FOR_TARGET`
18073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18074 $as_echo "pre-installed in $ac_dir" >&6; }
18075   else
18076     # Canadian cross, just use what we found
18077     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18078 $as_echo "pre-installed" >&6; }
18079   fi
18080 else
18081   ok=yes
18082   case " ${configdirs} " in
18083     *" binutils "*) ;;
18084     *) ok=no ;;
18085   esac
18086
18087   if test $ok = yes; then
18088     # An in-tree tool is available and we can use it
18089     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18091 $as_echo "just compiled" >&6; }
18092   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18093     # We already found the complete path
18094     ac_dir=`dirname $READELF_FOR_TARGET`
18095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18096 $as_echo "pre-installed in $ac_dir" >&6; }
18097   elif test "x$target" = "x$host"; then
18098     # We can use an host tool
18099     READELF_FOR_TARGET='$(READELF)'
18100     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18101 $as_echo "host tool" >&6; }
18102   else
18103     # We need a cross tool
18104     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18105 $as_echo "pre-installed" >&6; }
18106   fi
18107 fi
18108
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18110 $as_echo_n "checking where to find the target strip... " >&6; }
18111 if test "x${build}" != "x${host}" ; then
18112   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18113     # We already found the complete path
18114     ac_dir=`dirname $STRIP_FOR_TARGET`
18115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18116 $as_echo "pre-installed in $ac_dir" >&6; }
18117   else
18118     # Canadian cross, just use what we found
18119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18120 $as_echo "pre-installed" >&6; }
18121   fi
18122 else
18123   ok=yes
18124   case " ${configdirs} " in
18125     *" binutils "*) ;;
18126     *) ok=no ;;
18127   esac
18128
18129   if test $ok = yes; then
18130     # An in-tree tool is available and we can use it
18131     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18133 $as_echo "just compiled" >&6; }
18134   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18135     # We already found the complete path
18136     ac_dir=`dirname $STRIP_FOR_TARGET`
18137     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18138 $as_echo "pre-installed in $ac_dir" >&6; }
18139   elif test "x$target" = "x$host"; then
18140     # We can use an host tool
18141     STRIP_FOR_TARGET='$(STRIP)'
18142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18143 $as_echo "host tool" >&6; }
18144   else
18145     # We need a cross tool
18146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18147 $as_echo "pre-installed" >&6; }
18148   fi
18149 fi
18150
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18152 $as_echo_n "checking where to find the target windres... " >&6; }
18153 if test "x${build}" != "x${host}" ; then
18154   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18155     # We already found the complete path
18156     ac_dir=`dirname $WINDRES_FOR_TARGET`
18157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18158 $as_echo "pre-installed in $ac_dir" >&6; }
18159   else
18160     # Canadian cross, just use what we found
18161     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18162 $as_echo "pre-installed" >&6; }
18163   fi
18164 else
18165   ok=yes
18166   case " ${configdirs} " in
18167     *" binutils "*) ;;
18168     *) ok=no ;;
18169   esac
18170
18171   if test $ok = yes; then
18172     # An in-tree tool is available and we can use it
18173     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18175 $as_echo "just compiled" >&6; }
18176   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18177     # We already found the complete path
18178     ac_dir=`dirname $WINDRES_FOR_TARGET`
18179     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18180 $as_echo "pre-installed in $ac_dir" >&6; }
18181   elif test "x$target" = "x$host"; then
18182     # We can use an host tool
18183     WINDRES_FOR_TARGET='$(WINDRES)'
18184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18185 $as_echo "host tool" >&6; }
18186   else
18187     # We need a cross tool
18188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18189 $as_echo "pre-installed" >&6; }
18190   fi
18191 fi
18192
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18194 $as_echo_n "checking where to find the target windmc... " >&6; }
18195 if test "x${build}" != "x${host}" ; then
18196   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18197     # We already found the complete path
18198     ac_dir=`dirname $WINDMC_FOR_TARGET`
18199     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18200 $as_echo "pre-installed in $ac_dir" >&6; }
18201   else
18202     # Canadian cross, just use what we found
18203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18204 $as_echo "pre-installed" >&6; }
18205   fi
18206 else
18207   ok=yes
18208   case " ${configdirs} " in
18209     *" binutils "*) ;;
18210     *) ok=no ;;
18211   esac
18212
18213   if test $ok = yes; then
18214     # An in-tree tool is available and we can use it
18215     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18216     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18217 $as_echo "just compiled" >&6; }
18218   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18219     # We already found the complete path
18220     ac_dir=`dirname $WINDMC_FOR_TARGET`
18221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18222 $as_echo "pre-installed in $ac_dir" >&6; }
18223   elif test "x$target" = "x$host"; then
18224     # We can use an host tool
18225     WINDMC_FOR_TARGET='$(WINDMC)'
18226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18227 $as_echo "host tool" >&6; }
18228   else
18229     # We need a cross tool
18230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18231 $as_echo "pre-installed" >&6; }
18232   fi
18233 fi
18234
18235
18236
18237
18238
18239 # Certain tools may need extra flags.
18240 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18241 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18242 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18243
18244 # When building target libraries, except in a Canadian cross, we use
18245 # the same toolchain as the compiler we just built.
18246 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18247 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18248 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18249 if test $host = $build; then
18250   case " $configdirs " in
18251     *" gcc "*)
18252       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18253       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18254       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18255       ;;
18256   esac
18257 fi
18258
18259
18260
18261
18262
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18264 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18265 # Check whether --enable-maintainer-mode was given.
18266 if test "${enable_maintainer_mode+set}" = set; then :
18267   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18268 else
18269   USE_MAINTAINER_MODE=no
18270 fi
18271
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18273 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18274
18275
18276 if test "$USE_MAINTAINER_MODE" = yes; then
18277   MAINTAINER_MODE_TRUE=
18278   MAINTAINER_MODE_FALSE='#'
18279 else
18280   MAINTAINER_MODE_TRUE='#'
18281   MAINTAINER_MODE_FALSE=
18282 fi
18283 MAINT=$MAINTAINER_MODE_TRUE
18284
18285 # ---------------------
18286 # GCC bootstrap support
18287 # ---------------------
18288
18289 # Stage specific cflags for build.
18290 stage1_cflags="-g"
18291 case $build in
18292   vax-*-*)
18293     case ${GCC} in
18294       yes) stage1_cflags="-g -Wa,-J" ;;
18295       *) stage1_cflags="-g -J" ;;
18296     esac ;;
18297 esac
18298
18299
18300
18301 # Enable --enable-checking in stage1 of the compiler.
18302 # Check whether --enable-stage1-checking was given.
18303 if test "${enable_stage1_checking+set}" = set; then :
18304   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18305 else
18306   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18307   # For --disable-checking or implicit --enable-checking=release, avoid
18308   # setting --enable-checking=gc in the default stage1 checking for LTO
18309   # bootstraps.  See PR62077.
18310   case $BUILD_CONFIG in
18311     *lto*)
18312       stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18313     *)
18314       stage1_checking=--enable-checking=yes,types;;
18315   esac
18316   if test "x$enable_checking" = x && \
18317      test -d ${srcdir}/gcc && \
18318      test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18319     stage1_checking=--enable-checking=yes,types,extra
18320   fi
18321 else
18322   stage1_checking=--enable-checking=$enable_checking,types
18323 fi
18324 fi
18325
18326
18327
18328 # Enable -Werror in bootstrap stage2 and later.
18329 # Check whether --enable-werror was given.
18330 if test "${enable_werror+set}" = set; then :
18331   enableval=$enable_werror;
18332 case ${enable_werror} in
18333   yes) stage2_werror_flag="--enable-werror-always" ;;
18334   *) stage2_werror_flag="" ;;
18335 esac
18336
18337 else
18338
18339 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18340   case $BUILD_CONFIG in
18341   bootstrap-debug)
18342       stage2_werror_flag="--enable-werror-always" ;;
18343   "")
18344       stage2_werror_flag="--enable-werror-always" ;;
18345   esac
18346 fi
18347
18348 fi
18349
18350
18351
18352
18353 # Specify what files to not compare during bootstrap.
18354
18355 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18356 case "$target" in
18357   hppa*64*-*-hpux*) ;;
18358   hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18359   powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18360 esac
18361
18362
18363 ac_config_files="$ac_config_files Makefile"
18364
18365 cat >confcache <<\_ACEOF
18366 # This file is a shell script that caches the results of configure
18367 # tests run on this system so they can be shared between configure
18368 # scripts and configure runs, see configure's option --config-cache.
18369 # It is not useful on other systems.  If it contains results you don't
18370 # want to keep, you may remove or edit it.
18371 #
18372 # config.status only pays attention to the cache file if you give it
18373 # the --recheck option to rerun configure.
18374 #
18375 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18376 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18377 # following values.
18378
18379 _ACEOF
18380
18381 # The following way of writing the cache mishandles newlines in values,
18382 # but we know of no workaround that is simple, portable, and efficient.
18383 # So, we kill variables containing newlines.
18384 # Ultrix sh set writes to stderr and can't be redirected directly,
18385 # and sets the high bit in the cache file unless we assign to the vars.
18386 (
18387   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18388     eval ac_val=\$$ac_var
18389     case $ac_val in #(
18390     *${as_nl}*)
18391       case $ac_var in #(
18392       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18393 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18394       esac
18395       case $ac_var in #(
18396       _ | IFS | as_nl) ;; #(
18397       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18398       *) { eval $ac_var=; unset $ac_var;} ;;
18399       esac ;;
18400     esac
18401   done
18402
18403   (set) 2>&1 |
18404     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18405     *${as_nl}ac_space=\ *)
18406       # `set' does not quote correctly, so add quotes: double-quote
18407       # substitution turns \\\\ into \\, and sed turns \\ into \.
18408       sed -n \
18409         "s/'/'\\\\''/g;
18410           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18411       ;; #(
18412     *)
18413       # `set' quotes correctly as required by POSIX, so do not add quotes.
18414       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18415       ;;
18416     esac |
18417     sort
18418 ) |
18419   sed '
18420      /^ac_cv_env_/b end
18421      t clear
18422      :clear
18423      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18424      t end
18425      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18426      :end' >>confcache
18427 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18428   if test -w "$cache_file"; then
18429     if test "x$cache_file" != "x/dev/null"; then
18430       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18431 $as_echo "$as_me: updating cache $cache_file" >&6;}
18432       if test ! -f "$cache_file" || test -h "$cache_file"; then
18433         cat confcache >"$cache_file"
18434       else
18435         case $cache_file in #(
18436         */* | ?:*)
18437           mv -f confcache "$cache_file"$$ &&
18438           mv -f "$cache_file"$$ "$cache_file" ;; #(
18439         *)
18440           mv -f confcache "$cache_file" ;;
18441         esac
18442       fi
18443     fi
18444   else
18445     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18446 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18447   fi
18448 fi
18449 rm -f confcache
18450
18451 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18452 # Let make expand exec_prefix.
18453 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18454
18455 # Transform confdefs.h into DEFS.
18456 # Protect against shell expansion while executing Makefile rules.
18457 # Protect against Makefile macro expansion.
18458 #
18459 # If the first sed substitution is executed (which looks for macros that
18460 # take arguments), then branch to the quote section.  Otherwise,
18461 # look for a macro that doesn't take arguments.
18462 ac_script='
18463 :mline
18464 /\\$/{
18465  N
18466  s,\\\n,,
18467  b mline
18468 }
18469 t clear
18470 :clear
18471 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
18472 t quote
18473 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
18474 t quote
18475 b any
18476 :quote
18477 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18478 s/\[/\\&/g
18479 s/\]/\\&/g
18480 s/\$/$$/g
18481 H
18482 :any
18483 ${
18484         g
18485         s/^\n//
18486         s/\n/ /g
18487         p
18488 }
18489 '
18490 DEFS=`sed -n "$ac_script" confdefs.h`
18491
18492
18493 ac_libobjs=
18494 ac_ltlibobjs=
18495 U=
18496 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18497   # 1. Remove the extension, and $U if already installed.
18498   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18499   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18500   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18501   #    will be set to the directory where LIBOBJS objects are built.
18502   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18503   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18504 done
18505 LIBOBJS=$ac_libobjs
18506
18507 LTLIBOBJS=$ac_ltlibobjs
18508
18509
18510
18511 : "${CONFIG_STATUS=./config.status}"
18512 ac_write_fail=0
18513 ac_clean_files_save=$ac_clean_files
18514 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18516 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18517 as_write_fail=0
18518 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18519 #! $SHELL
18520 # Generated by $as_me.
18521 # Run this file to recreate the current configuration.
18522 # Compiler output produced by configure, useful for debugging
18523 # configure, is in config.log if it exists.
18524
18525 debug=false
18526 ac_cs_recheck=false
18527 ac_cs_silent=false
18528
18529 SHELL=\${CONFIG_SHELL-$SHELL}
18530 export SHELL
18531 _ASEOF
18532 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18533 ## -------------------- ##
18534 ## M4sh Initialization. ##
18535 ## -------------------- ##
18536
18537 # Be more Bourne compatible
18538 DUALCASE=1; export DUALCASE # for MKS sh
18539 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18540   emulate sh
18541   NULLCMD=:
18542   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18543   # is contrary to our usage.  Disable this feature.
18544   alias -g '${1+"$@"}'='"$@"'
18545   setopt NO_GLOB_SUBST
18546 else
18547   case `(set -o) 2>/dev/null` in #(
18548   *posix*) :
18549     set -o posix ;; #(
18550   *) :
18551      ;;
18552 esac
18553 fi
18554
18555
18556 as_nl='
18557 '
18558 export as_nl
18559 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18560 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18561 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18562 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18563 # Prefer a ksh shell builtin over an external printf program on Solaris,
18564 # but without wasting forks for bash or zsh.
18565 if test -z "$BASH_VERSION$ZSH_VERSION" \
18566     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18567   as_echo='print -r --'
18568   as_echo_n='print -rn --'
18569 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18570   as_echo='printf %s\n'
18571   as_echo_n='printf %s'
18572 else
18573   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18574     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18575     as_echo_n='/usr/ucb/echo -n'
18576   else
18577     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18578     as_echo_n_body='eval
18579       arg=$1;
18580       case $arg in #(
18581       *"$as_nl"*)
18582         expr "X$arg" : "X\\(.*\\)$as_nl";
18583         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18584       esac;
18585       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18586     '
18587     export as_echo_n_body
18588     as_echo_n='sh -c $as_echo_n_body as_echo'
18589   fi
18590   export as_echo_body
18591   as_echo='sh -c $as_echo_body as_echo'
18592 fi
18593
18594 # The user is always right.
18595 if test "${PATH_SEPARATOR+set}" != set; then
18596   PATH_SEPARATOR=:
18597   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18598     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18599       PATH_SEPARATOR=';'
18600   }
18601 fi
18602
18603
18604 # IFS
18605 # We need space, tab and new line, in precisely that order.  Quoting is
18606 # there to prevent editors from complaining about space-tab.
18607 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18608 # splitting by setting IFS to empty value.)
18609 IFS=" ""        $as_nl"
18610
18611 # Find who we are.  Look in the path if we contain no directory separator.
18612 as_myself=
18613 case $0 in #((
18614   *[\\/]* ) as_myself=$0 ;;
18615   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18616 for as_dir in $PATH
18617 do
18618   IFS=$as_save_IFS
18619   test -z "$as_dir" && as_dir=.
18620     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18621   done
18622 IFS=$as_save_IFS
18623
18624      ;;
18625 esac
18626 # We did not find ourselves, most probably we were run as `sh COMMAND'
18627 # in which case we are not to be found in the path.
18628 if test "x$as_myself" = x; then
18629   as_myself=$0
18630 fi
18631 if test ! -f "$as_myself"; then
18632   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18633   exit 1
18634 fi
18635
18636 # Unset variables that we do not need and which cause bugs (e.g. in
18637 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18638 # suppresses any "Segmentation fault" message there.  '((' could
18639 # trigger a bug in pdksh 5.2.14.
18640 for as_var in BASH_ENV ENV MAIL MAILPATH
18641 do eval test x\${$as_var+set} = xset \
18642   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18643 done
18644 PS1='$ '
18645 PS2='> '
18646 PS4='+ '
18647
18648 # NLS nuisances.
18649 LC_ALL=C
18650 export LC_ALL
18651 LANGUAGE=C
18652 export LANGUAGE
18653
18654 # CDPATH.
18655 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18656
18657
18658 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18659 # ----------------------------------------
18660 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18661 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18662 # script with STATUS, using 1 if that was 0.
18663 as_fn_error ()
18664 {
18665   as_status=$1; test $as_status -eq 0 && as_status=1
18666   if test "$4"; then
18667     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18668     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18669   fi
18670   $as_echo "$as_me: error: $2" >&2
18671   as_fn_exit $as_status
18672 } # as_fn_error
18673
18674
18675 # as_fn_set_status STATUS
18676 # -----------------------
18677 # Set $? to STATUS, without forking.
18678 as_fn_set_status ()
18679 {
18680   return $1
18681 } # as_fn_set_status
18682
18683 # as_fn_exit STATUS
18684 # -----------------
18685 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18686 as_fn_exit ()
18687 {
18688   set +e
18689   as_fn_set_status $1
18690   exit $1
18691 } # as_fn_exit
18692
18693 # as_fn_unset VAR
18694 # ---------------
18695 # Portably unset VAR.
18696 as_fn_unset ()
18697 {
18698   { eval $1=; unset $1;}
18699 }
18700 as_unset=as_fn_unset
18701 # as_fn_append VAR VALUE
18702 # ----------------------
18703 # Append the text in VALUE to the end of the definition contained in VAR. Take
18704 # advantage of any shell optimizations that allow amortized linear growth over
18705 # repeated appends, instead of the typical quadratic growth present in naive
18706 # implementations.
18707 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18708   eval 'as_fn_append ()
18709   {
18710     eval $1+=\$2
18711   }'
18712 else
18713   as_fn_append ()
18714   {
18715     eval $1=\$$1\$2
18716   }
18717 fi # as_fn_append
18718
18719 # as_fn_arith ARG...
18720 # ------------------
18721 # Perform arithmetic evaluation on the ARGs, and store the result in the
18722 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18723 # must be portable across $(()) and expr.
18724 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18725   eval 'as_fn_arith ()
18726   {
18727     as_val=$(( $* ))
18728   }'
18729 else
18730   as_fn_arith ()
18731   {
18732     as_val=`expr "$@" || test $? -eq 1`
18733   }
18734 fi # as_fn_arith
18735
18736
18737 if expr a : '\(a\)' >/dev/null 2>&1 &&
18738    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18739   as_expr=expr
18740 else
18741   as_expr=false
18742 fi
18743
18744 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18745   as_basename=basename
18746 else
18747   as_basename=false
18748 fi
18749
18750 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18751   as_dirname=dirname
18752 else
18753   as_dirname=false
18754 fi
18755
18756 as_me=`$as_basename -- "$0" ||
18757 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18758          X"$0" : 'X\(//\)$' \| \
18759          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18760 $as_echo X/"$0" |
18761     sed '/^.*\/\([^/][^/]*\)\/*$/{
18762             s//\1/
18763             q
18764           }
18765           /^X\/\(\/\/\)$/{
18766             s//\1/
18767             q
18768           }
18769           /^X\/\(\/\).*/{
18770             s//\1/
18771             q
18772           }
18773           s/.*/./; q'`
18774
18775 # Avoid depending upon Character Ranges.
18776 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18777 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18778 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18779 as_cr_digits='0123456789'
18780 as_cr_alnum=$as_cr_Letters$as_cr_digits
18781
18782 ECHO_C= ECHO_N= ECHO_T=
18783 case `echo -n x` in #(((((
18784 -n*)
18785   case `echo 'xy\c'` in
18786   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18787   xy)  ECHO_C='\c';;
18788   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18789        ECHO_T=' ';;
18790   esac;;
18791 *)
18792   ECHO_N='-n';;
18793 esac
18794
18795 rm -f conf$$ conf$$.exe conf$$.file
18796 if test -d conf$$.dir; then
18797   rm -f conf$$.dir/conf$$.file
18798 else
18799   rm -f conf$$.dir
18800   mkdir conf$$.dir 2>/dev/null
18801 fi
18802 if (echo >conf$$.file) 2>/dev/null; then
18803   if ln -s conf$$.file conf$$ 2>/dev/null; then
18804     as_ln_s='ln -s'
18805     # ... but there are two gotchas:
18806     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18807     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18808     # In both cases, we have to default to `cp -pR'.
18809     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18810       as_ln_s='cp -pR'
18811   elif ln conf$$.file conf$$ 2>/dev/null; then
18812     as_ln_s=ln
18813   else
18814     as_ln_s='cp -pR'
18815   fi
18816 else
18817   as_ln_s='cp -pR'
18818 fi
18819 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18820 rmdir conf$$.dir 2>/dev/null
18821
18822
18823 # as_fn_mkdir_p
18824 # -------------
18825 # Create "$as_dir" as a directory, including parents if necessary.
18826 as_fn_mkdir_p ()
18827 {
18828
18829   case $as_dir in #(
18830   -*) as_dir=./$as_dir;;
18831   esac
18832   test -d "$as_dir" || eval $as_mkdir_p || {
18833     as_dirs=
18834     while :; do
18835       case $as_dir in #(
18836       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18837       *) as_qdir=$as_dir;;
18838       esac
18839       as_dirs="'$as_qdir' $as_dirs"
18840       as_dir=`$as_dirname -- "$as_dir" ||
18841 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18842          X"$as_dir" : 'X\(//\)[^/]' \| \
18843          X"$as_dir" : 'X\(//\)$' \| \
18844          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18845 $as_echo X"$as_dir" |
18846     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18847             s//\1/
18848             q
18849           }
18850           /^X\(\/\/\)[^/].*/{
18851             s//\1/
18852             q
18853           }
18854           /^X\(\/\/\)$/{
18855             s//\1/
18856             q
18857           }
18858           /^X\(\/\).*/{
18859             s//\1/
18860             q
18861           }
18862           s/.*/./; q'`
18863       test -d "$as_dir" && break
18864     done
18865     test -z "$as_dirs" || eval "mkdir $as_dirs"
18866   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18867
18868
18869 } # as_fn_mkdir_p
18870 if mkdir -p . 2>/dev/null; then
18871   as_mkdir_p='mkdir -p "$as_dir"'
18872 else
18873   test -d ./-p && rmdir ./-p
18874   as_mkdir_p=false
18875 fi
18876
18877
18878 # as_fn_executable_p FILE
18879 # -----------------------
18880 # Test if FILE is an executable regular file.
18881 as_fn_executable_p ()
18882 {
18883   test -f "$1" && test -x "$1"
18884 } # as_fn_executable_p
18885 as_test_x='test -x'
18886 as_executable_p=as_fn_executable_p
18887
18888 # Sed expression to map a string onto a valid CPP name.
18889 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18890
18891 # Sed expression to map a string onto a valid variable name.
18892 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18893
18894
18895 exec 6>&1
18896 ## ----------------------------------- ##
18897 ## Main body of $CONFIG_STATUS script. ##
18898 ## ----------------------------------- ##
18899 _ASEOF
18900 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18901
18902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18903 # Save the log message, to keep $0 and so on meaningful, and to
18904 # report actual input values of CONFIG_FILES etc. instead of their
18905 # values after options handling.
18906 ac_log="
18907 This file was extended by $as_me, which was
18908 generated by GNU Autoconf 2.69.  Invocation command line was
18909
18910   CONFIG_FILES    = $CONFIG_FILES
18911   CONFIG_HEADERS  = $CONFIG_HEADERS
18912   CONFIG_LINKS    = $CONFIG_LINKS
18913   CONFIG_COMMANDS = $CONFIG_COMMANDS
18914   $ $0 $@
18915
18916 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18917 "
18918
18919 _ACEOF
18920
18921 case $ac_config_files in *"
18922 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18923 esac
18924
18925
18926
18927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18928 # Files that config.status was made for.
18929 config_files="$ac_config_files"
18930
18931 _ACEOF
18932
18933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18934 ac_cs_usage="\
18935 \`$as_me' instantiates files and other configuration actions
18936 from templates according to the current configuration.  Unless the files
18937 and actions are specified as TAGs, all are instantiated by default.
18938
18939 Usage: $0 [OPTION]... [TAG]...
18940
18941   -h, --help       print this help, then exit
18942   -V, --version    print version number and configuration settings, then exit
18943       --config     print configuration, then exit
18944   -q, --quiet, --silent
18945                    do not print progress messages
18946   -d, --debug      don't remove temporary files
18947       --recheck    update $as_me by reconfiguring in the same conditions
18948       --file=FILE[:TEMPLATE]
18949                    instantiate the configuration file FILE
18950
18951 Configuration files:
18952 $config_files
18953
18954 Report bugs to the package provider."
18955
18956 _ACEOF
18957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18958 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18959 ac_cs_version="\\
18960 config.status
18961 configured by $0, generated by GNU Autoconf 2.69,
18962   with options \\"\$ac_cs_config\\"
18963
18964 Copyright (C) 2012 Free Software Foundation, Inc.
18965 This config.status script is free software; the Free Software Foundation
18966 gives unlimited permission to copy, distribute and modify it."
18967
18968 ac_pwd='$ac_pwd'
18969 srcdir='$srcdir'
18970 INSTALL='$INSTALL'
18971 AWK='$AWK'
18972 test -n "\$AWK" || AWK=awk
18973 _ACEOF
18974
18975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18976 # The default lists apply if the user does not specify any file.
18977 ac_need_defaults=:
18978 while test $# != 0
18979 do
18980   case $1 in
18981   --*=?*)
18982     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18983     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18984     ac_shift=:
18985     ;;
18986   --*=)
18987     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18988     ac_optarg=
18989     ac_shift=:
18990     ;;
18991   *)
18992     ac_option=$1
18993     ac_optarg=$2
18994     ac_shift=shift
18995     ;;
18996   esac
18997
18998   case $ac_option in
18999   # Handling of the options.
19000   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19001     ac_cs_recheck=: ;;
19002   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19003     $as_echo "$ac_cs_version"; exit ;;
19004   --config | --confi | --conf | --con | --co | --c )
19005     $as_echo "$ac_cs_config"; exit ;;
19006   --debug | --debu | --deb | --de | --d | -d )
19007     debug=: ;;
19008   --file | --fil | --fi | --f )
19009     $ac_shift
19010     case $ac_optarg in
19011     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19012     '') as_fn_error $? "missing file argument" ;;
19013     esac
19014     as_fn_append CONFIG_FILES " '$ac_optarg'"
19015     ac_need_defaults=false;;
19016   --he | --h |  --help | --hel | -h )
19017     $as_echo "$ac_cs_usage"; exit ;;
19018   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19019   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19020     ac_cs_silent=: ;;
19021
19022   # This is an error.
19023   -*) as_fn_error $? "unrecognized option: \`$1'
19024 Try \`$0 --help' for more information." ;;
19025
19026   *) as_fn_append ac_config_targets " $1"
19027      ac_need_defaults=false ;;
19028
19029   esac
19030   shift
19031 done
19032
19033 ac_configure_extra_args=
19034
19035 if $ac_cs_silent; then
19036   exec 6>/dev/null
19037   ac_configure_extra_args="$ac_configure_extra_args --silent"
19038 fi
19039
19040 _ACEOF
19041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19042 if \$ac_cs_recheck; then
19043   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19044   shift
19045   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19046   CONFIG_SHELL='$SHELL'
19047   export CONFIG_SHELL
19048   exec "\$@"
19049 fi
19050
19051 _ACEOF
19052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19053 exec 5>>config.log
19054 {
19055   echo
19056   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19057 ## Running $as_me. ##
19058 _ASBOX
19059   $as_echo "$ac_log"
19060 } >&5
19061
19062 _ACEOF
19063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19064 #
19065 # INIT-COMMANDS
19066 #
19067 extrasub_build="$extrasub_build"
19068    extrasub_host="$extrasub_host"
19069    extrasub_target="$extrasub_target"
19070
19071 _ACEOF
19072
19073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19074
19075 # Handling of arguments.
19076 for ac_config_target in $ac_config_targets
19077 do
19078   case $ac_config_target in
19079     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19080
19081   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19082   esac
19083 done
19084
19085
19086 # If the user did not use the arguments to specify the items to instantiate,
19087 # then the envvar interface is used.  Set only those that are not.
19088 # We use the long form for the default assignment because of an extremely
19089 # bizarre bug on SunOS 4.1.3.
19090 if $ac_need_defaults; then
19091   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19092 fi
19093
19094 # Have a temporary directory for convenience.  Make it in the build tree
19095 # simply because there is no reason against having it here, and in addition,
19096 # creating and moving files from /tmp can sometimes cause problems.
19097 # Hook for its removal unless debugging.
19098 # Note that there is a small window in which the directory will not be cleaned:
19099 # after its creation but before its name has been assigned to `$tmp'.
19100 $debug ||
19101 {
19102   tmp= ac_tmp=
19103   trap 'exit_status=$?
19104   : "${ac_tmp:=$tmp}"
19105   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19106 ' 0
19107   trap 'as_fn_exit 1' 1 2 13 15
19108 }
19109 # Create a (secure) tmp directory for tmp files.
19110
19111 {
19112   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19113   test -d "$tmp"
19114 }  ||
19115 {
19116   tmp=./conf$$-$RANDOM
19117   (umask 077 && mkdir "$tmp")
19118 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19119 ac_tmp=$tmp
19120
19121 # Set up the scripts for CONFIG_FILES section.
19122 # No need to generate them if there are no CONFIG_FILES.
19123 # This happens for instance with `./config.status config.h'.
19124 if test -n "$CONFIG_FILES"; then
19125
19126 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19127   ac_cs_awk_getline=:
19128   ac_cs_awk_pipe_init=
19129   ac_cs_awk_read_file='
19130       while ((getline aline < (F[key])) > 0)
19131         print(aline)
19132       close(F[key])'
19133   ac_cs_awk_pipe_fini=
19134 else
19135   ac_cs_awk_getline=false
19136   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19137   ac_cs_awk_read_file='
19138       print "|#_!!_#|"
19139       print "cat " F[key] " &&"
19140       '$ac_cs_awk_pipe_init
19141   # The final `:' finishes the AND list.
19142   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19143 fi
19144 ac_cr=`echo X | tr X '\015'`
19145 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19146 # But we know of no other shell where ac_cr would be empty at this
19147 # point, so we can use a bashism as a fallback.
19148 if test "x$ac_cr" = x; then
19149   eval ac_cr=\$\'\\r\'
19150 fi
19151 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19152 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19153   ac_cs_awk_cr='\\r'
19154 else
19155   ac_cs_awk_cr=$ac_cr
19156 fi
19157
19158 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19159 _ACEOF
19160
19161 # Create commands to substitute file output variables.
19162 {
19163   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19164   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19165   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19166   echo "_ACAWK" &&
19167   echo "_ACEOF"
19168 } >conf$$files.sh &&
19169 . ./conf$$files.sh ||
19170   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19171 rm -f conf$$files.sh
19172
19173 {
19174   echo "cat >conf$$subs.awk <<_ACEOF" &&
19175   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19176   echo "_ACEOF"
19177 } >conf$$subs.sh ||
19178   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19179 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19180 ac_delim='%!_!# '
19181 for ac_last_try in false false false false false :; do
19182   . ./conf$$subs.sh ||
19183     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19184
19185   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19186   if test $ac_delim_n = $ac_delim_num; then
19187     break
19188   elif $ac_last_try; then
19189     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19190   else
19191     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19192   fi
19193 done
19194 rm -f conf$$subs.sh
19195
19196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19197 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19198 _ACEOF
19199 sed -n '
19200 h
19201 s/^/S["/; s/!.*/"]=/
19202 p
19203 g
19204 s/^[^!]*!//
19205 :repl
19206 t repl
19207 s/'"$ac_delim"'$//
19208 t delim
19209 :nl
19210 h
19211 s/\(.\{148\}\)..*/\1/
19212 t more1
19213 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19214 p
19215 n
19216 b repl
19217 :more1
19218 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19219 p
19220 g
19221 s/.\{148\}//
19222 t nl
19223 :delim
19224 h
19225 s/\(.\{148\}\)..*/\1/
19226 t more2
19227 s/["\\]/\\&/g; s/^/"/; s/$/"/
19228 p
19229 b
19230 :more2
19231 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19232 p
19233 g
19234 s/.\{148\}//
19235 t delim
19236 ' <conf$$subs.awk | sed '
19237 /^[^""]/{
19238   N
19239   s/\n//
19240 }
19241 ' >>$CONFIG_STATUS || ac_write_fail=1
19242 rm -f conf$$subs.awk
19243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19244 _ACAWK
19245 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19246   for (key in S) S_is_set[key] = 1
19247   FS = "\a"
19248   \$ac_cs_awk_pipe_init
19249 }
19250 {
19251   line = $ 0
19252   nfields = split(line, field, "@")
19253   substed = 0
19254   len = length(field[1])
19255   for (i = 2; i < nfields; i++) {
19256     key = field[i]
19257     keylen = length(key)
19258     if (S_is_set[key]) {
19259       value = S[key]
19260       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19261       len += length(value) + length(field[++i])
19262       substed = 1
19263     } else
19264       len += 1 + keylen
19265   }
19266   if (nfields == 3 && !substed) {
19267     key = field[2]
19268     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
19269       \$ac_cs_awk_read_file
19270       next
19271     }
19272   }
19273   print line
19274 }
19275 \$ac_cs_awk_pipe_fini
19276 _ACAWK
19277 _ACEOF
19278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19279 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19280   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19281 else
19282   cat
19283 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19284   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19285 _ACEOF
19286
19287 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19288 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19289 # trailing colons and then remove the whole line if VPATH becomes empty
19290 # (actually we leave an empty line to preserve line numbers).
19291 if test "x$srcdir" = x.; then
19292   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19293 h
19294 s///
19295 s/^/:/
19296 s/[      ]*$/:/
19297 s/:\$(srcdir):/:/g
19298 s/:\${srcdir}:/:/g
19299 s/:@srcdir@:/:/g
19300 s/^:*//
19301 s/:*$//
19302 x
19303 s/\(=[   ]*\).*/\1/
19304 G
19305 s/\n//
19306 s/^[^=]*=[       ]*$//
19307 }'
19308 fi
19309
19310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19311 fi # test -n "$CONFIG_FILES"
19312
19313
19314 eval set X "  :F $CONFIG_FILES      "
19315 shift
19316 for ac_tag
19317 do
19318   case $ac_tag in
19319   :[FHLC]) ac_mode=$ac_tag; continue;;
19320   esac
19321   case $ac_mode$ac_tag in
19322   :[FHL]*:*);;
19323   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19324   :[FH]-) ac_tag=-:-;;
19325   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19326   esac
19327   ac_save_IFS=$IFS
19328   IFS=:
19329   set x $ac_tag
19330   IFS=$ac_save_IFS
19331   shift
19332   ac_file=$1
19333   shift
19334
19335   case $ac_mode in
19336   :L) ac_source=$1;;
19337   :[FH])
19338     ac_file_inputs=
19339     for ac_f
19340     do
19341       case $ac_f in
19342       -) ac_f="$ac_tmp/stdin";;
19343       *) # Look for the file first in the build tree, then in the source tree
19344          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19345          # because $ac_f cannot contain `:'.
19346          test -f "$ac_f" ||
19347            case $ac_f in
19348            [\\/$]*) false;;
19349            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19350            esac ||
19351            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19352       esac
19353       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19354       as_fn_append ac_file_inputs " '$ac_f'"
19355     done
19356
19357     # Let's still pretend it is `configure' which instantiates (i.e., don't
19358     # use $as_me), people would be surprised to read:
19359     #    /* config.h.  Generated by config.status.  */
19360     configure_input='Generated from '`
19361           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19362         `' by configure.'
19363     if test x"$ac_file" != x-; then
19364       configure_input="$ac_file.  $configure_input"
19365       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19366 $as_echo "$as_me: creating $ac_file" >&6;}
19367     fi
19368     # Neutralize special characters interpreted by sed in replacement strings.
19369     case $configure_input in #(
19370     *\&* | *\|* | *\\* )
19371        ac_sed_conf_input=`$as_echo "$configure_input" |
19372        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19373     *) ac_sed_conf_input=$configure_input;;
19374     esac
19375
19376     case $ac_tag in
19377     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19378       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19379     esac
19380     ;;
19381   esac
19382
19383   ac_dir=`$as_dirname -- "$ac_file" ||
19384 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19385          X"$ac_file" : 'X\(//\)[^/]' \| \
19386          X"$ac_file" : 'X\(//\)$' \| \
19387          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19388 $as_echo X"$ac_file" |
19389     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19390             s//\1/
19391             q
19392           }
19393           /^X\(\/\/\)[^/].*/{
19394             s//\1/
19395             q
19396           }
19397           /^X\(\/\/\)$/{
19398             s//\1/
19399             q
19400           }
19401           /^X\(\/\).*/{
19402             s//\1/
19403             q
19404           }
19405           s/.*/./; q'`
19406   as_dir="$ac_dir"; as_fn_mkdir_p
19407   ac_builddir=.
19408
19409 case "$ac_dir" in
19410 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19411 *)
19412   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19413   # A ".." for each directory in $ac_dir_suffix.
19414   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19415   case $ac_top_builddir_sub in
19416   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19417   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19418   esac ;;
19419 esac
19420 ac_abs_top_builddir=$ac_pwd
19421 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19422 # for backward compatibility:
19423 ac_top_builddir=$ac_top_build_prefix
19424
19425 case $srcdir in
19426   .)  # We are building in place.
19427     ac_srcdir=.
19428     ac_top_srcdir=$ac_top_builddir_sub
19429     ac_abs_top_srcdir=$ac_pwd ;;
19430   [\\/]* | ?:[\\/]* )  # Absolute name.
19431     ac_srcdir=$srcdir$ac_dir_suffix;
19432     ac_top_srcdir=$srcdir
19433     ac_abs_top_srcdir=$srcdir ;;
19434   *) # Relative name.
19435     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19436     ac_top_srcdir=$ac_top_build_prefix$srcdir
19437     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19438 esac
19439 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19440
19441
19442   case $ac_mode in
19443   :F)
19444   #
19445   # CONFIG_FILE
19446   #
19447
19448   case $INSTALL in
19449   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19450   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19451   esac
19452 _ACEOF
19453
19454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19455 # If the template does not know about datarootdir, expand it.
19456 # FIXME: This hack should be removed a few years after 2.60.
19457 ac_datarootdir_hack=; ac_datarootdir_seen=
19458 ac_sed_dataroot='
19459 /datarootdir/ {
19460   p
19461   q
19462 }
19463 /@datadir@/p
19464 /@docdir@/p
19465 /@infodir@/p
19466 /@localedir@/p
19467 /@mandir@/p'
19468 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19469 *datarootdir*) ac_datarootdir_seen=yes;;
19470 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19471   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19472 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19473 _ACEOF
19474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19475   ac_datarootdir_hack='
19476   s&@datadir@&$datadir&g
19477   s&@docdir@&$docdir&g
19478   s&@infodir@&$infodir&g
19479   s&@localedir@&$localedir&g
19480   s&@mandir@&$mandir&g
19481   s&\\\${datarootdir}&$datarootdir&g' ;;
19482 esac
19483 _ACEOF
19484
19485 # Neutralize VPATH when `$srcdir' = `.'.
19486 # Shell code in configure.ac might set extrasub.
19487 # FIXME: do we really want to maintain this feature?
19488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19489 ac_sed_extra="$ac_vpsub
19490 $extrasub
19491 _ACEOF
19492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19493 :t
19494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19495 s|@configure_input@|$ac_sed_conf_input|;t t
19496 s&@top_builddir@&$ac_top_builddir_sub&;t t
19497 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19498 s&@srcdir@&$ac_srcdir&;t t
19499 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19500 s&@top_srcdir@&$ac_top_srcdir&;t t
19501 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19502 s&@builddir@&$ac_builddir&;t t
19503 s&@abs_builddir@&$ac_abs_builddir&;t t
19504 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19505 s&@INSTALL@&$ac_INSTALL&;t t
19506 $ac_datarootdir_hack
19507 "
19508 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19509 if $ac_cs_awk_getline; then
19510   $AWK -f "$ac_tmp/subs.awk"
19511 else
19512   $AWK -f "$ac_tmp/subs.awk" | $SHELL
19513 fi \
19514   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19515
19516 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19517   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19518   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19519       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19520   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19521 which seems to be undefined.  Please make sure it is defined" >&5
19522 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19523 which seems to be undefined.  Please make sure it is defined" >&2;}
19524
19525   rm -f "$ac_tmp/stdin"
19526   case $ac_file in
19527   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19528   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19529   esac \
19530   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19531  ;;
19532
19533
19534
19535   esac
19536
19537
19538   case $ac_file$ac_mode in
19539     "Makefile":F) sed "$extrasub_build" Makefile |
19540    sed "$extrasub_host" |
19541    sed "$extrasub_target" > mf$$
19542    mv -f mf$$ Makefile ;;
19543
19544   esac
19545 done # for ac_tag
19546
19547
19548 as_fn_exit 0
19549 _ACEOF
19550 ac_clean_files=$ac_clean_files_save
19551
19552 test $ac_write_fail = 0 ||
19553   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19554
19555
19556 # configure is writing to config.log, and then calls config.status.
19557 # config.status does its own redirection, appending to config.log.
19558 # Unfortunately, on DOS this fails, as config.log is still kept open
19559 # by configure, so config.status won't be able to write to it; its
19560 # output is simply discarded.  So we exec the FD to /dev/null,
19561 # effectively closing config.log, so it can be properly (re)opened and
19562 # appended to by config.status.  When coming back to configure, we
19563 # need to make the FD available again.
19564 if test "$no_create" != yes; then
19565   ac_cs_success=:
19566   ac_config_status_args=
19567   test "$silent" = yes &&
19568     ac_config_status_args="$ac_config_status_args --quiet"
19569   exec 5>/dev/null
19570   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19571   exec 5>>config.log
19572   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19573   # would make configure fail if this is the last instruction.
19574   $ac_cs_success || as_fn_exit 1
19575 fi
19576 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19577   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19578 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19579 fi
19580