configure, Darwin: Set appropriate defaults for host-shared.
[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 READELF
623 OTOOL
624 OBJDUMP
625 OBJCOPY
626 WINDMC
627 WINDRES
628 STRIP
629 RANLIB
630 NM
631 LIPO
632 LD
633 DSYMUTIL
634 DLLTOOL
635 AS
636 AR
637 RUNTEST
638 EXPECT
639 MAKEINFO
640 FLEX
641 LEX
642 M4
643 BISON
644 YACC
645 WINDRES_FOR_BUILD
646 WINDMC_FOR_BUILD
647 RANLIB_FOR_BUILD
648 NM_FOR_BUILD
649 LD_FOR_BUILD
650 LDFLAGS_FOR_BUILD
651 GDC_FOR_BUILD
652 GOC_FOR_BUILD
653 GFORTRAN_FOR_BUILD
654 DSYMUTIL_FOR_BUILD
655 DLLTOOL_FOR_BUILD
656 CXX_FOR_BUILD
657 CXXFLAGS_FOR_BUILD
658 CPPFLAGS_FOR_BUILD
659 CPP_FOR_BUILD
660 CFLAGS_FOR_BUILD
661 CC_FOR_BUILD
662 AS_FOR_BUILD
663 AR_FOR_BUILD
664 target_configdirs
665 configdirs
666 build_configdirs
667 INSTALL_GDB_TK
668 GDB_TK
669 CONFIGURE_GDB_TK
670 build_tooldir
671 tooldir
672 GCC_SHLIB_SUBDIR
673 RPATH_ENVVAR
674 target_configargs
675 host_configargs
676 build_configargs
677 BUILD_CONFIG
678 LDFLAGS_FOR_TARGET
679 CXXFLAGS_FOR_TARGET
680 CFLAGS_FOR_TARGET
681 DEBUG_PREFIX_CFLAGS_FOR_TARGET
682 SYSROOT_CFLAGS_FOR_TARGET
683 get_gcc_base_ver
684 extra_host_zlib_configure_flags
685 extra_host_libiberty_configure_flags
686 stage1_languages
687 host_shared
688 extra_linker_plugin_flags
689 extra_linker_plugin_configure_flags
690 islinc
691 isllibs
692 poststage1_ldflags
693 poststage1_libs
694 stage1_ldflags
695 stage1_libs
696 extra_isl_gmp_configure_flags
697 extra_mpc_mpfr_configure_flags
698 extra_mpc_gmp_configure_flags
699 extra_mpfr_configure_flags
700 gmpinc
701 gmplibs
702 HAVE_CXX11_FOR_BUILD
703 HAVE_CXX11
704 do_compare
705 GNATMAKE
706 GNATBIND
707 ac_ct_CXX
708 CXXFLAGS
709 CXX
710 OBJEXT
711 EXEEXT
712 ac_ct_CC
713 CPPFLAGS
714 LDFLAGS
715 CFLAGS
716 CC
717 extra_liboffloadmic_configure_flags
718 target_subdir
719 host_subdir
720 build_subdir
721 build_libsubdir
722 AWK
723 SED
724 LN_S
725 LN
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 target_os
730 target_vendor
731 target_cpu
732 target
733 host_os
734 host_vendor
735 host_cpu
736 host
737 target_noncanonical
738 host_noncanonical
739 build_noncanonical
740 build_os
741 build_vendor
742 build_cpu
743 build
744 TOPLEVEL_CONFIGURE_ARGUMENTS
745 target_alias
746 host_alias
747 build_alias
748 LIBS
749 ECHO_T
750 ECHO_N
751 ECHO_C
752 DEFS
753 mandir
754 localedir
755 libdir
756 psdir
757 pdfdir
758 dvidir
759 htmldir
760 infodir
761 docdir
762 oldincludedir
763 includedir
764 localstatedir
765 sharedstatedir
766 sysconfdir
767 datadir
768 datarootdir
769 libexecdir
770 sbindir
771 bindir
772 program_transform_name
773 prefix
774 exec_prefix
775 PACKAGE_URL
776 PACKAGE_BUGREPORT
777 PACKAGE_STRING
778 PACKAGE_VERSION
779 PACKAGE_TARNAME
780 PACKAGE_NAME
781 PATH_SEPARATOR
782 SHELL'
783 ac_subst_files='serialization_dependencies
784 host_makefile_frag
785 target_makefile_frag
786 alphaieee_frag
787 ospace_frag'
788 ac_user_opts='
789 enable_option_checking
790 with_build_libsubdir
791 with_system_zlib
792 enable_as_accelerator_for
793 enable_offload_targets
794 enable_offload_defaulted
795 enable_gold
796 enable_ld
797 enable_compressed_debug_sections
798 enable_libquadmath
799 enable_libquadmath_support
800 enable_libada
801 enable_libssp
802 enable_libstdcxx
803 enable_liboffloadmic
804 enable_bootstrap
805 with_mpc
806 with_mpc_include
807 with_mpc_lib
808 with_mpfr_dir
809 with_mpfr
810 with_mpfr_include
811 with_mpfr_lib
812 with_gmp_dir
813 with_gmp
814 with_gmp_include
815 with_gmp_lib
816 with_stage1_libs
817 with_static_standard_libraries
818 with_stage1_ldflags
819 with_boot_libs
820 with_boot_ldflags
821 with_isl
822 with_isl_include
823 with_isl_lib
824 enable_isl_version_check
825 enable_lto
826 enable_linker_plugin_configure_flags
827 enable_linker_plugin_flags
828 enable_host_shared
829 enable_stage1_languages
830 enable_objc_gc
831 with_target_bdw_gc
832 with_target_bdw_gc_include
833 with_target_bdw_gc_lib
834 with_gcc_major_version_only
835 with_build_sysroot
836 with_debug_prefix_map
837 with_build_config
838 enable_vtable_verify
839 enable_serial_configure
840 with_build_time_tools
841 enable_maintainer_mode
842 enable_stage1_checking
843 enable_werror
844 '
845       ac_precious_vars='build_alias
846 host_alias
847 target_alias
848 CC
849 CFLAGS
850 LDFLAGS
851 LIBS
852 CPPFLAGS
853 CXX
854 CXXFLAGS
855 CCC
856 build_configargs
857 host_configargs
858 target_configargs
859 AR
860 AS
861 DLLTOOL
862 DSYMUTIL
863 LD
864 LIPO
865 NM
866 RANLIB
867 STRIP
868 WINDRES
869 WINDMC
870 OBJCOPY
871 OBJDUMP
872 OTOOL
873 READELF
874 CC_FOR_TARGET
875 CXX_FOR_TARGET
876 GCC_FOR_TARGET
877 GFORTRAN_FOR_TARGET
878 GOC_FOR_TARGET
879 GDC_FOR_TARGET
880 AR_FOR_TARGET
881 AS_FOR_TARGET
882 DLLTOOL_FOR_TARGET
883 DSYMUTIL_FOR_TARGET
884 LD_FOR_TARGET
885 LIPO_FOR_TARGET
886 NM_FOR_TARGET
887 OBJCOPY_FOR_TARGET
888 OBJDUMP_FOR_TARGET
889 OTOOL_FOR_TARGET
890 RANLIB_FOR_TARGET
891 READELF_FOR_TARGET
892 STRIP_FOR_TARGET
893 WINDRES_FOR_TARGET
894 WINDMC_FOR_TARGET'
895
896
897 # Initialize some variables set by options.
898 ac_init_help=
899 ac_init_version=false
900 ac_unrecognized_opts=
901 ac_unrecognized_sep=
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
904 cache_file=/dev/null
905 exec_prefix=NONE
906 no_create=
907 no_recursion=
908 prefix=NONE
909 program_prefix=NONE
910 program_suffix=NONE
911 program_transform_name=s,x,x,
912 silent=
913 site=
914 srcdir=
915 verbose=
916 x_includes=NONE
917 x_libraries=NONE
918
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir='${exec_prefix}/bin'
926 sbindir='${exec_prefix}/sbin'
927 libexecdir='${exec_prefix}/libexec'
928 datarootdir='${prefix}/share'
929 datadir='${datarootdir}'
930 sysconfdir='${prefix}/etc'
931 sharedstatedir='${prefix}/com'
932 localstatedir='${prefix}/var'
933 includedir='${prefix}/include'
934 oldincludedir='/usr/include'
935 docdir='${datarootdir}/doc/${PACKAGE}'
936 infodir='${datarootdir}/info'
937 htmldir='${docdir}'
938 dvidir='${docdir}'
939 pdfdir='${docdir}'
940 psdir='${docdir}'
941 libdir='${exec_prefix}/lib'
942 localedir='${datarootdir}/locale'
943 mandir='${datarootdir}/man'
944
945 ac_prev=
946 ac_dashdash=
947 for ac_option
948 do
949   # If the previous option needs an argument, assign it.
950   if test -n "$ac_prev"; then
951     eval $ac_prev=\$ac_option
952     ac_prev=
953     continue
954   fi
955
956   case $ac_option in
957   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958   *=)   ac_optarg= ;;
959   *)    ac_optarg=yes ;;
960   esac
961
962   # Accept the important Cygnus configure options, so we can diagnose typos.
963
964   case $ac_dashdash$ac_option in
965   --)
966     ac_dashdash=yes ;;
967
968   -bindir | --bindir | --bindi | --bind | --bin | --bi)
969     ac_prev=bindir ;;
970   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971     bindir=$ac_optarg ;;
972
973   -build | --build | --buil | --bui | --bu)
974     ac_prev=build_alias ;;
975   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976     build_alias=$ac_optarg ;;
977
978   -cache-file | --cache-file | --cache-fil | --cache-fi \
979   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980     ac_prev=cache_file ;;
981   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983     cache_file=$ac_optarg ;;
984
985   --config-cache | -C)
986     cache_file=config.cache ;;
987
988   -datadir | --datadir | --datadi | --datad)
989     ac_prev=datadir ;;
990   -datadir=* | --datadir=* | --datadi=* | --datad=*)
991     datadir=$ac_optarg ;;
992
993   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994   | --dataroo | --dataro | --datar)
995     ac_prev=datarootdir ;;
996   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998     datarootdir=$ac_optarg ;;
999
1000   -disable-* | --disable-*)
1001     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002     # Reject names that are not valid shell variable names.
1003     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004       as_fn_error $? "invalid feature name: $ac_useropt"
1005     ac_useropt_orig=$ac_useropt
1006     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007     case $ac_user_opts in
1008       *"
1009 "enable_$ac_useropt"
1010 "*) ;;
1011       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1012          ac_unrecognized_sep=', ';;
1013     esac
1014     eval enable_$ac_useropt=no ;;
1015
1016   -docdir | --docdir | --docdi | --doc | --do)
1017     ac_prev=docdir ;;
1018   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019     docdir=$ac_optarg ;;
1020
1021   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1022     ac_prev=dvidir ;;
1023   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024     dvidir=$ac_optarg ;;
1025
1026   -enable-* | --enable-*)
1027     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028     # Reject names that are not valid shell variable names.
1029     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030       as_fn_error $? "invalid feature name: $ac_useropt"
1031     ac_useropt_orig=$ac_useropt
1032     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033     case $ac_user_opts in
1034       *"
1035 "enable_$ac_useropt"
1036 "*) ;;
1037       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1038          ac_unrecognized_sep=', ';;
1039     esac
1040     eval enable_$ac_useropt=\$ac_optarg ;;
1041
1042   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044   | --exec | --exe | --ex)
1045     ac_prev=exec_prefix ;;
1046   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048   | --exec=* | --exe=* | --ex=*)
1049     exec_prefix=$ac_optarg ;;
1050
1051   -gas | --gas | --ga | --g)
1052     # Obsolete; use --with-gas.
1053     with_gas=yes ;;
1054
1055   -help | --help | --hel | --he | -h)
1056     ac_init_help=long ;;
1057   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058     ac_init_help=recursive ;;
1059   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060     ac_init_help=short ;;
1061
1062   -host | --host | --hos | --ho)
1063     ac_prev=host_alias ;;
1064   -host=* | --host=* | --hos=* | --ho=*)
1065     host_alias=$ac_optarg ;;
1066
1067   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068     ac_prev=htmldir ;;
1069   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070   | --ht=*)
1071     htmldir=$ac_optarg ;;
1072
1073   -includedir | --includedir | --includedi | --included | --include \
1074   | --includ | --inclu | --incl | --inc)
1075     ac_prev=includedir ;;
1076   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077   | --includ=* | --inclu=* | --incl=* | --inc=*)
1078     includedir=$ac_optarg ;;
1079
1080   -infodir | --infodir | --infodi | --infod | --info | --inf)
1081     ac_prev=infodir ;;
1082   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083     infodir=$ac_optarg ;;
1084
1085   -libdir | --libdir | --libdi | --libd)
1086     ac_prev=libdir ;;
1087   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088     libdir=$ac_optarg ;;
1089
1090   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091   | --libexe | --libex | --libe)
1092     ac_prev=libexecdir ;;
1093   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094   | --libexe=* | --libex=* | --libe=*)
1095     libexecdir=$ac_optarg ;;
1096
1097   -localedir | --localedir | --localedi | --localed | --locale)
1098     ac_prev=localedir ;;
1099   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100     localedir=$ac_optarg ;;
1101
1102   -localstatedir | --localstatedir | --localstatedi | --localstated \
1103   | --localstate | --localstat | --localsta | --localst | --locals)
1104     ac_prev=localstatedir ;;
1105   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107     localstatedir=$ac_optarg ;;
1108
1109   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110     ac_prev=mandir ;;
1111   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112     mandir=$ac_optarg ;;
1113
1114   -nfp | --nfp | --nf)
1115     # Obsolete; use --without-fp.
1116     with_fp=no ;;
1117
1118   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119   | --no-cr | --no-c | -n)
1120     no_create=yes ;;
1121
1122   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124     no_recursion=yes ;;
1125
1126   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128   | --oldin | --oldi | --old | --ol | --o)
1129     ac_prev=oldincludedir ;;
1130   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133     oldincludedir=$ac_optarg ;;
1134
1135   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136     ac_prev=prefix ;;
1137   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138     prefix=$ac_optarg ;;
1139
1140   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141   | --program-pre | --program-pr | --program-p)
1142     ac_prev=program_prefix ;;
1143   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145     program_prefix=$ac_optarg ;;
1146
1147   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148   | --program-suf | --program-su | --program-s)
1149     ac_prev=program_suffix ;;
1150   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152     program_suffix=$ac_optarg ;;
1153
1154   -program-transform-name | --program-transform-name \
1155   | --program-transform-nam | --program-transform-na \
1156   | --program-transform-n | --program-transform- \
1157   | --program-transform | --program-transfor \
1158   | --program-transfo | --program-transf \
1159   | --program-trans | --program-tran \
1160   | --progr-tra | --program-tr | --program-t)
1161     ac_prev=program_transform_name ;;
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     program_transform_name=$ac_optarg ;;
1170
1171   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172     ac_prev=pdfdir ;;
1173   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174     pdfdir=$ac_optarg ;;
1175
1176   -psdir | --psdir | --psdi | --psd | --ps)
1177     ac_prev=psdir ;;
1178   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179     psdir=$ac_optarg ;;
1180
1181   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182   | -silent | --silent | --silen | --sile | --sil)
1183     silent=yes ;;
1184
1185   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186     ac_prev=sbindir ;;
1187   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188   | --sbi=* | --sb=*)
1189     sbindir=$ac_optarg ;;
1190
1191   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193   | --sharedst | --shareds | --shared | --share | --shar \
1194   | --sha | --sh)
1195     ac_prev=sharedstatedir ;;
1196   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199   | --sha=* | --sh=*)
1200     sharedstatedir=$ac_optarg ;;
1201
1202   -site | --site | --sit)
1203     ac_prev=site ;;
1204   -site=* | --site=* | --sit=*)
1205     site=$ac_optarg ;;
1206
1207   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208     ac_prev=srcdir ;;
1209   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210     srcdir=$ac_optarg ;;
1211
1212   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213   | --syscon | --sysco | --sysc | --sys | --sy)
1214     ac_prev=sysconfdir ;;
1215   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217     sysconfdir=$ac_optarg ;;
1218
1219   -target | --target | --targe | --targ | --tar | --ta | --t)
1220     ac_prev=target_alias ;;
1221   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222     target_alias=$ac_optarg ;;
1223
1224   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225     verbose=yes ;;
1226
1227   -version | --version | --versio | --versi | --vers | -V)
1228     ac_init_version=: ;;
1229
1230   -with-* | --with-*)
1231     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232     # Reject names that are not valid shell variable names.
1233     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234       as_fn_error $? "invalid package name: $ac_useropt"
1235     ac_useropt_orig=$ac_useropt
1236     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237     case $ac_user_opts in
1238       *"
1239 "with_$ac_useropt"
1240 "*) ;;
1241       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1242          ac_unrecognized_sep=', ';;
1243     esac
1244     eval with_$ac_useropt=\$ac_optarg ;;
1245
1246   -without-* | --without-*)
1247     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248     # Reject names that are not valid shell variable names.
1249     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1250       as_fn_error $? "invalid package name: $ac_useropt"
1251     ac_useropt_orig=$ac_useropt
1252     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253     case $ac_user_opts in
1254       *"
1255 "with_$ac_useropt"
1256 "*) ;;
1257       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1258          ac_unrecognized_sep=', ';;
1259     esac
1260     eval with_$ac_useropt=no ;;
1261
1262   --x)
1263     # Obsolete; use --with-x.
1264     with_x=yes ;;
1265
1266   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267   | --x-incl | --x-inc | --x-in | --x-i)
1268     ac_prev=x_includes ;;
1269   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271     x_includes=$ac_optarg ;;
1272
1273   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275     ac_prev=x_libraries ;;
1276   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278     x_libraries=$ac_optarg ;;
1279
1280   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1281 Try \`$0 --help' for more information"
1282     ;;
1283
1284   *=*)
1285     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1286     # Reject names that are not valid shell variable names.
1287     case $ac_envvar in #(
1288       '' | [0-9]* | *[!_$as_cr_alnum]* )
1289       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1290     esac
1291     eval $ac_envvar=\$ac_optarg
1292     export $ac_envvar ;;
1293
1294   *)
1295     # FIXME: should be removed in autoconf 3.0.
1296     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1300     ;;
1301
1302   esac
1303 done
1304
1305 if test -n "$ac_prev"; then
1306   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307   as_fn_error $? "missing argument to $ac_option"
1308 fi
1309
1310 if test -n "$ac_unrecognized_opts"; then
1311   case $enable_option_checking in
1312     no) ;;
1313     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1314     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1315   esac
1316 fi
1317
1318 # Check all directory arguments for consistency.
1319 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1320                 datadir sysconfdir sharedstatedir localstatedir includedir \
1321                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1322                 libdir localedir mandir
1323 do
1324   eval ac_val=\$$ac_var
1325   # Remove trailing slashes.
1326   case $ac_val in
1327     */ )
1328       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1329       eval $ac_var=\$ac_val;;
1330   esac
1331   # Be sure to have absolute directory names.
1332   case $ac_val in
1333     [\\/$]* | ?:[\\/]* )  continue;;
1334     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1335   esac
1336   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1337 done
1338
1339 # There might be people who depend on the old broken behavior: `$host'
1340 # used to hold the argument of --host etc.
1341 # FIXME: To remove some day.
1342 build=$build_alias
1343 host=$host_alias
1344 target=$target_alias
1345
1346 # FIXME: To remove some day.
1347 if test "x$host_alias" != x; then
1348   if test "x$build_alias" = x; then
1349     cross_compiling=maybe
1350   elif test "x$build_alias" != "x$host_alias"; then
1351     cross_compiling=yes
1352   fi
1353 fi
1354
1355 ac_tool_prefix=
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357
1358 test "$silent" = yes && exec 6>/dev/null
1359
1360
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364   as_fn_error $? "working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366   as_fn_error $? "pwd does not report name of working directory"
1367
1368
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371   ac_srcdir_defaulted=yes
1372   # Try the directory containing this script, then the parent directory.
1373   ac_confdir=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375          X"$as_myself" : 'X\(//\)[^/]' \| \
1376          X"$as_myself" : 'X\(//\)$' \| \
1377          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380             s//\1/
1381             q
1382           }
1383           /^X\(\/\/\)[^/].*/{
1384             s//\1/
1385             q
1386           }
1387           /^X\(\/\/\)$/{
1388             s//\1/
1389             q
1390           }
1391           /^X\(\/\).*/{
1392             s//\1/
1393             q
1394           }
1395           s/.*/./; q'`
1396   srcdir=$ac_confdir
1397   if test ! -r "$srcdir/$ac_unique_file"; then
1398     srcdir=..
1399   fi
1400 else
1401   ac_srcdir_defaulted=no
1402 fi
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1406 fi
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408 ac_abs_confdir=`(
1409         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1410         pwd)`
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413   srcdir=.
1414 fi
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1418 case $srcdir in
1419 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420 esac
1421 case $srcdir in
1422   *" "*)
1423     as_fn_error $? "path to source, $srcdir, contains spaces"
1424     ;;
1425 esac
1426 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1427
1428 for ac_var in $ac_precious_vars; do
1429   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1430   eval ac_env_${ac_var}_value=\$${ac_var}
1431   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1432   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1433 done
1434
1435 #
1436 # Report the --help message.
1437 #
1438 if test "$ac_init_help" = "long"; then
1439   # Omit some internal or obsolete options to make the list less imposing.
1440   # This message is too long to be a string in the A/UX 3.1 sh.
1441   cat <<_ACEOF
1442 \`configure' configures this package to adapt to many kinds of systems.
1443
1444 Usage: $0 [OPTION]... [VAR=VALUE]...
1445
1446 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447 VAR=VALUE.  See below for descriptions of some of the useful variables.
1448
1449 Defaults for the options are specified in brackets.
1450
1451 Configuration:
1452   -h, --help              display this help and exit
1453       --help=short        display options specific to this package
1454       --help=recursive    display the short help of all the included packages
1455   -V, --version           display version information and exit
1456   -q, --quiet, --silent   do not print \`checking ...' messages
1457       --cache-file=FILE   cache test results in FILE [disabled]
1458   -C, --config-cache      alias for \`--cache-file=config.cache'
1459   -n, --no-create         do not create output files
1460       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1461
1462 Installation directories:
1463   --prefix=PREFIX         install architecture-independent files in PREFIX
1464                           [$ac_default_prefix]
1465   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1466                           [PREFIX]
1467
1468 By default, \`make install' will install all the files in
1469 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1470 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471 for instance \`--prefix=\$HOME'.
1472
1473 For better control, use the options below.
1474
1475 Fine tuning of the installation directories:
1476   --bindir=DIR            user executables [EPREFIX/bin]
1477   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1478   --libexecdir=DIR        program executables [EPREFIX/libexec]
1479   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1480   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1481   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1482   --libdir=DIR            object code libraries [EPREFIX/lib]
1483   --includedir=DIR        C header files [PREFIX/include]
1484   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1485   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1486   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1487   --infodir=DIR           info documentation [DATAROOTDIR/info]
1488   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1489   --mandir=DIR            man documentation [DATAROOTDIR/man]
1490   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1491   --htmldir=DIR           html documentation [DOCDIR]
1492   --dvidir=DIR            dvi documentation [DOCDIR]
1493   --pdfdir=DIR            pdf documentation [DOCDIR]
1494   --psdir=DIR             ps documentation [DOCDIR]
1495 _ACEOF
1496
1497   cat <<\_ACEOF
1498
1499 Program names:
1500   --program-prefix=PREFIX            prepend PREFIX to installed program names
1501   --program-suffix=SUFFIX            append SUFFIX to installed program names
1502   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1503
1504 System types:
1505   --build=BUILD     configure for building on BUILD [guessed]
1506   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1507   --target=TARGET   configure for building compilers for TARGET [HOST]
1508 _ACEOF
1509 fi
1510
1511 if test -n "$ac_init_help"; then
1512
1513   cat <<\_ACEOF
1514
1515 Optional Features:
1516   --disable-option-checking  ignore unrecognized --enable/--with options
1517   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1518   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1519   --enable-as-accelerator-for=ARG
1520                           build as offload target compiler. Specify offload
1521                           host triple by ARG
1522   --enable-offload-targets=LIST
1523                           enable offloading to devices from comma-separated
1524                           LIST of TARGET[=DIR]. Use optional path to find
1525                           offload target compiler during the build
1526   --enable-offload-defaulted
1527                 If enabled, configured but not installed offload compilers and
1528                 libgomp plugins are silently ignored.  Useful for distribution
1529                 compilers where those are in separate optional packages.
1530
1531   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1532   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1533   --enable-compressed-debug-sections={all,gas,gold,ld,none}
1534                           Enable compressed debug sections for gas, gold or ld
1535                           by default
1536   --disable-libquadmath   do not build libquadmath directory
1537   --disable-libquadmath-support
1538                           disable libquadmath support for Fortran
1539   --enable-libada         build libada directory
1540   --enable-libssp         build libssp directory
1541   --disable-libstdcxx     do not build libstdc++-v3 directory
1542   --enable-liboffloadmic=ARG
1543                           build liboffloadmic [ARG={no,host,target}]
1544   --enable-bootstrap      enable bootstrapping [yes if native build]
1545   --disable-isl-version-check
1546                           disable check for isl version
1547   --enable-lto            enable link time optimization support
1548   --enable-linker-plugin-configure-flags=FLAGS
1549                           additional flags for configuring linker plugins
1550                           [none]
1551   --enable-linker-plugin-flags=FLAGS
1552                           additional flags for configuring and building linker
1553                           plugins [none]
1554   --enable-host-shared    build host code as shared libraries
1555   --enable-stage1-languages[=all]
1556                           choose additional languages to build during stage1.
1557                           Mostly useful for compiler development
1558   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1559                           Objective-C runtime
1560   --enable-vtable-verify  Enable vtable verification feature
1561   --enable-serial-[{host,target,build}-]configure
1562                           force sequential configuration of sub-packages for
1563                           the host, target or build machine, or all
1564                           sub-packages
1565   --enable-maintainer-mode
1566                           enable make rules and dependencies not useful (and
1567                           sometimes confusing) to the casual installer
1568   --enable-stage1-checking[=all]
1569                           choose additional checking for stage1 of the
1570                           compiler
1571   --enable-werror         enable -Werror in bootstrap stage2 and later
1572
1573 Optional Packages:
1574   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1575   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1576   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1577   --with-system-zlib      use installed libz
1578   --with-mpc=PATH         specify prefix directory for installed MPC package.
1579                           Equivalent to --with-mpc-include=PATH/include plus
1580                           --with-mpc-lib=PATH/lib
1581   --with-mpc-include=PATH specify directory for installed MPC include files
1582   --with-mpc-lib=PATH     specify directory for the installed MPC library
1583   --with-mpfr-dir=PATH    this option has been REMOVED
1584   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1585                           Equivalent to --with-mpfr-include=PATH/include plus
1586                           --with-mpfr-lib=PATH/lib
1587   --with-mpfr-include=PATH
1588                           specify directory for installed MPFR include files
1589   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1590   --with-gmp-dir=PATH     this option has been REMOVED
1591   --with-gmp=PATH         specify prefix directory for the installed GMP
1592                           package. Equivalent to
1593                           --with-gmp-include=PATH/include plus
1594                           --with-gmp-lib=PATH/lib
1595   --with-gmp-include=PATH specify directory for installed GMP include files
1596   --with-gmp-lib=PATH     specify directory for the installed GMP library
1597   --with-stage1-libs=LIBS libraries for stage1
1598   --with-static-standard-libraries
1599                           use -static-libstdc++ and -static-libgcc
1600                           (default=auto)
1601   --with-stage1-ldflags=FLAGS
1602                           linker flags for stage1
1603   --with-boot-libs=LIBS   libraries for stage2 and later
1604   --with-boot-ldflags=FLAGS
1605                           linker flags for stage2 and later
1606   --with-isl=PATH         Specify prefix directory for the installed isl
1607                           package. Equivalent to
1608                           --with-isl-include=PATH/include plus
1609                           --with-isl-lib=PATH/lib
1610   --with-isl-include=PATH Specify directory for installed isl include files
1611   --with-isl-lib=PATH     Specify the directory for the installed isl library
1612   --with-target-bdw-gc=PATHLIST
1613                           specify prefix directory for installed bdw-gc
1614                           package. Equivalent to
1615                           --with-target-bdw-gc-include=PATH/include plus
1616                           --with-target-bdw-gc-lib=PATH/lib
1617   --with-target-bdw-gc-include=PATHLIST
1618                           specify directories for installed bdw-gc include
1619                           files
1620   --with-target-bdw-gc-lib=PATHLIST
1621                           specify directories for installed bdw-gc library
1622   --with-gcc-major-version-only
1623                           use only GCC major number in filesystem paths
1624   --with-build-sysroot=SYSROOT
1625                           use sysroot as the system root during the build
1626   --with-debug-prefix-map='A=B C=D ...'
1627                           map A to B, C to D ... in debug information
1628   --with-build-config='NAME NAME2...'
1629                           use config/NAME.mk build configuration
1630   --with-build-time-tools=PATH
1631                           use given path to find target tools during the build
1632
1633 Some influential environment variables:
1634   CC          C compiler command
1635   CFLAGS      C compiler flags
1636   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1637               nonstandard directory <lib dir>
1638   LIBS        libraries to pass to the linker, e.g. -l<library>
1639   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1640               you have headers in a nonstandard directory <include dir>
1641   CXX         C++ compiler command
1642   CXXFLAGS    C++ compiler flags
1643   build_configargs
1644               additional configure arguments for build directories
1645   host_configargs
1646               additional configure arguments for host directories
1647   target_configargs
1648               additional configure arguments for target directories
1649   AR          AR for the host
1650   AS          AS for the host
1651   DLLTOOL     DLLTOOL for the host
1652   DSYMUTIL    DSYMUTIL for the host
1653   LD          LD for the host
1654   LIPO        LIPO for the host
1655   NM          NM for the host
1656   RANLIB      RANLIB for the host
1657   STRIP       STRIP for the host
1658   WINDRES     WINDRES for the host
1659   WINDMC      WINDMC for the host
1660   OBJCOPY     OBJCOPY for the host
1661   OBJDUMP     OBJDUMP for the host
1662   OTOOL       OTOOL for the host
1663   READELF     READELF for the host
1664   CC_FOR_TARGET
1665               CC for the target
1666   CXX_FOR_TARGET
1667               CXX for the target
1668   GCC_FOR_TARGET
1669               GCC for the target
1670   GFORTRAN_FOR_TARGET
1671               GFORTRAN for the target
1672   GOC_FOR_TARGET
1673               GOC for the target
1674   GDC_FOR_TARGET
1675               GDC for the target
1676   AR_FOR_TARGET
1677               AR for the target
1678   AS_FOR_TARGET
1679               AS for the target
1680   DLLTOOL_FOR_TARGET
1681               DLLTOOL for the target
1682   DSYMUTIL_FOR_TARGET
1683               DSYMUTIL for the target
1684   LD_FOR_TARGET
1685               LD for the target
1686   LIPO_FOR_TARGET
1687               LIPO for the target
1688   NM_FOR_TARGET
1689               NM for the target
1690   OBJCOPY_FOR_TARGET
1691               OBJCOPY for the target
1692   OBJDUMP_FOR_TARGET
1693               OBJDUMP for the target
1694   OTOOL_FOR_TARGET
1695               OTOOL for the target
1696   RANLIB_FOR_TARGET
1697               RANLIB for the target
1698   READELF_FOR_TARGET
1699               READELF for the target
1700   STRIP_FOR_TARGET
1701               STRIP for the target
1702   WINDRES_FOR_TARGET
1703               WINDRES for the target
1704   WINDMC_FOR_TARGET
1705               WINDMC for the target
1706
1707 Use these variables to override the choices made by `configure' or to help
1708 it to find libraries and programs with nonstandard names/locations.
1709
1710 Report bugs to the package provider.
1711 _ACEOF
1712 ac_status=$?
1713 fi
1714
1715 if test "$ac_init_help" = "recursive"; then
1716   # If there are subdirs, report their specific --help.
1717   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1718     test -d "$ac_dir" ||
1719       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1720       continue
1721     ac_builddir=.
1722
1723 case "$ac_dir" in
1724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1725 *)
1726   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1727   # A ".." for each directory in $ac_dir_suffix.
1728   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1729   case $ac_top_builddir_sub in
1730   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1732   esac ;;
1733 esac
1734 ac_abs_top_builddir=$ac_pwd
1735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1736 # for backward compatibility:
1737 ac_top_builddir=$ac_top_build_prefix
1738
1739 case $srcdir in
1740   .)  # We are building in place.
1741     ac_srcdir=.
1742     ac_top_srcdir=$ac_top_builddir_sub
1743     ac_abs_top_srcdir=$ac_pwd ;;
1744   [\\/]* | ?:[\\/]* )  # Absolute name.
1745     ac_srcdir=$srcdir$ac_dir_suffix;
1746     ac_top_srcdir=$srcdir
1747     ac_abs_top_srcdir=$srcdir ;;
1748   *) # Relative name.
1749     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1750     ac_top_srcdir=$ac_top_build_prefix$srcdir
1751     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1752 esac
1753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1754
1755     cd "$ac_dir" || { ac_status=$?; continue; }
1756     # Check for guested configure.
1757     if test -f "$ac_srcdir/configure.gnu"; then
1758       echo &&
1759       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1760     elif test -f "$ac_srcdir/configure"; then
1761       echo &&
1762       $SHELL "$ac_srcdir/configure" --help=recursive
1763     else
1764       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1765     fi || ac_status=$?
1766     cd "$ac_pwd" || { ac_status=$?; break; }
1767   done
1768 fi
1769
1770 test -n "$ac_init_help" && exit $ac_status
1771 if $ac_init_version; then
1772   cat <<\_ACEOF
1773 configure
1774 generated by GNU Autoconf 2.69
1775
1776 Copyright (C) 2012 Free Software Foundation, Inc.
1777 This configure script is free software; the Free Software Foundation
1778 gives unlimited permission to copy, distribute and modify it.
1779 _ACEOF
1780   exit
1781 fi
1782
1783 ## ------------------------ ##
1784 ## Autoconf initialization. ##
1785 ## ------------------------ ##
1786
1787 # ac_fn_c_try_compile LINENO
1788 # --------------------------
1789 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_compile ()
1791 {
1792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793   rm -f conftest.$ac_objext
1794   if { { ac_try="$ac_compile"
1795 case "(($ac_try" in
1796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797   *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801   (eval "$ac_compile") 2>conftest.err
1802   ac_status=$?
1803   if test -s conftest.err; then
1804     grep -v '^ *+' conftest.err >conftest.er1
1805     cat conftest.er1 >&5
1806     mv -f conftest.er1 conftest.err
1807   fi
1808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809   test $ac_status = 0; } && {
1810          test -z "$ac_c_werror_flag" ||
1811          test ! -s conftest.err
1812        } && test -s conftest.$ac_objext; then :
1813   ac_retval=0
1814 else
1815   $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1817
1818         ac_retval=1
1819 fi
1820   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821   as_fn_set_status $ac_retval
1822
1823 } # ac_fn_c_try_compile
1824
1825 # ac_fn_cxx_try_compile LINENO
1826 # ----------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_compile ()
1829 {
1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831   rm -f conftest.$ac_objext
1832   if { { ac_try="$ac_compile"
1833 case "(($ac_try" in
1834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835   *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839   (eval "$ac_compile") 2>conftest.err
1840   ac_status=$?
1841   if test -s conftest.err; then
1842     grep -v '^ *+' conftest.err >conftest.er1
1843     cat conftest.er1 >&5
1844     mv -f conftest.er1 conftest.err
1845   fi
1846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847   test $ac_status = 0; } && {
1848          test -z "$ac_cxx_werror_flag" ||
1849          test ! -s conftest.err
1850        } && test -s conftest.$ac_objext; then :
1851   ac_retval=0
1852 else
1853   $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856         ac_retval=1
1857 fi
1858   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859   as_fn_set_status $ac_retval
1860
1861 } # ac_fn_cxx_try_compile
1862
1863 # ac_fn_cxx_try_link LINENO
1864 # -------------------------
1865 # Try to link conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_cxx_try_link ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   rm -f conftest.$ac_objext conftest$ac_exeext
1870   if { { ac_try="$ac_link"
1871 case "(($ac_try" in
1872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873   *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877   (eval "$ac_link") 2>conftest.err
1878   ac_status=$?
1879   if test -s conftest.err; then
1880     grep -v '^ *+' conftest.err >conftest.er1
1881     cat conftest.er1 >&5
1882     mv -f conftest.er1 conftest.err
1883   fi
1884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885   test $ac_status = 0; } && {
1886          test -z "$ac_cxx_werror_flag" ||
1887          test ! -s conftest.err
1888        } && test -s conftest$ac_exeext && {
1889          test "$cross_compiling" = yes ||
1890          test -x conftest$ac_exeext
1891        }; then :
1892   ac_retval=0
1893 else
1894   $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1896
1897         ac_retval=1
1898 fi
1899   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1900   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1901   # interfere with the next link command; also delete a directory that is
1902   # left behind by Apple's compiler.  We do this before executing the actions.
1903   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905   as_fn_set_status $ac_retval
1906
1907 } # ac_fn_cxx_try_link
1908
1909 # ac_fn_c_try_link LINENO
1910 # -----------------------
1911 # Try to link conftest.$ac_ext, and return whether this succeeded.
1912 ac_fn_c_try_link ()
1913 {
1914   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915   rm -f conftest.$ac_objext conftest$ac_exeext
1916   if { { ac_try="$ac_link"
1917 case "(($ac_try" in
1918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919   *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923   (eval "$ac_link") 2>conftest.err
1924   ac_status=$?
1925   if test -s conftest.err; then
1926     grep -v '^ *+' conftest.err >conftest.er1
1927     cat conftest.er1 >&5
1928     mv -f conftest.er1 conftest.err
1929   fi
1930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931   test $ac_status = 0; } && {
1932          test -z "$ac_c_werror_flag" ||
1933          test ! -s conftest.err
1934        } && test -s conftest$ac_exeext && {
1935          test "$cross_compiling" = yes ||
1936          test -x conftest$ac_exeext
1937        }; then :
1938   ac_retval=0
1939 else
1940   $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1942
1943         ac_retval=1
1944 fi
1945   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1946   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1947   # interfere with the next link command; also delete a directory that is
1948   # left behind by Apple's compiler.  We do this before executing the actions.
1949   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951   as_fn_set_status $ac_retval
1952
1953 } # ac_fn_c_try_link
1954 cat >config.log <<_ACEOF
1955 This file contains any messages produced by compilers while
1956 running configure, to aid debugging if configure makes a mistake.
1957
1958 It was created by $as_me, which was
1959 generated by GNU Autoconf 2.69.  Invocation command line was
1960
1961   $ $0 $@
1962
1963 _ACEOF
1964 exec 5>>config.log
1965 {
1966 cat <<_ASUNAME
1967 ## --------- ##
1968 ## Platform. ##
1969 ## --------- ##
1970
1971 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1972 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1973 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1974 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1975 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1976
1977 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1978 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1979
1980 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1981 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1982 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1983 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1984 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1985 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1986 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1987
1988 _ASUNAME
1989
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 for as_dir in $PATH
1992 do
1993   IFS=$as_save_IFS
1994   test -z "$as_dir" && as_dir=.
1995     $as_echo "PATH: $as_dir"
1996   done
1997 IFS=$as_save_IFS
1998
1999 } >&5
2000
2001 cat >&5 <<_ACEOF
2002
2003
2004 ## ----------- ##
2005 ## Core tests. ##
2006 ## ----------- ##
2007
2008 _ACEOF
2009
2010
2011 # Keep a trace of the command line.
2012 # Strip out --no-create and --no-recursion so they do not pile up.
2013 # Strip out --silent because we don't want to record it for future runs.
2014 # Also quote any args containing shell meta-characters.
2015 # Make two passes to allow for proper duplicate-argument suppression.
2016 ac_configure_args=
2017 ac_configure_args0=
2018 ac_configure_args1=
2019 ac_must_keep_next=false
2020 for ac_pass in 1 2
2021 do
2022   for ac_arg
2023   do
2024     case $ac_arg in
2025     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2026     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2027     | -silent | --silent | --silen | --sile | --sil)
2028       continue ;;
2029     *\'*)
2030       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2031     esac
2032     case $ac_pass in
2033     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2034     2)
2035       as_fn_append ac_configure_args1 " '$ac_arg'"
2036       if test $ac_must_keep_next = true; then
2037         ac_must_keep_next=false # Got value, back to normal.
2038       else
2039         case $ac_arg in
2040           *=* | --config-cache | -C | -disable-* | --disable-* \
2041           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2042           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2043           | -with-* | --with-* | -without-* | --without-* | --x)
2044             case "$ac_configure_args0 " in
2045               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2046             esac
2047             ;;
2048           -* ) ac_must_keep_next=true ;;
2049         esac
2050       fi
2051       as_fn_append ac_configure_args " '$ac_arg'"
2052       ;;
2053     esac
2054   done
2055 done
2056 { ac_configure_args0=; unset ac_configure_args0;}
2057 { ac_configure_args1=; unset ac_configure_args1;}
2058
2059 # When interrupted or exit'd, cleanup temporary files, and complete
2060 # config.log.  We remove comments because anyway the quotes in there
2061 # would cause problems or look ugly.
2062 # WARNING: Use '\'' to represent an apostrophe within the trap.
2063 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2064 trap 'exit_status=$?
2065   # Save into config.log some information that might help in debugging.
2066   {
2067     echo
2068
2069     $as_echo "## ---------------- ##
2070 ## Cache variables. ##
2071 ## ---------------- ##"
2072     echo
2073     # The following way of writing the cache mishandles newlines in values,
2074 (
2075   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2076     eval ac_val=\$$ac_var
2077     case $ac_val in #(
2078     *${as_nl}*)
2079       case $ac_var in #(
2080       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2081 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2082       esac
2083       case $ac_var in #(
2084       _ | IFS | as_nl) ;; #(
2085       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2086       *) { eval $ac_var=; unset $ac_var;} ;;
2087       esac ;;
2088     esac
2089   done
2090   (set) 2>&1 |
2091     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2092     *${as_nl}ac_space=\ *)
2093       sed -n \
2094         "s/'\''/'\''\\\\'\'''\''/g;
2095           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2096       ;; #(
2097     *)
2098       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2099       ;;
2100     esac |
2101     sort
2102 )
2103     echo
2104
2105     $as_echo "## ----------------- ##
2106 ## Output variables. ##
2107 ## ----------------- ##"
2108     echo
2109     for ac_var in $ac_subst_vars
2110     do
2111       eval ac_val=\$$ac_var
2112       case $ac_val in
2113       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2114       esac
2115       $as_echo "$ac_var='\''$ac_val'\''"
2116     done | sort
2117     echo
2118
2119     if test -n "$ac_subst_files"; then
2120       $as_echo "## ------------------- ##
2121 ## File substitutions. ##
2122 ## ------------------- ##"
2123       echo
2124       for ac_var in $ac_subst_files
2125       do
2126         eval ac_val=\$$ac_var
2127         case $ac_val in
2128         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2129         esac
2130         $as_echo "$ac_var='\''$ac_val'\''"
2131       done | sort
2132       echo
2133     fi
2134
2135     if test -s confdefs.h; then
2136       $as_echo "## ----------- ##
2137 ## confdefs.h. ##
2138 ## ----------- ##"
2139       echo
2140       cat confdefs.h
2141       echo
2142     fi
2143     test "$ac_signal" != 0 &&
2144       $as_echo "$as_me: caught signal $ac_signal"
2145     $as_echo "$as_me: exit $exit_status"
2146   } >&5
2147   rm -f core *.core core.conftest.* &&
2148     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2149     exit $exit_status
2150 ' 0
2151 for ac_signal in 1 2 13 15; do
2152   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2153 done
2154 ac_signal=0
2155
2156 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2157 rm -f -r conftest* confdefs.h
2158
2159 $as_echo "/* confdefs.h */" > confdefs.h
2160
2161 # Predefined preprocessor variables.
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_NAME "$PACKAGE_NAME"
2165 _ACEOF
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2169 _ACEOF
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2173 _ACEOF
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_STRING "$PACKAGE_STRING"
2177 _ACEOF
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2181 _ACEOF
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_URL "$PACKAGE_URL"
2185 _ACEOF
2186
2187
2188 # Let the site file select an alternate cache file if it wants to.
2189 # Prefer an explicitly selected file to automatically selected ones.
2190 ac_site_file1=NONE
2191 ac_site_file2=NONE
2192 if test -n "$CONFIG_SITE"; then
2193   # We do not want a PATH search for config.site.
2194   case $CONFIG_SITE in #((
2195     -*)  ac_site_file1=./$CONFIG_SITE;;
2196     */*) ac_site_file1=$CONFIG_SITE;;
2197     *)   ac_site_file1=./$CONFIG_SITE;;
2198   esac
2199 elif test "x$prefix" != xNONE; then
2200   ac_site_file1=$prefix/share/config.site
2201   ac_site_file2=$prefix/etc/config.site
2202 else
2203   ac_site_file1=$ac_default_prefix/share/config.site
2204   ac_site_file2=$ac_default_prefix/etc/config.site
2205 fi
2206 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2207 do
2208   test "x$ac_site_file" = xNONE && continue
2209   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2210     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2211 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2212     sed 's/^/| /' "$ac_site_file" >&5
2213     . "$ac_site_file" \
2214       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216 as_fn_error $? "failed to load site script $ac_site_file
2217 See \`config.log' for more details" "$LINENO" 5; }
2218   fi
2219 done
2220
2221 if test -r "$cache_file"; then
2222   # Some versions of bash will fail to source /dev/null (special files
2223   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2224   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2225     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2226 $as_echo "$as_me: loading cache $cache_file" >&6;}
2227     case $cache_file in
2228       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2229       *)                      . "./$cache_file";;
2230     esac
2231   fi
2232 else
2233   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2234 $as_echo "$as_me: creating cache $cache_file" >&6;}
2235   >$cache_file
2236 fi
2237
2238 # Check that the precious variables saved in the cache have kept the same
2239 # value.
2240 ac_cache_corrupted=false
2241 for ac_var in $ac_precious_vars; do
2242   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2243   eval ac_new_set=\$ac_env_${ac_var}_set
2244   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2245   eval ac_new_val=\$ac_env_${ac_var}_value
2246   case $ac_old_set,$ac_new_set in
2247     set,)
2248       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2249 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2250       ac_cache_corrupted=: ;;
2251     ,set)
2252       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2253 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2254       ac_cache_corrupted=: ;;
2255     ,);;
2256     *)
2257       if test "x$ac_old_val" != "x$ac_new_val"; then
2258         # differences in whitespace do not lead to failure.
2259         ac_old_val_w=`echo x $ac_old_val`
2260         ac_new_val_w=`echo x $ac_new_val`
2261         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2262           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2263 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2264           ac_cache_corrupted=:
2265         else
2266           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2267 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2268           eval $ac_var=\$ac_old_val
2269         fi
2270         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2271 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2272         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2273 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2274       fi;;
2275   esac
2276   # Pass precious variables to config.status.
2277   if test "$ac_new_set" = set; then
2278     case $ac_new_val in
2279     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2280     *) ac_arg=$ac_var=$ac_new_val ;;
2281     esac
2282     case " $ac_configure_args " in
2283       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2284       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2285     esac
2286   fi
2287 done
2288 if $ac_cache_corrupted; then
2289   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2291   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2292 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2293   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2294 fi
2295 ## -------------------- ##
2296 ## Main body of script. ##
2297 ## -------------------- ##
2298
2299 ac_ext=c
2300 ac_cpp='$CPP $CPPFLAGS'
2301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304
2305
2306
2307
2308
2309
2310
2311
2312 progname=$0
2313 # if PWD already has a value, it is probably wrong.
2314 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2315
2316 # Export original configure arguments for use by sub-configures.
2317 # Quote arguments with shell meta charatcers.
2318 TOPLEVEL_CONFIGURE_ARGUMENTS=
2319 set -- "$progname" "$@"
2320 for ac_arg
2321 do
2322   case "$ac_arg" in
2323   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2324     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2325     # if the argument is of the form -foo=baz, quote the baz part only
2326     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2327   *) ;;
2328   esac
2329   # Add the quoted argument to the list.
2330   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2331 done
2332 if test "$silent" = yes; then
2333   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2334 fi
2335 # Remove the initial space we just introduced and, as these will be
2336 # expanded by make, quote '$'.
2337 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2338
2339
2340 # Find the build, host, and target systems.
2341 ac_aux_dir=
2342 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2343   if test -f "$ac_dir/install-sh"; then
2344     ac_aux_dir=$ac_dir
2345     ac_install_sh="$ac_aux_dir/install-sh -c"
2346     break
2347   elif test -f "$ac_dir/install.sh"; then
2348     ac_aux_dir=$ac_dir
2349     ac_install_sh="$ac_aux_dir/install.sh -c"
2350     break
2351   elif test -f "$ac_dir/shtool"; then
2352     ac_aux_dir=$ac_dir
2353     ac_install_sh="$ac_aux_dir/shtool install -c"
2354     break
2355   fi
2356 done
2357 if test -z "$ac_aux_dir"; then
2358   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2359 fi
2360
2361 # These three variables are undocumented and unsupported,
2362 # and are intended to be withdrawn in a future Autoconf release.
2363 # They can cause serious problems if a builder's source tree is in a directory
2364 # whose full name contains unusual characters.
2365 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2366 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2367 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2368
2369
2370 # Make sure we can run config.sub.
2371 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2372   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2373
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2375 $as_echo_n "checking build system type... " >&6; }
2376 if ${ac_cv_build+:} false; then :
2377   $as_echo_n "(cached) " >&6
2378 else
2379   ac_build_alias=$build_alias
2380 test "x$ac_build_alias" = x &&
2381   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2382 test "x$ac_build_alias" = x &&
2383   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2384 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2385   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2386
2387 fi
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2389 $as_echo "$ac_cv_build" >&6; }
2390 case $ac_cv_build in
2391 *-*-*) ;;
2392 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2393 esac
2394 build=$ac_cv_build
2395 ac_save_IFS=$IFS; IFS='-'
2396 set x $ac_cv_build
2397 shift
2398 build_cpu=$1
2399 build_vendor=$2
2400 shift; shift
2401 # Remember, the first character of IFS is used to create $*,
2402 # except with old shells:
2403 build_os=$*
2404 IFS=$ac_save_IFS
2405 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2406
2407
2408  case ${build_alias} in
2409   "") build_noncanonical=${build} ;;
2410   *) build_noncanonical=${build_alias} ;;
2411 esac
2412
2413
2414
2415  case ${host_alias} in
2416   "") host_noncanonical=${build_noncanonical} ;;
2417   *) host_noncanonical=${host_alias} ;;
2418 esac
2419
2420
2421
2422  case ${target_alias} in
2423   "") target_noncanonical=${host_noncanonical} ;;
2424   *) target_noncanonical=${target_alias} ;;
2425 esac
2426
2427
2428
2429
2430 test "$host_noncanonical" = "$target_noncanonical" &&
2431   test "$program_prefix$program_suffix$program_transform_name" = \
2432     NONENONEs,x,x, &&
2433   program_transform_name=s,y,y,
2434
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2436 $as_echo_n "checking host system type... " >&6; }
2437 if ${ac_cv_host+:} false; then :
2438   $as_echo_n "(cached) " >&6
2439 else
2440   if test "x$host_alias" = x; then
2441   ac_cv_host=$ac_cv_build
2442 else
2443   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2444     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2445 fi
2446
2447 fi
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2449 $as_echo "$ac_cv_host" >&6; }
2450 case $ac_cv_host in
2451 *-*-*) ;;
2452 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2453 esac
2454 host=$ac_cv_host
2455 ac_save_IFS=$IFS; IFS='-'
2456 set x $ac_cv_host
2457 shift
2458 host_cpu=$1
2459 host_vendor=$2
2460 shift; shift
2461 # Remember, the first character of IFS is used to create $*,
2462 # except with old shells:
2463 host_os=$*
2464 IFS=$ac_save_IFS
2465 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2466
2467
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2469 $as_echo_n "checking target system type... " >&6; }
2470 if ${ac_cv_target+:} false; then :
2471   $as_echo_n "(cached) " >&6
2472 else
2473   if test "x$target_alias" = x; then
2474   ac_cv_target=$ac_cv_host
2475 else
2476   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2477     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2478 fi
2479
2480 fi
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2482 $as_echo "$ac_cv_target" >&6; }
2483 case $ac_cv_target in
2484 *-*-*) ;;
2485 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2486 esac
2487 target=$ac_cv_target
2488 ac_save_IFS=$IFS; IFS='-'
2489 set x $ac_cv_target
2490 shift
2491 target_cpu=$1
2492 target_vendor=$2
2493 shift; shift
2494 # Remember, the first character of IFS is used to create $*,
2495 # except with old shells:
2496 target_os=$*
2497 IFS=$ac_save_IFS
2498 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2499
2500
2501 # The aliases save the names the user supplied, while $host etc.
2502 # will get canonicalized.
2503 test -n "$target_alias" &&
2504   test "$program_prefix$program_suffix$program_transform_name" = \
2505     NONENONEs,x,x, &&
2506   program_prefix=${target_alias}-
2507
2508 test "$program_prefix" != NONE &&
2509   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2510 # Use a double $ so make ignores it.
2511 test "$program_suffix" != NONE &&
2512   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2513 # Double any \ or $.
2514 # By default was `s,x,x', remove it if useless.
2515 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2516 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2517
2518
2519
2520 # Get 'install' or 'install-sh' and its variants.
2521 # Find a good install program.  We prefer a C program (faster),
2522 # so one script is as good as another.  But avoid the broken or
2523 # incompatible versions:
2524 # SysV /etc/install, /usr/sbin/install
2525 # SunOS /usr/etc/install
2526 # IRIX /sbin/install
2527 # AIX /bin/install
2528 # AmigaOS /C/install, which installs bootblocks on floppy discs
2529 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2530 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2531 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2532 # OS/2's system install, which has a completely different semantic
2533 # ./install, which can be erroneously created by make from ./install.sh.
2534 # Reject install programs that cannot install multiple files.
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2536 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2537 if test -z "$INSTALL"; then
2538 if ${ac_cv_path_install+:} false; then :
2539   $as_echo_n "(cached) " >&6
2540 else
2541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2543 do
2544   IFS=$as_save_IFS
2545   test -z "$as_dir" && as_dir=.
2546     # Account for people who put trailing slashes in PATH elements.
2547 case $as_dir/ in #((
2548   ./ | .// | /[cC]/* | \
2549   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2550   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2551   /usr/ucb/* ) ;;
2552   *)
2553     # OSF1 and SCO ODT 3.0 have their own names for install.
2554     # Don't use installbsd from OSF since it installs stuff as root
2555     # by default.
2556     for ac_prog in ginstall scoinst install; do
2557       for ac_exec_ext in '' $ac_executable_extensions; do
2558         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2559           if test $ac_prog = install &&
2560             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2561             # AIX install.  It has an incompatible calling convention.
2562             :
2563           elif test $ac_prog = install &&
2564             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2565             # program-specific install script used by HP pwplus--don't use.
2566             :
2567           else
2568             rm -rf conftest.one conftest.two conftest.dir
2569             echo one > conftest.one
2570             echo two > conftest.two
2571             mkdir conftest.dir
2572             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2573               test -s conftest.one && test -s conftest.two &&
2574               test -s conftest.dir/conftest.one &&
2575               test -s conftest.dir/conftest.two
2576             then
2577               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2578               break 3
2579             fi
2580           fi
2581         fi
2582       done
2583     done
2584     ;;
2585 esac
2586
2587   done
2588 IFS=$as_save_IFS
2589
2590 rm -rf conftest.one conftest.two conftest.dir
2591
2592 fi
2593   if test "${ac_cv_path_install+set}" = set; then
2594     INSTALL=$ac_cv_path_install
2595   else
2596     # As a last resort, use the slow shell script.  Don't cache a
2597     # value for INSTALL within a source directory, because that will
2598     # break other packages using the cache if that directory is
2599     # removed, or if the value is a relative name.
2600     INSTALL=$ac_install_sh
2601   fi
2602 fi
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2604 $as_echo "$INSTALL" >&6; }
2605
2606 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2607 # It thinks the first close brace ends the variable substitution.
2608 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2609
2610 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2611
2612 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2613
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2615 $as_echo_n "checking whether ln works... " >&6; }
2616 if ${acx_cv_prog_LN+:} false; then :
2617   $as_echo_n "(cached) " >&6
2618 else
2619   rm -f conftestdata_t
2620 echo >conftestdata_f
2621 if ln conftestdata_f conftestdata_t 2>/dev/null
2622 then
2623   acx_cv_prog_LN=ln
2624 else
2625   acx_cv_prog_LN=no
2626 fi
2627 rm -f conftestdata_f conftestdata_t
2628
2629 fi
2630 if test $acx_cv_prog_LN = no; then
2631   LN="cp"
2632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2633 $as_echo "no, using $LN" >&6; }
2634 else
2635   LN="$acx_cv_prog_LN"
2636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2637 $as_echo "yes" >&6; }
2638 fi
2639
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2641 $as_echo_n "checking whether ln -s works... " >&6; }
2642 LN_S=$as_ln_s
2643 if test "$LN_S" = "ln -s"; then
2644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2645 $as_echo "yes" >&6; }
2646 else
2647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2648 $as_echo "no, using $LN_S" >&6; }
2649 fi
2650
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2652 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2653 if ${ac_cv_path_SED+:} false; then :
2654   $as_echo_n "(cached) " >&6
2655 else
2656             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2657      for ac_i in 1 2 3 4 5 6 7; do
2658        ac_script="$ac_script$as_nl$ac_script"
2659      done
2660      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2661      { ac_script=; unset ac_script;}
2662      if test -z "$SED"; then
2663   ac_path_SED_found=false
2664   # Loop through the user's path and test for each of PROGNAME-LIST
2665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668   IFS=$as_save_IFS
2669   test -z "$as_dir" && as_dir=.
2670     for ac_prog in sed gsed; do
2671     for ac_exec_ext in '' $ac_executable_extensions; do
2672       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2673       as_fn_executable_p "$ac_path_SED" || continue
2674 # Check for GNU ac_path_SED and select it if it is found.
2675   # Check for GNU $ac_path_SED
2676 case `"$ac_path_SED" --version 2>&1` in
2677 *GNU*)
2678   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2679 *)
2680   ac_count=0
2681   $as_echo_n 0123456789 >"conftest.in"
2682   while :
2683   do
2684     cat "conftest.in" "conftest.in" >"conftest.tmp"
2685     mv "conftest.tmp" "conftest.in"
2686     cp "conftest.in" "conftest.nl"
2687     $as_echo '' >> "conftest.nl"
2688     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2689     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2690     as_fn_arith $ac_count + 1 && ac_count=$as_val
2691     if test $ac_count -gt ${ac_path_SED_max-0}; then
2692       # Best one so far, save it but keep looking for a better one
2693       ac_cv_path_SED="$ac_path_SED"
2694       ac_path_SED_max=$ac_count
2695     fi
2696     # 10*(2^10) chars as input seems more than enough
2697     test $ac_count -gt 10 && break
2698   done
2699   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2700 esac
2701
2702       $ac_path_SED_found && break 3
2703     done
2704   done
2705   done
2706 IFS=$as_save_IFS
2707   if test -z "$ac_cv_path_SED"; then
2708     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2709   fi
2710 else
2711   ac_cv_path_SED=$SED
2712 fi
2713
2714 fi
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2716 $as_echo "$ac_cv_path_SED" >&6; }
2717  SED="$ac_cv_path_SED"
2718   rm -f conftest.sed
2719
2720 for ac_prog in gawk mawk nawk awk
2721 do
2722   # Extract the first word of "$ac_prog", so it can be a program name with args.
2723 set dummy $ac_prog; ac_word=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if ${ac_cv_prog_AWK+:} false; then :
2727   $as_echo_n "(cached) " >&6
2728 else
2729   if test -n "$AWK"; then
2730   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735   IFS=$as_save_IFS
2736   test -z "$as_dir" && as_dir=.
2737     for ac_exec_ext in '' $ac_executable_extensions; do
2738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2739     ac_cv_prog_AWK="$ac_prog"
2740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741     break 2
2742   fi
2743 done
2744   done
2745 IFS=$as_save_IFS
2746
2747 fi
2748 fi
2749 AWK=$ac_cv_prog_AWK
2750 if test -n "$AWK"; then
2751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2752 $as_echo "$AWK" >&6; }
2753 else
2754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2756 fi
2757
2758
2759   test -n "$AWK" && break
2760 done
2761
2762
2763 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2764
2765 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2766 # a relative path.
2767 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2768   INSTALL="${srcpwd}/install-sh -c"
2769 fi
2770
2771 # Set srcdir to "." if that's what it is.
2772 # This is important for multilib support.
2773 pwd=`${PWDCMD-pwd}`
2774 if test "${pwd}" = "${srcpwd}" ; then
2775   srcdir=.
2776 fi
2777
2778 topsrcdir=$srcpwd
2779
2780 extra_host_args=
2781
2782 ### To add a new directory to the tree, first choose whether it is a target
2783 ### or a host dependent tool.  Then put it into the appropriate list
2784 ### (library or tools, host or target), doing a dependency sort.
2785
2786 # Subdirs will be configured in the order listed in build_configdirs,
2787 # configdirs, or target_configdirs; see the serialization section below.
2788
2789 # Dependency sorting is only needed when *configuration* must be done in
2790 # a particular order.  In all cases a dependency should be specified in
2791 # the Makefile, whether or not it's implicitly specified here.
2792
2793 # Double entries in build_configdirs, configdirs, or target_configdirs may
2794 # cause circular dependencies and break everything horribly.
2795
2796 # these library is used by various programs built for the build
2797 # environment
2798 #
2799 build_libs="build-libiberty build-libcpp"
2800
2801 # these tools are built for the build environment
2802 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2803
2804 # these libraries are used by various programs built for the host environment
2805 #f
2806 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2807
2808 # these tools are built for the host environment
2809 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2810 # know that we are building the simulator.
2811 # binutils, gas and ld appear in that order because it makes sense to run
2812 # "make check" in that particular order.
2813 # If --enable-gold is used, "gold" may replace "ld".
2814 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"
2815
2816 # these libraries are built for the target environment, and are built after
2817 # the host libraries and the host tools (which may be a cross compiler)
2818 # Note that libiberty is not a target library.
2819 target_libraries="target-libgcc \
2820                 target-libbacktrace \
2821                 target-libgloss \
2822                 target-newlib \
2823                 target-libgomp \
2824                 target-liboffloadmic \
2825                 target-libatomic \
2826                 target-libitm \
2827                 target-libstdc++-v3 \
2828                 target-libsanitizer \
2829                 target-libvtv \
2830                 target-libssp \
2831                 target-libquadmath \
2832                 target-libgfortran \
2833                 target-libffi \
2834                 target-libobjc \
2835                 target-libada \
2836                 target-libgo \
2837                 target-libphobos \
2838                 target-zlib"
2839
2840 # these tools are built using the target libraries, and are intended to
2841 # run only in the target environment
2842 #
2843 # note: any program that *uses* libraries that are in the "target_libraries"
2844 # list belongs in this list.
2845 #
2846 target_tools="target-rda"
2847
2848 ################################################################################
2849
2850 ## All tools belong in one of the four categories, and are assigned above
2851 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2852 ## is important because configure will choke if they ever get through.
2853 ## ${configdirs} is directories we build using the host tools.
2854 ## ${target_configdirs} is directories we build using the target tools.
2855 configdirs=`echo ${host_libs} ${host_tools}`
2856 target_configdirs=`echo ${target_libraries} ${target_tools}`
2857 build_configdirs=`echo ${build_libs} ${build_tools}`
2858
2859
2860
2861 ################################################################################
2862
2863 srcname="gnu development package"
2864
2865 # This gets set non-empty for some net releases of packages.
2866 appdirs=""
2867
2868 # Define is_cross_compiler to save on calls to 'test'.
2869 is_cross_compiler=
2870 if test x"${host}" = x"${target}" ; then
2871   is_cross_compiler=no
2872 else
2873   is_cross_compiler=yes
2874 fi
2875
2876 # Find the build and target subdir names.
2877
2878 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2879 # have matching libraries, they should use host libraries: Makefile.tpl
2880 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2881 # However, they still use the build modules, because the corresponding
2882 # host modules (e.g. bison) are only built for the host when bootstrap
2883 # finishes. So:
2884 # - build_subdir is where we find build modules, and never changes.
2885 # - build_libsubdir is where we find build libraries, and can be overridden.
2886
2887 # Prefix 'build-' so this never conflicts with target_subdir.
2888 build_subdir="build-${build_noncanonical}"
2889
2890 # Check whether --with-build-libsubdir was given.
2891 if test "${with_build_libsubdir+set}" = set; then :
2892   withval=$with_build_libsubdir; build_libsubdir="$withval"
2893 else
2894   build_libsubdir="$build_subdir"
2895 fi
2896
2897 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2898 if ( test $srcdir = . && test -d gcc ) \
2899    || test -d $srcdir/../host-${host_noncanonical}; then
2900   host_subdir="host-${host_noncanonical}"
2901 else
2902   host_subdir=.
2903 fi
2904 # No prefix.
2905 target_subdir=${target_noncanonical}
2906
2907 # Be sure to cover against remnants of an in-tree build.
2908 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2909   as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2910 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2911 fi
2912
2913 # Skipdirs are removed silently.
2914 skipdirs=
2915 # Noconfigdirs are removed loudly.
2916 noconfigdirs=""
2917
2918 use_gnu_ld=
2919 # Make sure we don't let GNU ld be added if we didn't want it.
2920 if test x$with_gnu_ld = xno ; then
2921   use_gnu_ld=no
2922   noconfigdirs="$noconfigdirs ld gold"
2923 fi
2924
2925 use_gnu_as=
2926 # Make sure we don't let GNU as be added if we didn't want it.
2927 if test x$with_gnu_as = xno ; then
2928   use_gnu_as=no
2929   noconfigdirs="$noconfigdirs gas"
2930 fi
2931
2932 use_included_zlib=
2933
2934 # Check whether --with-system-zlib was given.
2935 if test "${with_system_zlib+set}" = set; then :
2936   withval=$with_system_zlib;
2937 fi
2938
2939 # Make sure we don't let ZLIB be added if we didn't want it.
2940 if test x$with_system_zlib = xyes ; then
2941   use_included_zlib=no
2942   noconfigdirs="$noconfigdirs zlib"
2943 fi
2944
2945 # some tools are so dependent upon X11 that if we're not building with X,
2946 # it's not even worth trying to configure, much less build, that tool.
2947
2948 case ${with_x} in
2949   yes | "") ;; # the default value for this tree is that X11 is available
2950   no)
2951     skipdirs="${skipdirs} tk itcl libgui"
2952     # We won't be able to build gdbtk without X.
2953     enable_gdbtk=no
2954     ;;
2955   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2956 esac
2957
2958 # Some are only suitable for cross toolchains.
2959 # Remove these if host=target.
2960 cross_only="target-libgloss target-newlib target-opcodes"
2961
2962 case $is_cross_compiler in
2963   no) skipdirs="${skipdirs} ${cross_only}" ;;
2964 esac
2965
2966 # If both --with-headers and --with-libs are specified, default to
2967 # --without-newlib.
2968 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2969    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2970   if test x"${with_newlib}" = x ; then
2971     with_newlib=no
2972   fi
2973 fi
2974
2975 # Recognize --with-newlib/--without-newlib.
2976 case ${with_newlib} in
2977   no) skipdirs="${skipdirs} target-newlib" ;;
2978   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2979 esac
2980
2981 # Check whether --enable-as-accelerator-for was given.
2982 if test "${enable_as_accelerator_for+set}" = set; then :
2983   enableval=$enable_as_accelerator_for;
2984 fi
2985
2986
2987 # Check whether --enable-offload-targets was given.
2988 if test "${enable_offload_targets+set}" = set; then :
2989   enableval=$enable_offload_targets;
2990   if test x"$enable_offload_targets" = x; then
2991     as_fn_error $? "no offload targets specified" "$LINENO" 5
2992   fi
2993
2994 else
2995   enable_offload_targets=
2996 fi
2997
2998
2999 # Check whether --enable-offload-defaulted was given.
3000 if test "${enable_offload_defaulted+set}" = set; then :
3001   enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3002 else
3003   enable_offload_defaulted=
3004 fi
3005
3006
3007 # Handle --enable-gold, --enable-ld.
3008 # --disable-gold [--enable-ld]
3009 #     Build only ld.  Default option.
3010 # --enable-gold [--enable-ld]
3011 #     Build both gold and ld.  Install gold as "ld.gold", install ld
3012 #     as "ld.bfd" and "ld".
3013 # --enable-gold=default [--enable-ld]
3014 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
3015 #     install ld as "ld.bfd".
3016 # --enable-gold[=default] --disable-ld
3017 #     Build only gold, which is then installed as both "ld.gold" and "ld".
3018 # --enable-gold --enable-ld=default
3019 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
3020 #     and ld.bfd).
3021 #     In other words, ld is default
3022 # --enable-gold=default --enable-ld=default
3023 #     Error.
3024
3025 default_ld=
3026 # Check whether --enable-gold was given.
3027 if test "${enable_gold+set}" = set; then :
3028   enableval=$enable_gold; ENABLE_GOLD=$enableval
3029 else
3030   ENABLE_GOLD=no
3031 fi
3032
3033 case "${ENABLE_GOLD}" in
3034   yes|default)
3035     # Check for ELF target.
3036     is_elf=no
3037     case "${target}" in
3038       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3039       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3040       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3041       | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3042         case "${target}" in
3043           *-*-linux*aout* | *-*-linux*oldld*)
3044             ;;
3045           *)
3046             is_elf=yes
3047             ;;
3048         esac
3049     esac
3050
3051     if test "$is_elf" = "yes"; then
3052       # Check for target supported by gold.
3053       case "${target}" in
3054         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3055         | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3056           configdirs="$configdirs gold"
3057           if test x${ENABLE_GOLD} = xdefault; then
3058             default_ld=gold
3059           fi
3060           ENABLE_GOLD=yes
3061           ;;
3062       esac
3063     fi
3064     ;;
3065   no)
3066     ;;
3067   *)
3068     as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3069     ;;
3070 esac
3071
3072 # Check whether --enable-ld was given.
3073 if test "${enable_ld+set}" = set; then :
3074   enableval=$enable_ld; ENABLE_LD=$enableval
3075 else
3076   ENABLE_LD=yes
3077 fi
3078
3079
3080 case "${ENABLE_LD}" in
3081   default)
3082     if test x${default_ld} != x; then
3083       as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3084     fi
3085     ;;
3086   yes)
3087     ;;
3088   no)
3089     if test x${ENABLE_GOLD} != xyes; then
3090       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3091 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3092     fi
3093     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3094     ;;
3095   *)
3096     as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3097     ;;
3098 esac
3099
3100 # PR gas/19109
3101 # Decide the default method for compressing debug sections.
3102 # Provide a configure time option to override our default.
3103 # Check whether --enable-compressed_debug_sections was given.
3104 if test "${enable_compressed_debug_sections+set}" = set; then :
3105   enableval=$enable_compressed_debug_sections;
3106   if test x"$enable_compressed_debug_sections" = xyes; then
3107     as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3108   fi
3109
3110 else
3111   enable_compressed_debug_sections=
3112 fi
3113
3114
3115 # Configure extra directories which are host specific
3116
3117 case "${host}" in
3118   *-cygwin*)
3119     configdirs="$configdirs libtermcap" ;;
3120 esac
3121
3122 # A target can indicate whether a language isn't supported for some reason.
3123 # Only spaces may be used in this macro; not newlines or tabs.
3124 unsupported_languages=
3125
3126 # Remove more programs from consideration, based on the host or
3127 # target this usually means that a port of the program doesn't
3128 # exist yet.
3129
3130 case "${host}" in
3131   i[3456789]86-*-msdosdjgpp*)
3132     noconfigdirs="$noconfigdirs tcl tk itcl"
3133     ;;
3134 esac
3135
3136
3137 # Check whether --enable-libquadmath was given.
3138 if test "${enable_libquadmath+set}" = set; then :
3139   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3140 else
3141   ENABLE_LIBQUADMATH=yes
3142 fi
3143
3144 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3145   noconfigdirs="$noconfigdirs target-libquadmath"
3146 fi
3147
3148
3149 # Check whether --enable-libquadmath-support was given.
3150 if test "${enable_libquadmath_support+set}" = set; then :
3151   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3152 else
3153   ENABLE_LIBQUADMATH_SUPPORT=yes
3154 fi
3155
3156 enable_libquadmath_support=
3157 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3158   enable_libquadmath_support=no
3159 fi
3160
3161
3162 # Check whether --enable-libada was given.
3163 if test "${enable_libada+set}" = set; then :
3164   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3165 else
3166   ENABLE_LIBADA=yes
3167 fi
3168
3169 if test "${ENABLE_LIBADA}" != "yes" ; then
3170   noconfigdirs="$noconfigdirs gnattools"
3171 fi
3172
3173 # Check whether --enable-libssp was given.
3174 if test "${enable_libssp+set}" = set; then :
3175   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3176 else
3177   ENABLE_LIBSSP=yes
3178 fi
3179
3180
3181 # Check whether --enable-libstdcxx was given.
3182 if test "${enable_libstdcxx+set}" = set; then :
3183   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3184 else
3185   ENABLE_LIBSTDCXX=default
3186 fi
3187
3188 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3189   noconfigdirs="$noconfigdirs target-libstdc++-v3"
3190 fi
3191
3192 # If this is accelerator compiler and its target is intelmic we enable
3193 # target liboffloadmic by default.  If this is compiler with offloading
3194 # for intelmic we enable host liboffloadmic by default.  Otherwise
3195 # liboffloadmic is disabled by default.
3196 # Check whether --enable-liboffloadmic was given.
3197 if test "${enable_liboffloadmic+set}" = set; then :
3198   enableval=$enable_liboffloadmic; case "$enableval" in
3199   no | host | target)
3200     enable_liboffloadmic=$enableval ;;
3201   *)
3202     as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3203 esac
3204 else
3205   if test x"$enable_as_accelerator_for" != x; then
3206   case "${target}" in
3207     *-intelmic-* | *-intelmicemul-*)
3208       enable_liboffloadmic=target
3209       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3210       ;;
3211     *)
3212       enable_liboffloadmic=no
3213       ;;
3214   esac
3215 else
3216   case "${enable_offload_targets}" in
3217     *-intelmic-* | *-intelmicemul-*)
3218       enable_liboffloadmic=host
3219       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3220       ;;
3221     *)
3222       enable_liboffloadmic=no
3223       ;;
3224     esac
3225 fi
3226 fi
3227
3228
3229
3230 # Enable libgomp by default on hosted POSIX systems, and a few others.
3231 if test x$enable_libgomp = x ; then
3232     case "${target}" in
3233     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3234         ;;
3235     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3236         ;;
3237     *-*-solaris2* | *-*-hpux11*)
3238         ;;
3239     *-*-darwin* | *-*-aix*)
3240         ;;
3241     nvptx*-*-* | amdgcn*-*-*)
3242         ;;
3243     *)
3244         noconfigdirs="$noconfigdirs target-libgomp"
3245         ;;
3246     esac
3247 fi
3248
3249 # Disable libatomic on unsupported systems.
3250 if test -d ${srcdir}/libatomic; then
3251     if test x$enable_libatomic = x; then
3252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3253 $as_echo_n "checking for libatomic support... " >&6; }
3254         if (srcdir=${srcdir}/libatomic; \
3255                 . ${srcdir}/configure.tgt; \
3256                 test -n "$UNSUPPORTED")
3257         then
3258             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3260             noconfigdirs="$noconfigdirs target-libatomic"
3261         else
3262             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3263 $as_echo "yes" >&6; }
3264         fi
3265     fi
3266 fi
3267
3268 # Disable liboffloadmic on unsupported systems.
3269 if test -d ${srcdir}/liboffloadmic; then
3270     if test x$enable_liboffloadmic != xno; then
3271         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3272 $as_echo_n "checking for liboffloadmic support... " >&6; }
3273         if (srcdir=${srcdir}/liboffloadmic; \
3274                 . ${srcdir}/configure.tgt; \
3275                 test -n "$UNSUPPORTED")
3276         then
3277             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279             noconfigdirs="$noconfigdirs target-liboffloadmic"
3280         else
3281             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282 $as_echo "yes" >&6; }
3283         fi
3284     fi
3285 fi
3286
3287 # Disable libitm on unsupported systems.
3288 if test -d ${srcdir}/libitm; then
3289     if test x$enable_libitm = x; then
3290         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3291 $as_echo_n "checking for libitm support... " >&6; }
3292         if (srcdir=${srcdir}/libitm; \
3293                 . ${srcdir}/configure.tgt; \
3294                 test -n "$UNSUPPORTED")
3295         then
3296             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3298             noconfigdirs="$noconfigdirs target-libitm"
3299         else
3300             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3301 $as_echo "yes" >&6; }
3302         fi
3303     fi
3304 fi
3305
3306 # Disable libsanitizer on unsupported systems.
3307 if test -d ${srcdir}/libsanitizer; then
3308     if test x$enable_libsanitizer = x; then
3309         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3310 $as_echo_n "checking for libsanitizer support... " >&6; }
3311         if (srcdir=${srcdir}/libsanitizer; \
3312                 . ${srcdir}/configure.tgt; \
3313                 test -n "$UNSUPPORTED")
3314         then
3315             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3317             noconfigdirs="$noconfigdirs target-libsanitizer"
3318         else
3319             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3320 $as_echo "yes" >&6; }
3321         fi
3322     fi
3323 fi
3324
3325 # Disable libvtv on unsupported systems.
3326 if test -d ${srcdir}/libvtv; then
3327     if test x$enable_libvtv = x; then
3328         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3329 $as_echo_n "checking for libvtv support... " >&6; }
3330         if (srcdir=${srcdir}/libvtv; \
3331                 . ${srcdir}/configure.tgt; \
3332                 test "$VTV_SUPPORTED" != "yes")
3333         then
3334             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336             noconfigdirs="$noconfigdirs target-libvtv"
3337         else
3338             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3339 $as_echo "yes" >&6; }
3340         fi
3341     fi
3342 fi
3343
3344 # Disable libquadmath for some systems.
3345 case "${target}" in
3346   avr-*-*)
3347     noconfigdirs="$noconfigdirs target-libquadmath"
3348     ;;
3349   # libquadmath is unused on AIX and libquadmath build process use of
3350   # LD_LIBRARY_PATH can break AIX bootstrap.
3351   powerpc-*-aix* | rs6000-*-aix*)
3352     noconfigdirs="$noconfigdirs target-libquadmath"
3353     ;;
3354 esac
3355
3356 # Disable libssp for some systems.
3357 case "${target}" in
3358   avr-*-*)
3359     # No hosted I/O support.
3360     noconfigdirs="$noconfigdirs target-libssp"
3361     ;;
3362   bpf-*-*)
3363     noconfigdirs="$noconfigdirs target-libssp"
3364     ;;
3365   powerpc-*-aix* | rs6000-*-aix*)
3366     noconfigdirs="$noconfigdirs target-libssp"
3367     ;;
3368   pru-*-*)
3369     # No hosted I/O support.
3370     noconfigdirs="$noconfigdirs target-libssp"
3371     ;;
3372   rl78-*-*)
3373     # libssp uses a misaligned load to trigger a fault, but the RL78
3374     # doesn't fault for those - instead, it gives a build-time error
3375     # for explicit misaligned loads.
3376     noconfigdirs="$noconfigdirs target-libssp"
3377     ;;
3378   visium-*-*)
3379     # No hosted I/O support.
3380     noconfigdirs="$noconfigdirs target-libssp"
3381     ;;
3382 esac
3383
3384 # Disable libstdc++-v3 for some systems.
3385 # Allow user to override this if they pass --enable-libstdc++-v3
3386 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3387   case "${target}" in
3388     *-*-vxworks*)
3389       # VxWorks uses the Dinkumware C++ library.
3390       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3391       ;;
3392     amdgcn*-*-*)
3393       # Not ported/fails to build when using newlib.
3394       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3395       ;;
3396     arm*-wince-pe*)
3397       # the C++ libraries don't build on top of CE's C libraries
3398       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3399       ;;
3400     avr-*-*)
3401       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3402       ;;
3403     bpf-*-*)
3404       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3405       ;;
3406     ft32-*-*)
3407       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3408       ;;
3409   esac
3410 fi
3411
3412 # Disable C++ on systems where it is known to not work.
3413 # For testing, you can override this with --enable-languages=c++.
3414 case ,${enable_languages}, in
3415   *,c++,*)
3416     ;;
3417   *)
3418       case "${target}" in
3419         bpf-*-*)
3420           unsupported_languages="$unsupported_languages c++"
3421           ;;
3422       esac
3423       ;;
3424 esac
3425
3426 # Disable Objc on systems where it is known to not work.
3427 # For testing, you can override this with --enable-languages=objc.
3428 case ,${enable_languages}, in
3429   *,objc,*)
3430     ;;
3431   *)
3432       case "${target}" in
3433         bpf-*-*)
3434           unsupported_languages="$unsupported_languages objc"
3435           ;;
3436       esac
3437       ;;
3438 esac
3439
3440 # Disable D on systems where it is known to not work.
3441 # For testing, you can override this with --enable-languages=d.
3442 case ,${enable_languages}, in
3443   *,d,*)
3444     ;;
3445   *)
3446     case "${target}" in
3447       bpf-*-*)
3448         unsupported_languages="$unsupported_languages d"
3449         ;;
3450     esac
3451     ;;
3452 esac
3453
3454 # Disable libphobos on unsupported systems.
3455 # For testing, you can override this with --enable-libphobos.
3456 if test -d ${srcdir}/libphobos; then
3457     if test x$enable_libphobos = x; then
3458         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3459 $as_echo_n "checking for libphobos support... " >&6; }
3460         if (srcdir=${srcdir}/libphobos; \
3461                 . ${srcdir}/configure.tgt; \
3462                 test "$LIBPHOBOS_SUPPORTED" != "yes")
3463         then
3464             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3466             noconfigdirs="$noconfigdirs target-libphobos"
3467         else
3468             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3469 $as_echo "yes" >&6; }
3470         fi
3471     fi
3472 fi
3473
3474 # Disable Fortran for some systems.
3475 case "${target}" in
3476   mmix-*-*)
3477     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3478     unsupported_languages="$unsupported_languages fortran"
3479     ;;
3480   bpf-*-*)
3481     unsupported_languages="$unsupported_languages fortran"
3482     ;;
3483 esac
3484
3485 # Disable libffi for some systems.
3486 case "${target}" in
3487   powerpc-*-darwin*)
3488     ;;
3489   i[3456789]86-*-darwin*)
3490     ;;
3491   x86_64-*-darwin[912]*)
3492     ;;
3493   *-*-darwin*)
3494     noconfigdirs="$noconfigdirs target-libffi"
3495     ;;
3496   *-*-netware*)
3497     noconfigdirs="$noconfigdirs target-libffi"
3498     ;;
3499   *-*-phoenix*)
3500     noconfigdirs="$noconfigdirs target-libffi"
3501     ;;
3502   *-*-rtems*)
3503     noconfigdirs="$noconfigdirs target-libffi"
3504     ;;
3505   *-*-tpf*)
3506     noconfigdirs="$noconfigdirs target-libffi"
3507     ;;
3508   *-*-uclinux*)
3509     noconfigdirs="$noconfigdirs target-libffi"
3510     ;;
3511   *-*-vxworks*)
3512     noconfigdirs="$noconfigdirs target-libffi"
3513     ;;
3514   aarch64*-*-freebsd*)
3515     noconfigdirs="$noconfigdirs target-libffi"
3516     ;;
3517   alpha*-*-*vms*)
3518     noconfigdirs="$noconfigdirs target-libffi"
3519     ;;
3520   arm*-*-freebsd*)
3521     noconfigdirs="$noconfigdirs target-libffi"
3522     ;;
3523   arm-wince-pe)
3524     noconfigdirs="$noconfigdirs target-libffi"
3525     ;;
3526   arm*-*-symbianelf*)
3527     noconfigdirs="$noconfigdirs target-libffi"
3528     ;;
3529   bpf-*-*)
3530     noconfigdirs="$noconfigdirs target-libffi"
3531     ;;
3532   cris-*-* | crisv32-*-*)
3533     case "${target}" in
3534       *-*-linux*)
3535         ;;
3536       *) # See PR46792 regarding target-libffi.
3537         noconfigdirs="$noconfigdirs target-libffi";;
3538     esac
3539     ;;
3540   hppa*64*-*-hpux*)
3541     noconfigdirs="$noconfigdirs target-libffi"
3542     ;;
3543   hppa*-hp-hpux11*)
3544     ;;
3545   hppa*-*-hpux*)
3546     noconfigdirs="$noconfigdirs target-libffi"
3547     ;;
3548   ia64*-*-*vms*)
3549     noconfigdirs="$noconfigdirs target-libffi"
3550     ;;
3551   i[3456789]86-w64-mingw*)
3552     noconfigdirs="$noconfigdirs target-libffi"
3553     ;;
3554   i[3456789]86-*-mingw*)
3555     noconfigdirs="$noconfigdirs target-libffi"
3556     ;;
3557   x86_64-*-mingw*)
3558     noconfigdirs="$noconfigdirs target-libffi"
3559     ;;
3560   mmix-*-*)
3561     noconfigdirs="$noconfigdirs target-libffi"
3562     ;;
3563   powerpc-*-aix*)
3564     ;;
3565   rs6000-*-aix*)
3566     ;;
3567   ft32-*-*)
3568     noconfigdirs="$noconfigdirs target-libffi"
3569     ;;
3570   *-*-lynxos*)
3571     noconfigdirs="$noconfigdirs target-libffi"
3572     ;;
3573 esac
3574
3575 # Disable the go frontend on systems where it is known to not work. Please keep
3576 # this in sync with contrib/config-list.mk.
3577 case "${target}" in
3578 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3579     unsupported_languages="$unsupported_languages go"
3580     ;;
3581 esac
3582
3583 # Only allow gdbserver on some systems.
3584 if test -d ${srcdir}/gdbserver; then
3585     if test x$enable_gdbserver = x; then
3586         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3587 $as_echo_n "checking for gdbserver support... " >&6; }
3588         if (srcdir=${srcdir}/gdbserver; \
3589                 . ${srcdir}/configure.srv; \
3590                 test -n "$UNSUPPORTED")
3591         then
3592             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3594             noconfigdirs="$noconfigdirs gdbserver"
3595         else
3596             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3597 $as_echo "yes" >&6; }
3598         fi
3599     fi
3600 fi
3601
3602 # Disable libgo for some systems where it is known to not work.
3603 # For testing, you can easily override this with --enable-libgo.
3604 if test x$enable_libgo = x; then
3605     case "${target}" in
3606     *-*-darwin*)
3607         # PR 46986
3608         noconfigdirs="$noconfigdirs target-libgo"
3609         ;;
3610     *-*-cygwin* | *-*-mingw*)
3611         noconfigdirs="$noconfigdirs target-libgo"
3612         ;;
3613     bpf-*-*)
3614         noconfigdirs="$noconfigdirs target-libgo"
3615         ;;
3616     esac
3617 fi
3618
3619 # Default libgloss CPU subdirectory.
3620 libgloss_dir="$target_cpu"
3621
3622 case "${target}" in
3623   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3624     libgloss_dir=wince
3625     ;;
3626   aarch64*-*-* )
3627     libgloss_dir=aarch64
3628     ;;
3629   arm*-*-*)
3630     libgloss_dir=arm
3631     ;;
3632   cris-*-* | crisv32-*-*)
3633     libgloss_dir=cris
3634     ;;
3635   hppa*-*-*)
3636     libgloss_dir=pa
3637     ;;
3638   i[3456789]86-*-*)
3639     libgloss_dir=i386
3640     ;;
3641   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3642     libgloss_dir=m68hc11
3643     ;;
3644   m68*-*-* | fido-*-*)
3645     libgloss_dir=m68k
3646     ;;
3647   mips*-*-*)
3648     libgloss_dir=mips
3649     ;;
3650   powerpc*-*-*)
3651     libgloss_dir=rs6000
3652     ;;
3653   pru-*-*)
3654     libgloss_dir=pru
3655     ;;
3656   sparc*-*-*)
3657     libgloss_dir=sparc
3658     ;;
3659 esac
3660
3661 # Disable newlib and libgloss for various target OSes.
3662 case "${target}" in
3663   alpha*-dec-osf*)
3664     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665     ;;
3666   i[3456789]86-*-linux*)
3667     # This section makes it possible to build newlib natively on linux.
3668     # If we are using a cross compiler then don't configure newlib.
3669     if test x${is_cross_compiler} != xno ; then
3670       noconfigdirs="$noconfigdirs target-newlib"
3671     fi
3672     noconfigdirs="$noconfigdirs target-libgloss"
3673     # If we are not using a cross compiler, do configure newlib.
3674     # Note however, that newlib will only be configured in this situation
3675     # if the --with-newlib option has been given, because otherwise
3676     # 'target-newlib' will appear in skipdirs.
3677     ;;
3678   i[3456789]86-*-rdos*)
3679     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3680     ;;
3681   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3682     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3683     ;;
3684   sparc-*-sunos4*)
3685     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3686     ;;
3687   bpf-*-*)
3688     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689     ;;
3690   *-*-aix*)
3691     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692     ;;
3693   *-*-beos*)
3694     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3695     ;;
3696   *-*-chorusos)
3697     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698     ;;
3699   *-*-dragonfly*)
3700     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701     ;;
3702   *-*-freebsd*)
3703     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704     ;;
3705   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3706     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3707     ;;
3708   *-*-lynxos*)
3709     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710     ;;
3711   *-*-mingw*)
3712     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713     ;;
3714   *-*-netbsd*)
3715     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3716     ;;
3717   *-*-netware*)
3718     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719     ;;
3720   *-*-tpf*)
3721     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722     ;;
3723   *-*-uclinux*)
3724     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725     ;;
3726   *-*-vxworks*)
3727     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728     ;;
3729 esac
3730
3731 case "${target}" in
3732   *-*-chorusos)
3733     ;;
3734   aarch64-*-darwin*)
3735     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3736     noconfigdirs="$noconfigdirs sim target-rda"
3737     ;;
3738   amdgcn*-*-*)
3739     ;;
3740   arm-*-darwin*)
3741     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3742     noconfigdirs="$noconfigdirs sim target-rda"
3743     ;;
3744   powerpc-*-darwin*)
3745     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3746     noconfigdirs="$noconfigdirs sim target-rda"
3747     ;;
3748   i[3456789]86-*-darwin*)
3749     noconfigdirs="$noconfigdirs ld gprof"
3750     noconfigdirs="$noconfigdirs sim target-rda"
3751     ;;
3752   x86_64-*-darwin[912]*)
3753     noconfigdirs="$noconfigdirs ld gas gprof"
3754     noconfigdirs="$noconfigdirs sim target-rda"
3755     ;;
3756   *-*-darwin*)
3757     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3758     noconfigdirs="$noconfigdirs sim target-rda"
3759     ;;
3760   *-*-dragonfly*)
3761     ;;
3762   *-*-freebsd*)
3763     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3764         && ! test -d ${srcdir}/gmp \
3765         && test -f /usr/local/include/gmp.h; then
3766       with_gmp=/usr/local
3767     fi
3768     ;;
3769   *-*-kaos*)
3770     # Remove unsupported stuff on all kaOS configurations.
3771     noconfigdirs="$noconfigdirs target-libgloss"
3772     ;;
3773   *-*-netbsd*)
3774     ;;
3775   *-*-netware*)
3776     ;;
3777   *-*-phoenix*)
3778     noconfigdirs="$noconfigdirs target-libgloss"
3779     ;;
3780   *-*-rtems*)
3781     noconfigdirs="$noconfigdirs target-libgloss"
3782     ;;
3783     # The tpf target doesn't support gdb yet.
3784   *-*-tpf*)
3785     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3786     ;;
3787   *-*-uclinux*)
3788     noconfigdirs="$noconfigdirs target-rda"
3789     ;;
3790   *-*-vxworks*)
3791     ;;
3792   alpha*-dec-osf*)
3793     # ld works, but does not support shared libraries.
3794     # gas doesn't generate exception information.
3795     noconfigdirs="$noconfigdirs gas ld"
3796     ;;
3797   alpha*-*-*vms*)
3798     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3799     ;;
3800   alpha*-*-*)
3801     # newlib is not 64 bit ready
3802     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3803     ;;
3804   bpf-*-*)
3805     noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3806     ;;
3807   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3808     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3809     ;;
3810   arc*-*-*)
3811     noconfigdirs="$noconfigdirs sim"
3812     ;;
3813   arm-*-pe*)
3814     noconfigdirs="$noconfigdirs target-libgloss"
3815     ;;
3816   arm-*-riscix*)
3817     noconfigdirs="$noconfigdirs ld target-libgloss"
3818     ;;
3819   avr-*-*)
3820     if test x${with_avrlibc} != xno; then
3821       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3822     fi
3823     ;;
3824   c4x-*-* | tic4x-*-*)
3825     noconfigdirs="$noconfigdirs target-libgloss"
3826     ;;
3827   tic54x-*-*)
3828     noconfigdirs="$noconfigdirs target-libgloss gdb"
3829     ;;
3830   d10v-*-*)
3831     noconfigdirs="$noconfigdirs target-libgloss"
3832     ;;
3833   d30v-*-*)
3834     noconfigdirs="$noconfigdirs gdb"
3835     ;;
3836   fr30-*-elf*)
3837     noconfigdirs="$noconfigdirs gdb"
3838     ;;
3839   ft32-*-*)
3840     noconfigdirs="$noconfigdirs target-rda gprof"
3841     ;;
3842   moxie-*-*)
3843     noconfigdirs="$noconfigdirs"
3844     ;;
3845   h8300*-*-*)
3846     noconfigdirs="$noconfigdirs target-libgloss"
3847     ;;
3848   h8500-*-*)
3849     noconfigdirs="$noconfigdirs target-libgloss"
3850     ;;
3851   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3852     ;;
3853   hppa*64*-*-hpux*)
3854     noconfigdirs="$noconfigdirs gdb"
3855     ;;
3856   hppa*-*-hpux11*)
3857     noconfigdirs="$noconfigdirs gdb ld"
3858     ;;
3859   hppa*64*-*-linux*)
3860     ;;
3861   hppa*-*-linux*)
3862     ;;
3863   hppa*-*-*elf* | \
3864   hppa*-*-lites* | \
3865   hppa*-*-openbsd* | \
3866   hppa*64*-*-*)
3867     ;;
3868   hppa*-*-pro*)
3869     ;;
3870   hppa*-*-*)
3871     noconfigdirs="$noconfigdirs ld"
3872     ;;
3873   i960-*-*)
3874     noconfigdirs="$noconfigdirs gdb"
3875     ;;
3876   ia64*-*-elf*)
3877     # No gdb support yet.
3878     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3879     ;;
3880   ia64*-**-hpux*)
3881     # No ld support yet.
3882     noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3883     ;;
3884   ia64*-*-*vms*)
3885     # No ld support yet.
3886     noconfigdirs="$noconfigdirs libgui itcl ld"
3887     ;;
3888   i[3456789]86-w64-mingw*)
3889     ;;
3890   i[3456789]86-*-mingw*)
3891     target_configdirs="$target_configdirs target-winsup"
3892     ;;
3893   *-*-cygwin*)
3894     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3895     noconfigdirs="$noconfigdirs target-libgloss"
3896     # always build newlib if winsup directory is present.
3897     if test -d "$srcdir/winsup/cygwin"; then
3898       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3899     elif test -d "$srcdir/newlib"; then
3900       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3901     fi
3902     ;;
3903   i[3456789]86-*-pe)
3904     noconfigdirs="$noconfigdirs target-libgloss"
3905     ;;
3906   i[3456789]86-*-sco3.2v5*)
3907     # The linker does not yet know about weak symbols in COFF,
3908     # and is not configured to handle mixed ELF and COFF.
3909     noconfigdirs="$noconfigdirs ld target-libgloss"
3910     ;;
3911   i[3456789]86-*-sco*)
3912     noconfigdirs="$noconfigdirs gprof target-libgloss"
3913     ;;
3914   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3915     noconfigdirs="$noconfigdirs target-libgloss"
3916     ;;
3917   i[3456789]86-*-sysv4*)
3918     noconfigdirs="$noconfigdirs target-libgloss"
3919     ;;
3920   i[3456789]86-*-beos*)
3921     noconfigdirs="$noconfigdirs gdb"
3922     ;;
3923   i[3456789]86-*-rdos*)
3924     noconfigdirs="$noconfigdirs gdb"
3925     ;;
3926   mmix-*-*)
3927     noconfigdirs="$noconfigdirs gdb"
3928     ;;
3929   mt-*-*)
3930     noconfigdirs="$noconfigdirs sim"
3931     ;;
3932   nfp-*-*)
3933     noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3934     noconfigdirs="$noconfigdirs $target_libraries"
3935     ;;
3936   pdp11-*-*)
3937     noconfigdirs="$noconfigdirs gdb gprof"
3938     ;;
3939   powerpc-*-aix*)
3940     # copied from rs6000-*-* entry
3941     noconfigdirs="$noconfigdirs gprof"
3942     ;;
3943   powerpc*-*-winnt* | powerpc*-*-pe*)
3944     target_configdirs="$target_configdirs target-winsup"
3945     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3946     # always build newlib.
3947     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3948     ;;
3949     # This is temporary until we can link against shared libraries
3950   powerpcle-*-solaris*)
3951     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3952     ;;
3953   powerpc-*-beos*)
3954     noconfigdirs="$noconfigdirs gdb"
3955     ;;
3956   rs6000-*-lynxos*)
3957     noconfigdirs="$noconfigdirs gprof"
3958     ;;
3959   rs6000-*-aix*)
3960     noconfigdirs="$noconfigdirs gprof"
3961     ;;
3962   rs6000-*-*)
3963     noconfigdirs="$noconfigdirs gprof"
3964     ;;
3965   m68k-apollo-*)
3966     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3967     ;;
3968   microblaze*)
3969     noconfigdirs="$noconfigdirs gprof"
3970     ;;
3971   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3972     if test x$with_newlib = xyes; then
3973       noconfigdirs="$noconfigdirs gprof"
3974     fi
3975     ;;
3976   mips*-*-irix5*)
3977     noconfigdirs="$noconfigdirs gprof target-libgloss"
3978     ;;
3979   mips*-*-irix6*)
3980     noconfigdirs="$noconfigdirs gprof target-libgloss"
3981     ;;
3982   mips*-*-bsd*)
3983     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3984     ;;
3985   mips*-*-linux*)
3986     ;;
3987   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3988   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3989     noconfigdirs="$noconfigdirs ld gas gprof"
3990     ;;
3991   mips*-*-*)
3992     noconfigdirs="$noconfigdirs gprof"
3993     ;;
3994   nvptx*-*-*)
3995     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3996     ;;
3997   sh-*-*)
3998     case "${target}" in
3999       sh*-*-elf)
4000          ;;
4001       *)
4002          noconfigdirs="$noconfigdirs target-libgloss" ;;
4003     esac
4004     ;;
4005   sparc-*-sunos4*)
4006     if test x${is_cross_compiler} = xno ; then
4007            use_gnu_ld=no
4008     fi
4009     ;;
4010   tic6x-*-*)
4011     noconfigdirs="$noconfigdirs sim"
4012     ;;
4013   tilepro*-*-* | tilegx*-*-*)
4014     noconfigdirs="$noconfigdirs sim"
4015     ;;
4016   v810-*-*)
4017     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4018     ;;
4019   vax-*-*)
4020     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4021     ;;
4022   wasm32-*-*)
4023     noconfigdirs="$noconfigdirs ld"
4024     ;;
4025 esac
4026
4027 # If we aren't building newlib, then don't build libgloss, since libgloss
4028 # depends upon some newlib header files.
4029 case "${noconfigdirs}" in
4030   *target-libgloss*) ;;
4031   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4032 esac
4033
4034 # Work in distributions that contain no compiler tools, like Autoconf.
4035 host_makefile_frag=/dev/null
4036 if test -d ${srcdir}/config ; then
4037 case "${host}" in
4038   i[3456789]86-*-msdosdjgpp*)
4039     host_makefile_frag="config/mh-djgpp"
4040     ;;
4041   *-cygwin*)
4042
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4044 $as_echo_n "checking to see if cat works as expected... " >&6; }
4045 echo a >cygwin-cat-check
4046 if test `cat cygwin-cat-check` = a ; then
4047   rm cygwin-cat-check
4048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4049 $as_echo "yes" >&6; }
4050 else
4051   rm cygwin-cat-check
4052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4054   as_fn_error $? "The cat command does not ignore carriage return characters.
4055   Please either mount the build directory in binary mode or run the following
4056   commands before running any configure script:
4057 set -o igncr
4058 export SHELLOPTS
4059   " "$LINENO" 5
4060 fi
4061
4062     host_makefile_frag="config/mh-cygwin"
4063     ;;
4064   *-mingw*)
4065     host_makefile_frag="config/mh-mingw"
4066     ;;
4067   alpha*-linux*)
4068     host_makefile_frag="config/mh-alpha-linux"
4069     ;;
4070   hppa*-hp-hpux10*)
4071     host_makefile_frag="config/mh-pa-hpux10"
4072     ;;
4073   hppa*-hp-hpux*)
4074     host_makefile_frag="config/mh-pa"
4075     ;;
4076   hppa*-*)
4077     host_makefile_frag="config/mh-pa"
4078     ;;
4079   i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4080     host_makefile_frag="config/mh-darwin"
4081     ;;
4082   powerpc-*-aix*)
4083     host_makefile_frag="config/mh-ppc-aix"
4084     ;;
4085   rs6000-*-aix*)
4086     host_makefile_frag="config/mh-ppc-aix"
4087     ;;
4088 esac
4089 fi
4090
4091 if test "${build}" != "${host}" ; then
4092   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4093   AS_FOR_BUILD=${AS_FOR_BUILD-as}
4094   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4095   CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CPP)}"
4096   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4097   DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4098   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4099   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4100   GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4101   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4102   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4103   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4104   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4105   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4106   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4107 else
4108   AR_FOR_BUILD="\$(AR)"
4109   AS_FOR_BUILD="\$(AS)"
4110   CC_FOR_BUILD="\$(CC)"
4111   CXX_FOR_BUILD="\$(CXX)"
4112   DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4113   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4114   GOC_FOR_BUILD="\$(GOC)"
4115   GDC_FOR_BUILD="\$(GDC)"
4116   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4117   LD_FOR_BUILD="\$(LD)"
4118   NM_FOR_BUILD="\$(NM)"
4119   RANLIB_FOR_BUILD="\$(RANLIB)"
4120   WINDRES_FOR_BUILD="\$(WINDRES)"
4121   WINDMC_FOR_BUILD="\$(WINDMC)"
4122 fi
4123
4124 ac_ext=c
4125 ac_cpp='$CPP $CPPFLAGS'
4126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4129 if test -n "$ac_tool_prefix"; then
4130   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4131 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if ${ac_cv_prog_CC+:} false; then :
4135   $as_echo_n "(cached) " >&6
4136 else
4137   if test -n "$CC"; then
4138   ac_cv_prog_CC="$CC" # Let the user override the test.
4139 else
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4142 do
4143   IFS=$as_save_IFS
4144   test -z "$as_dir" && as_dir=.
4145     for ac_exec_ext in '' $ac_executable_extensions; do
4146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4149     break 2
4150   fi
4151 done
4152   done
4153 IFS=$as_save_IFS
4154
4155 fi
4156 fi
4157 CC=$ac_cv_prog_CC
4158 if test -n "$CC"; then
4159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4160 $as_echo "$CC" >&6; }
4161 else
4162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 $as_echo "no" >&6; }
4164 fi
4165
4166
4167 fi
4168 if test -z "$ac_cv_prog_CC"; then
4169   ac_ct_CC=$CC
4170   # Extract the first word of "gcc", so it can be a program name with args.
4171 set dummy gcc; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4175   $as_echo_n "(cached) " >&6
4176 else
4177   if test -n "$ac_ct_CC"; then
4178   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183   IFS=$as_save_IFS
4184   test -z "$as_dir" && as_dir=.
4185     for ac_exec_ext in '' $ac_executable_extensions; do
4186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187     ac_cv_prog_ac_ct_CC="gcc"
4188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189     break 2
4190   fi
4191 done
4192   done
4193 IFS=$as_save_IFS
4194
4195 fi
4196 fi
4197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4198 if test -n "$ac_ct_CC"; then
4199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4200 $as_echo "$ac_ct_CC" >&6; }
4201 else
4202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4204 fi
4205
4206   if test "x$ac_ct_CC" = x; then
4207     CC=""
4208   else
4209     case $cross_compiling:$ac_tool_warned in
4210 yes:)
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4213 ac_tool_warned=yes ;;
4214 esac
4215     CC=$ac_ct_CC
4216   fi
4217 else
4218   CC="$ac_cv_prog_CC"
4219 fi
4220
4221 if test -z "$CC"; then
4222           if test -n "$ac_tool_prefix"; then
4223     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4224 set dummy ${ac_tool_prefix}cc; ac_word=$2
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if ${ac_cv_prog_CC+:} false; then :
4228   $as_echo_n "(cached) " >&6
4229 else
4230   if test -n "$CC"; then
4231   ac_cv_prog_CC="$CC" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4235 do
4236   IFS=$as_save_IFS
4237   test -z "$as_dir" && as_dir=.
4238     for ac_exec_ext in '' $ac_executable_extensions; do
4239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240     ac_cv_prog_CC="${ac_tool_prefix}cc"
4241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242     break 2
4243   fi
4244 done
4245   done
4246 IFS=$as_save_IFS
4247
4248 fi
4249 fi
4250 CC=$ac_cv_prog_CC
4251 if test -n "$CC"; then
4252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4253 $as_echo "$CC" >&6; }
4254 else
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4257 fi
4258
4259
4260   fi
4261 fi
4262 if test -z "$CC"; then
4263   # Extract the first word of "cc", so it can be a program name with args.
4264 set dummy cc; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if ${ac_cv_prog_CC+:} false; then :
4268   $as_echo_n "(cached) " >&6
4269 else
4270   if test -n "$CC"; then
4271   ac_cv_prog_CC="$CC" # Let the user override the test.
4272 else
4273   ac_prog_rejected=no
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4276 do
4277   IFS=$as_save_IFS
4278   test -z "$as_dir" && as_dir=.
4279     for ac_exec_ext in '' $ac_executable_extensions; do
4280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4281     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4282        ac_prog_rejected=yes
4283        continue
4284      fi
4285     ac_cv_prog_CC="cc"
4286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287     break 2
4288   fi
4289 done
4290   done
4291 IFS=$as_save_IFS
4292
4293 if test $ac_prog_rejected = yes; then
4294   # We found a bogon in the path, so make sure we never use it.
4295   set dummy $ac_cv_prog_CC
4296   shift
4297   if test $# != 0; then
4298     # We chose a different compiler from the bogus one.
4299     # However, it has the same basename, so the bogon will be chosen
4300     # first if we set CC to just the basename; use the full file name.
4301     shift
4302     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4303   fi
4304 fi
4305 fi
4306 fi
4307 CC=$ac_cv_prog_CC
4308 if test -n "$CC"; then
4309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4310 $as_echo "$CC" >&6; }
4311 else
4312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313 $as_echo "no" >&6; }
4314 fi
4315
4316
4317 fi
4318 if test -z "$CC"; then
4319   if test -n "$ac_tool_prefix"; then
4320   for ac_prog in cl.exe
4321   do
4322     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if ${ac_cv_prog_CC+:} false; then :
4327   $as_echo_n "(cached) " >&6
4328 else
4329   if test -n "$CC"; then
4330   ac_cv_prog_CC="$CC" # Let the user override the test.
4331 else
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4334 do
4335   IFS=$as_save_IFS
4336   test -z "$as_dir" && as_dir=.
4337     for ac_exec_ext in '' $ac_executable_extensions; do
4338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4339     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341     break 2
4342   fi
4343 done
4344   done
4345 IFS=$as_save_IFS
4346
4347 fi
4348 fi
4349 CC=$ac_cv_prog_CC
4350 if test -n "$CC"; then
4351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4352 $as_echo "$CC" >&6; }
4353 else
4354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4356 fi
4357
4358
4359     test -n "$CC" && break
4360   done
4361 fi
4362 if test -z "$CC"; then
4363   ac_ct_CC=$CC
4364   for ac_prog in cl.exe
4365 do
4366   # Extract the first word of "$ac_prog", so it can be a program name with args.
4367 set dummy $ac_prog; ac_word=$2
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369 $as_echo_n "checking for $ac_word... " >&6; }
4370 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4371   $as_echo_n "(cached) " >&6
4372 else
4373   if test -n "$ac_ct_CC"; then
4374   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4375 else
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4378 do
4379   IFS=$as_save_IFS
4380   test -z "$as_dir" && as_dir=.
4381     for ac_exec_ext in '' $ac_executable_extensions; do
4382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4383     ac_cv_prog_ac_ct_CC="$ac_prog"
4384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385     break 2
4386   fi
4387 done
4388   done
4389 IFS=$as_save_IFS
4390
4391 fi
4392 fi
4393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4394 if test -n "$ac_ct_CC"; then
4395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4396 $as_echo "$ac_ct_CC" >&6; }
4397 else
4398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "no" >&6; }
4400 fi
4401
4402
4403   test -n "$ac_ct_CC" && break
4404 done
4405
4406   if test "x$ac_ct_CC" = x; then
4407     CC=""
4408   else
4409     case $cross_compiling:$ac_tool_warned in
4410 yes:)
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4413 ac_tool_warned=yes ;;
4414 esac
4415     CC=$ac_ct_CC
4416   fi
4417 fi
4418
4419 fi
4420
4421
4422 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4424 as_fn_error $? "no acceptable C compiler found in \$PATH
4425 See \`config.log' for more details" "$LINENO" 5; }
4426
4427 # Provide some information about the compiler.
4428 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4429 set X $ac_compile
4430 ac_compiler=$2
4431 for ac_option in --version -v -V -qversion; do
4432   { { ac_try="$ac_compiler $ac_option >&5"
4433 case "(($ac_try" in
4434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435   *) ac_try_echo=$ac_try;;
4436 esac
4437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4438 $as_echo "$ac_try_echo"; } >&5
4439   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4440   ac_status=$?
4441   if test -s conftest.err; then
4442     sed '10a\
4443 ... rest of stderr output deleted ...
4444          10q' conftest.err >conftest.er1
4445     cat conftest.er1 >&5
4446   fi
4447   rm -f conftest.er1 conftest.err
4448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449   test $ac_status = 0; }
4450 done
4451
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h.  */
4454
4455 int
4456 main ()
4457 {
4458
4459   ;
4460   return 0;
4461 }
4462 _ACEOF
4463 ac_clean_files_save=$ac_clean_files
4464 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4465 # Try to create an executable without -o first, disregard a.out.
4466 # It will help us diagnose broken compilers, and finding out an intuition
4467 # of exeext.
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4469 $as_echo_n "checking whether the C compiler works... " >&6; }
4470 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4471
4472 # The possible output files:
4473 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4474
4475 ac_rmfiles=
4476 for ac_file in $ac_files
4477 do
4478   case $ac_file in
4479     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4480     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4481   esac
4482 done
4483 rm -f $ac_rmfiles
4484
4485 if { { ac_try="$ac_link_default"
4486 case "(($ac_try" in
4487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488   *) ac_try_echo=$ac_try;;
4489 esac
4490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4491 $as_echo "$ac_try_echo"; } >&5
4492   (eval "$ac_link_default") 2>&5
4493   ac_status=$?
4494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4495   test $ac_status = 0; }; then :
4496   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4497 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4498 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4499 # so that the user can short-circuit this test for compilers unknown to
4500 # Autoconf.
4501 for ac_file in $ac_files ''
4502 do
4503   test -f "$ac_file" || continue
4504   case $ac_file in
4505     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4506         ;;
4507     [ab].out )
4508         # We found the default executable, but exeext='' is most
4509         # certainly right.
4510         break;;
4511     *.* )
4512         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4513         then :; else
4514            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4515         fi
4516         # We set ac_cv_exeext here because the later test for it is not
4517         # safe: cross compilers may not add the suffix if given an `-o'
4518         # argument, so we may need to know it at that point already.
4519         # Even if this section looks crufty: it has the advantage of
4520         # actually working.
4521         break;;
4522     * )
4523         break;;
4524   esac
4525 done
4526 test "$ac_cv_exeext" = no && ac_cv_exeext=
4527
4528 else
4529   ac_file=''
4530 fi
4531 if test -z "$ac_file"; then :
4532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4534 $as_echo "$as_me: failed program was:" >&5
4535 sed 's/^/| /' conftest.$ac_ext >&5
4536
4537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4539 as_fn_error 77 "C compiler cannot create executables
4540 See \`config.log' for more details" "$LINENO" 5; }
4541 else
4542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4543 $as_echo "yes" >&6; }
4544 fi
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4546 $as_echo_n "checking for C compiler default output file name... " >&6; }
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4548 $as_echo "$ac_file" >&6; }
4549 ac_exeext=$ac_cv_exeext
4550
4551 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4552 ac_clean_files=$ac_clean_files_save
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4554 $as_echo_n "checking for suffix of executables... " >&6; }
4555 if { { ac_try="$ac_link"
4556 case "(($ac_try" in
4557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558   *) ac_try_echo=$ac_try;;
4559 esac
4560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4561 $as_echo "$ac_try_echo"; } >&5
4562   (eval "$ac_link") 2>&5
4563   ac_status=$?
4564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4565   test $ac_status = 0; }; then :
4566   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4567 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4568 # work properly (i.e., refer to `conftest.exe'), while it won't with
4569 # `rm'.
4570 for ac_file in conftest.exe conftest conftest.*; do
4571   test -f "$ac_file" || continue
4572   case $ac_file in
4573     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4574     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4575           break;;
4576     * ) break;;
4577   esac
4578 done
4579 else
4580   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4582 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4583 See \`config.log' for more details" "$LINENO" 5; }
4584 fi
4585 rm -f conftest conftest$ac_cv_exeext
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4587 $as_echo "$ac_cv_exeext" >&6; }
4588
4589 rm -f conftest.$ac_ext
4590 EXEEXT=$ac_cv_exeext
4591 ac_exeext=$EXEEXT
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h.  */
4594 #include <stdio.h>
4595 int
4596 main ()
4597 {
4598 FILE *f = fopen ("conftest.out", "w");
4599  return ferror (f) || fclose (f) != 0;
4600
4601   ;
4602   return 0;
4603 }
4604 _ACEOF
4605 ac_clean_files="$ac_clean_files conftest.out"
4606 # Check that the compiler produces executables we can run.  If not, either
4607 # the compiler is broken, or we cross compile.
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4609 $as_echo_n "checking whether we are cross compiling... " >&6; }
4610 if test "$cross_compiling" != yes; then
4611   { { ac_try="$ac_link"
4612 case "(($ac_try" in
4613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614   *) ac_try_echo=$ac_try;;
4615 esac
4616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4617 $as_echo "$ac_try_echo"; } >&5
4618   (eval "$ac_link") 2>&5
4619   ac_status=$?
4620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4621   test $ac_status = 0; }
4622   if { ac_try='./conftest$ac_cv_exeext'
4623   { { case "(($ac_try" in
4624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625   *) ac_try_echo=$ac_try;;
4626 esac
4627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628 $as_echo "$ac_try_echo"; } >&5
4629   (eval "$ac_try") 2>&5
4630   ac_status=$?
4631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632   test $ac_status = 0; }; }; then
4633     cross_compiling=no
4634   else
4635     if test "$cross_compiling" = maybe; then
4636         cross_compiling=yes
4637     else
4638         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4640 as_fn_error $? "cannot run C compiled programs.
4641 If you meant to cross compile, use \`--host'.
4642 See \`config.log' for more details" "$LINENO" 5; }
4643     fi
4644   fi
4645 fi
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4647 $as_echo "$cross_compiling" >&6; }
4648
4649 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4650 ac_clean_files=$ac_clean_files_save
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4652 $as_echo_n "checking for suffix of object files... " >&6; }
4653 if ${ac_cv_objext+:} false; then :
4654   $as_echo_n "(cached) " >&6
4655 else
4656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h.  */
4658
4659 int
4660 main ()
4661 {
4662
4663   ;
4664   return 0;
4665 }
4666 _ACEOF
4667 rm -f conftest.o conftest.obj
4668 if { { ac_try="$ac_compile"
4669 case "(($ac_try" in
4670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671   *) ac_try_echo=$ac_try;;
4672 esac
4673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4674 $as_echo "$ac_try_echo"; } >&5
4675   (eval "$ac_compile") 2>&5
4676   ac_status=$?
4677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4678   test $ac_status = 0; }; then :
4679   for ac_file in conftest.o conftest.obj conftest.*; do
4680   test -f "$ac_file" || continue;
4681   case $ac_file in
4682     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4683     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4684        break;;
4685   esac
4686 done
4687 else
4688   $as_echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4690
4691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4693 as_fn_error $? "cannot compute suffix of object files: cannot compile
4694 See \`config.log' for more details" "$LINENO" 5; }
4695 fi
4696 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4699 $as_echo "$ac_cv_objext" >&6; }
4700 OBJEXT=$ac_cv_objext
4701 ac_objext=$OBJEXT
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4703 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4704 if ${ac_cv_c_compiler_gnu+:} false; then :
4705   $as_echo_n "(cached) " >&6
4706 else
4707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h.  */
4709
4710 int
4711 main ()
4712 {
4713 #ifndef __GNUC__
4714        choke me
4715 #endif
4716
4717   ;
4718   return 0;
4719 }
4720 _ACEOF
4721 if ac_fn_c_try_compile "$LINENO"; then :
4722   ac_compiler_gnu=yes
4723 else
4724   ac_compiler_gnu=no
4725 fi
4726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4728
4729 fi
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4731 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4732 if test $ac_compiler_gnu = yes; then
4733   GCC=yes
4734 else
4735   GCC=
4736 fi
4737 ac_test_CFLAGS=${CFLAGS+set}
4738 ac_save_CFLAGS=$CFLAGS
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4740 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4741 if ${ac_cv_prog_cc_g+:} false; then :
4742   $as_echo_n "(cached) " >&6
4743 else
4744   ac_save_c_werror_flag=$ac_c_werror_flag
4745    ac_c_werror_flag=yes
4746    ac_cv_prog_cc_g=no
4747    CFLAGS="-g"
4748    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h.  */
4750
4751 int
4752 main ()
4753 {
4754
4755   ;
4756   return 0;
4757 }
4758 _ACEOF
4759 if ac_fn_c_try_compile "$LINENO"; then :
4760   ac_cv_prog_cc_g=yes
4761 else
4762   CFLAGS=""
4763       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h.  */
4765
4766 int
4767 main ()
4768 {
4769
4770   ;
4771   return 0;
4772 }
4773 _ACEOF
4774 if ac_fn_c_try_compile "$LINENO"; then :
4775
4776 else
4777   ac_c_werror_flag=$ac_save_c_werror_flag
4778          CFLAGS="-g"
4779          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h.  */
4781
4782 int
4783 main ()
4784 {
4785
4786   ;
4787   return 0;
4788 }
4789 _ACEOF
4790 if ac_fn_c_try_compile "$LINENO"; then :
4791   ac_cv_prog_cc_g=yes
4792 fi
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 fi
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 fi
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798    ac_c_werror_flag=$ac_save_c_werror_flag
4799 fi
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4801 $as_echo "$ac_cv_prog_cc_g" >&6; }
4802 if test "$ac_test_CFLAGS" = set; then
4803   CFLAGS=$ac_save_CFLAGS
4804 elif test $ac_cv_prog_cc_g = yes; then
4805   if test "$GCC" = yes; then
4806     CFLAGS="-g -O2"
4807   else
4808     CFLAGS="-g"
4809   fi
4810 else
4811   if test "$GCC" = yes; then
4812     CFLAGS="-O2"
4813   else
4814     CFLAGS=
4815   fi
4816 fi
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4818 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4819 if ${ac_cv_prog_cc_c89+:} false; then :
4820   $as_echo_n "(cached) " >&6
4821 else
4822   ac_cv_prog_cc_c89=no
4823 ac_save_CC=$CC
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h.  */
4826 #include <stdarg.h>
4827 #include <stdio.h>
4828 struct stat;
4829 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4830 struct buf { int x; };
4831 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4832 static char *e (p, i)
4833      char **p;
4834      int i;
4835 {
4836   return p[i];
4837 }
4838 static char *f (char * (*g) (char **, int), char **p, ...)
4839 {
4840   char *s;
4841   va_list v;
4842   va_start (v,p);
4843   s = g (p, va_arg (v,int));
4844   va_end (v);
4845   return s;
4846 }
4847
4848 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4849    function prototypes and stuff, but not '\xHH' hex character constants.
4850    These don't provoke an error unfortunately, instead are silently treated
4851    as 'x'.  The following induces an error, until -std is added to get
4852    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4853    array size at least.  It's necessary to write '\x00'==0 to get something
4854    that's true only with -std.  */
4855 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4856
4857 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4858    inside strings and character constants.  */
4859 #define FOO(x) 'x'
4860 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4861
4862 int test (int i, double x);
4863 struct s1 {int (*f) (int a);};
4864 struct s2 {int (*f) (double a);};
4865 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4866 int argc;
4867 char **argv;
4868 int
4869 main ()
4870 {
4871 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4872   ;
4873   return 0;
4874 }
4875 _ACEOF
4876 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4877         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4878 do
4879   CC="$ac_save_CC $ac_arg"
4880   if ac_fn_c_try_compile "$LINENO"; then :
4881   ac_cv_prog_cc_c89=$ac_arg
4882 fi
4883 rm -f core conftest.err conftest.$ac_objext
4884   test "x$ac_cv_prog_cc_c89" != "xno" && break
4885 done
4886 rm -f conftest.$ac_ext
4887 CC=$ac_save_CC
4888
4889 fi
4890 # AC_CACHE_VAL
4891 case "x$ac_cv_prog_cc_c89" in
4892   x)
4893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4894 $as_echo "none needed" >&6; } ;;
4895   xno)
4896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4897 $as_echo "unsupported" >&6; } ;;
4898   *)
4899     CC="$CC $ac_cv_prog_cc_c89"
4900     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4901 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4902 esac
4903 if test "x$ac_cv_prog_cc_c89" != xno; then :
4904
4905 fi
4906
4907 ac_ext=c
4908 ac_cpp='$CPP $CPPFLAGS'
4909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4912
4913    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4914 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4915 if ${ac_cv_prog_cc_c99+:} false; then :
4916   $as_echo_n "(cached) " >&6
4917 else
4918   ac_cv_prog_cc_c99=no
4919 ac_save_CC=$CC
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h.  */
4922 #include <stdarg.h>
4923 #include <stdbool.h>
4924 #include <stdlib.h>
4925 #include <wchar.h>
4926 #include <stdio.h>
4927
4928 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4929 #define debug(...) fprintf (stderr, __VA_ARGS__)
4930 #define showlist(...) puts (#__VA_ARGS__)
4931 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4932 static void
4933 test_varargs_macros (void)
4934 {
4935   int x = 1234;
4936   int y = 5678;
4937   debug ("Flag");
4938   debug ("X = %d\n", x);
4939   showlist (The first, second, and third items.);
4940   report (x>y, "x is %d but y is %d", x, y);
4941 }
4942
4943 // Check long long types.
4944 #define BIG64 18446744073709551615ull
4945 #define BIG32 4294967295ul
4946 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4947 #if !BIG_OK
4948   your preprocessor is broken;
4949 #endif
4950 #if BIG_OK
4951 #else
4952   your preprocessor is broken;
4953 #endif
4954 static long long int bignum = -9223372036854775807LL;
4955 static unsigned long long int ubignum = BIG64;
4956
4957 struct incomplete_array
4958 {
4959   int datasize;
4960   double data[];
4961 };
4962
4963 struct named_init {
4964   int number;
4965   const wchar_t *name;
4966   double average;
4967 };
4968
4969 typedef const char *ccp;
4970
4971 static inline int
4972 test_restrict (ccp restrict text)
4973 {
4974   // See if C++-style comments work.
4975   // Iterate through items via the restricted pointer.
4976   // Also check for declarations in for loops.
4977   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4978     continue;
4979   return 0;
4980 }
4981
4982 // Check varargs and va_copy.
4983 static void
4984 test_varargs (const char *format, ...)
4985 {
4986   va_list args;
4987   va_start (args, format);
4988   va_list args_copy;
4989   va_copy (args_copy, args);
4990
4991   const char *str;
4992   int number;
4993   float fnumber;
4994
4995   while (*format)
4996     {
4997       switch (*format++)
4998         {
4999         case 's': // string
5000           str = va_arg (args_copy, const char *);
5001           break;
5002         case 'd': // int
5003           number = va_arg (args_copy, int);
5004           break;
5005         case 'f': // float
5006           fnumber = va_arg (args_copy, double);
5007           break;
5008         default:
5009           break;
5010         }
5011     }
5012   va_end (args_copy);
5013   va_end (args);
5014 }
5015
5016 int
5017 main ()
5018 {
5019
5020   // Check bool.
5021   _Bool success = false;
5022
5023   // Check restrict.
5024   if (test_restrict ("String literal") == 0)
5025     success = true;
5026   char *restrict newvar = "Another string";
5027
5028   // Check varargs.
5029   test_varargs ("s, d' f .", "string", 65, 34.234);
5030   test_varargs_macros ();
5031
5032   // Check flexible array members.
5033   struct incomplete_array *ia =
5034     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5035   ia->datasize = 10;
5036   for (int i = 0; i < ia->datasize; ++i)
5037     ia->data[i] = i * 1.234;
5038
5039   // Check named initializers.
5040   struct named_init ni = {
5041     .number = 34,
5042     .name = L"Test wide string",
5043     .average = 543.34343,
5044   };
5045
5046   ni.number = 58;
5047
5048   int dynamic_array[ni.number];
5049   dynamic_array[ni.number - 1] = 543;
5050
5051   // work around unused variable warnings
5052   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5053           || dynamic_array[ni.number - 1] != 543);
5054
5055   ;
5056   return 0;
5057 }
5058 _ACEOF
5059 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5060 do
5061   CC="$ac_save_CC $ac_arg"
5062   if ac_fn_c_try_compile "$LINENO"; then :
5063   ac_cv_prog_cc_c99=$ac_arg
5064 fi
5065 rm -f core conftest.err conftest.$ac_objext
5066   test "x$ac_cv_prog_cc_c99" != "xno" && break
5067 done
5068 rm -f conftest.$ac_ext
5069 CC=$ac_save_CC
5070
5071 fi
5072 # AC_CACHE_VAL
5073 case "x$ac_cv_prog_cc_c99" in
5074   x)
5075     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5076 $as_echo "none needed" >&6; } ;;
5077   xno)
5078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5079 $as_echo "unsupported" >&6; } ;;
5080   *)
5081     CC="$CC $ac_cv_prog_cc_c99"
5082     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5083 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5084 esac
5085 if test "x$ac_cv_prog_cc_c99" != xno; then :
5086
5087 fi
5088
5089
5090 ac_ext=cpp
5091 ac_cpp='$CXXCPP $CPPFLAGS'
5092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5095 if test -z "$CXX"; then
5096   if test -n "$CCC"; then
5097     CXX=$CCC
5098   else
5099     if test -n "$ac_tool_prefix"; then
5100   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5101   do
5102     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105 $as_echo_n "checking for $ac_word... " >&6; }
5106 if ${ac_cv_prog_CXX+:} false; then :
5107   $as_echo_n "(cached) " >&6
5108 else
5109   if test -n "$CXX"; then
5110   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5111 else
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5114 do
5115   IFS=$as_save_IFS
5116   test -z "$as_dir" && as_dir=.
5117     for ac_exec_ext in '' $ac_executable_extensions; do
5118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5119     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121     break 2
5122   fi
5123 done
5124   done
5125 IFS=$as_save_IFS
5126
5127 fi
5128 fi
5129 CXX=$ac_cv_prog_CXX
5130 if test -n "$CXX"; then
5131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5132 $as_echo "$CXX" >&6; }
5133 else
5134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5136 fi
5137
5138
5139     test -n "$CXX" && break
5140   done
5141 fi
5142 if test -z "$CXX"; then
5143   ac_ct_CXX=$CXX
5144   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5145 do
5146   # Extract the first word of "$ac_prog", so it can be a program name with args.
5147 set dummy $ac_prog; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5151   $as_echo_n "(cached) " >&6
5152 else
5153   if test -n "$ac_ct_CXX"; then
5154   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159   IFS=$as_save_IFS
5160   test -z "$as_dir" && as_dir=.
5161     for ac_exec_ext in '' $ac_executable_extensions; do
5162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163     ac_cv_prog_ac_ct_CXX="$ac_prog"
5164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165     break 2
5166   fi
5167 done
5168   done
5169 IFS=$as_save_IFS
5170
5171 fi
5172 fi
5173 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5174 if test -n "$ac_ct_CXX"; then
5175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5176 $as_echo "$ac_ct_CXX" >&6; }
5177 else
5178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5180 fi
5181
5182
5183   test -n "$ac_ct_CXX" && break
5184 done
5185
5186   if test "x$ac_ct_CXX" = x; then
5187     CXX="g++"
5188   else
5189     case $cross_compiling:$ac_tool_warned in
5190 yes:)
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5193 ac_tool_warned=yes ;;
5194 esac
5195     CXX=$ac_ct_CXX
5196   fi
5197 fi
5198
5199   fi
5200 fi
5201 # Provide some information about the compiler.
5202 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5203 set X $ac_compile
5204 ac_compiler=$2
5205 for ac_option in --version -v -V -qversion; do
5206   { { ac_try="$ac_compiler $ac_option >&5"
5207 case "(($ac_try" in
5208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209   *) ac_try_echo=$ac_try;;
5210 esac
5211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5212 $as_echo "$ac_try_echo"; } >&5
5213   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5214   ac_status=$?
5215   if test -s conftest.err; then
5216     sed '10a\
5217 ... rest of stderr output deleted ...
5218          10q' conftest.err >conftest.er1
5219     cat conftest.er1 >&5
5220   fi
5221   rm -f conftest.er1 conftest.err
5222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5223   test $ac_status = 0; }
5224 done
5225
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5227 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5228 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5229   $as_echo_n "(cached) " >&6
5230 else
5231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h.  */
5233
5234 int
5235 main ()
5236 {
5237 #ifndef __GNUC__
5238        choke me
5239 #endif
5240
5241   ;
5242   return 0;
5243 }
5244 _ACEOF
5245 if ac_fn_cxx_try_compile "$LINENO"; then :
5246   ac_compiler_gnu=yes
5247 else
5248   ac_compiler_gnu=no
5249 fi
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5252
5253 fi
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5255 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5256 if test $ac_compiler_gnu = yes; then
5257   GXX=yes
5258 else
5259   GXX=
5260 fi
5261 ac_test_CXXFLAGS=${CXXFLAGS+set}
5262 ac_save_CXXFLAGS=$CXXFLAGS
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5264 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5265 if ${ac_cv_prog_cxx_g+:} false; then :
5266   $as_echo_n "(cached) " >&6
5267 else
5268   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5269    ac_cxx_werror_flag=yes
5270    ac_cv_prog_cxx_g=no
5271    CXXFLAGS="-g"
5272    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h.  */
5274
5275 int
5276 main ()
5277 {
5278
5279   ;
5280   return 0;
5281 }
5282 _ACEOF
5283 if ac_fn_cxx_try_compile "$LINENO"; then :
5284   ac_cv_prog_cxx_g=yes
5285 else
5286   CXXFLAGS=""
5287       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h.  */
5289
5290 int
5291 main ()
5292 {
5293
5294   ;
5295   return 0;
5296 }
5297 _ACEOF
5298 if ac_fn_cxx_try_compile "$LINENO"; then :
5299
5300 else
5301   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5302          CXXFLAGS="-g"
5303          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h.  */
5305
5306 int
5307 main ()
5308 {
5309
5310   ;
5311   return 0;
5312 }
5313 _ACEOF
5314 if ac_fn_cxx_try_compile "$LINENO"; then :
5315   ac_cv_prog_cxx_g=yes
5316 fi
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318 fi
5319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5323 fi
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5325 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5326 if test "$ac_test_CXXFLAGS" = set; then
5327   CXXFLAGS=$ac_save_CXXFLAGS
5328 elif test $ac_cv_prog_cxx_g = yes; then
5329   if test "$GXX" = yes; then
5330     CXXFLAGS="-g -O2"
5331   else
5332     CXXFLAGS="-g"
5333   fi
5334 else
5335   if test "$GXX" = yes; then
5336     CXXFLAGS="-O2"
5337   else
5338     CXXFLAGS=
5339   fi
5340 fi
5341 ac_ext=c
5342 ac_cpp='$CPP $CPPFLAGS'
5343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346
5347
5348 # We must set the default linker to the linker used by gcc for the correct
5349 # operation of libtool.  If LD is not defined and we are using gcc, try to
5350 # set the LD default to the ld used by gcc.
5351 if test -z "$LD"; then
5352   if test "$GCC" = yes; then
5353     case $build in
5354     *-*-mingw*)
5355       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5356     *)
5357       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5358     esac
5359     case $gcc_prog_ld in
5360     # Accept absolute paths.
5361     [\\/]* | [A-Za-z]:[\\/]*)
5362       LD="$gcc_prog_ld" ;;
5363     esac
5364   fi
5365 fi
5366
5367 # Check whether -static-libstdc++ -static-libgcc is supported.
5368 have_static_libs=no
5369 if test "$GCC" = yes; then
5370   saved_LDFLAGS="$LDFLAGS"
5371
5372   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5374 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5375   ac_ext=cpp
5376 ac_cpp='$CXXCPP $CPPFLAGS'
5377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5380
5381
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h.  */
5384
5385 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5386 #error -static-libstdc++ not implemented
5387 #endif
5388 int main() {}
5389 _ACEOF
5390 if ac_fn_cxx_try_link "$LINENO"; then :
5391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5392 $as_echo "yes" >&6; }; have_static_libs=yes
5393 else
5394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5396 fi
5397 rm -f core conftest.err conftest.$ac_objext \
5398     conftest$ac_exeext conftest.$ac_ext
5399   ac_ext=c
5400 ac_cpp='$CPP $CPPFLAGS'
5401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5404
5405
5406   LDFLAGS="$saved_LDFLAGS"
5407 fi
5408
5409
5410
5411
5412 if test -n "$ac_tool_prefix"; then
5413   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5414 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 $as_echo_n "checking for $ac_word... " >&6; }
5417 if ${ac_cv_prog_GNATBIND+:} false; then :
5418   $as_echo_n "(cached) " >&6
5419 else
5420   if test -n "$GNATBIND"; then
5421   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5422 else
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5425 do
5426   IFS=$as_save_IFS
5427   test -z "$as_dir" && as_dir=.
5428     for ac_exec_ext in '' $ac_executable_extensions; do
5429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432     break 2
5433   fi
5434 done
5435   done
5436 IFS=$as_save_IFS
5437
5438 fi
5439 fi
5440 GNATBIND=$ac_cv_prog_GNATBIND
5441 if test -n "$GNATBIND"; then
5442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5443 $as_echo "$GNATBIND" >&6; }
5444 else
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5447 fi
5448
5449
5450 fi
5451 if test -z "$ac_cv_prog_GNATBIND"; then
5452   ac_ct_GNATBIND=$GNATBIND
5453   # Extract the first word of "gnatbind", so it can be a program name with args.
5454 set dummy gnatbind; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5458   $as_echo_n "(cached) " >&6
5459 else
5460   if test -n "$ac_ct_GNATBIND"; then
5461   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
5466   IFS=$as_save_IFS
5467   test -z "$as_dir" && as_dir=.
5468     for ac_exec_ext in '' $ac_executable_extensions; do
5469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472     break 2
5473   fi
5474 done
5475   done
5476 IFS=$as_save_IFS
5477
5478 fi
5479 fi
5480 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5481 if test -n "$ac_ct_GNATBIND"; then
5482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5483 $as_echo "$ac_ct_GNATBIND" >&6; }
5484 else
5485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5487 fi
5488
5489   if test "x$ac_ct_GNATBIND" = x; then
5490     GNATBIND="no"
5491   else
5492     case $cross_compiling:$ac_tool_warned in
5493 yes:)
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5496 ac_tool_warned=yes ;;
5497 esac
5498     GNATBIND=$ac_ct_GNATBIND
5499   fi
5500 else
5501   GNATBIND="$ac_cv_prog_GNATBIND"
5502 fi
5503
5504 if test -n "$ac_tool_prefix"; then
5505   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5506 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 $as_echo_n "checking for $ac_word... " >&6; }
5509 if ${ac_cv_prog_GNATMAKE+:} false; then :
5510   $as_echo_n "(cached) " >&6
5511 else
5512   if test -n "$GNATMAKE"; then
5513   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5517 do
5518   IFS=$as_save_IFS
5519   test -z "$as_dir" && as_dir=.
5520     for ac_exec_ext in '' $ac_executable_extensions; do
5521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5522     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524     break 2
5525   fi
5526 done
5527   done
5528 IFS=$as_save_IFS
5529
5530 fi
5531 fi
5532 GNATMAKE=$ac_cv_prog_GNATMAKE
5533 if test -n "$GNATMAKE"; then
5534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5535 $as_echo "$GNATMAKE" >&6; }
5536 else
5537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5539 fi
5540
5541
5542 fi
5543 if test -z "$ac_cv_prog_GNATMAKE"; then
5544   ac_ct_GNATMAKE=$GNATMAKE
5545   # Extract the first word of "gnatmake", so it can be a program name with args.
5546 set dummy gnatmake; ac_word=$2
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548 $as_echo_n "checking for $ac_word... " >&6; }
5549 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5550   $as_echo_n "(cached) " >&6
5551 else
5552   if test -n "$ac_ct_GNATMAKE"; then
5553   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5557 do
5558   IFS=$as_save_IFS
5559   test -z "$as_dir" && as_dir=.
5560     for ac_exec_ext in '' $ac_executable_extensions; do
5561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564     break 2
5565   fi
5566 done
5567   done
5568 IFS=$as_save_IFS
5569
5570 fi
5571 fi
5572 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5573 if test -n "$ac_ct_GNATMAKE"; then
5574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5575 $as_echo "$ac_ct_GNATMAKE" >&6; }
5576 else
5577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5579 fi
5580
5581   if test "x$ac_ct_GNATMAKE" = x; then
5582     GNATMAKE="no"
5583   else
5584     case $cross_compiling:$ac_tool_warned in
5585 yes:)
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5588 ac_tool_warned=yes ;;
5589 esac
5590     GNATMAKE=$ac_ct_GNATMAKE
5591   fi
5592 else
5593   GNATMAKE="$ac_cv_prog_GNATMAKE"
5594 fi
5595
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5597 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5598 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5599   $as_echo_n "(cached) " >&6
5600 else
5601   cat >conftest.adb <<EOF
5602 procedure conftest is begin null; end conftest;
5603 EOF
5604 acx_cv_cc_gcc_supports_ada=no
5605 # There is a bug in old released versions of GCC which causes the
5606 # driver to exit successfully when the appropriate language module
5607 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5608 # Therefore we must check for the error message as well as an
5609 # unsuccessful exit.
5610 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5611 # given a .adb file, but produce no object file.  So we must check
5612 # if an object file was really produced to guard against this.
5613 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5614 if test x"$errors" = x && test -f conftest.$ac_objext; then
5615   acx_cv_cc_gcc_supports_ada=yes
5616 fi
5617 rm -f conftest.*
5618 fi
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5620 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5621
5622 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5623   have_gnat=yes
5624 else
5625   have_gnat=no
5626 fi
5627
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5629 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5630 if ${gcc_cv_prog_cmp_skip+:} false; then :
5631   $as_echo_n "(cached) " >&6
5632 else
5633    echo abfoo >t1
5634   echo cdfoo >t2
5635   gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5636   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5637     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5638       :
5639     else
5640       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5641     fi
5642   fi
5643   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5644     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5645       :
5646     else
5647       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5648     fi
5649   fi
5650   rm t1 t2
5651
5652 fi
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5654 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5655 do_compare="$gcc_cv_prog_cmp_skip"
5656
5657
5658
5659 # Check whether --enable-bootstrap was given.
5660 if test "${enable_bootstrap+set}" = set; then :
5661   enableval=$enable_bootstrap;
5662 else
5663   enable_bootstrap=default
5664 fi
5665
5666
5667 # Issue errors and warnings for invalid/strange bootstrap combinations.
5668 if test -r $srcdir/gcc/configure; then
5669   have_compiler=yes
5670 else
5671   have_compiler=no
5672 fi
5673
5674 case "$have_compiler:$host:$target:$enable_bootstrap" in
5675   *:*:*:no) ;;
5676
5677   # Default behavior.  Enable bootstrap if we have a compiler
5678   # and we are in a native configuration.
5679   yes:$build:$build:default)
5680     enable_bootstrap=yes ;;
5681
5682   *:*:*:default)
5683     enable_bootstrap=no ;;
5684
5685   # We have a compiler and we are in a native configuration, bootstrap is ok
5686   yes:$build:$build:yes)
5687     ;;
5688
5689   # Other configurations, but we have a compiler.  Assume the user knows
5690   # what he's doing.
5691   yes:*:*:yes)
5692     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5693 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5694     ;;
5695
5696   # No compiler: if they passed --enable-bootstrap explicitly, fail
5697   no:*:*:yes)
5698     as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5699
5700   # Fail if wrong command line
5701   *)
5702     as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5703     ;;
5704 esac
5705
5706 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5707 # C++11 compiler can still start the bootstrap.  Otherwise, if building GCC,
5708 # require C++11 (or higher).
5709 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5710   CXX="$CXX -std=c++11"
5711 elif test "$have_compiler" = yes; then
5712     ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
5713   ac_ext=cpp
5714 ac_cpp='$CXXCPP $CPPFLAGS'
5715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5718   ac_success=no
5719
5720       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5721 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5722 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5723   $as_echo_n "(cached) " >&6
5724 else
5725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h.  */
5727
5728
5729 // If the compiler admits that it is not ready for C++11, why torture it?
5730 // Hopefully, this will speed up the test.
5731
5732 #ifndef __cplusplus
5733
5734 #error "This is not a C++ compiler"
5735
5736 #elif __cplusplus < 201103L
5737
5738 #error "This is not a C++11 compiler"
5739
5740 #else
5741
5742 namespace cxx11
5743 {
5744
5745   namespace test_static_assert
5746   {
5747
5748     template <typename T>
5749     struct check
5750     {
5751       static_assert(sizeof(int) <= sizeof(T), "not big enough");
5752     };
5753
5754   }
5755
5756   namespace test_final_override
5757   {
5758
5759     struct Base
5760     {
5761       virtual ~Base() {}
5762       virtual void f() {}
5763     };
5764
5765     struct Derived : public Base
5766     {
5767       virtual ~Derived() override {}
5768       virtual void f() override {}
5769     };
5770
5771   }
5772
5773   namespace test_double_right_angle_brackets
5774   {
5775
5776     template < typename T >
5777     struct check {};
5778
5779     typedef check<void> single_type;
5780     typedef check<check<void>> double_type;
5781     typedef check<check<check<void>>> triple_type;
5782     typedef check<check<check<check<void>>>> quadruple_type;
5783
5784   }
5785
5786   namespace test_decltype
5787   {
5788
5789     int
5790     f()
5791     {
5792       int a = 1;
5793       decltype(a) b = 2;
5794       return a + b;
5795     }
5796
5797   }
5798
5799   namespace test_type_deduction
5800   {
5801
5802     template < typename T1, typename T2 >
5803     struct is_same
5804     {
5805       static const bool value = false;
5806     };
5807
5808     template < typename T >
5809     struct is_same<T, T>
5810     {
5811       static const bool value = true;
5812     };
5813
5814     template < typename T1, typename T2 >
5815     auto
5816     add(T1 a1, T2 a2) -> decltype(a1 + a2)
5817     {
5818       return a1 + a2;
5819     }
5820
5821     int
5822     test(const int c, volatile int v)
5823     {
5824       static_assert(is_same<int, decltype(0)>::value == true, "");
5825       static_assert(is_same<int, decltype(c)>::value == false, "");
5826       static_assert(is_same<int, decltype(v)>::value == false, "");
5827       auto ac = c;
5828       auto av = v;
5829       auto sumi = ac + av + 'x';
5830       auto sumf = ac + av + 1.0;
5831       static_assert(is_same<int, decltype(ac)>::value == true, "");
5832       static_assert(is_same<int, decltype(av)>::value == true, "");
5833       static_assert(is_same<int, decltype(sumi)>::value == true, "");
5834       static_assert(is_same<int, decltype(sumf)>::value == false, "");
5835       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5836       return (sumf > 0.0) ? sumi : add(c, v);
5837     }
5838
5839   }
5840
5841   namespace test_noexcept
5842   {
5843
5844     int f() { return 0; }
5845     int g() noexcept { return 0; }
5846
5847     static_assert(noexcept(f()) == false, "");
5848     static_assert(noexcept(g()) == true, "");
5849
5850   }
5851
5852   namespace test_constexpr
5853   {
5854
5855     template < typename CharT >
5856     unsigned long constexpr
5857     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5858     {
5859       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5860     }
5861
5862     template < typename CharT >
5863     unsigned long constexpr
5864     strlen_c(const CharT *const s) noexcept
5865     {
5866       return strlen_c_r(s, 0UL);
5867     }
5868
5869     static_assert(strlen_c("") == 0UL, "");
5870     static_assert(strlen_c("1") == 1UL, "");
5871     static_assert(strlen_c("example") == 7UL, "");
5872     static_assert(strlen_c("another\0example") == 7UL, "");
5873
5874   }
5875
5876   namespace test_rvalue_references
5877   {
5878
5879     template < int N >
5880     struct answer
5881     {
5882       static constexpr int value = N;
5883     };
5884
5885     answer<1> f(int&)       { return answer<1>(); }
5886     answer<2> f(const int&) { return answer<2>(); }
5887     answer<3> f(int&&)      { return answer<3>(); }
5888
5889     void
5890     test()
5891     {
5892       int i = 0;
5893       const int c = 0;
5894       static_assert(decltype(f(i))::value == 1, "");
5895       static_assert(decltype(f(c))::value == 2, "");
5896       static_assert(decltype(f(0))::value == 3, "");
5897     }
5898
5899   }
5900
5901   namespace test_uniform_initialization
5902   {
5903
5904     struct test
5905     {
5906       static const int zero {};
5907       static const int one {1};
5908     };
5909
5910     static_assert(test::zero == 0, "");
5911     static_assert(test::one == 1, "");
5912
5913   }
5914
5915   namespace test_lambdas
5916   {
5917
5918     void
5919     test1()
5920     {
5921       auto lambda1 = [](){};
5922       auto lambda2 = lambda1;
5923       lambda1();
5924       lambda2();
5925     }
5926
5927     int
5928     test2()
5929     {
5930       auto a = [](int i, int j){ return i + j; }(1, 2);
5931       auto b = []() -> int { return '0'; }();
5932       auto c = [=](){ return a + b; }();
5933       auto d = [&](){ return c; }();
5934       auto e = [a, &b](int x) mutable {
5935         const auto identity = [](int y){ return y; };
5936         for (auto i = 0; i < a; ++i)
5937           a += b--;
5938         return x + identity(a + b);
5939       }(0);
5940       return a + b + c + d + e;
5941     }
5942
5943     int
5944     test3()
5945     {
5946       const auto nullary = [](){ return 0; };
5947       const auto unary = [](int x){ return x; };
5948       using nullary_t = decltype(nullary);
5949       using unary_t = decltype(unary);
5950       const auto higher1st = [](nullary_t f){ return f(); };
5951       const auto higher2nd = [unary](nullary_t f1){
5952         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5953       };
5954       return higher1st(nullary) + higher2nd(nullary)(unary);
5955     }
5956
5957   }
5958
5959   namespace test_variadic_templates
5960   {
5961
5962     template <int...>
5963     struct sum;
5964
5965     template <int N0, int... N1toN>
5966     struct sum<N0, N1toN...>
5967     {
5968       static constexpr auto value = N0 + sum<N1toN...>::value;
5969     };
5970
5971     template <>
5972     struct sum<>
5973     {
5974       static constexpr auto value = 0;
5975     };
5976
5977     static_assert(sum<>::value == 0, "");
5978     static_assert(sum<1>::value == 1, "");
5979     static_assert(sum<23>::value == 23, "");
5980     static_assert(sum<1, 2>::value == 3, "");
5981     static_assert(sum<5, 5, 11>::value == 21, "");
5982     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5983
5984   }
5985
5986   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5987   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5988   // because of this.
5989   namespace test_template_alias_sfinae
5990   {
5991
5992     struct foo {};
5993
5994     template<typename T>
5995     using member = typename T::member_type;
5996
5997     template<typename T>
5998     void func(...) {}
5999
6000     template<typename T>
6001     void func(member<T>*) {}
6002
6003     void test();
6004
6005     void test() { func<foo>(0); }
6006
6007   }
6008
6009 }  // namespace cxx11
6010
6011 #endif  // __cplusplus >= 201103L
6012
6013
6014
6015 _ACEOF
6016 if ac_fn_cxx_try_compile "$LINENO"; then :
6017   ax_cv_cxx_compile_cxx11=yes
6018 else
6019   ax_cv_cxx_compile_cxx11=no
6020 fi
6021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022 fi
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6024 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6025     if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6026       ac_success=yes
6027     fi
6028
6029     if test x$ac_success = xno; then
6030     for alternative in ${ax_cxx_compile_alternatives}; do
6031       switch="-std=gnu++${alternative}"
6032       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6033       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6034 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6035 if eval \${$cachevar+:} false; then :
6036   $as_echo_n "(cached) " >&6
6037 else
6038   ac_save_CXX="$CXX"
6039          CXX="$CXX $switch"
6040          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h.  */
6042
6043
6044 // If the compiler admits that it is not ready for C++11, why torture it?
6045 // Hopefully, this will speed up the test.
6046
6047 #ifndef __cplusplus
6048
6049 #error "This is not a C++ compiler"
6050
6051 #elif __cplusplus < 201103L
6052
6053 #error "This is not a C++11 compiler"
6054
6055 #else
6056
6057 namespace cxx11
6058 {
6059
6060   namespace test_static_assert
6061   {
6062
6063     template <typename T>
6064     struct check
6065     {
6066       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6067     };
6068
6069   }
6070
6071   namespace test_final_override
6072   {
6073
6074     struct Base
6075     {
6076       virtual ~Base() {}
6077       virtual void f() {}
6078     };
6079
6080     struct Derived : public Base
6081     {
6082       virtual ~Derived() override {}
6083       virtual void f() override {}
6084     };
6085
6086   }
6087
6088   namespace test_double_right_angle_brackets
6089   {
6090
6091     template < typename T >
6092     struct check {};
6093
6094     typedef check<void> single_type;
6095     typedef check<check<void>> double_type;
6096     typedef check<check<check<void>>> triple_type;
6097     typedef check<check<check<check<void>>>> quadruple_type;
6098
6099   }
6100
6101   namespace test_decltype
6102   {
6103
6104     int
6105     f()
6106     {
6107       int a = 1;
6108       decltype(a) b = 2;
6109       return a + b;
6110     }
6111
6112   }
6113
6114   namespace test_type_deduction
6115   {
6116
6117     template < typename T1, typename T2 >
6118     struct is_same
6119     {
6120       static const bool value = false;
6121     };
6122
6123     template < typename T >
6124     struct is_same<T, T>
6125     {
6126       static const bool value = true;
6127     };
6128
6129     template < typename T1, typename T2 >
6130     auto
6131     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6132     {
6133       return a1 + a2;
6134     }
6135
6136     int
6137     test(const int c, volatile int v)
6138     {
6139       static_assert(is_same<int, decltype(0)>::value == true, "");
6140       static_assert(is_same<int, decltype(c)>::value == false, "");
6141       static_assert(is_same<int, decltype(v)>::value == false, "");
6142       auto ac = c;
6143       auto av = v;
6144       auto sumi = ac + av + 'x';
6145       auto sumf = ac + av + 1.0;
6146       static_assert(is_same<int, decltype(ac)>::value == true, "");
6147       static_assert(is_same<int, decltype(av)>::value == true, "");
6148       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6149       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6150       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6151       return (sumf > 0.0) ? sumi : add(c, v);
6152     }
6153
6154   }
6155
6156   namespace test_noexcept
6157   {
6158
6159     int f() { return 0; }
6160     int g() noexcept { return 0; }
6161
6162     static_assert(noexcept(f()) == false, "");
6163     static_assert(noexcept(g()) == true, "");
6164
6165   }
6166
6167   namespace test_constexpr
6168   {
6169
6170     template < typename CharT >
6171     unsigned long constexpr
6172     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6173     {
6174       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6175     }
6176
6177     template < typename CharT >
6178     unsigned long constexpr
6179     strlen_c(const CharT *const s) noexcept
6180     {
6181       return strlen_c_r(s, 0UL);
6182     }
6183
6184     static_assert(strlen_c("") == 0UL, "");
6185     static_assert(strlen_c("1") == 1UL, "");
6186     static_assert(strlen_c("example") == 7UL, "");
6187     static_assert(strlen_c("another\0example") == 7UL, "");
6188
6189   }
6190
6191   namespace test_rvalue_references
6192   {
6193
6194     template < int N >
6195     struct answer
6196     {
6197       static constexpr int value = N;
6198     };
6199
6200     answer<1> f(int&)       { return answer<1>(); }
6201     answer<2> f(const int&) { return answer<2>(); }
6202     answer<3> f(int&&)      { return answer<3>(); }
6203
6204     void
6205     test()
6206     {
6207       int i = 0;
6208       const int c = 0;
6209       static_assert(decltype(f(i))::value == 1, "");
6210       static_assert(decltype(f(c))::value == 2, "");
6211       static_assert(decltype(f(0))::value == 3, "");
6212     }
6213
6214   }
6215
6216   namespace test_uniform_initialization
6217   {
6218
6219     struct test
6220     {
6221       static const int zero {};
6222       static const int one {1};
6223     };
6224
6225     static_assert(test::zero == 0, "");
6226     static_assert(test::one == 1, "");
6227
6228   }
6229
6230   namespace test_lambdas
6231   {
6232
6233     void
6234     test1()
6235     {
6236       auto lambda1 = [](){};
6237       auto lambda2 = lambda1;
6238       lambda1();
6239       lambda2();
6240     }
6241
6242     int
6243     test2()
6244     {
6245       auto a = [](int i, int j){ return i + j; }(1, 2);
6246       auto b = []() -> int { return '0'; }();
6247       auto c = [=](){ return a + b; }();
6248       auto d = [&](){ return c; }();
6249       auto e = [a, &b](int x) mutable {
6250         const auto identity = [](int y){ return y; };
6251         for (auto i = 0; i < a; ++i)
6252           a += b--;
6253         return x + identity(a + b);
6254       }(0);
6255       return a + b + c + d + e;
6256     }
6257
6258     int
6259     test3()
6260     {
6261       const auto nullary = [](){ return 0; };
6262       const auto unary = [](int x){ return x; };
6263       using nullary_t = decltype(nullary);
6264       using unary_t = decltype(unary);
6265       const auto higher1st = [](nullary_t f){ return f(); };
6266       const auto higher2nd = [unary](nullary_t f1){
6267         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6268       };
6269       return higher1st(nullary) + higher2nd(nullary)(unary);
6270     }
6271
6272   }
6273
6274   namespace test_variadic_templates
6275   {
6276
6277     template <int...>
6278     struct sum;
6279
6280     template <int N0, int... N1toN>
6281     struct sum<N0, N1toN...>
6282     {
6283       static constexpr auto value = N0 + sum<N1toN...>::value;
6284     };
6285
6286     template <>
6287     struct sum<>
6288     {
6289       static constexpr auto value = 0;
6290     };
6291
6292     static_assert(sum<>::value == 0, "");
6293     static_assert(sum<1>::value == 1, "");
6294     static_assert(sum<23>::value == 23, "");
6295     static_assert(sum<1, 2>::value == 3, "");
6296     static_assert(sum<5, 5, 11>::value == 21, "");
6297     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6298
6299   }
6300
6301   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6302   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6303   // because of this.
6304   namespace test_template_alias_sfinae
6305   {
6306
6307     struct foo {};
6308
6309     template<typename T>
6310     using member = typename T::member_type;
6311
6312     template<typename T>
6313     void func(...) {}
6314
6315     template<typename T>
6316     void func(member<T>*) {}
6317
6318     void test();
6319
6320     void test() { func<foo>(0); }
6321
6322   }
6323
6324 }  // namespace cxx11
6325
6326 #endif  // __cplusplus >= 201103L
6327
6328
6329
6330 _ACEOF
6331 if ac_fn_cxx_try_compile "$LINENO"; then :
6332   eval $cachevar=yes
6333 else
6334   eval $cachevar=no
6335 fi
6336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337          CXX="$ac_save_CXX"
6338 fi
6339 eval ac_res=\$$cachevar
6340                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6341 $as_echo "$ac_res" >&6; }
6342       if eval test x\$$cachevar = xyes; then
6343         CXX="$CXX $switch"
6344         if test -n "$CXXCPP" ; then
6345           CXXCPP="$CXXCPP $switch"
6346         fi
6347         ac_success=yes
6348         break
6349       fi
6350     done
6351   fi
6352
6353     if test x$ac_success = xno; then
6354                 for alternative in ${ax_cxx_compile_alternatives}; do
6355       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6356         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6357         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6358 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6359 if eval \${$cachevar+:} false; then :
6360   $as_echo_n "(cached) " >&6
6361 else
6362   ac_save_CXX="$CXX"
6363            CXX="$CXX $switch"
6364            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h.  */
6366
6367
6368 // If the compiler admits that it is not ready for C++11, why torture it?
6369 // Hopefully, this will speed up the test.
6370
6371 #ifndef __cplusplus
6372
6373 #error "This is not a C++ compiler"
6374
6375 #elif __cplusplus < 201103L
6376
6377 #error "This is not a C++11 compiler"
6378
6379 #else
6380
6381 namespace cxx11
6382 {
6383
6384   namespace test_static_assert
6385   {
6386
6387     template <typename T>
6388     struct check
6389     {
6390       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6391     };
6392
6393   }
6394
6395   namespace test_final_override
6396   {
6397
6398     struct Base
6399     {
6400       virtual ~Base() {}
6401       virtual void f() {}
6402     };
6403
6404     struct Derived : public Base
6405     {
6406       virtual ~Derived() override {}
6407       virtual void f() override {}
6408     };
6409
6410   }
6411
6412   namespace test_double_right_angle_brackets
6413   {
6414
6415     template < typename T >
6416     struct check {};
6417
6418     typedef check<void> single_type;
6419     typedef check<check<void>> double_type;
6420     typedef check<check<check<void>>> triple_type;
6421     typedef check<check<check<check<void>>>> quadruple_type;
6422
6423   }
6424
6425   namespace test_decltype
6426   {
6427
6428     int
6429     f()
6430     {
6431       int a = 1;
6432       decltype(a) b = 2;
6433       return a + b;
6434     }
6435
6436   }
6437
6438   namespace test_type_deduction
6439   {
6440
6441     template < typename T1, typename T2 >
6442     struct is_same
6443     {
6444       static const bool value = false;
6445     };
6446
6447     template < typename T >
6448     struct is_same<T, T>
6449     {
6450       static const bool value = true;
6451     };
6452
6453     template < typename T1, typename T2 >
6454     auto
6455     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6456     {
6457       return a1 + a2;
6458     }
6459
6460     int
6461     test(const int c, volatile int v)
6462     {
6463       static_assert(is_same<int, decltype(0)>::value == true, "");
6464       static_assert(is_same<int, decltype(c)>::value == false, "");
6465       static_assert(is_same<int, decltype(v)>::value == false, "");
6466       auto ac = c;
6467       auto av = v;
6468       auto sumi = ac + av + 'x';
6469       auto sumf = ac + av + 1.0;
6470       static_assert(is_same<int, decltype(ac)>::value == true, "");
6471       static_assert(is_same<int, decltype(av)>::value == true, "");
6472       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6473       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6474       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6475       return (sumf > 0.0) ? sumi : add(c, v);
6476     }
6477
6478   }
6479
6480   namespace test_noexcept
6481   {
6482
6483     int f() { return 0; }
6484     int g() noexcept { return 0; }
6485
6486     static_assert(noexcept(f()) == false, "");
6487     static_assert(noexcept(g()) == true, "");
6488
6489   }
6490
6491   namespace test_constexpr
6492   {
6493
6494     template < typename CharT >
6495     unsigned long constexpr
6496     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6497     {
6498       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6499     }
6500
6501     template < typename CharT >
6502     unsigned long constexpr
6503     strlen_c(const CharT *const s) noexcept
6504     {
6505       return strlen_c_r(s, 0UL);
6506     }
6507
6508     static_assert(strlen_c("") == 0UL, "");
6509     static_assert(strlen_c("1") == 1UL, "");
6510     static_assert(strlen_c("example") == 7UL, "");
6511     static_assert(strlen_c("another\0example") == 7UL, "");
6512
6513   }
6514
6515   namespace test_rvalue_references
6516   {
6517
6518     template < int N >
6519     struct answer
6520     {
6521       static constexpr int value = N;
6522     };
6523
6524     answer<1> f(int&)       { return answer<1>(); }
6525     answer<2> f(const int&) { return answer<2>(); }
6526     answer<3> f(int&&)      { return answer<3>(); }
6527
6528     void
6529     test()
6530     {
6531       int i = 0;
6532       const int c = 0;
6533       static_assert(decltype(f(i))::value == 1, "");
6534       static_assert(decltype(f(c))::value == 2, "");
6535       static_assert(decltype(f(0))::value == 3, "");
6536     }
6537
6538   }
6539
6540   namespace test_uniform_initialization
6541   {
6542
6543     struct test
6544     {
6545       static const int zero {};
6546       static const int one {1};
6547     };
6548
6549     static_assert(test::zero == 0, "");
6550     static_assert(test::one == 1, "");
6551
6552   }
6553
6554   namespace test_lambdas
6555   {
6556
6557     void
6558     test1()
6559     {
6560       auto lambda1 = [](){};
6561       auto lambda2 = lambda1;
6562       lambda1();
6563       lambda2();
6564     }
6565
6566     int
6567     test2()
6568     {
6569       auto a = [](int i, int j){ return i + j; }(1, 2);
6570       auto b = []() -> int { return '0'; }();
6571       auto c = [=](){ return a + b; }();
6572       auto d = [&](){ return c; }();
6573       auto e = [a, &b](int x) mutable {
6574         const auto identity = [](int y){ return y; };
6575         for (auto i = 0; i < a; ++i)
6576           a += b--;
6577         return x + identity(a + b);
6578       }(0);
6579       return a + b + c + d + e;
6580     }
6581
6582     int
6583     test3()
6584     {
6585       const auto nullary = [](){ return 0; };
6586       const auto unary = [](int x){ return x; };
6587       using nullary_t = decltype(nullary);
6588       using unary_t = decltype(unary);
6589       const auto higher1st = [](nullary_t f){ return f(); };
6590       const auto higher2nd = [unary](nullary_t f1){
6591         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6592       };
6593       return higher1st(nullary) + higher2nd(nullary)(unary);
6594     }
6595
6596   }
6597
6598   namespace test_variadic_templates
6599   {
6600
6601     template <int...>
6602     struct sum;
6603
6604     template <int N0, int... N1toN>
6605     struct sum<N0, N1toN...>
6606     {
6607       static constexpr auto value = N0 + sum<N1toN...>::value;
6608     };
6609
6610     template <>
6611     struct sum<>
6612     {
6613       static constexpr auto value = 0;
6614     };
6615
6616     static_assert(sum<>::value == 0, "");
6617     static_assert(sum<1>::value == 1, "");
6618     static_assert(sum<23>::value == 23, "");
6619     static_assert(sum<1, 2>::value == 3, "");
6620     static_assert(sum<5, 5, 11>::value == 21, "");
6621     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6622
6623   }
6624
6625   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6626   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6627   // because of this.
6628   namespace test_template_alias_sfinae
6629   {
6630
6631     struct foo {};
6632
6633     template<typename T>
6634     using member = typename T::member_type;
6635
6636     template<typename T>
6637     void func(...) {}
6638
6639     template<typename T>
6640     void func(member<T>*) {}
6641
6642     void test();
6643
6644     void test() { func<foo>(0); }
6645
6646   }
6647
6648 }  // namespace cxx11
6649
6650 #endif  // __cplusplus >= 201103L
6651
6652
6653
6654 _ACEOF
6655 if ac_fn_cxx_try_compile "$LINENO"; then :
6656   eval $cachevar=yes
6657 else
6658   eval $cachevar=no
6659 fi
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661            CXX="$ac_save_CXX"
6662 fi
6663 eval ac_res=\$$cachevar
6664                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6665 $as_echo "$ac_res" >&6; }
6666         if eval test x\$$cachevar = xyes; then
6667           CXX="$CXX $switch"
6668           if test -n "$CXXCPP" ; then
6669             CXXCPP="$CXXCPP $switch"
6670           fi
6671           ac_success=yes
6672           break
6673         fi
6674       done
6675       if test x$ac_success = xyes; then
6676         break
6677       fi
6678     done
6679   fi
6680
6681   ac_ext=c
6682 ac_cpp='$CPP $CPPFLAGS'
6683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6686
6687   if test x$ax_cxx_compile_cxx11_required = xtrue; then
6688     if test x$ac_success = xno; then
6689       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6690     fi
6691   fi
6692   if test x$ac_success = xno; then
6693     HAVE_CXX11=0
6694     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6695 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6696   else
6697     HAVE_CXX11=1
6698
6699 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6700
6701   fi
6702
6703
6704
6705   if test "${build}" != "${host}"; then
6706       ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
6707   ac_ext=cpp
6708 ac_cpp='$CXXCPP $CPPFLAGS'
6709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6712   ac_success=no
6713       ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6714     ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6715     ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6716     CXX="$CXX_FOR_BUILD"
6717     CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6718     CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6719       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6720 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6721 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6722   $as_echo_n "(cached) " >&6
6723 else
6724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h.  */
6726
6727
6728 // If the compiler admits that it is not ready for C++11, why torture it?
6729 // Hopefully, this will speed up the test.
6730
6731 #ifndef __cplusplus
6732
6733 #error "This is not a C++ compiler"
6734
6735 #elif __cplusplus < 201103L
6736
6737 #error "This is not a C++11 compiler"
6738
6739 #else
6740
6741 namespace cxx11
6742 {
6743
6744   namespace test_static_assert
6745   {
6746
6747     template <typename T>
6748     struct check
6749     {
6750       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6751     };
6752
6753   }
6754
6755   namespace test_final_override
6756   {
6757
6758     struct Base
6759     {
6760       virtual ~Base() {}
6761       virtual void f() {}
6762     };
6763
6764     struct Derived : public Base
6765     {
6766       virtual ~Derived() override {}
6767       virtual void f() override {}
6768     };
6769
6770   }
6771
6772   namespace test_double_right_angle_brackets
6773   {
6774
6775     template < typename T >
6776     struct check {};
6777
6778     typedef check<void> single_type;
6779     typedef check<check<void>> double_type;
6780     typedef check<check<check<void>>> triple_type;
6781     typedef check<check<check<check<void>>>> quadruple_type;
6782
6783   }
6784
6785   namespace test_decltype
6786   {
6787
6788     int
6789     f()
6790     {
6791       int a = 1;
6792       decltype(a) b = 2;
6793       return a + b;
6794     }
6795
6796   }
6797
6798   namespace test_type_deduction
6799   {
6800
6801     template < typename T1, typename T2 >
6802     struct is_same
6803     {
6804       static const bool value = false;
6805     };
6806
6807     template < typename T >
6808     struct is_same<T, T>
6809     {
6810       static const bool value = true;
6811     };
6812
6813     template < typename T1, typename T2 >
6814     auto
6815     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6816     {
6817       return a1 + a2;
6818     }
6819
6820     int
6821     test(const int c, volatile int v)
6822     {
6823       static_assert(is_same<int, decltype(0)>::value == true, "");
6824       static_assert(is_same<int, decltype(c)>::value == false, "");
6825       static_assert(is_same<int, decltype(v)>::value == false, "");
6826       auto ac = c;
6827       auto av = v;
6828       auto sumi = ac + av + 'x';
6829       auto sumf = ac + av + 1.0;
6830       static_assert(is_same<int, decltype(ac)>::value == true, "");
6831       static_assert(is_same<int, decltype(av)>::value == true, "");
6832       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6833       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6834       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6835       return (sumf > 0.0) ? sumi : add(c, v);
6836     }
6837
6838   }
6839
6840   namespace test_noexcept
6841   {
6842
6843     int f() { return 0; }
6844     int g() noexcept { return 0; }
6845
6846     static_assert(noexcept(f()) == false, "");
6847     static_assert(noexcept(g()) == true, "");
6848
6849   }
6850
6851   namespace test_constexpr
6852   {
6853
6854     template < typename CharT >
6855     unsigned long constexpr
6856     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6857     {
6858       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6859     }
6860
6861     template < typename CharT >
6862     unsigned long constexpr
6863     strlen_c(const CharT *const s) noexcept
6864     {
6865       return strlen_c_r(s, 0UL);
6866     }
6867
6868     static_assert(strlen_c("") == 0UL, "");
6869     static_assert(strlen_c("1") == 1UL, "");
6870     static_assert(strlen_c("example") == 7UL, "");
6871     static_assert(strlen_c("another\0example") == 7UL, "");
6872
6873   }
6874
6875   namespace test_rvalue_references
6876   {
6877
6878     template < int N >
6879     struct answer
6880     {
6881       static constexpr int value = N;
6882     };
6883
6884     answer<1> f(int&)       { return answer<1>(); }
6885     answer<2> f(const int&) { return answer<2>(); }
6886     answer<3> f(int&&)      { return answer<3>(); }
6887
6888     void
6889     test()
6890     {
6891       int i = 0;
6892       const int c = 0;
6893       static_assert(decltype(f(i))::value == 1, "");
6894       static_assert(decltype(f(c))::value == 2, "");
6895       static_assert(decltype(f(0))::value == 3, "");
6896     }
6897
6898   }
6899
6900   namespace test_uniform_initialization
6901   {
6902
6903     struct test
6904     {
6905       static const int zero {};
6906       static const int one {1};
6907     };
6908
6909     static_assert(test::zero == 0, "");
6910     static_assert(test::one == 1, "");
6911
6912   }
6913
6914   namespace test_lambdas
6915   {
6916
6917     void
6918     test1()
6919     {
6920       auto lambda1 = [](){};
6921       auto lambda2 = lambda1;
6922       lambda1();
6923       lambda2();
6924     }
6925
6926     int
6927     test2()
6928     {
6929       auto a = [](int i, int j){ return i + j; }(1, 2);
6930       auto b = []() -> int { return '0'; }();
6931       auto c = [=](){ return a + b; }();
6932       auto d = [&](){ return c; }();
6933       auto e = [a, &b](int x) mutable {
6934         const auto identity = [](int y){ return y; };
6935         for (auto i = 0; i < a; ++i)
6936           a += b--;
6937         return x + identity(a + b);
6938       }(0);
6939       return a + b + c + d + e;
6940     }
6941
6942     int
6943     test3()
6944     {
6945       const auto nullary = [](){ return 0; };
6946       const auto unary = [](int x){ return x; };
6947       using nullary_t = decltype(nullary);
6948       using unary_t = decltype(unary);
6949       const auto higher1st = [](nullary_t f){ return f(); };
6950       const auto higher2nd = [unary](nullary_t f1){
6951         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6952       };
6953       return higher1st(nullary) + higher2nd(nullary)(unary);
6954     }
6955
6956   }
6957
6958   namespace test_variadic_templates
6959   {
6960
6961     template <int...>
6962     struct sum;
6963
6964     template <int N0, int... N1toN>
6965     struct sum<N0, N1toN...>
6966     {
6967       static constexpr auto value = N0 + sum<N1toN...>::value;
6968     };
6969
6970     template <>
6971     struct sum<>
6972     {
6973       static constexpr auto value = 0;
6974     };
6975
6976     static_assert(sum<>::value == 0, "");
6977     static_assert(sum<1>::value == 1, "");
6978     static_assert(sum<23>::value == 23, "");
6979     static_assert(sum<1, 2>::value == 3, "");
6980     static_assert(sum<5, 5, 11>::value == 21, "");
6981     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6982
6983   }
6984
6985   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6986   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6987   // because of this.
6988   namespace test_template_alias_sfinae
6989   {
6990
6991     struct foo {};
6992
6993     template<typename T>
6994     using member = typename T::member_type;
6995
6996     template<typename T>
6997     void func(...) {}
6998
6999     template<typename T>
7000     void func(member<T>*) {}
7001
7002     void test();
7003
7004     void test() { func<foo>(0); }
7005
7006   }
7007
7008 }  // namespace cxx11
7009
7010 #endif  // __cplusplus >= 201103L
7011
7012
7013
7014 _ACEOF
7015 if ac_fn_cxx_try_compile "$LINENO"; then :
7016   ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7017 else
7018   ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7019 fi
7020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7021 fi
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7023 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7024     if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7025       ac_success=yes
7026     fi
7027
7028     if test x$ac_success = xno; then
7029     for alternative in ${ax_cxx_compile_alternatives}; do
7030       switch="-std=gnu++${alternative}"
7031       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7032       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7033 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7034 if eval \${$cachevar+:} false; then :
7035   $as_echo_n "(cached) " >&6
7036 else
7037   ac_save_CXX="$CXX"
7038          CXX="$CXX $switch"
7039          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h.  */
7041
7042
7043 // If the compiler admits that it is not ready for C++11, why torture it?
7044 // Hopefully, this will speed up the test.
7045
7046 #ifndef __cplusplus
7047
7048 #error "This is not a C++ compiler"
7049
7050 #elif __cplusplus < 201103L
7051
7052 #error "This is not a C++11 compiler"
7053
7054 #else
7055
7056 namespace cxx11
7057 {
7058
7059   namespace test_static_assert
7060   {
7061
7062     template <typename T>
7063     struct check
7064     {
7065       static_assert(sizeof(int) <= sizeof(T), "not big enough");
7066     };
7067
7068   }
7069
7070   namespace test_final_override
7071   {
7072
7073     struct Base
7074     {
7075       virtual ~Base() {}
7076       virtual void f() {}
7077     };
7078
7079     struct Derived : public Base
7080     {
7081       virtual ~Derived() override {}
7082       virtual void f() override {}
7083     };
7084
7085   }
7086
7087   namespace test_double_right_angle_brackets
7088   {
7089
7090     template < typename T >
7091     struct check {};
7092
7093     typedef check<void> single_type;
7094     typedef check<check<void>> double_type;
7095     typedef check<check<check<void>>> triple_type;
7096     typedef check<check<check<check<void>>>> quadruple_type;
7097
7098   }
7099
7100   namespace test_decltype
7101   {
7102
7103     int
7104     f()
7105     {
7106       int a = 1;
7107       decltype(a) b = 2;
7108       return a + b;
7109     }
7110
7111   }
7112
7113   namespace test_type_deduction
7114   {
7115
7116     template < typename T1, typename T2 >
7117     struct is_same
7118     {
7119       static const bool value = false;
7120     };
7121
7122     template < typename T >
7123     struct is_same<T, T>
7124     {
7125       static const bool value = true;
7126     };
7127
7128     template < typename T1, typename T2 >
7129     auto
7130     add(T1 a1, T2 a2) -> decltype(a1 + a2)
7131     {
7132       return a1 + a2;
7133     }
7134
7135     int
7136     test(const int c, volatile int v)
7137     {
7138       static_assert(is_same<int, decltype(0)>::value == true, "");
7139       static_assert(is_same<int, decltype(c)>::value == false, "");
7140       static_assert(is_same<int, decltype(v)>::value == false, "");
7141       auto ac = c;
7142       auto av = v;
7143       auto sumi = ac + av + 'x';
7144       auto sumf = ac + av + 1.0;
7145       static_assert(is_same<int, decltype(ac)>::value == true, "");
7146       static_assert(is_same<int, decltype(av)>::value == true, "");
7147       static_assert(is_same<int, decltype(sumi)>::value == true, "");
7148       static_assert(is_same<int, decltype(sumf)>::value == false, "");
7149       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7150       return (sumf > 0.0) ? sumi : add(c, v);
7151     }
7152
7153   }
7154
7155   namespace test_noexcept
7156   {
7157
7158     int f() { return 0; }
7159     int g() noexcept { return 0; }
7160
7161     static_assert(noexcept(f()) == false, "");
7162     static_assert(noexcept(g()) == true, "");
7163
7164   }
7165
7166   namespace test_constexpr
7167   {
7168
7169     template < typename CharT >
7170     unsigned long constexpr
7171     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7172     {
7173       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7174     }
7175
7176     template < typename CharT >
7177     unsigned long constexpr
7178     strlen_c(const CharT *const s) noexcept
7179     {
7180       return strlen_c_r(s, 0UL);
7181     }
7182
7183     static_assert(strlen_c("") == 0UL, "");
7184     static_assert(strlen_c("1") == 1UL, "");
7185     static_assert(strlen_c("example") == 7UL, "");
7186     static_assert(strlen_c("another\0example") == 7UL, "");
7187
7188   }
7189
7190   namespace test_rvalue_references
7191   {
7192
7193     template < int N >
7194     struct answer
7195     {
7196       static constexpr int value = N;
7197     };
7198
7199     answer<1> f(int&)       { return answer<1>(); }
7200     answer<2> f(const int&) { return answer<2>(); }
7201     answer<3> f(int&&)      { return answer<3>(); }
7202
7203     void
7204     test()
7205     {
7206       int i = 0;
7207       const int c = 0;
7208       static_assert(decltype(f(i))::value == 1, "");
7209       static_assert(decltype(f(c))::value == 2, "");
7210       static_assert(decltype(f(0))::value == 3, "");
7211     }
7212
7213   }
7214
7215   namespace test_uniform_initialization
7216   {
7217
7218     struct test
7219     {
7220       static const int zero {};
7221       static const int one {1};
7222     };
7223
7224     static_assert(test::zero == 0, "");
7225     static_assert(test::one == 1, "");
7226
7227   }
7228
7229   namespace test_lambdas
7230   {
7231
7232     void
7233     test1()
7234     {
7235       auto lambda1 = [](){};
7236       auto lambda2 = lambda1;
7237       lambda1();
7238       lambda2();
7239     }
7240
7241     int
7242     test2()
7243     {
7244       auto a = [](int i, int j){ return i + j; }(1, 2);
7245       auto b = []() -> int { return '0'; }();
7246       auto c = [=](){ return a + b; }();
7247       auto d = [&](){ return c; }();
7248       auto e = [a, &b](int x) mutable {
7249         const auto identity = [](int y){ return y; };
7250         for (auto i = 0; i < a; ++i)
7251           a += b--;
7252         return x + identity(a + b);
7253       }(0);
7254       return a + b + c + d + e;
7255     }
7256
7257     int
7258     test3()
7259     {
7260       const auto nullary = [](){ return 0; };
7261       const auto unary = [](int x){ return x; };
7262       using nullary_t = decltype(nullary);
7263       using unary_t = decltype(unary);
7264       const auto higher1st = [](nullary_t f){ return f(); };
7265       const auto higher2nd = [unary](nullary_t f1){
7266         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7267       };
7268       return higher1st(nullary) + higher2nd(nullary)(unary);
7269     }
7270
7271   }
7272
7273   namespace test_variadic_templates
7274   {
7275
7276     template <int...>
7277     struct sum;
7278
7279     template <int N0, int... N1toN>
7280     struct sum<N0, N1toN...>
7281     {
7282       static constexpr auto value = N0 + sum<N1toN...>::value;
7283     };
7284
7285     template <>
7286     struct sum<>
7287     {
7288       static constexpr auto value = 0;
7289     };
7290
7291     static_assert(sum<>::value == 0, "");
7292     static_assert(sum<1>::value == 1, "");
7293     static_assert(sum<23>::value == 23, "");
7294     static_assert(sum<1, 2>::value == 3, "");
7295     static_assert(sum<5, 5, 11>::value == 21, "");
7296     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7297
7298   }
7299
7300   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7301   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7302   // because of this.
7303   namespace test_template_alias_sfinae
7304   {
7305
7306     struct foo {};
7307
7308     template<typename T>
7309     using member = typename T::member_type;
7310
7311     template<typename T>
7312     void func(...) {}
7313
7314     template<typename T>
7315     void func(member<T>*) {}
7316
7317     void test();
7318
7319     void test() { func<foo>(0); }
7320
7321   }
7322
7323 }  // namespace cxx11
7324
7325 #endif  // __cplusplus >= 201103L
7326
7327
7328
7329 _ACEOF
7330 if ac_fn_cxx_try_compile "$LINENO"; then :
7331   eval $cachevar=yes
7332 else
7333   eval $cachevar=no
7334 fi
7335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336          CXX="$ac_save_CXX"
7337 fi
7338 eval ac_res=\$$cachevar
7339                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7340 $as_echo "$ac_res" >&6; }
7341       if eval test x\$$cachevar = xyes; then
7342         CXX="$CXX $switch"
7343         if test -n "$CXXCPP" ; then
7344           CXXCPP="$CXXCPP $switch"
7345         fi
7346         ac_success=yes
7347         break
7348       fi
7349     done
7350   fi
7351
7352     if test x$ac_success = xno; then
7353                 for alternative in ${ax_cxx_compile_alternatives}; do
7354       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7355         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7356         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7357 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7358 if eval \${$cachevar+:} false; then :
7359   $as_echo_n "(cached) " >&6
7360 else
7361   ac_save_CXX="$CXX"
7362            CXX="$CXX $switch"
7363            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h.  */
7365
7366
7367 // If the compiler admits that it is not ready for C++11, why torture it?
7368 // Hopefully, this will speed up the test.
7369
7370 #ifndef __cplusplus
7371
7372 #error "This is not a C++ compiler"
7373
7374 #elif __cplusplus < 201103L
7375
7376 #error "This is not a C++11 compiler"
7377
7378 #else
7379
7380 namespace cxx11
7381 {
7382
7383   namespace test_static_assert
7384   {
7385
7386     template <typename T>
7387     struct check
7388     {
7389       static_assert(sizeof(int) <= sizeof(T), "not big enough");
7390     };
7391
7392   }
7393
7394   namespace test_final_override
7395   {
7396
7397     struct Base
7398     {
7399       virtual ~Base() {}
7400       virtual void f() {}
7401     };
7402
7403     struct Derived : public Base
7404     {
7405       virtual ~Derived() override {}
7406       virtual void f() override {}
7407     };
7408
7409   }
7410
7411   namespace test_double_right_angle_brackets
7412   {
7413
7414     template < typename T >
7415     struct check {};
7416
7417     typedef check<void> single_type;
7418     typedef check<check<void>> double_type;
7419     typedef check<check<check<void>>> triple_type;
7420     typedef check<check<check<check<void>>>> quadruple_type;
7421
7422   }
7423
7424   namespace test_decltype
7425   {
7426
7427     int
7428     f()
7429     {
7430       int a = 1;
7431       decltype(a) b = 2;
7432       return a + b;
7433     }
7434
7435   }
7436
7437   namespace test_type_deduction
7438   {
7439
7440     template < typename T1, typename T2 >
7441     struct is_same
7442     {
7443       static const bool value = false;
7444     };
7445
7446     template < typename T >
7447     struct is_same<T, T>
7448     {
7449       static const bool value = true;
7450     };
7451
7452     template < typename T1, typename T2 >
7453     auto
7454     add(T1 a1, T2 a2) -> decltype(a1 + a2)
7455     {
7456       return a1 + a2;
7457     }
7458
7459     int
7460     test(const int c, volatile int v)
7461     {
7462       static_assert(is_same<int, decltype(0)>::value == true, "");
7463       static_assert(is_same<int, decltype(c)>::value == false, "");
7464       static_assert(is_same<int, decltype(v)>::value == false, "");
7465       auto ac = c;
7466       auto av = v;
7467       auto sumi = ac + av + 'x';
7468       auto sumf = ac + av + 1.0;
7469       static_assert(is_same<int, decltype(ac)>::value == true, "");
7470       static_assert(is_same<int, decltype(av)>::value == true, "");
7471       static_assert(is_same<int, decltype(sumi)>::value == true, "");
7472       static_assert(is_same<int, decltype(sumf)>::value == false, "");
7473       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7474       return (sumf > 0.0) ? sumi : add(c, v);
7475     }
7476
7477   }
7478
7479   namespace test_noexcept
7480   {
7481
7482     int f() { return 0; }
7483     int g() noexcept { return 0; }
7484
7485     static_assert(noexcept(f()) == false, "");
7486     static_assert(noexcept(g()) == true, "");
7487
7488   }
7489
7490   namespace test_constexpr
7491   {
7492
7493     template < typename CharT >
7494     unsigned long constexpr
7495     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7496     {
7497       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7498     }
7499
7500     template < typename CharT >
7501     unsigned long constexpr
7502     strlen_c(const CharT *const s) noexcept
7503     {
7504       return strlen_c_r(s, 0UL);
7505     }
7506
7507     static_assert(strlen_c("") == 0UL, "");
7508     static_assert(strlen_c("1") == 1UL, "");
7509     static_assert(strlen_c("example") == 7UL, "");
7510     static_assert(strlen_c("another\0example") == 7UL, "");
7511
7512   }
7513
7514   namespace test_rvalue_references
7515   {
7516
7517     template < int N >
7518     struct answer
7519     {
7520       static constexpr int value = N;
7521     };
7522
7523     answer<1> f(int&)       { return answer<1>(); }
7524     answer<2> f(const int&) { return answer<2>(); }
7525     answer<3> f(int&&)      { return answer<3>(); }
7526
7527     void
7528     test()
7529     {
7530       int i = 0;
7531       const int c = 0;
7532       static_assert(decltype(f(i))::value == 1, "");
7533       static_assert(decltype(f(c))::value == 2, "");
7534       static_assert(decltype(f(0))::value == 3, "");
7535     }
7536
7537   }
7538
7539   namespace test_uniform_initialization
7540   {
7541
7542     struct test
7543     {
7544       static const int zero {};
7545       static const int one {1};
7546     };
7547
7548     static_assert(test::zero == 0, "");
7549     static_assert(test::one == 1, "");
7550
7551   }
7552
7553   namespace test_lambdas
7554   {
7555
7556     void
7557     test1()
7558     {
7559       auto lambda1 = [](){};
7560       auto lambda2 = lambda1;
7561       lambda1();
7562       lambda2();
7563     }
7564
7565     int
7566     test2()
7567     {
7568       auto a = [](int i, int j){ return i + j; }(1, 2);
7569       auto b = []() -> int { return '0'; }();
7570       auto c = [=](){ return a + b; }();
7571       auto d = [&](){ return c; }();
7572       auto e = [a, &b](int x) mutable {
7573         const auto identity = [](int y){ return y; };
7574         for (auto i = 0; i < a; ++i)
7575           a += b--;
7576         return x + identity(a + b);
7577       }(0);
7578       return a + b + c + d + e;
7579     }
7580
7581     int
7582     test3()
7583     {
7584       const auto nullary = [](){ return 0; };
7585       const auto unary = [](int x){ return x; };
7586       using nullary_t = decltype(nullary);
7587       using unary_t = decltype(unary);
7588       const auto higher1st = [](nullary_t f){ return f(); };
7589       const auto higher2nd = [unary](nullary_t f1){
7590         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7591       };
7592       return higher1st(nullary) + higher2nd(nullary)(unary);
7593     }
7594
7595   }
7596
7597   namespace test_variadic_templates
7598   {
7599
7600     template <int...>
7601     struct sum;
7602
7603     template <int N0, int... N1toN>
7604     struct sum<N0, N1toN...>
7605     {
7606       static constexpr auto value = N0 + sum<N1toN...>::value;
7607     };
7608
7609     template <>
7610     struct sum<>
7611     {
7612       static constexpr auto value = 0;
7613     };
7614
7615     static_assert(sum<>::value == 0, "");
7616     static_assert(sum<1>::value == 1, "");
7617     static_assert(sum<23>::value == 23, "");
7618     static_assert(sum<1, 2>::value == 3, "");
7619     static_assert(sum<5, 5, 11>::value == 21, "");
7620     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7621
7622   }
7623
7624   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7625   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7626   // because of this.
7627   namespace test_template_alias_sfinae
7628   {
7629
7630     struct foo {};
7631
7632     template<typename T>
7633     using member = typename T::member_type;
7634
7635     template<typename T>
7636     void func(...) {}
7637
7638     template<typename T>
7639     void func(member<T>*) {}
7640
7641     void test();
7642
7643     void test() { func<foo>(0); }
7644
7645   }
7646
7647 }  // namespace cxx11
7648
7649 #endif  // __cplusplus >= 201103L
7650
7651
7652
7653 _ACEOF
7654 if ac_fn_cxx_try_compile "$LINENO"; then :
7655   eval $cachevar=yes
7656 else
7657   eval $cachevar=no
7658 fi
7659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7660            CXX="$ac_save_CXX"
7661 fi
7662 eval ac_res=\$$cachevar
7663                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7664 $as_echo "$ac_res" >&6; }
7665         if eval test x\$$cachevar = xyes; then
7666           CXX="$CXX $switch"
7667           if test -n "$CXXCPP" ; then
7668             CXXCPP="$CXXCPP $switch"
7669           fi
7670           ac_success=yes
7671           break
7672         fi
7673       done
7674       if test x$ac_success = xyes; then
7675         break
7676       fi
7677     done
7678   fi
7679       CXX_FOR_BUILD="$CXX"
7680     CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7681     CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7682     CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7683     CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7684     CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7685   ac_ext=c
7686 ac_cpp='$CPP $CPPFLAGS'
7687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7690
7691   if test x$ax_cxx_compile_cxx11_required = xtrue; then
7692     if test x$ac_success = xno; then
7693       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7694     fi
7695   fi
7696   if test x$ac_success = xno; then
7697     HAVE_CXX11_FOR_BUILD=0
7698     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7699 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7700   else
7701     HAVE_CXX11_FOR_BUILD=1
7702
7703 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7704
7705   fi
7706
7707
7708   fi
7709 fi
7710
7711 # Used for setting $lt_cv_objdir
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7713 $as_echo_n "checking for objdir... " >&6; }
7714 if ${lt_cv_objdir+:} false; then :
7715   $as_echo_n "(cached) " >&6
7716 else
7717   rm -f .libs 2>/dev/null
7718 mkdir .libs 2>/dev/null
7719 if test -d .libs; then
7720   lt_cv_objdir=.libs
7721 else
7722   # MS-DOS does not allow filenames that begin with a dot.
7723   lt_cv_objdir=_libs
7724 fi
7725 rmdir .libs 2>/dev/null
7726 fi
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7728 $as_echo "$lt_cv_objdir" >&6; }
7729 objdir=$lt_cv_objdir
7730
7731
7732
7733
7734
7735 cat >>confdefs.h <<_ACEOF
7736 #define LT_OBJDIR "$lt_cv_objdir/"
7737 _ACEOF
7738
7739
7740
7741 # Check for GMP, MPFR and MPC
7742 gmplibs="-lmpc -lmpfr -lgmp"
7743 gmpinc=
7744 have_gmp=no
7745
7746 # Specify a location for mpc
7747 # check for this first so it ends up on the link line before mpfr.
7748
7749 # Check whether --with-mpc was given.
7750 if test "${with_mpc+set}" = set; then :
7751   withval=$with_mpc;
7752 fi
7753
7754
7755 # Check whether --with-mpc-include was given.
7756 if test "${with_mpc_include+set}" = set; then :
7757   withval=$with_mpc_include;
7758 fi
7759
7760
7761 # Check whether --with-mpc-lib was given.
7762 if test "${with_mpc_lib+set}" = set; then :
7763   withval=$with_mpc_lib;
7764 fi
7765
7766
7767 if test "x$with_mpc" != x; then
7768   gmplibs="-L$with_mpc/lib $gmplibs"
7769   gmpinc="-I$with_mpc/include $gmpinc"
7770 fi
7771 if test "x$with_mpc_include" != x; then
7772   gmpinc="-I$with_mpc_include $gmpinc"
7773 fi
7774 if test "x$with_mpc_lib" != x; then
7775   gmplibs="-L$with_mpc_lib $gmplibs"
7776 fi
7777 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7778   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7779   gmpinc='-I$$s/mpc/src '"$gmpinc"
7780   # Do not test the mpc version.  Assume that it is sufficient, since
7781   # it is in the source tree, and the library has not been built yet
7782   # but it would be included on the link line in the version check below
7783   # hence making the test fail.
7784   have_gmp=yes
7785 fi
7786
7787 # Specify a location for mpfr
7788 # check for this first so it ends up on the link line before gmp.
7789
7790 # Check whether --with-mpfr-dir was given.
7791 if test "${with_mpfr_dir+set}" = set; then :
7792   withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
7793 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7794 fi
7795
7796
7797
7798 # Check whether --with-mpfr was given.
7799 if test "${with_mpfr+set}" = set; then :
7800   withval=$with_mpfr;
7801 fi
7802
7803
7804 # Check whether --with-mpfr-include was given.
7805 if test "${with_mpfr_include+set}" = set; then :
7806   withval=$with_mpfr_include;
7807 fi
7808
7809
7810 # Check whether --with-mpfr-lib was given.
7811 if test "${with_mpfr_lib+set}" = set; then :
7812   withval=$with_mpfr_lib;
7813 fi
7814
7815
7816 if test "x$with_mpfr" != x; then
7817   gmplibs="-L$with_mpfr/lib $gmplibs"
7818   gmpinc="-I$with_mpfr/include $gmpinc"
7819 fi
7820 if test "x$with_mpfr_include" != x; then
7821   gmpinc="-I$with_mpfr_include $gmpinc"
7822 fi
7823 if test "x$with_mpfr_lib" != x; then
7824   gmplibs="-L$with_mpfr_lib $gmplibs"
7825 fi
7826 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7827   # MPFR v3.1.0 moved the sources into a src sub-directory.
7828   if ! test -d ${srcdir}/mpfr/src; then
7829     as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7830   fi
7831   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7832   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7833   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7834   # Do not test the mpfr version.  Assume that it is sufficient, since
7835   # it is in the source tree, and the library has not been built yet
7836   # but it would be included on the link line in the version check below
7837   # hence making the test fail.
7838   have_gmp=yes
7839 fi
7840
7841 # Specify a location for gmp
7842
7843 # Check whether --with-gmp-dir was given.
7844 if test "${with_gmp_dir+set}" = set; then :
7845   withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
7846 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7847 fi
7848
7849
7850
7851 # Check whether --with-gmp was given.
7852 if test "${with_gmp+set}" = set; then :
7853   withval=$with_gmp;
7854 fi
7855
7856
7857 # Check whether --with-gmp-include was given.
7858 if test "${with_gmp_include+set}" = set; then :
7859   withval=$with_gmp_include;
7860 fi
7861
7862
7863 # Check whether --with-gmp-lib was given.
7864 if test "${with_gmp_lib+set}" = set; then :
7865   withval=$with_gmp_lib;
7866 fi
7867
7868
7869
7870 if test "x$with_gmp" != x; then
7871   gmplibs="-L$with_gmp/lib $gmplibs"
7872   gmpinc="-I$with_gmp/include $gmpinc"
7873 fi
7874 if test "x$with_gmp_include" != x; then
7875   gmpinc="-I$with_gmp_include $gmpinc"
7876 fi
7877 if test "x$with_gmp_lib" != x; then
7878   gmplibs="-L$with_gmp_lib $gmplibs"
7879 fi
7880 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
7881   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
7882   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
7883   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7884   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7885   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
7886   # Do not test the gmp version.  Assume that it is sufficient, since
7887   # it is in the source tree, and the library has not been built yet
7888   # but it would be included on the link line in the version check below
7889   # hence making the test fail.
7890   have_gmp=yes
7891 fi
7892
7893 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
7894   have_gmp=yes
7895   saved_CFLAGS="$CFLAGS"
7896   CFLAGS="$CFLAGS $gmpinc"
7897   # Check for the recommended and required versions of GMP.
7898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
7899 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
7900
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h.  */
7903 #include "gmp.h"
7904 int
7905 main ()
7906 {
7907
7908   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7909   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7910   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
7911   choke me
7912   #endif
7913
7914   ;
7915   return 0;
7916 }
7917 _ACEOF
7918 if ac_fn_c_try_compile "$LINENO"; then :
7919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h.  */
7921 #include <gmp.h>
7922 int
7923 main ()
7924 {
7925
7926   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7927   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7928   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
7929   choke me
7930   #endif
7931
7932   ;
7933   return 0;
7934 }
7935 _ACEOF
7936 if ac_fn_c_try_compile "$LINENO"; then :
7937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7938 $as_echo "yes" >&6; }
7939 else
7940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7941 $as_echo "buggy but acceptable" >&6; }
7942 fi
7943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7944 else
7945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }; have_gmp=no
7947 fi
7948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949
7950   # If we have GMP, check the MPFR version.
7951   if test x"$have_gmp" = xyes; then
7952     # Check for the recommended and required versions of MPFR.
7953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
7954 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
7955     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h.  */
7957 #include <gmp.h>
7958     #include <mpfr.h>
7959 int
7960 main ()
7961 {
7962
7963     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
7964     choke me
7965     #endif
7966
7967   ;
7968   return 0;
7969 }
7970 _ACEOF
7971 if ac_fn_c_try_compile "$LINENO"; then :
7972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h.  */
7974 #include <gmp.h>
7975     #include <mpfr.h>
7976 int
7977 main ()
7978 {
7979
7980     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
7981     choke me
7982     #endif
7983
7984   ;
7985   return 0;
7986 }
7987 _ACEOF
7988 if ac_fn_c_try_compile "$LINENO"; then :
7989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7990 $as_echo "yes" >&6; }
7991 else
7992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7993 $as_echo "buggy but acceptable" >&6; }
7994 fi
7995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7996 else
7997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7998 $as_echo "no" >&6; }; have_gmp=no
7999 fi
8000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001   fi
8002
8003   # Check for the MPC header version.
8004   if test x"$have_gmp" = xyes ; then
8005     # Check for the recommended and required versions of MPC.
8006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8007 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8008     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009 /* end confdefs.h.  */
8010 #include <mpc.h>
8011 int
8012 main ()
8013 {
8014
8015     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8016     choke me
8017     #endif
8018
8019   ;
8020   return 0;
8021 }
8022 _ACEOF
8023 if ac_fn_c_try_compile "$LINENO"; then :
8024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h.  */
8026 #include <mpc.h>
8027 int
8028 main ()
8029 {
8030
8031     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8032     choke me
8033     #endif
8034
8035   ;
8036   return 0;
8037 }
8038 _ACEOF
8039 if ac_fn_c_try_compile "$LINENO"; then :
8040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8041 $as_echo "yes" >&6; }
8042 else
8043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8044 $as_echo "buggy but acceptable" >&6; }
8045 fi
8046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8047 else
8048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }; have_gmp=no
8050 fi
8051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8052   fi
8053
8054   # Now check the MPFR library.
8055   if test x"$have_gmp" = xyes; then
8056     saved_LIBS="$LIBS"
8057     LIBS="$LIBS $gmplibs"
8058     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8059 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8060     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h.  */
8062 #include <mpc.h>
8063 int
8064 main ()
8065 {
8066
8067     mpfr_t n;
8068     mpfr_t x;
8069     mpc_t c;
8070     int t;
8071     mpfr_init (n);
8072     mpfr_init (x);
8073     mpfr_atan2 (n, n, x, MPFR_RNDN);
8074     mpfr_erfc (n, x, MPFR_RNDN);
8075     mpfr_subnormalize (x, t, MPFR_RNDN);
8076     mpfr_clear(n);
8077     mpfr_clear(x);
8078     mpc_init2 (c, 53);
8079     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8080     mpc_cosh (c, c, MPC_RNDNN);
8081     mpc_pow (c, c, c, MPC_RNDNN);
8082     mpc_acosh (c, c, MPC_RNDNN);
8083     mpc_clear (c);
8084
8085   ;
8086   return 0;
8087 }
8088 _ACEOF
8089 if ac_fn_c_try_link "$LINENO"; then :
8090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8091 $as_echo "yes" >&6; }
8092 else
8093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094 $as_echo "no" >&6; }; have_gmp=no
8095 fi
8096 rm -f core conftest.err conftest.$ac_objext \
8097     conftest$ac_exeext conftest.$ac_ext
8098     LIBS="$saved_LIBS"
8099   fi
8100
8101   CFLAGS="$saved_CFLAGS"
8102
8103 # The library versions listed in the error message below should match
8104 # the HARD-minimums enforced above.
8105   if test x$have_gmp != xyes; then
8106     as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8107 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8108 their locations.  Source code for these libraries can be found at
8109 their respective hosting sites as well as at
8110 https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
8111 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
8112 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8113 make sure that you have installed both the libraries and the header
8114 files.  They may be located in separate packages." "$LINENO" 5
8115   fi
8116 fi
8117
8118 # Flags needed for both GMP, MPFR and/or MPC.
8119
8120
8121
8122
8123
8124
8125
8126 # Libraries to use for stage1 or when not bootstrapping.
8127
8128 # Check whether --with-stage1-libs was given.
8129 if test "${with_stage1_libs+set}" = set; then :
8130   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8131    stage1_libs=
8132  else
8133    stage1_libs=$withval
8134  fi
8135 else
8136   stage1_libs=
8137 fi
8138
8139
8140
8141 # Whether or not to use -static-libstdc++ and -static-libgcc.  The
8142 # default is yes if gcc is being built; no otherwise.  The reason for
8143 # this default is that gdb is sometimes linked against GNU Source
8144 # Highlight, which is a shared library that uses C++ exceptions.  In
8145 # this case, -static-libstdc++ will cause crashes.
8146
8147 # Check whether --with-static-standard-libraries was given.
8148 if test "${with_static_standard_libraries+set}" = set; then :
8149   withval=$with_static_standard_libraries;
8150 else
8151   with_static_standard_libraries=auto
8152 fi
8153
8154 if test "$with_static_standard_libraries" = auto; then
8155   with_static_standard_libraries=$have_compiler
8156 fi
8157
8158 # Linker flags to use for stage1 or when not bootstrapping.
8159
8160 # Check whether --with-stage1-ldflags was given.
8161 if test "${with_stage1_ldflags+set}" = set; then :
8162   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8163    stage1_ldflags=
8164  else
8165    stage1_ldflags=$withval
8166  fi
8167 else
8168   stage1_ldflags=
8169  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8170  # if supported.  But if the user explicitly specified the libraries to use,
8171  # trust that they are doing what they want.
8172  if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8173      -a "$have_static_libs" = yes; then
8174    stage1_ldflags="-static-libstdc++ -static-libgcc"
8175  fi
8176 fi
8177
8178
8179
8180 # Libraries to use for stage2 and later builds.
8181
8182 # Check whether --with-boot-libs was given.
8183 if test "${with_boot_libs+set}" = set; then :
8184   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8185    poststage1_libs=
8186  else
8187    poststage1_libs=$withval
8188  fi
8189 else
8190   poststage1_libs=
8191 fi
8192
8193
8194
8195 # Linker flags to use for stage2 and later builds.
8196
8197 # Check whether --with-boot-ldflags was given.
8198 if test "${with_boot_ldflags+set}" = set; then :
8199   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8200    poststage1_ldflags=
8201  else
8202    poststage1_ldflags=$withval
8203  fi
8204 else
8205   poststage1_ldflags=
8206  # In stages 2 and 3, default to linking libstdc++ and libgcc
8207  # statically.  But if the user explicitly specified the libraries to
8208  # use, trust that they are doing what they want.
8209  if test "$poststage1_libs" = ""; then
8210    poststage1_ldflags="-static-libstdc++ -static-libgcc"
8211  fi
8212 fi
8213
8214
8215
8216 # GCC GRAPHITE dependency isl.
8217 # Basic setup is inlined here, actual checks are in config/isl.m4
8218
8219
8220 # Check whether --with-isl was given.
8221 if test "${with_isl+set}" = set; then :
8222   withval=$with_isl;
8223 fi
8224
8225
8226 # Treat --without-isl as a request to disable
8227 # GRAPHITE support and skip all following checks.
8228 if test "x$with_isl" != "xno"; then
8229   # Check for isl
8230
8231
8232 # Check whether --with-isl-include was given.
8233 if test "${with_isl_include+set}" = set; then :
8234   withval=$with_isl_include;
8235 fi
8236
8237
8238 # Check whether --with-isl-lib was given.
8239 if test "${with_isl_lib+set}" = set; then :
8240   withval=$with_isl_lib;
8241 fi
8242
8243
8244   # Check whether --enable-isl-version-check was given.
8245 if test "${enable_isl_version_check+set}" = set; then :
8246   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8247 else
8248   ENABLE_ISL_CHECK=yes
8249 fi
8250
8251
8252   # Initialize isllibs and islinc.
8253   case $with_isl in
8254     no)
8255       isllibs=
8256       islinc=
8257       ;;
8258     "" | yes)
8259       ;;
8260     *)
8261       isllibs="-L$with_isl/lib"
8262       islinc="-I$with_isl/include"
8263       ;;
8264   esac
8265   if test "x${with_isl_include}" != x ; then
8266     islinc="-I$with_isl_include"
8267   fi
8268   if test "x${with_isl_lib}" != x; then
8269     isllibs="-L$with_isl_lib"
8270   fi
8271         if test "x${islinc}" = x && test "x${isllibs}" = x \
8272      && test -d ${srcdir}/isl; then
8273     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8274     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8275     ENABLE_ISL_CHECK=no
8276     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8277 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8278   fi
8279
8280   isllibs="${isllibs} -lisl"
8281
8282
8283
8284   if test "${ENABLE_ISL_CHECK}" = yes ; then
8285     _isl_saved_CFLAGS=$CFLAGS
8286     _isl_saved_LDFLAGS=$LDFLAGS
8287     _isl_saved_LIBS=$LIBS
8288
8289     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8290     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8291     LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8292
8293     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8294 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8295     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296 /* end confdefs.h.  */
8297 #include <isl/schedule.h>
8298 int
8299 main ()
8300 {
8301 isl_options_set_schedule_serialize_sccs (NULL, 0);
8302   ;
8303   return 0;
8304 }
8305 _ACEOF
8306 if ac_fn_c_try_link "$LINENO"; then :
8307   gcc_cv_isl=yes
8308 else
8309   gcc_cv_isl=no
8310 fi
8311 rm -f core conftest.err conftest.$ac_objext \
8312     conftest$ac_exeext conftest.$ac_ext
8313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8314 $as_echo "$gcc_cv_isl" >&6; }
8315
8316     if test "${gcc_cv_isl}" = no ; then
8317       { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8318 $as_echo "required isl version is 0.15 or later" >&6; }
8319     fi
8320
8321     CFLAGS=$_isl_saved_CFLAGS
8322     LDFLAGS=$_isl_saved_LDFLAGS
8323     LIBS=$_isl_saved_LIBS
8324   fi
8325
8326
8327
8328
8329
8330
8331   if test "x${with_isl}" = xno; then
8332     graphite_requested=no
8333   elif test "x${with_isl}" != x \
8334     || test "x${with_isl_include}" != x \
8335     || test "x${with_isl_lib}" != x ; then
8336     graphite_requested=yes
8337   else
8338     graphite_requested=no
8339   fi
8340
8341
8342
8343   if test "${gcc_cv_isl}" = no ; then
8344     isllibs=
8345     islinc=
8346   fi
8347
8348   if test "${graphite_requested}" = yes \
8349     && test "x${isllibs}" = x \
8350     && test "x${islinc}" = x ; then
8351
8352     as_fn_error $? "Unable to find a usable isl.  See config.log for details." "$LINENO" 5
8353   fi
8354
8355
8356 fi
8357
8358 # If the isl check failed, disable builds of in-tree variant of isl
8359 if test "x$with_isl" = xno ||
8360    test "x$gcc_cv_isl" = xno; then
8361   noconfigdirs="$noconfigdirs isl"
8362   islinc=
8363 fi
8364
8365
8366
8367
8368 # Check for LTO support.
8369 # Check whether --enable-lto was given.
8370 if test "${enable_lto+set}" = set; then :
8371   enableval=$enable_lto; enable_lto=$enableval
8372 else
8373   enable_lto=yes; default_enable_lto=yes
8374 fi
8375
8376
8377
8378
8379
8380 target_elf=no
8381 case $target in
8382   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8383   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8384   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8385   nvptx-*-none)
8386     target_elf=no
8387     ;;
8388   *)
8389     target_elf=yes
8390     ;;
8391 esac
8392
8393 if test $target_elf = yes; then :
8394   # ELF platforms build the lto-plugin always.
8395   build_lto_plugin=yes
8396
8397 else
8398   if test x"$default_enable_lto" = x"yes" ; then
8399     case $target in
8400       *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8401       # On other non-ELF platforms, LTO has yet to be validated.
8402       *) enable_lto=no ;;
8403     esac
8404   else
8405   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8406   # It would also be nice to check the binutils support, but we don't
8407   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
8408   # warn during gcc/ subconfigure; unless you're bootstrapping with
8409   # -flto it won't be needed until after installation anyway.
8410     case $target in
8411       *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8412       *) if test x"$enable_lto" = x"yes"; then
8413         as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8414         fi
8415       ;;
8416     esac
8417   fi
8418   # Among non-ELF, only Windows platforms support the lto-plugin so far.
8419   # Build it unless LTO was explicitly disabled.
8420   case $target in
8421     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8422     *) ;;
8423   esac
8424
8425 fi
8426
8427
8428 # Check whether --enable-linker-plugin-configure-flags was given.
8429 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8430   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8431 else
8432   extra_linker_plugin_configure_flags=
8433 fi
8434
8435
8436 # Check whether --enable-linker-plugin-flags was given.
8437 if test "${enable_linker_plugin_flags+set}" = set; then :
8438   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8439 else
8440   extra_linker_plugin_flags=
8441 fi
8442
8443
8444
8445 # Enable --enable-host-shared.
8446 # Checked early to determine whether jit is an 'all' language
8447 # Check whether --enable-host-shared was given.
8448 if test "${enable_host_shared+set}" = set; then :
8449   enableval=$enable_host_shared; host_shared=$enableval
8450  case $target in
8451    x86_64-*-darwin* | aarch64-*-darwin*)
8452      if test x$host_shared != xyes ; then
8453        # PIC is the default, and actually cannot be switched off.
8454        echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8455        host_shared=yes
8456      fi ;;
8457   *) ;;
8458  esac
8459 else
8460   case $target in
8461   x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8462   *) host_shared=no ;;
8463  esac
8464 fi
8465
8466
8467
8468 # By default, C and C++ are the only stage 1 languages.
8469 stage1_languages=,c,
8470
8471 # Target libraries that we bootstrap.
8472 bootstrap_target_libs=,target-libgcc,
8473
8474 # Figure out what language subdirectories are present.
8475 # Look if the user specified --enable-languages="..."; if not, use
8476 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8477 # go away some day.
8478 # NB:  embedded tabs in this IF block -- do not untabify
8479 if test -d ${srcdir}/gcc; then
8480   if test x"${enable_languages+set}" != xset; then
8481     if test x"${LANGUAGES+set}" = xset; then
8482       enable_languages="${LANGUAGES}"
8483         echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8484     else
8485       enable_languages=default
8486     fi
8487   else
8488     if test x"${enable_languages}" = x ||
8489        test x"${enable_languages}" = xyes;
8490        then
8491       echo configure.ac: --enable-languages needs at least one language argument 1>&2
8492       exit 1
8493     fi
8494   fi
8495   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
8496
8497   # 'f95' is the old name for the 'fortran' language. We issue a warning
8498   # and make the substitution.
8499   case ,${enable_languages}, in
8500     *,f95,*)
8501       echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8502       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8503       ;;
8504   esac
8505
8506   # If bootstrapping, C++ must be enabled.
8507   case ",$enable_languages,:$enable_bootstrap" in
8508     *,c++,*:*) ;;
8509     *:yes)
8510       if test -f ${srcdir}/gcc/cp/config-lang.in; then
8511         enable_languages="${enable_languages},c++"
8512       else
8513         as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8514       fi
8515       ;;
8516   esac
8517
8518   # First scan to see if an enabled language requires some other language.
8519   # We assume that a given config-lang.in will list all the language
8520   # front ends it requires, even if some are required indirectly.
8521   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8522     case ${lang_frag} in
8523       ..) ;;
8524       # The odd quoting in the next line works around
8525       # an apparent bug in bash 1.12 on linux.
8526       ${srcdir}/gcc/[*]/config-lang.in) ;;
8527       *)
8528         # From the config-lang.in, get $language, $lang_requires, and
8529         # $lang_requires_boot_languages.
8530         language=
8531         lang_requires=
8532         lang_requires_boot_languages=
8533         # set srcdir during sourcing lang_frag to the gcc dir.
8534         # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8535         # polutes this shell
8536         saved_srcdir=${srcdir}
8537         srcdir=${srcdir}/gcc . ${lang_frag}
8538         srcdir=${saved_srcdir}
8539         for other in ${lang_requires} ${lang_requires_boot_languages}; do
8540           case ,${enable_languages}, in
8541             *,$other,*) ;;
8542             *,default,*) ;;
8543             *,all,*) ;;
8544             *,$language,*)
8545               echo " \`$other' language required by \`$language'; enabling" 1>&2
8546               enable_languages="${enable_languages},${other}"
8547               ;;
8548           esac
8549         done
8550         for other in ${lang_requires_boot_languages} ; do
8551           if test "$other" != "c"; then
8552             case ,${enable_stage1_languages}, in
8553               *,$other,*) ;;
8554               *,default,*) ;;
8555               *,all,*) ;;
8556               *)
8557                 case ,${enable_languages}, in
8558                   *,$language,*)
8559                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8560                     enable_stage1_languages="$enable_stage1_languages,${other}"
8561                     ;;
8562                 esac
8563                 ;;
8564             esac
8565           fi
8566         done
8567         ;;
8568     esac
8569   done
8570
8571   new_enable_languages=,c,
8572
8573   # If LTO is enabled, add the LTO front end.
8574   if test "$enable_lto" = "yes" ; then
8575     case ,${enable_languages}, in
8576       *,lto,*) ;;
8577       *) enable_languages="${enable_languages},lto" ;;
8578     esac
8579     if test "${build_lto_plugin}" = "yes" ; then
8580       configdirs="$configdirs lto-plugin"
8581     fi
8582   fi
8583
8584   # If we're building an offloading compiler, add the LTO front end.
8585   if test x"$enable_as_accelerator_for" != x ; then
8586     case ,${enable_languages}, in
8587       *,lto,*) ;;
8588       *) enable_languages="${enable_languages},lto" ;;
8589     esac
8590   fi
8591
8592   missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8593   potential_languages=,c,
8594
8595   enabled_target_libs=
8596   disabled_target_libs=
8597
8598   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8599     case ${lang_frag} in
8600       ..) ;;
8601       # The odd quoting in the next line works around
8602       # an apparent bug in bash 1.12 on linux.
8603       ${srcdir}/gcc/[*]/config-lang.in) ;;
8604       *)
8605         # From the config-lang.in, get $language, $target_libs,
8606         # $lang_dirs, $boot_language, and $build_by_default
8607         language=
8608         target_libs=
8609         lang_dirs=
8610         subdir_requires=
8611         boot_language=no
8612         build_by_default=yes
8613         # set srcdir during sourcing.  See above about save & restore
8614         saved_srcdir=${srcdir}
8615         srcdir=${srcdir}/gcc . ${lang_frag}
8616         srcdir=${saved_srcdir}
8617         if test x${language} = x; then
8618           echo "${lang_frag} doesn't set \$language." 1>&2
8619           exit 1
8620         fi
8621
8622         if test "$language" = "c++"; then
8623           boot_language=yes
8624         fi
8625
8626         add_this_lang=no
8627         # C is always enabled, so no need to add it again
8628         if test "$language" != "c"; then
8629           case ,${enable_languages}, in
8630             *,${language},*)
8631               # Language was explicitly selected; include it
8632               add_this_lang=yes
8633               ;;
8634             *,all,*)
8635               # All languages are enabled
8636               add_this_lang=all
8637               ;;
8638             *,default,*)
8639               # 'default' was selected, select it if it is a default language
8640               add_this_lang=${build_by_default}
8641               ;;
8642           esac
8643         fi
8644
8645         # Disable languages that need other directories if these aren't available.
8646         for i in $subdir_requires; do
8647           test -f "$srcdir/gcc/$i/config-lang.in" && continue
8648           case ${add_this_lang} in
8649             yes)
8650               # Specifically requested language; tell them.
8651               as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8652               ;;
8653             all)
8654               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8655 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8656               add_this_lang=unsupported
8657               ;;
8658             *)
8659               # Silently disable.
8660               add_this_lang=unsupported
8661               ;;
8662           esac
8663         done
8664
8665         # Disable Ada if no preexisting GNAT is available.
8666         case ${add_this_lang}:${language}:${have_gnat} in
8667           yes:ada:no)
8668             # Specifically requested language; tell them.
8669             as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8670             ;;
8671           all:ada:no)
8672             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8673 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8674             add_this_lang=unsupported
8675             ;;
8676           *:ada:no)
8677             # Silently disable.
8678             add_this_lang=unsupported
8679             ;;
8680         esac
8681
8682         # Disable jit if -enable-host-shared not specified
8683         # but not if building for Mingw. All code in Windows
8684         # is position independent code (PIC).
8685         case $target in
8686           *mingw*) ;;
8687           *)
8688           case ${add_this_lang}:${language}:${host_shared} in
8689             yes:jit:no)
8690                    # PR jit/64780: explicitly specify --enable-host-shared
8691             as_fn_error $? "
8692 Enabling language \"jit\" requires --enable-host-shared.
8693
8694 --enable-host-shared typically slows the rest of the compiler down by
8695 a few %, so you must explicitly enable it.
8696
8697 If you want to build both the jit and the regular compiler, it is often
8698 best to do this via two separate configure/builds, in separate
8699 directories, to avoid imposing the performance cost of
8700 --enable-host-shared on the regular compiler." "$LINENO" 5
8701                     ;;
8702             all:jit:no)
8703               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8704 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8705               add_this_lang=unsupported
8706               ;;
8707             *:jit:no)
8708               # Silently disable.
8709               add_this_lang=unsupported
8710               ;;
8711                 esac
8712           ;;
8713         esac
8714
8715         # Disable a language that is unsupported by the target.
8716         case "${add_this_lang}: $unsupported_languages " in
8717           no:*) ;;
8718           unsupported:*) ;;
8719           *:*" $language "*)
8720             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8721 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8722             add_this_lang=unsupported
8723             ;;
8724         esac
8725
8726         case $add_this_lang in
8727           unsupported)
8728             # Remove language-dependent dirs.
8729             disabled_target_libs="$disabled_target_libs $target_libs"
8730             noconfigdirs="$noconfigdirs $lang_dirs"
8731             ;;
8732           no)
8733             # Remove language-dependent dirs; still show language as supported.
8734             disabled_target_libs="$disabled_target_libs $target_libs"
8735             noconfigdirs="$noconfigdirs $lang_dirs"
8736             potential_languages="${potential_languages}${language},"
8737             ;;
8738           all|yes)
8739             new_enable_languages="${new_enable_languages}${language},"
8740             potential_languages="${potential_languages}${language},"
8741             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8742             enabled_target_libs="$enabled_target_libs $target_libs"
8743             case "${boot_language}:,$enable_stage1_languages," in
8744               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8745                 # Add to (comma-separated) list of stage 1 languages.
8746                 case ",$stage1_languages," in
8747                   *,$language,* | ,yes, | ,all,) ;;
8748                   *) stage1_languages="${stage1_languages}${language}," ;;
8749                 esac
8750                 # We need to bootstrap any supporting libraries.
8751                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
8752                 ;;
8753             esac
8754             ;;
8755         esac
8756         ;;
8757     esac
8758   done
8759
8760   # Add target libraries which are only needed for disabled languages
8761   # to noconfigdirs.
8762   if test -n "$disabled_target_libs"; then
8763     for dir in $disabled_target_libs; do
8764       case " $enabled_target_libs " in
8765       *" ${dir} "*) ;;
8766       *) noconfigdirs="$noconfigdirs $dir" ;;
8767       esac
8768     done
8769   fi
8770
8771   # Check whether --enable-stage1-languages was given.
8772 if test "${enable_stage1_languages+set}" = set; then :
8773   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8774     ,no,|,,)
8775       # Set it to something that will have no effect in the loop below
8776       enable_stage1_languages=c ;;
8777     ,yes,)
8778       enable_stage1_languages=`echo $new_enable_languages | \
8779         sed -e "s/^,//" -e "s/,$//" ` ;;
8780     *,all,*)
8781       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8782         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8783   esac
8784
8785   # Add "good" languages from enable_stage1_languages to stage1_languages,
8786   # while "bad" languages go in missing_languages.  Leave no duplicates.
8787   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8788     case $potential_languages in
8789       *,$i,*)
8790         case $stage1_languages in
8791           *,$i,*) ;;
8792           *) stage1_languages="$stage1_languages$i," ;;
8793         esac ;;
8794       *)
8795         case $missing_languages in
8796           *,$i,*) ;;
8797           *) missing_languages="$missing_languages$i," ;;
8798         esac ;;
8799      esac
8800   done
8801 fi
8802
8803
8804   # Remove leading/trailing commas that were added for simplicity
8805   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8806   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8807   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8808   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8809
8810   if test "x$missing_languages" != x; then
8811     as_fn_error $? "
8812 The following requested languages could not be built: ${missing_languages}
8813 Supported languages are: ${potential_languages}" "$LINENO" 5
8814   fi
8815   if test "x$new_enable_languages" != "x$enable_languages"; then
8816     echo The following languages will be built: ${new_enable_languages}
8817     enable_languages="$new_enable_languages"
8818   fi
8819
8820
8821   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8822 fi
8823
8824 # Handle --disable-<component> generically.
8825 for dir in $configdirs $build_configdirs $target_configdirs ; do
8826   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8827   varname=`echo $dirname | sed -e s/+/_/g`
8828   if eval test x\${enable_${varname}} "=" xno ; then
8829     noconfigdirs="$noconfigdirs $dir"
8830   fi
8831 done
8832
8833 # Check for Boehm's garbage collector
8834 # Check whether --enable-objc-gc was given.
8835 if test "${enable_objc_gc+set}" = set; then :
8836   enableval=$enable_objc_gc;
8837 fi
8838
8839
8840 # Check whether --with-target-bdw-gc was given.
8841 if test "${with_target_bdw_gc+set}" = set; then :
8842   withval=$with_target_bdw_gc;
8843 fi
8844
8845
8846 # Check whether --with-target-bdw-gc-include was given.
8847 if test "${with_target_bdw_gc_include+set}" = set; then :
8848   withval=$with_target_bdw_gc_include;
8849 fi
8850
8851
8852 # Check whether --with-target-bdw-gc-lib was given.
8853 if test "${with_target_bdw_gc_lib+set}" = set; then :
8854   withval=$with_target_bdw_gc_lib;
8855 fi
8856
8857
8858 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
8859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8860 $as_echo_n "checking for bdw garbage collector... " >&6; }
8861   if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
8862         { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8863 $as_echo "using bdw-gc in default locations" >&6; }
8864   else
8865         if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
8866       as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
8867     elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
8868       as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
8869     else
8870       { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8871 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8872     fi
8873   fi
8874 esac
8875
8876 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
8877 case ,${enable_languages}, in
8878   *,c++,*)
8879     # Disable libitm, libsanitizer if we're not building libstdc++
8880     case "${noconfigdirs}" in
8881       *target-libstdc++-v3*)
8882         noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
8883         ;;
8884       *) ;;
8885     esac
8886     ;;
8887   *)
8888     noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
8889     ;;
8890 esac
8891
8892 # If gcc/ is not in the source tree then we'll not be building a
8893 # target compiler, assume in that case we don't want to build any
8894 # target libraries or tools.
8895 #
8896 # This was added primarily for the benefit for binutils-gdb who reuse
8897 # this configure script, but don't always have target tools available.
8898 if test ! -d ${srcdir}/gcc; then
8899    skipdirs="${skipdirs} ${target_configdirs}"
8900 fi
8901
8902 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
8903 # $build_configdirs and $target_configdirs.
8904 # If we have the source for $noconfigdirs entries, add them to $notsupp.
8905
8906 notsupp=""
8907 for dir in . $skipdirs $noconfigdirs ; do
8908   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8909   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8910     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
8911     if test -r $srcdir/$dirname/configure ; then
8912       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8913         true
8914       else
8915         notsupp="$notsupp $dir"
8916       fi
8917     fi
8918   fi
8919   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8920     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
8921     if test -r $srcdir/$dirname/configure ; then
8922       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8923         true
8924       else
8925         notsupp="$notsupp $dir"
8926       fi
8927     fi
8928   fi
8929   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8930     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
8931     if test -r $srcdir/$dirname/configure ; then
8932       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8933         true
8934       else
8935         notsupp="$notsupp $dir"
8936       fi
8937     fi
8938   fi
8939 done
8940
8941 # Quietly strip out all directories which aren't configurable in this tree.
8942 # This relies on all configurable subdirectories being autoconfiscated, which
8943 # is now the case.
8944 build_configdirs_all="$build_configdirs"
8945 build_configdirs=
8946 for i in ${build_configdirs_all} ; do
8947   j=`echo $i | sed -e s/build-//g`
8948   if test -f ${srcdir}/$j/configure ; then
8949     build_configdirs="${build_configdirs} $i"
8950   fi
8951 done
8952
8953 configdirs_all="$configdirs"
8954 configdirs=
8955 for i in ${configdirs_all} ; do
8956   if test -f ${srcdir}/$i/configure ; then
8957     configdirs="${configdirs} $i"
8958   fi
8959 done
8960
8961 target_configdirs_all="$target_configdirs"
8962 target_configdirs=
8963 for i in ${target_configdirs_all} ; do
8964   j=`echo $i | sed -e s/target-//g`
8965   if test -f ${srcdir}/$j/configure ; then
8966     target_configdirs="${target_configdirs} $i"
8967   fi
8968 done
8969
8970 # libiberty-linker-plugin is special: it doesn't have its own source directory,
8971 # so we have to add it after the preceding checks.
8972 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
8973 then
8974   case " $configdirs " in
8975     *" libiberty "*)
8976       # If we can build libiberty, we can also build libiberty-linker-plugin.
8977       configdirs="$configdirs libiberty-linker-plugin"
8978       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
8979         --with-libiberty=../libiberty-linker-plugin";;
8980     *)
8981       as_fn_error $? "libiberty missing" "$LINENO" 5;;
8982   esac
8983 fi
8984
8985 # Sometimes we have special requirements for the host libiberty.
8986 extra_host_libiberty_configure_flags=
8987 extra_host_zlib_configure_flags=
8988 case " $configdirs " in
8989   *" lto-plugin "* | *" libcc1 "*)
8990     # When these are to be built as shared libraries, the same applies to
8991     # libiberty.
8992     extra_host_libiberty_configure_flags=--enable-shared
8993     ;;
8994   *" bfd "*)
8995     # When bfd is to be built as a shared library, the same applies to
8996     # zlib.
8997     if test "$enable_shared" = "yes"; then
8998       extra_host_zlib_configure_flags=--enable-host-shared
8999     fi
9000     ;;
9001 esac
9002
9003
9004
9005 # Produce a warning message for the subdirs we can't configure.
9006 # This isn't especially interesting in the Cygnus tree, but in the individual
9007 # FSF releases, it's important to let people know when their machine isn't
9008 # supported by the one or two programs in a package.
9009
9010 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9011   # If $appdirs is non-empty, at least one of those directories must still
9012   # be configured, or we error out.  (E.g., if the gas release supports a
9013   # specified target in some subdirs but not the gas subdir, we shouldn't
9014   # pretend that all is well.)
9015   if test -n "$appdirs" ; then
9016     for dir in $appdirs ; do
9017       if test -r $dir/Makefile.in ; then
9018         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9019           appdirs=""
9020           break
9021         fi
9022         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9023           appdirs=""
9024           break
9025         fi
9026       fi
9027     done
9028     if test -n "$appdirs" ; then
9029       echo "*** This configuration is not supported by this package." 1>&2
9030       exit 1
9031     fi
9032   fi
9033   # Okay, some application will build, or we don't care to check.  Still
9034   # notify of subdirs not getting built.
9035   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9036   echo "    ${notsupp}" 1>&2
9037   echo "    (Any other directories should still work fine.)" 1>&2
9038 fi
9039
9040 case "$host" in
9041   *msdosdjgpp*)
9042     enable_gdbtk=no ;;
9043 esac
9044
9045 # To find our prefix, in gcc_cv_tool_prefix.
9046
9047 # The user is always right.
9048 if test "${PATH_SEPARATOR+set}" != set; then
9049   echo "#! /bin/sh" >conf$$.sh
9050   echo  "exit 0"   >>conf$$.sh
9051   chmod +x conf$$.sh
9052   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9053     PATH_SEPARATOR=';'
9054   else
9055     PATH_SEPARATOR=:
9056   fi
9057   rm -f conf$$.sh
9058 fi
9059
9060
9061   get_gcc_base_ver="cat"
9062
9063 # Check whether --with-gcc-major-version-only was given.
9064 if test "${with_gcc_major_version_only+set}" = set; then :
9065   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9066         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9067       fi
9068
9069 fi
9070
9071
9072
9073
9074
9075
9076 if test "x$exec_prefix" = xNONE; then
9077         if test "x$prefix" = xNONE; then
9078                 gcc_cv_tool_prefix=$ac_default_prefix
9079         else
9080                 gcc_cv_tool_prefix=$prefix
9081         fi
9082 else
9083         gcc_cv_tool_prefix=$exec_prefix
9084 fi
9085
9086 # If there is no compiler in the tree, use the PATH only.  In any
9087 # case, if there is no compiler in the tree nobody should use
9088 # AS_FOR_TARGET and LD_FOR_TARGET.
9089 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9090     if test x$with_gcc_major_version_only = xyes ; then
9091                 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9092             else
9093         gcc_version=`cat $srcdir/gcc/BASE-VER`
9094     fi
9095     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9096     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9097     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9098     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9099     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9100     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9101 else
9102     gcc_cv_tool_dirs=
9103 fi
9104
9105 if test x$build = x$target && test -n "$md_exec_prefix"; then
9106         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9107 fi
9108
9109
9110
9111 copy_dirs=
9112
9113
9114 # Check whether --with-build-sysroot was given.
9115 if test "${with_build_sysroot+set}" = set; then :
9116   withval=$with_build_sysroot; if test x"$withval" != x ; then
9117      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9118    fi
9119 else
9120   SYSROOT_CFLAGS_FOR_TARGET=
9121 fi
9122
9123
9124
9125
9126 # Check whether --with-debug-prefix-map was given.
9127 if test "${with_debug_prefix_map+set}" = set; then :
9128   withval=$with_debug_prefix_map; if test x"$withval" != x; then
9129      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9130      for debug_map in $withval; do
9131        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9132      done
9133    fi
9134 else
9135   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9136 fi
9137
9138
9139
9140 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9141 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
9142 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9143 # We want to ensure that TARGET libraries (which we know are built with
9144 # gcc) are built with "-O2 -g", so include those options when setting
9145 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9146 if test "x$CFLAGS_FOR_TARGET" = x; then
9147   if test "x${is_cross_compiler}" = xyes; then
9148     CFLAGS_FOR_TARGET="-g -O2"
9149   else
9150     CFLAGS_FOR_TARGET=$CFLAGS
9151     case " $CFLAGS " in
9152       *" -O2 "*) ;;
9153       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9154     esac
9155     case " $CFLAGS " in
9156       *" -g "* | *" -g3 "*) ;;
9157       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9158     esac
9159   fi
9160 fi
9161
9162
9163 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9164   if test "x${is_cross_compiler}" = xyes; then
9165     CXXFLAGS_FOR_TARGET="-g -O2"
9166   else
9167     CXXFLAGS_FOR_TARGET=$CXXFLAGS
9168     case " $CXXFLAGS " in
9169       *" -O2 "*) ;;
9170       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9171     esac
9172     case " $CXXFLAGS " in
9173       *" -g "* | *" -g3 "*) ;;
9174       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9175     esac
9176   fi
9177 fi
9178
9179
9180
9181
9182 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
9183 # the named directory are copied to $(tooldir)/sys-include.
9184 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9185   if test x${is_cross_compiler} = xno ; then
9186     echo 1>&2 '***' --with-headers is only supported when cross compiling
9187     exit 1
9188   fi
9189   if test x"${with_headers}" != xyes ; then
9190     x=${gcc_cv_tool_prefix}
9191     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9192   fi
9193 fi
9194
9195 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
9196 # the name directories are copied to $(tooldir)/lib.  Multiple directories
9197 # are permitted.
9198 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9199   if test x${is_cross_compiler} = xno ; then
9200     echo 1>&2 '***' --with-libs is only supported when cross compiling
9201     exit 1
9202   fi
9203   if test x"${with_libs}" != xyes ; then
9204     # Copy the libraries in reverse order, so that files in the first named
9205     # library override files in subsequent libraries.
9206     x=${gcc_cv_tool_prefix}
9207     for l in ${with_libs}; do
9208       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9209     done
9210   fi
9211 fi
9212
9213 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9214 #
9215 # This is done by determining whether or not the appropriate directory
9216 # is available, and by checking whether or not specific configurations
9217 # have requested that this magic not happen.
9218 #
9219 # The command line options always override the explicit settings in
9220 # configure.ac, and the settings in configure.ac override this magic.
9221 #
9222 # If the default for a toolchain is to use GNU as and ld, and you don't
9223 # want to do that, then you should use the --without-gnu-as and
9224 # --without-gnu-ld options for the configure script.  Similarly, if
9225 # the default is to use the included zlib and you don't want to do that,
9226 # you should use the --with-system-zlib option for the configure script.
9227
9228 if test x${use_gnu_as} = x &&
9229    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9230   with_gnu_as=yes
9231   extra_host_args="$extra_host_args --with-gnu-as"
9232 fi
9233
9234 if test x${use_gnu_ld} = x &&
9235    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9236   with_gnu_ld=yes
9237   extra_host_args="$extra_host_args --with-gnu-ld"
9238 fi
9239
9240 if test x${use_included_zlib} = x &&
9241    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9242   :
9243 else
9244   with_system_zlib=yes
9245   extra_host_args="$extra_host_args --with-system-zlib"
9246 fi
9247
9248 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9249 # can detect this case.
9250
9251 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9252   with_newlib=yes
9253   extra_host_args="$extra_host_args --with-newlib"
9254 fi
9255
9256 # Handle ${copy_dirs}
9257 set fnord ${copy_dirs}
9258 shift
9259 while test $# != 0 ; do
9260   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9261     :
9262   else
9263     echo Copying $1 to $2
9264
9265     # Use the install script to create the directory and all required
9266     # parent directories.
9267     if test -d $2 ; then
9268       :
9269     else
9270       echo >config.temp
9271       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9272     fi
9273
9274     # Copy the directory, assuming we have tar.
9275     # FIXME: Should we use B in the second tar?  Not all systems support it.
9276     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9277
9278     # It is the responsibility of the user to correctly adjust all
9279     # symlinks.  If somebody can figure out how to handle them correctly
9280     # here, feel free to add the code.
9281
9282     echo $1 > $2/COPIED
9283   fi
9284   shift; shift
9285 done
9286
9287 # Determine a target-dependent exec_prefix that the installed
9288 # gcc will search in.  Keep this list sorted by triplet, with
9289 # the *-*-osname triplets last.
9290 md_exec_prefix=
9291 case "${target}" in
9292   i[34567]86-pc-msdosdjgpp*)
9293     md_exec_prefix=/dev/env/DJDIR/bin
9294     ;;
9295   *-*-hpux* | \
9296   *-*-nto-qnx* | \
9297   *-*-solaris2*)
9298     md_exec_prefix=/usr/ccs/bin
9299     ;;
9300 esac
9301
9302 extra_arflags_for_target=
9303 extra_nmflags_for_target=
9304 extra_ranlibflags_for_target=
9305 target_makefile_frag=/dev/null
9306 case "${target}" in
9307   spu-*-*)
9308     target_makefile_frag="config/mt-spu"
9309     ;;
9310   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9311     target_makefile_frag="config/mt-sde"
9312     ;;
9313   mipsisa*-*-elfoabi*)
9314     target_makefile_frag="config/mt-mips-elfoabi"
9315     ;;
9316   mips*-*-*linux* | mips*-*-gnu*)
9317     target_makefile_frag="config/mt-mips-gnu"
9318     ;;
9319   nios2-*-elf*)
9320     target_makefile_frag="config/mt-nios2-elf"
9321     ;;
9322   *-*-linux-android*)
9323     target_makefile_frag="config/mt-android"
9324     ;;
9325   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9326     target_makefile_frag="config/mt-gnu"
9327     ;;
9328   *-*-aix4.[3456789]* | *-*-aix[56789].*)
9329     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9330     # commands to handle both 32-bit and 64-bit objects.  These flags are
9331     # harmless if we're using GNU nm or ar.
9332     extra_arflags_for_target=" -X32_64"
9333     extra_nmflags_for_target=" -B -X32_64"
9334     ;;
9335 esac
9336
9337 alphaieee_frag=/dev/null
9338 case $target in
9339   alpha*-*-*)
9340     # This just makes sure to use the -mieee option to build target libs.
9341     # This should probably be set individually by each library.
9342     alphaieee_frag="config/mt-alphaieee"
9343     ;;
9344 esac
9345
9346 # If --enable-target-optspace always use -Os instead of -O2 to build
9347 # the target libraries, similarly if it is not specified, use -Os
9348 # on selected platforms.
9349 ospace_frag=/dev/null
9350 case "${enable_target_optspace}:${target}" in
9351   yes:*)
9352     ospace_frag="config/mt-ospace"
9353     ;;
9354   :d30v-*)
9355     ospace_frag="config/mt-d30v"
9356     ;;
9357   :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9358     ospace_frag="config/mt-ospace"
9359     ;;
9360   no:* | :*)
9361     ;;
9362   *)
9363     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9364     ;;
9365 esac
9366
9367 # Some systems (e.g., one of the i386-aix systems the gas testers are
9368 # using) don't handle "\$" correctly, so don't use it here.
9369 tooldir='${exec_prefix}'/${target_noncanonical}
9370 build_tooldir=${tooldir}
9371
9372 # Create a .gdbinit file which runs the one in srcdir
9373 # and tells GDB to look there for source files.
9374
9375 if test -r ${srcdir}/.gdbinit ; then
9376   case ${srcdir} in
9377     .) ;;
9378     *) cat > ./.gdbinit <<EOF
9379 # ${NO_EDIT}
9380 dir ${srcdir}
9381 dir .
9382 source ${srcdir}/.gdbinit
9383 EOF
9384     ;;
9385   esac
9386 fi
9387
9388 # Make sure that the compiler is able to generate an executable.  If it
9389 # can't, we are probably in trouble.  We don't care whether we can run the
9390 # executable--we might be using a cross compiler--we only care whether it
9391 # can be created.  At this point the main configure script has set CC.
9392 we_are_ok=no
9393 echo "int main () { return 0; }" > conftest.c
9394 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9395 if test $? = 0 ; then
9396   if test -s conftest || test -s conftest.exe ; then
9397     we_are_ok=yes
9398   fi
9399 fi
9400 case $we_are_ok in
9401   no)
9402     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9403     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9404     rm -f conftest*
9405     exit 1
9406     ;;
9407 esac
9408 rm -f conftest*
9409
9410 # Decide which environment variable is used to find dynamic libraries.
9411 case "${host}" in
9412   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9413   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9414   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9415   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9416 esac
9417
9418 # On systems where the dynamic library environment variable is PATH,
9419 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9420 # built executables to PATH.
9421 if test "$RPATH_ENVVAR" = PATH; then
9422   GCC_SHLIB_SUBDIR=/shlib
9423 else
9424   GCC_SHLIB_SUBDIR=
9425 fi
9426
9427 # Adjust the toplevel makefile according to whether bootstrap was selected.
9428 case $enable_bootstrap in
9429   yes)
9430     bootstrap_suffix=bootstrap
9431     BUILD_CONFIG=bootstrap-debug
9432     ;;
9433   no)
9434     bootstrap_suffix=no-bootstrap
9435     BUILD_CONFIG=
9436     ;;
9437 esac
9438
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9440 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9441
9442
9443 # Check whether --with-build-config was given.
9444 if test "${with_build_config+set}" = set; then :
9445   withval=$with_build_config; case $with_build_config in
9446    yes) with_build_config= ;;
9447    no) with_build_config= BUILD_CONFIG= ;;
9448    esac
9449 fi
9450
9451
9452 if test "x${with_build_config}" != x; then
9453   BUILD_CONFIG=$with_build_config
9454 else
9455   case $BUILD_CONFIG in
9456   bootstrap-debug)
9457     if echo "int f (void) { return 0; }" > conftest.c &&
9458        ${CC} -c conftest.c &&
9459        mv conftest.o conftest.o.g0 &&
9460        ${CC} -c -g conftest.c &&
9461        mv conftest.o conftest.o.g &&
9462        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9463       :
9464     else
9465       BUILD_CONFIG=
9466     fi
9467     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9468     ;;
9469   esac
9470 fi
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9472 $as_echo "$BUILD_CONFIG" >&6; }
9473
9474
9475 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9477 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9478 # Check whether --enable-vtable-verify was given.
9479 if test "${enable_vtable_verify+set}" = set; then :
9480   enableval=$enable_vtable_verify; case "$enableval" in
9481  yes) enable_vtable_verify=yes ;;
9482  no)  enable_vtable_verify=no ;;
9483  *)   enable_vtable_verify=no;;
9484  esac
9485 else
9486   enable_vtable_verify=no
9487 fi
9488
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9490 $as_echo "$enable_vtable_verify" >&6; }
9491
9492 # Record target_configdirs and the configure arguments for target and
9493 # build configuration in Makefile.
9494 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9495 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9496 bootstrap_fixincludes=no
9497
9498 # If we are building libgomp, bootstrap it.
9499 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9500   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9501 fi
9502
9503 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9504 # or bootstrap-ubsan, bootstrap it.
9505 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9506   case "$BUILD_CONFIG" in
9507     *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9508       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9509       bootstrap_fixincludes=yes
9510       ;;
9511   esac
9512 fi
9513
9514 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9515 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9516    test "$enable_vtable_verify" != no; then
9517   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9518 fi
9519
9520 # Determine whether gdb needs tk/tcl or not.
9521 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9522 # and in that case we want gdb to be built without tk.  Ugh!
9523 # In fact I believe gdb is the *only* package directly dependent on tk,
9524 # so we should be able to put the 'maybe's in unconditionally and
9525 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
9526 # 100% sure that that's safe though.
9527
9528 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9529 case "$enable_gdbtk" in
9530   no)
9531     GDB_TK="" ;;
9532   yes)
9533     GDB_TK="${gdb_tk}" ;;
9534   *)
9535     # Only add the dependency on gdbtk when GDBtk is part of the gdb
9536     # distro.  Eventually someone will fix this and move Insight, nee
9537     # gdbtk to a separate directory.
9538     if test -d ${srcdir}/gdb/gdbtk ; then
9539       GDB_TK="${gdb_tk}"
9540     else
9541       GDB_TK=""
9542     fi
9543     ;;
9544 esac
9545 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9546 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9547
9548 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9549 # else does, only include them if one of these is built.  The Makefile
9550 # provides the ordering, so it's enough here to add to the list.
9551 case " ${configdirs} " in
9552   *\ gdb\ *)
9553     configdirs="${configdirs} gnulib gdbsupport"
9554     ;;
9555   *\ gdbserver\ *)
9556     configdirs="${configdirs} gnulib gdbsupport"
9557     ;;
9558   *\ sim\ *)
9559     configdirs="${configdirs} gnulib"
9560     ;;
9561 esac
9562
9563 # Strip out unwanted targets.
9564
9565 # While at that, we remove Makefiles if we were started for recursive
9566 # configuration, so that the top-level Makefile reconfigures them,
9567 # like we used to do when configure itself was recursive.
9568
9569 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
9570 # but now we're fixing up the Makefile ourselves with the additional
9571 # commands passed to AC_CONFIG_FILES.  Use separate variables
9572 # extrasub-{build,host,target} not because there is any reason to split
9573 # the substitutions up that way, but only to remain below the limit of
9574 # 99 commands in a script, for HP-UX sed.
9575
9576 # Do not nest @if/@endif or @unless/@endunless pairs, because
9577 # configure will not warn you at all.
9578
9579 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9580   yes:yes:*\ gold\ *:*,c++,*) ;;
9581   yes:yes:*\ gold\ *:*)
9582     as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9583     ;;
9584 esac
9585
9586 extrasub_build=
9587 for module in ${build_configdirs} ; do
9588   if test -z "${no_recursion}" \
9589      && test -f ${build_subdir}/${module}/Makefile; then
9590     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9591     rm -f ${build_subdir}/${module}/Makefile
9592   fi
9593   extrasub_build="$extrasub_build
9594 /^@if build-$module\$/d
9595 /^@endif build-$module\$/d
9596 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9597 /^@if build-$module-$bootstrap_suffix\$/d
9598 /^@endif build-$module-$bootstrap_suffix\$/d
9599 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9600 done
9601 extrasub_host=
9602 for module in ${configdirs} ; do
9603   if test -z "${no_recursion}"; then
9604     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9605       if test -f ${file}; then
9606         echo 1>&2 "*** removing ${file} to force reconfigure"
9607         rm -f ${file}
9608       fi
9609     done
9610   fi
9611   case ${module},${bootstrap_fixincludes} in
9612     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9613     *) host_bootstrap_suffix=$bootstrap_suffix ;;
9614   esac
9615   extrasub_host="$extrasub_host
9616 /^@if $module\$/d
9617 /^@endif $module\$/d
9618 /^@unless $module\$/,/^@endunless $module\$/d
9619 /^@if $module-$host_bootstrap_suffix\$/d
9620 /^@endif $module-$host_bootstrap_suffix\$/d
9621 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9622 done
9623 extrasub_target=
9624 for module in ${target_configdirs} ; do
9625   if test -z "${no_recursion}" \
9626      && test -f ${target_subdir}/${module}/Makefile; then
9627     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9628     rm -f ${target_subdir}/${module}/Makefile
9629   fi
9630
9631   # We only bootstrap target libraries listed in bootstrap_target_libs.
9632   case $bootstrap_target_libs in
9633     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9634     *) target_bootstrap_suffix=no-bootstrap ;;
9635   esac
9636
9637   extrasub_target="$extrasub_target
9638 /^@if target-$module\$/d
9639 /^@endif target-$module\$/d
9640 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9641 /^@if target-$module-$target_bootstrap_suffix\$/d
9642 /^@endif target-$module-$target_bootstrap_suffix\$/d
9643 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9644 done
9645
9646 # Do the final fixup along with target modules.
9647 extrasub_target="$extrasub_target
9648 /^@if /,/^@endif /d
9649 /^@unless /d
9650 /^@endunless /d"
9651
9652 # Create the serialization dependencies.  This uses a temporary file.
9653
9654 # Check whether --enable-serial-configure was given.
9655 if test "${enable_serial_configure+set}" = set; then :
9656   enableval=$enable_serial_configure;
9657 fi
9658
9659
9660 case ${enable_serial_configure} in
9661   yes)
9662     enable_serial_build_configure=yes
9663     enable_serial_host_configure=yes
9664     enable_serial_target_configure=yes
9665     ;;
9666 esac
9667
9668 # These force 'configure's to be done one at a time, to avoid problems
9669 # with contention over a shared config.cache.
9670 rm -f serdep.tmp
9671 echo '# serdep.tmp' > serdep.tmp
9672 olditem=
9673 test "x${enable_serial_build_configure}" = xyes &&
9674 for item in ${build_configdirs} ; do
9675   case ${olditem} in
9676     "") ;;
9677     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9678   esac
9679   olditem=${item}
9680 done
9681 olditem=
9682 test "x${enable_serial_host_configure}" = xyes &&
9683 for item in ${configdirs} ; do
9684   case ${olditem} in
9685     "") ;;
9686     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9687   esac
9688   olditem=${item}
9689 done
9690 olditem=
9691 test "x${enable_serial_target_configure}" = xyes &&
9692 for item in ${target_configdirs} ; do
9693   case ${olditem} in
9694     "") ;;
9695     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9696   esac
9697   olditem=${item}
9698 done
9699 serialization_dependencies=serdep.tmp
9700
9701
9702 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
9703 # target, nonopt, and variable assignments.  These are the ones we
9704 # might not want to pass down to subconfigures.  The exception being
9705 # --cache-file=/dev/null, which is used to turn off the use of cache
9706 # files altogether, and which should be passed on to subconfigures.
9707 # Also strip program-prefix, program-suffix, and program-transform-name,
9708 # so that we can pass down a consistent program-transform-name.
9709 baseargs=
9710 tbaseargs=
9711 keep_next=no
9712 skip_next=no
9713 eval "set -- $ac_configure_args"
9714 for ac_arg
9715 do
9716   if test X"$skip_next" = X"yes"; then
9717     skip_next=no
9718     continue
9719   fi
9720   if test X"$keep_next" = X"yes"; then
9721     case $ac_arg in
9722       *\'*)
9723         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9724     esac
9725     baseargs="$baseargs '$ac_arg'"
9726     tbaseargs="$tbaseargs '$ac_arg'"
9727     keep_next=no
9728     continue
9729   fi
9730
9731   # Handle separated arguments.  Based on the logic generated by
9732   # autoconf 2.59.
9733   case $ac_arg in
9734     *=* | --config-cache | -C | -disable-* | --disable-* \
9735       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9736       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9737       | -with-* | --with-* | -without-* | --without-* | --x)
9738       separate_arg=no
9739       ;;
9740     -*)
9741       separate_arg=yes
9742       ;;
9743     *)
9744       separate_arg=no
9745       ;;
9746   esac
9747
9748   skip_targ=no
9749   case $ac_arg in
9750
9751   --with-* | --without-*)
9752     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9753
9754     case $libopt in
9755     *[-_]include)
9756       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9757       ;;
9758     *[-_]lib)
9759       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9760       ;;
9761     *)
9762       lib=$libopt
9763       ;;
9764     esac
9765
9766
9767     case $lib in
9768     mpc | mpfr | gmp | isl)
9769       # If we're processing --with-$lib, --with-$lib-include or
9770       # --with-$lib-lib, for one of the libs above, and target is
9771       # different from host, don't pass the current argument to any
9772       # target library's configure.
9773       if test x$is_cross_compiler = xyes; then
9774         skip_targ=yes
9775       fi
9776       ;;
9777     esac
9778     ;;
9779   esac
9780
9781   case "$ac_arg" in
9782     --cache-file=/dev/null | \
9783     -cache-file=/dev/null )
9784       # Handled here to avoid the test to skip args below.
9785       baseargs="$baseargs '$ac_arg'"
9786       tbaseargs="$tbaseargs '$ac_arg'"
9787       # Assert: $separate_arg should always be no.
9788       keep_next=$separate_arg
9789       ;;
9790     --no*)
9791       continue
9792       ;;
9793     --c* | \
9794     --sr* | \
9795     --ho* | \
9796     --bu* | \
9797     --t* | \
9798     --program-* | \
9799     -cache_file* | \
9800     -srcdir* | \
9801     -host* | \
9802     -build* | \
9803     -target* | \
9804     -program-prefix* | \
9805     -program-suffix* | \
9806     -program-transform-name* )
9807       skip_next=$separate_arg
9808       continue
9809       ;;
9810     -*)
9811       # An option.  Add it.
9812       case $ac_arg in
9813         *\'*)
9814           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9815       esac
9816       baseargs="$baseargs '$ac_arg'"
9817       if test X"$skip_targ" = Xno; then
9818         tbaseargs="$tbaseargs '$ac_arg'"
9819       fi
9820       keep_next=$separate_arg
9821       ;;
9822     *)
9823       # Either a variable assignment, or a nonopt (triplet).  Don't
9824       # pass it down; let the Makefile handle this.
9825       continue
9826       ;;
9827   esac
9828 done
9829 # Remove the initial space we just introduced and, as these will be
9830 # expanded by make, quote '$'.
9831 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9832
9833 # Add in --program-transform-name, after --program-prefix and
9834 # --program-suffix have been applied to it.  Autoconf has already
9835 # doubled dollar signs and backslashes in program_transform_name; we want
9836 # the backslashes un-doubled, and then the entire thing wrapped in single
9837 # quotes, because this will be expanded first by make and then by the shell.
9838 # Also, because we want to override the logic in subdir configure scripts to
9839 # choose program_transform_name, replace any s,x,x, with s,y,y,.
9840 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9841 ${program_transform_name}
9842 EOF_SED
9843 gcc_transform_name=`cat conftestsed.out`
9844 rm -f conftestsed.out
9845 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
9846 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
9847 if test "$silent" = yes; then
9848   baseargs="$baseargs --silent"
9849   tbaseargs="$tbaseargs --silent"
9850 fi
9851 baseargs="$baseargs --disable-option-checking"
9852 tbaseargs="$tbaseargs --disable-option-checking"
9853
9854 # Record and document user additions to sub configure arguments.
9855
9856
9857
9858
9859 # For the build-side libraries, we just need to pretend we're native,
9860 # and not use the same cache file.  Multilibs are neither needed nor
9861 # desired.  We can't even use the same cache file for all build-side
9862 # libraries, as they're compiled differently; some with C, some with
9863 # C++ or with different feature-enabling options.
9864 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
9865
9866 # For host modules, accept cache file option, or specification as blank.
9867 case "${cache_file}" in
9868 "") # empty
9869   cache_file_option="" ;;
9870 /* | [A-Za-z]:[\\/]* ) # absolute path
9871   cache_file_option="--cache-file=${cache_file}" ;;
9872 *) # relative path
9873   cache_file_option="--cache-file=../${cache_file}" ;;
9874 esac
9875
9876 # Host dirs don't like to share a cache file either, horribly enough.
9877 # This seems to be due to autoconf 2.5x stupidity.
9878 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
9879
9880 target_configargs="$target_configargs ${tbaseargs}"
9881
9882 # Passing a --with-cross-host argument lets the target libraries know
9883 # whether they are being built with a cross-compiler or being built
9884 # native.  However, it would be better to use other mechanisms to make the
9885 # sorts of decisions they want to make on this basis.  Please consider
9886 # this option to be deprecated.  FIXME.
9887 if test x${is_cross_compiler} = xyes ; then
9888   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
9889 fi
9890
9891 # Special user-friendly check for native x86_64-linux build, if
9892 # multilib is not explicitly enabled.
9893 case "$target:$have_compiler:$host:$target:$enable_multilib" in
9894   x86_64-*linux*:yes:$build:$build:)
9895     # Make sure we have a development environment that handles 32-bit
9896     dev64=no
9897     echo "int main () { return 0; }" > conftest.c
9898     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9899     if test $? = 0 ; then
9900       if test -s conftest || test -s conftest.exe ; then
9901         dev64=yes
9902       fi
9903     fi
9904     rm -f conftest*
9905     if test x${dev64} != xyes ; then
9906       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
9907     fi
9908     ;;
9909 esac
9910
9911 # Default to --enable-multilib.
9912 if test x${enable_multilib} = x ; then
9913   target_configargs="--enable-multilib ${target_configargs}"
9914 fi
9915
9916 # Pass --with-newlib if appropriate.  Note that target_configdirs has
9917 # changed from the earlier setting of with_newlib.
9918 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
9919   target_configargs="--with-newlib ${target_configargs}"
9920 fi
9921
9922 # Different target subdirs use different values of certain variables
9923 # (notably CXX).  Worse, multilibs use *lots* of different values.
9924 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
9925 # it doesn't automatically accept command-line overrides of them.
9926 # This means it's not safe for target subdirs to share a cache file,
9927 # which is disgusting, but there you have it.  Hopefully this can be
9928 # fixed in future.  It's still worthwhile to use a cache file for each
9929 # directory.  I think.
9930
9931 # Pass the appropriate --build, --host, --target and --cache-file arguments.
9932 # We need to pass --target, as newer autoconf's requires consistency
9933 # for target_alias and gcc doesn't manage it consistently.
9934 target_configargs="--cache-file=./config.cache ${target_configargs}"
9935
9936 FLAGS_FOR_TARGET=
9937 case " $target_configdirs " in
9938  *" newlib "*)
9939   case " $target_configargs " in
9940   *" --with-newlib "*)
9941    case "$target" in
9942     *-cygwin*)
9943       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
9944       ;;
9945    esac
9946
9947    # If we're not building GCC, don't discard standard headers.
9948    if test -d ${srcdir}/gcc; then
9949      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
9950
9951      if test "${build}" != "${host}"; then
9952        # On Canadian crosses, CC_FOR_TARGET will have already been set
9953        # by `configure', so we won't have an opportunity to add -Bgcc/
9954        # to it.  This is right: we don't want to search that directory
9955        # for binaries, but we want the header files in there, so add
9956        # them explicitly.
9957        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
9958
9959        # Someone might think of using the pre-installed headers on
9960        # Canadian crosses, in case the installed compiler is not fully
9961        # compatible with the compiler being built.  In this case, it
9962        # would be better to flag an error than risking having
9963        # incompatible object files being constructed.  We can't
9964        # guarantee that an error will be flagged, but let's hope the
9965        # compiler will do it, when presented with incompatible header
9966        # files.
9967      fi
9968    fi
9969
9970    case "${target}-${is_cross_compiler}" in
9971    i[3456789]86-*-linux*-no)
9972       # Here host == target, so we don't need to build gcc,
9973       # so we don't want to discard standard headers.
9974       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
9975       ;;
9976    *)
9977       # If we're building newlib, use its generic headers last, but search
9978       # for any libc-related directories first (so make it the last -B
9979       # switch).
9980       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
9981
9982       # If we're building libgloss, find the startup file, simulator library
9983       # and linker script.
9984       case " $target_configdirs " in
9985         *" libgloss "*)
9986         # Look for startup file, simulator library and maybe linker script.
9987         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
9988         # Look for libnosys.a in case the target needs it.
9989         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
9990         # Most targets have the linker script in the source directory.
9991         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
9992         ;;
9993       esac
9994       ;;
9995    esac
9996    ;;
9997   esac
9998   ;;
9999 esac
10000
10001 case "$target" in
10002   x86_64-*mingw* | *-w64-mingw*)
10003   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10004   # however, use a symlink named 'mingw' in ${prefix} .
10005     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10006     ;;
10007   *-mingw*)
10008   # MinGW can't be handled as Cygwin above since it does not use newlib.
10009     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'
10010     ;;
10011 esac
10012
10013 # Allow the user to override the flags for
10014 # our build compiler if desired.
10015 if test x"${build}" = x"${host}" ; then
10016   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10017   CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10018   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10019   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10020 fi
10021
10022 # On Canadian crosses, we'll be searching the right directories for
10023 # the previously-installed cross compiler, so don't bother to add
10024 # flags for directories within the install tree of the compiler
10025 # being built; programs in there won't even run.
10026 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10027   # Search for pre-installed headers if nothing else fits.
10028   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10029 fi
10030
10031 if test "x${use_gnu_ld}" = x &&
10032    echo " ${configdirs} " | grep " ld " > /dev/null ; then
10033   # Arrange for us to find uninstalled linker scripts.
10034   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10035 fi
10036
10037 # Search for other target-specific linker scripts and such.
10038 case "${target}" in
10039   mep*)
10040     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10041     ;;
10042 esac
10043
10044 # Makefile fragments.
10045 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10046 do
10047   eval fragval=\$$frag
10048   if test $fragval != /dev/null; then
10049     eval $frag=${srcdir}/$fragval
10050   fi
10051 done
10052
10053
10054
10055
10056
10057 # Miscellanea: directories, flags, etc.
10058
10059
10060
10061
10062
10063
10064
10065
10066 # Build module lists & subconfigure args.
10067
10068
10069
10070 # Host module lists & subconfigure args.
10071
10072
10073
10074
10075 # Target module lists & subconfigure args.
10076
10077
10078
10079 # Build tools.
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100 # Generate default definitions for YACC, M4, LEX and other programs that run
10101 # on the build machine.  These are used if the Makefile can't locate these
10102 # programs in objdir.
10103 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10104
10105 for ac_prog in 'bison -y' byacc yacc
10106 do
10107   # Extract the first word of "$ac_prog", so it can be a program name with args.
10108 set dummy $ac_prog; ac_word=$2
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10110 $as_echo_n "checking for $ac_word... " >&6; }
10111 if ${ac_cv_prog_YACC+:} false; then :
10112   $as_echo_n "(cached) " >&6
10113 else
10114   if test -n "$YACC"; then
10115   ac_cv_prog_YACC="$YACC" # Let the user override the test.
10116 else
10117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10118 for as_dir in $PATH
10119 do
10120   IFS=$as_save_IFS
10121   test -z "$as_dir" && as_dir=.
10122     for ac_exec_ext in '' $ac_executable_extensions; do
10123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10124     ac_cv_prog_YACC="$ac_prog"
10125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10126     break 2
10127   fi
10128 done
10129   done
10130 IFS=$as_save_IFS
10131
10132 fi
10133 fi
10134 YACC=$ac_cv_prog_YACC
10135 if test -n "$YACC"; then
10136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10137 $as_echo "$YACC" >&6; }
10138 else
10139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140 $as_echo "no" >&6; }
10141 fi
10142
10143
10144   test -n "$YACC" && break
10145 done
10146 test -n "$YACC" || YACC="$MISSING bison -y"
10147
10148 case " $build_configdirs " in
10149   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10150 esac
10151
10152 for ac_prog in bison
10153 do
10154   # Extract the first word of "$ac_prog", so it can be a program name with args.
10155 set dummy $ac_prog; ac_word=$2
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10157 $as_echo_n "checking for $ac_word... " >&6; }
10158 if ${ac_cv_prog_BISON+:} false; then :
10159   $as_echo_n "(cached) " >&6
10160 else
10161   if test -n "$BISON"; then
10162   ac_cv_prog_BISON="$BISON" # Let the user override the test.
10163 else
10164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10165 for as_dir in $PATH
10166 do
10167   IFS=$as_save_IFS
10168   test -z "$as_dir" && as_dir=.
10169     for ac_exec_ext in '' $ac_executable_extensions; do
10170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10171     ac_cv_prog_BISON="$ac_prog"
10172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10173     break 2
10174   fi
10175 done
10176   done
10177 IFS=$as_save_IFS
10178
10179 fi
10180 fi
10181 BISON=$ac_cv_prog_BISON
10182 if test -n "$BISON"; then
10183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10184 $as_echo "$BISON" >&6; }
10185 else
10186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10187 $as_echo "no" >&6; }
10188 fi
10189
10190
10191   test -n "$BISON" && break
10192 done
10193 test -n "$BISON" || BISON="$MISSING bison"
10194
10195 case " $build_configdirs " in
10196   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10197 esac
10198
10199 for ac_prog in gm4 gnum4 m4
10200 do
10201   # Extract the first word of "$ac_prog", so it can be a program name with args.
10202 set dummy $ac_prog; ac_word=$2
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10204 $as_echo_n "checking for $ac_word... " >&6; }
10205 if ${ac_cv_prog_M4+:} false; then :
10206   $as_echo_n "(cached) " >&6
10207 else
10208   if test -n "$M4"; then
10209   ac_cv_prog_M4="$M4" # Let the user override the test.
10210 else
10211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10212 for as_dir in $PATH
10213 do
10214   IFS=$as_save_IFS
10215   test -z "$as_dir" && as_dir=.
10216     for ac_exec_ext in '' $ac_executable_extensions; do
10217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10218     ac_cv_prog_M4="$ac_prog"
10219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10220     break 2
10221   fi
10222 done
10223   done
10224 IFS=$as_save_IFS
10225
10226 fi
10227 fi
10228 M4=$ac_cv_prog_M4
10229 if test -n "$M4"; then
10230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10231 $as_echo "$M4" >&6; }
10232 else
10233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234 $as_echo "no" >&6; }
10235 fi
10236
10237
10238   test -n "$M4" && break
10239 done
10240 test -n "$M4" || M4="$MISSING m4"
10241
10242 case " $build_configdirs " in
10243   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10244 esac
10245
10246 for ac_prog in flex lex
10247 do
10248   # Extract the first word of "$ac_prog", so it can be a program name with args.
10249 set dummy $ac_prog; ac_word=$2
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251 $as_echo_n "checking for $ac_word... " >&6; }
10252 if ${ac_cv_prog_LEX+:} false; then :
10253   $as_echo_n "(cached) " >&6
10254 else
10255   if test -n "$LEX"; then
10256   ac_cv_prog_LEX="$LEX" # Let the user override the test.
10257 else
10258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259 for as_dir in $PATH
10260 do
10261   IFS=$as_save_IFS
10262   test -z "$as_dir" && as_dir=.
10263     for ac_exec_ext in '' $ac_executable_extensions; do
10264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10265     ac_cv_prog_LEX="$ac_prog"
10266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10267     break 2
10268   fi
10269 done
10270   done
10271 IFS=$as_save_IFS
10272
10273 fi
10274 fi
10275 LEX=$ac_cv_prog_LEX
10276 if test -n "$LEX"; then
10277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10278 $as_echo "$LEX" >&6; }
10279 else
10280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10282 fi
10283
10284
10285   test -n "$LEX" && break
10286 done
10287 test -n "$LEX" || LEX="$MISSING flex"
10288
10289 case " $build_configdirs " in
10290   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10291   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10292 esac
10293
10294 for ac_prog in flex
10295 do
10296   # Extract the first word of "$ac_prog", so it can be a program name with args.
10297 set dummy $ac_prog; ac_word=$2
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10299 $as_echo_n "checking for $ac_word... " >&6; }
10300 if ${ac_cv_prog_FLEX+:} false; then :
10301   $as_echo_n "(cached) " >&6
10302 else
10303   if test -n "$FLEX"; then
10304   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10305 else
10306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307 for as_dir in $PATH
10308 do
10309   IFS=$as_save_IFS
10310   test -z "$as_dir" && as_dir=.
10311     for ac_exec_ext in '' $ac_executable_extensions; do
10312   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10313     ac_cv_prog_FLEX="$ac_prog"
10314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10315     break 2
10316   fi
10317 done
10318   done
10319 IFS=$as_save_IFS
10320
10321 fi
10322 fi
10323 FLEX=$ac_cv_prog_FLEX
10324 if test -n "$FLEX"; then
10325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10326 $as_echo "$FLEX" >&6; }
10327 else
10328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329 $as_echo "no" >&6; }
10330 fi
10331
10332
10333   test -n "$FLEX" && break
10334 done
10335 test -n "$FLEX" || FLEX="$MISSING flex"
10336
10337 case " $build_configdirs " in
10338   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10339 esac
10340
10341 for ac_prog in makeinfo
10342 do
10343   # Extract the first word of "$ac_prog", so it can be a program name with args.
10344 set dummy $ac_prog; ac_word=$2
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10346 $as_echo_n "checking for $ac_word... " >&6; }
10347 if ${ac_cv_prog_MAKEINFO+:} false; then :
10348   $as_echo_n "(cached) " >&6
10349 else
10350   if test -n "$MAKEINFO"; then
10351   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10352 else
10353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10354 for as_dir in $PATH
10355 do
10356   IFS=$as_save_IFS
10357   test -z "$as_dir" && as_dir=.
10358     for ac_exec_ext in '' $ac_executable_extensions; do
10359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10360     ac_cv_prog_MAKEINFO="$ac_prog"
10361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10362     break 2
10363   fi
10364 done
10365   done
10366 IFS=$as_save_IFS
10367
10368 fi
10369 fi
10370 MAKEINFO=$ac_cv_prog_MAKEINFO
10371 if test -n "$MAKEINFO"; then
10372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10373 $as_echo "$MAKEINFO" >&6; }
10374 else
10375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376 $as_echo "no" >&6; }
10377 fi
10378
10379
10380   test -n "$MAKEINFO" && break
10381 done
10382 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10383
10384 case " $build_configdirs " in
10385   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10386   *)
10387
10388     # For an installed makeinfo, we require it to be from texinfo 4.7 or
10389     # higher, else we use the "missing" dummy.
10390     if ${MAKEINFO} --version \
10391        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10392       :
10393     else
10394       MAKEINFO="$MISSING makeinfo"
10395     fi
10396     ;;
10397
10398 esac
10399
10400 # FIXME: expect and dejagnu may become build tools?
10401
10402 for ac_prog in expect
10403 do
10404   # Extract the first word of "$ac_prog", so it can be a program name with args.
10405 set dummy $ac_prog; ac_word=$2
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10407 $as_echo_n "checking for $ac_word... " >&6; }
10408 if ${ac_cv_prog_EXPECT+:} false; then :
10409   $as_echo_n "(cached) " >&6
10410 else
10411   if test -n "$EXPECT"; then
10412   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10413 else
10414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415 for as_dir in $PATH
10416 do
10417   IFS=$as_save_IFS
10418   test -z "$as_dir" && as_dir=.
10419     for ac_exec_ext in '' $ac_executable_extensions; do
10420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10421     ac_cv_prog_EXPECT="$ac_prog"
10422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10423     break 2
10424   fi
10425 done
10426   done
10427 IFS=$as_save_IFS
10428
10429 fi
10430 fi
10431 EXPECT=$ac_cv_prog_EXPECT
10432 if test -n "$EXPECT"; then
10433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10434 $as_echo "$EXPECT" >&6; }
10435 else
10436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437 $as_echo "no" >&6; }
10438 fi
10439
10440
10441   test -n "$EXPECT" && break
10442 done
10443 test -n "$EXPECT" || EXPECT="expect"
10444
10445 case " $configdirs " in
10446   *" expect "*)
10447     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10448     ;;
10449 esac
10450
10451 for ac_prog in runtest
10452 do
10453   # Extract the first word of "$ac_prog", so it can be a program name with args.
10454 set dummy $ac_prog; ac_word=$2
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10456 $as_echo_n "checking for $ac_word... " >&6; }
10457 if ${ac_cv_prog_RUNTEST+:} false; then :
10458   $as_echo_n "(cached) " >&6
10459 else
10460   if test -n "$RUNTEST"; then
10461   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10462 else
10463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10464 for as_dir in $PATH
10465 do
10466   IFS=$as_save_IFS
10467   test -z "$as_dir" && as_dir=.
10468     for ac_exec_ext in '' $ac_executable_extensions; do
10469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10470     ac_cv_prog_RUNTEST="$ac_prog"
10471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10472     break 2
10473   fi
10474 done
10475   done
10476 IFS=$as_save_IFS
10477
10478 fi
10479 fi
10480 RUNTEST=$ac_cv_prog_RUNTEST
10481 if test -n "$RUNTEST"; then
10482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10483 $as_echo "$RUNTEST" >&6; }
10484 else
10485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486 $as_echo "no" >&6; }
10487 fi
10488
10489
10490   test -n "$RUNTEST" && break
10491 done
10492 test -n "$RUNTEST" || RUNTEST="runtest"
10493
10494 case " $configdirs " in
10495   *" dejagnu "*)
10496     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10497     ;;
10498 esac
10499
10500
10501 # Host tools.
10502 ncn_tool_prefix=
10503 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10504 ncn_target_tool_prefix=
10505 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10506
10507
10508
10509 if test -n "$AR"; then
10510   ac_cv_prog_AR=$AR
10511 elif test -n "$ac_cv_prog_AR"; then
10512   AR=$ac_cv_prog_AR
10513 fi
10514
10515 if test -n "$ac_cv_prog_AR"; then
10516   for ncn_progname in ar; do
10517     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10518 set dummy ${ncn_progname}; ac_word=$2
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10520 $as_echo_n "checking for $ac_word... " >&6; }
10521 if ${ac_cv_prog_AR+:} false; then :
10522   $as_echo_n "(cached) " >&6
10523 else
10524   if test -n "$AR"; then
10525   ac_cv_prog_AR="$AR" # Let the user override the test.
10526 else
10527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528 for as_dir in $PATH
10529 do
10530   IFS=$as_save_IFS
10531   test -z "$as_dir" && as_dir=.
10532     for ac_exec_ext in '' $ac_executable_extensions; do
10533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10534     ac_cv_prog_AR="${ncn_progname}"
10535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10536     break 2
10537   fi
10538 done
10539   done
10540 IFS=$as_save_IFS
10541
10542 fi
10543 fi
10544 AR=$ac_cv_prog_AR
10545 if test -n "$AR"; then
10546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10547 $as_echo "$AR" >&6; }
10548 else
10549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10550 $as_echo "no" >&6; }
10551 fi
10552
10553
10554   done
10555 fi
10556
10557 for ncn_progname in ar; do
10558   if test -n "$ncn_tool_prefix"; then
10559     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10560 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10562 $as_echo_n "checking for $ac_word... " >&6; }
10563 if ${ac_cv_prog_AR+:} false; then :
10564   $as_echo_n "(cached) " >&6
10565 else
10566   if test -n "$AR"; then
10567   ac_cv_prog_AR="$AR" # Let the user override the test.
10568 else
10569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570 for as_dir in $PATH
10571 do
10572   IFS=$as_save_IFS
10573   test -z "$as_dir" && as_dir=.
10574     for ac_exec_ext in '' $ac_executable_extensions; do
10575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10576     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10578     break 2
10579   fi
10580 done
10581   done
10582 IFS=$as_save_IFS
10583
10584 fi
10585 fi
10586 AR=$ac_cv_prog_AR
10587 if test -n "$AR"; then
10588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10589 $as_echo "$AR" >&6; }
10590 else
10591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592 $as_echo "no" >&6; }
10593 fi
10594
10595
10596   fi
10597   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10598     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10599 set dummy ${ncn_progname}; ac_word=$2
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10601 $as_echo_n "checking for $ac_word... " >&6; }
10602 if ${ac_cv_prog_AR+:} false; then :
10603   $as_echo_n "(cached) " >&6
10604 else
10605   if test -n "$AR"; then
10606   ac_cv_prog_AR="$AR" # Let the user override the test.
10607 else
10608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609 for as_dir in $PATH
10610 do
10611   IFS=$as_save_IFS
10612   test -z "$as_dir" && as_dir=.
10613     for ac_exec_ext in '' $ac_executable_extensions; do
10614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10615     ac_cv_prog_AR="${ncn_progname}"
10616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10617     break 2
10618   fi
10619 done
10620   done
10621 IFS=$as_save_IFS
10622
10623 fi
10624 fi
10625 AR=$ac_cv_prog_AR
10626 if test -n "$AR"; then
10627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10628 $as_echo "$AR" >&6; }
10629 else
10630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; }
10632 fi
10633
10634
10635   fi
10636   test -n "$ac_cv_prog_AR" && break
10637 done
10638
10639 if test -z "$ac_cv_prog_AR" ; then
10640   set dummy ar
10641   if test $build = $host ; then
10642     AR="$2"
10643   else
10644     AR="${ncn_tool_prefix}$2"
10645   fi
10646 fi
10647
10648
10649
10650 if test -n "$AS"; then
10651   ac_cv_prog_AS=$AS
10652 elif test -n "$ac_cv_prog_AS"; then
10653   AS=$ac_cv_prog_AS
10654 fi
10655
10656 if test -n "$ac_cv_prog_AS"; then
10657   for ncn_progname in as; do
10658     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10659 set dummy ${ncn_progname}; ac_word=$2
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10661 $as_echo_n "checking for $ac_word... " >&6; }
10662 if ${ac_cv_prog_AS+:} false; then :
10663   $as_echo_n "(cached) " >&6
10664 else
10665   if test -n "$AS"; then
10666   ac_cv_prog_AS="$AS" # Let the user override the test.
10667 else
10668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10669 for as_dir in $PATH
10670 do
10671   IFS=$as_save_IFS
10672   test -z "$as_dir" && as_dir=.
10673     for ac_exec_ext in '' $ac_executable_extensions; do
10674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10675     ac_cv_prog_AS="${ncn_progname}"
10676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10677     break 2
10678   fi
10679 done
10680   done
10681 IFS=$as_save_IFS
10682
10683 fi
10684 fi
10685 AS=$ac_cv_prog_AS
10686 if test -n "$AS"; then
10687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10688 $as_echo "$AS" >&6; }
10689 else
10690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691 $as_echo "no" >&6; }
10692 fi
10693
10694
10695   done
10696 fi
10697
10698 for ncn_progname in as; do
10699   if test -n "$ncn_tool_prefix"; then
10700     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10701 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10703 $as_echo_n "checking for $ac_word... " >&6; }
10704 if ${ac_cv_prog_AS+:} false; then :
10705   $as_echo_n "(cached) " >&6
10706 else
10707   if test -n "$AS"; then
10708   ac_cv_prog_AS="$AS" # Let the user override the test.
10709 else
10710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10711 for as_dir in $PATH
10712 do
10713   IFS=$as_save_IFS
10714   test -z "$as_dir" && as_dir=.
10715     for ac_exec_ext in '' $ac_executable_extensions; do
10716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10717     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10719     break 2
10720   fi
10721 done
10722   done
10723 IFS=$as_save_IFS
10724
10725 fi
10726 fi
10727 AS=$ac_cv_prog_AS
10728 if test -n "$AS"; then
10729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10730 $as_echo "$AS" >&6; }
10731 else
10732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733 $as_echo "no" >&6; }
10734 fi
10735
10736
10737   fi
10738   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10739     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10740 set dummy ${ncn_progname}; ac_word=$2
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10742 $as_echo_n "checking for $ac_word... " >&6; }
10743 if ${ac_cv_prog_AS+:} false; then :
10744   $as_echo_n "(cached) " >&6
10745 else
10746   if test -n "$AS"; then
10747   ac_cv_prog_AS="$AS" # Let the user override the test.
10748 else
10749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10750 for as_dir in $PATH
10751 do
10752   IFS=$as_save_IFS
10753   test -z "$as_dir" && as_dir=.
10754     for ac_exec_ext in '' $ac_executable_extensions; do
10755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10756     ac_cv_prog_AS="${ncn_progname}"
10757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10758     break 2
10759   fi
10760 done
10761   done
10762 IFS=$as_save_IFS
10763
10764 fi
10765 fi
10766 AS=$ac_cv_prog_AS
10767 if test -n "$AS"; then
10768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10769 $as_echo "$AS" >&6; }
10770 else
10771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772 $as_echo "no" >&6; }
10773 fi
10774
10775
10776   fi
10777   test -n "$ac_cv_prog_AS" && break
10778 done
10779
10780 if test -z "$ac_cv_prog_AS" ; then
10781   set dummy as
10782   if test $build = $host ; then
10783     AS="$2"
10784   else
10785     AS="${ncn_tool_prefix}$2"
10786   fi
10787 fi
10788
10789
10790
10791 if test -n "$DLLTOOL"; then
10792   ac_cv_prog_DLLTOOL=$DLLTOOL
10793 elif test -n "$ac_cv_prog_DLLTOOL"; then
10794   DLLTOOL=$ac_cv_prog_DLLTOOL
10795 fi
10796
10797 if test -n "$ac_cv_prog_DLLTOOL"; then
10798   for ncn_progname in dlltool; do
10799     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10800 set dummy ${ncn_progname}; ac_word=$2
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10802 $as_echo_n "checking for $ac_word... " >&6; }
10803 if ${ac_cv_prog_DLLTOOL+:} false; then :
10804   $as_echo_n "(cached) " >&6
10805 else
10806   if test -n "$DLLTOOL"; then
10807   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10808 else
10809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810 for as_dir in $PATH
10811 do
10812   IFS=$as_save_IFS
10813   test -z "$as_dir" && as_dir=.
10814     for ac_exec_ext in '' $ac_executable_extensions; do
10815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10816     ac_cv_prog_DLLTOOL="${ncn_progname}"
10817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10818     break 2
10819   fi
10820 done
10821   done
10822 IFS=$as_save_IFS
10823
10824 fi
10825 fi
10826 DLLTOOL=$ac_cv_prog_DLLTOOL
10827 if test -n "$DLLTOOL"; then
10828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10829 $as_echo "$DLLTOOL" >&6; }
10830 else
10831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832 $as_echo "no" >&6; }
10833 fi
10834
10835
10836   done
10837 fi
10838
10839 for ncn_progname in dlltool; do
10840   if test -n "$ncn_tool_prefix"; then
10841     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10842 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10844 $as_echo_n "checking for $ac_word... " >&6; }
10845 if ${ac_cv_prog_DLLTOOL+:} false; then :
10846   $as_echo_n "(cached) " >&6
10847 else
10848   if test -n "$DLLTOOL"; then
10849   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10850 else
10851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10852 for as_dir in $PATH
10853 do
10854   IFS=$as_save_IFS
10855   test -z "$as_dir" && as_dir=.
10856     for ac_exec_ext in '' $ac_executable_extensions; do
10857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10858     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
10859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10860     break 2
10861   fi
10862 done
10863   done
10864 IFS=$as_save_IFS
10865
10866 fi
10867 fi
10868 DLLTOOL=$ac_cv_prog_DLLTOOL
10869 if test -n "$DLLTOOL"; then
10870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10871 $as_echo "$DLLTOOL" >&6; }
10872 else
10873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10874 $as_echo "no" >&6; }
10875 fi
10876
10877
10878   fi
10879   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
10880     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10881 set dummy ${ncn_progname}; ac_word=$2
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10883 $as_echo_n "checking for $ac_word... " >&6; }
10884 if ${ac_cv_prog_DLLTOOL+:} false; then :
10885   $as_echo_n "(cached) " >&6
10886 else
10887   if test -n "$DLLTOOL"; then
10888   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10889 else
10890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10891 for as_dir in $PATH
10892 do
10893   IFS=$as_save_IFS
10894   test -z "$as_dir" && as_dir=.
10895     for ac_exec_ext in '' $ac_executable_extensions; do
10896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10897     ac_cv_prog_DLLTOOL="${ncn_progname}"
10898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10899     break 2
10900   fi
10901 done
10902   done
10903 IFS=$as_save_IFS
10904
10905 fi
10906 fi
10907 DLLTOOL=$ac_cv_prog_DLLTOOL
10908 if test -n "$DLLTOOL"; then
10909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10910 $as_echo "$DLLTOOL" >&6; }
10911 else
10912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913 $as_echo "no" >&6; }
10914 fi
10915
10916
10917   fi
10918   test -n "$ac_cv_prog_DLLTOOL" && break
10919 done
10920
10921 if test -z "$ac_cv_prog_DLLTOOL" ; then
10922   set dummy dlltool
10923   if test $build = $host ; then
10924     DLLTOOL="$2"
10925   else
10926     DLLTOOL="${ncn_tool_prefix}$2"
10927   fi
10928 fi
10929
10930
10931
10932 if test -n "$DSYMUTIL"; then
10933   ac_cv_prog_DSYMUTIL=$DSYMUTIL
10934 elif test -n "$ac_cv_prog_DSYMUTIL"; then
10935   DSYMUTIL=$ac_cv_prog_DSYMUTIL
10936 fi
10937
10938 if test -n "$ac_cv_prog_DSYMUTIL"; then
10939   for ncn_progname in dsymutil; do
10940     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10941 set dummy ${ncn_progname}; ac_word=$2
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10943 $as_echo_n "checking for $ac_word... " >&6; }
10944 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10945   $as_echo_n "(cached) " >&6
10946 else
10947   if test -n "$DSYMUTIL"; then
10948   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10949 else
10950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951 for as_dir in $PATH
10952 do
10953   IFS=$as_save_IFS
10954   test -z "$as_dir" && as_dir=.
10955     for ac_exec_ext in '' $ac_executable_extensions; do
10956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10957     ac_cv_prog_DSYMUTIL="${ncn_progname}"
10958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10959     break 2
10960   fi
10961 done
10962   done
10963 IFS=$as_save_IFS
10964
10965 fi
10966 fi
10967 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10968 if test -n "$DSYMUTIL"; then
10969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10970 $as_echo "$DSYMUTIL" >&6; }
10971 else
10972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973 $as_echo "no" >&6; }
10974 fi
10975
10976
10977   done
10978 fi
10979
10980 for ncn_progname in dsymutil; do
10981   if test -n "$ncn_tool_prefix"; then
10982     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10983 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10985 $as_echo_n "checking for $ac_word... " >&6; }
10986 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10987   $as_echo_n "(cached) " >&6
10988 else
10989   if test -n "$DSYMUTIL"; then
10990   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10991 else
10992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993 for as_dir in $PATH
10994 do
10995   IFS=$as_save_IFS
10996   test -z "$as_dir" && as_dir=.
10997     for ac_exec_ext in '' $ac_executable_extensions; do
10998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10999     ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11001     break 2
11002   fi
11003 done
11004   done
11005 IFS=$as_save_IFS
11006
11007 fi
11008 fi
11009 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11010 if test -n "$DSYMUTIL"; then
11011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11012 $as_echo "$DSYMUTIL" >&6; }
11013 else
11014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015 $as_echo "no" >&6; }
11016 fi
11017
11018
11019   fi
11020   if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11021     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11022 set dummy ${ncn_progname}; ac_word=$2
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11024 $as_echo_n "checking for $ac_word... " >&6; }
11025 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11026   $as_echo_n "(cached) " >&6
11027 else
11028   if test -n "$DSYMUTIL"; then
11029   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11030 else
11031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032 for as_dir in $PATH
11033 do
11034   IFS=$as_save_IFS
11035   test -z "$as_dir" && as_dir=.
11036     for ac_exec_ext in '' $ac_executable_extensions; do
11037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11038     ac_cv_prog_DSYMUTIL="${ncn_progname}"
11039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11040     break 2
11041   fi
11042 done
11043   done
11044 IFS=$as_save_IFS
11045
11046 fi
11047 fi
11048 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11049 if test -n "$DSYMUTIL"; then
11050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11051 $as_echo "$DSYMUTIL" >&6; }
11052 else
11053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054 $as_echo "no" >&6; }
11055 fi
11056
11057
11058   fi
11059   test -n "$ac_cv_prog_DSYMUTIL" && break
11060 done
11061
11062 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11063   set dummy dsymutil
11064   if test $build = $host ; then
11065     DSYMUTIL="$2"
11066   else
11067     DSYMUTIL="${ncn_tool_prefix}$2"
11068   fi
11069 fi
11070
11071
11072
11073 if test -n "$LD"; then
11074   ac_cv_prog_LD=$LD
11075 elif test -n "$ac_cv_prog_LD"; then
11076   LD=$ac_cv_prog_LD
11077 fi
11078
11079 if test -n "$ac_cv_prog_LD"; then
11080   for ncn_progname in ld; do
11081     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11082 set dummy ${ncn_progname}; ac_word=$2
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11084 $as_echo_n "checking for $ac_word... " >&6; }
11085 if ${ac_cv_prog_LD+:} false; then :
11086   $as_echo_n "(cached) " >&6
11087 else
11088   if test -n "$LD"; then
11089   ac_cv_prog_LD="$LD" # Let the user override the test.
11090 else
11091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092 for as_dir in $PATH
11093 do
11094   IFS=$as_save_IFS
11095   test -z "$as_dir" && as_dir=.
11096     for ac_exec_ext in '' $ac_executable_extensions; do
11097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11098     ac_cv_prog_LD="${ncn_progname}"
11099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11100     break 2
11101   fi
11102 done
11103   done
11104 IFS=$as_save_IFS
11105
11106 fi
11107 fi
11108 LD=$ac_cv_prog_LD
11109 if test -n "$LD"; then
11110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11111 $as_echo "$LD" >&6; }
11112 else
11113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11114 $as_echo "no" >&6; }
11115 fi
11116
11117
11118   done
11119 fi
11120
11121 for ncn_progname in ld; do
11122   if test -n "$ncn_tool_prefix"; then
11123     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11124 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11126 $as_echo_n "checking for $ac_word... " >&6; }
11127 if ${ac_cv_prog_LD+:} false; then :
11128   $as_echo_n "(cached) " >&6
11129 else
11130   if test -n "$LD"; then
11131   ac_cv_prog_LD="$LD" # Let the user override the test.
11132 else
11133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134 for as_dir in $PATH
11135 do
11136   IFS=$as_save_IFS
11137   test -z "$as_dir" && as_dir=.
11138     for ac_exec_ext in '' $ac_executable_extensions; do
11139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11140     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11142     break 2
11143   fi
11144 done
11145   done
11146 IFS=$as_save_IFS
11147
11148 fi
11149 fi
11150 LD=$ac_cv_prog_LD
11151 if test -n "$LD"; then
11152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11153 $as_echo "$LD" >&6; }
11154 else
11155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11157 fi
11158
11159
11160   fi
11161   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11162     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11163 set dummy ${ncn_progname}; ac_word=$2
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11165 $as_echo_n "checking for $ac_word... " >&6; }
11166 if ${ac_cv_prog_LD+:} false; then :
11167   $as_echo_n "(cached) " >&6
11168 else
11169   if test -n "$LD"; then
11170   ac_cv_prog_LD="$LD" # Let the user override the test.
11171 else
11172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11173 for as_dir in $PATH
11174 do
11175   IFS=$as_save_IFS
11176   test -z "$as_dir" && as_dir=.
11177     for ac_exec_ext in '' $ac_executable_extensions; do
11178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11179     ac_cv_prog_LD="${ncn_progname}"
11180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11181     break 2
11182   fi
11183 done
11184   done
11185 IFS=$as_save_IFS
11186
11187 fi
11188 fi
11189 LD=$ac_cv_prog_LD
11190 if test -n "$LD"; then
11191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11192 $as_echo "$LD" >&6; }
11193 else
11194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195 $as_echo "no" >&6; }
11196 fi
11197
11198
11199   fi
11200   test -n "$ac_cv_prog_LD" && break
11201 done
11202
11203 if test -z "$ac_cv_prog_LD" ; then
11204   set dummy ld
11205   if test $build = $host ; then
11206     LD="$2"
11207   else
11208     LD="${ncn_tool_prefix}$2"
11209   fi
11210 fi
11211
11212
11213
11214 if test -n "$LIPO"; then
11215   ac_cv_prog_LIPO=$LIPO
11216 elif test -n "$ac_cv_prog_LIPO"; then
11217   LIPO=$ac_cv_prog_LIPO
11218 fi
11219
11220 if test -n "$ac_cv_prog_LIPO"; then
11221   for ncn_progname in lipo; do
11222     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11223 set dummy ${ncn_progname}; ac_word=$2
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225 $as_echo_n "checking for $ac_word... " >&6; }
11226 if ${ac_cv_prog_LIPO+:} false; then :
11227   $as_echo_n "(cached) " >&6
11228 else
11229   if test -n "$LIPO"; then
11230   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11231 else
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH
11234 do
11235   IFS=$as_save_IFS
11236   test -z "$as_dir" && as_dir=.
11237     for ac_exec_ext in '' $ac_executable_extensions; do
11238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11239     ac_cv_prog_LIPO="${ncn_progname}"
11240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11241     break 2
11242   fi
11243 done
11244   done
11245 IFS=$as_save_IFS
11246
11247 fi
11248 fi
11249 LIPO=$ac_cv_prog_LIPO
11250 if test -n "$LIPO"; then
11251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11252 $as_echo "$LIPO" >&6; }
11253 else
11254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11256 fi
11257
11258
11259   done
11260 fi
11261
11262 for ncn_progname in lipo; do
11263   if test -n "$ncn_tool_prefix"; then
11264     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11265 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11267 $as_echo_n "checking for $ac_word... " >&6; }
11268 if ${ac_cv_prog_LIPO+:} false; then :
11269   $as_echo_n "(cached) " >&6
11270 else
11271   if test -n "$LIPO"; then
11272   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11273 else
11274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275 for as_dir in $PATH
11276 do
11277   IFS=$as_save_IFS
11278   test -z "$as_dir" && as_dir=.
11279     for ac_exec_ext in '' $ac_executable_extensions; do
11280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11281     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11283     break 2
11284   fi
11285 done
11286   done
11287 IFS=$as_save_IFS
11288
11289 fi
11290 fi
11291 LIPO=$ac_cv_prog_LIPO
11292 if test -n "$LIPO"; then
11293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11294 $as_echo "$LIPO" >&6; }
11295 else
11296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297 $as_echo "no" >&6; }
11298 fi
11299
11300
11301   fi
11302   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11303     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11304 set dummy ${ncn_progname}; ac_word=$2
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11306 $as_echo_n "checking for $ac_word... " >&6; }
11307 if ${ac_cv_prog_LIPO+:} false; then :
11308   $as_echo_n "(cached) " >&6
11309 else
11310   if test -n "$LIPO"; then
11311   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11312 else
11313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314 for as_dir in $PATH
11315 do
11316   IFS=$as_save_IFS
11317   test -z "$as_dir" && as_dir=.
11318     for ac_exec_ext in '' $ac_executable_extensions; do
11319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11320     ac_cv_prog_LIPO="${ncn_progname}"
11321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11322     break 2
11323   fi
11324 done
11325   done
11326 IFS=$as_save_IFS
11327
11328 fi
11329 fi
11330 LIPO=$ac_cv_prog_LIPO
11331 if test -n "$LIPO"; then
11332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11333 $as_echo "$LIPO" >&6; }
11334 else
11335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336 $as_echo "no" >&6; }
11337 fi
11338
11339
11340   fi
11341   test -n "$ac_cv_prog_LIPO" && break
11342 done
11343
11344 if test -z "$ac_cv_prog_LIPO" ; then
11345   set dummy lipo
11346   if test $build = $host ; then
11347     LIPO="$2"
11348   else
11349     LIPO="${ncn_tool_prefix}$2"
11350   fi
11351 fi
11352
11353
11354
11355 if test -n "$NM"; then
11356   ac_cv_prog_NM=$NM
11357 elif test -n "$ac_cv_prog_NM"; then
11358   NM=$ac_cv_prog_NM
11359 fi
11360
11361 if test -n "$ac_cv_prog_NM"; then
11362   for ncn_progname in nm; do
11363     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11364 set dummy ${ncn_progname}; ac_word=$2
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11366 $as_echo_n "checking for $ac_word... " >&6; }
11367 if ${ac_cv_prog_NM+:} false; then :
11368   $as_echo_n "(cached) " >&6
11369 else
11370   if test -n "$NM"; then
11371   ac_cv_prog_NM="$NM" # Let the user override the test.
11372 else
11373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374 for as_dir in $PATH
11375 do
11376   IFS=$as_save_IFS
11377   test -z "$as_dir" && as_dir=.
11378     for ac_exec_ext in '' $ac_executable_extensions; do
11379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11380     ac_cv_prog_NM="${ncn_progname}"
11381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11382     break 2
11383   fi
11384 done
11385   done
11386 IFS=$as_save_IFS
11387
11388 fi
11389 fi
11390 NM=$ac_cv_prog_NM
11391 if test -n "$NM"; then
11392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11393 $as_echo "$NM" >&6; }
11394 else
11395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 $as_echo "no" >&6; }
11397 fi
11398
11399
11400   done
11401 fi
11402
11403 for ncn_progname in nm; do
11404   if test -n "$ncn_tool_prefix"; then
11405     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11406 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11408 $as_echo_n "checking for $ac_word... " >&6; }
11409 if ${ac_cv_prog_NM+:} false; then :
11410   $as_echo_n "(cached) " >&6
11411 else
11412   if test -n "$NM"; then
11413   ac_cv_prog_NM="$NM" # Let the user override the test.
11414 else
11415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11416 for as_dir in $PATH
11417 do
11418   IFS=$as_save_IFS
11419   test -z "$as_dir" && as_dir=.
11420     for ac_exec_ext in '' $ac_executable_extensions; do
11421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11422     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11424     break 2
11425   fi
11426 done
11427   done
11428 IFS=$as_save_IFS
11429
11430 fi
11431 fi
11432 NM=$ac_cv_prog_NM
11433 if test -n "$NM"; then
11434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11435 $as_echo "$NM" >&6; }
11436 else
11437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438 $as_echo "no" >&6; }
11439 fi
11440
11441
11442   fi
11443   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11444     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11445 set dummy ${ncn_progname}; ac_word=$2
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11447 $as_echo_n "checking for $ac_word... " >&6; }
11448 if ${ac_cv_prog_NM+:} false; then :
11449   $as_echo_n "(cached) " >&6
11450 else
11451   if test -n "$NM"; then
11452   ac_cv_prog_NM="$NM" # Let the user override the test.
11453 else
11454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11455 for as_dir in $PATH
11456 do
11457   IFS=$as_save_IFS
11458   test -z "$as_dir" && as_dir=.
11459     for ac_exec_ext in '' $ac_executable_extensions; do
11460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11461     ac_cv_prog_NM="${ncn_progname}"
11462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11463     break 2
11464   fi
11465 done
11466   done
11467 IFS=$as_save_IFS
11468
11469 fi
11470 fi
11471 NM=$ac_cv_prog_NM
11472 if test -n "$NM"; then
11473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11474 $as_echo "$NM" >&6; }
11475 else
11476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477 $as_echo "no" >&6; }
11478 fi
11479
11480
11481   fi
11482   test -n "$ac_cv_prog_NM" && break
11483 done
11484
11485 if test -z "$ac_cv_prog_NM" ; then
11486   set dummy nm
11487   if test $build = $host ; then
11488     NM="$2"
11489   else
11490     NM="${ncn_tool_prefix}$2"
11491   fi
11492 fi
11493
11494
11495
11496 if test -n "$RANLIB"; then
11497   ac_cv_prog_RANLIB=$RANLIB
11498 elif test -n "$ac_cv_prog_RANLIB"; then
11499   RANLIB=$ac_cv_prog_RANLIB
11500 fi
11501
11502 if test -n "$ac_cv_prog_RANLIB"; then
11503   for ncn_progname in ranlib; do
11504     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11505 set dummy ${ncn_progname}; ac_word=$2
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507 $as_echo_n "checking for $ac_word... " >&6; }
11508 if ${ac_cv_prog_RANLIB+:} false; then :
11509   $as_echo_n "(cached) " >&6
11510 else
11511   if test -n "$RANLIB"; then
11512   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11513 else
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in $PATH
11516 do
11517   IFS=$as_save_IFS
11518   test -z "$as_dir" && as_dir=.
11519     for ac_exec_ext in '' $ac_executable_extensions; do
11520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11521     ac_cv_prog_RANLIB="${ncn_progname}"
11522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11523     break 2
11524   fi
11525 done
11526   done
11527 IFS=$as_save_IFS
11528
11529 fi
11530 fi
11531 RANLIB=$ac_cv_prog_RANLIB
11532 if test -n "$RANLIB"; then
11533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11534 $as_echo "$RANLIB" >&6; }
11535 else
11536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11538 fi
11539
11540
11541   done
11542 fi
11543
11544 for ncn_progname in ranlib; do
11545   if test -n "$ncn_tool_prefix"; then
11546     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11547 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549 $as_echo_n "checking for $ac_word... " >&6; }
11550 if ${ac_cv_prog_RANLIB+:} false; then :
11551   $as_echo_n "(cached) " >&6
11552 else
11553   if test -n "$RANLIB"; then
11554   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11555 else
11556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557 for as_dir in $PATH
11558 do
11559   IFS=$as_save_IFS
11560   test -z "$as_dir" && as_dir=.
11561     for ac_exec_ext in '' $ac_executable_extensions; do
11562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11563     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11565     break 2
11566   fi
11567 done
11568   done
11569 IFS=$as_save_IFS
11570
11571 fi
11572 fi
11573 RANLIB=$ac_cv_prog_RANLIB
11574 if test -n "$RANLIB"; then
11575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11576 $as_echo "$RANLIB" >&6; }
11577 else
11578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579 $as_echo "no" >&6; }
11580 fi
11581
11582
11583   fi
11584   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11585     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11586 set dummy ${ncn_progname}; ac_word=$2
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11588 $as_echo_n "checking for $ac_word... " >&6; }
11589 if ${ac_cv_prog_RANLIB+:} false; then :
11590   $as_echo_n "(cached) " >&6
11591 else
11592   if test -n "$RANLIB"; then
11593   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11594 else
11595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596 for as_dir in $PATH
11597 do
11598   IFS=$as_save_IFS
11599   test -z "$as_dir" && as_dir=.
11600     for ac_exec_ext in '' $ac_executable_extensions; do
11601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11602     ac_cv_prog_RANLIB="${ncn_progname}"
11603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11604     break 2
11605   fi
11606 done
11607   done
11608 IFS=$as_save_IFS
11609
11610 fi
11611 fi
11612 RANLIB=$ac_cv_prog_RANLIB
11613 if test -n "$RANLIB"; then
11614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11615 $as_echo "$RANLIB" >&6; }
11616 else
11617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618 $as_echo "no" >&6; }
11619 fi
11620
11621
11622   fi
11623   test -n "$ac_cv_prog_RANLIB" && break
11624 done
11625
11626 if test -z "$ac_cv_prog_RANLIB" ; then
11627   RANLIB="true"
11628 fi
11629
11630
11631
11632 if test -n "$STRIP"; then
11633   ac_cv_prog_STRIP=$STRIP
11634 elif test -n "$ac_cv_prog_STRIP"; then
11635   STRIP=$ac_cv_prog_STRIP
11636 fi
11637
11638 if test -n "$ac_cv_prog_STRIP"; then
11639   for ncn_progname in strip; do
11640     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11641 set dummy ${ncn_progname}; ac_word=$2
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11643 $as_echo_n "checking for $ac_word... " >&6; }
11644 if ${ac_cv_prog_STRIP+:} false; then :
11645   $as_echo_n "(cached) " >&6
11646 else
11647   if test -n "$STRIP"; then
11648   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11649 else
11650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651 for as_dir in $PATH
11652 do
11653   IFS=$as_save_IFS
11654   test -z "$as_dir" && as_dir=.
11655     for ac_exec_ext in '' $ac_executable_extensions; do
11656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11657     ac_cv_prog_STRIP="${ncn_progname}"
11658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11659     break 2
11660   fi
11661 done
11662   done
11663 IFS=$as_save_IFS
11664
11665 fi
11666 fi
11667 STRIP=$ac_cv_prog_STRIP
11668 if test -n "$STRIP"; then
11669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11670 $as_echo "$STRIP" >&6; }
11671 else
11672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11674 fi
11675
11676
11677   done
11678 fi
11679
11680 for ncn_progname in strip; do
11681   if test -n "$ncn_tool_prefix"; then
11682     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11683 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11685 $as_echo_n "checking for $ac_word... " >&6; }
11686 if ${ac_cv_prog_STRIP+:} false; then :
11687   $as_echo_n "(cached) " >&6
11688 else
11689   if test -n "$STRIP"; then
11690   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11691 else
11692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693 for as_dir in $PATH
11694 do
11695   IFS=$as_save_IFS
11696   test -z "$as_dir" && as_dir=.
11697     for ac_exec_ext in '' $ac_executable_extensions; do
11698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11699     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11701     break 2
11702   fi
11703 done
11704   done
11705 IFS=$as_save_IFS
11706
11707 fi
11708 fi
11709 STRIP=$ac_cv_prog_STRIP
11710 if test -n "$STRIP"; then
11711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11712 $as_echo "$STRIP" >&6; }
11713 else
11714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; }
11716 fi
11717
11718
11719   fi
11720   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11721     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11722 set dummy ${ncn_progname}; ac_word=$2
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11724 $as_echo_n "checking for $ac_word... " >&6; }
11725 if ${ac_cv_prog_STRIP+:} false; then :
11726   $as_echo_n "(cached) " >&6
11727 else
11728   if test -n "$STRIP"; then
11729   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11730 else
11731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11732 for as_dir in $PATH
11733 do
11734   IFS=$as_save_IFS
11735   test -z "$as_dir" && as_dir=.
11736     for ac_exec_ext in '' $ac_executable_extensions; do
11737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11738     ac_cv_prog_STRIP="${ncn_progname}"
11739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11740     break 2
11741   fi
11742 done
11743   done
11744 IFS=$as_save_IFS
11745
11746 fi
11747 fi
11748 STRIP=$ac_cv_prog_STRIP
11749 if test -n "$STRIP"; then
11750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11751 $as_echo "$STRIP" >&6; }
11752 else
11753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11755 fi
11756
11757
11758   fi
11759   test -n "$ac_cv_prog_STRIP" && break
11760 done
11761
11762 if test -z "$ac_cv_prog_STRIP" ; then
11763   STRIP="true"
11764 fi
11765
11766
11767
11768 if test -n "$WINDRES"; then
11769   ac_cv_prog_WINDRES=$WINDRES
11770 elif test -n "$ac_cv_prog_WINDRES"; then
11771   WINDRES=$ac_cv_prog_WINDRES
11772 fi
11773
11774 if test -n "$ac_cv_prog_WINDRES"; then
11775   for ncn_progname in windres; do
11776     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11777 set dummy ${ncn_progname}; ac_word=$2
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779 $as_echo_n "checking for $ac_word... " >&6; }
11780 if ${ac_cv_prog_WINDRES+:} false; then :
11781   $as_echo_n "(cached) " >&6
11782 else
11783   if test -n "$WINDRES"; then
11784   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11785 else
11786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787 for as_dir in $PATH
11788 do
11789   IFS=$as_save_IFS
11790   test -z "$as_dir" && as_dir=.
11791     for ac_exec_ext in '' $ac_executable_extensions; do
11792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11793     ac_cv_prog_WINDRES="${ncn_progname}"
11794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11795     break 2
11796   fi
11797 done
11798   done
11799 IFS=$as_save_IFS
11800
11801 fi
11802 fi
11803 WINDRES=$ac_cv_prog_WINDRES
11804 if test -n "$WINDRES"; then
11805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11806 $as_echo "$WINDRES" >&6; }
11807 else
11808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11810 fi
11811
11812
11813   done
11814 fi
11815
11816 for ncn_progname in windres; do
11817   if test -n "$ncn_tool_prefix"; then
11818     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11819 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821 $as_echo_n "checking for $ac_word... " >&6; }
11822 if ${ac_cv_prog_WINDRES+:} false; then :
11823   $as_echo_n "(cached) " >&6
11824 else
11825   if test -n "$WINDRES"; then
11826   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11827 else
11828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in $PATH
11830 do
11831   IFS=$as_save_IFS
11832   test -z "$as_dir" && as_dir=.
11833     for ac_exec_ext in '' $ac_executable_extensions; do
11834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11835     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
11836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837     break 2
11838   fi
11839 done
11840   done
11841 IFS=$as_save_IFS
11842
11843 fi
11844 fi
11845 WINDRES=$ac_cv_prog_WINDRES
11846 if test -n "$WINDRES"; then
11847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11848 $as_echo "$WINDRES" >&6; }
11849 else
11850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11852 fi
11853
11854
11855   fi
11856   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11857     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11858 set dummy ${ncn_progname}; ac_word=$2
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11860 $as_echo_n "checking for $ac_word... " >&6; }
11861 if ${ac_cv_prog_WINDRES+:} false; then :
11862   $as_echo_n "(cached) " >&6
11863 else
11864   if test -n "$WINDRES"; then
11865   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11866 else
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in $PATH
11869 do
11870   IFS=$as_save_IFS
11871   test -z "$as_dir" && as_dir=.
11872     for ac_exec_ext in '' $ac_executable_extensions; do
11873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11874     ac_cv_prog_WINDRES="${ncn_progname}"
11875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11876     break 2
11877   fi
11878 done
11879   done
11880 IFS=$as_save_IFS
11881
11882 fi
11883 fi
11884 WINDRES=$ac_cv_prog_WINDRES
11885 if test -n "$WINDRES"; then
11886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11887 $as_echo "$WINDRES" >&6; }
11888 else
11889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890 $as_echo "no" >&6; }
11891 fi
11892
11893
11894   fi
11895   test -n "$ac_cv_prog_WINDRES" && break
11896 done
11897
11898 if test -z "$ac_cv_prog_WINDRES" ; then
11899   set dummy windres
11900   if test $build = $host ; then
11901     WINDRES="$2"
11902   else
11903     WINDRES="${ncn_tool_prefix}$2"
11904   fi
11905 fi
11906
11907
11908
11909 if test -n "$WINDMC"; then
11910   ac_cv_prog_WINDMC=$WINDMC
11911 elif test -n "$ac_cv_prog_WINDMC"; then
11912   WINDMC=$ac_cv_prog_WINDMC
11913 fi
11914
11915 if test -n "$ac_cv_prog_WINDMC"; then
11916   for ncn_progname in windmc; do
11917     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11918 set dummy ${ncn_progname}; ac_word=$2
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11920 $as_echo_n "checking for $ac_word... " >&6; }
11921 if ${ac_cv_prog_WINDMC+:} false; then :
11922   $as_echo_n "(cached) " >&6
11923 else
11924   if test -n "$WINDMC"; then
11925   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11926 else
11927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928 for as_dir in $PATH
11929 do
11930   IFS=$as_save_IFS
11931   test -z "$as_dir" && as_dir=.
11932     for ac_exec_ext in '' $ac_executable_extensions; do
11933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11934     ac_cv_prog_WINDMC="${ncn_progname}"
11935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11936     break 2
11937   fi
11938 done
11939   done
11940 IFS=$as_save_IFS
11941
11942 fi
11943 fi
11944 WINDMC=$ac_cv_prog_WINDMC
11945 if test -n "$WINDMC"; then
11946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11947 $as_echo "$WINDMC" >&6; }
11948 else
11949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950 $as_echo "no" >&6; }
11951 fi
11952
11953
11954   done
11955 fi
11956
11957 for ncn_progname in windmc; do
11958   if test -n "$ncn_tool_prefix"; then
11959     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11960 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11962 $as_echo_n "checking for $ac_word... " >&6; }
11963 if ${ac_cv_prog_WINDMC+:} false; then :
11964   $as_echo_n "(cached) " >&6
11965 else
11966   if test -n "$WINDMC"; then
11967   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11968 else
11969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11970 for as_dir in $PATH
11971 do
11972   IFS=$as_save_IFS
11973   test -z "$as_dir" && as_dir=.
11974     for ac_exec_ext in '' $ac_executable_extensions; do
11975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11976     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
11977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11978     break 2
11979   fi
11980 done
11981   done
11982 IFS=$as_save_IFS
11983
11984 fi
11985 fi
11986 WINDMC=$ac_cv_prog_WINDMC
11987 if test -n "$WINDMC"; then
11988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11989 $as_echo "$WINDMC" >&6; }
11990 else
11991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11993 fi
11994
11995
11996   fi
11997   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
11998     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11999 set dummy ${ncn_progname}; ac_word=$2
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12001 $as_echo_n "checking for $ac_word... " >&6; }
12002 if ${ac_cv_prog_WINDMC+:} false; then :
12003   $as_echo_n "(cached) " >&6
12004 else
12005   if test -n "$WINDMC"; then
12006   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12007 else
12008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12009 for as_dir in $PATH
12010 do
12011   IFS=$as_save_IFS
12012   test -z "$as_dir" && as_dir=.
12013     for ac_exec_ext in '' $ac_executable_extensions; do
12014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12015     ac_cv_prog_WINDMC="${ncn_progname}"
12016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12017     break 2
12018   fi
12019 done
12020   done
12021 IFS=$as_save_IFS
12022
12023 fi
12024 fi
12025 WINDMC=$ac_cv_prog_WINDMC
12026 if test -n "$WINDMC"; then
12027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12028 $as_echo "$WINDMC" >&6; }
12029 else
12030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12032 fi
12033
12034
12035   fi
12036   test -n "$ac_cv_prog_WINDMC" && break
12037 done
12038
12039 if test -z "$ac_cv_prog_WINDMC" ; then
12040   set dummy windmc
12041   if test $build = $host ; then
12042     WINDMC="$2"
12043   else
12044     WINDMC="${ncn_tool_prefix}$2"
12045   fi
12046 fi
12047
12048
12049
12050 if test -n "$OBJCOPY"; then
12051   ac_cv_prog_OBJCOPY=$OBJCOPY
12052 elif test -n "$ac_cv_prog_OBJCOPY"; then
12053   OBJCOPY=$ac_cv_prog_OBJCOPY
12054 fi
12055
12056 if test -n "$ac_cv_prog_OBJCOPY"; then
12057   for ncn_progname in objcopy; do
12058     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12059 set dummy ${ncn_progname}; ac_word=$2
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061 $as_echo_n "checking for $ac_word... " >&6; }
12062 if ${ac_cv_prog_OBJCOPY+:} false; then :
12063   $as_echo_n "(cached) " >&6
12064 else
12065   if test -n "$OBJCOPY"; then
12066   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12067 else
12068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069 for as_dir in $PATH
12070 do
12071   IFS=$as_save_IFS
12072   test -z "$as_dir" && as_dir=.
12073     for ac_exec_ext in '' $ac_executable_extensions; do
12074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12075     ac_cv_prog_OBJCOPY="${ncn_progname}"
12076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12077     break 2
12078   fi
12079 done
12080   done
12081 IFS=$as_save_IFS
12082
12083 fi
12084 fi
12085 OBJCOPY=$ac_cv_prog_OBJCOPY
12086 if test -n "$OBJCOPY"; then
12087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12088 $as_echo "$OBJCOPY" >&6; }
12089 else
12090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 $as_echo "no" >&6; }
12092 fi
12093
12094
12095   done
12096 fi
12097
12098 for ncn_progname in objcopy; do
12099   if test -n "$ncn_tool_prefix"; then
12100     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12101 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12103 $as_echo_n "checking for $ac_word... " >&6; }
12104 if ${ac_cv_prog_OBJCOPY+:} false; then :
12105   $as_echo_n "(cached) " >&6
12106 else
12107   if test -n "$OBJCOPY"; then
12108   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12109 else
12110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111 for as_dir in $PATH
12112 do
12113   IFS=$as_save_IFS
12114   test -z "$as_dir" && as_dir=.
12115     for ac_exec_ext in '' $ac_executable_extensions; do
12116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12117     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12119     break 2
12120   fi
12121 done
12122   done
12123 IFS=$as_save_IFS
12124
12125 fi
12126 fi
12127 OBJCOPY=$ac_cv_prog_OBJCOPY
12128 if test -n "$OBJCOPY"; then
12129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12130 $as_echo "$OBJCOPY" >&6; }
12131 else
12132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12134 fi
12135
12136
12137   fi
12138   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12139     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12140 set dummy ${ncn_progname}; ac_word=$2
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12142 $as_echo_n "checking for $ac_word... " >&6; }
12143 if ${ac_cv_prog_OBJCOPY+:} false; then :
12144   $as_echo_n "(cached) " >&6
12145 else
12146   if test -n "$OBJCOPY"; then
12147   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12148 else
12149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12150 for as_dir in $PATH
12151 do
12152   IFS=$as_save_IFS
12153   test -z "$as_dir" && as_dir=.
12154     for ac_exec_ext in '' $ac_executable_extensions; do
12155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12156     ac_cv_prog_OBJCOPY="${ncn_progname}"
12157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12158     break 2
12159   fi
12160 done
12161   done
12162 IFS=$as_save_IFS
12163
12164 fi
12165 fi
12166 OBJCOPY=$ac_cv_prog_OBJCOPY
12167 if test -n "$OBJCOPY"; then
12168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12169 $as_echo "$OBJCOPY" >&6; }
12170 else
12171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172 $as_echo "no" >&6; }
12173 fi
12174
12175
12176   fi
12177   test -n "$ac_cv_prog_OBJCOPY" && break
12178 done
12179
12180 if test -z "$ac_cv_prog_OBJCOPY" ; then
12181   set dummy objcopy
12182   if test $build = $host ; then
12183     OBJCOPY="$2"
12184   else
12185     OBJCOPY="${ncn_tool_prefix}$2"
12186   fi
12187 fi
12188
12189
12190
12191 if test -n "$OBJDUMP"; then
12192   ac_cv_prog_OBJDUMP=$OBJDUMP
12193 elif test -n "$ac_cv_prog_OBJDUMP"; then
12194   OBJDUMP=$ac_cv_prog_OBJDUMP
12195 fi
12196
12197 if test -n "$ac_cv_prog_OBJDUMP"; then
12198   for ncn_progname in objdump; do
12199     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12200 set dummy ${ncn_progname}; ac_word=$2
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12202 $as_echo_n "checking for $ac_word... " >&6; }
12203 if ${ac_cv_prog_OBJDUMP+:} false; then :
12204   $as_echo_n "(cached) " >&6
12205 else
12206   if test -n "$OBJDUMP"; then
12207   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12208 else
12209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12210 for as_dir in $PATH
12211 do
12212   IFS=$as_save_IFS
12213   test -z "$as_dir" && as_dir=.
12214     for ac_exec_ext in '' $ac_executable_extensions; do
12215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12216     ac_cv_prog_OBJDUMP="${ncn_progname}"
12217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12218     break 2
12219   fi
12220 done
12221   done
12222 IFS=$as_save_IFS
12223
12224 fi
12225 fi
12226 OBJDUMP=$ac_cv_prog_OBJDUMP
12227 if test -n "$OBJDUMP"; then
12228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12229 $as_echo "$OBJDUMP" >&6; }
12230 else
12231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 $as_echo "no" >&6; }
12233 fi
12234
12235
12236   done
12237 fi
12238
12239 for ncn_progname in objdump; do
12240   if test -n "$ncn_tool_prefix"; then
12241     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12242 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244 $as_echo_n "checking for $ac_word... " >&6; }
12245 if ${ac_cv_prog_OBJDUMP+:} false; then :
12246   $as_echo_n "(cached) " >&6
12247 else
12248   if test -n "$OBJDUMP"; then
12249   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12250 else
12251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252 for as_dir in $PATH
12253 do
12254   IFS=$as_save_IFS
12255   test -z "$as_dir" && as_dir=.
12256     for ac_exec_ext in '' $ac_executable_extensions; do
12257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12258     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12260     break 2
12261   fi
12262 done
12263   done
12264 IFS=$as_save_IFS
12265
12266 fi
12267 fi
12268 OBJDUMP=$ac_cv_prog_OBJDUMP
12269 if test -n "$OBJDUMP"; then
12270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12271 $as_echo "$OBJDUMP" >&6; }
12272 else
12273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274 $as_echo "no" >&6; }
12275 fi
12276
12277
12278   fi
12279   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12280     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12281 set dummy ${ncn_progname}; ac_word=$2
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12283 $as_echo_n "checking for $ac_word... " >&6; }
12284 if ${ac_cv_prog_OBJDUMP+:} false; then :
12285   $as_echo_n "(cached) " >&6
12286 else
12287   if test -n "$OBJDUMP"; then
12288   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12289 else
12290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12291 for as_dir in $PATH
12292 do
12293   IFS=$as_save_IFS
12294   test -z "$as_dir" && as_dir=.
12295     for ac_exec_ext in '' $ac_executable_extensions; do
12296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12297     ac_cv_prog_OBJDUMP="${ncn_progname}"
12298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12299     break 2
12300   fi
12301 done
12302   done
12303 IFS=$as_save_IFS
12304
12305 fi
12306 fi
12307 OBJDUMP=$ac_cv_prog_OBJDUMP
12308 if test -n "$OBJDUMP"; then
12309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12310 $as_echo "$OBJDUMP" >&6; }
12311 else
12312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12314 fi
12315
12316
12317   fi
12318   test -n "$ac_cv_prog_OBJDUMP" && break
12319 done
12320
12321 if test -z "$ac_cv_prog_OBJDUMP" ; then
12322   set dummy objdump
12323   if test $build = $host ; then
12324     OBJDUMP="$2"
12325   else
12326     OBJDUMP="${ncn_tool_prefix}$2"
12327   fi
12328 fi
12329
12330
12331
12332 if test -n "$OTOOL"; then
12333   ac_cv_prog_OTOOL=$OTOOL
12334 elif test -n "$ac_cv_prog_OTOOL"; then
12335   OTOOL=$ac_cv_prog_OTOOL
12336 fi
12337
12338 if test -n "$ac_cv_prog_OTOOL"; then
12339   for ncn_progname in otool; do
12340     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12341 set dummy ${ncn_progname}; ac_word=$2
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343 $as_echo_n "checking for $ac_word... " >&6; }
12344 if ${ac_cv_prog_OTOOL+:} false; then :
12345   $as_echo_n "(cached) " >&6
12346 else
12347   if test -n "$OTOOL"; then
12348   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12349 else
12350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351 for as_dir in $PATH
12352 do
12353   IFS=$as_save_IFS
12354   test -z "$as_dir" && as_dir=.
12355     for ac_exec_ext in '' $ac_executable_extensions; do
12356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12357     ac_cv_prog_OTOOL="${ncn_progname}"
12358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12359     break 2
12360   fi
12361 done
12362   done
12363 IFS=$as_save_IFS
12364
12365 fi
12366 fi
12367 OTOOL=$ac_cv_prog_OTOOL
12368 if test -n "$OTOOL"; then
12369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12370 $as_echo "$OTOOL" >&6; }
12371 else
12372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373 $as_echo "no" >&6; }
12374 fi
12375
12376
12377   done
12378 fi
12379
12380 for ncn_progname in otool; do
12381   if test -n "$ncn_tool_prefix"; then
12382     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12383 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12385 $as_echo_n "checking for $ac_word... " >&6; }
12386 if ${ac_cv_prog_OTOOL+:} false; then :
12387   $as_echo_n "(cached) " >&6
12388 else
12389   if test -n "$OTOOL"; then
12390   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12391 else
12392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12393 for as_dir in $PATH
12394 do
12395   IFS=$as_save_IFS
12396   test -z "$as_dir" && as_dir=.
12397     for ac_exec_ext in '' $ac_executable_extensions; do
12398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12399     ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12401     break 2
12402   fi
12403 done
12404   done
12405 IFS=$as_save_IFS
12406
12407 fi
12408 fi
12409 OTOOL=$ac_cv_prog_OTOOL
12410 if test -n "$OTOOL"; then
12411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12412 $as_echo "$OTOOL" >&6; }
12413 else
12414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415 $as_echo "no" >&6; }
12416 fi
12417
12418
12419   fi
12420   if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12421     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12422 set dummy ${ncn_progname}; ac_word=$2
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12424 $as_echo_n "checking for $ac_word... " >&6; }
12425 if ${ac_cv_prog_OTOOL+:} false; then :
12426   $as_echo_n "(cached) " >&6
12427 else
12428   if test -n "$OTOOL"; then
12429   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12430 else
12431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12432 for as_dir in $PATH
12433 do
12434   IFS=$as_save_IFS
12435   test -z "$as_dir" && as_dir=.
12436     for ac_exec_ext in '' $ac_executable_extensions; do
12437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12438     ac_cv_prog_OTOOL="${ncn_progname}"
12439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12440     break 2
12441   fi
12442 done
12443   done
12444 IFS=$as_save_IFS
12445
12446 fi
12447 fi
12448 OTOOL=$ac_cv_prog_OTOOL
12449 if test -n "$OTOOL"; then
12450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12451 $as_echo "$OTOOL" >&6; }
12452 else
12453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12454 $as_echo "no" >&6; }
12455 fi
12456
12457
12458   fi
12459   test -n "$ac_cv_prog_OTOOL" && break
12460 done
12461
12462 if test -z "$ac_cv_prog_OTOOL" ; then
12463   set dummy otool
12464   if test $build = $host ; then
12465     OTOOL="$2"
12466   else
12467     OTOOL="${ncn_tool_prefix}$2"
12468   fi
12469 fi
12470
12471
12472
12473 if test -n "$READELF"; then
12474   ac_cv_prog_READELF=$READELF
12475 elif test -n "$ac_cv_prog_READELF"; then
12476   READELF=$ac_cv_prog_READELF
12477 fi
12478
12479 if test -n "$ac_cv_prog_READELF"; then
12480   for ncn_progname in readelf; do
12481     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12482 set dummy ${ncn_progname}; ac_word=$2
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12484 $as_echo_n "checking for $ac_word... " >&6; }
12485 if ${ac_cv_prog_READELF+:} false; then :
12486   $as_echo_n "(cached) " >&6
12487 else
12488   if test -n "$READELF"; then
12489   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12490 else
12491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492 for as_dir in $PATH
12493 do
12494   IFS=$as_save_IFS
12495   test -z "$as_dir" && as_dir=.
12496     for ac_exec_ext in '' $ac_executable_extensions; do
12497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12498     ac_cv_prog_READELF="${ncn_progname}"
12499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12500     break 2
12501   fi
12502 done
12503   done
12504 IFS=$as_save_IFS
12505
12506 fi
12507 fi
12508 READELF=$ac_cv_prog_READELF
12509 if test -n "$READELF"; then
12510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12511 $as_echo "$READELF" >&6; }
12512 else
12513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12514 $as_echo "no" >&6; }
12515 fi
12516
12517
12518   done
12519 fi
12520
12521 for ncn_progname in readelf; do
12522   if test -n "$ncn_tool_prefix"; then
12523     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12524 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12526 $as_echo_n "checking for $ac_word... " >&6; }
12527 if ${ac_cv_prog_READELF+:} false; then :
12528   $as_echo_n "(cached) " >&6
12529 else
12530   if test -n "$READELF"; then
12531   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12532 else
12533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12534 for as_dir in $PATH
12535 do
12536   IFS=$as_save_IFS
12537   test -z "$as_dir" && as_dir=.
12538     for ac_exec_ext in '' $ac_executable_extensions; do
12539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12540     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12542     break 2
12543   fi
12544 done
12545   done
12546 IFS=$as_save_IFS
12547
12548 fi
12549 fi
12550 READELF=$ac_cv_prog_READELF
12551 if test -n "$READELF"; then
12552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12553 $as_echo "$READELF" >&6; }
12554 else
12555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12556 $as_echo "no" >&6; }
12557 fi
12558
12559
12560   fi
12561   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12562     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12563 set dummy ${ncn_progname}; ac_word=$2
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12565 $as_echo_n "checking for $ac_word... " >&6; }
12566 if ${ac_cv_prog_READELF+:} false; then :
12567   $as_echo_n "(cached) " >&6
12568 else
12569   if test -n "$READELF"; then
12570   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12571 else
12572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12573 for as_dir in $PATH
12574 do
12575   IFS=$as_save_IFS
12576   test -z "$as_dir" && as_dir=.
12577     for ac_exec_ext in '' $ac_executable_extensions; do
12578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12579     ac_cv_prog_READELF="${ncn_progname}"
12580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12581     break 2
12582   fi
12583 done
12584   done
12585 IFS=$as_save_IFS
12586
12587 fi
12588 fi
12589 READELF=$ac_cv_prog_READELF
12590 if test -n "$READELF"; then
12591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12592 $as_echo "$READELF" >&6; }
12593 else
12594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595 $as_echo "no" >&6; }
12596 fi
12597
12598
12599   fi
12600   test -n "$ac_cv_prog_READELF" && break
12601 done
12602
12603 if test -z "$ac_cv_prog_READELF" ; then
12604   set dummy readelf
12605   if test $build = $host ; then
12606     READELF="$2"
12607   else
12608     READELF="${ncn_tool_prefix}$2"
12609   fi
12610 fi
12611
12612
12613
12614
12615
12616
12617 # Target tools.
12618
12619 # Check whether --with-build-time-tools was given.
12620 if test "${with_build_time_tools+set}" = set; then :
12621   withval=$with_build_time_tools; case x"$withval" in
12622      x/*) ;;
12623      *)
12624        with_build_time_tools=
12625        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12626 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12627        ;;
12628    esac
12629 else
12630   with_build_time_tools=
12631 fi
12632
12633
12634
12635
12636 if test -n "$CC_FOR_TARGET"; then
12637   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12638 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12639   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12640 fi
12641
12642 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12643   for ncn_progname in cc gcc; do
12644     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12645 set dummy ${ncn_progname}; ac_word=$2
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12647 $as_echo_n "checking for $ac_word... " >&6; }
12648 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12649   $as_echo_n "(cached) " >&6
12650 else
12651   if test -n "$CC_FOR_TARGET"; then
12652   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12653 else
12654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12655 for as_dir in $PATH
12656 do
12657   IFS=$as_save_IFS
12658   test -z "$as_dir" && as_dir=.
12659     for ac_exec_ext in '' $ac_executable_extensions; do
12660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12661     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12663     break 2
12664   fi
12665 done
12666   done
12667 IFS=$as_save_IFS
12668
12669 fi
12670 fi
12671 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12672 if test -n "$CC_FOR_TARGET"; then
12673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12674 $as_echo "$CC_FOR_TARGET" >&6; }
12675 else
12676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12678 fi
12679
12680
12681   done
12682 fi
12683
12684 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12685   for ncn_progname in cc gcc; do
12686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12687 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12688     if test -x $with_build_time_tools/${ncn_progname}; then
12689       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12690       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12691 $as_echo "yes" >&6; }
12692       break
12693     else
12694       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695 $as_echo "no" >&6; }
12696     fi
12697   done
12698 fi
12699
12700 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12701   for ncn_progname in cc gcc; do
12702     if test -n "$ncn_target_tool_prefix"; then
12703       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12704 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12706 $as_echo_n "checking for $ac_word... " >&6; }
12707 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12708   $as_echo_n "(cached) " >&6
12709 else
12710   if test -n "$CC_FOR_TARGET"; then
12711   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12712 else
12713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714 for as_dir in $PATH
12715 do
12716   IFS=$as_save_IFS
12717   test -z "$as_dir" && as_dir=.
12718     for ac_exec_ext in '' $ac_executable_extensions; do
12719   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12720     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12722     break 2
12723   fi
12724 done
12725   done
12726 IFS=$as_save_IFS
12727
12728 fi
12729 fi
12730 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12731 if test -n "$CC_FOR_TARGET"; then
12732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12733 $as_echo "$CC_FOR_TARGET" >&6; }
12734 else
12735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736 $as_echo "no" >&6; }
12737 fi
12738
12739
12740     fi
12741     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12742       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12743 set dummy ${ncn_progname}; ac_word=$2
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12745 $as_echo_n "checking for $ac_word... " >&6; }
12746 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12747   $as_echo_n "(cached) " >&6
12748 else
12749   if test -n "$CC_FOR_TARGET"; then
12750   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12751 else
12752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753 for as_dir in $PATH
12754 do
12755   IFS=$as_save_IFS
12756   test -z "$as_dir" && as_dir=.
12757     for ac_exec_ext in '' $ac_executable_extensions; do
12758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12759     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12761     break 2
12762   fi
12763 done
12764   done
12765 IFS=$as_save_IFS
12766
12767 fi
12768 fi
12769 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12770 if test -n "$CC_FOR_TARGET"; then
12771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12772 $as_echo "$CC_FOR_TARGET" >&6; }
12773 else
12774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775 $as_echo "no" >&6; }
12776 fi
12777
12778
12779     fi
12780     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12781   done
12782 fi
12783
12784 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12785   set dummy cc gcc
12786   if test $build = $target ; then
12787     CC_FOR_TARGET="$2"
12788   else
12789     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12790   fi
12791 else
12792   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12793 fi
12794
12795
12796
12797 if test -n "$CXX_FOR_TARGET"; then
12798   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12799 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12800   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12801 fi
12802
12803 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12804   for ncn_progname in c++ g++ cxx gxx; do
12805     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12806 set dummy ${ncn_progname}; ac_word=$2
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12808 $as_echo_n "checking for $ac_word... " >&6; }
12809 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12810   $as_echo_n "(cached) " >&6
12811 else
12812   if test -n "$CXX_FOR_TARGET"; then
12813   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12814 else
12815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12816 for as_dir in $PATH
12817 do
12818   IFS=$as_save_IFS
12819   test -z "$as_dir" && as_dir=.
12820     for ac_exec_ext in '' $ac_executable_extensions; do
12821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12822     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12824     break 2
12825   fi
12826 done
12827   done
12828 IFS=$as_save_IFS
12829
12830 fi
12831 fi
12832 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12833 if test -n "$CXX_FOR_TARGET"; then
12834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12835 $as_echo "$CXX_FOR_TARGET" >&6; }
12836 else
12837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12839 fi
12840
12841
12842   done
12843 fi
12844
12845 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
12846   for ncn_progname in c++ g++ cxx gxx; do
12847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12848 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12849     if test -x $with_build_time_tools/${ncn_progname}; then
12850       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12851       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12852 $as_echo "yes" >&6; }
12853       break
12854     else
12855       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856 $as_echo "no" >&6; }
12857     fi
12858   done
12859 fi
12860
12861 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12862   for ncn_progname in c++ g++ cxx gxx; do
12863     if test -n "$ncn_target_tool_prefix"; then
12864       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12865 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12867 $as_echo_n "checking for $ac_word... " >&6; }
12868 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12869   $as_echo_n "(cached) " >&6
12870 else
12871   if test -n "$CXX_FOR_TARGET"; then
12872   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12873 else
12874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12875 for as_dir in $PATH
12876 do
12877   IFS=$as_save_IFS
12878   test -z "$as_dir" && as_dir=.
12879     for ac_exec_ext in '' $ac_executable_extensions; do
12880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12881     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12883     break 2
12884   fi
12885 done
12886   done
12887 IFS=$as_save_IFS
12888
12889 fi
12890 fi
12891 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12892 if test -n "$CXX_FOR_TARGET"; then
12893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12894 $as_echo "$CXX_FOR_TARGET" >&6; }
12895 else
12896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12897 $as_echo "no" >&6; }
12898 fi
12899
12900
12901     fi
12902     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
12903       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12904 set dummy ${ncn_progname}; ac_word=$2
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906 $as_echo_n "checking for $ac_word... " >&6; }
12907 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12908   $as_echo_n "(cached) " >&6
12909 else
12910   if test -n "$CXX_FOR_TARGET"; then
12911   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12912 else
12913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12914 for as_dir in $PATH
12915 do
12916   IFS=$as_save_IFS
12917   test -z "$as_dir" && as_dir=.
12918     for ac_exec_ext in '' $ac_executable_extensions; do
12919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12920     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12922     break 2
12923   fi
12924 done
12925   done
12926 IFS=$as_save_IFS
12927
12928 fi
12929 fi
12930 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12931 if test -n "$CXX_FOR_TARGET"; then
12932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12933 $as_echo "$CXX_FOR_TARGET" >&6; }
12934 else
12935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936 $as_echo "no" >&6; }
12937 fi
12938
12939
12940     fi
12941     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
12942   done
12943 fi
12944
12945 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
12946   set dummy c++ g++ cxx gxx
12947   if test $build = $target ; then
12948     CXX_FOR_TARGET="$2"
12949   else
12950     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
12951   fi
12952 else
12953   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
12954 fi
12955
12956
12957
12958 if test -n "$GCC_FOR_TARGET"; then
12959   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
12960 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12961   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12962 fi
12963
12964 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12965   for ncn_progname in gcc; do
12966     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12967 set dummy ${ncn_progname}; ac_word=$2
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12969 $as_echo_n "checking for $ac_word... " >&6; }
12970 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12971   $as_echo_n "(cached) " >&6
12972 else
12973   if test -n "$GCC_FOR_TARGET"; then
12974   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12975 else
12976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12977 for as_dir in $PATH
12978 do
12979   IFS=$as_save_IFS
12980   test -z "$as_dir" && as_dir=.
12981     for ac_exec_ext in '' $ac_executable_extensions; do
12982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12983     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12985     break 2
12986   fi
12987 done
12988   done
12989 IFS=$as_save_IFS
12990
12991 fi
12992 fi
12993 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12994 if test -n "$GCC_FOR_TARGET"; then
12995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12996 $as_echo "$GCC_FOR_TARGET" >&6; }
12997 else
12998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999 $as_echo "no" >&6; }
13000 fi
13001
13002
13003   done
13004 fi
13005
13006 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13007   for ncn_progname in gcc; do
13008     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13009 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13010     if test -x $with_build_time_tools/${ncn_progname}; then
13011       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13012       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13013 $as_echo "yes" >&6; }
13014       break
13015     else
13016       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017 $as_echo "no" >&6; }
13018     fi
13019   done
13020 fi
13021
13022 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13023   for ncn_progname in gcc; do
13024     if test -n "$ncn_target_tool_prefix"; then
13025       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13026 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13028 $as_echo_n "checking for $ac_word... " >&6; }
13029 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13030   $as_echo_n "(cached) " >&6
13031 else
13032   if test -n "$GCC_FOR_TARGET"; then
13033   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13034 else
13035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13036 for as_dir in $PATH
13037 do
13038   IFS=$as_save_IFS
13039   test -z "$as_dir" && as_dir=.
13040     for ac_exec_ext in '' $ac_executable_extensions; do
13041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13042     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13044     break 2
13045   fi
13046 done
13047   done
13048 IFS=$as_save_IFS
13049
13050 fi
13051 fi
13052 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13053 if test -n "$GCC_FOR_TARGET"; then
13054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13055 $as_echo "$GCC_FOR_TARGET" >&6; }
13056 else
13057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13058 $as_echo "no" >&6; }
13059 fi
13060
13061
13062     fi
13063     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13064       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13065 set dummy ${ncn_progname}; ac_word=$2
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13067 $as_echo_n "checking for $ac_word... " >&6; }
13068 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13069   $as_echo_n "(cached) " >&6
13070 else
13071   if test -n "$GCC_FOR_TARGET"; then
13072   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13073 else
13074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075 for as_dir in $PATH
13076 do
13077   IFS=$as_save_IFS
13078   test -z "$as_dir" && as_dir=.
13079     for ac_exec_ext in '' $ac_executable_extensions; do
13080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13081     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13083     break 2
13084   fi
13085 done
13086   done
13087 IFS=$as_save_IFS
13088
13089 fi
13090 fi
13091 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13092 if test -n "$GCC_FOR_TARGET"; then
13093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13094 $as_echo "$GCC_FOR_TARGET" >&6; }
13095 else
13096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13098 fi
13099
13100
13101     fi
13102     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13103   done
13104 fi
13105
13106 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13107   GCC_FOR_TARGET="${CC_FOR_TARGET}"
13108 else
13109   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13110 fi
13111
13112
13113
13114 if test -n "$GFORTRAN_FOR_TARGET"; then
13115   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13116 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13117   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13118 fi
13119
13120 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13121   for ncn_progname in gfortran; do
13122     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13123 set dummy ${ncn_progname}; ac_word=$2
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13125 $as_echo_n "checking for $ac_word... " >&6; }
13126 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13127   $as_echo_n "(cached) " >&6
13128 else
13129   if test -n "$GFORTRAN_FOR_TARGET"; then
13130   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13131 else
13132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13133 for as_dir in $PATH
13134 do
13135   IFS=$as_save_IFS
13136   test -z "$as_dir" && as_dir=.
13137     for ac_exec_ext in '' $ac_executable_extensions; do
13138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13139     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13141     break 2
13142   fi
13143 done
13144   done
13145 IFS=$as_save_IFS
13146
13147 fi
13148 fi
13149 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13150 if test -n "$GFORTRAN_FOR_TARGET"; then
13151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13152 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13153 else
13154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155 $as_echo "no" >&6; }
13156 fi
13157
13158
13159   done
13160 fi
13161
13162 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13163   for ncn_progname in gfortran; do
13164     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13165 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13166     if test -x $with_build_time_tools/${ncn_progname}; then
13167       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13168       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13169 $as_echo "yes" >&6; }
13170       break
13171     else
13172       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13173 $as_echo "no" >&6; }
13174     fi
13175   done
13176 fi
13177
13178 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13179   for ncn_progname in gfortran; do
13180     if test -n "$ncn_target_tool_prefix"; then
13181       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13182 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13184 $as_echo_n "checking for $ac_word... " >&6; }
13185 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13186   $as_echo_n "(cached) " >&6
13187 else
13188   if test -n "$GFORTRAN_FOR_TARGET"; then
13189   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13190 else
13191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13192 for as_dir in $PATH
13193 do
13194   IFS=$as_save_IFS
13195   test -z "$as_dir" && as_dir=.
13196     for ac_exec_ext in '' $ac_executable_extensions; do
13197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13198     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13200     break 2
13201   fi
13202 done
13203   done
13204 IFS=$as_save_IFS
13205
13206 fi
13207 fi
13208 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13209 if test -n "$GFORTRAN_FOR_TARGET"; then
13210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13211 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13212 else
13213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13214 $as_echo "no" >&6; }
13215 fi
13216
13217
13218     fi
13219     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13220       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13221 set dummy ${ncn_progname}; ac_word=$2
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13223 $as_echo_n "checking for $ac_word... " >&6; }
13224 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13225   $as_echo_n "(cached) " >&6
13226 else
13227   if test -n "$GFORTRAN_FOR_TARGET"; then
13228   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13229 else
13230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13231 for as_dir in $PATH
13232 do
13233   IFS=$as_save_IFS
13234   test -z "$as_dir" && as_dir=.
13235     for ac_exec_ext in '' $ac_executable_extensions; do
13236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13237     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13239     break 2
13240   fi
13241 done
13242   done
13243 IFS=$as_save_IFS
13244
13245 fi
13246 fi
13247 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13248 if test -n "$GFORTRAN_FOR_TARGET"; then
13249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13250 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13251 else
13252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13254 fi
13255
13256
13257     fi
13258     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13259   done
13260 fi
13261
13262 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13263   set dummy gfortran
13264   if test $build = $target ; then
13265     GFORTRAN_FOR_TARGET="$2"
13266   else
13267     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13268   fi
13269 else
13270   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13271 fi
13272
13273
13274
13275 if test -n "$GOC_FOR_TARGET"; then
13276   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13277 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13278   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13279 fi
13280
13281 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13282   for ncn_progname in gccgo; do
13283     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13284 set dummy ${ncn_progname}; ac_word=$2
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13286 $as_echo_n "checking for $ac_word... " >&6; }
13287 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13288   $as_echo_n "(cached) " >&6
13289 else
13290   if test -n "$GOC_FOR_TARGET"; then
13291   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13292 else
13293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13294 for as_dir in $PATH
13295 do
13296   IFS=$as_save_IFS
13297   test -z "$as_dir" && as_dir=.
13298     for ac_exec_ext in '' $ac_executable_extensions; do
13299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13300     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13302     break 2
13303   fi
13304 done
13305   done
13306 IFS=$as_save_IFS
13307
13308 fi
13309 fi
13310 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13311 if test -n "$GOC_FOR_TARGET"; then
13312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13313 $as_echo "$GOC_FOR_TARGET" >&6; }
13314 else
13315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13316 $as_echo "no" >&6; }
13317 fi
13318
13319
13320   done
13321 fi
13322
13323 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13324   for ncn_progname in gccgo; do
13325     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13326 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13327     if test -x $with_build_time_tools/${ncn_progname}; then
13328       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13329       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13330 $as_echo "yes" >&6; }
13331       break
13332     else
13333       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13335     fi
13336   done
13337 fi
13338
13339 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13340   for ncn_progname in gccgo; do
13341     if test -n "$ncn_target_tool_prefix"; then
13342       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13343 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13345 $as_echo_n "checking for $ac_word... " >&6; }
13346 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13347   $as_echo_n "(cached) " >&6
13348 else
13349   if test -n "$GOC_FOR_TARGET"; then
13350   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13351 else
13352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353 for as_dir in $PATH
13354 do
13355   IFS=$as_save_IFS
13356   test -z "$as_dir" && as_dir=.
13357     for ac_exec_ext in '' $ac_executable_extensions; do
13358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13359     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13361     break 2
13362   fi
13363 done
13364   done
13365 IFS=$as_save_IFS
13366
13367 fi
13368 fi
13369 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13370 if test -n "$GOC_FOR_TARGET"; then
13371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13372 $as_echo "$GOC_FOR_TARGET" >&6; }
13373 else
13374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375 $as_echo "no" >&6; }
13376 fi
13377
13378
13379     fi
13380     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13381       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13382 set dummy ${ncn_progname}; ac_word=$2
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13384 $as_echo_n "checking for $ac_word... " >&6; }
13385 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13386   $as_echo_n "(cached) " >&6
13387 else
13388   if test -n "$GOC_FOR_TARGET"; then
13389   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13390 else
13391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13392 for as_dir in $PATH
13393 do
13394   IFS=$as_save_IFS
13395   test -z "$as_dir" && as_dir=.
13396     for ac_exec_ext in '' $ac_executable_extensions; do
13397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13398     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13400     break 2
13401   fi
13402 done
13403   done
13404 IFS=$as_save_IFS
13405
13406 fi
13407 fi
13408 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13409 if test -n "$GOC_FOR_TARGET"; then
13410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13411 $as_echo "$GOC_FOR_TARGET" >&6; }
13412 else
13413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13414 $as_echo "no" >&6; }
13415 fi
13416
13417
13418     fi
13419     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13420   done
13421 fi
13422
13423 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13424   set dummy gccgo
13425   if test $build = $target ; then
13426     GOC_FOR_TARGET="$2"
13427   else
13428     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13429   fi
13430 else
13431   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13432 fi
13433
13434
13435
13436 if test -n "$GDC_FOR_TARGET"; then
13437   ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13438 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13439   GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13440 fi
13441
13442 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13443   for ncn_progname in gdc; do
13444     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13445 set dummy ${ncn_progname}; ac_word=$2
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13447 $as_echo_n "checking for $ac_word... " >&6; }
13448 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13449   $as_echo_n "(cached) " >&6
13450 else
13451   if test -n "$GDC_FOR_TARGET"; then
13452   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13453 else
13454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13455 for as_dir in $PATH
13456 do
13457   IFS=$as_save_IFS
13458   test -z "$as_dir" && as_dir=.
13459     for ac_exec_ext in '' $ac_executable_extensions; do
13460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13461     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13463     break 2
13464   fi
13465 done
13466   done
13467 IFS=$as_save_IFS
13468
13469 fi
13470 fi
13471 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13472 if test -n "$GDC_FOR_TARGET"; then
13473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13474 $as_echo "$GDC_FOR_TARGET" >&6; }
13475 else
13476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477 $as_echo "no" >&6; }
13478 fi
13479
13480
13481   done
13482 fi
13483
13484 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13485   for ncn_progname in gdc; do
13486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13487 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13488     if test -x $with_build_time_tools/${ncn_progname}; then
13489       ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13490       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13491 $as_echo "yes" >&6; }
13492       break
13493     else
13494       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495 $as_echo "no" >&6; }
13496     fi
13497   done
13498 fi
13499
13500 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13501   for ncn_progname in gdc; do
13502     if test -n "$ncn_target_tool_prefix"; then
13503       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13504 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13506 $as_echo_n "checking for $ac_word... " >&6; }
13507 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13508   $as_echo_n "(cached) " >&6
13509 else
13510   if test -n "$GDC_FOR_TARGET"; then
13511   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13512 else
13513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13514 for as_dir in $PATH
13515 do
13516   IFS=$as_save_IFS
13517   test -z "$as_dir" && as_dir=.
13518     for ac_exec_ext in '' $ac_executable_extensions; do
13519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13520     ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13522     break 2
13523   fi
13524 done
13525   done
13526 IFS=$as_save_IFS
13527
13528 fi
13529 fi
13530 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13531 if test -n "$GDC_FOR_TARGET"; then
13532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13533 $as_echo "$GDC_FOR_TARGET" >&6; }
13534 else
13535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13536 $as_echo "no" >&6; }
13537 fi
13538
13539
13540     fi
13541     if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13542       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13543 set dummy ${ncn_progname}; ac_word=$2
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13545 $as_echo_n "checking for $ac_word... " >&6; }
13546 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13547   $as_echo_n "(cached) " >&6
13548 else
13549   if test -n "$GDC_FOR_TARGET"; then
13550   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13551 else
13552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13553 for as_dir in $PATH
13554 do
13555   IFS=$as_save_IFS
13556   test -z "$as_dir" && as_dir=.
13557     for ac_exec_ext in '' $ac_executable_extensions; do
13558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13559     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13561     break 2
13562   fi
13563 done
13564   done
13565 IFS=$as_save_IFS
13566
13567 fi
13568 fi
13569 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13570 if test -n "$GDC_FOR_TARGET"; then
13571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13572 $as_echo "$GDC_FOR_TARGET" >&6; }
13573 else
13574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13575 $as_echo "no" >&6; }
13576 fi
13577
13578
13579     fi
13580     test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13581   done
13582 fi
13583
13584 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13585   set dummy gdc
13586   if test $build = $target ; then
13587     GDC_FOR_TARGET="$2"
13588   else
13589     GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13590   fi
13591 else
13592   GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13593 fi
13594
13595
13596
13597 cat > conftest.c << \EOF
13598 #ifdef __GNUC__
13599   gcc_yay;
13600 #endif
13601 EOF
13602 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13603   have_gcc_for_target=yes
13604 else
13605   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13606   have_gcc_for_target=no
13607 fi
13608 rm conftest.c
13609
13610
13611
13612
13613 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13614   if test -n "$with_build_time_tools"; then
13615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13616 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13617     if test -x $with_build_time_tools/ar; then
13618       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13619       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13620       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13621 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13622     else
13623       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13624 $as_echo "no" >&6; }
13625     fi
13626   elif test $build != $host && test $have_gcc_for_target = yes; then
13627     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13628     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13629     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13630   fi
13631 fi
13632 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13633   # Extract the first word of "ar", so it can be a program name with args.
13634 set dummy ar; ac_word=$2
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13636 $as_echo_n "checking for $ac_word... " >&6; }
13637 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13638   $as_echo_n "(cached) " >&6
13639 else
13640   case $AR_FOR_TARGET in
13641   [\\/]* | ?:[\\/]*)
13642   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13643   ;;
13644   *)
13645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13646 for as_dir in $gcc_cv_tool_dirs
13647 do
13648   IFS=$as_save_IFS
13649   test -z "$as_dir" && as_dir=.
13650     for ac_exec_ext in '' $ac_executable_extensions; do
13651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13652     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13654     break 2
13655   fi
13656 done
13657   done
13658 IFS=$as_save_IFS
13659
13660   ;;
13661 esac
13662 fi
13663 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13664 if test -n "$AR_FOR_TARGET"; then
13665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13666 $as_echo "$AR_FOR_TARGET" >&6; }
13667 else
13668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13669 $as_echo "no" >&6; }
13670 fi
13671
13672
13673 fi
13674 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13675
13676
13677 if test -n "$AR_FOR_TARGET"; then
13678   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13679 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13680   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13681 fi
13682
13683 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13684   for ncn_progname in ar; do
13685     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13686 set dummy ${ncn_progname}; ac_word=$2
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13688 $as_echo_n "checking for $ac_word... " >&6; }
13689 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13690   $as_echo_n "(cached) " >&6
13691 else
13692   if test -n "$AR_FOR_TARGET"; then
13693   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13694 else
13695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13696 for as_dir in $PATH
13697 do
13698   IFS=$as_save_IFS
13699   test -z "$as_dir" && as_dir=.
13700     for ac_exec_ext in '' $ac_executable_extensions; do
13701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13702     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13704     break 2
13705   fi
13706 done
13707   done
13708 IFS=$as_save_IFS
13709
13710 fi
13711 fi
13712 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13713 if test -n "$AR_FOR_TARGET"; then
13714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13715 $as_echo "$AR_FOR_TARGET" >&6; }
13716 else
13717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13718 $as_echo "no" >&6; }
13719 fi
13720
13721
13722   done
13723 fi
13724
13725 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13726   for ncn_progname in ar; do
13727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13728 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13729     if test -x $with_build_time_tools/${ncn_progname}; then
13730       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13731       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13732 $as_echo "yes" >&6; }
13733       break
13734     else
13735       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13736 $as_echo "no" >&6; }
13737     fi
13738   done
13739 fi
13740
13741 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13742   for ncn_progname in ar; do
13743     if test -n "$ncn_target_tool_prefix"; then
13744       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13745 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13747 $as_echo_n "checking for $ac_word... " >&6; }
13748 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13749   $as_echo_n "(cached) " >&6
13750 else
13751   if test -n "$AR_FOR_TARGET"; then
13752   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13753 else
13754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13755 for as_dir in $PATH
13756 do
13757   IFS=$as_save_IFS
13758   test -z "$as_dir" && as_dir=.
13759     for ac_exec_ext in '' $ac_executable_extensions; do
13760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13761     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13763     break 2
13764   fi
13765 done
13766   done
13767 IFS=$as_save_IFS
13768
13769 fi
13770 fi
13771 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13772 if test -n "$AR_FOR_TARGET"; then
13773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13774 $as_echo "$AR_FOR_TARGET" >&6; }
13775 else
13776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13777 $as_echo "no" >&6; }
13778 fi
13779
13780
13781     fi
13782     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13783       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13784 set dummy ${ncn_progname}; ac_word=$2
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13786 $as_echo_n "checking for $ac_word... " >&6; }
13787 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13788   $as_echo_n "(cached) " >&6
13789 else
13790   if test -n "$AR_FOR_TARGET"; then
13791   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13792 else
13793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13794 for as_dir in $PATH
13795 do
13796   IFS=$as_save_IFS
13797   test -z "$as_dir" && as_dir=.
13798     for ac_exec_ext in '' $ac_executable_extensions; do
13799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13800     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13802     break 2
13803   fi
13804 done
13805   done
13806 IFS=$as_save_IFS
13807
13808 fi
13809 fi
13810 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13811 if test -n "$AR_FOR_TARGET"; then
13812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13813 $as_echo "$AR_FOR_TARGET" >&6; }
13814 else
13815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13816 $as_echo "no" >&6; }
13817 fi
13818
13819
13820     fi
13821     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13822   done
13823 fi
13824
13825 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13826   set dummy ar
13827   if test $build = $target ; then
13828     AR_FOR_TARGET="$2"
13829   else
13830     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
13831   fi
13832 else
13833   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
13834 fi
13835
13836 else
13837   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13838 fi
13839
13840
13841
13842
13843 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13844   if test -n "$with_build_time_tools"; then
13845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
13846 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
13847     if test -x $with_build_time_tools/as; then
13848       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
13849       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13850       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
13851 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
13852     else
13853       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13854 $as_echo "no" >&6; }
13855     fi
13856   elif test $build != $host && test $have_gcc_for_target = yes; then
13857     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
13858     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
13859     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13860   fi
13861 fi
13862 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13863   # Extract the first word of "as", so it can be a program name with args.
13864 set dummy as; ac_word=$2
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13866 $as_echo_n "checking for $ac_word... " >&6; }
13867 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
13868   $as_echo_n "(cached) " >&6
13869 else
13870   case $AS_FOR_TARGET in
13871   [\\/]* | ?:[\\/]*)
13872   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
13873   ;;
13874   *)
13875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13876 for as_dir in $gcc_cv_tool_dirs
13877 do
13878   IFS=$as_save_IFS
13879   test -z "$as_dir" && as_dir=.
13880     for ac_exec_ext in '' $ac_executable_extensions; do
13881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13882     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13884     break 2
13885   fi
13886 done
13887   done
13888 IFS=$as_save_IFS
13889
13890   ;;
13891 esac
13892 fi
13893 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13894 if test -n "$AS_FOR_TARGET"; then
13895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13896 $as_echo "$AS_FOR_TARGET" >&6; }
13897 else
13898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13899 $as_echo "no" >&6; }
13900 fi
13901
13902
13903 fi
13904 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13905
13906
13907 if test -n "$AS_FOR_TARGET"; then
13908   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
13909 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13910   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13911 fi
13912
13913 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13914   for ncn_progname in as; do
13915     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13916 set dummy ${ncn_progname}; ac_word=$2
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13918 $as_echo_n "checking for $ac_word... " >&6; }
13919 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13920   $as_echo_n "(cached) " >&6
13921 else
13922   if test -n "$AS_FOR_TARGET"; then
13923   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13924 else
13925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13926 for as_dir in $PATH
13927 do
13928   IFS=$as_save_IFS
13929   test -z "$as_dir" && as_dir=.
13930     for ac_exec_ext in '' $ac_executable_extensions; do
13931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13932     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13934     break 2
13935   fi
13936 done
13937   done
13938 IFS=$as_save_IFS
13939
13940 fi
13941 fi
13942 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13943 if test -n "$AS_FOR_TARGET"; then
13944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13945 $as_echo "$AS_FOR_TARGET" >&6; }
13946 else
13947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13948 $as_echo "no" >&6; }
13949 fi
13950
13951
13952   done
13953 fi
13954
13955 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
13956   for ncn_progname in as; do
13957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13958 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13959     if test -x $with_build_time_tools/${ncn_progname}; then
13960       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13961       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13962 $as_echo "yes" >&6; }
13963       break
13964     else
13965       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13966 $as_echo "no" >&6; }
13967     fi
13968   done
13969 fi
13970
13971 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
13972   for ncn_progname in as; do
13973     if test -n "$ncn_target_tool_prefix"; then
13974       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13975 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13977 $as_echo_n "checking for $ac_word... " >&6; }
13978 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13979   $as_echo_n "(cached) " >&6
13980 else
13981   if test -n "$AS_FOR_TARGET"; then
13982   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13983 else
13984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985 for as_dir in $PATH
13986 do
13987   IFS=$as_save_IFS
13988   test -z "$as_dir" && as_dir=.
13989     for ac_exec_ext in '' $ac_executable_extensions; do
13990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13991     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13993     break 2
13994   fi
13995 done
13996   done
13997 IFS=$as_save_IFS
13998
13999 fi
14000 fi
14001 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14002 if test -n "$AS_FOR_TARGET"; then
14003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14004 $as_echo "$AS_FOR_TARGET" >&6; }
14005 else
14006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14007 $as_echo "no" >&6; }
14008 fi
14009
14010
14011     fi
14012     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14013       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14014 set dummy ${ncn_progname}; ac_word=$2
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14016 $as_echo_n "checking for $ac_word... " >&6; }
14017 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14018   $as_echo_n "(cached) " >&6
14019 else
14020   if test -n "$AS_FOR_TARGET"; then
14021   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14022 else
14023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14024 for as_dir in $PATH
14025 do
14026   IFS=$as_save_IFS
14027   test -z "$as_dir" && as_dir=.
14028     for ac_exec_ext in '' $ac_executable_extensions; do
14029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14030     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14032     break 2
14033   fi
14034 done
14035   done
14036 IFS=$as_save_IFS
14037
14038 fi
14039 fi
14040 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14041 if test -n "$AS_FOR_TARGET"; then
14042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14043 $as_echo "$AS_FOR_TARGET" >&6; }
14044 else
14045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14046 $as_echo "no" >&6; }
14047 fi
14048
14049
14050     fi
14051     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14052   done
14053 fi
14054
14055 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14056   set dummy as
14057   if test $build = $target ; then
14058     AS_FOR_TARGET="$2"
14059   else
14060     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14061   fi
14062 else
14063   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14064 fi
14065
14066 else
14067   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14068 fi
14069
14070
14071
14072
14073 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14074   if test -n "$with_build_time_tools"; then
14075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14076 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14077     if test -x $with_build_time_tools/dlltool; then
14078       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14079       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14080       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14081 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14082     else
14083       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14084 $as_echo "no" >&6; }
14085     fi
14086   elif test $build != $host && test $have_gcc_for_target = yes; then
14087     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14088     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14089     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14090   fi
14091 fi
14092 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14093   # Extract the first word of "dlltool", so it can be a program name with args.
14094 set dummy dlltool; ac_word=$2
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14096 $as_echo_n "checking for $ac_word... " >&6; }
14097 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14098   $as_echo_n "(cached) " >&6
14099 else
14100   case $DLLTOOL_FOR_TARGET in
14101   [\\/]* | ?:[\\/]*)
14102   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14103   ;;
14104   *)
14105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106 for as_dir in $gcc_cv_tool_dirs
14107 do
14108   IFS=$as_save_IFS
14109   test -z "$as_dir" && as_dir=.
14110     for ac_exec_ext in '' $ac_executable_extensions; do
14111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14112     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14114     break 2
14115   fi
14116 done
14117   done
14118 IFS=$as_save_IFS
14119
14120   ;;
14121 esac
14122 fi
14123 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14124 if test -n "$DLLTOOL_FOR_TARGET"; then
14125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14126 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14127 else
14128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14129 $as_echo "no" >&6; }
14130 fi
14131
14132
14133 fi
14134 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14135
14136
14137 if test -n "$DLLTOOL_FOR_TARGET"; then
14138   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14139 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14140   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14141 fi
14142
14143 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14144   for ncn_progname in dlltool; do
14145     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14146 set dummy ${ncn_progname}; ac_word=$2
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14148 $as_echo_n "checking for $ac_word... " >&6; }
14149 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14150   $as_echo_n "(cached) " >&6
14151 else
14152   if test -n "$DLLTOOL_FOR_TARGET"; then
14153   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14154 else
14155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14156 for as_dir in $PATH
14157 do
14158   IFS=$as_save_IFS
14159   test -z "$as_dir" && as_dir=.
14160     for ac_exec_ext in '' $ac_executable_extensions; do
14161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14162     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14164     break 2
14165   fi
14166 done
14167   done
14168 IFS=$as_save_IFS
14169
14170 fi
14171 fi
14172 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14173 if test -n "$DLLTOOL_FOR_TARGET"; then
14174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14175 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14176 else
14177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14178 $as_echo "no" >&6; }
14179 fi
14180
14181
14182   done
14183 fi
14184
14185 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14186   for ncn_progname in dlltool; do
14187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14188 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14189     if test -x $with_build_time_tools/${ncn_progname}; then
14190       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14191       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14192 $as_echo "yes" >&6; }
14193       break
14194     else
14195       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14196 $as_echo "no" >&6; }
14197     fi
14198   done
14199 fi
14200
14201 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14202   for ncn_progname in dlltool; do
14203     if test -n "$ncn_target_tool_prefix"; then
14204       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14205 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14207 $as_echo_n "checking for $ac_word... " >&6; }
14208 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14209   $as_echo_n "(cached) " >&6
14210 else
14211   if test -n "$DLLTOOL_FOR_TARGET"; then
14212   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14213 else
14214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14215 for as_dir in $PATH
14216 do
14217   IFS=$as_save_IFS
14218   test -z "$as_dir" && as_dir=.
14219     for ac_exec_ext in '' $ac_executable_extensions; do
14220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14221     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14223     break 2
14224   fi
14225 done
14226   done
14227 IFS=$as_save_IFS
14228
14229 fi
14230 fi
14231 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14232 if test -n "$DLLTOOL_FOR_TARGET"; then
14233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14234 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14235 else
14236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14237 $as_echo "no" >&6; }
14238 fi
14239
14240
14241     fi
14242     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14243       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14244 set dummy ${ncn_progname}; ac_word=$2
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14246 $as_echo_n "checking for $ac_word... " >&6; }
14247 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14248   $as_echo_n "(cached) " >&6
14249 else
14250   if test -n "$DLLTOOL_FOR_TARGET"; then
14251   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14252 else
14253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254 for as_dir in $PATH
14255 do
14256   IFS=$as_save_IFS
14257   test -z "$as_dir" && as_dir=.
14258     for ac_exec_ext in '' $ac_executable_extensions; do
14259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14260     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14262     break 2
14263   fi
14264 done
14265   done
14266 IFS=$as_save_IFS
14267
14268 fi
14269 fi
14270 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14271 if test -n "$DLLTOOL_FOR_TARGET"; then
14272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14273 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14274 else
14275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14276 $as_echo "no" >&6; }
14277 fi
14278
14279
14280     fi
14281     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14282   done
14283 fi
14284
14285 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14286   set dummy dlltool
14287   if test $build = $target ; then
14288     DLLTOOL_FOR_TARGET="$2"
14289   else
14290     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14291   fi
14292 else
14293   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14294 fi
14295
14296 else
14297   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14298 fi
14299
14300
14301
14302
14303 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14304   if test -n "$with_build_time_tools"; then
14305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14306 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14307     if test -x $with_build_time_tools/dsymutil; then
14308       DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14309       ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14310       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14311 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14312     else
14313       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14314 $as_echo "no" >&6; }
14315     fi
14316   elif test $build != $host && test $have_gcc_for_target = yes; then
14317     DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14318     test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14319     test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14320   fi
14321 fi
14322 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14323   # Extract the first word of "dsymutil", so it can be a program name with args.
14324 set dummy dsymutil; ac_word=$2
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14326 $as_echo_n "checking for $ac_word... " >&6; }
14327 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14328   $as_echo_n "(cached) " >&6
14329 else
14330   case $DSYMUTIL_FOR_TARGET in
14331   [\\/]* | ?:[\\/]*)
14332   ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14333   ;;
14334   *)
14335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14336 for as_dir in $gcc_cv_tool_dirs
14337 do
14338   IFS=$as_save_IFS
14339   test -z "$as_dir" && as_dir=.
14340     for ac_exec_ext in '' $ac_executable_extensions; do
14341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14342     ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14344     break 2
14345   fi
14346 done
14347   done
14348 IFS=$as_save_IFS
14349
14350   ;;
14351 esac
14352 fi
14353 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14354 if test -n "$DSYMUTIL_FOR_TARGET"; then
14355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14356 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14357 else
14358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14359 $as_echo "no" >&6; }
14360 fi
14361
14362
14363 fi
14364 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14365
14366
14367 if test -n "$DSYMUTIL_FOR_TARGET"; then
14368   ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14369 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14370   DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14371 fi
14372
14373 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14374   for ncn_progname in dsymutil; do
14375     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14376 set dummy ${ncn_progname}; ac_word=$2
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14378 $as_echo_n "checking for $ac_word... " >&6; }
14379 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14380   $as_echo_n "(cached) " >&6
14381 else
14382   if test -n "$DSYMUTIL_FOR_TARGET"; then
14383   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14384 else
14385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14386 for as_dir in $PATH
14387 do
14388   IFS=$as_save_IFS
14389   test -z "$as_dir" && as_dir=.
14390     for ac_exec_ext in '' $ac_executable_extensions; do
14391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14392     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14394     break 2
14395   fi
14396 done
14397   done
14398 IFS=$as_save_IFS
14399
14400 fi
14401 fi
14402 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14403 if test -n "$DSYMUTIL_FOR_TARGET"; then
14404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14405 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14406 else
14407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14408 $as_echo "no" >&6; }
14409 fi
14410
14411
14412   done
14413 fi
14414
14415 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14416   for ncn_progname in dsymutil; do
14417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14418 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14419     if test -x $with_build_time_tools/${ncn_progname}; then
14420       ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14421       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14422 $as_echo "yes" >&6; }
14423       break
14424     else
14425       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14426 $as_echo "no" >&6; }
14427     fi
14428   done
14429 fi
14430
14431 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14432   for ncn_progname in dsymutil; do
14433     if test -n "$ncn_target_tool_prefix"; then
14434       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14435 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14437 $as_echo_n "checking for $ac_word... " >&6; }
14438 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14439   $as_echo_n "(cached) " >&6
14440 else
14441   if test -n "$DSYMUTIL_FOR_TARGET"; then
14442   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14443 else
14444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14445 for as_dir in $PATH
14446 do
14447   IFS=$as_save_IFS
14448   test -z "$as_dir" && as_dir=.
14449     for ac_exec_ext in '' $ac_executable_extensions; do
14450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14451     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14453     break 2
14454   fi
14455 done
14456   done
14457 IFS=$as_save_IFS
14458
14459 fi
14460 fi
14461 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14462 if test -n "$DSYMUTIL_FOR_TARGET"; then
14463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14464 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14465 else
14466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14467 $as_echo "no" >&6; }
14468 fi
14469
14470
14471     fi
14472     if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14473       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14474 set dummy ${ncn_progname}; ac_word=$2
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14476 $as_echo_n "checking for $ac_word... " >&6; }
14477 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14478   $as_echo_n "(cached) " >&6
14479 else
14480   if test -n "$DSYMUTIL_FOR_TARGET"; then
14481   ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14482 else
14483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484 for as_dir in $PATH
14485 do
14486   IFS=$as_save_IFS
14487   test -z "$as_dir" && as_dir=.
14488     for ac_exec_ext in '' $ac_executable_extensions; do
14489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14490     ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14492     break 2
14493   fi
14494 done
14495   done
14496 IFS=$as_save_IFS
14497
14498 fi
14499 fi
14500 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14501 if test -n "$DSYMUTIL_FOR_TARGET"; then
14502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14503 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14504 else
14505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14506 $as_echo "no" >&6; }
14507 fi
14508
14509
14510     fi
14511     test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14512   done
14513 fi
14514
14515 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14516   set dummy dsymutil
14517   if test $build = $target ; then
14518     DSYMUTIL_FOR_TARGET="$2"
14519   else
14520     DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14521   fi
14522 else
14523   DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14524 fi
14525
14526 else
14527   DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14528 fi
14529
14530
14531
14532
14533 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14534   if test -n "$with_build_time_tools"; then
14535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14536 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14537     if test -x $with_build_time_tools/ld; then
14538       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14539       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14540       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14541 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14542     else
14543       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14544 $as_echo "no" >&6; }
14545     fi
14546   elif test $build != $host && test $have_gcc_for_target = yes; then
14547     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14548     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14549     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14550   fi
14551 fi
14552 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14553   # Extract the first word of "ld", so it can be a program name with args.
14554 set dummy ld; ac_word=$2
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14556 $as_echo_n "checking for $ac_word... " >&6; }
14557 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14558   $as_echo_n "(cached) " >&6
14559 else
14560   case $LD_FOR_TARGET in
14561   [\\/]* | ?:[\\/]*)
14562   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14563   ;;
14564   *)
14565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14566 for as_dir in $gcc_cv_tool_dirs
14567 do
14568   IFS=$as_save_IFS
14569   test -z "$as_dir" && as_dir=.
14570     for ac_exec_ext in '' $ac_executable_extensions; do
14571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14572     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14574     break 2
14575   fi
14576 done
14577   done
14578 IFS=$as_save_IFS
14579
14580   ;;
14581 esac
14582 fi
14583 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14584 if test -n "$LD_FOR_TARGET"; then
14585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14586 $as_echo "$LD_FOR_TARGET" >&6; }
14587 else
14588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14589 $as_echo "no" >&6; }
14590 fi
14591
14592
14593 fi
14594 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14595
14596
14597 if test -n "$LD_FOR_TARGET"; then
14598   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14599 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14600   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14601 fi
14602
14603 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14604   for ncn_progname in ld; do
14605     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14606 set dummy ${ncn_progname}; ac_word=$2
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14608 $as_echo_n "checking for $ac_word... " >&6; }
14609 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14610   $as_echo_n "(cached) " >&6
14611 else
14612   if test -n "$LD_FOR_TARGET"; then
14613   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14614 else
14615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14616 for as_dir in $PATH
14617 do
14618   IFS=$as_save_IFS
14619   test -z "$as_dir" && as_dir=.
14620     for ac_exec_ext in '' $ac_executable_extensions; do
14621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14622     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14624     break 2
14625   fi
14626 done
14627   done
14628 IFS=$as_save_IFS
14629
14630 fi
14631 fi
14632 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14633 if test -n "$LD_FOR_TARGET"; then
14634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14635 $as_echo "$LD_FOR_TARGET" >&6; }
14636 else
14637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14638 $as_echo "no" >&6; }
14639 fi
14640
14641
14642   done
14643 fi
14644
14645 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14646   for ncn_progname in ld; do
14647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14648 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14649     if test -x $with_build_time_tools/${ncn_progname}; then
14650       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14651       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14652 $as_echo "yes" >&6; }
14653       break
14654     else
14655       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14656 $as_echo "no" >&6; }
14657     fi
14658   done
14659 fi
14660
14661 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14662   for ncn_progname in ld; do
14663     if test -n "$ncn_target_tool_prefix"; then
14664       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14665 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14667 $as_echo_n "checking for $ac_word... " >&6; }
14668 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14669   $as_echo_n "(cached) " >&6
14670 else
14671   if test -n "$LD_FOR_TARGET"; then
14672   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14673 else
14674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14675 for as_dir in $PATH
14676 do
14677   IFS=$as_save_IFS
14678   test -z "$as_dir" && as_dir=.
14679     for ac_exec_ext in '' $ac_executable_extensions; do
14680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14681     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14683     break 2
14684   fi
14685 done
14686   done
14687 IFS=$as_save_IFS
14688
14689 fi
14690 fi
14691 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14692 if test -n "$LD_FOR_TARGET"; then
14693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14694 $as_echo "$LD_FOR_TARGET" >&6; }
14695 else
14696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14697 $as_echo "no" >&6; }
14698 fi
14699
14700
14701     fi
14702     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14703       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14704 set dummy ${ncn_progname}; ac_word=$2
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14706 $as_echo_n "checking for $ac_word... " >&6; }
14707 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14708   $as_echo_n "(cached) " >&6
14709 else
14710   if test -n "$LD_FOR_TARGET"; then
14711   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14712 else
14713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14714 for as_dir in $PATH
14715 do
14716   IFS=$as_save_IFS
14717   test -z "$as_dir" && as_dir=.
14718     for ac_exec_ext in '' $ac_executable_extensions; do
14719   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14720     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14722     break 2
14723   fi
14724 done
14725   done
14726 IFS=$as_save_IFS
14727
14728 fi
14729 fi
14730 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14731 if test -n "$LD_FOR_TARGET"; then
14732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14733 $as_echo "$LD_FOR_TARGET" >&6; }
14734 else
14735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14736 $as_echo "no" >&6; }
14737 fi
14738
14739
14740     fi
14741     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14742   done
14743 fi
14744
14745 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14746   set dummy ld
14747   if test $build = $target ; then
14748     LD_FOR_TARGET="$2"
14749   else
14750     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14751   fi
14752 else
14753   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14754 fi
14755
14756 else
14757   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14758 fi
14759
14760
14761
14762
14763 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14764   if test -n "$with_build_time_tools"; then
14765     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14766 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14767     if test -x $with_build_time_tools/lipo; then
14768       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14769       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14770       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14771 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14772     else
14773       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14774 $as_echo "no" >&6; }
14775     fi
14776   elif test $build != $host && test $have_gcc_for_target = yes; then
14777     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14778     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14779     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14780   fi
14781 fi
14782 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14783   # Extract the first word of "lipo", so it can be a program name with args.
14784 set dummy lipo; ac_word=$2
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14786 $as_echo_n "checking for $ac_word... " >&6; }
14787 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14788   $as_echo_n "(cached) " >&6
14789 else
14790   case $LIPO_FOR_TARGET in
14791   [\\/]* | ?:[\\/]*)
14792   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14793   ;;
14794   *)
14795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14796 for as_dir in $gcc_cv_tool_dirs
14797 do
14798   IFS=$as_save_IFS
14799   test -z "$as_dir" && as_dir=.
14800     for ac_exec_ext in '' $ac_executable_extensions; do
14801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14802     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14804     break 2
14805   fi
14806 done
14807   done
14808 IFS=$as_save_IFS
14809
14810   ;;
14811 esac
14812 fi
14813 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14814 if test -n "$LIPO_FOR_TARGET"; then
14815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14816 $as_echo "$LIPO_FOR_TARGET" >&6; }
14817 else
14818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14819 $as_echo "no" >&6; }
14820 fi
14821
14822
14823 fi
14824 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14825
14826
14827 if test -n "$LIPO_FOR_TARGET"; then
14828   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14829 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14830   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14831 fi
14832
14833 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14834   for ncn_progname in lipo; do
14835     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14836 set dummy ${ncn_progname}; ac_word=$2
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14838 $as_echo_n "checking for $ac_word... " >&6; }
14839 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14840   $as_echo_n "(cached) " >&6
14841 else
14842   if test -n "$LIPO_FOR_TARGET"; then
14843   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14844 else
14845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14846 for as_dir in $PATH
14847 do
14848   IFS=$as_save_IFS
14849   test -z "$as_dir" && as_dir=.
14850     for ac_exec_ext in '' $ac_executable_extensions; do
14851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14852     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14854     break 2
14855   fi
14856 done
14857   done
14858 IFS=$as_save_IFS
14859
14860 fi
14861 fi
14862 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14863 if test -n "$LIPO_FOR_TARGET"; then
14864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14865 $as_echo "$LIPO_FOR_TARGET" >&6; }
14866 else
14867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14868 $as_echo "no" >&6; }
14869 fi
14870
14871
14872   done
14873 fi
14874
14875 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
14876   for ncn_progname in lipo; do
14877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14878 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14879     if test -x $with_build_time_tools/${ncn_progname}; then
14880       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14881       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14882 $as_echo "yes" >&6; }
14883       break
14884     else
14885       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14886 $as_echo "no" >&6; }
14887     fi
14888   done
14889 fi
14890
14891 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
14892   for ncn_progname in lipo; do
14893     if test -n "$ncn_target_tool_prefix"; then
14894       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14895 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14897 $as_echo_n "checking for $ac_word... " >&6; }
14898 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14899   $as_echo_n "(cached) " >&6
14900 else
14901   if test -n "$LIPO_FOR_TARGET"; then
14902   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14903 else
14904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14905 for as_dir in $PATH
14906 do
14907   IFS=$as_save_IFS
14908   test -z "$as_dir" && as_dir=.
14909     for ac_exec_ext in '' $ac_executable_extensions; do
14910   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14911     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14913     break 2
14914   fi
14915 done
14916   done
14917 IFS=$as_save_IFS
14918
14919 fi
14920 fi
14921 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14922 if test -n "$LIPO_FOR_TARGET"; then
14923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14924 $as_echo "$LIPO_FOR_TARGET" >&6; }
14925 else
14926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14927 $as_echo "no" >&6; }
14928 fi
14929
14930
14931     fi
14932     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
14933       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14934 set dummy ${ncn_progname}; ac_word=$2
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14936 $as_echo_n "checking for $ac_word... " >&6; }
14937 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14938   $as_echo_n "(cached) " >&6
14939 else
14940   if test -n "$LIPO_FOR_TARGET"; then
14941   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14942 else
14943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14944 for as_dir in $PATH
14945 do
14946   IFS=$as_save_IFS
14947   test -z "$as_dir" && as_dir=.
14948     for ac_exec_ext in '' $ac_executable_extensions; do
14949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14950     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14952     break 2
14953   fi
14954 done
14955   done
14956 IFS=$as_save_IFS
14957
14958 fi
14959 fi
14960 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14961 if test -n "$LIPO_FOR_TARGET"; then
14962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14963 $as_echo "$LIPO_FOR_TARGET" >&6; }
14964 else
14965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14966 $as_echo "no" >&6; }
14967 fi
14968
14969
14970     fi
14971     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
14972   done
14973 fi
14974
14975 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
14976   set dummy lipo
14977   if test $build = $target ; then
14978     LIPO_FOR_TARGET="$2"
14979   else
14980     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
14981   fi
14982 else
14983   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
14984 fi
14985
14986 else
14987   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14988 fi
14989
14990
14991
14992
14993 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14994   if test -n "$with_build_time_tools"; then
14995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
14996 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
14997     if test -x $with_build_time_tools/nm; then
14998       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
14999       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15000       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15001 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15002     else
15003       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15004 $as_echo "no" >&6; }
15005     fi
15006   elif test $build != $host && test $have_gcc_for_target = yes; then
15007     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15008     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15009     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15010   fi
15011 fi
15012 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15013   # Extract the first word of "nm", so it can be a program name with args.
15014 set dummy nm; ac_word=$2
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15016 $as_echo_n "checking for $ac_word... " >&6; }
15017 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15018   $as_echo_n "(cached) " >&6
15019 else
15020   case $NM_FOR_TARGET in
15021   [\\/]* | ?:[\\/]*)
15022   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15023   ;;
15024   *)
15025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15026 for as_dir in $gcc_cv_tool_dirs
15027 do
15028   IFS=$as_save_IFS
15029   test -z "$as_dir" && as_dir=.
15030     for ac_exec_ext in '' $ac_executable_extensions; do
15031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15032     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15034     break 2
15035   fi
15036 done
15037   done
15038 IFS=$as_save_IFS
15039
15040   ;;
15041 esac
15042 fi
15043 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15044 if test -n "$NM_FOR_TARGET"; then
15045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15046 $as_echo "$NM_FOR_TARGET" >&6; }
15047 else
15048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15049 $as_echo "no" >&6; }
15050 fi
15051
15052
15053 fi
15054 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15055
15056
15057 if test -n "$NM_FOR_TARGET"; then
15058   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15059 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15060   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15061 fi
15062
15063 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15064   for ncn_progname in nm; do
15065     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15066 set dummy ${ncn_progname}; ac_word=$2
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15068 $as_echo_n "checking for $ac_word... " >&6; }
15069 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15070   $as_echo_n "(cached) " >&6
15071 else
15072   if test -n "$NM_FOR_TARGET"; then
15073   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15074 else
15075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15076 for as_dir in $PATH
15077 do
15078   IFS=$as_save_IFS
15079   test -z "$as_dir" && as_dir=.
15080     for ac_exec_ext in '' $ac_executable_extensions; do
15081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15082     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15084     break 2
15085   fi
15086 done
15087   done
15088 IFS=$as_save_IFS
15089
15090 fi
15091 fi
15092 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15093 if test -n "$NM_FOR_TARGET"; then
15094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15095 $as_echo "$NM_FOR_TARGET" >&6; }
15096 else
15097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15098 $as_echo "no" >&6; }
15099 fi
15100
15101
15102   done
15103 fi
15104
15105 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15106   for ncn_progname in nm; do
15107     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15108 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15109     if test -x $with_build_time_tools/${ncn_progname}; then
15110       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15111       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15112 $as_echo "yes" >&6; }
15113       break
15114     else
15115       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15116 $as_echo "no" >&6; }
15117     fi
15118   done
15119 fi
15120
15121 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15122   for ncn_progname in nm; do
15123     if test -n "$ncn_target_tool_prefix"; then
15124       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15125 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15127 $as_echo_n "checking for $ac_word... " >&6; }
15128 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15129   $as_echo_n "(cached) " >&6
15130 else
15131   if test -n "$NM_FOR_TARGET"; then
15132   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15133 else
15134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15135 for as_dir in $PATH
15136 do
15137   IFS=$as_save_IFS
15138   test -z "$as_dir" && as_dir=.
15139     for ac_exec_ext in '' $ac_executable_extensions; do
15140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15141     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15143     break 2
15144   fi
15145 done
15146   done
15147 IFS=$as_save_IFS
15148
15149 fi
15150 fi
15151 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15152 if test -n "$NM_FOR_TARGET"; then
15153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15154 $as_echo "$NM_FOR_TARGET" >&6; }
15155 else
15156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15157 $as_echo "no" >&6; }
15158 fi
15159
15160
15161     fi
15162     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15163       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15164 set dummy ${ncn_progname}; ac_word=$2
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15166 $as_echo_n "checking for $ac_word... " >&6; }
15167 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15168   $as_echo_n "(cached) " >&6
15169 else
15170   if test -n "$NM_FOR_TARGET"; then
15171   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15172 else
15173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15174 for as_dir in $PATH
15175 do
15176   IFS=$as_save_IFS
15177   test -z "$as_dir" && as_dir=.
15178     for ac_exec_ext in '' $ac_executable_extensions; do
15179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15180     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15182     break 2
15183   fi
15184 done
15185   done
15186 IFS=$as_save_IFS
15187
15188 fi
15189 fi
15190 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15191 if test -n "$NM_FOR_TARGET"; then
15192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15193 $as_echo "$NM_FOR_TARGET" >&6; }
15194 else
15195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15196 $as_echo "no" >&6; }
15197 fi
15198
15199
15200     fi
15201     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15202   done
15203 fi
15204
15205 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15206   set dummy nm
15207   if test $build = $target ; then
15208     NM_FOR_TARGET="$2"
15209   else
15210     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15211   fi
15212 else
15213   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15214 fi
15215
15216 else
15217   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15218 fi
15219
15220
15221
15222
15223 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15224   if test -n "$with_build_time_tools"; then
15225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15226 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15227     if test -x $with_build_time_tools/objcopy; then
15228       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15229       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15230       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15231 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15232     else
15233       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15234 $as_echo "no" >&6; }
15235     fi
15236   elif test $build != $host && test $have_gcc_for_target = yes; then
15237     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15238     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15239     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15240   fi
15241 fi
15242 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15243   # Extract the first word of "objcopy", so it can be a program name with args.
15244 set dummy objcopy; ac_word=$2
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15246 $as_echo_n "checking for $ac_word... " >&6; }
15247 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15248   $as_echo_n "(cached) " >&6
15249 else
15250   case $OBJCOPY_FOR_TARGET in
15251   [\\/]* | ?:[\\/]*)
15252   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15253   ;;
15254   *)
15255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15256 for as_dir in $gcc_cv_tool_dirs
15257 do
15258   IFS=$as_save_IFS
15259   test -z "$as_dir" && as_dir=.
15260     for ac_exec_ext in '' $ac_executable_extensions; do
15261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15262     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15264     break 2
15265   fi
15266 done
15267   done
15268 IFS=$as_save_IFS
15269
15270   ;;
15271 esac
15272 fi
15273 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15274 if test -n "$OBJCOPY_FOR_TARGET"; then
15275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15276 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15277 else
15278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15279 $as_echo "no" >&6; }
15280 fi
15281
15282
15283 fi
15284 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15285
15286
15287 if test -n "$OBJCOPY_FOR_TARGET"; then
15288   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15289 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15290   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15291 fi
15292
15293 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15294   for ncn_progname in objcopy; do
15295     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15296 set dummy ${ncn_progname}; ac_word=$2
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15298 $as_echo_n "checking for $ac_word... " >&6; }
15299 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15300   $as_echo_n "(cached) " >&6
15301 else
15302   if test -n "$OBJCOPY_FOR_TARGET"; then
15303   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15304 else
15305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15306 for as_dir in $PATH
15307 do
15308   IFS=$as_save_IFS
15309   test -z "$as_dir" && as_dir=.
15310     for ac_exec_ext in '' $ac_executable_extensions; do
15311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15312     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15314     break 2
15315   fi
15316 done
15317   done
15318 IFS=$as_save_IFS
15319
15320 fi
15321 fi
15322 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15323 if test -n "$OBJCOPY_FOR_TARGET"; then
15324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15325 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15326 else
15327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15328 $as_echo "no" >&6; }
15329 fi
15330
15331
15332   done
15333 fi
15334
15335 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15336   for ncn_progname in objcopy; do
15337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15338 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15339     if test -x $with_build_time_tools/${ncn_progname}; then
15340       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15341       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15342 $as_echo "yes" >&6; }
15343       break
15344     else
15345       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15346 $as_echo "no" >&6; }
15347     fi
15348   done
15349 fi
15350
15351 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15352   for ncn_progname in objcopy; do
15353     if test -n "$ncn_target_tool_prefix"; then
15354       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15355 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15357 $as_echo_n "checking for $ac_word... " >&6; }
15358 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15359   $as_echo_n "(cached) " >&6
15360 else
15361   if test -n "$OBJCOPY_FOR_TARGET"; then
15362   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15363 else
15364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15365 for as_dir in $PATH
15366 do
15367   IFS=$as_save_IFS
15368   test -z "$as_dir" && as_dir=.
15369     for ac_exec_ext in '' $ac_executable_extensions; do
15370   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15371     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15373     break 2
15374   fi
15375 done
15376   done
15377 IFS=$as_save_IFS
15378
15379 fi
15380 fi
15381 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15382 if test -n "$OBJCOPY_FOR_TARGET"; then
15383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15384 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15385 else
15386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15387 $as_echo "no" >&6; }
15388 fi
15389
15390
15391     fi
15392     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15393       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15394 set dummy ${ncn_progname}; ac_word=$2
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15396 $as_echo_n "checking for $ac_word... " >&6; }
15397 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15398   $as_echo_n "(cached) " >&6
15399 else
15400   if test -n "$OBJCOPY_FOR_TARGET"; then
15401   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15402 else
15403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15404 for as_dir in $PATH
15405 do
15406   IFS=$as_save_IFS
15407   test -z "$as_dir" && as_dir=.
15408     for ac_exec_ext in '' $ac_executable_extensions; do
15409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15410     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15412     break 2
15413   fi
15414 done
15415   done
15416 IFS=$as_save_IFS
15417
15418 fi
15419 fi
15420 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15421 if test -n "$OBJCOPY_FOR_TARGET"; then
15422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15423 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15424 else
15425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15426 $as_echo "no" >&6; }
15427 fi
15428
15429
15430     fi
15431     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15432   done
15433 fi
15434
15435 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15436   set dummy objcopy
15437   if test $build = $target ; then
15438     OBJCOPY_FOR_TARGET="$2"
15439   else
15440     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15441   fi
15442 else
15443   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15444 fi
15445
15446 else
15447   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15448 fi
15449
15450
15451
15452
15453 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15454   if test -n "$with_build_time_tools"; then
15455     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15456 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15457     if test -x $with_build_time_tools/objdump; then
15458       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15459       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15460       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15461 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15462     else
15463       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15464 $as_echo "no" >&6; }
15465     fi
15466   elif test $build != $host && test $have_gcc_for_target = yes; then
15467     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15468     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15469     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15470   fi
15471 fi
15472 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15473   # Extract the first word of "objdump", so it can be a program name with args.
15474 set dummy objdump; ac_word=$2
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15476 $as_echo_n "checking for $ac_word... " >&6; }
15477 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15478   $as_echo_n "(cached) " >&6
15479 else
15480   case $OBJDUMP_FOR_TARGET in
15481   [\\/]* | ?:[\\/]*)
15482   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15483   ;;
15484   *)
15485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15486 for as_dir in $gcc_cv_tool_dirs
15487 do
15488   IFS=$as_save_IFS
15489   test -z "$as_dir" && as_dir=.
15490     for ac_exec_ext in '' $ac_executable_extensions; do
15491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15492     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15494     break 2
15495   fi
15496 done
15497   done
15498 IFS=$as_save_IFS
15499
15500   ;;
15501 esac
15502 fi
15503 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15504 if test -n "$OBJDUMP_FOR_TARGET"; then
15505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15506 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15507 else
15508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15509 $as_echo "no" >&6; }
15510 fi
15511
15512
15513 fi
15514 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15515
15516
15517 if test -n "$OBJDUMP_FOR_TARGET"; then
15518   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15519 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15520   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15521 fi
15522
15523 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15524   for ncn_progname in objdump; do
15525     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15526 set dummy ${ncn_progname}; ac_word=$2
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15528 $as_echo_n "checking for $ac_word... " >&6; }
15529 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15530   $as_echo_n "(cached) " >&6
15531 else
15532   if test -n "$OBJDUMP_FOR_TARGET"; then
15533   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15534 else
15535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15536 for as_dir in $PATH
15537 do
15538   IFS=$as_save_IFS
15539   test -z "$as_dir" && as_dir=.
15540     for ac_exec_ext in '' $ac_executable_extensions; do
15541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15542     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15544     break 2
15545   fi
15546 done
15547   done
15548 IFS=$as_save_IFS
15549
15550 fi
15551 fi
15552 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15553 if test -n "$OBJDUMP_FOR_TARGET"; then
15554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15555 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15556 else
15557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15558 $as_echo "no" >&6; }
15559 fi
15560
15561
15562   done
15563 fi
15564
15565 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15566   for ncn_progname in objdump; do
15567     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15568 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15569     if test -x $with_build_time_tools/${ncn_progname}; then
15570       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15571       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15572 $as_echo "yes" >&6; }
15573       break
15574     else
15575       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15576 $as_echo "no" >&6; }
15577     fi
15578   done
15579 fi
15580
15581 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15582   for ncn_progname in objdump; do
15583     if test -n "$ncn_target_tool_prefix"; then
15584       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15585 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15587 $as_echo_n "checking for $ac_word... " >&6; }
15588 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15589   $as_echo_n "(cached) " >&6
15590 else
15591   if test -n "$OBJDUMP_FOR_TARGET"; then
15592   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15593 else
15594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15595 for as_dir in $PATH
15596 do
15597   IFS=$as_save_IFS
15598   test -z "$as_dir" && as_dir=.
15599     for ac_exec_ext in '' $ac_executable_extensions; do
15600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15601     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15603     break 2
15604   fi
15605 done
15606   done
15607 IFS=$as_save_IFS
15608
15609 fi
15610 fi
15611 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15612 if test -n "$OBJDUMP_FOR_TARGET"; then
15613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15614 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15615 else
15616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15617 $as_echo "no" >&6; }
15618 fi
15619
15620
15621     fi
15622     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15623       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15624 set dummy ${ncn_progname}; ac_word=$2
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15626 $as_echo_n "checking for $ac_word... " >&6; }
15627 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15628   $as_echo_n "(cached) " >&6
15629 else
15630   if test -n "$OBJDUMP_FOR_TARGET"; then
15631   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15632 else
15633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15634 for as_dir in $PATH
15635 do
15636   IFS=$as_save_IFS
15637   test -z "$as_dir" && as_dir=.
15638     for ac_exec_ext in '' $ac_executable_extensions; do
15639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15640     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15642     break 2
15643   fi
15644 done
15645   done
15646 IFS=$as_save_IFS
15647
15648 fi
15649 fi
15650 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15651 if test -n "$OBJDUMP_FOR_TARGET"; then
15652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15653 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15654 else
15655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15656 $as_echo "no" >&6; }
15657 fi
15658
15659
15660     fi
15661     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15662   done
15663 fi
15664
15665 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15666   set dummy objdump
15667   if test $build = $target ; then
15668     OBJDUMP_FOR_TARGET="$2"
15669   else
15670     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15671   fi
15672 else
15673   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15674 fi
15675
15676 else
15677   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15678 fi
15679
15680
15681
15682
15683 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15684   if test -n "$with_build_time_tools"; then
15685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15686 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15687     if test -x $with_build_time_tools/otool; then
15688       OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15689       ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15690       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15691 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15692     else
15693       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15694 $as_echo "no" >&6; }
15695     fi
15696   elif test $build != $host && test $have_gcc_for_target = yes; then
15697     OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15698     test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15699     test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15700   fi
15701 fi
15702 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15703   # Extract the first word of "otool", so it can be a program name with args.
15704 set dummy otool; ac_word=$2
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15706 $as_echo_n "checking for $ac_word... " >&6; }
15707 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15708   $as_echo_n "(cached) " >&6
15709 else
15710   case $OTOOL_FOR_TARGET in
15711   [\\/]* | ?:[\\/]*)
15712   ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15713   ;;
15714   *)
15715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15716 for as_dir in $gcc_cv_tool_dirs
15717 do
15718   IFS=$as_save_IFS
15719   test -z "$as_dir" && as_dir=.
15720     for ac_exec_ext in '' $ac_executable_extensions; do
15721   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15722     ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15724     break 2
15725   fi
15726 done
15727   done
15728 IFS=$as_save_IFS
15729
15730   ;;
15731 esac
15732 fi
15733 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15734 if test -n "$OTOOL_FOR_TARGET"; then
15735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15736 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15737 else
15738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15739 $as_echo "no" >&6; }
15740 fi
15741
15742
15743 fi
15744 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15745
15746
15747 if test -n "$OTOOL_FOR_TARGET"; then
15748   ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15749 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15750   OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15751 fi
15752
15753 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15754   for ncn_progname in otool; do
15755     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15756 set dummy ${ncn_progname}; ac_word=$2
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15758 $as_echo_n "checking for $ac_word... " >&6; }
15759 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15760   $as_echo_n "(cached) " >&6
15761 else
15762   if test -n "$OTOOL_FOR_TARGET"; then
15763   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15764 else
15765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15766 for as_dir in $PATH
15767 do
15768   IFS=$as_save_IFS
15769   test -z "$as_dir" && as_dir=.
15770     for ac_exec_ext in '' $ac_executable_extensions; do
15771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15772     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15774     break 2
15775   fi
15776 done
15777   done
15778 IFS=$as_save_IFS
15779
15780 fi
15781 fi
15782 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15783 if test -n "$OTOOL_FOR_TARGET"; then
15784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15785 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15786 else
15787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15788 $as_echo "no" >&6; }
15789 fi
15790
15791
15792   done
15793 fi
15794
15795 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15796   for ncn_progname in otool; do
15797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15798 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15799     if test -x $with_build_time_tools/${ncn_progname}; then
15800       ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15801       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15802 $as_echo "yes" >&6; }
15803       break
15804     else
15805       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15806 $as_echo "no" >&6; }
15807     fi
15808   done
15809 fi
15810
15811 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15812   for ncn_progname in otool; do
15813     if test -n "$ncn_target_tool_prefix"; then
15814       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15815 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15817 $as_echo_n "checking for $ac_word... " >&6; }
15818 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15819   $as_echo_n "(cached) " >&6
15820 else
15821   if test -n "$OTOOL_FOR_TARGET"; then
15822   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15823 else
15824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15825 for as_dir in $PATH
15826 do
15827   IFS=$as_save_IFS
15828   test -z "$as_dir" && as_dir=.
15829     for ac_exec_ext in '' $ac_executable_extensions; do
15830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15831     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15833     break 2
15834   fi
15835 done
15836   done
15837 IFS=$as_save_IFS
15838
15839 fi
15840 fi
15841 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15842 if test -n "$OTOOL_FOR_TARGET"; then
15843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15844 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15845 else
15846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15847 $as_echo "no" >&6; }
15848 fi
15849
15850
15851     fi
15852     if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15853       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15854 set dummy ${ncn_progname}; ac_word=$2
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15856 $as_echo_n "checking for $ac_word... " >&6; }
15857 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15858   $as_echo_n "(cached) " >&6
15859 else
15860   if test -n "$OTOOL_FOR_TARGET"; then
15861   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15862 else
15863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15864 for as_dir in $PATH
15865 do
15866   IFS=$as_save_IFS
15867   test -z "$as_dir" && as_dir=.
15868     for ac_exec_ext in '' $ac_executable_extensions; do
15869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15870     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15872     break 2
15873   fi
15874 done
15875   done
15876 IFS=$as_save_IFS
15877
15878 fi
15879 fi
15880 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15881 if test -n "$OTOOL_FOR_TARGET"; then
15882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15883 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15884 else
15885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15886 $as_echo "no" >&6; }
15887 fi
15888
15889
15890     fi
15891     test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
15892   done
15893 fi
15894
15895 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
15896   set dummy otool
15897   if test $build = $target ; then
15898     OTOOL_FOR_TARGET="$2"
15899   else
15900     OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15901   fi
15902 else
15903   OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
15904 fi
15905
15906 else
15907   OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15908 fi
15909
15910
15911
15912
15913 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15914   if test -n "$with_build_time_tools"; then
15915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
15916 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
15917     if test -x $with_build_time_tools/ranlib; then
15918       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
15919       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15920       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
15921 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
15922     else
15923       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15924 $as_echo "no" >&6; }
15925     fi
15926   elif test $build != $host && test $have_gcc_for_target = yes; then
15927     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
15928     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
15929     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15930   fi
15931 fi
15932 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15933   # Extract the first word of "ranlib", so it can be a program name with args.
15934 set dummy ranlib; ac_word=$2
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15936 $as_echo_n "checking for $ac_word... " >&6; }
15937 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
15938   $as_echo_n "(cached) " >&6
15939 else
15940   case $RANLIB_FOR_TARGET in
15941   [\\/]* | ?:[\\/]*)
15942   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
15943   ;;
15944   *)
15945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15946 for as_dir in $gcc_cv_tool_dirs
15947 do
15948   IFS=$as_save_IFS
15949   test -z "$as_dir" && as_dir=.
15950     for ac_exec_ext in '' $ac_executable_extensions; do
15951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15952     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15954     break 2
15955   fi
15956 done
15957   done
15958 IFS=$as_save_IFS
15959
15960   ;;
15961 esac
15962 fi
15963 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15964 if test -n "$RANLIB_FOR_TARGET"; then
15965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15966 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15967 else
15968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15969 $as_echo "no" >&6; }
15970 fi
15971
15972
15973 fi
15974 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15975
15976
15977 if test -n "$RANLIB_FOR_TARGET"; then
15978   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15979 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15980   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15981 fi
15982
15983 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15984   for ncn_progname in ranlib; do
15985     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15986 set dummy ${ncn_progname}; ac_word=$2
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15988 $as_echo_n "checking for $ac_word... " >&6; }
15989 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15990   $as_echo_n "(cached) " >&6
15991 else
15992   if test -n "$RANLIB_FOR_TARGET"; then
15993   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15994 else
15995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15996 for as_dir in $PATH
15997 do
15998   IFS=$as_save_IFS
15999   test -z "$as_dir" && as_dir=.
16000     for ac_exec_ext in '' $ac_executable_extensions; do
16001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16002     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16004     break 2
16005   fi
16006 done
16007   done
16008 IFS=$as_save_IFS
16009
16010 fi
16011 fi
16012 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16013 if test -n "$RANLIB_FOR_TARGET"; then
16014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16015 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16016 else
16017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16018 $as_echo "no" >&6; }
16019 fi
16020
16021
16022   done
16023 fi
16024
16025 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16026   for ncn_progname in ranlib; do
16027     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16028 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16029     if test -x $with_build_time_tools/${ncn_progname}; then
16030       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16031       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16032 $as_echo "yes" >&6; }
16033       break
16034     else
16035       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16036 $as_echo "no" >&6; }
16037     fi
16038   done
16039 fi
16040
16041 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16042   for ncn_progname in ranlib; do
16043     if test -n "$ncn_target_tool_prefix"; then
16044       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16045 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16047 $as_echo_n "checking for $ac_word... " >&6; }
16048 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16049   $as_echo_n "(cached) " >&6
16050 else
16051   if test -n "$RANLIB_FOR_TARGET"; then
16052   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16053 else
16054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16055 for as_dir in $PATH
16056 do
16057   IFS=$as_save_IFS
16058   test -z "$as_dir" && as_dir=.
16059     for ac_exec_ext in '' $ac_executable_extensions; do
16060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16061     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16063     break 2
16064   fi
16065 done
16066   done
16067 IFS=$as_save_IFS
16068
16069 fi
16070 fi
16071 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16072 if test -n "$RANLIB_FOR_TARGET"; then
16073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16074 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16075 else
16076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16077 $as_echo "no" >&6; }
16078 fi
16079
16080
16081     fi
16082     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16083       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16084 set dummy ${ncn_progname}; ac_word=$2
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16086 $as_echo_n "checking for $ac_word... " >&6; }
16087 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16088   $as_echo_n "(cached) " >&6
16089 else
16090   if test -n "$RANLIB_FOR_TARGET"; then
16091   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16092 else
16093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16094 for as_dir in $PATH
16095 do
16096   IFS=$as_save_IFS
16097   test -z "$as_dir" && as_dir=.
16098     for ac_exec_ext in '' $ac_executable_extensions; do
16099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16100     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16102     break 2
16103   fi
16104 done
16105   done
16106 IFS=$as_save_IFS
16107
16108 fi
16109 fi
16110 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16111 if test -n "$RANLIB_FOR_TARGET"; then
16112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16113 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16114 else
16115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16116 $as_echo "no" >&6; }
16117 fi
16118
16119
16120     fi
16121     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16122   done
16123 fi
16124
16125 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16126   set dummy ranlib
16127   if test $build = $target ; then
16128     RANLIB_FOR_TARGET="$2"
16129   else
16130     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16131   fi
16132 else
16133   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16134 fi
16135
16136 else
16137   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16138 fi
16139
16140
16141
16142
16143 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16144   if test -n "$with_build_time_tools"; then
16145     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16146 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16147     if test -x $with_build_time_tools/readelf; then
16148       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16149       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16150       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16151 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16152     else
16153       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16154 $as_echo "no" >&6; }
16155     fi
16156   elif test $build != $host && test $have_gcc_for_target = yes; then
16157     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16158     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16159     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16160   fi
16161 fi
16162 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16163   # Extract the first word of "readelf", so it can be a program name with args.
16164 set dummy readelf; ac_word=$2
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16166 $as_echo_n "checking for $ac_word... " >&6; }
16167 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16168   $as_echo_n "(cached) " >&6
16169 else
16170   case $READELF_FOR_TARGET in
16171   [\\/]* | ?:[\\/]*)
16172   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16173   ;;
16174   *)
16175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16176 for as_dir in $gcc_cv_tool_dirs
16177 do
16178   IFS=$as_save_IFS
16179   test -z "$as_dir" && as_dir=.
16180     for ac_exec_ext in '' $ac_executable_extensions; do
16181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16182     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16184     break 2
16185   fi
16186 done
16187   done
16188 IFS=$as_save_IFS
16189
16190   ;;
16191 esac
16192 fi
16193 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16194 if test -n "$READELF_FOR_TARGET"; then
16195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16196 $as_echo "$READELF_FOR_TARGET" >&6; }
16197 else
16198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16199 $as_echo "no" >&6; }
16200 fi
16201
16202
16203 fi
16204 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16205
16206
16207 if test -n "$READELF_FOR_TARGET"; then
16208   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16209 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16210   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16211 fi
16212
16213 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16214   for ncn_progname in readelf; do
16215     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16216 set dummy ${ncn_progname}; ac_word=$2
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16218 $as_echo_n "checking for $ac_word... " >&6; }
16219 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16220   $as_echo_n "(cached) " >&6
16221 else
16222   if test -n "$READELF_FOR_TARGET"; then
16223   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16224 else
16225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16226 for as_dir in $PATH
16227 do
16228   IFS=$as_save_IFS
16229   test -z "$as_dir" && as_dir=.
16230     for ac_exec_ext in '' $ac_executable_extensions; do
16231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16232     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16234     break 2
16235   fi
16236 done
16237   done
16238 IFS=$as_save_IFS
16239
16240 fi
16241 fi
16242 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16243 if test -n "$READELF_FOR_TARGET"; then
16244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16245 $as_echo "$READELF_FOR_TARGET" >&6; }
16246 else
16247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16248 $as_echo "no" >&6; }
16249 fi
16250
16251
16252   done
16253 fi
16254
16255 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16256   for ncn_progname in readelf; do
16257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16258 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16259     if test -x $with_build_time_tools/${ncn_progname}; then
16260       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16261       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16262 $as_echo "yes" >&6; }
16263       break
16264     else
16265       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16266 $as_echo "no" >&6; }
16267     fi
16268   done
16269 fi
16270
16271 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16272   for ncn_progname in readelf; do
16273     if test -n "$ncn_target_tool_prefix"; then
16274       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16275 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16277 $as_echo_n "checking for $ac_word... " >&6; }
16278 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16279   $as_echo_n "(cached) " >&6
16280 else
16281   if test -n "$READELF_FOR_TARGET"; then
16282   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16283 else
16284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16285 for as_dir in $PATH
16286 do
16287   IFS=$as_save_IFS
16288   test -z "$as_dir" && as_dir=.
16289     for ac_exec_ext in '' $ac_executable_extensions; do
16290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16291     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16293     break 2
16294   fi
16295 done
16296   done
16297 IFS=$as_save_IFS
16298
16299 fi
16300 fi
16301 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16302 if test -n "$READELF_FOR_TARGET"; then
16303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16304 $as_echo "$READELF_FOR_TARGET" >&6; }
16305 else
16306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16307 $as_echo "no" >&6; }
16308 fi
16309
16310
16311     fi
16312     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16313       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16314 set dummy ${ncn_progname}; ac_word=$2
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16316 $as_echo_n "checking for $ac_word... " >&6; }
16317 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16318   $as_echo_n "(cached) " >&6
16319 else
16320   if test -n "$READELF_FOR_TARGET"; then
16321   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16322 else
16323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16324 for as_dir in $PATH
16325 do
16326   IFS=$as_save_IFS
16327   test -z "$as_dir" && as_dir=.
16328     for ac_exec_ext in '' $ac_executable_extensions; do
16329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16330     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16332     break 2
16333   fi
16334 done
16335   done
16336 IFS=$as_save_IFS
16337
16338 fi
16339 fi
16340 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16341 if test -n "$READELF_FOR_TARGET"; then
16342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16343 $as_echo "$READELF_FOR_TARGET" >&6; }
16344 else
16345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16346 $as_echo "no" >&6; }
16347 fi
16348
16349
16350     fi
16351     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16352   done
16353 fi
16354
16355 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16356   set dummy readelf
16357   if test $build = $target ; then
16358     READELF_FOR_TARGET="$2"
16359   else
16360     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16361   fi
16362 else
16363   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16364 fi
16365
16366 else
16367   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16368 fi
16369
16370
16371
16372
16373 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16374   if test -n "$with_build_time_tools"; then
16375     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16376 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16377     if test -x $with_build_time_tools/strip; then
16378       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16379       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16380       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16381 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16382     else
16383       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16384 $as_echo "no" >&6; }
16385     fi
16386   elif test $build != $host && test $have_gcc_for_target = yes; then
16387     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16388     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16389     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16390   fi
16391 fi
16392 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16393   # Extract the first word of "strip", so it can be a program name with args.
16394 set dummy strip; ac_word=$2
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16396 $as_echo_n "checking for $ac_word... " >&6; }
16397 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16398   $as_echo_n "(cached) " >&6
16399 else
16400   case $STRIP_FOR_TARGET in
16401   [\\/]* | ?:[\\/]*)
16402   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16403   ;;
16404   *)
16405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16406 for as_dir in $gcc_cv_tool_dirs
16407 do
16408   IFS=$as_save_IFS
16409   test -z "$as_dir" && as_dir=.
16410     for ac_exec_ext in '' $ac_executable_extensions; do
16411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16412     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16414     break 2
16415   fi
16416 done
16417   done
16418 IFS=$as_save_IFS
16419
16420   ;;
16421 esac
16422 fi
16423 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16424 if test -n "$STRIP_FOR_TARGET"; then
16425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16426 $as_echo "$STRIP_FOR_TARGET" >&6; }
16427 else
16428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16429 $as_echo "no" >&6; }
16430 fi
16431
16432
16433 fi
16434 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16435
16436
16437 if test -n "$STRIP_FOR_TARGET"; then
16438   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16439 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16440   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16441 fi
16442
16443 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16444   for ncn_progname in strip; do
16445     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16446 set dummy ${ncn_progname}; ac_word=$2
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16448 $as_echo_n "checking for $ac_word... " >&6; }
16449 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16450   $as_echo_n "(cached) " >&6
16451 else
16452   if test -n "$STRIP_FOR_TARGET"; then
16453   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16454 else
16455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16456 for as_dir in $PATH
16457 do
16458   IFS=$as_save_IFS
16459   test -z "$as_dir" && as_dir=.
16460     for ac_exec_ext in '' $ac_executable_extensions; do
16461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16462     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16464     break 2
16465   fi
16466 done
16467   done
16468 IFS=$as_save_IFS
16469
16470 fi
16471 fi
16472 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16473 if test -n "$STRIP_FOR_TARGET"; then
16474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16475 $as_echo "$STRIP_FOR_TARGET" >&6; }
16476 else
16477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16478 $as_echo "no" >&6; }
16479 fi
16480
16481
16482   done
16483 fi
16484
16485 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16486   for ncn_progname in strip; do
16487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16488 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16489     if test -x $with_build_time_tools/${ncn_progname}; then
16490       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16491       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16492 $as_echo "yes" >&6; }
16493       break
16494     else
16495       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16496 $as_echo "no" >&6; }
16497     fi
16498   done
16499 fi
16500
16501 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16502   for ncn_progname in strip; do
16503     if test -n "$ncn_target_tool_prefix"; then
16504       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16505 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16507 $as_echo_n "checking for $ac_word... " >&6; }
16508 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16509   $as_echo_n "(cached) " >&6
16510 else
16511   if test -n "$STRIP_FOR_TARGET"; then
16512   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16513 else
16514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16515 for as_dir in $PATH
16516 do
16517   IFS=$as_save_IFS
16518   test -z "$as_dir" && as_dir=.
16519     for ac_exec_ext in '' $ac_executable_extensions; do
16520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16521     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16523     break 2
16524   fi
16525 done
16526   done
16527 IFS=$as_save_IFS
16528
16529 fi
16530 fi
16531 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16532 if test -n "$STRIP_FOR_TARGET"; then
16533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16534 $as_echo "$STRIP_FOR_TARGET" >&6; }
16535 else
16536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16537 $as_echo "no" >&6; }
16538 fi
16539
16540
16541     fi
16542     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16543       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16544 set dummy ${ncn_progname}; ac_word=$2
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16546 $as_echo_n "checking for $ac_word... " >&6; }
16547 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16548   $as_echo_n "(cached) " >&6
16549 else
16550   if test -n "$STRIP_FOR_TARGET"; then
16551   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16552 else
16553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16554 for as_dir in $PATH
16555 do
16556   IFS=$as_save_IFS
16557   test -z "$as_dir" && as_dir=.
16558     for ac_exec_ext in '' $ac_executable_extensions; do
16559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16560     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16562     break 2
16563   fi
16564 done
16565   done
16566 IFS=$as_save_IFS
16567
16568 fi
16569 fi
16570 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16571 if test -n "$STRIP_FOR_TARGET"; then
16572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16573 $as_echo "$STRIP_FOR_TARGET" >&6; }
16574 else
16575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16576 $as_echo "no" >&6; }
16577 fi
16578
16579
16580     fi
16581     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16582   done
16583 fi
16584
16585 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16586   set dummy strip
16587   if test $build = $target ; then
16588     STRIP_FOR_TARGET="$2"
16589   else
16590     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16591   fi
16592 else
16593   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16594 fi
16595
16596 else
16597   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16598 fi
16599
16600
16601
16602
16603 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16604   if test -n "$with_build_time_tools"; then
16605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16606 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16607     if test -x $with_build_time_tools/windres; then
16608       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16609       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16610       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16611 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16612     else
16613       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16614 $as_echo "no" >&6; }
16615     fi
16616   elif test $build != $host && test $have_gcc_for_target = yes; then
16617     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16618     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16619     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16620   fi
16621 fi
16622 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16623   # Extract the first word of "windres", so it can be a program name with args.
16624 set dummy windres; ac_word=$2
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16626 $as_echo_n "checking for $ac_word... " >&6; }
16627 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16628   $as_echo_n "(cached) " >&6
16629 else
16630   case $WINDRES_FOR_TARGET in
16631   [\\/]* | ?:[\\/]*)
16632   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16633   ;;
16634   *)
16635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16636 for as_dir in $gcc_cv_tool_dirs
16637 do
16638   IFS=$as_save_IFS
16639   test -z "$as_dir" && as_dir=.
16640     for ac_exec_ext in '' $ac_executable_extensions; do
16641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16642     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16644     break 2
16645   fi
16646 done
16647   done
16648 IFS=$as_save_IFS
16649
16650   ;;
16651 esac
16652 fi
16653 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16654 if test -n "$WINDRES_FOR_TARGET"; then
16655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16656 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16657 else
16658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16659 $as_echo "no" >&6; }
16660 fi
16661
16662
16663 fi
16664 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16665
16666
16667 if test -n "$WINDRES_FOR_TARGET"; then
16668   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16669 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16670   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16671 fi
16672
16673 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16674   for ncn_progname in windres; do
16675     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16676 set dummy ${ncn_progname}; ac_word=$2
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16678 $as_echo_n "checking for $ac_word... " >&6; }
16679 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16680   $as_echo_n "(cached) " >&6
16681 else
16682   if test -n "$WINDRES_FOR_TARGET"; then
16683   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16684 else
16685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16686 for as_dir in $PATH
16687 do
16688   IFS=$as_save_IFS
16689   test -z "$as_dir" && as_dir=.
16690     for ac_exec_ext in '' $ac_executable_extensions; do
16691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16692     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16694     break 2
16695   fi
16696 done
16697   done
16698 IFS=$as_save_IFS
16699
16700 fi
16701 fi
16702 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16703 if test -n "$WINDRES_FOR_TARGET"; then
16704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16705 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16706 else
16707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16708 $as_echo "no" >&6; }
16709 fi
16710
16711
16712   done
16713 fi
16714
16715 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16716   for ncn_progname in windres; do
16717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16718 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16719     if test -x $with_build_time_tools/${ncn_progname}; then
16720       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16721       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16722 $as_echo "yes" >&6; }
16723       break
16724     else
16725       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16726 $as_echo "no" >&6; }
16727     fi
16728   done
16729 fi
16730
16731 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16732   for ncn_progname in windres; do
16733     if test -n "$ncn_target_tool_prefix"; then
16734       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16735 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16737 $as_echo_n "checking for $ac_word... " >&6; }
16738 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16739   $as_echo_n "(cached) " >&6
16740 else
16741   if test -n "$WINDRES_FOR_TARGET"; then
16742   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16743 else
16744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16745 for as_dir in $PATH
16746 do
16747   IFS=$as_save_IFS
16748   test -z "$as_dir" && as_dir=.
16749     for ac_exec_ext in '' $ac_executable_extensions; do
16750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16751     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16753     break 2
16754   fi
16755 done
16756   done
16757 IFS=$as_save_IFS
16758
16759 fi
16760 fi
16761 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16762 if test -n "$WINDRES_FOR_TARGET"; then
16763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16764 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16765 else
16766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16767 $as_echo "no" >&6; }
16768 fi
16769
16770
16771     fi
16772     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16773       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16774 set dummy ${ncn_progname}; ac_word=$2
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16776 $as_echo_n "checking for $ac_word... " >&6; }
16777 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16778   $as_echo_n "(cached) " >&6
16779 else
16780   if test -n "$WINDRES_FOR_TARGET"; then
16781   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16782 else
16783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16784 for as_dir in $PATH
16785 do
16786   IFS=$as_save_IFS
16787   test -z "$as_dir" && as_dir=.
16788     for ac_exec_ext in '' $ac_executable_extensions; do
16789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16790     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16792     break 2
16793   fi
16794 done
16795   done
16796 IFS=$as_save_IFS
16797
16798 fi
16799 fi
16800 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16801 if test -n "$WINDRES_FOR_TARGET"; then
16802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16803 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16804 else
16805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16806 $as_echo "no" >&6; }
16807 fi
16808
16809
16810     fi
16811     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16812   done
16813 fi
16814
16815 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16816   set dummy windres
16817   if test $build = $target ; then
16818     WINDRES_FOR_TARGET="$2"
16819   else
16820     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
16821   fi
16822 else
16823   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
16824 fi
16825
16826 else
16827   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16828 fi
16829
16830
16831
16832
16833 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16834   if test -n "$with_build_time_tools"; then
16835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
16836 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
16837     if test -x $with_build_time_tools/windmc; then
16838       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
16839       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16840       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16841 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
16842     else
16843       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16844 $as_echo "no" >&6; }
16845     fi
16846   elif test $build != $host && test $have_gcc_for_target = yes; then
16847     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
16848     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
16849     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16850   fi
16851 fi
16852 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16853   # Extract the first word of "windmc", so it can be a program name with args.
16854 set dummy windmc; ac_word=$2
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16856 $as_echo_n "checking for $ac_word... " >&6; }
16857 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
16858   $as_echo_n "(cached) " >&6
16859 else
16860   case $WINDMC_FOR_TARGET in
16861   [\\/]* | ?:[\\/]*)
16862   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16863   ;;
16864   *)
16865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16866 for as_dir in $gcc_cv_tool_dirs
16867 do
16868   IFS=$as_save_IFS
16869   test -z "$as_dir" && as_dir=.
16870     for ac_exec_ext in '' $ac_executable_extensions; do
16871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16872     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16874     break 2
16875   fi
16876 done
16877   done
16878 IFS=$as_save_IFS
16879
16880   ;;
16881 esac
16882 fi
16883 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16884 if test -n "$WINDMC_FOR_TARGET"; then
16885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16886 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16887 else
16888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16889 $as_echo "no" >&6; }
16890 fi
16891
16892
16893 fi
16894 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16895
16896
16897 if test -n "$WINDMC_FOR_TARGET"; then
16898   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16899 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16900   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16901 fi
16902
16903 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16904   for ncn_progname in windmc; do
16905     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16906 set dummy ${ncn_progname}; ac_word=$2
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16908 $as_echo_n "checking for $ac_word... " >&6; }
16909 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16910   $as_echo_n "(cached) " >&6
16911 else
16912   if test -n "$WINDMC_FOR_TARGET"; then
16913   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16914 else
16915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16916 for as_dir in $PATH
16917 do
16918   IFS=$as_save_IFS
16919   test -z "$as_dir" && as_dir=.
16920     for ac_exec_ext in '' $ac_executable_extensions; do
16921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16922     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16924     break 2
16925   fi
16926 done
16927   done
16928 IFS=$as_save_IFS
16929
16930 fi
16931 fi
16932 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16933 if test -n "$WINDMC_FOR_TARGET"; then
16934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16935 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16936 else
16937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16938 $as_echo "no" >&6; }
16939 fi
16940
16941
16942   done
16943 fi
16944
16945 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
16946   for ncn_progname in windmc; do
16947     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16948 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16949     if test -x $with_build_time_tools/${ncn_progname}; then
16950       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16951       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16952 $as_echo "yes" >&6; }
16953       break
16954     else
16955       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16956 $as_echo "no" >&6; }
16957     fi
16958   done
16959 fi
16960
16961 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16962   for ncn_progname in windmc; do
16963     if test -n "$ncn_target_tool_prefix"; then
16964       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16965 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16967 $as_echo_n "checking for $ac_word... " >&6; }
16968 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16969   $as_echo_n "(cached) " >&6
16970 else
16971   if test -n "$WINDMC_FOR_TARGET"; then
16972   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16973 else
16974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16975 for as_dir in $PATH
16976 do
16977   IFS=$as_save_IFS
16978   test -z "$as_dir" && as_dir=.
16979     for ac_exec_ext in '' $ac_executable_extensions; do
16980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16981     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16983     break 2
16984   fi
16985 done
16986   done
16987 IFS=$as_save_IFS
16988
16989 fi
16990 fi
16991 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16992 if test -n "$WINDMC_FOR_TARGET"; then
16993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16994 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16995 else
16996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16997 $as_echo "no" >&6; }
16998 fi
16999
17000
17001     fi
17002     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17003       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17004 set dummy ${ncn_progname}; ac_word=$2
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17006 $as_echo_n "checking for $ac_word... " >&6; }
17007 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17008   $as_echo_n "(cached) " >&6
17009 else
17010   if test -n "$WINDMC_FOR_TARGET"; then
17011   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17012 else
17013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17014 for as_dir in $PATH
17015 do
17016   IFS=$as_save_IFS
17017   test -z "$as_dir" && as_dir=.
17018     for ac_exec_ext in '' $ac_executable_extensions; do
17019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17020     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17022     break 2
17023   fi
17024 done
17025   done
17026 IFS=$as_save_IFS
17027
17028 fi
17029 fi
17030 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17031 if test -n "$WINDMC_FOR_TARGET"; then
17032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17033 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17034 else
17035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17036 $as_echo "no" >&6; }
17037 fi
17038
17039
17040     fi
17041     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17042   done
17043 fi
17044
17045 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17046   set dummy windmc
17047   if test $build = $target ; then
17048     WINDMC_FOR_TARGET="$2"
17049   else
17050     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17051   fi
17052 else
17053   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17054 fi
17055
17056 else
17057   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17058 fi
17059
17060
17061 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17062
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17064 $as_echo_n "checking where to find the target ar... " >&6; }
17065 if test "x${build}" != "x${host}" ; then
17066   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17067     # We already found the complete path
17068     ac_dir=`dirname $AR_FOR_TARGET`
17069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17070 $as_echo "pre-installed in $ac_dir" >&6; }
17071   else
17072     # Canadian cross, just use what we found
17073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17074 $as_echo "pre-installed" >&6; }
17075   fi
17076 else
17077   ok=yes
17078   case " ${configdirs} " in
17079     *" binutils "*) ;;
17080     *) ok=no ;;
17081   esac
17082
17083   if test $ok = yes; then
17084     # An in-tree tool is available and we can use it
17085     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17087 $as_echo "just compiled" >&6; }
17088   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17089     # We already found the complete path
17090     ac_dir=`dirname $AR_FOR_TARGET`
17091     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17092 $as_echo "pre-installed in $ac_dir" >&6; }
17093   elif test "x$target" = "x$host"; then
17094     # We can use an host tool
17095     AR_FOR_TARGET='$(AR)'
17096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17097 $as_echo "host tool" >&6; }
17098   else
17099     # We need a cross tool
17100     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17101 $as_echo "pre-installed" >&6; }
17102   fi
17103 fi
17104
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17106 $as_echo_n "checking where to find the target as... " >&6; }
17107 if test "x${build}" != "x${host}" ; then
17108   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17109     # We already found the complete path
17110     ac_dir=`dirname $AS_FOR_TARGET`
17111     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17112 $as_echo "pre-installed in $ac_dir" >&6; }
17113   else
17114     # Canadian cross, just use what we found
17115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17116 $as_echo "pre-installed" >&6; }
17117   fi
17118 else
17119   ok=yes
17120   case " ${configdirs} " in
17121     *" gas "*) ;;
17122     *) ok=no ;;
17123   esac
17124
17125   if test $ok = yes; then
17126     # An in-tree tool is available and we can use it
17127     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17129 $as_echo "just compiled" >&6; }
17130   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17131     # We already found the complete path
17132     ac_dir=`dirname $AS_FOR_TARGET`
17133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17134 $as_echo "pre-installed in $ac_dir" >&6; }
17135   elif test "x$target" = "x$host"; then
17136     # We can use an host tool
17137     AS_FOR_TARGET='$(AS)'
17138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17139 $as_echo "host tool" >&6; }
17140   else
17141     # We need a cross tool
17142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17143 $as_echo "pre-installed" >&6; }
17144   fi
17145 fi
17146
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17148 $as_echo_n "checking where to find the target cc... " >&6; }
17149 if test "x${build}" != "x${host}" ; then
17150   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17151     # We already found the complete path
17152     ac_dir=`dirname $CC_FOR_TARGET`
17153     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17154 $as_echo "pre-installed in $ac_dir" >&6; }
17155   else
17156     # Canadian cross, just use what we found
17157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17158 $as_echo "pre-installed" >&6; }
17159   fi
17160 else
17161   ok=yes
17162   case " ${configdirs} " in
17163     *" gcc "*) ;;
17164     *) ok=no ;;
17165   esac
17166
17167   if test $ok = yes; then
17168     # An in-tree tool is available and we can use it
17169     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17171 $as_echo "just compiled" >&6; }
17172   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17173     # We already found the complete path
17174     ac_dir=`dirname $CC_FOR_TARGET`
17175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17176 $as_echo "pre-installed in $ac_dir" >&6; }
17177   elif test "x$target" = "x$host"; then
17178     # We can use an host tool
17179     CC_FOR_TARGET='$(CC)'
17180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17181 $as_echo "host tool" >&6; }
17182   else
17183     # We need a cross tool
17184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17185 $as_echo "pre-installed" >&6; }
17186   fi
17187 fi
17188
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17190 $as_echo_n "checking where to find the target c++... " >&6; }
17191 if test "x${build}" != "x${host}" ; then
17192   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17193     # We already found the complete path
17194     ac_dir=`dirname $CXX_FOR_TARGET`
17195     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17196 $as_echo "pre-installed in $ac_dir" >&6; }
17197   else
17198     # Canadian cross, just use what we found
17199     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17200 $as_echo "pre-installed" >&6; }
17201   fi
17202 else
17203   ok=yes
17204   case " ${configdirs} " in
17205     *" gcc "*) ;;
17206     *) ok=no ;;
17207   esac
17208   case ,${enable_languages}, in
17209     *,c++,*) ;;
17210     *) ok=no ;;
17211   esac
17212   if test $ok = yes; then
17213     # An in-tree tool is available and we can use it
17214     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'
17215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17216 $as_echo "just compiled" >&6; }
17217   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17218     # We already found the complete path
17219     ac_dir=`dirname $CXX_FOR_TARGET`
17220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17221 $as_echo "pre-installed in $ac_dir" >&6; }
17222   elif test "x$target" = "x$host"; then
17223     # We can use an host tool
17224     CXX_FOR_TARGET='$(CXX)'
17225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17226 $as_echo "host tool" >&6; }
17227   else
17228     # We need a cross tool
17229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17230 $as_echo "pre-installed" >&6; }
17231   fi
17232 fi
17233
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17235 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17236 if test "x${build}" != "x${host}" ; then
17237   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17238     # We already found the complete path
17239     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17241 $as_echo "pre-installed in $ac_dir" >&6; }
17242   else
17243     # Canadian cross, just use what we found
17244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17245 $as_echo "pre-installed" >&6; }
17246   fi
17247 else
17248   ok=yes
17249   case " ${configdirs} " in
17250     *" gcc "*) ;;
17251     *) ok=no ;;
17252   esac
17253   case ,${enable_languages}, in
17254     *,c++,*) ;;
17255     *) ok=no ;;
17256   esac
17257   if test $ok = yes; then
17258     # An in-tree tool is available and we can use it
17259     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'
17260     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17261 $as_echo "just compiled" >&6; }
17262   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17263     # We already found the complete path
17264     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17265     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17266 $as_echo "pre-installed in $ac_dir" >&6; }
17267   elif test "x$target" = "x$host"; then
17268     # We can use an host tool
17269     RAW_CXX_FOR_TARGET='$(CXX)'
17270     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17271 $as_echo "host tool" >&6; }
17272   else
17273     # We need a cross tool
17274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17275 $as_echo "pre-installed" >&6; }
17276   fi
17277 fi
17278
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17280 $as_echo_n "checking where to find the target dlltool... " >&6; }
17281 if test "x${build}" != "x${host}" ; then
17282   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17283     # We already found the complete path
17284     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17286 $as_echo "pre-installed in $ac_dir" >&6; }
17287   else
17288     # Canadian cross, just use what we found
17289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17290 $as_echo "pre-installed" >&6; }
17291   fi
17292 else
17293   ok=yes
17294   case " ${configdirs} " in
17295     *" binutils "*) ;;
17296     *) ok=no ;;
17297   esac
17298
17299   if test $ok = yes; then
17300     # An in-tree tool is available and we can use it
17301     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17303 $as_echo "just compiled" >&6; }
17304   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17305     # We already found the complete path
17306     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17307     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17308 $as_echo "pre-installed in $ac_dir" >&6; }
17309   elif test "x$target" = "x$host"; then
17310     # We can use an host tool
17311     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17313 $as_echo "host tool" >&6; }
17314   else
17315     # We need a cross tool
17316     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17317 $as_echo "pre-installed" >&6; }
17318   fi
17319 fi
17320
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17322 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17323 if test "x${build}" != "x${host}" ; then
17324   if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17325     # We already found the complete path
17326     ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17327     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17328 $as_echo "pre-installed in $ac_dir" >&6; }
17329   else
17330     # Canadian cross, just use what we found
17331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17332 $as_echo "pre-installed" >&6; }
17333   fi
17334 else
17335   if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17336     # We already found the complete path
17337     ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17338     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17339 $as_echo "pre-installed in $ac_dir" >&6; }
17340   elif test "x$target" = "x$host"; then
17341     # We can use an host tool
17342     DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17343     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17344 $as_echo "host tool" >&6; }
17345   else
17346     # We need a cross tool
17347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17348 $as_echo "pre-installed" >&6; }
17349   fi
17350 fi
17351
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17353 $as_echo_n "checking where to find the target gcc... " >&6; }
17354 if test "x${build}" != "x${host}" ; then
17355   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17356     # We already found the complete path
17357     ac_dir=`dirname $GCC_FOR_TARGET`
17358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17359 $as_echo "pre-installed in $ac_dir" >&6; }
17360   else
17361     # Canadian cross, just use what we found
17362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17363 $as_echo "pre-installed" >&6; }
17364   fi
17365 else
17366   ok=yes
17367   case " ${configdirs} " in
17368     *" gcc "*) ;;
17369     *) ok=no ;;
17370   esac
17371
17372   if test $ok = yes; then
17373     # An in-tree tool is available and we can use it
17374     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17376 $as_echo "just compiled" >&6; }
17377   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17378     # We already found the complete path
17379     ac_dir=`dirname $GCC_FOR_TARGET`
17380     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17381 $as_echo "pre-installed in $ac_dir" >&6; }
17382   elif test "x$target" = "x$host"; then
17383     # We can use an host tool
17384     GCC_FOR_TARGET='$()'
17385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17386 $as_echo "host tool" >&6; }
17387   else
17388     # We need a cross tool
17389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17390 $as_echo "pre-installed" >&6; }
17391   fi
17392 fi
17393
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17395 $as_echo_n "checking where to find the target gfortran... " >&6; }
17396 if test "x${build}" != "x${host}" ; then
17397   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17398     # We already found the complete path
17399     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17400     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17401 $as_echo "pre-installed in $ac_dir" >&6; }
17402   else
17403     # Canadian cross, just use what we found
17404     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17405 $as_echo "pre-installed" >&6; }
17406   fi
17407 else
17408   ok=yes
17409   case " ${configdirs} " in
17410     *" gcc "*) ;;
17411     *) ok=no ;;
17412   esac
17413   case ,${enable_languages}, in
17414     *,fortran,*) ;;
17415     *) ok=no ;;
17416   esac
17417   if test $ok = yes; then
17418     # An in-tree tool is available and we can use it
17419     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17421 $as_echo "just compiled" >&6; }
17422   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17423     # We already found the complete path
17424     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17426 $as_echo "pre-installed in $ac_dir" >&6; }
17427   elif test "x$target" = "x$host"; then
17428     # We can use an host tool
17429     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17431 $as_echo "host tool" >&6; }
17432   else
17433     # We need a cross tool
17434     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17435 $as_echo "pre-installed" >&6; }
17436   fi
17437 fi
17438
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17440 $as_echo_n "checking where to find the target gccgo... " >&6; }
17441 if test "x${build}" != "x${host}" ; then
17442   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17443     # We already found the complete path
17444     ac_dir=`dirname $GOC_FOR_TARGET`
17445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17446 $as_echo "pre-installed in $ac_dir" >&6; }
17447   else
17448     # Canadian cross, just use what we found
17449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17450 $as_echo "pre-installed" >&6; }
17451   fi
17452 else
17453   ok=yes
17454   case " ${configdirs} " in
17455     *" gcc "*) ;;
17456     *) ok=no ;;
17457   esac
17458   case ,${enable_languages}, in
17459     *,go,*) ;;
17460     *) ok=no ;;
17461   esac
17462   if test $ok = yes; then
17463     # An in-tree tool is available and we can use it
17464     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17466 $as_echo "just compiled" >&6; }
17467   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17468     # We already found the complete path
17469     ac_dir=`dirname $GOC_FOR_TARGET`
17470     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17471 $as_echo "pre-installed in $ac_dir" >&6; }
17472   elif test "x$target" = "x$host"; then
17473     # We can use an host tool
17474     GOC_FOR_TARGET='$(GOC)'
17475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17476 $as_echo "host tool" >&6; }
17477   else
17478     # We need a cross tool
17479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17480 $as_echo "pre-installed" >&6; }
17481   fi
17482 fi
17483
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17485 $as_echo_n "checking where to find the target gdc... " >&6; }
17486 if test "x${build}" != "x${host}" ; then
17487   if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17488     # We already found the complete path
17489     ac_dir=`dirname $GDC_FOR_TARGET`
17490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17491 $as_echo "pre-installed in $ac_dir" >&6; }
17492   else
17493     # Canadian cross, just use what we found
17494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17495 $as_echo "pre-installed" >&6; }
17496   fi
17497 else
17498   ok=yes
17499   case " ${configdirs} " in
17500     *" gcc "*) ;;
17501     *) ok=no ;;
17502   esac
17503   case ,${enable_languages}, in
17504     *,d,*) ;;
17505     *) ok=no ;;
17506   esac
17507   if test $ok = yes; then
17508     # An in-tree tool is available and we can use it
17509     GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17510     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17511 $as_echo "just compiled" >&6; }
17512   elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17513     # We already found the complete path
17514     ac_dir=`dirname $GDC_FOR_TARGET`
17515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17516 $as_echo "pre-installed in $ac_dir" >&6; }
17517   elif test "x$target" = "x$host"; then
17518     # We can use an host tool
17519     GDC_FOR_TARGET='$(GDC)'
17520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17521 $as_echo "host tool" >&6; }
17522   else
17523     # We need a cross tool
17524     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17525 $as_echo "pre-installed" >&6; }
17526   fi
17527 fi
17528
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17530 $as_echo_n "checking where to find the target ld... " >&6; }
17531 if test "x${build}" != "x${host}" ; then
17532   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17533     # We already found the complete path
17534     ac_dir=`dirname $LD_FOR_TARGET`
17535     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17536 $as_echo "pre-installed in $ac_dir" >&6; }
17537   else
17538     # Canadian cross, just use what we found
17539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17540 $as_echo "pre-installed" >&6; }
17541   fi
17542 else
17543   ok=yes
17544   case " ${configdirs} " in
17545     *" ld "*) ;;
17546     *) ok=no ;;
17547   esac
17548
17549   if test $ok = yes; then
17550     # An in-tree tool is available and we can use it
17551     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17552     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17553 $as_echo "just compiled" >&6; }
17554   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17555     # We already found the complete path
17556     ac_dir=`dirname $LD_FOR_TARGET`
17557     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17558 $as_echo "pre-installed in $ac_dir" >&6; }
17559   elif test "x$target" = "x$host"; then
17560     # We can use an host tool
17561     LD_FOR_TARGET='$(LD)'
17562     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17563 $as_echo "host tool" >&6; }
17564   else
17565     # We need a cross tool
17566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17567 $as_echo "pre-installed" >&6; }
17568   fi
17569 fi
17570
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17572 $as_echo_n "checking where to find the target lipo... " >&6; }
17573 if test "x${build}" != "x${host}" ; then
17574   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17575     # We already found the complete path
17576     ac_dir=`dirname $LIPO_FOR_TARGET`
17577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17578 $as_echo "pre-installed in $ac_dir" >&6; }
17579   else
17580     # Canadian cross, just use what we found
17581     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17582 $as_echo "pre-installed" >&6; }
17583   fi
17584 else
17585   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17586     # We already found the complete path
17587     ac_dir=`dirname $LIPO_FOR_TARGET`
17588     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17589 $as_echo "pre-installed in $ac_dir" >&6; }
17590   elif test "x$target" = "x$host"; then
17591     # We can use an host tool
17592     LIPO_FOR_TARGET='$(LIPO)'
17593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17594 $as_echo "host tool" >&6; }
17595   else
17596     # We need a cross tool
17597     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17598 $as_echo "pre-installed" >&6; }
17599   fi
17600 fi
17601
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17603 $as_echo_n "checking where to find the target nm... " >&6; }
17604 if test "x${build}" != "x${host}" ; then
17605   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17606     # We already found the complete path
17607     ac_dir=`dirname $NM_FOR_TARGET`
17608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17609 $as_echo "pre-installed in $ac_dir" >&6; }
17610   else
17611     # Canadian cross, just use what we found
17612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17613 $as_echo "pre-installed" >&6; }
17614   fi
17615 else
17616   ok=yes
17617   case " ${configdirs} " in
17618     *" binutils "*) ;;
17619     *) ok=no ;;
17620   esac
17621
17622   if test $ok = yes; then
17623     # An in-tree tool is available and we can use it
17624     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17626 $as_echo "just compiled" >&6; }
17627   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17628     # We already found the complete path
17629     ac_dir=`dirname $NM_FOR_TARGET`
17630     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17631 $as_echo "pre-installed in $ac_dir" >&6; }
17632   elif test "x$target" = "x$host"; then
17633     # We can use an host tool
17634     NM_FOR_TARGET='$(NM)'
17635     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17636 $as_echo "host tool" >&6; }
17637   else
17638     # We need a cross tool
17639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17640 $as_echo "pre-installed" >&6; }
17641   fi
17642 fi
17643
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17645 $as_echo_n "checking where to find the target objcopy... " >&6; }
17646 if test "x${build}" != "x${host}" ; then
17647   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17648     # We already found the complete path
17649     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17651 $as_echo "pre-installed in $ac_dir" >&6; }
17652   else
17653     # Canadian cross, just use what we found
17654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17655 $as_echo "pre-installed" >&6; }
17656   fi
17657 else
17658   ok=yes
17659   case " ${configdirs} " in
17660     *" binutils "*) ;;
17661     *) ok=no ;;
17662   esac
17663
17664   if test $ok = yes; then
17665     # An in-tree tool is available and we can use it
17666     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17668 $as_echo "just compiled" >&6; }
17669   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17670     # We already found the complete path
17671     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17672     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17673 $as_echo "pre-installed in $ac_dir" >&6; }
17674   elif test "x$target" = "x$host"; then
17675     # We can use an host tool
17676     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17678 $as_echo "host tool" >&6; }
17679   else
17680     # We need a cross tool
17681     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17682 $as_echo "pre-installed" >&6; }
17683   fi
17684 fi
17685
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17687 $as_echo_n "checking where to find the target objdump... " >&6; }
17688 if test "x${build}" != "x${host}" ; then
17689   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17690     # We already found the complete path
17691     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17693 $as_echo "pre-installed in $ac_dir" >&6; }
17694   else
17695     # Canadian cross, just use what we found
17696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17697 $as_echo "pre-installed" >&6; }
17698   fi
17699 else
17700   ok=yes
17701   case " ${configdirs} " in
17702     *" binutils "*) ;;
17703     *) ok=no ;;
17704   esac
17705
17706   if test $ok = yes; then
17707     # An in-tree tool is available and we can use it
17708     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17710 $as_echo "just compiled" >&6; }
17711   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17712     # We already found the complete path
17713     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17714     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17715 $as_echo "pre-installed in $ac_dir" >&6; }
17716   elif test "x$target" = "x$host"; then
17717     # We can use an host tool
17718     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17720 $as_echo "host tool" >&6; }
17721   else
17722     # We need a cross tool
17723     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17724 $as_echo "pre-installed" >&6; }
17725   fi
17726 fi
17727
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17729 $as_echo_n "checking where to find the target otool... " >&6; }
17730 if test "x${build}" != "x${host}" ; then
17731   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17732     # We already found the complete path
17733     ac_dir=`dirname $OTOOL_FOR_TARGET`
17734     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17735 $as_echo "pre-installed in $ac_dir" >&6; }
17736   else
17737     # Canadian cross, just use what we found
17738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17739 $as_echo "pre-installed" >&6; }
17740   fi
17741 else
17742   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17743     # We already found the complete path
17744     ac_dir=`dirname $OTOOL_FOR_TARGET`
17745     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17746 $as_echo "pre-installed in $ac_dir" >&6; }
17747   elif test "x$target" = "x$host"; then
17748     # We can use an host tool
17749     OTOOL_FOR_TARGET='$(OTOOL)'
17750     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17751 $as_echo "host tool" >&6; }
17752   else
17753     # We need a cross tool
17754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17755 $as_echo "pre-installed" >&6; }
17756   fi
17757 fi
17758
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17760 $as_echo_n "checking where to find the target ranlib... " >&6; }
17761 if test "x${build}" != "x${host}" ; then
17762   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17763     # We already found the complete path
17764     ac_dir=`dirname $RANLIB_FOR_TARGET`
17765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17766 $as_echo "pre-installed in $ac_dir" >&6; }
17767   else
17768     # Canadian cross, just use what we found
17769     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17770 $as_echo "pre-installed" >&6; }
17771   fi
17772 else
17773   ok=yes
17774   case " ${configdirs} " in
17775     *" binutils "*) ;;
17776     *) ok=no ;;
17777   esac
17778
17779   if test $ok = yes; then
17780     # An in-tree tool is available and we can use it
17781     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17782     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17783 $as_echo "just compiled" >&6; }
17784   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17785     # We already found the complete path
17786     ac_dir=`dirname $RANLIB_FOR_TARGET`
17787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17788 $as_echo "pre-installed in $ac_dir" >&6; }
17789   elif test "x$target" = "x$host"; then
17790     # We can use an host tool
17791     RANLIB_FOR_TARGET='$(RANLIB)'
17792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17793 $as_echo "host tool" >&6; }
17794   else
17795     # We need a cross tool
17796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17797 $as_echo "pre-installed" >&6; }
17798   fi
17799 fi
17800
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17802 $as_echo_n "checking where to find the target readelf... " >&6; }
17803 if test "x${build}" != "x${host}" ; then
17804   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17805     # We already found the complete path
17806     ac_dir=`dirname $READELF_FOR_TARGET`
17807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17808 $as_echo "pre-installed in $ac_dir" >&6; }
17809   else
17810     # Canadian cross, just use what we found
17811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17812 $as_echo "pre-installed" >&6; }
17813   fi
17814 else
17815   ok=yes
17816   case " ${configdirs} " in
17817     *" binutils "*) ;;
17818     *) ok=no ;;
17819   esac
17820
17821   if test $ok = yes; then
17822     # An in-tree tool is available and we can use it
17823     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17825 $as_echo "just compiled" >&6; }
17826   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17827     # We already found the complete path
17828     ac_dir=`dirname $READELF_FOR_TARGET`
17829     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17830 $as_echo "pre-installed in $ac_dir" >&6; }
17831   elif test "x$target" = "x$host"; then
17832     # We can use an host tool
17833     READELF_FOR_TARGET='$(READELF)'
17834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17835 $as_echo "host tool" >&6; }
17836   else
17837     # We need a cross tool
17838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17839 $as_echo "pre-installed" >&6; }
17840   fi
17841 fi
17842
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
17844 $as_echo_n "checking where to find the target strip... " >&6; }
17845 if test "x${build}" != "x${host}" ; then
17846   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17847     # We already found the complete path
17848     ac_dir=`dirname $STRIP_FOR_TARGET`
17849     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17850 $as_echo "pre-installed in $ac_dir" >&6; }
17851   else
17852     # Canadian cross, just use what we found
17853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17854 $as_echo "pre-installed" >&6; }
17855   fi
17856 else
17857   ok=yes
17858   case " ${configdirs} " in
17859     *" binutils "*) ;;
17860     *) ok=no ;;
17861   esac
17862
17863   if test $ok = yes; then
17864     # An in-tree tool is available and we can use it
17865     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
17866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17867 $as_echo "just compiled" >&6; }
17868   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17869     # We already found the complete path
17870     ac_dir=`dirname $STRIP_FOR_TARGET`
17871     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17872 $as_echo "pre-installed in $ac_dir" >&6; }
17873   elif test "x$target" = "x$host"; then
17874     # We can use an host tool
17875     STRIP_FOR_TARGET='$(STRIP)'
17876     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17877 $as_echo "host tool" >&6; }
17878   else
17879     # We need a cross tool
17880     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17881 $as_echo "pre-installed" >&6; }
17882   fi
17883 fi
17884
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
17886 $as_echo_n "checking where to find the target windres... " >&6; }
17887 if test "x${build}" != "x${host}" ; then
17888   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17889     # We already found the complete path
17890     ac_dir=`dirname $WINDRES_FOR_TARGET`
17891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17892 $as_echo "pre-installed in $ac_dir" >&6; }
17893   else
17894     # Canadian cross, just use what we found
17895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17896 $as_echo "pre-installed" >&6; }
17897   fi
17898 else
17899   ok=yes
17900   case " ${configdirs} " in
17901     *" binutils "*) ;;
17902     *) ok=no ;;
17903   esac
17904
17905   if test $ok = yes; then
17906     # An in-tree tool is available and we can use it
17907     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
17908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17909 $as_echo "just compiled" >&6; }
17910   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17911     # We already found the complete path
17912     ac_dir=`dirname $WINDRES_FOR_TARGET`
17913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17914 $as_echo "pre-installed in $ac_dir" >&6; }
17915   elif test "x$target" = "x$host"; then
17916     # We can use an host tool
17917     WINDRES_FOR_TARGET='$(WINDRES)'
17918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17919 $as_echo "host tool" >&6; }
17920   else
17921     # We need a cross tool
17922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17923 $as_echo "pre-installed" >&6; }
17924   fi
17925 fi
17926
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
17928 $as_echo_n "checking where to find the target windmc... " >&6; }
17929 if test "x${build}" != "x${host}" ; then
17930   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17931     # We already found the complete path
17932     ac_dir=`dirname $WINDMC_FOR_TARGET`
17933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17934 $as_echo "pre-installed in $ac_dir" >&6; }
17935   else
17936     # Canadian cross, just use what we found
17937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17938 $as_echo "pre-installed" >&6; }
17939   fi
17940 else
17941   ok=yes
17942   case " ${configdirs} " in
17943     *" binutils "*) ;;
17944     *) ok=no ;;
17945   esac
17946
17947   if test $ok = yes; then
17948     # An in-tree tool is available and we can use it
17949     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
17950     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17951 $as_echo "just compiled" >&6; }
17952   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17953     # We already found the complete path
17954     ac_dir=`dirname $WINDMC_FOR_TARGET`
17955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17956 $as_echo "pre-installed in $ac_dir" >&6; }
17957   elif test "x$target" = "x$host"; then
17958     # We can use an host tool
17959     WINDMC_FOR_TARGET='$(WINDMC)'
17960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17961 $as_echo "host tool" >&6; }
17962   else
17963     # We need a cross tool
17964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17965 $as_echo "pre-installed" >&6; }
17966   fi
17967 fi
17968
17969
17970
17971
17972
17973 # Certain tools may need extra flags.
17974 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
17975 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
17976 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
17977
17978 # When building target libraries, except in a Canadian cross, we use
17979 # the same toolchain as the compiler we just built.
17980 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
17981 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
17982 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
17983 if test $host = $build; then
17984   case " $configdirs " in
17985     *" gcc "*)
17986       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
17987       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
17988       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
17989       ;;
17990   esac
17991 fi
17992
17993
17994
17995
17996
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17998 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17999 # Check whether --enable-maintainer-mode was given.
18000 if test "${enable_maintainer_mode+set}" = set; then :
18001   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18002 else
18003   USE_MAINTAINER_MODE=no
18004 fi
18005
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18007 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18008
18009
18010 if test "$USE_MAINTAINER_MODE" = yes; then
18011   MAINTAINER_MODE_TRUE=
18012   MAINTAINER_MODE_FALSE='#'
18013 else
18014   MAINTAINER_MODE_TRUE='#'
18015   MAINTAINER_MODE_FALSE=
18016 fi
18017 MAINT=$MAINTAINER_MODE_TRUE
18018
18019 # ---------------------
18020 # GCC bootstrap support
18021 # ---------------------
18022
18023 # Stage specific cflags for build.
18024 stage1_cflags="-g"
18025 case $build in
18026   vax-*-*)
18027     case ${GCC} in
18028       yes) stage1_cflags="-g -Wa,-J" ;;
18029       *) stage1_cflags="-g -J" ;;
18030     esac ;;
18031 esac
18032
18033
18034
18035 # Enable --enable-checking in stage1 of the compiler.
18036 # Check whether --enable-stage1-checking was given.
18037 if test "${enable_stage1_checking+set}" = set; then :
18038   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18039 else
18040   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18041   # For --disable-checking or implicit --enable-checking=release, avoid
18042   # setting --enable-checking=gc in the default stage1 checking for LTO
18043   # bootstraps.  See PR62077.
18044   case $BUILD_CONFIG in
18045     *lto*)
18046       stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18047     *)
18048       stage1_checking=--enable-checking=yes,types;;
18049   esac
18050   if test "x$enable_checking" = x && \
18051      test -d ${srcdir}/gcc && \
18052      test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18053     stage1_checking=--enable-checking=yes,types,extra
18054   fi
18055 else
18056   stage1_checking=--enable-checking=$enable_checking,types
18057 fi
18058 fi
18059
18060
18061
18062 # Enable -Werror in bootstrap stage2 and later.
18063 # Check whether --enable-werror was given.
18064 if test "${enable_werror+set}" = set; then :
18065   enableval=$enable_werror;
18066 case ${enable_werror} in
18067   yes) stage2_werror_flag="--enable-werror-always" ;;
18068   *) stage2_werror_flag="" ;;
18069 esac
18070
18071 else
18072
18073 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18074   case $BUILD_CONFIG in
18075   bootstrap-debug)
18076       stage2_werror_flag="--enable-werror-always" ;;
18077   "")
18078       stage2_werror_flag="--enable-werror-always" ;;
18079   esac
18080 fi
18081
18082 fi
18083
18084
18085
18086
18087 # Specify what files to not compare during bootstrap.
18088
18089 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18090 case "$target" in
18091   hppa*64*-*-hpux*) ;;
18092   hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18093   powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18094 esac
18095
18096
18097 ac_config_files="$ac_config_files Makefile"
18098
18099 cat >confcache <<\_ACEOF
18100 # This file is a shell script that caches the results of configure
18101 # tests run on this system so they can be shared between configure
18102 # scripts and configure runs, see configure's option --config-cache.
18103 # It is not useful on other systems.  If it contains results you don't
18104 # want to keep, you may remove or edit it.
18105 #
18106 # config.status only pays attention to the cache file if you give it
18107 # the --recheck option to rerun configure.
18108 #
18109 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18110 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18111 # following values.
18112
18113 _ACEOF
18114
18115 # The following way of writing the cache mishandles newlines in values,
18116 # but we know of no workaround that is simple, portable, and efficient.
18117 # So, we kill variables containing newlines.
18118 # Ultrix sh set writes to stderr and can't be redirected directly,
18119 # and sets the high bit in the cache file unless we assign to the vars.
18120 (
18121   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18122     eval ac_val=\$$ac_var
18123     case $ac_val in #(
18124     *${as_nl}*)
18125       case $ac_var in #(
18126       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18127 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18128       esac
18129       case $ac_var in #(
18130       _ | IFS | as_nl) ;; #(
18131       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18132       *) { eval $ac_var=; unset $ac_var;} ;;
18133       esac ;;
18134     esac
18135   done
18136
18137   (set) 2>&1 |
18138     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18139     *${as_nl}ac_space=\ *)
18140       # `set' does not quote correctly, so add quotes: double-quote
18141       # substitution turns \\\\ into \\, and sed turns \\ into \.
18142       sed -n \
18143         "s/'/'\\\\''/g;
18144           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18145       ;; #(
18146     *)
18147       # `set' quotes correctly as required by POSIX, so do not add quotes.
18148       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18149       ;;
18150     esac |
18151     sort
18152 ) |
18153   sed '
18154      /^ac_cv_env_/b end
18155      t clear
18156      :clear
18157      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18158      t end
18159      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18160      :end' >>confcache
18161 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18162   if test -w "$cache_file"; then
18163     if test "x$cache_file" != "x/dev/null"; then
18164       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18165 $as_echo "$as_me: updating cache $cache_file" >&6;}
18166       if test ! -f "$cache_file" || test -h "$cache_file"; then
18167         cat confcache >"$cache_file"
18168       else
18169         case $cache_file in #(
18170         */* | ?:*)
18171           mv -f confcache "$cache_file"$$ &&
18172           mv -f "$cache_file"$$ "$cache_file" ;; #(
18173         *)
18174           mv -f confcache "$cache_file" ;;
18175         esac
18176       fi
18177     fi
18178   else
18179     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18180 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18181   fi
18182 fi
18183 rm -f confcache
18184
18185 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18186 # Let make expand exec_prefix.
18187 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18188
18189 # Transform confdefs.h into DEFS.
18190 # Protect against shell expansion while executing Makefile rules.
18191 # Protect against Makefile macro expansion.
18192 #
18193 # If the first sed substitution is executed (which looks for macros that
18194 # take arguments), then branch to the quote section.  Otherwise,
18195 # look for a macro that doesn't take arguments.
18196 ac_script='
18197 :mline
18198 /\\$/{
18199  N
18200  s,\\\n,,
18201  b mline
18202 }
18203 t clear
18204 :clear
18205 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
18206 t quote
18207 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
18208 t quote
18209 b any
18210 :quote
18211 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18212 s/\[/\\&/g
18213 s/\]/\\&/g
18214 s/\$/$$/g
18215 H
18216 :any
18217 ${
18218         g
18219         s/^\n//
18220         s/\n/ /g
18221         p
18222 }
18223 '
18224 DEFS=`sed -n "$ac_script" confdefs.h`
18225
18226
18227 ac_libobjs=
18228 ac_ltlibobjs=
18229 U=
18230 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18231   # 1. Remove the extension, and $U if already installed.
18232   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18233   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18234   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18235   #    will be set to the directory where LIBOBJS objects are built.
18236   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18237   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18238 done
18239 LIBOBJS=$ac_libobjs
18240
18241 LTLIBOBJS=$ac_ltlibobjs
18242
18243
18244
18245 : "${CONFIG_STATUS=./config.status}"
18246 ac_write_fail=0
18247 ac_clean_files_save=$ac_clean_files
18248 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18250 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18251 as_write_fail=0
18252 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18253 #! $SHELL
18254 # Generated by $as_me.
18255 # Run this file to recreate the current configuration.
18256 # Compiler output produced by configure, useful for debugging
18257 # configure, is in config.log if it exists.
18258
18259 debug=false
18260 ac_cs_recheck=false
18261 ac_cs_silent=false
18262
18263 SHELL=\${CONFIG_SHELL-$SHELL}
18264 export SHELL
18265 _ASEOF
18266 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18267 ## -------------------- ##
18268 ## M4sh Initialization. ##
18269 ## -------------------- ##
18270
18271 # Be more Bourne compatible
18272 DUALCASE=1; export DUALCASE # for MKS sh
18273 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18274   emulate sh
18275   NULLCMD=:
18276   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18277   # is contrary to our usage.  Disable this feature.
18278   alias -g '${1+"$@"}'='"$@"'
18279   setopt NO_GLOB_SUBST
18280 else
18281   case `(set -o) 2>/dev/null` in #(
18282   *posix*) :
18283     set -o posix ;; #(
18284   *) :
18285      ;;
18286 esac
18287 fi
18288
18289
18290 as_nl='
18291 '
18292 export as_nl
18293 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18294 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18295 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18296 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18297 # Prefer a ksh shell builtin over an external printf program on Solaris,
18298 # but without wasting forks for bash or zsh.
18299 if test -z "$BASH_VERSION$ZSH_VERSION" \
18300     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18301   as_echo='print -r --'
18302   as_echo_n='print -rn --'
18303 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18304   as_echo='printf %s\n'
18305   as_echo_n='printf %s'
18306 else
18307   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18308     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18309     as_echo_n='/usr/ucb/echo -n'
18310   else
18311     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18312     as_echo_n_body='eval
18313       arg=$1;
18314       case $arg in #(
18315       *"$as_nl"*)
18316         expr "X$arg" : "X\\(.*\\)$as_nl";
18317         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18318       esac;
18319       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18320     '
18321     export as_echo_n_body
18322     as_echo_n='sh -c $as_echo_n_body as_echo'
18323   fi
18324   export as_echo_body
18325   as_echo='sh -c $as_echo_body as_echo'
18326 fi
18327
18328 # The user is always right.
18329 if test "${PATH_SEPARATOR+set}" != set; then
18330   PATH_SEPARATOR=:
18331   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18332     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18333       PATH_SEPARATOR=';'
18334   }
18335 fi
18336
18337
18338 # IFS
18339 # We need space, tab and new line, in precisely that order.  Quoting is
18340 # there to prevent editors from complaining about space-tab.
18341 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18342 # splitting by setting IFS to empty value.)
18343 IFS=" ""        $as_nl"
18344
18345 # Find who we are.  Look in the path if we contain no directory separator.
18346 as_myself=
18347 case $0 in #((
18348   *[\\/]* ) as_myself=$0 ;;
18349   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18350 for as_dir in $PATH
18351 do
18352   IFS=$as_save_IFS
18353   test -z "$as_dir" && as_dir=.
18354     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18355   done
18356 IFS=$as_save_IFS
18357
18358      ;;
18359 esac
18360 # We did not find ourselves, most probably we were run as `sh COMMAND'
18361 # in which case we are not to be found in the path.
18362 if test "x$as_myself" = x; then
18363   as_myself=$0
18364 fi
18365 if test ! -f "$as_myself"; then
18366   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18367   exit 1
18368 fi
18369
18370 # Unset variables that we do not need and which cause bugs (e.g. in
18371 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18372 # suppresses any "Segmentation fault" message there.  '((' could
18373 # trigger a bug in pdksh 5.2.14.
18374 for as_var in BASH_ENV ENV MAIL MAILPATH
18375 do eval test x\${$as_var+set} = xset \
18376   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18377 done
18378 PS1='$ '
18379 PS2='> '
18380 PS4='+ '
18381
18382 # NLS nuisances.
18383 LC_ALL=C
18384 export LC_ALL
18385 LANGUAGE=C
18386 export LANGUAGE
18387
18388 # CDPATH.
18389 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18390
18391
18392 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18393 # ----------------------------------------
18394 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18395 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18396 # script with STATUS, using 1 if that was 0.
18397 as_fn_error ()
18398 {
18399   as_status=$1; test $as_status -eq 0 && as_status=1
18400   if test "$4"; then
18401     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18402     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18403   fi
18404   $as_echo "$as_me: error: $2" >&2
18405   as_fn_exit $as_status
18406 } # as_fn_error
18407
18408
18409 # as_fn_set_status STATUS
18410 # -----------------------
18411 # Set $? to STATUS, without forking.
18412 as_fn_set_status ()
18413 {
18414   return $1
18415 } # as_fn_set_status
18416
18417 # as_fn_exit STATUS
18418 # -----------------
18419 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18420 as_fn_exit ()
18421 {
18422   set +e
18423   as_fn_set_status $1
18424   exit $1
18425 } # as_fn_exit
18426
18427 # as_fn_unset VAR
18428 # ---------------
18429 # Portably unset VAR.
18430 as_fn_unset ()
18431 {
18432   { eval $1=; unset $1;}
18433 }
18434 as_unset=as_fn_unset
18435 # as_fn_append VAR VALUE
18436 # ----------------------
18437 # Append the text in VALUE to the end of the definition contained in VAR. Take
18438 # advantage of any shell optimizations that allow amortized linear growth over
18439 # repeated appends, instead of the typical quadratic growth present in naive
18440 # implementations.
18441 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18442   eval 'as_fn_append ()
18443   {
18444     eval $1+=\$2
18445   }'
18446 else
18447   as_fn_append ()
18448   {
18449     eval $1=\$$1\$2
18450   }
18451 fi # as_fn_append
18452
18453 # as_fn_arith ARG...
18454 # ------------------
18455 # Perform arithmetic evaluation on the ARGs, and store the result in the
18456 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18457 # must be portable across $(()) and expr.
18458 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18459   eval 'as_fn_arith ()
18460   {
18461     as_val=$(( $* ))
18462   }'
18463 else
18464   as_fn_arith ()
18465   {
18466     as_val=`expr "$@" || test $? -eq 1`
18467   }
18468 fi # as_fn_arith
18469
18470
18471 if expr a : '\(a\)' >/dev/null 2>&1 &&
18472    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18473   as_expr=expr
18474 else
18475   as_expr=false
18476 fi
18477
18478 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18479   as_basename=basename
18480 else
18481   as_basename=false
18482 fi
18483
18484 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18485   as_dirname=dirname
18486 else
18487   as_dirname=false
18488 fi
18489
18490 as_me=`$as_basename -- "$0" ||
18491 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18492          X"$0" : 'X\(//\)$' \| \
18493          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18494 $as_echo X/"$0" |
18495     sed '/^.*\/\([^/][^/]*\)\/*$/{
18496             s//\1/
18497             q
18498           }
18499           /^X\/\(\/\/\)$/{
18500             s//\1/
18501             q
18502           }
18503           /^X\/\(\/\).*/{
18504             s//\1/
18505             q
18506           }
18507           s/.*/./; q'`
18508
18509 # Avoid depending upon Character Ranges.
18510 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18511 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18512 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18513 as_cr_digits='0123456789'
18514 as_cr_alnum=$as_cr_Letters$as_cr_digits
18515
18516 ECHO_C= ECHO_N= ECHO_T=
18517 case `echo -n x` in #(((((
18518 -n*)
18519   case `echo 'xy\c'` in
18520   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18521   xy)  ECHO_C='\c';;
18522   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18523        ECHO_T=' ';;
18524   esac;;
18525 *)
18526   ECHO_N='-n';;
18527 esac
18528
18529 rm -f conf$$ conf$$.exe conf$$.file
18530 if test -d conf$$.dir; then
18531   rm -f conf$$.dir/conf$$.file
18532 else
18533   rm -f conf$$.dir
18534   mkdir conf$$.dir 2>/dev/null
18535 fi
18536 if (echo >conf$$.file) 2>/dev/null; then
18537   if ln -s conf$$.file conf$$ 2>/dev/null; then
18538     as_ln_s='ln -s'
18539     # ... but there are two gotchas:
18540     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18541     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18542     # In both cases, we have to default to `cp -pR'.
18543     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18544       as_ln_s='cp -pR'
18545   elif ln conf$$.file conf$$ 2>/dev/null; then
18546     as_ln_s=ln
18547   else
18548     as_ln_s='cp -pR'
18549   fi
18550 else
18551   as_ln_s='cp -pR'
18552 fi
18553 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18554 rmdir conf$$.dir 2>/dev/null
18555
18556
18557 # as_fn_mkdir_p
18558 # -------------
18559 # Create "$as_dir" as a directory, including parents if necessary.
18560 as_fn_mkdir_p ()
18561 {
18562
18563   case $as_dir in #(
18564   -*) as_dir=./$as_dir;;
18565   esac
18566   test -d "$as_dir" || eval $as_mkdir_p || {
18567     as_dirs=
18568     while :; do
18569       case $as_dir in #(
18570       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18571       *) as_qdir=$as_dir;;
18572       esac
18573       as_dirs="'$as_qdir' $as_dirs"
18574       as_dir=`$as_dirname -- "$as_dir" ||
18575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18576          X"$as_dir" : 'X\(//\)[^/]' \| \
18577          X"$as_dir" : 'X\(//\)$' \| \
18578          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18579 $as_echo X"$as_dir" |
18580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18581             s//\1/
18582             q
18583           }
18584           /^X\(\/\/\)[^/].*/{
18585             s//\1/
18586             q
18587           }
18588           /^X\(\/\/\)$/{
18589             s//\1/
18590             q
18591           }
18592           /^X\(\/\).*/{
18593             s//\1/
18594             q
18595           }
18596           s/.*/./; q'`
18597       test -d "$as_dir" && break
18598     done
18599     test -z "$as_dirs" || eval "mkdir $as_dirs"
18600   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18601
18602
18603 } # as_fn_mkdir_p
18604 if mkdir -p . 2>/dev/null; then
18605   as_mkdir_p='mkdir -p "$as_dir"'
18606 else
18607   test -d ./-p && rmdir ./-p
18608   as_mkdir_p=false
18609 fi
18610
18611
18612 # as_fn_executable_p FILE
18613 # -----------------------
18614 # Test if FILE is an executable regular file.
18615 as_fn_executable_p ()
18616 {
18617   test -f "$1" && test -x "$1"
18618 } # as_fn_executable_p
18619 as_test_x='test -x'
18620 as_executable_p=as_fn_executable_p
18621
18622 # Sed expression to map a string onto a valid CPP name.
18623 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18624
18625 # Sed expression to map a string onto a valid variable name.
18626 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18627
18628
18629 exec 6>&1
18630 ## ----------------------------------- ##
18631 ## Main body of $CONFIG_STATUS script. ##
18632 ## ----------------------------------- ##
18633 _ASEOF
18634 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18635
18636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18637 # Save the log message, to keep $0 and so on meaningful, and to
18638 # report actual input values of CONFIG_FILES etc. instead of their
18639 # values after options handling.
18640 ac_log="
18641 This file was extended by $as_me, which was
18642 generated by GNU Autoconf 2.69.  Invocation command line was
18643
18644   CONFIG_FILES    = $CONFIG_FILES
18645   CONFIG_HEADERS  = $CONFIG_HEADERS
18646   CONFIG_LINKS    = $CONFIG_LINKS
18647   CONFIG_COMMANDS = $CONFIG_COMMANDS
18648   $ $0 $@
18649
18650 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18651 "
18652
18653 _ACEOF
18654
18655 case $ac_config_files in *"
18656 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18657 esac
18658
18659
18660
18661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18662 # Files that config.status was made for.
18663 config_files="$ac_config_files"
18664
18665 _ACEOF
18666
18667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18668 ac_cs_usage="\
18669 \`$as_me' instantiates files and other configuration actions
18670 from templates according to the current configuration.  Unless the files
18671 and actions are specified as TAGs, all are instantiated by default.
18672
18673 Usage: $0 [OPTION]... [TAG]...
18674
18675   -h, --help       print this help, then exit
18676   -V, --version    print version number and configuration settings, then exit
18677       --config     print configuration, then exit
18678   -q, --quiet, --silent
18679                    do not print progress messages
18680   -d, --debug      don't remove temporary files
18681       --recheck    update $as_me by reconfiguring in the same conditions
18682       --file=FILE[:TEMPLATE]
18683                    instantiate the configuration file FILE
18684
18685 Configuration files:
18686 $config_files
18687
18688 Report bugs to the package provider."
18689
18690 _ACEOF
18691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18692 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18693 ac_cs_version="\\
18694 config.status
18695 configured by $0, generated by GNU Autoconf 2.69,
18696   with options \\"\$ac_cs_config\\"
18697
18698 Copyright (C) 2012 Free Software Foundation, Inc.
18699 This config.status script is free software; the Free Software Foundation
18700 gives unlimited permission to copy, distribute and modify it."
18701
18702 ac_pwd='$ac_pwd'
18703 srcdir='$srcdir'
18704 INSTALL='$INSTALL'
18705 AWK='$AWK'
18706 test -n "\$AWK" || AWK=awk
18707 _ACEOF
18708
18709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18710 # The default lists apply if the user does not specify any file.
18711 ac_need_defaults=:
18712 while test $# != 0
18713 do
18714   case $1 in
18715   --*=?*)
18716     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18717     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18718     ac_shift=:
18719     ;;
18720   --*=)
18721     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18722     ac_optarg=
18723     ac_shift=:
18724     ;;
18725   *)
18726     ac_option=$1
18727     ac_optarg=$2
18728     ac_shift=shift
18729     ;;
18730   esac
18731
18732   case $ac_option in
18733   # Handling of the options.
18734   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18735     ac_cs_recheck=: ;;
18736   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18737     $as_echo "$ac_cs_version"; exit ;;
18738   --config | --confi | --conf | --con | --co | --c )
18739     $as_echo "$ac_cs_config"; exit ;;
18740   --debug | --debu | --deb | --de | --d | -d )
18741     debug=: ;;
18742   --file | --fil | --fi | --f )
18743     $ac_shift
18744     case $ac_optarg in
18745     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18746     '') as_fn_error $? "missing file argument" ;;
18747     esac
18748     as_fn_append CONFIG_FILES " '$ac_optarg'"
18749     ac_need_defaults=false;;
18750   --he | --h |  --help | --hel | -h )
18751     $as_echo "$ac_cs_usage"; exit ;;
18752   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18753   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18754     ac_cs_silent=: ;;
18755
18756   # This is an error.
18757   -*) as_fn_error $? "unrecognized option: \`$1'
18758 Try \`$0 --help' for more information." ;;
18759
18760   *) as_fn_append ac_config_targets " $1"
18761      ac_need_defaults=false ;;
18762
18763   esac
18764   shift
18765 done
18766
18767 ac_configure_extra_args=
18768
18769 if $ac_cs_silent; then
18770   exec 6>/dev/null
18771   ac_configure_extra_args="$ac_configure_extra_args --silent"
18772 fi
18773
18774 _ACEOF
18775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18776 if \$ac_cs_recheck; then
18777   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18778   shift
18779   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18780   CONFIG_SHELL='$SHELL'
18781   export CONFIG_SHELL
18782   exec "\$@"
18783 fi
18784
18785 _ACEOF
18786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18787 exec 5>>config.log
18788 {
18789   echo
18790   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18791 ## Running $as_me. ##
18792 _ASBOX
18793   $as_echo "$ac_log"
18794 } >&5
18795
18796 _ACEOF
18797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18798 #
18799 # INIT-COMMANDS
18800 #
18801 extrasub_build="$extrasub_build"
18802    extrasub_host="$extrasub_host"
18803    extrasub_target="$extrasub_target"
18804
18805 _ACEOF
18806
18807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18808
18809 # Handling of arguments.
18810 for ac_config_target in $ac_config_targets
18811 do
18812   case $ac_config_target in
18813     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18814
18815   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18816   esac
18817 done
18818
18819
18820 # If the user did not use the arguments to specify the items to instantiate,
18821 # then the envvar interface is used.  Set only those that are not.
18822 # We use the long form for the default assignment because of an extremely
18823 # bizarre bug on SunOS 4.1.3.
18824 if $ac_need_defaults; then
18825   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18826 fi
18827
18828 # Have a temporary directory for convenience.  Make it in the build tree
18829 # simply because there is no reason against having it here, and in addition,
18830 # creating and moving files from /tmp can sometimes cause problems.
18831 # Hook for its removal unless debugging.
18832 # Note that there is a small window in which the directory will not be cleaned:
18833 # after its creation but before its name has been assigned to `$tmp'.
18834 $debug ||
18835 {
18836   tmp= ac_tmp=
18837   trap 'exit_status=$?
18838   : "${ac_tmp:=$tmp}"
18839   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18840 ' 0
18841   trap 'as_fn_exit 1' 1 2 13 15
18842 }
18843 # Create a (secure) tmp directory for tmp files.
18844
18845 {
18846   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18847   test -d "$tmp"
18848 }  ||
18849 {
18850   tmp=./conf$$-$RANDOM
18851   (umask 077 && mkdir "$tmp")
18852 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18853 ac_tmp=$tmp
18854
18855 # Set up the scripts for CONFIG_FILES section.
18856 # No need to generate them if there are no CONFIG_FILES.
18857 # This happens for instance with `./config.status config.h'.
18858 if test -n "$CONFIG_FILES"; then
18859
18860 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18861   ac_cs_awk_getline=:
18862   ac_cs_awk_pipe_init=
18863   ac_cs_awk_read_file='
18864       while ((getline aline < (F[key])) > 0)
18865         print(aline)
18866       close(F[key])'
18867   ac_cs_awk_pipe_fini=
18868 else
18869   ac_cs_awk_getline=false
18870   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18871   ac_cs_awk_read_file='
18872       print "|#_!!_#|"
18873       print "cat " F[key] " &&"
18874       '$ac_cs_awk_pipe_init
18875   # The final `:' finishes the AND list.
18876   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18877 fi
18878 ac_cr=`echo X | tr X '\015'`
18879 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18880 # But we know of no other shell where ac_cr would be empty at this
18881 # point, so we can use a bashism as a fallback.
18882 if test "x$ac_cr" = x; then
18883   eval ac_cr=\$\'\\r\'
18884 fi
18885 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18886 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18887   ac_cs_awk_cr='\\r'
18888 else
18889   ac_cs_awk_cr=$ac_cr
18890 fi
18891
18892 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18893 _ACEOF
18894
18895 # Create commands to substitute file output variables.
18896 {
18897   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18898   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18899   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18900   echo "_ACAWK" &&
18901   echo "_ACEOF"
18902 } >conf$$files.sh &&
18903 . ./conf$$files.sh ||
18904   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18905 rm -f conf$$files.sh
18906
18907 {
18908   echo "cat >conf$$subs.awk <<_ACEOF" &&
18909   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18910   echo "_ACEOF"
18911 } >conf$$subs.sh ||
18912   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18913 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18914 ac_delim='%!_!# '
18915 for ac_last_try in false false false false false :; do
18916   . ./conf$$subs.sh ||
18917     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18918
18919   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18920   if test $ac_delim_n = $ac_delim_num; then
18921     break
18922   elif $ac_last_try; then
18923     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18924   else
18925     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18926   fi
18927 done
18928 rm -f conf$$subs.sh
18929
18930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18931 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18932 _ACEOF
18933 sed -n '
18934 h
18935 s/^/S["/; s/!.*/"]=/
18936 p
18937 g
18938 s/^[^!]*!//
18939 :repl
18940 t repl
18941 s/'"$ac_delim"'$//
18942 t delim
18943 :nl
18944 h
18945 s/\(.\{148\}\)..*/\1/
18946 t more1
18947 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18948 p
18949 n
18950 b repl
18951 :more1
18952 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18953 p
18954 g
18955 s/.\{148\}//
18956 t nl
18957 :delim
18958 h
18959 s/\(.\{148\}\)..*/\1/
18960 t more2
18961 s/["\\]/\\&/g; s/^/"/; s/$/"/
18962 p
18963 b
18964 :more2
18965 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18966 p
18967 g
18968 s/.\{148\}//
18969 t delim
18970 ' <conf$$subs.awk | sed '
18971 /^[^""]/{
18972   N
18973   s/\n//
18974 }
18975 ' >>$CONFIG_STATUS || ac_write_fail=1
18976 rm -f conf$$subs.awk
18977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18978 _ACAWK
18979 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18980   for (key in S) S_is_set[key] = 1
18981   FS = "\a"
18982   \$ac_cs_awk_pipe_init
18983 }
18984 {
18985   line = $ 0
18986   nfields = split(line, field, "@")
18987   substed = 0
18988   len = length(field[1])
18989   for (i = 2; i < nfields; i++) {
18990     key = field[i]
18991     keylen = length(key)
18992     if (S_is_set[key]) {
18993       value = S[key]
18994       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18995       len += length(value) + length(field[++i])
18996       substed = 1
18997     } else
18998       len += 1 + keylen
18999   }
19000   if (nfields == 3 && !substed) {
19001     key = field[2]
19002     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
19003       \$ac_cs_awk_read_file
19004       next
19005     }
19006   }
19007   print line
19008 }
19009 \$ac_cs_awk_pipe_fini
19010 _ACAWK
19011 _ACEOF
19012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19013 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19014   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19015 else
19016   cat
19017 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19018   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19019 _ACEOF
19020
19021 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19022 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19023 # trailing colons and then remove the whole line if VPATH becomes empty
19024 # (actually we leave an empty line to preserve line numbers).
19025 if test "x$srcdir" = x.; then
19026   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19027 h
19028 s///
19029 s/^/:/
19030 s/[      ]*$/:/
19031 s/:\$(srcdir):/:/g
19032 s/:\${srcdir}:/:/g
19033 s/:@srcdir@:/:/g
19034 s/^:*//
19035 s/:*$//
19036 x
19037 s/\(=[   ]*\).*/\1/
19038 G
19039 s/\n//
19040 s/^[^=]*=[       ]*$//
19041 }'
19042 fi
19043
19044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19045 fi # test -n "$CONFIG_FILES"
19046
19047
19048 eval set X "  :F $CONFIG_FILES      "
19049 shift
19050 for ac_tag
19051 do
19052   case $ac_tag in
19053   :[FHLC]) ac_mode=$ac_tag; continue;;
19054   esac
19055   case $ac_mode$ac_tag in
19056   :[FHL]*:*);;
19057   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19058   :[FH]-) ac_tag=-:-;;
19059   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19060   esac
19061   ac_save_IFS=$IFS
19062   IFS=:
19063   set x $ac_tag
19064   IFS=$ac_save_IFS
19065   shift
19066   ac_file=$1
19067   shift
19068
19069   case $ac_mode in
19070   :L) ac_source=$1;;
19071   :[FH])
19072     ac_file_inputs=
19073     for ac_f
19074     do
19075       case $ac_f in
19076       -) ac_f="$ac_tmp/stdin";;
19077       *) # Look for the file first in the build tree, then in the source tree
19078          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19079          # because $ac_f cannot contain `:'.
19080          test -f "$ac_f" ||
19081            case $ac_f in
19082            [\\/$]*) false;;
19083            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19084            esac ||
19085            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19086       esac
19087       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19088       as_fn_append ac_file_inputs " '$ac_f'"
19089     done
19090
19091     # Let's still pretend it is `configure' which instantiates (i.e., don't
19092     # use $as_me), people would be surprised to read:
19093     #    /* config.h.  Generated by config.status.  */
19094     configure_input='Generated from '`
19095           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19096         `' by configure.'
19097     if test x"$ac_file" != x-; then
19098       configure_input="$ac_file.  $configure_input"
19099       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19100 $as_echo "$as_me: creating $ac_file" >&6;}
19101     fi
19102     # Neutralize special characters interpreted by sed in replacement strings.
19103     case $configure_input in #(
19104     *\&* | *\|* | *\\* )
19105        ac_sed_conf_input=`$as_echo "$configure_input" |
19106        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19107     *) ac_sed_conf_input=$configure_input;;
19108     esac
19109
19110     case $ac_tag in
19111     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19112       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19113     esac
19114     ;;
19115   esac
19116
19117   ac_dir=`$as_dirname -- "$ac_file" ||
19118 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19119          X"$ac_file" : 'X\(//\)[^/]' \| \
19120          X"$ac_file" : 'X\(//\)$' \| \
19121          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19122 $as_echo X"$ac_file" |
19123     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19124             s//\1/
19125             q
19126           }
19127           /^X\(\/\/\)[^/].*/{
19128             s//\1/
19129             q
19130           }
19131           /^X\(\/\/\)$/{
19132             s//\1/
19133             q
19134           }
19135           /^X\(\/\).*/{
19136             s//\1/
19137             q
19138           }
19139           s/.*/./; q'`
19140   as_dir="$ac_dir"; as_fn_mkdir_p
19141   ac_builddir=.
19142
19143 case "$ac_dir" in
19144 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19145 *)
19146   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19147   # A ".." for each directory in $ac_dir_suffix.
19148   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19149   case $ac_top_builddir_sub in
19150   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19151   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19152   esac ;;
19153 esac
19154 ac_abs_top_builddir=$ac_pwd
19155 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19156 # for backward compatibility:
19157 ac_top_builddir=$ac_top_build_prefix
19158
19159 case $srcdir in
19160   .)  # We are building in place.
19161     ac_srcdir=.
19162     ac_top_srcdir=$ac_top_builddir_sub
19163     ac_abs_top_srcdir=$ac_pwd ;;
19164   [\\/]* | ?:[\\/]* )  # Absolute name.
19165     ac_srcdir=$srcdir$ac_dir_suffix;
19166     ac_top_srcdir=$srcdir
19167     ac_abs_top_srcdir=$srcdir ;;
19168   *) # Relative name.
19169     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19170     ac_top_srcdir=$ac_top_build_prefix$srcdir
19171     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19172 esac
19173 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19174
19175
19176   case $ac_mode in
19177   :F)
19178   #
19179   # CONFIG_FILE
19180   #
19181
19182   case $INSTALL in
19183   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19184   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19185   esac
19186 _ACEOF
19187
19188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19189 # If the template does not know about datarootdir, expand it.
19190 # FIXME: This hack should be removed a few years after 2.60.
19191 ac_datarootdir_hack=; ac_datarootdir_seen=
19192 ac_sed_dataroot='
19193 /datarootdir/ {
19194   p
19195   q
19196 }
19197 /@datadir@/p
19198 /@docdir@/p
19199 /@infodir@/p
19200 /@localedir@/p
19201 /@mandir@/p'
19202 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19203 *datarootdir*) ac_datarootdir_seen=yes;;
19204 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19205   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19206 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19207 _ACEOF
19208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19209   ac_datarootdir_hack='
19210   s&@datadir@&$datadir&g
19211   s&@docdir@&$docdir&g
19212   s&@infodir@&$infodir&g
19213   s&@localedir@&$localedir&g
19214   s&@mandir@&$mandir&g
19215   s&\\\${datarootdir}&$datarootdir&g' ;;
19216 esac
19217 _ACEOF
19218
19219 # Neutralize VPATH when `$srcdir' = `.'.
19220 # Shell code in configure.ac might set extrasub.
19221 # FIXME: do we really want to maintain this feature?
19222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19223 ac_sed_extra="$ac_vpsub
19224 $extrasub
19225 _ACEOF
19226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19227 :t
19228 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19229 s|@configure_input@|$ac_sed_conf_input|;t t
19230 s&@top_builddir@&$ac_top_builddir_sub&;t t
19231 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19232 s&@srcdir@&$ac_srcdir&;t t
19233 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19234 s&@top_srcdir@&$ac_top_srcdir&;t t
19235 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19236 s&@builddir@&$ac_builddir&;t t
19237 s&@abs_builddir@&$ac_abs_builddir&;t t
19238 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19239 s&@INSTALL@&$ac_INSTALL&;t t
19240 $ac_datarootdir_hack
19241 "
19242 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19243 if $ac_cs_awk_getline; then
19244   $AWK -f "$ac_tmp/subs.awk"
19245 else
19246   $AWK -f "$ac_tmp/subs.awk" | $SHELL
19247 fi \
19248   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19249
19250 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19251   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19252   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19253       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19254   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19255 which seems to be undefined.  Please make sure it is defined" >&5
19256 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19257 which seems to be undefined.  Please make sure it is defined" >&2;}
19258
19259   rm -f "$ac_tmp/stdin"
19260   case $ac_file in
19261   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19262   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19263   esac \
19264   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19265  ;;
19266
19267
19268
19269   esac
19270
19271
19272   case $ac_file$ac_mode in
19273     "Makefile":F) sed "$extrasub_build" Makefile |
19274    sed "$extrasub_host" |
19275    sed "$extrasub_target" > mf$$
19276    mv -f mf$$ Makefile ;;
19277
19278   esac
19279 done # for ac_tag
19280
19281
19282 as_fn_exit 0
19283 _ACEOF
19284 ac_clean_files=$ac_clean_files_save
19285
19286 test $ac_write_fail = 0 ||
19287   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19288
19289
19290 # configure is writing to config.log, and then calls config.status.
19291 # config.status does its own redirection, appending to config.log.
19292 # Unfortunately, on DOS this fails, as config.log is still kept open
19293 # by configure, so config.status won't be able to write to it; its
19294 # output is simply discarded.  So we exec the FD to /dev/null,
19295 # effectively closing config.log, so it can be properly (re)opened and
19296 # appended to by config.status.  When coming back to configure, we
19297 # need to make the FD available again.
19298 if test "$no_create" != yes; then
19299   ac_cs_success=:
19300   ac_config_status_args=
19301   test "$silent" = yes &&
19302     ac_config_status_args="$ac_config_status_args --quiet"
19303   exec 5>/dev/null
19304   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19305   exec 5>>config.log
19306   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19307   # would make configure fail if this is the last instruction.
19308   $ac_cs_success || as_fn_exit 1
19309 fi
19310 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19311   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19312 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19313 fi
19314